agents-can-communicate 0.5.10 → 0.6.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 +2 -1
- package/bin/acc-antigravity-relay.mjs +7 -0
- package/bin/entrypoints/acc-antigravity-relay.mjs +116 -0
- package/bin/entrypoints/acc-bootstrap.mjs +4 -0
- package/bin/entrypoints/acc-hook.mjs +11 -7
- package/bin/entrypoints/antigravity-relay-binding.mjs +43 -0
- package/docs/ADAPTER_AUTHORING.md +33 -0
- package/docs/ARCHITECTURE.md +5 -3
- package/docs/CAPABILITIES.md +22 -16
- package/docs/CONFIGURATION.md +1 -0
- package/docs/GETTING_STARTED.md +10 -4
- package/docs/HOW_IT_WORKS.md +7 -1
- package/docs/TROUBLESHOOTING.md +72 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/certification.json +91 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/PreInvocation-1.2.7.json +11 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/SessionStart-1.2.7.json +9 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/agentapi-error-answers-1.2.7.json +19 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/agentapi-live-push-1.2.7.json +31 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/certification-provenance.json +217 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/delivery/antigravity-cli-1.2.7-relay-product-evidence.json +132 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/delivery/antigravity-cli-1.2.7-relay-product.json +29 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/hooks-first-trust-no-workspace-1.2.7.json +37 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/fixtures/live-push-surfaces-1.2.7.json +38 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/package.json +28 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/plugin/plugin.json +5 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/plugin/skills/acc/SKILL.md +329 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/adapter.mjs +119 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/agentapi.mjs +98 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/hooks.mjs +201 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/install.mjs +708 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/native-delivery.mjs +170 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/relay-endpoint.mjs +116 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/relay-start.mjs +123 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/relay.mjs +195 -0
- package/node_modules/@agents-can-communicate/adapter-antigravity/src/relays.mjs +64 -0
- package/node_modules/@agents-can-communicate/adapter-claude-code/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-codex/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/extension/gemini-extension.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-grok/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-kimi/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/src/capabilities.mjs +37 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/src/certification.mjs +25 -5
- package/node_modules/@agents-can-communicate/adapter-sdk/src/hook-shim.mjs +1 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/index.mjs +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/src/native-attempt.mjs +1 -1
- package/node_modules/@agents-can-communicate/cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/cli/src/install-command.mjs +17 -3
- package/node_modules/@agents-can-communicate/cli/src/managed-runtime/entry.mjs +2 -2
- package/node_modules/@agents-can-communicate/cli/src/managed-runtime/launchers.mjs +1 -0
- package/node_modules/@agents-can-communicate/core/package.json +1 -1
- package/node_modules/@agents-can-communicate/core/src/sessions.mjs +1 -2
- package/node_modules/@agents-can-communicate/delivery-router/package.json +1 -1
- package/node_modules/@agents-can-communicate/hook-runner/package.json +1 -1
- package/node_modules/@agents-can-communicate/hook-runner/src/native-attempt.mjs +31 -0
- package/node_modules/@agents-can-communicate/hook-runner/src/runner.mjs +59 -9
- package/node_modules/@agents-can-communicate/installer/package.json +1 -1
- package/node_modules/@agents-can-communicate/installer/src/detect.mjs +4 -0
- package/node_modules/@agents-can-communicate/installer/src/plan.mjs +10 -0
- package/node_modules/@agents-can-communicate/mcp-server/package.json +1 -1
- package/node_modules/@agents-can-communicate/protocol/package.json +1 -1
- package/node_modules/@agents-can-communicate/storage-filesystem/package.json +1 -1
- package/node_modules/@agents-can-communicate/storage-filesystem/src/retention.mjs +23 -13
- package/node_modules/@agents-can-communicate/storage-filesystem/src/store.mjs +18 -1
- package/package.json +3 -1
|
@@ -265,6 +265,23 @@ export async function openFilesystemStore({ root, clock, ids, workspaceId, failA
|
|
|
265
265
|
* cost grow with the number of messages the workspace had ever carried, and
|
|
266
266
|
* the hook budget is five seconds after which it allows the write.
|
|
267
267
|
*/
|
|
268
|
+
/**
|
|
269
|
+
* One state record by id, or null - the checks a listing applies to each
|
|
270
|
+
* record (the path names it, a deleted generation is absent, the record
|
|
271
|
+
* validates, it belongs to this workspace) without reading every other
|
|
272
|
+
* record of its kind. Looking one session up by listing them all cost a full
|
|
273
|
+
* pass over every session the workspace ever had, several times a hook.
|
|
274
|
+
*/
|
|
275
|
+
async function stateRecord(workspace, kind, id) {
|
|
276
|
+
const filePath = statePath(paths, kind, id);
|
|
277
|
+
const found = await readJsonIfPresent(filePath, root);
|
|
278
|
+
if (found === null) return null;
|
|
279
|
+
const envelope = assertStateBinding(found.value, kind, id, filePath);
|
|
280
|
+
if (await stateGenerationIsDeleted(paths, root, kind, envelope.id, envelope.generation)) return null;
|
|
281
|
+
validateRecord(kind, envelope.record);
|
|
282
|
+
return envelope.record.workspaceId === workspace ? envelope.record : null;
|
|
283
|
+
}
|
|
284
|
+
|
|
268
285
|
async function snapshot(workspace, { kinds } = {}) {
|
|
269
286
|
const wanted = kinds === undefined ? null : new Set(kinds);
|
|
270
287
|
const of = async kind => {
|
|
@@ -348,6 +365,6 @@ export async function openFilesystemStore({ root, clock, ids, workspaceId, failA
|
|
|
348
365
|
},
|
|
349
366
|
});
|
|
350
367
|
|
|
351
|
-
return Object.freeze({ transaction, eventsSince, snapshot, ephemeral, paths, root,
|
|
368
|
+
return Object.freeze({ transaction, eventsSince, snapshot, stateRecord, ephemeral, paths, root,
|
|
352
369
|
workspaceId });
|
|
353
370
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agents-can-communicate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"accManagedUpdateProtocol": 2,
|
|
5
5
|
"accStoreVersion": 6,
|
|
6
6
|
"type": "module",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"LICENSE"
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
+
"@agents-can-communicate/adapter-antigravity": "*",
|
|
73
74
|
"@agents-can-communicate/adapter-claude-code": "*",
|
|
74
75
|
"@agents-can-communicate/adapter-codex": "*",
|
|
75
76
|
"@agents-can-communicate/adapter-gemini-cli": "*",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"@agents-can-communicate/storage-filesystem": "*"
|
|
87
88
|
},
|
|
88
89
|
"bundleDependencies": [
|
|
90
|
+
"@agents-can-communicate/adapter-antigravity",
|
|
89
91
|
"@agents-can-communicate/adapter-claude-code",
|
|
90
92
|
"@agents-can-communicate/adapter-codex",
|
|
91
93
|
"@agents-can-communicate/adapter-gemini-cli",
|