Skip to content

Commit 486931d

Browse files
committed
Fix layer violations and weird imports for docs.
1 parent f466489 commit 486931d

File tree

9 files changed

+27
-36
lines changed

9 files changed

+27
-36
lines changed

packages/a2a_dart/lib/src/client/sse_transport.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'transport.dart';
6+
library;
7+
58
import 'dart:async';
69
import 'dart:convert';
710

811
import 'package:http/http.dart' as http;
912

10-
import '../../a2a_dart.dart' show Transport;
1113
import 'a2a_exception.dart';
1214
import 'http_transport.dart';
1315
import 'sse_parser.dart';
14-
import 'transport.dart' show Transport;
1516

1617
/// An implementation of [Transport] that uses Server-Sent Events (SSE) for
1718
/// streaming communication.

packages/a2a_dart/lib/src/client/transport.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'dart:async';
6-
7-
import '../../a2a_dart.dart' show A2AClient;
5+
/// @docImport 'a2a_client.dart';
6+
library;
87

9-
import 'a2a_client.dart' show A2AClient;
8+
import 'dart:async';
109

1110
/// An interface for sending and receiving messages to an A2A server.
1211
///

packages/a2a_dart/lib/src/core/agent_capabilities.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'agent_card.dart';
6+
library;
7+
58
import 'package:freezed_annotation/freezed_annotation.dart';
69

7-
import '../../a2a_dart.dart' show AgentCard;
8-
import 'agent_card.dart' show AgentCard;
910
import 'agent_extension.dart';
1011

1112
part 'agent_capabilities.freezed.dart';

packages/a2a_dart/lib/src/core/agent_extension.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:freezed_annotation/freezed_annotation.dart';
6-
7-
import '../../a2a_dart.dart' show AgentCapabilities;
5+
/// @docImport 'agent_capabilities.dart';
6+
library;
87

9-
import 'agent_capabilities.dart' show AgentCapabilities;
8+
import 'package:freezed_annotation/freezed_annotation.dart';
109

1110
part 'agent_extension.freezed.dart';
12-
1311
part 'agent_extension.g.dart';
1412

1513
/// A declaration of a protocol extension supported by an agent.

packages/a2a_dart/lib/src/core/agent_interface.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:freezed_annotation/freezed_annotation.dart';
6-
7-
import '../../a2a_dart.dart' show AgentCard;
5+
/// @docImport 'agent_card.dart';
6+
library;
87

9-
import 'agent_card.dart' show AgentCard;
8+
import 'package:freezed_annotation/freezed_annotation.dart';
109

1110
part 'agent_interface.freezed.dart';
12-
1311
part 'agent_interface.g.dart';
1412

1513
/// Defines the transport protocols that can be used for A2A communication.

packages/a2a_dart/lib/src/core/agent_provider.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:freezed_annotation/freezed_annotation.dart';
6-
7-
import '../../a2a_dart.dart' show AgentCard;
5+
/// @docImport 'agent_card.dart';
6+
library;
87

9-
import 'agent_card.dart' show AgentCard;
8+
import 'package:freezed_annotation/freezed_annotation.dart';
109

1110
part 'agent_provider.freezed.dart';
12-
1311
part 'agent_provider.g.dart';
1412

1513
/// Represents the service provider of an agent.

packages/a2a_dart/lib/src/core/agent_skill.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:freezed_annotation/freezed_annotation.dart';
6-
7-
import '../../a2a_dart.dart' show AgentCard;
5+
/// @docImport 'agent_card.dart';
6+
library;
87

9-
import 'agent_card.dart' show AgentCard;
8+
import 'package:freezed_annotation/freezed_annotation.dart';
109

1110
part 'agent_skill.freezed.dart';
12-
1311
part 'agent_skill.g.dart';
1412

1513
/// Represents a distinct capability or function that an agent can perform.

packages/a2a_dart/lib/src/core/part.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:freezed_annotation/freezed_annotation.dart';
6-
7-
import '../../a2a_dart.dart' show Message;
5+
/// @docImport 'message.dart';
6+
library;
87

9-
import 'message.dart' show Message;
8+
import 'package:freezed_annotation/freezed_annotation.dart';
109

1110
part 'part.freezed.dart';
1211
part 'part.g.dart';

packages/a2a_dart/lib/src/server/handler_result.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'dart:async';
6-
7-
import '../../a2a_dart.dart' show RequestHandler;
5+
/// @docImport 'request_handler.dart';
6+
library;
87

9-
import 'request_handler.dart' show RequestHandler;
8+
import 'dart:async';
109

1110
/// A sealed class representing the result of a [RequestHandler].
1211
sealed class HandlerResult {}

0 commit comments

Comments
 (0)