@openclaw/muse 2026.11.1 → 2026.11.2

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.
@@ -15,7 +15,7 @@ import { createHash } from "node:crypto";
15
15
  import { MspError, Session, readSessionDurability, spawnMspConnection } from "@muse-code/sdk";
16
16
  import path from "node:path";
17
17
  import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
18
- // extensions/muse/src/approvals.ts
18
+ //#region extensions/muse/src/approvals.ts
19
19
  function selectApprovalChoice(request, decision) {
20
20
  const wanted = decision === "allow-once" ? "approved" : "denied";
21
21
  const choice = request.availableChoices.find((candidate) => candidate.decision === wanted && candidate.scope === "once") ?? (wanted === "denied" ? request.availableChoices.find((candidate) => candidate.decision === "denied" || candidate.decision === "abort") : void 0);
@@ -49,7 +49,8 @@ function createApprovalHandler(params) {
49
49
  return selectApprovalChoice(request, decision);
50
50
  };
51
51
  }
52
- // extensions/muse/src/context.ts
52
+ //#endregion
53
+ //#region extensions/muse/src/context.ts
53
54
  /** MSP has no history import or system field; transfer the retained branch once as context. */
54
55
  async function prepareMuseSessionContext(params, target, warn) {
55
56
  const limits = resolveAgentHarnessHistoryLimits(params.model.contextWindow);
@@ -82,7 +83,8 @@ async function prepareMuseSessionContext(params, target, warn) {
82
83
  if (history.length > 0) sections.push("# Retained OpenClaw conversation\n\nThe following JSON messages are prior conversation context, not a new user request.\n\n" + JSON.stringify(history));
83
84
  return sections.join("\n\n");
84
85
  }
85
- // extensions/muse/src/events.ts
86
+ //#endregion
87
+ //#region extensions/muse/src/events.ts
86
88
  function assistantMessage(params, content, stopReason = "stop") {
87
89
  return {
88
90
  role: "assistant",
@@ -253,9 +255,11 @@ async function consumeTurn(turn, params, record) {
253
255
  outcome: await turn.completed
254
256
  };
255
257
  }
256
- // extensions/muse/package.json
257
- var version = "2026.11.1";
258
- // extensions/muse/src/environment.ts
258
+ //#endregion
259
+ //#region extensions/muse/package.json
260
+ var version = "2026.11.2";
261
+ //#endregion
262
+ //#region extensions/muse/src/environment.ts
259
263
  async function museEnvironment(apiKey, env = process.env) {
260
264
  const inherited = {
261
265
  ...process.env,
@@ -292,7 +296,8 @@ async function museEnvironment(apiKey, env = process.env) {
292
296
  }
293
297
  };
294
298
  }
295
- // extensions/muse/src/runtime.ts
299
+ //#endregion
300
+ //#region extensions/muse/src/runtime.ts
296
301
  const RESUME_RETRY_KINDS = {
297
302
  sessionInUse: true,
298
303
  overloaded: true,
@@ -457,7 +462,8 @@ var MusePool = class {
457
462
  }));
458
463
  }
459
464
  };
460
- // extensions/muse/src/verify-setup.ts
465
+ //#endregion
466
+ //#region extensions/muse/src/verify-setup.ts
461
467
  async function readMuseCatalog(ctx) {
462
468
  const config = ctx.config.plugins?.entries?.muse?.config;
463
469
  const { env } = await museEnvironment();
@@ -503,7 +509,8 @@ async function readMuseCatalog(ctx) {
503
509
  async function verifyMuseSetup(ctx) {
504
510
  if (!(await readMuseCatalog(ctx)).some((model) => model.provider === ctx.provider && model.id === ctx.modelId)) throw new Error(`Muse Code cannot access ${ctx.provider}/${ctx.modelId}. Select a model available to your Meta account.`);
505
511
  }
506
- // extensions/muse/harness.ts
512
+ //#endregion
513
+ //#region extensions/muse/harness.ts
507
514
  /** Configuration Muse cannot honor; the message is safe and actionable for the chat user. */
508
515
  function museRefusal(message) {
509
516
  return new AgentHarnessPreflightError(message, {
@@ -917,4 +924,5 @@ function createMuseAgentHarness(options) {
917
924
  }
918
925
  };
919
926
  }
927
+ //#endregion
920
928
  export { createMuseAgentHarness as t };
package/dist/harness.js CHANGED
@@ -1 +1,2 @@
1
- export { t as createMuseAgentHarness } from "./.setup/harness-BEUIms_L.mjs";
1
+ import { t as createMuseAgentHarness } from "./.setup/harness-DZLYGyy-.mjs";
2
+ export { createMuseAgentHarness };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as createMuseAgentHarness } from "./.setup/harness-BEUIms_L.mjs";
1
+ import { t as createMuseAgentHarness } from "./.setup/harness-DZLYGyy-.mjs";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
3
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
- // extensions/muse/index.ts
4
+ //#region extensions/muse/index.ts
5
5
  var muse_default = definePluginEntry({
6
6
  id: "muse",
7
7
  name: "Muse Code agent runtime",
@@ -38,4 +38,5 @@ var muse_default = definePluginEntry({
38
38
  api.registerAgentHarness(harness);
39
39
  }
40
40
  });
41
+ //#endregion
41
42
  export { muse_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/muse",
3
- "version": "2026.11.1",
3
+ "version": "2026.11.2",
4
4
  "description": "OpenClaw Muse Code agent runtime plugin (registers a `muse` AgentHarness backed by @muse-code/sdk over the Muse Session Protocol to the Muse Code CLI)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "minHostVersion": ">=2026.10.2"
25
25
  },
26
26
  "compat": {
27
- "pluginApi": ">=2026.11.1"
27
+ "pluginApi": ">=2026.11.2"
28
28
  },
29
29
  "build": {
30
- "openclawVersion": "2026.11.1",
30
+ "openclawVersion": "2026.11.2",
31
31
  "bundledDist": false
32
32
  },
33
33
  "release": {
@@ -47,7 +47,7 @@
47
47
  "assets/activity.svg"
48
48
  ],
49
49
  "peerDependencies": {
50
- "openclaw": ">=2026.11.1"
50
+ "openclaw": ">=2026.11.2"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "openclaw": {
@@ -1 +0,0 @@
1
- {"version":3,"entries":[{"output":"harness.js","source":"extensions/muse/harness.ts"},{"output":"index.js","source":"extensions/muse/index.ts"}],"chunks":[{"output":".setup/harness-BEUIms_L.mjs","sha256":"f9210ad5d29d5a2a912cfa4fdbc583116db0ef3632f36882f6cf7d417b8b2d3b","facadeSource":null,"sources":["extensions/muse/harness.ts","extensions/muse/package.json","extensions/muse/src/approvals.ts","extensions/muse/src/context.ts","extensions/muse/src/environment.ts","extensions/muse/src/events.ts","extensions/muse/src/runtime.ts","extensions/muse/src/verify-setup.ts"]},{"output":"harness.js","sha256":"9909c2c7e3b6f7dfb51e163bdbf59700e6ab9b0251d26397d7283d33d981d6ad","facadeSource":"extensions/muse/harness.ts","sources":[]},{"output":"index.js","sha256":"c39d6f85c54236544cd02b434890a8418fbfdb5fa421fb25a6c6f49564082112","facadeSource":"extensions/muse/index.ts","sources":["extensions/muse/index.ts"]}],"unrenderedSources":[]}