@jini-ai/daemon 0.3.8 → 0.5.0
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/CHANGELOG.md +119 -0
- package/README.md +50 -8
- package/dist/agent-executor/contracts.d.ts +736 -0
- package/dist/agent-executor/contracts.js +28 -0
- package/dist/agent-executor/event-translation.d.ts +87 -0
- package/dist/agent-executor/event-translation.js +230 -0
- package/dist/agent-executor/events.d.ts +190 -0
- package/dist/agent-executor/events.js +848 -0
- package/dist/agent-executor/handoff.d.ts +18 -0
- package/dist/agent-executor/handoff.js +16 -0
- package/dist/agent-executor/index.d.ts +98 -0
- package/dist/agent-executor/index.js +98 -0
- package/dist/agent-executor/launch.d.ts +375 -0
- package/dist/agent-executor/launch.js +1001 -0
- package/dist/agent-executor/mcp-bridge.d.ts +338 -0
- package/dist/agent-executor/mcp-bridge.js +835 -0
- package/dist/agent-executor/values.d.ts +5 -0
- package/dist/agent-executor/values.js +13 -0
- package/dist/agent-executor.d.ts +375 -176
- package/dist/agent-executor.js +388 -335
- package/dist/artifacts/index.d.ts +14 -0
- package/dist/artifacts/index.js +14 -0
- package/dist/artifacts/manifest.d.ts +90 -0
- package/dist/artifacts/manifest.js +229 -0
- package/dist/artifacts/publication-guard.d.ts +28 -0
- package/dist/artifacts/publication-guard.js +77 -0
- package/dist/artifacts/runtime-compat.d.ts +37 -0
- package/dist/artifacts/runtime-compat.js +33 -0
- package/dist/artifacts/store.d.ts +85 -0
- package/dist/artifacts/store.js +92 -0
- package/dist/artifacts/stub-guard.d.ts +73 -0
- package/dist/artifacts/stub-guard.js +198 -0
- package/dist/artifacts/text-suppression.d.ts +68 -0
- package/dist/artifacts/text-suppression.js +184 -0
- package/dist/close-status.d.ts +11 -8
- package/dist/close-status.js +31 -19
- package/dist/continuation/continuation-transport.d.ts +3 -1
- package/dist/continuation/continuation-transport.js +1 -1
- package/dist/continuation/journal.d.ts +12 -5
- package/dist/continuation/journal.js +4 -4
- package/dist/continuation/run-scoped-context-store.d.ts +13 -4
- package/dist/continuation/run-scoped-context-store.js +6 -6
- package/dist/continuation/run-start-handler.d.ts +1 -1
- package/dist/continuation/run-start-handler.js +3 -16
- package/dist/delegated-tool-bridge.d.ts +7 -3
- package/dist/delegated-tool-bridge.js +32 -31
- package/dist/event-log.d.ts +7 -5
- package/dist/event-log.js +12 -11
- package/dist/frontend-capability-tools.d.ts +1 -1
- package/dist/frontend-capability-tools.js +3 -2
- package/dist/frontend-session-registry.d.ts +32 -9
- package/dist/frontend-session-registry.js +12 -11
- package/dist/http/active-context.d.ts +105 -0
- package/dist/http/active-context.js +67 -0
- package/dist/http/agents.d.ts +68 -0
- package/dist/http/agents.js +12 -0
- package/dist/http/attachments.d.ts +618 -0
- package/dist/http/attachments.js +1034 -0
- package/dist/http/cancel-owned-runs.d.ts +49 -0
- package/dist/http/cancel-owned-runs.js +35 -0
- package/dist/http/component-catalog.d.ts +84 -0
- package/dist/http/component-catalog.js +64 -0
- package/dist/http/connectors.d.ts +209 -0
- package/dist/http/connectors.js +409 -0
- package/dist/http/daemon-status.d.ts +76 -0
- package/dist/http/daemon-status.js +55 -0
- package/dist/http/db-ops.d.ts +123 -0
- package/dist/http/db-ops.js +189 -0
- package/dist/http/delegated-tools.d.ts +113 -0
- package/dist/http/delegated-tools.js +230 -0
- package/dist/http/frontend-control.d.ts +136 -0
- package/dist/http/frontend-control.js +79 -0
- package/dist/http/frontend-sessions.d.ts +110 -0
- package/dist/http/frontend-sessions.js +180 -0
- package/dist/http/health.d.ts +95 -0
- package/dist/http/health.js +40 -0
- package/dist/http/host-tools.d.ts +214 -0
- package/dist/http/host-tools.js +329 -0
- package/dist/http/index.d.ts +52 -0
- package/dist/http/index.js +27 -0
- package/dist/http/media.d.ts +146 -0
- package/dist/http/media.js +346 -0
- package/dist/http/memory.d.ts +265 -0
- package/dist/http/memory.js +328 -0
- package/dist/http/model-proxy.d.ts +49 -0
- package/dist/http/model-proxy.js +642 -0
- package/dist/http/remote-run-events.d.ts +70 -0
- package/dist/http/remote-run-events.js +224 -0
- package/dist/http/research.d.ts +48 -0
- package/dist/http/research.js +315 -0
- package/dist/http/route-manifest.d.ts +35 -0
- package/dist/http/route-manifest.js +103 -0
- package/dist/http/routines.d.ts +120 -0
- package/dist/http/routines.js +298 -0
- package/dist/http/run-credentials.d.ts +73 -0
- package/dist/http/run-credentials.js +71 -0
- package/dist/http/runs.d.ts +91 -0
- package/dist/http/runs.js +221 -0
- package/dist/http/terminals.d.ts +138 -0
- package/dist/http/terminals.js +325 -0
- package/dist/http/tool-catalog.d.ts +78 -0
- package/dist/http/tool-catalog.js +66 -0
- package/dist/http/workspace-root.d.ts +77 -0
- package/dist/http/workspace-root.js +63 -0
- package/dist/http/xai.d.ts +90 -0
- package/dist/http/xai.js +655 -0
- package/dist/image-prompt-delivery.d.ts +13 -3
- package/dist/image-prompt-delivery.js +5 -5
- package/dist/index.d.ts +556 -4
- package/dist/index.js +556 -4
- package/dist/legacy-data-migration.d.ts +59 -8
- package/dist/legacy-data-migration.js +38 -33
- package/dist/read-only-tools.d.ts +130 -0
- package/dist/read-only-tools.js +115 -0
- package/dist/remote-tool-bridge.d.ts +11 -5
- package/dist/remote-tool-bridge.js +15 -15
- package/dist/routines/index.d.ts +1 -1
- package/dist/routines/index.js +1 -1
- package/dist/routines/routine-store.d.ts +34 -12
- package/dist/routines/routine-store.js +21 -20
- package/dist/routines/schedule.d.ts +48 -10
- package/dist/routines/schedule.js +21 -21
- package/dist/routines/scheduler.d.ts +32 -11
- package/dist/routines/scheduler.js +61 -57
- package/dist/routines/types.d.ts +10 -3
- package/dist/run/core/result.d.ts +6 -2
- package/dist/run/core/result.js +3 -3
- package/dist/run/core/retry.d.ts +17 -4
- package/dist/run/core/retry.js +7 -11
- package/dist/run/diagnostics/diagnostics.d.ts +14 -4
- package/dist/run/diagnostics/diagnostics.js +7 -7
- package/dist/run/index.d.ts +1 -1
- package/dist/run/index.js +1 -1
- package/dist/run-credentials.d.ts +138 -0
- package/dist/run-credentials.js +152 -0
- package/dist/run-lifecycle.d.ts +92 -33
- package/dist/run-lifecycle.js +81 -74
- package/dist/scheduler.d.ts +8 -0
- package/dist/scheduler.js +2 -0
- package/dist/session-coordination.d.ts +115 -0
- package/dist/session-coordination.js +111 -0
- package/dist/store/agent-sessions/errors.d.ts +8 -0
- package/dist/store/agent-sessions/errors.js +10 -0
- package/dist/store/agent-sessions/index.d.ts +12 -0
- package/dist/store/agent-sessions/index.js +19 -0
- package/dist/store/agent-sessions/pglite.d.ts +12 -0
- package/dist/store/agent-sessions/pglite.js +7 -0
- package/dist/store/agent-sessions/ports.d.ts +24 -0
- package/dist/store/agent-sessions/ports.js +2 -0
- package/dist/store/agent-sessions/postgres.d.ts +12 -0
- package/dist/store/agent-sessions/postgres.js +7 -0
- package/dist/store/agent-sessions/schema.d.ts +3 -0
- package/dist/store/agent-sessions/schema.js +23 -0
- package/dist/store/agent-sessions/sql.d.ts +35 -0
- package/dist/store/agent-sessions/sql.js +59 -0
- package/dist/store/agent-sessions/sqlite.d.ts +117 -0
- package/dist/store/agent-sessions/sqlite.js +128 -0
- package/dist/store/event-log/sqlite.d.ts +75 -0
- package/dist/store/event-log/sqlite.js +230 -0
- package/dist/surface-exchanges.d.ts +97 -0
- package/dist/surface-exchanges.js +153 -0
- package/dist/terminal-session.d.ts +43 -11
- package/dist/terminal-session.js +22 -20
- package/dist/tokens.js +4 -4
- package/dist/tool-audit.d.ts +114 -0
- package/dist/tool-audit.js +95 -0
- package/dist/tool-executor.d.ts +22 -7
- package/dist/tool-executor.js +16 -16
- package/dist/tool-result-media.d.ts +3 -1
- package/dist/tool-result-media.js +1 -1
- package/dist/tool-result-surfaces.d.ts +3 -1
- package/dist/tool-result-surfaces.js +1 -1
- package/package.json +127 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/daemon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The stateful agent daemon runtime: run lifecycle, durable event-log port, the tool-execution boundary, agent executor, terminal sessions, and routines.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,22 @@
|
|
|
11
11
|
"jini": {
|
|
12
12
|
"domain": "server",
|
|
13
13
|
"kind": "runtime",
|
|
14
|
-
"runtime": "node"
|
|
14
|
+
"runtime": "node",
|
|
15
|
+
"entries": {
|
|
16
|
+
".": "node",
|
|
17
|
+
"./store/event-log/sqlite": "node",
|
|
18
|
+
"./store/agent-sessions": "universal",
|
|
19
|
+
"./store/agent-sessions/sqlite": "node",
|
|
20
|
+
"./store/agent-sessions/pglite": "node",
|
|
21
|
+
"./store/agent-sessions/postgres": "node",
|
|
22
|
+
"./http": "node",
|
|
23
|
+
"./read-only-tools": "node",
|
|
24
|
+
"./scheduler": "universal",
|
|
25
|
+
"./tool-audit": "universal",
|
|
26
|
+
"./surface-exchanges": "universal",
|
|
27
|
+
"./session-coordination": "universal",
|
|
28
|
+
"./run-credentials": "node"
|
|
29
|
+
}
|
|
15
30
|
},
|
|
16
31
|
"type": "module",
|
|
17
32
|
"sideEffects": false,
|
|
@@ -22,10 +37,73 @@
|
|
|
22
37
|
"types": "./dist/index.d.ts",
|
|
23
38
|
"import": "./dist/index.js",
|
|
24
39
|
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./store/event-log/sqlite": {
|
|
42
|
+
"types": "./dist/store/event-log/sqlite.d.ts",
|
|
43
|
+
"import": "./dist/store/event-log/sqlite.js",
|
|
44
|
+
"default": "./dist/store/event-log/sqlite.js"
|
|
45
|
+
},
|
|
46
|
+
"./store/agent-sessions": {
|
|
47
|
+
"types": "./dist/store/agent-sessions/index.d.ts",
|
|
48
|
+
"import": "./dist/store/agent-sessions/index.js",
|
|
49
|
+
"default": "./dist/store/agent-sessions/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./store/agent-sessions/sqlite": {
|
|
52
|
+
"types": "./dist/store/agent-sessions/sqlite.d.ts",
|
|
53
|
+
"import": "./dist/store/agent-sessions/sqlite.js",
|
|
54
|
+
"default": "./dist/store/agent-sessions/sqlite.js"
|
|
55
|
+
},
|
|
56
|
+
"./store/agent-sessions/pglite": {
|
|
57
|
+
"types": "./dist/store/agent-sessions/pglite.d.ts",
|
|
58
|
+
"import": "./dist/store/agent-sessions/pglite.js",
|
|
59
|
+
"default": "./dist/store/agent-sessions/pglite.js"
|
|
60
|
+
},
|
|
61
|
+
"./store/agent-sessions/postgres": {
|
|
62
|
+
"types": "./dist/store/agent-sessions/postgres.d.ts",
|
|
63
|
+
"import": "./dist/store/agent-sessions/postgres.js",
|
|
64
|
+
"default": "./dist/store/agent-sessions/postgres.js"
|
|
65
|
+
},
|
|
66
|
+
"./http": {
|
|
67
|
+
"types": "./dist/http/index.d.ts",
|
|
68
|
+
"import": "./dist/http/index.js",
|
|
69
|
+
"default": "./dist/http/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./read-only-tools": {
|
|
72
|
+
"types": "./dist/read-only-tools.d.ts",
|
|
73
|
+
"import": "./dist/read-only-tools.js",
|
|
74
|
+
"default": "./dist/read-only-tools.js"
|
|
75
|
+
},
|
|
76
|
+
"./scheduler": {
|
|
77
|
+
"types": "./dist/scheduler.d.ts",
|
|
78
|
+
"import": "./dist/scheduler.js",
|
|
79
|
+
"default": "./dist/scheduler.js"
|
|
80
|
+
},
|
|
81
|
+
"./tool-audit": {
|
|
82
|
+
"types": "./dist/tool-audit.d.ts",
|
|
83
|
+
"import": "./dist/tool-audit.js",
|
|
84
|
+
"default": "./dist/tool-audit.js"
|
|
85
|
+
},
|
|
86
|
+
"./surface-exchanges": {
|
|
87
|
+
"types": "./dist/surface-exchanges.d.ts",
|
|
88
|
+
"import": "./dist/surface-exchanges.js",
|
|
89
|
+
"default": "./dist/surface-exchanges.js"
|
|
90
|
+
},
|
|
91
|
+
"./session-coordination": {
|
|
92
|
+
"types": "./dist/session-coordination.d.ts",
|
|
93
|
+
"import": "./dist/session-coordination.js",
|
|
94
|
+
"default": "./dist/session-coordination.js"
|
|
95
|
+
},
|
|
96
|
+
"./run-credentials": {
|
|
97
|
+
"types": "./dist/run-credentials.d.ts",
|
|
98
|
+
"import": "./dist/run-credentials.js",
|
|
99
|
+
"default": "./dist/run-credentials.js"
|
|
25
100
|
}
|
|
26
101
|
},
|
|
27
102
|
"files": [
|
|
28
103
|
"dist",
|
|
104
|
+
"README.md",
|
|
105
|
+
"CHANGELOG.md",
|
|
106
|
+
"LICENSE",
|
|
29
107
|
"!dist/**/*.test.js",
|
|
30
108
|
"!dist/**/*.test.d.ts",
|
|
31
109
|
"!dist/**/*.test.js.map",
|
|
@@ -38,27 +116,67 @@
|
|
|
38
116
|
"registry": "https://registry.npmjs.org"
|
|
39
117
|
},
|
|
40
118
|
"dependencies": {
|
|
41
|
-
"@jini-ai/
|
|
42
|
-
"@jini-ai/
|
|
43
|
-
"@jini-ai/
|
|
44
|
-
"@jini-ai/
|
|
119
|
+
"@jini-ai/core": "0.4.0",
|
|
120
|
+
"@jini-ai/agent-runtime": "0.4.0",
|
|
121
|
+
"@jini-ai/protocol": "0.4.0",
|
|
122
|
+
"@jini-ai/platform": "0.5.0"
|
|
45
123
|
},
|
|
46
124
|
"devDependencies": {
|
|
47
125
|
"@vitest/coverage-v8": "^2.1.9",
|
|
48
|
-
"node-pty": "^1.1.0"
|
|
126
|
+
"node-pty": "^1.1.0",
|
|
127
|
+
"better-sqlite3": "^13.0.0",
|
|
128
|
+
"@types/better-sqlite3": "^7.6.11",
|
|
129
|
+
"kysely": "0.29.6",
|
|
130
|
+
"@electric-sql/pglite": "0.5.8",
|
|
131
|
+
"pg": "^8.23.0",
|
|
132
|
+
"@types/pg": "8.23.1",
|
|
133
|
+
"express": "^4.21.0",
|
|
134
|
+
"@types/express": "^4.17.21",
|
|
135
|
+
"@jini-ai/db": "0.2.0",
|
|
136
|
+
"@jini-ai/http-kit": "0.4.0",
|
|
137
|
+
"@jini-ai/chat": "0.5.0"
|
|
49
138
|
},
|
|
50
139
|
"peerDependencies": {
|
|
51
|
-
"node-pty": "^1.1.0"
|
|
140
|
+
"node-pty": "^1.1.0",
|
|
141
|
+
"@jini-ai/db": "^0.2.0",
|
|
142
|
+
"kysely": "^0.29.6",
|
|
143
|
+
"better-sqlite3": "^13.0.0",
|
|
144
|
+
"@electric-sql/pglite": "0.5.8",
|
|
145
|
+
"pg": "^8.23.0",
|
|
146
|
+
"@jini-ai/http-kit": "^0.4.0",
|
|
147
|
+
"express": "^4.21.0"
|
|
52
148
|
},
|
|
53
149
|
"peerDependenciesMeta": {
|
|
54
150
|
"node-pty": {
|
|
55
151
|
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"@jini-ai/db": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"kysely": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"better-sqlite3": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"@electric-sql/pglite": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"pg": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"@jini-ai/http-kit": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"express": {
|
|
172
|
+
"optional": true
|
|
56
173
|
}
|
|
57
174
|
},
|
|
58
175
|
"scripts": {
|
|
59
176
|
"build": "tsc -p tsconfig.json",
|
|
60
177
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
61
178
|
"test": "vitest run",
|
|
62
|
-
"test:coverage": "vitest run --coverage"
|
|
179
|
+
"test:coverage": "vitest run --coverage",
|
|
180
|
+
"test:postgres": "vitest run --config vitest.postgres.config.ts src/store/agent-sessions/__tests__/postgres.postgres.test.ts"
|
|
63
181
|
}
|
|
64
182
|
}
|