@hivemagnus/ardent 2.1.1 → 2.2.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/README.md +142 -10
- package/dist/api.d.ts +8 -1
- package/dist/api.js +190 -20
- package/dist/artifact-manifests.d.ts +169 -0
- package/dist/artifact-manifests.js +172 -0
- package/dist/artifacts.d.ts +9 -1
- package/dist/artifacts.js +27 -5
- package/dist/channels.js +5 -3
- package/dist/cli-commands.d.ts +22 -0
- package/dist/cli-commands.js +72 -0
- package/dist/cli.js +70 -43
- package/dist/config.d.ts +3 -0
- package/dist/config.js +2 -0
- package/dist/context-maintenance.js +2 -2
- package/dist/development.d.ts +121 -0
- package/dist/development.js +151 -0
- package/dist/document-render.d.ts +22 -0
- package/dist/document-render.js +159 -0
- package/dist/live-text.d.ts +56 -0
- package/dist/live-text.js +113 -0
- package/dist/mission-tools.d.ts +22 -0
- package/dist/mission-tools.js +114 -0
- package/dist/missions.d.ts +101 -0
- package/dist/missions.js +120 -0
- package/dist/preview.d.ts +34 -0
- package/dist/preview.js +31 -0
- package/dist/profile-env.d.ts +5 -0
- package/dist/profile-env.js +18 -0
- package/dist/runtime.d.ts +38 -2
- package/dist/runtime.js +239 -39
- package/dist/store.d.ts +34 -5
- package/dist/store.js +43 -6
- package/dist/team-artifacts.d.ts +49 -2
- package/dist/team-artifacts.js +2 -0
- package/dist/tool-arguments.d.ts +8 -0
- package/dist/tool-arguments.js +41 -0
- package/dist/tools.d.ts +3 -1
- package/package.json +35 -7
- package/protocol/README.md +2 -2
- package/protocol/lock.json +2 -2
package/dist/store.js
CHANGED
|
@@ -4,8 +4,10 @@ import { dirname } from 'node:path';
|
|
|
4
4
|
import Database from 'better-sqlite3';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export const TaskState = z.enum(['queued', 'running', 'input_required', 'completed', 'partial', 'failed', 'cancelled', 'unknown']);
|
|
7
|
-
|
|
8
|
-
export const
|
|
7
|
+
/** Execution scope of a task. It selects tools and memory; a session belongs to exactly one context. */
|
|
8
|
+
export const TaskContext = z.enum(['direct', 'peer', 'scheduled', 'mission', 'preview']);
|
|
9
|
+
export const TaskSchema = z.object({ id: z.string().guid(), caller: z.string(), context: TaskContext, session_id: z.string().guid().nullable(), prompt: z.string(), content_hash: z.string(), idempotency_key: z.string().nullable(), backend: z.enum(['llamacpp', 'codex']), state: TaskState, result: z.string().nullable(), error: z.string().nullable(), deadline_ms: z.number().int(), created_ms: z.number().int(), updated_ms: z.number().int() });
|
|
10
|
+
export const SessionSchema = z.object({ id: z.string().guid(), caller: z.string(), context: TaskContext, key: z.string(), created_ms: z.number().int(), updated_ms: z.number().int() });
|
|
9
11
|
export const SessionMessageSchema = z.object({ sequence: z.number().int(), session_id: z.string().guid(), task_id: z.string().guid(), role: z.enum(['user', 'assistant']), content: z.string(), created_ms: z.number().int() });
|
|
10
12
|
export const EventSchema = z.object({ sequence: z.number().int(), task_id: z.string(), kind: z.string(), detail: z.unknown().optional(), created_ms: z.number().int() });
|
|
11
13
|
export class TaskStore {
|
|
@@ -68,7 +70,10 @@ export class TaskStore {
|
|
|
68
70
|
source_watermark INTEGER, parent_id TEXT, policy_revision INTEGER,
|
|
69
71
|
model TEXT, outcome TEXT NOT NULL, reason TEXT,
|
|
70
72
|
created_ms INTEGER NOT NULL);
|
|
71
|
-
CREATE INDEX IF NOT EXISTS context_attempts_session ON context_compaction_attempts(session_id,created_ms)
|
|
73
|
+
CREATE INDEX IF NOT EXISTS context_attempts_session ON context_compaction_attempts(session_id,created_ms);
|
|
74
|
+
CREATE TABLE IF NOT EXISTS task_admission (
|
|
75
|
+
task_id TEXT PRIMARY KEY REFERENCES tasks(id), admission TEXT NOT NULL CHECK(admission IN ('open','paused')),
|
|
76
|
+
updated_ms INTEGER NOT NULL);`);
|
|
72
77
|
const columns = z.array(z.object({ name: z.string() })).parse(this.db.pragma('table_info(tasks)'));
|
|
73
78
|
if (!columns.some(column => column.name === 'session_id'))
|
|
74
79
|
this.db.exec('ALTER TABLE tasks ADD COLUMN session_id TEXT');
|
|
@@ -148,10 +153,15 @@ export class TaskStore {
|
|
|
148
153
|
throw new Error('Session not found');
|
|
149
154
|
return this.db.prepare('SELECT * FROM (SELECT * FROM session_messages WHERE session_id=? ORDER BY sequence DESC LIMIT ?) ORDER BY sequence').all(sessionId, Math.max(1, Math.min(limit, 500))).map(row => SessionMessageSchema.parse(row));
|
|
150
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Record a new task, or return the task already accepted for the same idempotency key.
|
|
158
|
+
* `content` adds structured input (a mission, context items) to the idempotency digest;
|
|
159
|
+
* `onAccepted` journals it in the same transaction, only for a newly accepted task.
|
|
160
|
+
*/
|
|
151
161
|
accept(input) {
|
|
152
162
|
if (!input.caller || input.caller.length > 128 || !input.prompt.trim() || input.prompt.length > 16000 || (input.idempotencyKey && input.idempotencyKey.length > 128))
|
|
153
163
|
throw new Error('Invalid task input');
|
|
154
|
-
const hash = createHash('sha256').update(JSON.stringify([input.prompt, input.backend])).digest('hex');
|
|
164
|
+
const hash = createHash('sha256').update(JSON.stringify(input.content === undefined ? [input.prompt, input.backend] : [input.prompt, input.backend, input.content])).digest('hex');
|
|
155
165
|
return this.db.transaction(() => {
|
|
156
166
|
if (this.admissionFence())
|
|
157
167
|
throw new Error('Profile admission is fenced for rollback');
|
|
@@ -179,6 +189,7 @@ export class TaskStore {
|
|
|
179
189
|
if (task.session_id)
|
|
180
190
|
this.db.prepare('INSERT INTO session_messages(session_id,task_id,role,content,created_ms) VALUES (?,?,?,?,?)').run(task.session_id, task.id, 'user', task.prompt, now);
|
|
181
191
|
this.append(task.id, 'accepted', { caller: input.caller, context: input.context, backend: input.backend });
|
|
192
|
+
input.onAccepted?.(task);
|
|
182
193
|
return task;
|
|
183
194
|
})();
|
|
184
195
|
}
|
|
@@ -190,7 +201,8 @@ export class TaskStore {
|
|
|
190
201
|
this.db.prepare('UPDATE sessions SET updated_ms=? WHERE id=?').run(Date.now(), task.session_id);
|
|
191
202
|
})();
|
|
192
203
|
}
|
|
193
|
-
|
|
204
|
+
/** Settle a task with its result. The session records `sessionContent`, the conversational form of the result. */
|
|
205
|
+
finishWithAssistant(id, state, content, sessionContent = content) {
|
|
194
206
|
this.db.transaction(() => {
|
|
195
207
|
const prior = this.get(id);
|
|
196
208
|
if (!prior || ['completed', 'partial', 'failed', 'cancelled', 'unknown'].includes(prior.state))
|
|
@@ -200,7 +212,7 @@ export class TaskStore {
|
|
|
200
212
|
this.append(id, 'state', { from: prior.state, to: state, error: null });
|
|
201
213
|
if (prior.session_id) {
|
|
202
214
|
this.db.prepare('INSERT INTO session_messages(session_id,task_id,role,content,created_ms) VALUES (?,?,?,?,?)')
|
|
203
|
-
.run(prior.session_id, id, 'assistant',
|
|
215
|
+
.run(prior.session_id, id, 'assistant', sessionContent, now);
|
|
204
216
|
this.db.prepare('UPDATE sessions SET updated_ms=? WHERE id=?').run(now, prior.session_id);
|
|
205
217
|
}
|
|
206
218
|
})();
|
|
@@ -267,6 +279,31 @@ export class TaskStore {
|
|
|
267
279
|
setDelivery(id, state, externalId = null, error = null) {
|
|
268
280
|
this.db.prepare('UPDATE channel_deliveries SET state=?,external_id=?,error=?,updated_ms=? WHERE id=?').run(state, externalId, error, Date.now(), id);
|
|
269
281
|
}
|
|
282
|
+
/** Whether an operator paused the task. A paused task waits at its next step boundary. */
|
|
283
|
+
taskAdmission(id) {
|
|
284
|
+
const row = this.db.prepare('SELECT admission FROM task_admission WHERE task_id=?').get(id);
|
|
285
|
+
return row ? z.object({ admission: z.enum(['open', 'paused']) }).parse(row).admission : 'open';
|
|
286
|
+
}
|
|
287
|
+
/** Pause or resume a queued or running task. Journals the change; an unchanged admission is a no-op. */
|
|
288
|
+
setTaskAdmission(id, admission) {
|
|
289
|
+
return this.db.transaction(() => {
|
|
290
|
+
const task = this.get(id);
|
|
291
|
+
if (!task)
|
|
292
|
+
throw new Error('Task not found');
|
|
293
|
+
const prior = this.taskAdmission(id);
|
|
294
|
+
if (prior === admission)
|
|
295
|
+
return { task, admission, changed: false };
|
|
296
|
+
if (!['queued', 'running'].includes(task.state)) {
|
|
297
|
+
if (admission === 'open')
|
|
298
|
+
return { task, admission: prior, changed: false };
|
|
299
|
+
throw Object.assign(new Error(`Task is ${task.state}; only queued or running tasks can be paused`), { code: 'TASK_TERMINAL' });
|
|
300
|
+
}
|
|
301
|
+
this.db.prepare(`INSERT INTO task_admission(task_id,admission,updated_ms) VALUES (?,?,?)
|
|
302
|
+
ON CONFLICT(task_id) DO UPDATE SET admission=excluded.admission,updated_ms=excluded.updated_ms`).run(id, admission, Date.now());
|
|
303
|
+
this.append(id, admission === 'paused' ? 'pause_requested' : 'resumed', { state: task.state });
|
|
304
|
+
return { task, admission, changed: true };
|
|
305
|
+
})();
|
|
306
|
+
}
|
|
270
307
|
get(id) {
|
|
271
308
|
const row = this.db.prepare('SELECT * FROM tasks WHERE id=?').get(id);
|
|
272
309
|
return row ? TaskSchema.parse(row) : undefined;
|
package/dist/team-artifacts.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ declare const Manifest: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strict>;
|
|
23
23
|
supersedes_sha256: z.ZodNullable<z.ZodString>;
|
|
24
24
|
acceptance_status: z.ZodEnum<{
|
|
25
|
-
rejected: "rejected";
|
|
26
25
|
partial: "partial";
|
|
26
|
+
rejected: "rejected";
|
|
27
27
|
unreviewed: "unreviewed";
|
|
28
28
|
approved: "approved";
|
|
29
29
|
}>;
|
|
@@ -48,6 +48,53 @@ declare const Manifest: z.ZodObject<{
|
|
|
48
48
|
artifact_id: z.ZodString;
|
|
49
49
|
}, z.core.$strict>;
|
|
50
50
|
export type TeamArtifactManifest = z.infer<typeof Manifest>;
|
|
51
|
+
/** Artifact manifest schema shared by peer exports and the local artifact registry. */
|
|
52
|
+
export declare const TeamArtifactManifestSchema: z.ZodObject<{
|
|
53
|
+
schema_version: z.ZodLiteral<"1.0">;
|
|
54
|
+
revision: z.ZodNumber;
|
|
55
|
+
source_revision: z.ZodString;
|
|
56
|
+
visibility: z.ZodEnum<{
|
|
57
|
+
private: "private";
|
|
58
|
+
gm: "gm";
|
|
59
|
+
player: "player";
|
|
60
|
+
}>;
|
|
61
|
+
license: z.ZodString;
|
|
62
|
+
preview: z.ZodObject<{
|
|
63
|
+
mode: z.ZodEnum<{
|
|
64
|
+
none: "none";
|
|
65
|
+
inline: "inline";
|
|
66
|
+
thumbnail: "thumbnail";
|
|
67
|
+
download_only: "download_only";
|
|
68
|
+
}>;
|
|
69
|
+
mime: z.ZodString;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
supersedes_sha256: z.ZodNullable<z.ZodString>;
|
|
72
|
+
acceptance_status: z.ZodEnum<{
|
|
73
|
+
partial: "partial";
|
|
74
|
+
rejected: "rejected";
|
|
75
|
+
unreviewed: "unreviewed";
|
|
76
|
+
approved: "approved";
|
|
77
|
+
}>;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
mime: z.ZodString;
|
|
80
|
+
sha256: z.ZodString;
|
|
81
|
+
size: z.ZodNumber;
|
|
82
|
+
created_at: z.ZodNumber;
|
|
83
|
+
expires_at: z.ZodNumber;
|
|
84
|
+
provenance: z.ZodObject<{
|
|
85
|
+
producer: z.ZodString;
|
|
86
|
+
source_id: z.ZodString;
|
|
87
|
+
producer_task_id: z.ZodString;
|
|
88
|
+
lineage: z.ZodArray<z.ZodObject<{
|
|
89
|
+
producer: z.ZodString;
|
|
90
|
+
source_id: z.ZodString;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
recovery: z.ZodObject<{
|
|
94
|
+
on_expiry: z.ZodLiteral<"request_verified_reexport">;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
artifact_id: z.ZodString;
|
|
97
|
+
}, z.core.$strict>;
|
|
51
98
|
export declare const TeamArtifactDescriptorSchema: z.ZodObject<{
|
|
52
99
|
artifact_id: z.ZodString;
|
|
53
100
|
name: z.ZodString;
|
|
@@ -76,8 +123,8 @@ export declare const TeamArtifactDescriptorSchema: z.ZodObject<{
|
|
|
76
123
|
}, z.core.$strict>;
|
|
77
124
|
supersedes_sha256: z.ZodNullable<z.ZodString>;
|
|
78
125
|
acceptance_status: z.ZodEnum<{
|
|
79
|
-
rejected: "rejected";
|
|
80
126
|
partial: "partial";
|
|
127
|
+
rejected: "rejected";
|
|
81
128
|
unreviewed: "unreviewed";
|
|
82
129
|
approved: "approved";
|
|
83
130
|
}>;
|
package/dist/team-artifacts.js
CHANGED
|
@@ -17,6 +17,8 @@ const Manifest = z.object({
|
|
|
17
17
|
lineage: z.array(z.object({ producer: z.string().min(1), source_id: z.string() }).strict()).min(1).max(4) }).strict(),
|
|
18
18
|
recovery: z.object({ on_expiry: z.literal('request_verified_reexport') }).strict(), artifact_id: identifier
|
|
19
19
|
}).strict();
|
|
20
|
+
/** Artifact manifest schema shared by peer exports and the local artifact registry. */
|
|
21
|
+
export const TeamArtifactManifestSchema = Manifest;
|
|
20
22
|
export const TeamArtifactDescriptorSchema = z.object({ artifact_id: identifier, name: safeName, mime: z.string().min(1), sha256: digest,
|
|
21
23
|
size: z.number().int().min(0).max(2 * 1024 * 1024), producer_task_id: z.string().min(1), artifact_manifest: Manifest }).strict();
|
|
22
24
|
const LocalRow = z.object({ id: identifier, peer: z.string(), context_id: z.string(), a2a_task_id: z.string(),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Bulk fields up to this many characters stay as they are. */
|
|
2
|
+
export declare const TOOL_ARGUMENT_INLINE_LIMIT = 8192;
|
|
3
|
+
/**
|
|
4
|
+
* The arguments with each large bulk field replaced by a short note naming its size and digest,
|
|
5
|
+
* and the stored artifact when the tool's result names one. Other tools and small values are
|
|
6
|
+
* returned unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export declare function compactToolArguments(name: string, args: unknown, result?: unknown): unknown;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
/**
|
|
3
|
+
* Tool arguments that carry file content. Once a tool has run, the content lives in the artifact
|
|
4
|
+
* store; keeping it in the model history would refill the context window on every later step
|
|
5
|
+
* (a few megabytes of base64 can never fit), and journaling it would put the whole file into
|
|
6
|
+
* every task event stream and event page.
|
|
7
|
+
*/
|
|
8
|
+
const BULK_FIELDS = {
|
|
9
|
+
artifact_write: ['text', 'base64'],
|
|
10
|
+
document_render: ['source_markdown'],
|
|
11
|
+
};
|
|
12
|
+
/** Bulk fields up to this many characters stay as they are. */
|
|
13
|
+
export const TOOL_ARGUMENT_INLINE_LIMIT = 8192;
|
|
14
|
+
function reference(result) {
|
|
15
|
+
if (!result || typeof result !== 'object' || !('ok' in result) || result.ok !== true || !('value' in result))
|
|
16
|
+
return undefined;
|
|
17
|
+
const value = result.value;
|
|
18
|
+
return value && typeof value === 'object' && 'reference' in value && typeof value.reference === 'string' ? value.reference : undefined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The arguments with each large bulk field replaced by a short note naming its size and digest,
|
|
22
|
+
* and the stored artifact when the tool's result names one. Other tools and small values are
|
|
23
|
+
* returned unchanged.
|
|
24
|
+
*/
|
|
25
|
+
export function compactToolArguments(name, args, result) {
|
|
26
|
+
const fields = BULK_FIELDS[name];
|
|
27
|
+
if (!fields || !args || typeof args !== 'object' || Array.isArray(args))
|
|
28
|
+
return args;
|
|
29
|
+
const stored = reference(result);
|
|
30
|
+
let changed = false;
|
|
31
|
+
const compacted = { ...args };
|
|
32
|
+
for (const field of fields) {
|
|
33
|
+
const value = compacted[field];
|
|
34
|
+
if (typeof value !== 'string' || value.length <= TOOL_ARGUMENT_INLINE_LIMIT)
|
|
35
|
+
continue;
|
|
36
|
+
const digest = createHash('sha256').update(value).digest('hex');
|
|
37
|
+
compacted[field] = `[${value.length} characters omitted, sha256 ${digest}${stored ? `; stored as ${stored}` : ''}]`;
|
|
38
|
+
changed = true;
|
|
39
|
+
}
|
|
40
|
+
return changed ? compacted : args;
|
|
41
|
+
}
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import type { TaskContext } from './store.js';
|
|
3
|
+
/** A task context in which a tool may run. Mission tools run only in `mission`. */
|
|
4
|
+
export type ToolContext = TaskContext;
|
|
3
5
|
export type ToolEffect = 'read' | 'artifact-write' | 'memory-write' | 'external-write';
|
|
4
6
|
/** Constructed only by first-party code after proving that an effect did not open. */
|
|
5
7
|
export declare class ProvenNoEffectError extends Error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivemagnus/ardent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Headless TypeScript agent runtime with A2A, scheduled jobs, skills, chat channels, and a plugin API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/ChefTaco/
|
|
22
|
-
"directory": "packages/ardent"
|
|
21
|
+
"url": "git+https://github.com/ChefTaco/Ardent.git"
|
|
23
22
|
},
|
|
24
|
-
"homepage": "https://github.com/ChefTaco/
|
|
23
|
+
"homepage": "https://github.com/ChefTaco/Ardent#readme",
|
|
25
24
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/ChefTaco/
|
|
25
|
+
"url": "https://github.com/ChefTaco/Ardent/issues"
|
|
27
26
|
},
|
|
28
27
|
"type": "module",
|
|
29
28
|
"bin": {
|
|
@@ -54,22 +53,33 @@
|
|
|
54
53
|
"typecheck": "tsc --noEmit",
|
|
55
54
|
"test": "vitest run --exclude 'test/interop/**'",
|
|
56
55
|
"interop:test": "vitest run test/interop",
|
|
56
|
+
"interop": "node scripts/run-interop.mjs",
|
|
57
57
|
"lint": "eslint src test",
|
|
58
58
|
"protocol:check": "node scripts/verify-protocol.mjs",
|
|
59
59
|
"openapi:check": "npm run build && node scripts/check-openapi.mjs",
|
|
60
60
|
"openapi:write": "npm run build && node scripts/check-openapi.mjs --write",
|
|
61
|
-
"pack:check": "node scripts/check-package.mjs"
|
|
61
|
+
"pack:check": "node scripts/check-package.mjs",
|
|
62
|
+
"cli:check": "npm run build && node scripts/check-cli.mjs",
|
|
63
|
+
"chat:check": "npm run build && node scripts/check-chat.mjs",
|
|
64
|
+
"schedule:check": "npm run build && node scripts/check-schedule.mjs",
|
|
65
|
+
"native:check": "npm run build && node scripts/check-native.mjs",
|
|
66
|
+
"scan:secrets": "bash scripts/scan-secrets.sh",
|
|
67
|
+
"check:private": "bash scripts/check-private-data.sh",
|
|
68
|
+
"privacy:test": "node --test scripts/test-privacy-policy.mjs scripts/test-publish-environment.mjs scripts/test-publish-package.mjs",
|
|
69
|
+
"hooks:install": "git config core.hooksPath .githooks",
|
|
70
|
+
"verify": "npm run privacy:test && npm run scan:secrets && npm run check:private && npm run protocol:check && npm run typecheck && npm run lint && npm test && npm run build && npm run openapi:check && npm run pack:check"
|
|
62
71
|
},
|
|
63
72
|
"dependencies": {
|
|
64
|
-
"@hivemagnus/emberfold": "0.1.0",
|
|
65
73
|
"@a2a-js/sdk": "1.3.0",
|
|
66
74
|
"@bufbuild/protobuf": "2.16.0",
|
|
67
75
|
"@grpc/grpc-js": "1.14.7",
|
|
76
|
+
"@hivemagnus/emberfold": "0.1.0",
|
|
68
77
|
"@hono/node-server": "^2.1.5",
|
|
69
78
|
"better-sqlite3": "^13.0.3",
|
|
70
79
|
"dotenv": "^18.0.9",
|
|
71
80
|
"express": "5.3.0",
|
|
72
81
|
"hono": "^4.13.16",
|
|
82
|
+
"pdfmake": "0.3.13",
|
|
73
83
|
"ws": "^8.22.0",
|
|
74
84
|
"yaml": "2.9.1",
|
|
75
85
|
"zod": "^4.6.7"
|
|
@@ -79,9 +89,27 @@
|
|
|
79
89
|
"@types/better-sqlite3": "^9.6.0",
|
|
80
90
|
"@types/express": "5.0.6",
|
|
81
91
|
"@types/node": "^24.19.2",
|
|
92
|
+
"@types/pdfmake": "0.3.3",
|
|
82
93
|
"@types/ws": "^8.18.2",
|
|
94
|
+
"eslint": "10.14.0",
|
|
95
|
+
"openapi-fetch": "0.17.0",
|
|
83
96
|
"openapi-typescript": "^7.13.0",
|
|
97
|
+
"tsx": "^4.23.15",
|
|
84
98
|
"typescript": "^6.0.3",
|
|
99
|
+
"typescript-eslint": "8.72.1",
|
|
85
100
|
"vitest": "^5.0.5"
|
|
101
|
+
},
|
|
102
|
+
"overrides": {
|
|
103
|
+
"fast-uri": "3.1.9",
|
|
104
|
+
"minimatch": "11.0.3",
|
|
105
|
+
"@redocly/openapi-core": "1.34.22",
|
|
106
|
+
"openapi-typescript": {
|
|
107
|
+
"typescript": "$typescript"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"allowScripts": {
|
|
111
|
+
"better-sqlite3@13.0.3": true,
|
|
112
|
+
"esbuild@0.28.2": true,
|
|
113
|
+
"protobufjs@7.6.6": true
|
|
86
114
|
}
|
|
87
115
|
}
|
package/protocol/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
`a2a.proto` and `LICENSE-A2A.txt` are from the official A2A `v1.0.1` tag at
|
|
4
4
|
commit `3303592588e388e62e0f69f701af531d2f4e3991`. The pinned official
|
|
5
|
-
TypeScript SDK `@a2a-js/sdk@1.
|
|
5
|
+
TypeScript SDK `@a2a-js/sdk@1.3.0` supplies generated protobuf codecs and the
|
|
6
6
|
three transport bindings. Ardent implements its executor, caller policy,
|
|
7
7
|
peer routing, and SQLite task storage in `src/a2a*.ts`.
|
|
8
8
|
|
|
9
|
-
Run `npm run protocol:check`
|
|
9
|
+
Run `npm run protocol:check` (part of `npm run verify`) to verify the vendored protobuf
|
|
10
10
|
digest and installed SDK version against `lock.json`. A spec or SDK upgrade
|
|
11
11
|
requires updating the lock and running all interop tests before changing the
|
|
12
12
|
declared interfaces.
|
package/protocol/lock.json
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"source_commit": "3303592588e388e62e0f69f701af531d2f4e3991",
|
|
5
5
|
"protobuf_path": "specification/a2a.proto",
|
|
6
6
|
"protobuf_sha256": "e195bf96ab630c69797851970203e1b2b6b19528f2e9803b7d904b91a5104016",
|
|
7
|
-
"protocol_library": "@a2a-js/sdk@1.
|
|
8
|
-
"protocol_library_commit": "
|
|
7
|
+
"protocol_library": "@a2a-js/sdk@1.3.0",
|
|
8
|
+
"protocol_library_commit": "29417a5bb4038f804f310ce4fffd267a9375aa90"
|
|
9
9
|
}
|