openclaw-agent-wake-protocol 1.0.0 → 1.0.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/index.ts CHANGED
@@ -23,38 +23,22 @@
23
23
 
24
24
  import { exec } from "node:child_process";
25
25
  import { promisify } from "node:util";
26
+ import {
27
+ type LifecycleStatus,
28
+ type AgentWakeResult,
29
+ type DiscoveredAgent,
30
+ parseDiscovery,
31
+ extractAgentName,
32
+ isNonInteractive,
33
+ isBootstrapTurn,
34
+ resolveLifeId,
35
+ formatContextBlock,
36
+ } from "./src/lib.js";
26
37
 
27
38
  const execAsync = promisify(exec);
28
39
 
29
40
  // ── Types ──────────────────────────────────────────────────────────────────
30
41
 
31
- type LifecycleStatus =
32
- | "ok"
33
- | "degraded"
34
- | "genesis_required"
35
- | "not_registered"
36
- | "failed";
37
-
38
- interface AgentWakeResult {
39
- agentId: string;
40
- status: LifecycleStatus;
41
- /** Human-readable summary injected into context */
42
- message: string;
43
- /** Raw output from wake command (status=ok/degraded) */
44
- wakeOutput?: string;
45
- /** Instructions returned by run_genesis_interview (status=genesis_required) */
46
- genesisInstructions?: string;
47
- timestamp: string;
48
- }
49
-
50
- interface DiscoveredAgent {
51
- agent_id: string;
52
- registered: boolean;
53
- genesis_completed: boolean;
54
- workspace?: string;
55
- name?: string;
56
- }
57
-
58
42
  interface PluginConfig {
59
43
  /**
60
44
  * Map of OpenClaw agent name → LIFE agent_id.
@@ -277,7 +261,7 @@ export default function (api: any) {
277
261
 
278
262
  // ── Service: discover and wake all agents at gateway startup ──────────────
279
263
  api.registerService({
280
- id: "agent-wake-protocol",
264
+ id: "openclaw-agent-wake-protocol",
281
265
 
282
266
  async start() {
283
267
  api.logger.info(
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "agent-wake-protocol",
2
+ "id": "openclaw-agent-wake-protocol",
3
3
  "name": "Agent Wake Protocol",
4
4
  "description": "General-purpose LIFE gateway lifecycle manager for OpenClaw multi-agent systems. Handles agent registration, Genesis interview, and wake protocol for any agent configuration.",
5
5
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-agent-wake-protocol",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenClaw extension: general-purpose LIFE gateway lifecycle manager for multi-agent systems. Handles agent registration, Genesis interview, and wake protocol for any agent configuration.",
5
5
  "type": "module",
6
6
  "main": "index.ts",