@agent-city/spec 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/conformance/invalid/broken.jsonl +5 -0
- package/conformance/valid/minimal-session.jsonl +4 -0
- package/dist/build.d.ts +11 -0
- package/dist/build.js +31 -0
- package/dist/build.js.map +1 -0
- package/dist/conformance.d.ts +29 -0
- package/dist/conformance.js +91 -0
- package/dist/conformance.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +310 -0
- package/dist/protocol.js +11 -0
- package/dist/protocol.js.map +1 -0
- package/dist/schema.d.ts +646 -0
- package/dist/schema.js +71 -0
- package/dist/schema.js.map +1 -0
- package/dist/secrets.d.ts +6 -0
- package/dist/secrets.js +49 -0
- package/dist/secrets.js.map +1 -0
- package/package.json +46 -3
- package/schema/agent-event.schema.json +251 -0
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AgentCity contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{"v":"0.1","id":"bad-1","ts":"2026-11-29T10:00:00.000Z","source":{"tool":"my-agent"},"session":{"id":"s1"},"agent":{"id":"main"},"kind":"session.start"}
|
|
2
|
+
{"v":"0.1","id":"bad-1","ts":"2026-11-29T10:00:01.000Z","source":{"tool":"my-agent"},"session":{"id":"s1"},"agent":{"id":"main"},"kind":"step.start","step":{"action":"Bash","category":"execute","target":"curl -H 'Authorization: Bearer sk-ant-api03-abcdefghijklmnopqrstuvwxyz0123456789'"}}
|
|
3
|
+
{"v":"0.1","id":"bad-3","ts":"not a date","source":{"tool":"my-agent"},"session":{"id":"s1"},"agent":{"id":"main"},"kind":"step.end"}
|
|
4
|
+
{"v":"0.1","id":"bad-4","ts":"2026-11-29T10:00:02.000Z","source":{"tool":"my-agent"},"session":{"id":"s1"},"agent":{"id":"main"},"kind":"metric","peer":{"handle":"ana"}}
|
|
5
|
+
this line is not json
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{"v":"0.1","id":"01JDEMO0000000000000000001","ts":"2026-11-29T10:00:00.000Z","source":{"tool":"my-agent"},"session":{"id":"s1","project":"demo"},"agent":{"id":"main","role":"coder"},"kind":"session.start"}
|
|
2
|
+
{"v":"0.1","id":"01JDEMO0000000000000000002","ts":"2026-11-29T10:00:01.000Z","source":{"tool":"my-agent"},"session":{"id":"s1","project":"demo"},"agent":{"id":"main","role":"coder"},"kind":"step.start","step":{"action":"Edit","category":"write","target":"src/app.ts"}}
|
|
3
|
+
{"v":"0.1","id":"01JDEMO0000000000000000003","ts":"2026-11-29T10:00:02.500Z","source":{"tool":"my-agent"},"session":{"id":"s1","project":"demo"},"agent":{"id":"main","role":"coder"},"kind":"step.end","step":{"action":"Edit","category":"write","target":"src/app.ts","status":"ok","durationMs":1500}}
|
|
4
|
+
{"v":"0.1","id":"01JDEMO0000000000000000004","ts":"2026-11-29T10:00:03.000Z","source":{"tool":"my-agent"},"session":{"id":"s1","project":"demo"},"agent":{"id":"main","role":"coder"},"kind":"session.end"}
|
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AgentEvent, type EventKind, type StepCategory } from './schema.js';
|
|
2
|
+
export type NewEvent = Omit<AgentEvent, 'v' | 'id' | 'ts' | 'kind'> & {
|
|
3
|
+
kind: EventKind | (string & {});
|
|
4
|
+
id?: string;
|
|
5
|
+
ts?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Creates a spec-compliant event with id/ts, truncated summary and secrets removed. */
|
|
8
|
+
export declare function createEvent(e: NewEvent): AgentEvent;
|
|
9
|
+
export declare const newId: () => string;
|
|
10
|
+
/** Maps common tool names (any provider) to a spec category. */
|
|
11
|
+
export declare function categorize(action: string): StepCategory;
|
package/dist/build.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ulid } from 'ulid';
|
|
2
|
+
import { SPEC_VERSION } from './schema.js';
|
|
3
|
+
import { redactDeep } from './secrets.js';
|
|
4
|
+
/** Creates a spec-compliant event with id/ts, truncated summary and secrets removed. */
|
|
5
|
+
export function createEvent(e) {
|
|
6
|
+
const ev = { v: SPEC_VERSION, id: e.id ?? ulid(), ts: e.ts ?? new Date().toISOString(), ...e };
|
|
7
|
+
if (ev.step?.summary && ev.step.summary.length > 200)
|
|
8
|
+
ev.step = { ...ev.step, summary: ev.step.summary.slice(0, 199) + '…' };
|
|
9
|
+
return redactDeep(ev);
|
|
10
|
+
}
|
|
11
|
+
export const newId = () => ulid();
|
|
12
|
+
/** Maps common tool names (any provider) to a spec category. */
|
|
13
|
+
export function categorize(action) {
|
|
14
|
+
const a = action.toLowerCase();
|
|
15
|
+
if (/test/.test(a))
|
|
16
|
+
return 'test';
|
|
17
|
+
if (/^(grep|glob|find|ls|list|codebase_search|file_search)/.test(a) || a.includes('search'))
|
|
18
|
+
return 'search';
|
|
19
|
+
if (/^(read|view|cat|webfetch|fetch|notebookread|open)/.test(a))
|
|
20
|
+
return 'read';
|
|
21
|
+
if (/^(write|edit|multiedit|notebookedit|create|apply_patch|patch|delete|str_replace|replace)/.test(a))
|
|
22
|
+
return 'write';
|
|
23
|
+
if (/^(bash|shell|powershell|exec|run|terminal|command)/.test(a))
|
|
24
|
+
return 'execute';
|
|
25
|
+
if (/(todo|plan)/.test(a))
|
|
26
|
+
return 'plan';
|
|
27
|
+
if (/^(task|agent|sendmessage|ask|notify|message)/.test(a))
|
|
28
|
+
return 'communicate';
|
|
29
|
+
return 'other';
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAsD,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,wFAAwF;AACxF,MAAM,UAAU,WAAW,CAAC,CAAW;IACrC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,EAAgB,CAAC;IAC7G,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG;QAAE,EAAE,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC;IAC7H,OAAO,UAAU,CAAC,EAAE,CAAC,CAAC;AACxB,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,GAAW,EAAE,CAAC,IAAI,EAAE,CAAC;AAE1C,gEAAgE;AAChE,MAAM,UAAU,UAAU,CAAC,MAAc;IACvC,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IAC/B,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC;IAClC,IAAI,uDAAuD,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC7G,IAAI,mDAAmD,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC;IAC/E,IAAI,0FAA0F,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,OAAO,CAAC;IACvH,IAAI,oDAAoD,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACnF,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC;IACzC,IAAI,8CAA8C,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,aAAa,CAAC;IACjF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conformance kit for the AgentCity event specification (open standard).
|
|
3
|
+
*
|
|
4
|
+
* Any producer (adapter, SDK, third-party tool) can record what it emits and check it:
|
|
5
|
+
* errors = the contract is broken (consumers may reject or mis-handle these events)
|
|
6
|
+
* warnings = allowed by the schema but against the spec's guidance
|
|
7
|
+
*/
|
|
8
|
+
export type ConformanceRule = 'schema' | 'duplicate-id' | 'secret' | 'reserved-peer' | 'time-order' | 'end-without-start' | 'session-start' | 'json';
|
|
9
|
+
export type ConformanceIssue = {
|
|
10
|
+
index: number;
|
|
11
|
+
rule: ConformanceRule;
|
|
12
|
+
level: 'error' | 'warning';
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
export type ConformanceReport = {
|
|
16
|
+
ok: boolean;
|
|
17
|
+
events: number;
|
|
18
|
+
errors: number;
|
|
19
|
+
warnings: number;
|
|
20
|
+
issues: ConformanceIssue[];
|
|
21
|
+
};
|
|
22
|
+
/** Parses JSON Lines (one event per line) or a JSON array. Unparseable lines become `json` errors. */
|
|
23
|
+
export declare function parseEventStream(text: string): {
|
|
24
|
+
items: unknown[];
|
|
25
|
+
issues: ConformanceIssue[];
|
|
26
|
+
};
|
|
27
|
+
export declare function checkEvents(items: unknown[], pre?: ConformanceIssue[]): ConformanceReport;
|
|
28
|
+
/** Convenience: check a JSON Lines or JSON array document. */
|
|
29
|
+
export declare function checkEventStream(text: string): ConformanceReport;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { parseEvent } from './schema.js';
|
|
2
|
+
import { redactSecrets } from './secrets.js';
|
|
3
|
+
const MAX_ISSUES = 1_000;
|
|
4
|
+
/** Parses JSON Lines (one event per line) or a JSON array. Unparseable lines become `json` errors. */
|
|
5
|
+
export function parseEventStream(text) {
|
|
6
|
+
const trimmed = text.trim();
|
|
7
|
+
if (trimmed.startsWith('[')) {
|
|
8
|
+
try {
|
|
9
|
+
const v = JSON.parse(trimmed);
|
|
10
|
+
if (Array.isArray(v))
|
|
11
|
+
return { items: v, issues: [] };
|
|
12
|
+
}
|
|
13
|
+
catch { /* fall through to JSON Lines */ }
|
|
14
|
+
}
|
|
15
|
+
const items = [];
|
|
16
|
+
const issues = [];
|
|
17
|
+
for (const line of text.split(/\r?\n/)) {
|
|
18
|
+
if (!line.trim())
|
|
19
|
+
continue;
|
|
20
|
+
try {
|
|
21
|
+
items.push(JSON.parse(line));
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
issues.push({ index: items.length, rule: 'json', level: 'error', message: 'line is not valid JSON' });
|
|
25
|
+
items.push(undefined);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return { items, issues };
|
|
29
|
+
}
|
|
30
|
+
export function checkEvents(items, pre = []) {
|
|
31
|
+
const issues = [...pre];
|
|
32
|
+
const add = (index, rule, level, message) => {
|
|
33
|
+
if (issues.length < MAX_ISSUES)
|
|
34
|
+
issues.push({ index, rule, level, message });
|
|
35
|
+
};
|
|
36
|
+
const ids = new Set();
|
|
37
|
+
const lastTs = new Map();
|
|
38
|
+
const started = new Set();
|
|
39
|
+
const openSteps = new Map();
|
|
40
|
+
const seenSession = new Set();
|
|
41
|
+
items.forEach((raw, index) => {
|
|
42
|
+
if (raw === undefined)
|
|
43
|
+
return; // already reported as `json`
|
|
44
|
+
const r = parseEvent(raw);
|
|
45
|
+
if (!r.ok) {
|
|
46
|
+
add(index, 'schema', 'error', r.error);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const ev = r.event;
|
|
50
|
+
if (ids.has(ev.id))
|
|
51
|
+
add(index, 'duplicate-id', 'error', `id ${ev.id} was already used`);
|
|
52
|
+
ids.add(ev.id);
|
|
53
|
+
const json = JSON.stringify(raw);
|
|
54
|
+
if (redactSecrets(json) !== json)
|
|
55
|
+
add(index, 'secret', 'error', 'contains something that looks like a token, key or secret: redact before emitting (principle 7)');
|
|
56
|
+
if (ev.peer || ev.session.id.startsWith('peer:') || ev.agent.id.startsWith('peer:')) {
|
|
57
|
+
add(index, 'reserved-peer', 'error', '`peer` and the `peer:` id prefix are reserved for events received from a teammate\'s engine');
|
|
58
|
+
}
|
|
59
|
+
const sid = ev.session.id;
|
|
60
|
+
const prev = lastTs.get(sid);
|
|
61
|
+
if (prev && Date.parse(ev.ts) < Date.parse(prev))
|
|
62
|
+
add(index, 'time-order', 'warning', `ts goes back in time within session ${sid}`);
|
|
63
|
+
if (!prev || Date.parse(ev.ts) >= Date.parse(prev))
|
|
64
|
+
lastTs.set(sid, ev.ts);
|
|
65
|
+
if (!seenSession.has(sid)) {
|
|
66
|
+
seenSession.add(sid);
|
|
67
|
+
if (ev.kind !== 'session.start')
|
|
68
|
+
add(index, 'session-start', 'warning', `first event of session ${sid} is ${ev.kind}, not session.start`);
|
|
69
|
+
}
|
|
70
|
+
if (ev.kind === 'session.start')
|
|
71
|
+
started.add(sid);
|
|
72
|
+
const key = `${sid}\u0000${ev.agent.id}`;
|
|
73
|
+
if (ev.kind === 'step.start')
|
|
74
|
+
openSteps.set(key, (openSteps.get(key) ?? 0) + 1);
|
|
75
|
+
if (ev.kind === 'step.end') {
|
|
76
|
+
const n = openSteps.get(key) ?? 0;
|
|
77
|
+
if (n === 0)
|
|
78
|
+
add(index, 'end-without-start', 'warning', `step.end without a previous step.start for agent ${ev.agent.id}`);
|
|
79
|
+
else
|
|
80
|
+
openSteps.set(key, n - 1);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const errors = issues.filter((i) => i.level === 'error').length;
|
|
84
|
+
return { ok: errors === 0, events: items.length, errors, warnings: issues.length - errors, issues };
|
|
85
|
+
}
|
|
86
|
+
/** Convenience: check a JSON Lines or JSON array document. */
|
|
87
|
+
export function checkEventStream(text) {
|
|
88
|
+
const { items, issues } = parseEventStream(text);
|
|
89
|
+
return checkEvents(items, issues);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=conformance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.js","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAe7C,MAAM,U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names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine wire protocol (local only, 127.0.0.1). Shared contract between engine, adapters, ui-core, cli and mcp-server.
|
|
3
|
+
*
|
|
4
|
+
* HTTP (JSON):
|
|
5
|
+
* GET /health -> HealthResponse
|
|
6
|
+
* POST /events body: AgentEvent | AgentEvent[] -> { accepted: number; rejected: number }
|
|
7
|
+
* POST /hooks/pre-tool body: PreToolRequest -> PreToolResponse (blocks until decision or timeout)
|
|
8
|
+
* GET /approvals -> PendingApproval[]
|
|
9
|
+
* POST /approvals/:requestId body: ApprovalDecision -> { ok: true }
|
|
10
|
+
* GET /sessions -> SessionSummary[]
|
|
11
|
+
* GET /sessions/:id/events -> AgentEvent[] (replay)
|
|
12
|
+
* GET /policies -> Policy[]
|
|
13
|
+
* PUT /policies body: Policy[] -> { ok: true }
|
|
14
|
+
* GET /lessons?q=&project= -> Lesson[]
|
|
15
|
+
* POST /lessons body: LessonInput -> Lesson | { error } (rejected unless verified)
|
|
16
|
+
* POST /sessions/:id/control body: ControlCommand -> { ok: true }
|
|
17
|
+
* POST /lessons/:id/feedback body: { helped: boolean } -> Lesson
|
|
18
|
+
*
|
|
19
|
+
* Observatory and time travel (protocol 0.2, additive):
|
|
20
|
+
* GET /sessions/:id/files -> FileChange[] (diff view: before/after of each file an agent wrote)
|
|
21
|
+
* GET /sessions/:id/checkpoints -> Checkpoint[] (one per write step, oldest first)
|
|
22
|
+
* POST /sessions/:id/rewind body: RewindRequest -> RewindResult (session must be paused)
|
|
23
|
+
* POST /sessions/:id/fork body: ForkRequest -> ForkResult (git repos only; 409 otherwise)
|
|
24
|
+
* GET /integrations -> IntegrationStatus[] (GitHub, Slack, OTel: all opt-in, off by default)
|
|
25
|
+
* PUT /integrations/:id body: IntegrationConfig -> IntegrationStatus
|
|
26
|
+
* POST /sessions/:id/export/otel body: { endpoint?: string } -> { spans: number } (explicit, user-triggered)
|
|
27
|
+
* POST /sessions/:id/share/github body: { pr: number } -> { url: string; markdown: string } (404 unless GitHub is enabled)
|
|
28
|
+
*
|
|
29
|
+
* Editable memory and audit (protocol 0.3, additive):
|
|
30
|
+
* PATCH /lessons/:id body: LessonPatch -> Lesson (evidence/verified never change; emits lesson.write {edited:true})
|
|
31
|
+
* DELETE /lessons/:id -> { ok: true } (hard delete; emits metric 'lesson.deleted'). Not exposed over MCP.
|
|
32
|
+
* GET /audit?from=&to=&session=&format=json|jsonl|csv -> AuditRow[] (json) | JSONL | CSV (hash-chained, local only)
|
|
33
|
+
* GET /audit/verify -> AuditVerifyResult
|
|
34
|
+
*
|
|
35
|
+
* Team city (protocol 0.5, additive; opt-in, separate LAN listener, Bearer token):
|
|
36
|
+
* GET /api/team/stream -> text/event-stream of TeamEvent (reduced: no targets, content or lessons)
|
|
37
|
+
* Events received from teammates carry `peer: { handle }`, are broadcast to the UI as usual and are never stored,
|
|
38
|
+
* audited or matched against policies. Their sessions are reported with SessionSummary.peer.
|
|
39
|
+
*
|
|
40
|
+
* Marketplace packs (protocol 0.5, additive; local files in ~/.agentcity/packs):
|
|
41
|
+
* GET /packs -> { packs, invalid, policies } (pack policies: deny/ask only, run after the user's)
|
|
42
|
+
* POST /packs/reload -> { packs, invalid }
|
|
43
|
+
* GET /themes -> city theme objects from installed theme packs (validated by the UI)
|
|
44
|
+
*
|
|
45
|
+
* Team server sync (protocol 0.5, additive; opt-in): GET /sync -> { enabled, state, sent, dropped, ... }.
|
|
46
|
+
* The team server's own API is versioned separately (docs/spec/servidor.md).
|
|
47
|
+
*
|
|
48
|
+
* WebSocket at /ws: server pushes ServerMessage; client may send ClientMessage.
|
|
49
|
+
*/
|
|
50
|
+
import type { AgentEvent } from './schema.js';
|
|
51
|
+
export declare const PROTOCOL_VERSION = "0.6";
|
|
52
|
+
export declare const DEFAULT_PORT = 4317;
|
|
53
|
+
export declare const DEFAULT_HOST = "127.0.0.1";
|
|
54
|
+
/** Hooks must finish fast when the engine is down. */
|
|
55
|
+
export declare const HOOK_CONNECT_TIMEOUT_MS = 40;
|
|
56
|
+
/** Max wait for a human decision before the default action applies. */
|
|
57
|
+
export declare const APPROVAL_TIMEOUT_MS: number;
|
|
58
|
+
export type HealthResponse = {
|
|
59
|
+
ok: true;
|
|
60
|
+
name: 'agentcity-engine';
|
|
61
|
+
version: string;
|
|
62
|
+
specVersion: string;
|
|
63
|
+
protocolVersion: string;
|
|
64
|
+
};
|
|
65
|
+
export type PolicyAction = 'allow' | 'deny' | 'ask';
|
|
66
|
+
export type Policy = {
|
|
67
|
+
id: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
/** Matches tool action name (regex, case-insensitive). Omitted = any. */
|
|
70
|
+
action?: string;
|
|
71
|
+
/** Matches step.category. */
|
|
72
|
+
category?: string;
|
|
73
|
+
/** Regex on target (file path, command, URL). */
|
|
74
|
+
target?: string;
|
|
75
|
+
decision: PolicyAction;
|
|
76
|
+
enabled?: boolean;
|
|
77
|
+
};
|
|
78
|
+
export type PreToolRequest = {
|
|
79
|
+
event: AgentEvent;
|
|
80
|
+
/**
|
|
81
|
+
* Protocol 0.4. true = an explicit approval request (SDK requestApproval, MCP pedir_aprobacion, LangGraph/CrewAI
|
|
82
|
+
* requireApprovalFor, Copilot tool): a human must decide. The engine turns a policy 'allow' into 'ask'; a policy
|
|
83
|
+
* 'deny' still denies. Absent/false = a hook's ordinary pre-tool check, decided by policies as before.
|
|
84
|
+
*/
|
|
85
|
+
requireHuman?: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type PreToolResponse = {
|
|
88
|
+
decision: 'allow' | 'deny';
|
|
89
|
+
reason?: string;
|
|
90
|
+
requestId?: string;
|
|
91
|
+
policyId?: string;
|
|
92
|
+
};
|
|
93
|
+
export type PendingApproval = {
|
|
94
|
+
requestId: string;
|
|
95
|
+
event: AgentEvent;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
policyId?: string;
|
|
98
|
+
/** Protocol 0.4: why a human is asked (e.g. the agent explicitly requested approval). */
|
|
99
|
+
reason?: string;
|
|
100
|
+
};
|
|
101
|
+
export type ApprovalDecision = {
|
|
102
|
+
decision: 'allow' | 'deny';
|
|
103
|
+
by?: string;
|
|
104
|
+
reason?: string;
|
|
105
|
+
};
|
|
106
|
+
export type SessionSummary = {
|
|
107
|
+
id: string;
|
|
108
|
+
tool: string;
|
|
109
|
+
project?: string;
|
|
110
|
+
cwd?: string;
|
|
111
|
+
startedAt: string;
|
|
112
|
+
lastEventAt: string;
|
|
113
|
+
endedAt?: string;
|
|
114
|
+
eventCount: number;
|
|
115
|
+
agents: string[];
|
|
116
|
+
paused?: boolean;
|
|
117
|
+
/** Protocol 0.5: handle of the teammate this session belongs to (team city). Absent for local sessions. */
|
|
118
|
+
peer?: string;
|
|
119
|
+
/** Protocol 0.6: tokens per agent and model, from the agent's own local transcript (Claude Code). */
|
|
120
|
+
usage?: SessionUsage;
|
|
121
|
+
};
|
|
122
|
+
/** Protocol 0.6: tokens one agent used. tokens = input + output + cacheWrite (cache reads are listed apart). */
|
|
123
|
+
export type AgentUsage = {
|
|
124
|
+
agentId: string;
|
|
125
|
+
/** The model that used most of this agent's tokens. */
|
|
126
|
+
model: string;
|
|
127
|
+
tier: 'opus' | 'sonnet' | 'haiku' | 'other';
|
|
128
|
+
tokens: number;
|
|
129
|
+
input: number;
|
|
130
|
+
output: number;
|
|
131
|
+
cacheWrite: number;
|
|
132
|
+
cacheRead: number;
|
|
133
|
+
};
|
|
134
|
+
export type SessionUsage = {
|
|
135
|
+
total: number;
|
|
136
|
+
byTier: Partial<Record<AgentUsage['tier'], number>>;
|
|
137
|
+
agents: AgentUsage[];
|
|
138
|
+
updatedAt: string;
|
|
139
|
+
/** Token budget per session when one is set (agentcity budget); tool calls are denied once total reaches it. */
|
|
140
|
+
budget?: number;
|
|
141
|
+
/** Tokens counted against the budget (sessions open before it was set count from then). */
|
|
142
|
+
budgetUsed?: number;
|
|
143
|
+
};
|
|
144
|
+
export type ControlCommand = {
|
|
145
|
+
type: 'pause';
|
|
146
|
+
} | {
|
|
147
|
+
type: 'resume';
|
|
148
|
+
} | {
|
|
149
|
+
type: 'prune';
|
|
150
|
+
nodeId: string;
|
|
151
|
+
};
|
|
152
|
+
export type Lesson = {
|
|
153
|
+
id: string;
|
|
154
|
+
text: string;
|
|
155
|
+
project?: string;
|
|
156
|
+
tags: string[];
|
|
157
|
+
source: {
|
|
158
|
+
tool: string;
|
|
159
|
+
sessionId?: string;
|
|
160
|
+
agentId?: string;
|
|
161
|
+
};
|
|
162
|
+
evidence: string;
|
|
163
|
+
verified: boolean;
|
|
164
|
+
score: number;
|
|
165
|
+
uses: number;
|
|
166
|
+
createdAt: string;
|
|
167
|
+
updatedAt: string;
|
|
168
|
+
};
|
|
169
|
+
export type LessonInput = {
|
|
170
|
+
text: string;
|
|
171
|
+
project?: string;
|
|
172
|
+
tags?: string[];
|
|
173
|
+
source: {
|
|
174
|
+
tool: string;
|
|
175
|
+
sessionId?: string;
|
|
176
|
+
agentId?: string;
|
|
177
|
+
};
|
|
178
|
+
/** Must describe the passing test run (command + result). Required. */
|
|
179
|
+
evidence: string;
|
|
180
|
+
/** Must be true: only verified lessons are stored (principle 5). */
|
|
181
|
+
verified: boolean;
|
|
182
|
+
};
|
|
183
|
+
/** PATCH /lessons/:id. Only these fields are editable; `project: null` clears it. */
|
|
184
|
+
export type LessonPatch = {
|
|
185
|
+
text?: string;
|
|
186
|
+
tags?: string[];
|
|
187
|
+
project?: string | null;
|
|
188
|
+
};
|
|
189
|
+
/** Who took an approval decision: a person (UI, CLI, Slack...), a policy, or AgentCity itself (timeout, pause, prune). */
|
|
190
|
+
export type AuditActor = 'human' | 'policy' | 'auto';
|
|
191
|
+
/** One row of the append-only audit log (~/.agentcity/audit.jsonl), derived from an event. */
|
|
192
|
+
export type AuditRow = {
|
|
193
|
+
seq: number;
|
|
194
|
+
ts: string;
|
|
195
|
+
eventId: string;
|
|
196
|
+
sessionId: string;
|
|
197
|
+
tool: string;
|
|
198
|
+
agentId: string;
|
|
199
|
+
kind: string;
|
|
200
|
+
action?: string;
|
|
201
|
+
category?: string;
|
|
202
|
+
/** Redacted and truncated to 300 chars. */
|
|
203
|
+
target?: string;
|
|
204
|
+
status?: string;
|
|
205
|
+
decision?: 'allow' | 'deny';
|
|
206
|
+
decidedBy?: string;
|
|
207
|
+
actor?: AuditActor;
|
|
208
|
+
reason?: string;
|
|
209
|
+
costUsd?: number;
|
|
210
|
+
/** sha256 of the previous row ('0' x 64 for the first one). */
|
|
211
|
+
prevHash: string;
|
|
212
|
+
/** sha256(prevHash + canonical JSON of the row without `hash`). */
|
|
213
|
+
hash: string;
|
|
214
|
+
};
|
|
215
|
+
export type AuditFormat = 'json' | 'jsonl' | 'csv';
|
|
216
|
+
export type AuditVerifyResult = {
|
|
217
|
+
ok: boolean;
|
|
218
|
+
rows: number;
|
|
219
|
+
head?: string;
|
|
220
|
+
brokenAt?: number;
|
|
221
|
+
reason?: string;
|
|
222
|
+
};
|
|
223
|
+
export type ServerMessage = {
|
|
224
|
+
type: 'hello';
|
|
225
|
+
health: HealthResponse;
|
|
226
|
+
sessions: SessionSummary[];
|
|
227
|
+
approvals: PendingApproval[];
|
|
228
|
+
recent: AgentEvent[];
|
|
229
|
+
} | {
|
|
230
|
+
type: 'event';
|
|
231
|
+
event: AgentEvent;
|
|
232
|
+
} | {
|
|
233
|
+
type: 'approval.pending';
|
|
234
|
+
approval: PendingApproval;
|
|
235
|
+
} | {
|
|
236
|
+
type: 'approval.resolved';
|
|
237
|
+
requestId: string;
|
|
238
|
+
decision: 'allow' | 'deny';
|
|
239
|
+
by?: string;
|
|
240
|
+
} | {
|
|
241
|
+
type: 'session.update';
|
|
242
|
+
session: SessionSummary;
|
|
243
|
+
};
|
|
244
|
+
export type ClientMessage = {
|
|
245
|
+
type: 'approval.decide';
|
|
246
|
+
requestId: string;
|
|
247
|
+
decision: ApprovalDecision;
|
|
248
|
+
} | {
|
|
249
|
+
type: 'control';
|
|
250
|
+
sessionId: string;
|
|
251
|
+
command: ControlCommand;
|
|
252
|
+
};
|
|
253
|
+
export declare function engineUrl(port?: number): string;
|
|
254
|
+
/** Before/after of a file written by an agent. Content is null when not captured (too large, binary, secret file,
|
|
255
|
+
* or containing secrets: snapshots are never stored for content that redactSecrets would alter). */
|
|
256
|
+
export type FileChange = {
|
|
257
|
+
path: string;
|
|
258
|
+
eventId: string;
|
|
259
|
+
ts: string;
|
|
260
|
+
action: string;
|
|
261
|
+
agentId: string;
|
|
262
|
+
before: string | null;
|
|
263
|
+
after: string | null;
|
|
264
|
+
created: boolean;
|
|
265
|
+
deleted: boolean;
|
|
266
|
+
skipped?: 'too-large' | 'binary' | 'secret' | 'outside-cwd' | 'unreadable';
|
|
267
|
+
};
|
|
268
|
+
/** A point in time you can rewind to: the state of the files just before a write step. */
|
|
269
|
+
export type Checkpoint = {
|
|
270
|
+
id: string;
|
|
271
|
+
eventId: string;
|
|
272
|
+
ts: string;
|
|
273
|
+
/** English fallback, e.g. 'Before Edit src/cart.ts'. UIs should translate labelKey when present. */
|
|
274
|
+
label: string;
|
|
275
|
+
/** i18n key, e.g. 'checkpoint.before', with labelParams { action, path }. */
|
|
276
|
+
labelKey?: string;
|
|
277
|
+
labelParams?: Record<string, string>;
|
|
278
|
+
files: string[];
|
|
279
|
+
};
|
|
280
|
+
export type RewindRequest = {
|
|
281
|
+
checkpointId: string;
|
|
282
|
+
};
|
|
283
|
+
export type RewindResult = {
|
|
284
|
+
restored: string[];
|
|
285
|
+
deleted: string[];
|
|
286
|
+
skipped: string[];
|
|
287
|
+
};
|
|
288
|
+
export type ForkRequest = {
|
|
289
|
+
checkpointId: string;
|
|
290
|
+
name?: string;
|
|
291
|
+
};
|
|
292
|
+
export type ForkResult = {
|
|
293
|
+
branch: string;
|
|
294
|
+
worktree: string; /** Files written in the worktree to reach the checkpoint state. */
|
|
295
|
+
applied?: RewindResult;
|
|
296
|
+
};
|
|
297
|
+
export type IntegrationId = 'github' | 'slack' | 'otel';
|
|
298
|
+
export type IntegrationConfig = {
|
|
299
|
+
enabled: boolean;
|
|
300
|
+
/** github: repo 'owner/name' (token comes from GITHUB_TOKEN or the gh CLI's auth token, never stored);
|
|
301
|
+
* slack: incoming webhook URL (stored only in ~/.agentcity/config.json); otel: OTLP/HTTP endpoint. */
|
|
302
|
+
target?: string;
|
|
303
|
+
};
|
|
304
|
+
export type IntegrationStatus = {
|
|
305
|
+
id: IntegrationId;
|
|
306
|
+
enabled: boolean;
|
|
307
|
+
configured: boolean;
|
|
308
|
+
target?: string;
|
|
309
|
+
lastError?: string;
|
|
310
|
+
};
|
package/dist/protocol.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const PROTOCOL_VERSION = '0.6';
|
|
2
|
+
export const DEFAULT_PORT = 4317;
|
|
3
|
+
export const DEFAULT_HOST = '127.0.0.1';
|
|
4
|
+
/** Hooks must finish fast when the engine is down. */
|
|
5
|
+
export const HOOK_CONNECT_TIMEOUT_MS = 40;
|
|
6
|
+
/** Max wait for a human decision before the default action applies. */
|
|
7
|
+
export const APPROVAL_TIMEOUT_MS = 5 * 60_000;
|
|
8
|
+
export function engineUrl(port = Number(process.env.AGENTCITY_PORT) || DEFAULT_PORT) {
|
|
9
|
+
return `http://${DEFAULT_HOST}:${port}`;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAmDA,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;AACxC,sDAAsD;AACtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C,uEAAuE;AACvE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAG,MAAM,CAAC;AAiJ9C,MAAM,UAAU,SAAS,CAAC,OAAe,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,YAAY;IACzF,OAAO,UAAU,YAAY,IAAI,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|