@artinet/sdk 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -207
- package/dist/client/a2a-client.d.ts.map +1 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/server/express/errors.d.ts.map +1 -0
- package/dist/server/express/index.d.ts.map +1 -0
- package/dist/server/express/middeware.d.ts.map +1 -0
- package/dist/{types/server → server}/express/server.d.ts +8 -8
- package/dist/server/express/server.d.ts.map +1 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/{types/services → services}/a2a/factory/builder.d.ts +8 -8
- package/dist/services/a2a/factory/builder.d.ts.map +1 -0
- package/dist/services/a2a/factory/builder.js +6 -6
- package/dist/services/a2a/factory/builder.js.map +1 -1
- package/dist/{types/services → services}/a2a/factory/context.d.ts +1 -1
- package/dist/services/a2a/factory/context.d.ts.map +1 -0
- package/dist/{types/services → services}/a2a/factory/event.d.ts +1 -1
- package/dist/services/a2a/factory/event.d.ts.map +1 -0
- package/dist/services/a2a/factory/event.js +2 -2
- package/dist/services/a2a/factory/event.js.map +1 -1
- package/dist/services/a2a/factory/index.d.ts.map +1 -0
- package/dist/services/a2a/factory/method.d.ts.map +1 -0
- package/dist/services/a2a/factory/service.d.ts.map +1 -0
- package/dist/services/a2a/helpers/index.d.ts.map +1 -0
- package/dist/services/a2a/helpers/part.d.ts.map +1 -0
- package/dist/services/a2a/index.d.ts.map +1 -0
- package/dist/services/a2a/managers/cancellation.d.ts.map +1 -0
- package/dist/services/a2a/managers/connection.d.ts.map +1 -0
- package/dist/services/a2a/managers/context.d.ts.map +1 -0
- package/dist/services/a2a/managers/index.d.ts.map +1 -0
- package/dist/services/a2a/managers/task.d.ts.map +1 -0
- package/dist/services/a2a/methods/cancel-task.d.ts.map +1 -0
- package/dist/{types/services → services}/a2a/methods/get-task.d.ts +19 -19
- package/dist/services/a2a/methods/get-task.d.ts.map +1 -0
- package/dist/services/a2a/methods/index.d.ts.map +1 -0
- package/dist/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
- package/dist/services/a2a/methods/send-message.d.ts.map +1 -0
- package/dist/services/a2a/methods/stream-message.d.ts.map +1 -0
- package/dist/services/a2a/methods/stream-message.js +0 -17
- package/dist/services/a2a/methods/stream-message.js.map +1 -1
- package/dist/{types/services → services}/a2a/service.d.ts +63 -64
- package/dist/services/a2a/service.d.ts.map +1 -0
- package/dist/services/a2a/service.js +2 -5
- package/dist/services/a2a/service.js.map +1 -1
- package/dist/services/a2a/state/index.d.ts.map +1 -0
- package/dist/services/a2a/state/load.d.ts.map +1 -0
- package/dist/services/a2a/state/process.d.ts.map +1 -0
- package/dist/services/a2a/state/update/artifact.d.ts.map +1 -0
- package/dist/services/a2a/state/update/index.d.ts.map +1 -0
- package/dist/services/a2a/state/update/update.d.ts.map +1 -0
- package/dist/services/core/execution/execute.d.ts.map +1 -0
- package/dist/services/core/execution/index.d.ts.map +1 -0
- package/dist/services/core/index.d.ts.map +1 -0
- package/dist/services/core/managers/command.d.ts.map +1 -0
- package/dist/services/core/managers/event.d.ts.map +1 -0
- package/dist/services/core/managers/index.d.ts.map +1 -0
- package/dist/services/core/managers/stream.d.ts.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/mcp/index.d.ts +2 -0
- package/dist/services/mcp/index.d.ts.map +1 -0
- package/dist/services/mcp/index.js +2 -0
- package/dist/services/mcp/index.js.map +1 -0
- package/dist/services/mcp/service.d.ts +31 -0
- package/dist/services/mcp/service.d.ts.map +1 -0
- package/dist/services/mcp/service.js +123 -0
- package/dist/services/mcp/service.js.map +1 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/rpc/parser.d.ts.map +1 -0
- package/dist/transport/rpc/rpc-client.d.ts.map +1 -0
- package/dist/transport/streaming/event-stream.d.ts.map +1 -0
- package/dist/transport/trpc/a2a/factory/index.d.ts.map +1 -0
- package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts +398 -398
- package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts.map +1 -1
- package/dist/transport/trpc/a2a/index.d.ts.map +1 -0
- package/dist/transport/trpc/a2a/routes/index.d.ts.map +1 -0
- package/dist/{types/transport → transport}/trpc/a2a/routes/info.d.ts +15 -15
- package/dist/transport/trpc/a2a/routes/info.d.ts.map +1 -0
- package/dist/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
- package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts +85 -85
- package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts.map +1 -1
- package/dist/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
- package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts +92 -92
- package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts.map +1 -1
- package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
- package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
- package/dist/{types/transport → transport}/trpc/a2a/trpc.d.ts +35 -35
- package/dist/transport/trpc/a2a/trpc.d.ts.map +1 -0
- package/dist/transport/trpc/index.d.ts.map +1 -0
- package/dist/types/ext.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/interfaces/client.d.ts.map +1 -0
- package/dist/types/interfaces/index.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/a2a/builder.d.ts +4 -0
- package/dist/types/interfaces/services/a2a/builder.d.ts.map +1 -0
- package/dist/types/interfaces/services/a2a/builder.js +4 -0
- package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
- package/dist/types/{types/interfaces → interfaces}/services/a2a/context.d.ts +1 -1
- package/dist/types/interfaces/services/a2a/context.d.ts.map +1 -0
- package/dist/types/interfaces/services/a2a/engine.d.ts.map +1 -0
- package/dist/types/interfaces/services/a2a/index.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/a2a/legacy.d.ts +1 -0
- package/dist/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/a2a/service.d.ts +4 -4
- package/dist/types/interfaces/services/a2a/service.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/context/command.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/core/context/context.d.ts +1 -1
- package/dist/types/interfaces/services/core/context/context.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/context/index.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/context/types.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/core/execution/engine.d.ts +1 -1
- package/dist/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/execution/index.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/index.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/managers/context.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/core/managers/event.d.ts +1 -1
- package/dist/types/interfaces/services/core/managers/event.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/managers/index.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/core/managers/stream.d.ts +1 -1
- package/dist/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
- package/dist/types/interfaces/services/core/managers/task.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/core/service.d.ts +1 -1
- package/dist/types/interfaces/services/core/service.d.ts.map +1 -0
- package/dist/types/{types/interfaces → interfaces}/services/index.d.ts +1 -0
- package/dist/types/interfaces/services/index.d.ts.map +1 -0
- package/dist/types/interfaces/services/index.js +1 -0
- package/dist/types/interfaces/services/index.js.map +1 -1
- package/dist/types/interfaces/services/mcp/index.d.ts +2 -0
- package/dist/types/interfaces/services/mcp/index.d.ts.map +1 -0
- package/dist/types/interfaces/services/mcp/index.js +2 -0
- package/dist/types/interfaces/services/mcp/index.js.map +1 -0
- package/dist/types/interfaces/services/mcp/service.d.ts +50 -0
- package/dist/types/interfaces/services/mcp/service.d.ts.map +1 -0
- package/dist/types/{schemas/deployment/proxy.js → interfaces/services/mcp/service.js} +1 -1
- package/dist/types/interfaces/services/mcp/service.js.map +1 -0
- package/dist/types/interfaces/services/protocol.d.ts.map +1 -0
- package/dist/types/interfaces/storage.d.ts.map +1 -0
- package/dist/types/schemas/a2a/agent.d.ts +2584 -0
- package/dist/types/schemas/a2a/agent.d.ts.map +1 -0
- package/dist/types/schemas/a2a/agent.js +9 -3
- package/dist/types/schemas/a2a/agent.js.map +1 -1
- package/dist/types/schemas/a2a/auth.d.ts +909 -0
- package/dist/types/schemas/a2a/auth.d.ts.map +1 -0
- package/dist/types/schemas/a2a/auth.js +11 -1
- package/dist/types/schemas/a2a/auth.js.map +1 -1
- package/dist/types/{types/schemas → schemas}/a2a/error.d.ts +243 -27
- package/dist/types/schemas/a2a/error.d.ts.map +1 -0
- package/dist/types/schemas/a2a/error.js +1 -1
- package/dist/types/schemas/a2a/error.js.map +1 -1
- package/dist/types/schemas/a2a/index.d.ts.map +1 -0
- package/dist/types/schemas/a2a/kind.d.ts +12 -0
- package/dist/types/schemas/a2a/kind.d.ts.map +1 -0
- package/dist/types/schemas/a2a/kind.js +1 -1
- package/dist/types/schemas/a2a/kind.js.map +1 -1
- package/dist/types/schemas/a2a/message.d.ts +10344 -0
- package/dist/types/schemas/a2a/message.d.ts.map +1 -0
- package/dist/types/schemas/a2a/message.js +1 -1
- package/dist/types/schemas/a2a/message.js.map +1 -1
- package/dist/types/schemas/a2a/notification.d.ts +1518 -0
- package/dist/types/schemas/a2a/notification.d.ts.map +1 -0
- package/dist/types/schemas/a2a/notification.js +2 -1
- package/dist/types/schemas/a2a/notification.js.map +1 -1
- package/dist/types/schemas/a2a/parameters.d.ts +957 -0
- package/dist/types/schemas/a2a/parameters.d.ts.map +1 -0
- package/dist/types/schemas/a2a/parameters.js +1 -1
- package/dist/types/schemas/a2a/parameters.js.map +1 -1
- package/dist/types/schemas/a2a/protocol.d.ts +14364 -0
- package/dist/types/schemas/a2a/protocol.d.ts.map +1 -0
- package/dist/types/schemas/a2a/protocol.js +1 -1
- package/dist/types/schemas/a2a/protocol.js.map +1 -1
- package/dist/types/schemas/a2a/rpc.d.ts +183 -0
- package/dist/types/schemas/a2a/rpc.d.ts.map +1 -0
- package/dist/types/schemas/a2a/rpc.js +1 -1
- package/dist/types/schemas/a2a/rpc.js.map +1 -1
- package/dist/types/schemas/a2a/task.d.ts +5887 -0
- package/dist/types/schemas/a2a/task.d.ts.map +1 -0
- package/dist/types/schemas/a2a/task.js +1 -1
- package/dist/types/schemas/a2a/task.js.map +1 -1
- package/dist/types/schemas/a2a/transport.d.ts +32 -0
- package/dist/types/schemas/a2a/transport.d.ts.map +1 -0
- package/dist/types/schemas/a2a/transport.js +2 -1
- package/dist/types/schemas/a2a/transport.js.map +1 -1
- package/dist/types/schemas/index.d.ts.map +1 -0
- package/dist/types/schemas/index.js +0 -1
- package/dist/types/schemas/index.js.map +1 -1
- package/dist/types/utils/index.d.ts +1 -8
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/transform.d.ts.map +1 -0
- package/dist/utils/common/constants.d.ts.map +1 -0
- package/dist/utils/common/errors.d.ts.map +1 -0
- package/dist/utils/common/utils.d.ts.map +1 -0
- package/dist/utils/common/zAsyncIterable-v3.d.ts +25 -0
- package/dist/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
- package/dist/utils/common/zAsyncIterable-v3.js +39 -0
- package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
- package/dist/utils/common/zAsyncIterable.d.ts.map +1 -0
- package/dist/utils/common/zAsyncIterable.js +1 -0
- package/dist/utils/common/zAsyncIterable.js.map +1 -1
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -8
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logging/index.d.ts.map +1 -0
- package/dist/utils/logging/log.d.ts.map +1 -0
- package/dist/utils/logging/log.js +15 -1
- package/dist/utils/logging/log.js.map +1 -1
- package/dist/utils/logging/logger.d.ts +19 -0
- package/dist/utils/logging/logger.d.ts.map +1 -0
- package/dist/utils/logging/logger.js +5 -37
- package/dist/utils/logging/logger.js.map +1 -1
- package/dist/{types/utils → utils}/storage/file.d.ts +1 -1
- package/dist/utils/storage/file.d.ts.map +1 -0
- package/dist/utils/storage/file.js +5 -4
- package/dist/utils/storage/file.js.map +1 -1
- package/dist/utils/storage/memory.d.ts.map +1 -0
- package/package.json +21 -27
- package/CHANGELOG.md +0 -276
- package/dist/types/client/a2a-client.d.ts.map +0 -1
- package/dist/types/client/index.d.ts.map +0 -1
- package/dist/types/schemas/deployment/index.js +0 -3
- package/dist/types/schemas/deployment/index.js.map +0 -1
- package/dist/types/schemas/deployment/proxy.js.map +0 -1
- package/dist/types/schemas/deployment/request.js +0 -88
- package/dist/types/schemas/deployment/request.js.map +0 -1
- package/dist/types/server/express/errors.d.ts.map +0 -1
- package/dist/types/server/express/index.d.ts.map +0 -1
- package/dist/types/server/express/middeware.d.ts.map +0 -1
- package/dist/types/server/express/server.d.ts.map +0 -1
- package/dist/types/server/index.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/builder.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/context.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/event.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/index.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/method.d.ts.map +0 -1
- package/dist/types/services/a2a/factory/service.d.ts.map +0 -1
- package/dist/types/services/a2a/helpers/index.d.ts.map +0 -1
- package/dist/types/services/a2a/helpers/part.d.ts.map +0 -1
- package/dist/types/services/a2a/index.d.ts.map +0 -1
- package/dist/types/services/a2a/managers/cancellation.d.ts.map +0 -1
- package/dist/types/services/a2a/managers/connection.d.ts.map +0 -1
- package/dist/types/services/a2a/managers/context.d.ts.map +0 -1
- package/dist/types/services/a2a/managers/index.d.ts.map +0 -1
- package/dist/types/services/a2a/managers/task.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/cancel-task.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/get-task.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/index.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/send-message.d.ts.map +0 -1
- package/dist/types/services/a2a/methods/stream-message.d.ts.map +0 -1
- package/dist/types/services/a2a/service.d.ts.map +0 -1
- package/dist/types/services/a2a/state/index.d.ts.map +0 -1
- package/dist/types/services/a2a/state/load.d.ts.map +0 -1
- package/dist/types/services/a2a/state/process.d.ts.map +0 -1
- package/dist/types/services/a2a/state/update/artifact.d.ts.map +0 -1
- package/dist/types/services/a2a/state/update/index.d.ts.map +0 -1
- package/dist/types/services/a2a/state/update/update.d.ts.map +0 -1
- package/dist/types/services/core/execution/execute.d.ts.map +0 -1
- package/dist/types/services/core/execution/index.d.ts.map +0 -1
- package/dist/types/services/core/index.d.ts.map +0 -1
- package/dist/types/services/core/managers/command.d.ts.map +0 -1
- package/dist/types/services/core/managers/event.d.ts.map +0 -1
- package/dist/types/services/core/managers/index.d.ts.map +0 -1
- package/dist/types/services/core/managers/stream.d.ts.map +0 -1
- package/dist/types/services/index.d.ts +0 -3
- package/dist/types/services/index.d.ts.map +0 -1
- package/dist/types/transport/index.d.ts.map +0 -1
- package/dist/types/transport/rpc/parser.d.ts.map +0 -1
- package/dist/types/transport/rpc/rpc-client.d.ts.map +0 -1
- package/dist/types/transport/streaming/event-stream.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/index.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +0 -1
- package/dist/types/transport/trpc/a2a/trpc.d.ts.map +0 -1
- package/dist/types/transport/trpc/index.d.ts.map +0 -1
- package/dist/types/types/ext.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/client.d.ts.map +0 -1
- package/dist/types/types/interfaces/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/context.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/a2a/service.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/context/command.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/context/context.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/context/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/context/types.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/core/service.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/index.d.ts.map +0 -1
- package/dist/types/types/interfaces/services/protocol.d.ts.map +0 -1
- package/dist/types/types/interfaces/storage.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/agent.d.ts +0 -509
- package/dist/types/types/schemas/a2a/agent.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/auth.d.ts +0 -285
- package/dist/types/types/schemas/a2a/auth.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/error.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/index.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/kind.d.ts +0 -28
- package/dist/types/types/schemas/a2a/kind.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/message.d.ts +0 -2570
- package/dist/types/types/schemas/a2a/message.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/notification.d.ts +0 -338
- package/dist/types/types/schemas/a2a/notification.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/parameters.d.ts +0 -308
- package/dist/types/types/schemas/a2a/parameters.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/protocol.d.ts +0 -3207
- package/dist/types/types/schemas/a2a/protocol.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/rpc.d.ts +0 -57
- package/dist/types/types/schemas/a2a/rpc.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/task.d.ts +0 -1498
- package/dist/types/types/schemas/a2a/task.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/transport.d.ts +0 -28
- package/dist/types/types/schemas/a2a/transport.d.ts.map +0 -1
- package/dist/types/types/schemas/deployment/index.d.ts +0 -3
- package/dist/types/types/schemas/deployment/index.d.ts.map +0 -1
- package/dist/types/types/schemas/deployment/proxy.d.ts +0 -96
- package/dist/types/types/schemas/deployment/proxy.d.ts.map +0 -1
- package/dist/types/types/schemas/deployment/request.d.ts +0 -508
- package/dist/types/types/schemas/deployment/request.d.ts.map +0 -1
- package/dist/types/types/schemas/index.d.ts.map +0 -1
- package/dist/types/types/utils/index.d.ts +0 -2
- package/dist/types/types/utils/index.d.ts.map +0 -1
- package/dist/types/types/utils/transform.d.ts.map +0 -1
- package/dist/types/utils/api/register.d.ts +0 -29
- package/dist/types/utils/api/register.d.ts.map +0 -1
- package/dist/types/utils/common/constants.d.ts.map +0 -1
- package/dist/types/utils/common/errors.d.ts.map +0 -1
- package/dist/types/utils/common/utils.d.ts.map +0 -1
- package/dist/types/utils/common/zAsyncIterable.d.ts.map +0 -1
- package/dist/types/utils/deployment/agents.d.ts +0 -57
- package/dist/types/utils/deployment/agents.d.ts.map +0 -1
- package/dist/types/utils/deployment/bundler.d.ts +0 -15
- package/dist/types/utils/deployment/bundler.d.ts.map +0 -1
- package/dist/types/utils/deployment/full-deployment.d.ts +0 -18
- package/dist/types/utils/deployment/full-deployment.d.ts.map +0 -1
- package/dist/types/utils/deployment/index.d.ts +0 -5
- package/dist/types/utils/deployment/index.d.ts.map +0 -1
- package/dist/types/utils/deployment/task-wrapper.d.ts +0 -43
- package/dist/types/utils/deployment/task-wrapper.d.ts.map +0 -1
- package/dist/types/utils/deployment/test-deployment.d.ts +0 -28
- package/dist/types/utils/deployment/test-deployment.d.ts.map +0 -1
- package/dist/types/utils/logging/index.d.ts.map +0 -1
- package/dist/types/utils/logging/log.d.ts.map +0 -1
- package/dist/types/utils/logging/logger.d.ts +0 -20
- package/dist/types/utils/logging/logger.d.ts.map +0 -1
- package/dist/types/utils/storage/file.d.ts.map +0 -1
- package/dist/types/utils/storage/memory.d.ts.map +0 -1
- package/dist/utils/api/register.js +0 -107
- package/dist/utils/api/register.js.map +0 -1
- package/dist/utils/deployment/agents.js +0 -96
- package/dist/utils/deployment/agents.js.map +0 -1
- package/dist/utils/deployment/bundler.js +0 -52
- package/dist/utils/deployment/bundler.js.map +0 -1
- package/dist/utils/deployment/full-deployment.js +0 -35
- package/dist/utils/deployment/full-deployment.js.map +0 -1
- package/dist/utils/deployment/index.js +0 -5
- package/dist/utils/deployment/index.js.map +0 -1
- package/dist/utils/deployment/task-wrapper.js +0 -44
- package/dist/utils/deployment/task-wrapper.js.map +0 -1
- package/dist/utils/deployment/test-deployment.js +0 -69
- package/dist/utils/deployment/test-deployment.js.map +0 -1
- /package/dist/{types/client → client}/a2a-client.d.ts +0 -0
- /package/dist/{types/client → client}/index.d.ts +0 -0
- /package/dist/{types/server → server}/express/errors.d.ts +0 -0
- /package/dist/{types/server → server}/express/index.d.ts +0 -0
- /package/dist/{types/server → server}/express/middeware.d.ts +0 -0
- /package/dist/{types/server → server}/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/factory/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/factory/method.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/factory/service.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/helpers/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/helpers/part.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/managers/cancellation.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/managers/connection.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/managers/context.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/managers/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/managers/task.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/methods/cancel-task.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/methods/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/methods/resubscribe-task.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/methods/send-message.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/methods/stream-message.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/load.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/process.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/update/artifact.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/update/index.d.ts +0 -0
- /package/dist/{types/services → services}/a2a/state/update/update.d.ts +0 -0
- /package/dist/{types/services → services}/core/execution/execute.d.ts +0 -0
- /package/dist/{types/services → services}/core/execution/index.d.ts +0 -0
- /package/dist/{types/services → services}/core/index.d.ts +0 -0
- /package/dist/{types/services → services}/core/managers/command.d.ts +0 -0
- /package/dist/{types/services → services}/core/managers/event.d.ts +0 -0
- /package/dist/{types/services → services}/core/managers/index.d.ts +0 -0
- /package/dist/{types/services → services}/core/managers/stream.d.ts +0 -0
- /package/dist/{types/transport → transport}/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/rpc/parser.d.ts +0 -0
- /package/dist/{types/transport → transport}/rpc/rpc-client.d.ts +0 -0
- /package/dist/{types/transport → transport}/streaming/event-stream.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/a2a/factory/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/a2a/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/a2a/routes/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/a2a/routes/message/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/index.d.ts +0 -0
- /package/dist/{types/transport → transport}/trpc/index.d.ts +0 -0
- /package/dist/types/{types/ext.d.ts → ext.d.ts} +0 -0
- /package/dist/types/{types/interfaces → interfaces}/client.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/a2a/engine.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/a2a/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/context/command.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/context/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/context/types.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/execution/environment.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/execution/execute.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/execution/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/managers/cancellation.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/managers/connection.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/managers/context.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/managers/index.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/core/managers/task.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/services/protocol.d.ts +0 -0
- /package/dist/types/{types/interfaces → interfaces}/storage.d.ts +0 -0
- /package/dist/types/{types/schemas → schemas}/a2a/index.d.ts +0 -0
- /package/dist/types/{types/schemas → schemas}/index.d.ts +0 -0
- /package/dist/types/{types/utils → utils}/transform.d.ts +0 -0
- /package/dist/{types/utils → utils}/common/constants.d.ts +0 -0
- /package/dist/{types/utils → utils}/common/errors.d.ts +0 -0
- /package/dist/{types/utils → utils}/common/utils.d.ts +0 -0
- /package/dist/{types/utils → utils}/common/zAsyncIterable.d.ts +0 -0
- /package/dist/{types/utils → utils}/logging/index.d.ts +0 -0
- /package/dist/{types/utils → utils}/logging/log.d.ts +0 -0
- /package/dist/{types/utils → utils}/storage/memory.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,g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AAS,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,MAAM,KAAG,MAAM,CAGzE;AAED;;GAEG;AAEH,yBAAiB,iBAAiB,CAAC;IACjC;;;OAGG;IACH,KAAY,YAAY,CAAC,CAAC,SAAS,MAAM,IACvC,CAAC,SAAS,GAAG,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GACpC,GAAG,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,GAC3C,CAAC,CAAC;IAER;;OAEG;IACH,KAAY,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,IAAI,SAAS,MAAM,CAAC,EACpB,MAAM,SAAS,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,IAC1C,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAEnD;;OAEG;IACH,KAAY,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,QAAQ,SAAS,MAAM,CAAC,EACxB,MAAM,SAAS,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,IAC5C,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { IRegistration } from "@artinet/metadata-validator";
|
|
6
|
-
import { AgentCard } from "../../types/index.js";
|
|
7
|
-
/**
|
|
8
|
-
* Registers an agent with the A2A registry.
|
|
9
|
-
* @param metadata The metadata to register.
|
|
10
|
-
* @returns A promise that resolves to the registration ID.
|
|
11
|
-
*/
|
|
12
|
-
export declare function apiRegister(metadata: string): Promise<{
|
|
13
|
-
success: boolean;
|
|
14
|
-
registrationId?: string;
|
|
15
|
-
error?: string;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Converts an AgentCard object into a RegistrationSchema object.
|
|
19
|
-
* @param card The AgentCard to convert.
|
|
20
|
-
* @returns A RegistrationSchema object.
|
|
21
|
-
*/
|
|
22
|
-
export declare function convert(card: AgentCard): IRegistration;
|
|
23
|
-
/**
|
|
24
|
-
* Registers an agent with the A2A registry.
|
|
25
|
-
* @param card The AgentCard to register.
|
|
26
|
-
* @returns A promise that resolves to the registration ID.
|
|
27
|
-
*/
|
|
28
|
-
export declare function register(card: AgentCard): Promise<string>;
|
|
29
|
-
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/register.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAC;AAG7D;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBxE;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,aAAa,CAiCtD;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CA6C/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,6BAAyB;AAIpE,eAAO,MAAM,cAAc,GAC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AC,mBACyD,CAAC;AAE3E,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,kBAAkB,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,mBACJ,CAAC;AAEzE,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,aAAa,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,mBACH,CAAC;AAErE,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,iBAAiB,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,mBACR,CAAC;AAEpE,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,sBAAsB,EAClE,MAAM,CAAC,CAAC,MAAM,CAAC,mBAMd,CAAC;AAEJ,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,QAAQ,EAChE,MAAM,CAAC,CAAC,MAAM,CAAC,mBAMd,CAAC;AAEJ,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,QAAQ,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,mBAKtE,CAAC;AAEJ,eAAO,MAAM,0BAA0B,GACrC,CAAC,SAAS,4BAA4B,EAEtC,MAAM,CAAC,CAAC,MAAM,CAAC,mBAMd,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,yBAAyB,EACxE,MAAM,CAAC,CAAC,MAAM,CAAC,mBAMd,CAAC;AAEJ,eAAO,MAAM,aAAa,GACxB,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,WAAW,MAAM,YAAkB,EACnC,YAAY,MAAM,KACjB,qBAcD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zAsyncIterable.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/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O,CAAC,EAC9C,aAAa,CAAC,QAAQ,EAAE,SAAS,CAAC,CACnC,CACF,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { ClientFactory, ConnectAPICallback, TaskManager } from "../../types/schemas/deployment/index.js";
|
|
6
|
-
export declare namespace artinet {
|
|
7
|
-
namespace v0 {
|
|
8
|
-
/**
|
|
9
|
-
* Manages the execution of an agent's task.
|
|
10
|
-
* This function is intended to be used within an agent's code when deployed to a
|
|
11
|
-
* managed environment. It takes the agent's core task-handling generator function
|
|
12
|
-
* and iterates over its yielded updates, passing them to a proxy function
|
|
13
|
-
* made available by the host environment.
|
|
14
|
-
*
|
|
15
|
-
* The `TaskContext` and the `TaskProxy` (for yielding updates) are expected
|
|
16
|
-
* to be provided by the host environment via `process.env`.
|
|
17
|
-
*
|
|
18
|
-
* @param {TaskManagerProps} props - The properties for the task manager, including the taskHandler.
|
|
19
|
-
* @param {function(TaskContext): AsyncGenerator<any, any, unknown>} props.taskHandler - An asynchronous generator function that takes a `TaskContext`
|
|
20
|
-
* and yields updates, eventually returning a `Task` or void.
|
|
21
|
-
* @returns {Promise<void>} A promise that resolves when the task handler has completed.
|
|
22
|
-
* @throws An error if the `taskManagerStub` or `context` is not set in `process.env`,
|
|
23
|
-
* indicating an invalid runtime environment.
|
|
24
|
-
*/
|
|
25
|
-
const taskManager: TaskManager;
|
|
26
|
-
/**
|
|
27
|
-
* Establishes a connection or sends a request to another agent or service.
|
|
28
|
-
* This function proxies requests to a host-provided implementation, enabling
|
|
29
|
-
* agents in a managed environment to make external calls (e.g., to an LLM or another agent)
|
|
30
|
-
* without needing direct network access or credentials. The actual implementation
|
|
31
|
-
* is delegated to `env.connectStub`, provided by the host environment.
|
|
32
|
-
*
|
|
33
|
-
* @param {ConnectProps} props - The properties for the connect call, including the target agentID and messages.
|
|
34
|
-
* @param {string} props.agentID - The identifier of the target agent or LLM to which the request is directed.
|
|
35
|
-
* @param {object[]} props.messages - An array of messages forming the conversation history or prompt.
|
|
36
|
-
* @returns {Promise<string>} A promise that resolves to the string response from the target agent/LLM or a connection identifier.
|
|
37
|
-
* @throws An error if `env.connectStub` is not found,
|
|
38
|
-
* indicating an invalid runtime environment.
|
|
39
|
-
*/
|
|
40
|
-
const connect: ConnectAPICallback;
|
|
41
|
-
/**
|
|
42
|
-
* Creates a client proxy for interacting with other agents or services.
|
|
43
|
-
* This function acts as a factory to obtain a `ClientProxy` instance.
|
|
44
|
-
* The actual implementation of the client factory is delegated to `env.clientStub`,
|
|
45
|
-
* provided by the host environment. This allows agents to communicate with
|
|
46
|
-
* other entities in a managed environment without direct awareness of the
|
|
47
|
-
* underlying communication mechanisms.
|
|
48
|
-
*
|
|
49
|
-
* @param {ClientProps} props - The properties for creating the client.
|
|
50
|
-
* @returns {ClientProxy} A proxy object for interacting with a client service or agent.
|
|
51
|
-
* @throws An error if `env.clientStub` is not found,
|
|
52
|
-
* indicating an invalid runtime environment.
|
|
53
|
-
*/
|
|
54
|
-
const agent: ClientFactory;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/agents.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EAGb,kBAAkB,EAElB,WAAW,EAGZ,gDAA4C;AAM7C,yBAAiB,OAAO,CAAC;IAEvB,UAAiB,EAAE,CAAC;QAClB;;;;;;;;;;;;;;;;WAgBG;QACI,MAAM,WAAW,EAAE,WA0BzB,CAAC;QAEF;;;;;;;;;;;;;WAaG;QACI,MAAM,OAAO,EAAE,kBAWrB,CAAC;QAEF;;;;;;;;;;;;WAYG;QACI,MAAM,KAAK,EAAE,aASnB,CAAC;KACH;CACF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Bundles a given JavaScript or TypeScript file into a single minified ES module string.
|
|
7
|
-
* This utility leverages `esbuild` for efficient bundling, minification, and sourcemap generation.
|
|
8
|
-
* It's designed to prepare agent code for deployment by packaging it and its local dependencies.
|
|
9
|
-
*
|
|
10
|
-
* @param filePath - The URL of the entry point file to bundle.
|
|
11
|
-
* @returns A promise that resolves to a string containing the bundled and minified code.
|
|
12
|
-
* @throws An error if the file path does not exist, is not a file, or if bundling fails for any reason.
|
|
13
|
-
*/
|
|
14
|
-
export declare function bundle(filePath: URL): Promise<string>;
|
|
15
|
-
//# sourceMappingURL=bundler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/bundler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAAC,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CA4C3D"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { ServerDeploymentRequestParams } from "../../types/schemas/deployment/index.js";
|
|
6
|
-
/**
|
|
7
|
-
* Sends a full deployment request to the server.
|
|
8
|
-
* @param params The parameters to pass to the method.
|
|
9
|
-
* @returns The response from the server.
|
|
10
|
-
*/
|
|
11
|
-
export declare function fullDeployment(params: ServerDeploymentRequestParams): Promise<{
|
|
12
|
-
deploymentId: string;
|
|
13
|
-
success: boolean;
|
|
14
|
-
name: string;
|
|
15
|
-
url: string;
|
|
16
|
-
basePath: string;
|
|
17
|
-
}>;
|
|
18
|
-
//# sourceMappingURL=full-deployment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"full-deployment.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/full-deployment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,6BAA6B,EAG9B,gDAA4C;AAoC7C;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,6BAA6B;;;;;;GAYzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/index.ts"],"names":[],"mappings":"AAAA,wDAAoD;AACpD,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { AgentEngine } from "../../types/index.js";
|
|
6
|
-
/**
|
|
7
|
-
* @fileoverview This module provides proxy functions for agent task handling and
|
|
8
|
-
* fetching responses within a managed deployment environment. These proxies
|
|
9
|
-
* abstract the communication with the host environment, allowing agent code to
|
|
10
|
-
* remain clean and focused on its core logic.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Proxies task execution to a host-provided handler.
|
|
14
|
-
* This function is intended to be used within an agent's code when deployed to a
|
|
15
|
-
* managed environment. It takes the agent's core task-handling generator function
|
|
16
|
-
* and iterates over its yielded updates, passing them to a `hostOnYield` function
|
|
17
|
-
* made available in the `env` by the host environment.
|
|
18
|
-
*
|
|
19
|
-
* The `Context` (ExecutionContext) is also expected to be provided by the host environment via `env`.
|
|
20
|
-
* @deprecated This function is deprecated and will be removed in a future version. Use the `Artinet.v0.taskManager` function instead.
|
|
21
|
-
* @param taskHandler - An asynchronous generator function that takes a `ExecutionContext`
|
|
22
|
-
* and yields `UpdateEvent` objects, eventually returning a `Task` or void.
|
|
23
|
-
* @throws An error if the required `env.hostOnYield` or `env.Context` are not found,
|
|
24
|
-
* indicating an invalid runtime environment.
|
|
25
|
-
*/
|
|
26
|
-
export declare const taskHandlerProxy: (taskHandler: AgentEngine) => Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Proxies requests to fetch responses from other agents or LLMs to a host-provided implementation.
|
|
29
|
-
* This allows agents in a managed environment to make external calls (e.g., to an LLM)
|
|
30
|
-
* without needing direct network access or credentials. The actual implementation of fetching
|
|
31
|
-
* the response is delegated to `env.hostFetchResponse`, provided by the host environment.
|
|
32
|
-
* @deprecated This function is deprecated and will be removed in a future version. Use the `Artinet.v0.connect` function instead.
|
|
33
|
-
* @param agentID - The identifier of the target agent or LLM to which the request is directed.
|
|
34
|
-
* @param messages - An array of messages forming the conversation history or prompt.
|
|
35
|
-
* @returns A promise that resolves to the string response from the target agent/LLM.
|
|
36
|
-
* @throws An error if the required `env.hostFetchResponse` is not found,
|
|
37
|
-
* indicating an invalid runtime environment.
|
|
38
|
-
*/
|
|
39
|
-
export declare const fetchResponseProxy: (agentID: string, messages: {
|
|
40
|
-
role: string;
|
|
41
|
-
content: string;
|
|
42
|
-
}[]) => Promise<string>;
|
|
43
|
-
//# sourceMappingURL=task-wrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/task-wrapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C;;;;;GAKG;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,GAAU,aAAa,WAAW,kBAE9D,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,UAAU;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,KAC5C,OAAO,CAAC,MAAM,CAEhB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { ServerDeploymentRequestParams, ServerDeploymentSuccessResponseParams } from "../../types/schemas/deployment/index.js";
|
|
6
|
-
import { Task, SendMessageRequest, Message } from "../../types/index.js";
|
|
7
|
-
/**
|
|
8
|
-
* Tests an agent deployment by sending its code to a test deployment endpoint
|
|
9
|
-
* and then issuing a series of test task requests to the deployed agent.
|
|
10
|
-
*
|
|
11
|
-
* This function first initiates a deployment to `https://agents.artinet.io/test/deploy`,
|
|
12
|
-
* streaming deployment status events. Once a successful deployment event with a URL
|
|
13
|
-
* is received, it creates an `A2AClient` for that URL and sends each of the provided
|
|
14
|
-
* `SendTaskRequest`s to the deployed agent.
|
|
15
|
-
*
|
|
16
|
-
* It yields all events from the deployment stream and all resulting tasks from the
|
|
17
|
-
* test requests.
|
|
18
|
-
*
|
|
19
|
-
* @param params - The parameters for the server deployment, including the agent's
|
|
20
|
-
* name, agent card, and the bundled code.
|
|
21
|
-
* @param requests - An array of `SendTaskRequest` objects to be sent to the
|
|
22
|
-
* deployed agent for testing.
|
|
23
|
-
* @returns An asynchronous iterable that yields `ServerDeploymentResponse` events
|
|
24
|
-
* during the deployment phase, and `Task` objects resulting from the
|
|
25
|
-
* test requests. Yields `null` for other event types not explicitly handled.
|
|
26
|
-
*/
|
|
27
|
-
export declare function testDeployment(params: ServerDeploymentRequestParams, requests: SendMessageRequest[]): AsyncIterable<Message | Task | ServerDeploymentSuccessResponseParams | null>;
|
|
28
|
-
//# sourceMappingURL=test-deployment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-deployment.d.ts","sourceRoot":"","sources":["../../../../src/utils/deployment/test-deployment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,6BAA6B,EAG7B,qCAAqC,EACtC,gDAA4C;AAC7C,OAAO,EAEL,IAAI,EACJ,kBAAkB,EAClB,OAAO,EAER,6BAAyB;AAqB1B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAuB,cAAc,CACnC,MAAM,EAAE,6BAA6B,EACrC,QAAQ,EAAE,kBAAkB,EAAE,GAC7B,aAAa,CACd,OAAO,GAAG,IAAI,GAAG,qCAAqC,GAAG,IAAI,CAC9D,CA2CA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/utils/logging/log.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CAMN;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,EACd,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CASN;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CAMN;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CAMN"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
export type LogLevel = "silent" | "error" | "warn" | "info" | "debug" | "trace";
|
|
6
|
-
/**
|
|
7
|
-
* SDK logger instance
|
|
8
|
-
*/
|
|
9
|
-
export declare const logger: import("pino").Logger<never, boolean>;
|
|
10
|
-
/**
|
|
11
|
-
* Configures the logger with the specified options
|
|
12
|
-
*
|
|
13
|
-
* @param options - Logger configuration options
|
|
14
|
-
*/
|
|
15
|
-
export declare function configureLogger(options: {
|
|
16
|
-
level?: LogLevel;
|
|
17
|
-
name?: string;
|
|
18
|
-
prettyPrint?: boolean;
|
|
19
|
-
}): import("pino").Logger<never, boolean>;
|
|
20
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utils/logging/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AA4BhF;;GAEG;AACH,eAAO,MAAM,MAAM,uCAAa,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,yCAOA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/storage/file.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,cAAc,EACd,oBAAoB,EAGrB,6BAAyB;AAK1B;;;GAGG;AACH,qBAAa,SAAU,YAAW,oBAAoB,CAAC,cAAc,CAAC;IACpE,OAAO,CAAC,OAAO,CAAS;IAExB;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAI3B;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAIvB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;;OAGG;YACW,aAAa;IAa3B;;;;;OAKG;YACW,aAAa;IAY3B;;;;OAIG;YACW,YAAY;IAc1B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;;OAIG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IA4CvD;;;;OAIG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB7D,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAIrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/utils/storage/memory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,6BAAyB;AAGxE;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,oBAAoB,CAAC,cAAc,CAAC;IAC5E,OAAO,CAAC,KAAK,CAA0C;IAEvD;;;;OAIG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAanE;;;;OAIG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7D,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAGrC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { MetadataValidator } from "@artinet/metadata-validator";
|
|
6
|
-
import { logDebug, logInfo, logWarn } from "../logging/log.js";
|
|
7
|
-
/**
|
|
8
|
-
* Registers an agent with the A2A registry.
|
|
9
|
-
* @param metadata The metadata to register.
|
|
10
|
-
* @returns A promise that resolves to the registration ID.
|
|
11
|
-
*/
|
|
12
|
-
export async function apiRegister(metadata) {
|
|
13
|
-
const restResponse = await fetch("https://api.artinet.io/register", {
|
|
14
|
-
method: "POST",
|
|
15
|
-
headers: {
|
|
16
|
-
"Content-Type": "application/json",
|
|
17
|
-
"Access-Control-Allow-Origin": "*",
|
|
18
|
-
"Access-Control-Allow-Headers": "*",
|
|
19
|
-
"Access-Control-Allow-Methods": "*",
|
|
20
|
-
"Access-Control-Allow-Credentials": "true",
|
|
21
|
-
},
|
|
22
|
-
body: JSON.stringify({
|
|
23
|
-
registrationPayload: metadata,
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
const response = await restResponse.json();
|
|
27
|
-
return JSON.parse(response.body).registrationResponse;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Converts an AgentCard object into a RegistrationSchema object.
|
|
31
|
-
* @param card The AgentCard to convert.
|
|
32
|
-
* @returns A RegistrationSchema object.
|
|
33
|
-
*/
|
|
34
|
-
export function convert(card) {
|
|
35
|
-
// Extract skill names for capabilities and tags, limiting capabilities to 5
|
|
36
|
-
const skillNames = card.skills.map((skill) => skill.name);
|
|
37
|
-
const capabilities = skillNames.slice(0, 5); // Type assertion based on slice limit
|
|
38
|
-
// Determine if authentication is required based on the agent card, ensuring type is boolean | undefined
|
|
39
|
-
const requiresAuth = !!card.security?.length;
|
|
40
|
-
const registration = {
|
|
41
|
-
schemaVersion: "1.0.0",
|
|
42
|
-
serviceName: card.name,
|
|
43
|
-
description: card.description ?? "sdk-generated registration for " + card.name,
|
|
44
|
-
version: card.version,
|
|
45
|
-
capabilities: capabilities,
|
|
46
|
-
tags: ["a2a"],
|
|
47
|
-
communication: {
|
|
48
|
-
endpoints: [
|
|
49
|
-
{
|
|
50
|
-
url: card.url,
|
|
51
|
-
type: "jsonrpc",
|
|
52
|
-
authentication: requiresAuth,
|
|
53
|
-
description: "Primary agent interaction endpoint",
|
|
54
|
-
protocols: ["jsonrpc-2.0", "a2a"],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
metadata: {
|
|
59
|
-
agentCard: card,
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
return registration;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Registers an agent with the A2A registry.
|
|
66
|
-
* @param card The AgentCard to register.
|
|
67
|
-
* @returns A promise that resolves to the registration ID.
|
|
68
|
-
*/
|
|
69
|
-
export async function register(card) {
|
|
70
|
-
if (!card) {
|
|
71
|
-
logWarn("A2AServer", "No card provided");
|
|
72
|
-
return "";
|
|
73
|
-
}
|
|
74
|
-
if (card.url === undefined ||
|
|
75
|
-
card.url === null ||
|
|
76
|
-
card.url === "" ||
|
|
77
|
-
card.url.includes("localhost") ||
|
|
78
|
-
card.url.includes("127.0.0.1")) {
|
|
79
|
-
logDebug("A2AServer", "Invalid URL provided", card.url);
|
|
80
|
-
return "";
|
|
81
|
-
}
|
|
82
|
-
try {
|
|
83
|
-
const registration = convert(card);
|
|
84
|
-
logInfo("A2AServer", "Registration", registration);
|
|
85
|
-
const validator = new MetadataValidator();
|
|
86
|
-
const { isValid, error: validationError } = await validator.validateMetadata(registration);
|
|
87
|
-
if (!isValid) {
|
|
88
|
-
logDebug("A2AServer", "Validation failed", validationError);
|
|
89
|
-
throw new Error(validationError);
|
|
90
|
-
}
|
|
91
|
-
const { success, error, registrationId } = await apiRegister(JSON.stringify(registration));
|
|
92
|
-
if (!success || !registrationId) {
|
|
93
|
-
logDebug("A2AServer", "API registration failed", error);
|
|
94
|
-
throw new Error(error);
|
|
95
|
-
}
|
|
96
|
-
logInfo("A2AServer", "Registration successful", registrationId);
|
|
97
|
-
return registrationId;
|
|
98
|
-
}
|
|
99
|
-
catch (error) {
|
|
100
|
-
//we dont want to throw an error here, because we want to allow the server to start even if registration fails
|
|
101
|
-
//we will log the error and return an empty string
|
|
102
|
-
//it is up to the developer to decide if they want to register their server or not
|
|
103
|
-
logWarn("A2AServer", "Registration failed", error);
|
|
104
|
-
return "";
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=register.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/utils/api/register.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAiB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,QAAgB;IAEhB,MAAM,YAAY,GAAQ,MAAM,KAAK,CAAC,iCAAiC,EAAE;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,6BAA6B,EAAE,GAAG;YAClC,8BAA8B,EAAE,GAAG;YACnC,8BAA8B,EAAE,GAAG;YACnC,kCAAkC,EAAE,MAAM;SAC3C;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACnB,mBAAmB,EAAE,QAAQ;SAC9B,CAAC;KACH,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC;AACxD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,IAAe;IACrC,4EAA4E;IAC5E,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtE,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,CAA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;IAED,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,OAAO,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QAEnD,MAAM,SAAS,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,GACvC,MAAM,SAAS,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,QAAQ,CAAC,WAAW,EAAE,mBAAmB,EAAE,eAAe,CAAC,CAAC;YAC5D,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACnC,CAAC;QACD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,MAAM,WAAW,CAC1D,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAC7B,CAAC;QACF,IAAI,CAAC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;YAChC,QAAQ,CAAC,WAAW,EAAE,yBAAyB,EAAE,KAAK,CAAC,CAAC;YACxD,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,CAAC,WAAW,EAAE,yBAAyB,EAAE,cAAc,CAAC,CAAC;QAChE,OAAO,cAAc,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,8GAA8G;QAC9G,kDAAkD;QAClD,kFAAkF;QAClF,OAAO,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
const env = process.env;
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
7
|
-
export var artinet;
|
|
8
|
-
(function (artinet) {
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
10
|
-
let v0;
|
|
11
|
-
(function (v0) {
|
|
12
|
-
/**
|
|
13
|
-
* Manages the execution of an agent's task.
|
|
14
|
-
* This function is intended to be used within an agent's code when deployed to a
|
|
15
|
-
* managed environment. It takes the agent's core task-handling generator function
|
|
16
|
-
* and iterates over its yielded updates, passing them to a proxy function
|
|
17
|
-
* made available by the host environment.
|
|
18
|
-
*
|
|
19
|
-
* The `TaskContext` and the `TaskProxy` (for yielding updates) are expected
|
|
20
|
-
* to be provided by the host environment via `process.env`.
|
|
21
|
-
*
|
|
22
|
-
* @param {TaskManagerProps} props - The properties for the task manager, including the taskHandler.
|
|
23
|
-
* @param {function(TaskContext): AsyncGenerator<any, any, unknown>} props.taskHandler - An asynchronous generator function that takes a `TaskContext`
|
|
24
|
-
* and yields updates, eventually returning a `Task` or void.
|
|
25
|
-
* @returns {Promise<void>} A promise that resolves when the task handler has completed.
|
|
26
|
-
* @throws An error if the `taskManagerStub` or `context` is not set in `process.env`,
|
|
27
|
-
* indicating an invalid runtime environment.
|
|
28
|
-
*/
|
|
29
|
-
v0.taskManager = async (props) => {
|
|
30
|
-
const { taskHandler } = props;
|
|
31
|
-
if (!env.taskManagerStub && !env.context) {
|
|
32
|
-
console.warn("taskManager: taskManagerStub or context is not set", "task-manager");
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const context = env.context;
|
|
36
|
-
const taskManagerProxy = env.taskManagerStub;
|
|
37
|
-
if (!taskManagerProxy || !context) {
|
|
38
|
-
console.warn("taskManager: taskManagerStub or context is not set", "task-manager");
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const generator = taskHandler(context);
|
|
42
|
-
for await (const yieldValue of generator) {
|
|
43
|
-
console.info("taskManager: yieldValue", "task-manager", yieldValue);
|
|
44
|
-
taskManagerProxy(yieldValue);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Establishes a connection or sends a request to another agent or service.
|
|
49
|
-
* This function proxies requests to a host-provided implementation, enabling
|
|
50
|
-
* agents in a managed environment to make external calls (e.g., to an LLM or another agent)
|
|
51
|
-
* without needing direct network access or credentials. The actual implementation
|
|
52
|
-
* is delegated to `env.connectStub`, provided by the host environment.
|
|
53
|
-
*
|
|
54
|
-
* @param {ConnectProps} props - The properties for the connect call, including the target agentID and messages.
|
|
55
|
-
* @param {string} props.agentID - The identifier of the target agent or LLM to which the request is directed.
|
|
56
|
-
* @param {object[]} props.messages - An array of messages forming the conversation history or prompt.
|
|
57
|
-
* @returns {Promise<string>} A promise that resolves to the string response from the target agent/LLM or a connection identifier.
|
|
58
|
-
* @throws An error if `env.connectStub` is not found,
|
|
59
|
-
* indicating an invalid runtime environment.
|
|
60
|
-
*/
|
|
61
|
-
v0.connect = async (props) => {
|
|
62
|
-
if (!env.connectStub) {
|
|
63
|
-
throw new Error("connectStub is not set");
|
|
64
|
-
}
|
|
65
|
-
const connectProxy = env.connectStub;
|
|
66
|
-
if (!connectProxy) {
|
|
67
|
-
throw new Error("connectStub is not set");
|
|
68
|
-
}
|
|
69
|
-
return connectProxy(props);
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Creates a client proxy for interacting with other agents or services.
|
|
73
|
-
* This function acts as a factory to obtain a `ClientProxy` instance.
|
|
74
|
-
* The actual implementation of the client factory is delegated to `env.clientStub`,
|
|
75
|
-
* provided by the host environment. This allows agents to communicate with
|
|
76
|
-
* other entities in a managed environment without direct awareness of the
|
|
77
|
-
* underlying communication mechanisms.
|
|
78
|
-
*
|
|
79
|
-
* @param {ClientProps} props - The properties for creating the client.
|
|
80
|
-
* @returns {ClientProxy} A proxy object for interacting with a client service or agent.
|
|
81
|
-
* @throws An error if `env.clientStub` is not found,
|
|
82
|
-
* indicating an invalid runtime environment.
|
|
83
|
-
*/
|
|
84
|
-
v0.agent = (props) => {
|
|
85
|
-
if (!env.clientStub) {
|
|
86
|
-
throw new Error("clientStub is not set");
|
|
87
|
-
}
|
|
88
|
-
const clientProxy = env.clientStub;
|
|
89
|
-
if (!clientProxy) {
|
|
90
|
-
throw new Error("clientStub is not set");
|
|
91
|
-
}
|
|
92
|
-
return clientProxy(props);
|
|
93
|
-
};
|
|
94
|
-
})(v0 = artinet.v0 || (artinet.v0 = {}));
|
|
95
|
-
})(artinet || (artinet = {}));
|
|
96
|
-
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/utils/deployment/agents.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;AAExB,2DAA2D;AAC3D,MAAM,KAAW,OAAO,CAmGvB;AAnGD,WAAiB,OAAO;IACtB,2DAA2D;IAC3D,IAAiB,EAAE,CAgGlB;IAhGD,WAAiB,EAAE;QACjB;;;;;;;;;;;;;;;;WAgBG;QACU,cAAW,GAAgB,KAAK,EAAE,KAAuB,EAAE,EAAE;YACxE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;YAC9B,IAAI,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;gBACzC,OAAO,CAAC,IAAI,CACV,oDAAoD,EACpD,cAAc,CACf,CAAC;gBACF,OAAO;YACT,CAAC;YAED,MAAM,OAAO,GAAG,GAAG,CAAC,OAAsC,CAAC;YAC3D,MAAM,gBAAgB,GAAG,GAAG,CAAC,eAAuC,CAAC;YAErE,IAAI,CAAC,gBAAgB,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,OAAO,CAAC,IAAI,CACV,oDAAoD,EACpD,cAAc,CACf,CAAC;gBACF,OAAO;YACT,CAAC;YAED,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;YACvC,IAAI,KAAK,EAAE,MAAM,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log.js";
|
|
6
|
-
import * as esbuild from "esbuild";
|
|
7
|
-
import { fileURLToPath } from "node:url";
|
|
8
|
-
/**
|
|
9
|
-
* Bundles a given JavaScript or TypeScript file into a single minified ES module string.
|
|
10
|
-
* This utility leverages `esbuild` for efficient bundling, minification, and sourcemap generation.
|
|
11
|
-
* It's designed to prepare agent code for deployment by packaging it and its local dependencies.
|
|
12
|
-
*
|
|
13
|
-
* @param filePath - The URL of the entry point file to bundle.
|
|
14
|
-
* @returns A promise that resolves to a string containing the bundled and minified code.
|
|
15
|
-
* @throws An error if the file path does not exist, is not a file, or if bundling fails for any reason.
|
|
16
|
-
*/
|
|
17
|
-
export async function bundle(filePath) {
|
|
18
|
-
const entryPath = fileURLToPath(filePath);
|
|
19
|
-
logDebug(`bundler: `, `Attempting to recursively read imports starting from:`, entryPath);
|
|
20
|
-
try {
|
|
21
|
-
const fs = await import("node:fs");
|
|
22
|
-
const stats = fs.statSync(entryPath);
|
|
23
|
-
if (!stats.isFile()) {
|
|
24
|
-
logError(`bundler: `, `Filepath is not a file:`, entryPath);
|
|
25
|
-
throw new Error(`// BUNDLING FAILED: Filepath is not a file: ${entryPath}`);
|
|
26
|
-
}
|
|
27
|
-
logDebug(`bundler: `, `Filepath exists:`, entryPath);
|
|
28
|
-
}
|
|
29
|
-
catch (err) {
|
|
30
|
-
logError(`bundler: `, `Filepath does not exist:`, entryPath);
|
|
31
|
-
throw new Error(`// BUNDLING FAILED: Filepath does not exist: ${entryPath}`);
|
|
32
|
-
}
|
|
33
|
-
try {
|
|
34
|
-
const result = await esbuild.build({
|
|
35
|
-
entryPoints: [entryPath],
|
|
36
|
-
bundle: true,
|
|
37
|
-
minify: true,
|
|
38
|
-
sourcemap: false,
|
|
39
|
-
platform: "node",
|
|
40
|
-
format: "esm",
|
|
41
|
-
write: false,
|
|
42
|
-
});
|
|
43
|
-
const output = result?.outputFiles?.[0]?.text ?? "";
|
|
44
|
-
logDebug(`bundler: Successfully read and bundled code:`, output.length.toString());
|
|
45
|
-
return output;
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
logError(`bundler: `, `Error during recursive read:`, err.message);
|
|
49
|
-
throw new Error(`// BUNDLING FAILED: ${err.message}`);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=bundler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../../src/utils/deployment/bundler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,QAAa;IACxC,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1C,QAAQ,CACN,WAAW,EACX,uDAAuD,EACvD,SAAS,CACV,CAAC;IACF,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,KAAK,GAAG,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;YACpB,QAAQ,CAAC,WAAW,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAC5D,MAAM,IAAI,KAAK,CACb,+CAA+C,SAAS,EAAE,CAC3D,CAAC;QACJ,CAAC;QACD,QAAQ,CAAC,WAAW,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,QAAQ,CAAC,WAAW,EAAE,0BAA0B,EAAE,SAAS,CAAC,CAAC;QAC7D,MAAM,IAAI,KAAK,CACb,gDAAgD,SAAS,EAAE,CAC5D,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC;YACjC,WAAW,EAAE,CAAC,SAAS,CAAC;YACxB,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC;QACpD,QAAQ,CACN,8CAA8C,EAC9C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CACzB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,QAAQ,CAAC,WAAW,EAAE,8BAA8B,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;QACnE,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 The Artinet Project
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { executeJsonRpcRequest } from "../../transport/index.js";
|
|
6
|
-
/**
|
|
7
|
-
* @description The base URL of the deployment server.
|
|
8
|
-
*/
|
|
9
|
-
const FULL_DEPLOYMENT_URL = new URL("https://agents.artinet.io/deploy");
|
|
10
|
-
/**
|
|
11
|
-
* @description The API key to use for the deployment.
|
|
12
|
-
*/
|
|
13
|
-
const API_KEY = process.env.ARTINET_API_KEY;
|
|
14
|
-
/**
|
|
15
|
-
* Sends a full deployment request to the server.
|
|
16
|
-
* @param baseUrl The base URL of the server.
|
|
17
|
-
* @param method The method to call.
|
|
18
|
-
* @param params The parameters to pass to the method.
|
|
19
|
-
* @param headers The headers to send with the request.
|
|
20
|
-
* @param acceptHeader The accept header to send with the request.
|
|
21
|
-
* @returns The response from the server.
|
|
22
|
-
*/
|
|
23
|
-
const executeFullDeploymentRequest = executeJsonRpcRequest;
|
|
24
|
-
/**
|
|
25
|
-
* Sends a full deployment request to the server.
|
|
26
|
-
* @param params The parameters to pass to the method.
|
|
27
|
-
* @returns The response from the server.
|
|
28
|
-
*/
|
|
29
|
-
export async function fullDeployment(params) {
|
|
30
|
-
if (!API_KEY && !process.env.ARTINET_API_KEY) {
|
|
31
|
-
throw new Error("ARTINET_API_KEY is not set");
|
|
32
|
-
}
|
|
33
|
-
return await executeFullDeploymentRequest(FULL_DEPLOYMENT_URL, "/deploy", params, { Authorization: `Bearer ${process.env.ARTINET_API_KEY}` }, "application/json");
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=full-deployment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"full-deployment.js","sourceRoot":"","sources":["../../../src/utils/deployment/full-deployment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,qBAAqB,EAAE,iCAA6B;AAO7D;;GAEG;AACH,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,kCAAkC,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;AAO5C;;;;;;;;GAQG;AACH,MAAM,4BAA4B,GAAG,qBAQwB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAAqC;IACxE,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,MAAM,4BAA4B,CACvC,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,EAAE,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,EAC1D,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/deployment/index.ts"],"names":[],"mappings":"AAAA,wDAAoD;AACpD,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|