@di-code/coding-agent 0.1.6 → 0.1.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 +112 -68
- package/compositions/base.yml +54 -0
- package/compositions/interactive.yml +14 -0
- package/compositions/json.yml +6 -0
- package/compositions/print.yml +5 -0
- package/compositions/rpc.yml +12 -0
- package/compositions/webui.yml +9 -0
- package/dist/cli.d.ts +22 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +97 -3
- package/dist/cli.js.map +1 -1
- package/dist/composition-loader-entry.d.ts +11 -0
- package/dist/composition-loader-entry.d.ts.map +1 -0
- package/dist/composition-loader-entry.js +12 -0
- package/dist/composition-loader-entry.js.map +1 -0
- package/dist/compositions.d.ts +32 -0
- package/dist/compositions.d.ts.map +1 -0
- package/dist/compositions.js +173 -0
- package/dist/compositions.js.map +1 -0
- package/dist/core/session/session-manager.d.ts +9 -2
- package/dist/core/session/session-manager.d.ts.map +1 -1
- package/dist/core/session/session-manager.js +28 -0
- package/dist/core/session/session-manager.js.map +1 -1
- package/dist/core/session/session-storage.d.ts.map +1 -1
- package/dist/core/session/session-storage.js +20 -3
- package/dist/core/session/session-storage.js.map +1 -1
- package/dist/core/session/types.d.ts +11 -2
- package/dist/core/session/types.d.ts.map +1 -1
- package/dist/core/session/types.js.map +1 -1
- package/dist/core/session-tools.d.ts +5 -0
- package/dist/core/session-tools.d.ts.map +1 -0
- package/dist/core/session-tools.js +17 -0
- package/dist/core/session-tools.js.map +1 -0
- package/dist/core/session.d.ts +21 -7
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +77 -41
- package/dist/core/session.js.map +1 -1
- package/dist/core/tools/bash.d.ts +1 -38
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +1 -207
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +1 -24
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +1 -135
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts +1 -26
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +1 -140
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/file-mutation-queue.d.ts +1 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/dist/core/tools/file-mutation-queue.js +1 -23
- package/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/dist/core/tools/file-search.d.ts +1 -13
- package/dist/core/tools/file-search.d.ts.map +1 -1
- package/dist/core/tools/file-search.js +1 -98
- package/dist/core/tools/file-search.js.map +1 -1
- package/dist/core/tools/glob.d.ts +1 -10
- package/dist/core/tools/glob.d.ts.map +1 -1
- package/dist/core/tools/glob.js +1 -43
- package/dist/core/tools/glob.js.map +1 -1
- package/dist/core/tools/grep.d.ts +1 -12
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +1 -66
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/load-skill.d.ts +1 -9
- package/dist/core/tools/load-skill.d.ts.map +1 -1
- package/dist/core/tools/load-skill.js +1 -21
- package/dist/core/tools/load-skill.js.map +1 -1
- package/dist/core/tools/path-boundary.d.ts +1 -4
- package/dist/core/tools/path-boundary.d.ts.map +1 -1
- package/dist/core/tools/path-boundary.js +1 -65
- package/dist/core/tools/path-boundary.js.map +1 -1
- package/dist/core/tools/read.d.ts +1 -16
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +1 -131
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/write.d.ts +1 -16
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +1 -44
- package/dist/core/tools/write.js.map +1 -1
- package/dist/entry.js +30 -28
- package/dist/entry.js.map +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +2 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/interactive/builtin.d.ts +17 -0
- package/dist/interactive/builtin.d.ts.map +1 -0
- package/dist/interactive/builtin.js +47 -0
- package/dist/interactive/builtin.js.map +1 -0
- package/dist/interactive/controller.d.ts +85 -0
- package/dist/interactive/controller.d.ts.map +1 -0
- package/dist/interactive/controller.js +211 -0
- package/dist/interactive/controller.js.map +1 -0
- package/dist/interactive/index.d.ts +3 -0
- package/dist/interactive/index.d.ts.map +1 -0
- package/dist/interactive/index.js +3 -0
- package/dist/interactive/index.js.map +1 -0
- package/dist/interactive-host-entry.d.ts +7 -0
- package/dist/interactive-host-entry.d.ts.map +1 -0
- package/dist/interactive-host-entry.js +123 -0
- package/dist/interactive-host-entry.js.map +1 -0
- package/dist/interactive-profile.d.ts +18 -0
- package/dist/interactive-profile.d.ts.map +1 -0
- package/dist/interactive-profile.js +290 -0
- package/dist/interactive-profile.js.map +1 -0
- package/dist/interactive-resources-entry.d.ts +7 -0
- package/dist/interactive-resources-entry.d.ts.map +1 -0
- package/dist/interactive-resources-entry.js +42 -0
- package/dist/interactive-resources-entry.js.map +1 -0
- package/dist/legacy-main.d.ts +39 -0
- package/dist/legacy-main.d.ts.map +1 -0
- package/dist/legacy-main.js +611 -0
- package/dist/legacy-main.js.map +1 -0
- package/dist/main.d.ts +15 -34
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +130 -513
- package/dist/main.js.map +1 -1
- package/dist/mcp/entries.d.ts +42 -0
- package/dist/mcp/entries.d.ts.map +1 -0
- package/dist/mcp/entries.js +98 -0
- package/dist/mcp/entries.js.map +1 -0
- package/dist/mcp-client-entry.d.ts +5 -0
- package/dist/mcp-client-entry.d.ts.map +1 -0
- package/dist/mcp-client-entry.js +6 -0
- package/dist/mcp-client-entry.js.map +1 -0
- package/dist/mcp-config-entry.d.ts +5 -0
- package/dist/mcp-config-entry.d.ts.map +1 -0
- package/dist/mcp-config-entry.js +6 -0
- package/dist/mcp-config-entry.js.map +1 -0
- package/dist/mcp-tools-entry.d.ts +5 -0
- package/dist/mcp-tools-entry.d.ts.map +1 -0
- package/dist/mcp-tools-entry.js +6 -0
- package/dist/mcp-tools-entry.js.map +1 -0
- package/dist/mcp-transport-entry.d.ts +5 -0
- package/dist/mcp-transport-entry.d.ts.map +1 -0
- package/dist/mcp-transport-entry.js +6 -0
- package/dist/mcp-transport-entry.js.map +1 -0
- package/dist/modes/interactive-entry.d.ts +18 -0
- package/dist/modes/interactive-entry.d.ts.map +1 -0
- package/dist/modes/interactive-entry.js +21 -0
- package/dist/modes/interactive-entry.js.map +1 -0
- package/dist/modes/interactive-state.js +1 -1
- package/dist/modes/interactive-state.js.map +1 -1
- package/dist/modes/interactive.d.ts +16 -6
- package/dist/modes/interactive.d.ts.map +1 -1
- package/dist/modes/interactive.js +99 -33
- package/dist/modes/interactive.js.map +1 -1
- package/dist/modes/json-entry.d.ts +13 -0
- package/dist/modes/json-entry.d.ts.map +1 -0
- package/dist/modes/json-entry.js +14 -0
- package/dist/modes/json-entry.js.map +1 -0
- package/dist/modes/json.d.ts +4 -1
- package/dist/modes/json.d.ts.map +1 -1
- package/dist/modes/json.js +3 -3
- package/dist/modes/json.js.map +1 -1
- package/dist/modes/print-entry.d.ts +10 -0
- package/dist/modes/print-entry.d.ts.map +1 -0
- package/dist/modes/print-entry.js +11 -0
- package/dist/modes/print-entry.js.map +1 -0
- package/dist/modes/tree-selector.d.ts.map +1 -1
- package/dist/modes/tree-selector.js +4 -0
- package/dist/modes/tree-selector.js.map +1 -1
- package/dist/plugin-dump-composition.d.ts +6 -0
- package/dist/plugin-dump-composition.d.ts.map +1 -0
- package/dist/plugin-dump-composition.js +7 -0
- package/dist/plugin-dump-composition.js.map +1 -0
- package/dist/plugin-inventory.d.ts +7 -0
- package/dist/plugin-inventory.d.ts.map +1 -0
- package/dist/plugin-inventory.js +8 -0
- package/dist/plugin-inventory.js.map +1 -0
- package/dist/plugin-manager.d.ts +6 -0
- package/dist/plugin-manager.d.ts.map +1 -0
- package/dist/plugin-manager.js +7 -0
- package/dist/plugin-manager.js.map +1 -0
- package/dist/plugin-trace.d.ts +6 -0
- package/dist/plugin-trace.d.ts.map +1 -0
- package/dist/plugin-trace.js +7 -0
- package/dist/plugin-trace.js.map +1 -0
- package/dist/plugins/dynamic-broker.d.ts +76 -0
- package/dist/plugins/dynamic-broker.d.ts.map +1 -0
- package/dist/plugins/dynamic-broker.js +852 -0
- package/dist/plugins/dynamic-broker.js.map +1 -0
- package/dist/plugins/profile.d.ts +15 -0
- package/dist/plugins/profile.d.ts.map +1 -0
- package/dist/plugins/profile.js +34 -0
- package/dist/plugins/profile.js.map +1 -0
- package/dist/plugins/runtime-host.d.ts +37 -0
- package/dist/plugins/runtime-host.d.ts.map +1 -0
- package/dist/plugins/runtime-host.js +95 -0
- package/dist/plugins/runtime-host.js.map +1 -0
- package/dist/plugins/trust.d.ts +8 -0
- package/dist/plugins/trust.d.ts.map +1 -0
- package/dist/plugins/trust.js +59 -0
- package/dist/plugins/trust.js.map +1 -0
- package/dist/project-trust-entry.d.ts +15 -0
- package/dist/project-trust-entry.d.ts.map +1 -0
- package/dist/project-trust-entry.js +15 -0
- package/dist/project-trust-entry.js.map +1 -0
- package/dist/rpc/client.d.ts +78 -6
- package/dist/rpc/client.d.ts.map +1 -1
- package/dist/rpc/client.js +172 -4
- package/dist/rpc/client.js.map +1 -1
- package/dist/rpc/dispatcher.d.ts +121 -0
- package/dist/rpc/dispatcher.d.ts.map +1 -0
- package/dist/rpc/dispatcher.js +994 -0
- package/dist/rpc/dispatcher.js.map +1 -0
- package/dist/rpc/index.d.ts +2 -0
- package/dist/rpc/index.d.ts.map +1 -1
- package/dist/rpc/index.js +2 -0
- package/dist/rpc/index.js.map +1 -1
- package/dist/rpc/lifecycle.d.ts +6 -0
- package/dist/rpc/lifecycle.d.ts.map +1 -0
- package/dist/rpc/lifecycle.js +24 -0
- package/dist/rpc/lifecycle.js.map +1 -0
- package/dist/rpc/protocol.d.ts +112 -31
- package/dist/rpc/protocol.d.ts.map +1 -1
- package/dist/rpc/protocol.js +569 -117
- package/dist/rpc/protocol.js.map +1 -1
- package/dist/rpc/server-service.d.ts +7 -0
- package/dist/rpc/server-service.d.ts.map +1 -0
- package/dist/rpc/server-service.js +3 -0
- package/dist/rpc/server-service.js.map +1 -0
- package/dist/rpc/server.d.ts +16 -19
- package/dist/rpc/server.d.ts.map +1 -1
- package/dist/rpc/server.js +59 -115
- package/dist/rpc/server.js.map +1 -1
- package/dist/rpc-client-sdk-entry.d.ts +12 -0
- package/dist/rpc-client-sdk-entry.d.ts.map +1 -0
- package/dist/rpc-client-sdk-entry.js +11 -0
- package/dist/rpc-client-sdk-entry.js.map +1 -0
- package/dist/rpc-entry.js +50 -18
- package/dist/rpc-entry.js.map +1 -1
- package/dist/rpc-server-entry.d.ts +8 -0
- package/dist/rpc-server-entry.d.ts.map +1 -0
- package/dist/rpc-server-entry.js +67 -0
- package/dist/rpc-server-entry.js.map +1 -0
- package/dist/runtime/attachment-store.d.ts +13 -0
- package/dist/runtime/attachment-store.d.ts.map +1 -0
- package/dist/runtime/attachment-store.js +93 -0
- package/dist/runtime/attachment-store.js.map +1 -0
- package/dist/runtime/bootstrap.d.ts +14 -0
- package/dist/runtime/bootstrap.d.ts.map +1 -0
- package/dist/runtime/bootstrap.js +29 -0
- package/dist/runtime/bootstrap.js.map +1 -0
- package/dist/runtime/interactive-host-service.d.ts +22 -0
- package/dist/runtime/interactive-host-service.d.ts.map +1 -0
- package/dist/runtime/interactive-host-service.js +2 -0
- package/dist/runtime/interactive-host-service.js.map +1 -0
- package/dist/runtime/interactive-resource-service.d.ts +11 -0
- package/dist/runtime/interactive-resource-service.d.ts.map +1 -0
- package/dist/runtime/interactive-resource-service.js +3 -0
- package/dist/runtime/interactive-resource-service.js.map +1 -0
- package/dist/runtime/plugin-inventory-entry.d.ts +5 -0
- package/dist/runtime/plugin-inventory-entry.d.ts.map +1 -0
- package/dist/runtime/plugin-inventory-entry.js +18 -0
- package/dist/runtime/plugin-inventory-entry.js.map +1 -0
- package/dist/runtime/plugin-inventory-service.d.ts +8 -0
- package/dist/runtime/plugin-inventory-service.d.ts.map +1 -0
- package/dist/runtime/plugin-inventory-service.js +3 -0
- package/dist/runtime/plugin-inventory-service.js.map +1 -0
- package/dist/runtime/plugin-manager-entry.d.ts +20 -0
- package/dist/runtime/plugin-manager-entry.d.ts.map +1 -0
- package/dist/runtime/plugin-manager-entry.js +96 -0
- package/dist/runtime/plugin-manager-entry.js.map +1 -0
- package/dist/runtime/plugin-observability-entry.d.ts +12 -0
- package/dist/runtime/plugin-observability-entry.d.ts.map +1 -0
- package/dist/runtime/plugin-observability-entry.js +73 -0
- package/dist/runtime/plugin-observability-entry.js.map +1 -0
- package/dist/runtime/product-host.d.ts +91 -0
- package/dist/runtime/product-host.d.ts.map +1 -0
- package/dist/runtime/product-host.js +529 -0
- package/dist/runtime/product-host.js.map +1 -0
- package/dist/runtime/session-factory.d.ts +17 -0
- package/dist/runtime/session-factory.d.ts.map +1 -0
- package/dist/runtime/session-factory.js +75 -0
- package/dist/runtime/session-factory.js.map +1 -0
- package/dist/runtime/session-host.d.ts +152 -0
- package/dist/runtime/session-host.d.ts.map +1 -0
- package/dist/runtime/session-host.js +895 -0
- package/dist/runtime/session-host.js.map +1 -0
- package/dist/runtime-core-entry.d.ts +11 -0
- package/dist/runtime-core-entry.d.ts.map +1 -0
- package/dist/runtime-core-entry.js +9 -0
- package/dist/runtime-core-entry.js.map +1 -0
- package/dist/session-factory-entry.d.ts +7 -0
- package/dist/session-factory-entry.d.ts.map +1 -0
- package/dist/session-factory-entry.js +9 -0
- package/dist/session-factory-entry.js.map +1 -0
- package/dist/session-store-jsonl-entry.d.ts +7 -0
- package/dist/session-store-jsonl-entry.d.ts.map +1 -0
- package/dist/session-store-jsonl-entry.js +33 -0
- package/dist/session-store-jsonl-entry.js.map +1 -0
- package/dist/startup.d.ts +21 -1
- package/dist/startup.d.ts.map +1 -1
- package/dist/startup.js +179 -10
- package/dist/startup.js.map +1 -1
- package/dist/subagents/index.d.ts +2 -0
- package/dist/subagents/index.d.ts.map +1 -0
- package/dist/subagents/index.js +2 -0
- package/dist/subagents/index.js.map +1 -0
- package/dist/subagents/service.d.ts +50 -0
- package/dist/subagents/service.d.ts.map +1 -0
- package/dist/subagents/service.js +521 -0
- package/dist/subagents/service.js.map +1 -0
- package/dist/ui-host.d.ts +125 -0
- package/dist/ui-host.d.ts.map +1 -0
- package/dist/ui-host.js +275 -0
- package/dist/ui-host.js.map +1 -0
- package/dist/web/assets/index-BwfuGMvv.css +1 -0
- package/dist/web/assets/index-DPUaJqFJ.js +41 -0
- package/dist/web/assets/index-DPUaJqFJ.js.map +1 -0
- package/dist/web/index.html +14 -0
- package/dist/web-command.d.ts +11 -0
- package/dist/web-command.d.ts.map +1 -0
- package/dist/web-command.js +114 -0
- package/dist/web-command.js.map +1 -0
- package/dist/web-frontend.d.ts +73 -0
- package/dist/web-frontend.d.ts.map +1 -0
- package/dist/web-frontend.js +249 -0
- package/dist/web-frontend.js.map +1 -0
- package/dist/web.d.ts +254 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +740 -0
- package/dist/web.js.map +1 -0
- package/dist/webui-entry.d.ts +3 -0
- package/dist/webui-entry.d.ts.map +1 -0
- package/dist/webui-entry.js +73 -0
- package/dist/webui-entry.js.map +1 -0
- package/dist/webui.d.ts +91 -0
- package/dist/webui.d.ts.map +1 -0
- package/dist/webui.js +882 -0
- package/dist/webui.js.map +1 -0
- package/package.json +89 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-dump-composition.d.ts","sourceRoot":"","sources":["../src/plugin-dump-composition.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,yCAAyC,CAAC;AACjD,eAAO,MAAM,UAAU,oBAAmC,CAAC;AAC3D,eAAO,MAAM,IAAI,QAA6B,CAAC;AAC/C,eAAO,MAAM,OAAO,oBAAgC,CAAC;AACrD,eAAO,MAAM,KAAK,wDAA8B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { pluginDumpComposition } from "./runtime/plugin-observability-entry.js";
|
|
2
|
+
export { pluginDumpComposition, pluginDumpCompositionKey, } from "./runtime/plugin-observability-entry.js";
|
|
3
|
+
export const apiVersion = pluginDumpComposition.apiVersion;
|
|
4
|
+
export const name = pluginDumpComposition.name;
|
|
5
|
+
export const version = pluginDumpComposition.version;
|
|
6
|
+
export const apply = pluginDumpComposition.apply;
|
|
7
|
+
//# sourceMappingURL=plugin-dump-composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-dump-composition.js","sourceRoot":"","sources":["../src/plugin-dump-composition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EAEN,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,yCAAyC,CAAC;AACjD,MAAM,CAAC,MAAM,UAAU,GAAG,qBAAqB,CAAC,UAAU,CAAC;AAC3D,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC;AACrD,MAAM,CAAC,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,CAAC","sourcesContent":["import { pluginDumpComposition } from \"./runtime/plugin-observability-entry.ts\";\n\nexport {\n\ttype PluginObservationService,\n\tpluginDumpComposition,\n\tpluginDumpCompositionKey,\n} from \"./runtime/plugin-observability-entry.ts\";\nexport const apiVersion = pluginDumpComposition.apiVersion;\nexport const name = pluginDumpComposition.name;\nexport const version = pluginDumpComposition.version;\nexport const apply = pluginDumpComposition.apply;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { pluginInventory } from "./runtime/plugin-inventory-entry.ts";
|
|
2
|
+
export { type PluginInventoryService, pluginInventoryKey } from "./runtime/plugin-inventory-service.ts";
|
|
3
|
+
export declare const apiVersion: number | undefined;
|
|
4
|
+
export declare const name: string;
|
|
5
|
+
export declare const version: string | undefined;
|
|
6
|
+
export declare const apply: import("@di-code/plugin-runtime").PluginApply<unknown>;
|
|
7
|
+
//# sourceMappingURL=plugin-inventory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-inventory.d.ts","sourceRoot":"","sources":["../src/plugin-inventory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,KAAK,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACxG,eAAO,MAAM,UAAU,oBAA6B,CAAC;AACrD,eAAO,MAAM,IAAI,QAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,oBAA0B,CAAC;AAC/C,eAAO,MAAM,KAAK,wDAAwB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { pluginInventory } from "./runtime/plugin-inventory-entry.js";
|
|
2
|
+
export { pluginInventory } from "./runtime/plugin-inventory-entry.js";
|
|
3
|
+
export { pluginInventoryKey } from "./runtime/plugin-inventory-service.js";
|
|
4
|
+
export const apiVersion = pluginInventory.apiVersion;
|
|
5
|
+
export const name = pluginInventory.name;
|
|
6
|
+
export const version = pluginInventory.version;
|
|
7
|
+
export const apply = pluginInventory.apply;
|
|
8
|
+
//# sourceMappingURL=plugin-inventory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-inventory.js","sourceRoot":"","sources":["../src/plugin-inventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAA+B,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACxG,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC;AACrD,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;AACzC,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;AAC/C,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC","sourcesContent":["import { pluginInventory } from \"./runtime/plugin-inventory-entry.ts\";\n\nexport { pluginInventory } from \"./runtime/plugin-inventory-entry.ts\";\nexport { type PluginInventoryService, pluginInventoryKey } from \"./runtime/plugin-inventory-service.ts\";\nexport const apiVersion = pluginInventory.apiVersion;\nexport const name = pluginInventory.name;\nexport const version = pluginInventory.version;\nexport const apply = pluginInventory.apply;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { type PluginManagementAction, type PluginManagementCommand, type PluginManagerEntryConfig, type PluginManagerService, pluginManager, pluginManagerKey, } from "./runtime/plugin-manager-entry.ts";
|
|
2
|
+
export declare const apiVersion: number | undefined;
|
|
3
|
+
export declare const name: string;
|
|
4
|
+
export declare const version: string | undefined;
|
|
5
|
+
export declare const apply: import("@di-code/plugin-runtime").PluginApply<import("./runtime/plugin-manager-entry.ts").PluginManagerEntryConfig>;
|
|
6
|
+
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.d.ts","sourceRoot":"","sources":["../src/plugin-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,aAAa,EACb,gBAAgB,GAChB,MAAM,mCAAmC,CAAC;AAC3C,eAAO,MAAM,UAAU,oBAA2B,CAAC;AACnD,eAAO,MAAM,IAAI,QAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,oBAAwB,CAAC;AAC7C,eAAO,MAAM,KAAK,qHAAsB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { pluginManager } from "./runtime/plugin-manager-entry.js";
|
|
2
|
+
export { pluginManager, pluginManagerKey, } from "./runtime/plugin-manager-entry.js";
|
|
3
|
+
export const apiVersion = pluginManager.apiVersion;
|
|
4
|
+
export const name = pluginManager.name;
|
|
5
|
+
export const version = pluginManager.version;
|
|
6
|
+
export const apply = pluginManager.apply;
|
|
7
|
+
//# sourceMappingURL=plugin-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.js","sourceRoot":"","sources":["../src/plugin-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAKN,aAAa,EACb,gBAAgB,GAChB,MAAM,mCAAmC,CAAC;AAC3C,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;AACnD,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC","sourcesContent":["import { pluginManager } from \"./runtime/plugin-manager-entry.ts\";\n\nexport {\n\ttype PluginManagementAction,\n\ttype PluginManagementCommand,\n\ttype PluginManagerEntryConfig,\n\ttype PluginManagerService,\n\tpluginManager,\n\tpluginManagerKey,\n} from \"./runtime/plugin-manager-entry.ts\";\nexport const apiVersion = pluginManager.apiVersion;\nexport const name = pluginManager.name;\nexport const version = pluginManager.version;\nexport const apply = pluginManager.apply;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { type PluginObservationService, pluginTrace, pluginTraceKey } from "./runtime/plugin-observability-entry.ts";
|
|
2
|
+
export declare const apiVersion: number | undefined;
|
|
3
|
+
export declare const name: string;
|
|
4
|
+
export declare const version: string | undefined;
|
|
5
|
+
export declare const apply: import("@di-code/plugin-runtime").PluginApply<unknown>;
|
|
6
|
+
//# sourceMappingURL=plugin-trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-trace.d.ts","sourceRoot":"","sources":["../src/plugin-trace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACrH,eAAO,MAAM,UAAU,oBAAyB,CAAC;AACjD,eAAO,MAAM,IAAI,QAAmB,CAAC;AACrC,eAAO,MAAM,OAAO,oBAAsB,CAAC;AAC3C,eAAO,MAAM,KAAK,wDAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { pluginTrace } from "./runtime/plugin-observability-entry.js";
|
|
2
|
+
export { pluginTrace, pluginTraceKey } from "./runtime/plugin-observability-entry.js";
|
|
3
|
+
export const apiVersion = pluginTrace.apiVersion;
|
|
4
|
+
export const name = pluginTrace.name;
|
|
5
|
+
export const version = pluginTrace.version;
|
|
6
|
+
export const apply = pluginTrace.apply;
|
|
7
|
+
//# sourceMappingURL=plugin-trace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-trace.js","sourceRoot":"","sources":["../src/plugin-trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAiC,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACrH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;AACjD,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;AAC3C,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC","sourcesContent":["import { pluginTrace } from \"./runtime/plugin-observability-entry.ts\";\n\nexport { type PluginObservationService, pluginTrace, pluginTraceKey } from \"./runtime/plugin-observability-entry.ts\";\nexport const apiVersion = pluginTrace.apiVersion;\nexport const name = pluginTrace.name;\nexport const version = pluginTrace.version;\nexport const apply = pluginTrace.apply;\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { AgentContextProvider, AgentRequestContext, AgentTool } from "@di-code/agent";
|
|
2
|
+
import { type ActiveRunSnapshot, type DynamicPackageDefinition, type DynamicPackageSnapshot, type DynamicPluginContext as DynamicPluginContextWire, DynamicPluginRuntime } from "@di-code/plugin-runtime";
|
|
3
|
+
export interface DynamicPluginApproval {
|
|
4
|
+
readonly pluginId: string;
|
|
5
|
+
readonly version: string;
|
|
6
|
+
readonly capabilities: readonly string[];
|
|
7
|
+
readonly sourceHash: string;
|
|
8
|
+
readonly sourceBytes: number;
|
|
9
|
+
readonly impact: "executes-session-code";
|
|
10
|
+
}
|
|
11
|
+
export interface DynamicPluginBrokerOptions {
|
|
12
|
+
readonly cwd: string;
|
|
13
|
+
readonly mode: "interactive" | "print" | "json";
|
|
14
|
+
readonly model?: string;
|
|
15
|
+
readonly projectTrusted?: boolean;
|
|
16
|
+
readonly reservedToolNames?: readonly string[];
|
|
17
|
+
readonly allowDynamicPlugins?: boolean;
|
|
18
|
+
readonly confirmRun?: (approval: DynamicPluginApproval) => boolean | Promise<boolean>;
|
|
19
|
+
readonly onDiagnostic?: (diagnostic: DynamicPluginDiagnostic) => void;
|
|
20
|
+
readonly killGraceMs?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface DynamicPluginDiagnostic {
|
|
23
|
+
readonly pluginId?: string;
|
|
24
|
+
readonly runId?: string;
|
|
25
|
+
readonly stage: "approval" | "spawn" | "protocol" | "stderr" | "timeout" | "exit" | "cleanup";
|
|
26
|
+
readonly message: string;
|
|
27
|
+
}
|
|
28
|
+
export interface DynamicPluginContext extends DynamicPluginContextWire {
|
|
29
|
+
readonly signal?: AbortSignal;
|
|
30
|
+
}
|
|
31
|
+
/** Owns dynamic plugin child processes and never executes dynamic source in the host process. */
|
|
32
|
+
export declare class DynamicPluginBroker {
|
|
33
|
+
readonly runtime: DynamicPluginRuntime;
|
|
34
|
+
private readonly options;
|
|
35
|
+
private reservedToolNames;
|
|
36
|
+
private readonly runs;
|
|
37
|
+
private readonly current;
|
|
38
|
+
private sessionStartEvent?;
|
|
39
|
+
private disposed;
|
|
40
|
+
constructor(options: DynamicPluginBrokerOptions);
|
|
41
|
+
/** Adds host-owned tool names that dynamic capabilities must not shadow. */
|
|
42
|
+
setReservedToolNames(names: readonly string[]): void;
|
|
43
|
+
define(definition: DynamicPackageDefinition): DynamicPackageSnapshot;
|
|
44
|
+
inspect(): import("@di-code/plugin-runtime").DynamicPluginInspection;
|
|
45
|
+
run(packageId: string, signal?: AbortSignal): Promise<ActiveRunSnapshot>;
|
|
46
|
+
update(definition: DynamicPackageDefinition, signal?: AbortSignal): Promise<ActiveRunSnapshot>;
|
|
47
|
+
stop(runId: string): Promise<ActiveRunSnapshot>;
|
|
48
|
+
remove(packageId: string): Promise<void>;
|
|
49
|
+
dispose(): Promise<void>;
|
|
50
|
+
/** Exposes the broker as model tools; execution remains subject to approval and mode checks. */
|
|
51
|
+
createTools(): readonly AgentTool[];
|
|
52
|
+
/** Resolves active dynamic capabilities into the Agent request snapshot. */
|
|
53
|
+
getContextProvider(): AgentContextProvider;
|
|
54
|
+
resolveContext(signal?: AbortSignal): Promise<AgentRequestContext>;
|
|
55
|
+
/** Delivers an Agent lifecycle event to active dynamic event capabilities. */
|
|
56
|
+
emit(event: {
|
|
57
|
+
readonly type: string;
|
|
58
|
+
} & Record<string, unknown>, signal?: AbortSignal): Promise<void>;
|
|
59
|
+
private deliverEvent;
|
|
60
|
+
private activeRuns;
|
|
61
|
+
private createDynamicTool;
|
|
62
|
+
private createDynamicMiddleware;
|
|
63
|
+
private invoke;
|
|
64
|
+
private approve;
|
|
65
|
+
private spawnChild;
|
|
66
|
+
private createRun;
|
|
67
|
+
private acceptChildRecord;
|
|
68
|
+
private resolveInvocation;
|
|
69
|
+
private resolveMiddlewareNext;
|
|
70
|
+
private fail;
|
|
71
|
+
private stopRun;
|
|
72
|
+
private kill;
|
|
73
|
+
private reportDiagnostic;
|
|
74
|
+
private assertOpen;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=dynamic-broker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-broker.d.ts","sourceRoot":"","sources":["../../src/plugins/dynamic-broker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,SAAS,EAA2B,MAAM,gBAAgB,CAAC;AAEpH,OAAO,EACN,KAAK,iBAAiB,EAGtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,IAAI,wBAAwB,EAErD,oBAAoB,EAKpB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,iBAAi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