@archships/dim-agent-sdk 0.0.1
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 +69 -0
- package/dist/agent-core/Agent.d.ts +29 -0
- package/dist/agent-core/LoopRunner.d.ts +30 -0
- package/dist/agent-core/MessageFactory.d.ts +20 -0
- package/dist/agent-core/ModelTurnCollector.d.ts +22 -0
- package/dist/agent-core/Session.d.ts +48 -0
- package/dist/agent-core/TerminationPolicy.d.ts +14 -0
- package/dist/agent-core/ToolExecutor.d.ts +27 -0
- package/dist/agent-core/agent-types.d.ts +26 -0
- package/dist/agent-core/createModel.d.ts +2 -0
- package/dist/agent-core/errors.d.ts +5 -0
- package/dist/agent-core/index.d.ts +13 -0
- package/dist/agent-core/session-state.d.ts +17 -0
- package/dist/agent-core/tool-call.d.ts +9 -0
- package/dist/context/AutoContextManager.d.ts +21 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/types.d.ts +19 -0
- package/dist/contracts/common.d.ts +19 -0
- package/dist/contracts/content-normalize.d.ts +6 -0
- package/dist/contracts/content.d.ts +16 -0
- package/dist/contracts/event.d.ts +30 -0
- package/dist/contracts/index.d.ts +9 -0
- package/dist/contracts/message.d.ts +32 -0
- package/dist/contracts/model.d.ts +73 -0
- package/dist/contracts/state.d.ts +14 -0
- package/dist/contracts/tool-normalize.d.ts +3 -0
- package/dist/contracts/tool.d.ts +40 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2997 -0
- package/dist/persistence/FileStateStore.d.ts +14 -0
- package/dist/persistence/InMemoryStateStore.d.ts +9 -0
- package/dist/persistence/SnapshotCodec.d.ts +20 -0
- package/dist/persistence/index.d.ts +6 -0
- package/dist/persistence/store.d.ts +7 -0
- package/dist/plugin-host/HookPipeline.d.ts +7 -0
- package/dist/plugin-host/PluginHost.d.ts +36 -0
- package/dist/plugin-host/helpers.d.ts +3 -0
- package/dist/plugin-host/index.d.ts +4 -0
- package/dist/plugin-host/types.d.ts +1 -0
- package/dist/providers/anthropic/adapter.d.ts +13 -0
- package/dist/providers/anthropic/mapper.d.ts +28 -0
- package/dist/providers/gemini/adapter.d.ts +12 -0
- package/dist/providers/gemini/mapper.d.ts +30 -0
- package/dist/providers/index.d.ts +8 -0
- package/dist/providers/openai/adapter.d.ts +12 -0
- package/dist/providers/openai/mapper.d.ts +15 -0
- package/dist/providers/openai-responses/adapter.d.ts +12 -0
- package/dist/providers/openai-responses/mapper.d.ts +40 -0
- package/dist/providers/shared/http-error.d.ts +7 -0
- package/dist/providers/shared/provider-state.d.ts +4 -0
- package/dist/providers/shared/reasoning.d.ts +14 -0
- package/dist/providers/shared/tool-call.d.ts +5 -0
- package/dist/providers/shared/usage.d.ts +2 -0
- package/dist/services/ExecGateway.d.ts +14 -0
- package/dist/services/FileSystemGateway.d.ts +35 -0
- package/dist/services/GitGateway.d.ts +17 -0
- package/dist/services/ModelGateway.d.ts +7 -0
- package/dist/services/NetworkGateway.d.ts +6 -0
- package/dist/services/PermissionGateway.d.ts +11 -0
- package/dist/services/activity.d.ts +10 -0
- package/dist/services/index.d.ts +10 -0
- package/dist/services/permissions.d.ts +17 -0
- package/dist/services/types.d.ts +77 -0
- package/dist/tools/BaseTool.d.ts +6 -0
- package/dist/tools/ToolRegistry.d.ts +9 -0
- package/dist/tools/builtins/EditTool.d.ts +6 -0
- package/dist/tools/builtins/ExecTool.d.ts +6 -0
- package/dist/tools/builtins/ReadTool.d.ts +6 -0
- package/dist/tools/builtins/WriteTool.d.ts +6 -0
- package/dist/tools/builtins/index.d.ts +4 -0
- package/dist/tools/builtins/utils.d.ts +6 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/result.d.ts +3 -0
- package/dist/utils/guards.d.ts +2 -0
- package/dist/utils/id.d.ts +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/usage.d.ts +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createId(prefix: string): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@archships/dim-agent-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "An agent-first TypeScript SDK with provider adapters, sessions, hooks, plugins, and runtime gateways.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"bun": "./src/index.ts",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/**/*"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target node --format esm && tsc --project tsconfig.build.json",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"test": "bun test",
|
|
25
|
+
"prepack": "bun run build",
|
|
26
|
+
"demo:openai": "bun run demo/openai-tools.ts",
|
|
27
|
+
"bump": "bumpp --commit --no-verify --no-tag --no-push",
|
|
28
|
+
"release": "bun run bump && bun run build && bun publish",
|
|
29
|
+
"release:check": "bun run build && npm pack --dry-run"
|
|
30
|
+
},
|
|
31
|
+
"license": "UNLICENSED",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+ssh://git@gitlab.bfbops.com/nextim/dim-sdk.git"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://gitlab.bfbops.com/nextim/dim-sdk",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://gitlab.bfbops.com/nextim/dim-sdk/-/issues"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"agent",
|
|
42
|
+
"sdk",
|
|
43
|
+
"llm",
|
|
44
|
+
"ai",
|
|
45
|
+
"tools",
|
|
46
|
+
"plugins"
|
|
47
|
+
],
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@archships/dim-plugin-api": "^0.0.1"
|
|
53
|
+
}
|
|
54
|
+
}
|