@clawtopia/werewolf-evolution 0.1.2 → 0.1.4

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 CHANGED
@@ -14,15 +14,17 @@ direct message.
14
14
 
15
15
  ## Install skill and evolution together
16
16
 
17
- OpenClaw already provides the Node.js runtime used by this setup command. Replace the workspace and
18
- numeric Clawtopia owner ID, then run once for each Agent workspace:
17
+ OpenClaw already provides the Node.js runtime used by this setup command. In the usual case, run:
19
18
 
20
19
  ```sh
21
- npx -y @clawtopia/werewolf-evolution@latest setup \
22
- --workspace ~/.openclaw/workspace/my-agent \
23
- --owner clawtopia:human:<your-user-id>
20
+ npx -y @clawtopia/werewolf-evolution-setup@latest setup
24
21
  ```
25
22
 
23
+ The setup command discovers workspaces and Owners from OpenClaw configuration. A single valid pair is
24
+ installed without a prompt; multiple candidates are presented only in an interactive terminal. Use
25
+ `setup --all` to install all configured workspaces. In CI or another non-interactive environment,
26
+ ambiguous targets must be supplied explicitly with `--workspace` and `--owner`.
27
+
26
28
  The command installs an exact matching version of `@clawtopia/werewolf-play`, installs and pins this
27
29
  plugin through the official OpenClaw CLI, archives legacy-v2 data without inheriting support counts,
28
30
  backs up the active `openclaw.json`, and enables the two required hook permissions. It refuses
@@ -33,13 +35,15 @@ suggestions for this workspace.
33
35
  Changing the workspace Owner is explicit and preserves other workspaces' global allowlist entries:
34
36
 
35
37
  ```sh
36
- npx -y @clawtopia/werewolf-evolution@latest setup \
38
+ npx -y @clawtopia/werewolf-evolution-setup@latest setup \
37
39
  --workspace ~/.openclaw/workspace/my-agent \
38
40
  --owner clawtopia:human:<new-user-id> \
39
41
  --transfer-from clawtopia:human:<current-user-id>
40
42
  ```
41
43
 
42
- Before changing the workspace, config, or plugin, setup reads OpenClaw's complete plugin inventory.
44
+ The setup CLI is published separately so this runtime plugin contains no shell-command execution
45
+ code and can pass OpenClaw's plugin safety scan. Before changing the workspace, config, or plugin,
46
+ setup reads OpenClaw's complete plugin inventory.
43
47
  An existing npm-installed `werewolf-evolution` must have an exact recoverable install record. A
44
48
  local path/link, git, archive, marketplace, missing-record, or inconsistent prior installation is
45
49
  rejected without target mutation so setup cannot destroy an environment it cannot restore.
package/dist/index.d.ts CHANGED
@@ -148,6 +148,7 @@ declare class EvolutionContextStore {
148
148
  private readonly hashByDebriefId;
149
149
  private readonly toolCalls;
150
150
  capture(event: MessageReceivedLike, ctx: MessageContextLike, now?: number): CapturedInbound | undefined;
151
+ getPending(runId?: string, sessionKey?: string, now?: number): CapturedInbound | undefined;
151
152
  bindAgentRun(event: AgentRunEventLike, ctx: AgentRunContextLike, binding: AgentAccountBinding | undefined, now?: number, explicitOwnerAuthorized?: boolean): BoundRun | undefined;
152
153
  getBound(runId?: string, sessionKey?: string, now?: number): BoundRun | undefined;
153
154
  consume(runId: string, sessionKey: string, now?: number): BoundRun;
@@ -179,6 +180,7 @@ declare class WerewolfEvolutionService {
179
180
  constructor(version?: string);
180
181
  captureMessage(event: MessageReceivedLike, ctx: MessageContextLike): void;
181
182
  bindAgentRun(event: AgentRunEventLike, ctx: AgentRunContextLike, binding: AgentAccountBinding | undefined, explicitOwnerAuthorized?: boolean): void;
183
+ bindPromptRun(ctx: AgentRunContextLike, config: unknown): void;
182
184
  buildPromptContext(ctx: PromptContextLike): {
183
185
  appendContext: string;
184
186
  } | undefined;