@openclaw/muse 2026.11.6 → 2026.11.7
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,6 +15,7 @@ import { createHash } from "node:crypto";
|
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import { MspError, Session, readSessionDurability, spawnMspConnection } from "@muse-code/sdk";
|
|
17
17
|
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
|
|
18
|
+
import { racePromiseWithAbortSignal } from "openclaw/plugin-sdk/time-runtime";
|
|
18
19
|
//#region extensions/muse/src/events.ts
|
|
19
20
|
function assistantMessage(params, content, stopReason = "stop") {
|
|
20
21
|
return {
|
|
@@ -201,7 +202,7 @@ async function consumeTurn(turn, params, record) {
|
|
|
201
202
|
}
|
|
202
203
|
//#endregion
|
|
203
204
|
//#region extensions/muse/package.json
|
|
204
|
-
var version = "2026.11.
|
|
205
|
+
var version = "2026.11.7";
|
|
205
206
|
//#endregion
|
|
206
207
|
//#region extensions/muse/src/runtime.ts
|
|
207
208
|
const RESUME_RETRY_KINDS = {
|
|
@@ -370,10 +371,13 @@ var MusePool = class {
|
|
|
370
371
|
};
|
|
371
372
|
signal.addEventListener("abort", abort, { once: true });
|
|
372
373
|
try {
|
|
373
|
-
const host = await handshake.initialize({
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
const host = await handshake.initialize({
|
|
375
|
+
clientInfo: {
|
|
376
|
+
name: "openclaw",
|
|
377
|
+
version
|
|
378
|
+
},
|
|
379
|
+
capabilities: { userInputDialogs: false }
|
|
380
|
+
});
|
|
377
381
|
signal.throwIfAborted();
|
|
378
382
|
const runtime = {
|
|
379
383
|
host,
|
|
@@ -435,6 +439,9 @@ function museDisplayName(modelId, displayLabel) {
|
|
|
435
439
|
}
|
|
436
440
|
/** One lifecycle owner for read-only catalog hosts; every read still asks Meta for live access. */
|
|
437
441
|
var MuseCatalogReader = class {
|
|
442
|
+
constructor() {
|
|
443
|
+
this.retireWhenIdle = /* @__PURE__ */ new WeakSet();
|
|
444
|
+
}
|
|
438
445
|
async read(ctx) {
|
|
439
446
|
ctx.signal.throwIfAborted();
|
|
440
447
|
ctx.assertCurrent();
|
|
@@ -451,14 +458,10 @@ var MuseCatalogReader = class {
|
|
|
451
458
|
ctx.assertCurrent();
|
|
452
459
|
}
|
|
453
460
|
const lease = await this.current.pool.acquire(void 0, void 0, true, ctx.signal);
|
|
454
|
-
const abort = () => {
|
|
455
|
-
lease.runtime.close();
|
|
456
|
-
};
|
|
457
|
-
ctx.signal.addEventListener("abort", abort, { once: true });
|
|
458
461
|
try {
|
|
459
462
|
ctx.signal.throwIfAborted();
|
|
460
463
|
ctx.assertCurrent();
|
|
461
|
-
const catalog = await lease.runtime.host.connection.request("model/list", {});
|
|
464
|
+
const catalog = await racePromiseWithAbortSignal(lease.runtime.host.connection.request("model/list", {}), ctx.signal, (aborted) => aborted.reason);
|
|
462
465
|
ctx.signal.throwIfAborted();
|
|
463
466
|
ctx.assertCurrent();
|
|
464
467
|
if (catalog.source !== "providerCatalog" || catalog.providerId !== "meta" || !Array.isArray(catalog.models)) throw new Error("Muse Code could not authenticate. Sign in again to access Meta models.");
|
|
@@ -469,8 +472,9 @@ var MuseCatalogReader = class {
|
|
|
469
472
|
nativeRuntime: "muse"
|
|
470
473
|
}] : []);
|
|
471
474
|
} finally {
|
|
472
|
-
ctx.signal.
|
|
475
|
+
if (ctx.signal.aborted) this.retireWhenIdle.add(lease.runtime);
|
|
473
476
|
lease.release();
|
|
477
|
+
if (lease.runtime.users === 0 && this.retireWhenIdle.has(lease.runtime)) await lease.runtime.close();
|
|
474
478
|
}
|
|
475
479
|
}
|
|
476
480
|
async verify(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"harness.js","source":"extensions/muse/harness.ts"},{"output":"index.js","source":"extensions/muse/index.ts"}],"chunks":[{"output":".setup/harness-
|
|
1
|
+
{"version":3,"entries":[{"output":"harness.js","source":"extensions/muse/harness.ts"},{"output":"index.js","source":"extensions/muse/index.ts"}],"chunks":[{"output":".setup/harness-DBtOSWLz.mjs","sha256":"a2dfd4bcfb544433020d6f77f8035520ec7bcfd954e6b025f26df57b2ee3cad9","facadeSource":null,"sources":["extensions/muse/harness.ts","extensions/muse/package.json","extensions/muse/src/events.ts","extensions/muse/src/runtime.ts","extensions/muse/src/verify-setup.ts"]},{"output":"harness.js","sha256":"75598a18cc4e687a204ba3cfab2878744fc37708896e44de1a009698b4d96a00","facadeSource":"extensions/muse/harness.ts","sources":[]},{"output":"index.js","sha256":"96a19c3192a87305a1843ea2398391f42b9bbedd71a4f61ae3e3add9031e0000","facadeSource":"extensions/muse/index.ts","sources":["extensions/muse/index.ts"]}],"unrenderedSources":[]}
|
package/dist/harness.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createMuseAgentHarness } from "./.setup/harness-
|
|
1
|
+
export { t as createMuseAgentHarness } from "./.setup/harness-DBtOSWLz.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMuseAgentHarness } from "./.setup/harness-
|
|
1
|
+
import { t as createMuseAgentHarness } from "./.setup/harness-DBtOSWLz.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
//#region extensions/muse/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/muse",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.7",
|
|
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.
|
|
27
|
+
"pluginApi": ">=2026.11.7"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.11.
|
|
30
|
+
"openclawVersion": "2026.11.7",
|
|
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.
|
|
50
|
+
"openclaw": ">=2026.11.7"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|