@perkos/perkos-a2a 0.12.29 → 0.12.31
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 +12 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +405 -69
- package/dist/index.js.map +4 -4
- package/dist/relay-client.d.ts +7 -0
- package/dist/relay-client.d.ts.map +1 -1
- package/dist/relay-client.js +89 -18
- package/dist/relay-client.js.map +1 -1
- package/dist/relay.d.ts +1 -1
- package/dist/relay.d.ts.map +1 -1
- package/dist/relay.js +21 -3
- package/dist/relay.js.map +1 -1
- package/dist/repair-cli.js +31 -2
- package/dist/repair-cli.js.map +1 -1
- package/dist/repair.d.ts +37 -4
- package/dist/repair.d.ts.map +1 -1
- package/dist/repair.js +377 -51
- package/dist/repair.js.map +1 -1
- package/dist/runtime-evidence.d.ts +42 -0
- package/dist/runtime-evidence.d.ts.map +1 -0
- package/dist/runtime-evidence.js +81 -0
- package/dist/runtime-evidence.js.map +1 -0
- package/dist/server.d.ts +16 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +160 -13
- package/dist/server.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,7 +170,7 @@ openclaw gateway restart
|
|
|
170
170
|
|
|
171
171
|
#### Official idempotent connection
|
|
172
172
|
|
|
173
|
-
Version 0.12.
|
|
173
|
+
Version 0.12.31+ ships the machine-readable `perkos-a2a connect` CLI. The
|
|
174
174
|
official PerkOS invitation supplies the artifact URL, SHA-256, agent name, and
|
|
175
175
|
agent id; it invokes the exact npm version with `npx`. The same command performs
|
|
176
176
|
a first install or repairs the matching existing identity, even when an invalid
|
|
@@ -185,17 +185,25 @@ atomic rename is unavailable, while a persistent backup and the quarantined
|
|
|
185
185
|
legacy extension remain recoverable. A process lock prevents two simultaneous
|
|
186
186
|
repairs from registering the same agent.
|
|
187
187
|
|
|
188
|
+
Every successful install is anchored by a private, content-addressed receipt;
|
|
189
|
+
the resumable repair journal rolls forward after an install has committed
|
|
190
|
+
instead of restoring an incompatible pre-upgrade source. On restart, the
|
|
191
|
+
plugin writes HMAC-bound runtime evidence proving that the expected version and
|
|
192
|
+
normalized config were actually loaded. The receipt, journal, attempt, and
|
|
193
|
+
runtime status files are created with owner-only permissions.
|
|
194
|
+
|
|
188
195
|
It then validates config and plugin health and performs a verifiable restart. A
|
|
189
196
|
normal service must return a new PID/start identity; a containerized PID 1
|
|
190
197
|
gateway restarts in-process through OpenClaw's authorized `SIGUSR1` path and must
|
|
191
198
|
emit fresh restart logs. Relay, registration, heartbeat, and chat authentication
|
|
192
|
-
must remain healthy—with no duplicate plugin or registration messages—for
|
|
193
|
-
continuous minutes
|
|
199
|
+
must remain healthy—with no duplicate plugin or registration messages—for three
|
|
200
|
+
continuous minutes and at least three fresh successful heartbeats. Success or
|
|
201
|
+
failure is emitted as one JSON object; secret
|
|
194
202
|
values are never printed.
|
|
195
203
|
|
|
196
204
|
```bash
|
|
197
205
|
A2A_RELAY_API_KEY='<credential-from-invitation>' \
|
|
198
|
-
npx --yes @perkos/perkos-a2a@0.12.
|
|
206
|
+
npx --yes @perkos/perkos-a2a@0.12.31 connect \
|
|
199
207
|
--artifact ./perkos-a2a.tgz \
|
|
200
208
|
--sha256 '<sha256-from-the-official-invitation>' \
|
|
201
209
|
--agent-name '<agent-name>' \
|
package/dist/index.d.ts
CHANGED
|
@@ -51,5 +51,7 @@ export declare function runOpenClawChatTurn(api: any, config: A2APluginConfig, s
|
|
|
51
51
|
}): Promise<string | null>;
|
|
52
52
|
/** Build a bounded, agent-local transcript so every runtime turn has continuity. */
|
|
53
53
|
export declare function formatRecentChatContext(messages: ChatMessage[], currentMessageId: string): string;
|
|
54
|
+
/** The identity the relay treats as exclusive; names are display metadata. */
|
|
55
|
+
export declare function a2aLifecycleKey(config: A2APluginConfig): string;
|
|
54
56
|
export default function register(api: any): void;
|
|
55
57
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAGV,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,cAAc,YAAY,CAAC;AA0C3B,kEAAkE;AAClE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAItF;AAED,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AASpD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,oBAAoB,EAAE,MAAM,GAC3B,OAAO,CA2BT;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,oBAAoB,EAC3B,eAAe,CAAC,EAAE,MAAM,GACvB,oBAAoB,CA+BtB;AAiED,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,Y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