@clawos-dev/clawd 0.2.701 → 0.2.703

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/dist/cli.cjs CHANGED
@@ -58105,6 +58105,7 @@ async function readReleaseArchive(bytes) {
58105
58105
  init_protocol();
58106
58106
  init_protocol();
58107
58107
  var CLOUD_WORKSPACE_SLOT = "{{WORKSPACE}}";
58108
+ var CLOUD_ENGINE_HOME_SLOT = "{{ENGINE_HOME}}";
58108
58109
  var GATEWAY_ROUTES = {
58109
58110
  healthz: () => "/healthz",
58110
58111
  turn: (personaId2) => `/p/${encodeURIComponent(personaId2)}/v1/chat/completions`,
@@ -67095,6 +67096,24 @@ async function forwardPeerExecToPeer(args) {
67095
67096
  // src/tools/codex-cloud.ts
67096
67097
  init_protocol();
67097
67098
 
67099
+ // src/tools/cloud-instructions.ts
67100
+ function skillSection(engine) {
67101
+ const wrongHome = engine === "claude" ? "`~/.claude/skills` or `$HOME/.claude/skills`" : "`~/.codex/skills` or `<cwd>/.agents/skills`";
67102
+ return [
67103
+ "## Creating skills",
67104
+ "",
67105
+ `When the user asks you to create a skill, write it to \`${CLOUD_ENGINE_HOME_SLOT}/skills/<name>/SKILL.md\` (the user-level skills directory; it is kept across the user's later sessions with this persona). Do not write skills to ${wrongHome}: those paths are not read here and are lost.`,
67106
+ "Skills under `<cwd>/.claude/skills/` belong to the persona itself and are discarded when this session ends; only write there if the user explicitly asks for a skill that is part of the persona."
67107
+ ].join("\n");
67108
+ }
67109
+ function cloudInstructions(ctx, engine) {
67110
+ return [
67111
+ ctx.extraSystemPrompt,
67112
+ workDirPrompt(CLOUD_WORKSPACE_SLOT, ctx.personaMode ?? "owner"),
67113
+ engine === "pi" ? void 0 : skillSection(engine)
67114
+ ].filter((x2) => Boolean(x2)).join("\n\n");
67115
+ }
67116
+
67098
67117
  // src/tools/codex-cloud-session.ts
67099
67118
  var import_node_fs42 = __toESM(require("fs"), 1);
67100
67119
 
@@ -67288,7 +67307,7 @@ function createCloudCodexSession(ctx, sink, deps) {
67288
67307
  client: deps.client,
67289
67308
  personaId: personaId2,
67290
67309
  engine: "codex",
67291
- instructions: ctx.titleOnly ? void 0 : ctx.extraSystemPrompt,
67310
+ instructions: ctx.titleOnly ? void 0 : cloudInstructions(ctx, "codex"),
67292
67311
  prepare: (text) => portableCloudInput(text, { resolveCodexImage: cloudImageInput(deps) })
67293
67312
  });
67294
67313
  }
@@ -68012,9 +68031,6 @@ var PiAdapter = class {
68012
68031
  };
68013
68032
 
68014
68033
  // src/tools/pi-cloud-session.ts
68015
- function cloudPiInstructions(ctx) {
68016
- return [ctx.extraSystemPrompt, workDirPrompt(CLOUD_WORKSPACE_SLOT, ctx.personaMode ?? "owner")].filter((x2) => Boolean(x2)).join("\n\n");
68017
- }
68018
68034
  function createCloudPiSession(ctx, sink, deps) {
68019
68035
  const personaId2 = personaIdFromCloudCwd(ctx.cwd);
68020
68036
  if (!personaId2 || ctx.cloudGatewaySessionId || ctx.cloudLegacyPendingCommand) {
@@ -68035,7 +68051,7 @@ function createCloudPiSession(ctx, sink, deps) {
68035
68051
  personaId: personaId2,
68036
68052
  engine: "pi",
68037
68053
  engineSessionId: ctx.toolSessionId,
68038
- instructions: ctx.titleOnly ? void 0 : cloudPiInstructions(ctx),
68054
+ instructions: ctx.titleOnly ? void 0 : cloudInstructions(ctx, "pi"),
68039
68055
  prepare: (text) => portableCloudInput(text, { fetchPiImage: deps.fetchImage ?? makeImageFetcher() })
68040
68056
  });
68041
68057
  }
@@ -68129,7 +68145,7 @@ function createCloudClaudeSession(ctx, sink, deps) {
68129
68145
  personaId: personaId2,
68130
68146
  engine: "claude",
68131
68147
  engineSessionId: ctx.toolSessionId,
68132
- instructions: ctx.titleOnly ? void 0 : cloudPiInstructions(ctx),
68148
+ instructions: ctx.titleOnly ? void 0 : cloudInstructions(ctx, "claude"),
68133
68149
  prepare: (text) => portableCloudInput(text, { fetchPiImage: deps.fetchImage ?? makeImageFetcher() })
68134
68150
  });
68135
68151
  }
@@ -75868,7 +75884,7 @@ function computeMethodAccess(args) {
75868
75884
  }
75869
75885
 
75870
75886
  // src/version.ts
75871
- var version = "0.2.701".length > 0 ? "0.2.701" : "dev";
75887
+ var version = "0.2.703".length > 0 ? "0.2.703" : "dev";
75872
75888
 
75873
75889
  // src/cli-probe/probe.ts
75874
75890
  var fs87 = __toESM(require("fs"), 1);