@clawos-dev/clawd 0.2.452 → 0.2.453
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 +23 -4
- package/dist/dispatch/mcp-server.cjs +1 -1
- package/dist/share-md-viewer-error.html +1 -1
- package/dist/share-md-viewer.html +1 -1
- package/dist/share-ui/assets/guest-D_OYvJIg.css +32 -0
- package/dist/share-ui/assets/{guest-CilettnR.js → guest-Dh-ssMM-.js} +124 -124
- package/dist/share-ui/guest.html +2 -2
- package/package.json +1 -1
- package/dist/share-ui/assets/guest-7QsWRy9Q.css +0 -32
package/dist/cli.cjs
CHANGED
|
@@ -8804,7 +8804,7 @@ var init_methods = __esm({
|
|
|
8804
8804
|
args: WorkspaceReadArgs
|
|
8805
8805
|
},
|
|
8806
8806
|
"deploy:start": {
|
|
8807
|
-
summary: "\
|
|
8807
|
+
summary: "\u5BF9\u67D0\u4E2A persona \u8D77\u4E00\u6B21**\u65B0\u7684**\u4E0A\u4E91\u626B\u63CF\uFF1A\u5EFA\u4E00\u5F20\u65B0\u5355\u636E\u5E76\u5F02\u6B65\u626B\uFF08\u4EBA\u4F1A\u70B9\u8FD9\u4E2A\u53EA\u53EF\u80FD\u662F\u56E0\u4E3A persona \u8FED\u4EE3\u4E86\uFF0C\u62FF\u65E7\u6E05\u5355\u53BB\u90E8\u7F72\u662F\u9519\u7684\uFF09\u3002**\u5DF2\u586B\u7684\u51ED\u636E\u503C\u548C\u5C65\u7EA6\u9009\u62E9\u4ECE\u4E0A\u4E00\u5F20\u5355\u7EE7\u627F\u8FC7\u6765**\uFF0C\u4E0D\u7528\u6BCF\u8FED\u4EE3\u4E00\u6B21\u91CD\u8D34\u4E00\u904D key\u3002\u5DF2\u7ECF\u5728\u626B\u7684\u8BDD\u8FD4\u56DE\u90A3\u5F20\u3001\u4E0D\u5E76\u53D1\u8D77\u7B2C\u4E8C\u4E2A\u626B\u63CF\u4F1A\u8BDD\u3002\u56DE\u770B\u65E7\u7684\u90A3\u6B21\u8D70 deploy:list + deploy:get\uFF1Bowner-only",
|
|
8808
8808
|
args: DeployStartArgsSchema
|
|
8809
8809
|
},
|
|
8810
8810
|
"deploy:rescan": {
|
|
@@ -54423,13 +54423,20 @@ function buildDeployHandlers(deps) {
|
|
|
54423
54423
|
if (!deps.hasPersona(args.personaId)) {
|
|
54424
54424
|
throw new ClawdError(ERROR_CODES.PERSONA_NOT_FOUND, `PERSONA_NOT_FOUND: \u6CA1\u6709\u8FD9\u4E2A persona\uFF08${args.personaId}\uFF09`);
|
|
54425
54425
|
}
|
|
54426
|
-
const
|
|
54427
|
-
if (
|
|
54426
|
+
const inFlight = deps.receipts.list().find((r) => r.personaId === args.personaId && r.status === "scanning");
|
|
54427
|
+
if (inFlight) return view(inFlight);
|
|
54428
|
+
const prev = deps.receipts.list().find((r) => r.personaId === args.personaId);
|
|
54428
54429
|
const receipt = deps.receipts.create({
|
|
54429
54430
|
deployId: deps.genId(),
|
|
54430
54431
|
personaId: args.personaId,
|
|
54431
54432
|
status: "scanning"
|
|
54432
54433
|
});
|
|
54434
|
+
if (prev) {
|
|
54435
|
+
deps.secrets.copyDeployment(prev.deployId, receipt.deployId);
|
|
54436
|
+
if (Object.keys(prev.fulfillment).length > 0) {
|
|
54437
|
+
deps.receipts.update(receipt.deployId, { fulfillment: prev.fulfillment });
|
|
54438
|
+
}
|
|
54439
|
+
}
|
|
54433
54440
|
const scanSessionId = deps.startScan(receipt.deployId, args.personaId);
|
|
54434
54441
|
if (scanSessionId) deps.receipts.update(receipt.deployId, { scanSessionId });
|
|
54435
54442
|
return view(deps.receipts.get(receipt.deployId) ?? receipt);
|
|
@@ -54704,6 +54711,18 @@ function createSecretStore(deps) {
|
|
|
54704
54711
|
}
|
|
54705
54712
|
scheduleFlush();
|
|
54706
54713
|
},
|
|
54714
|
+
copyDeployment(fromDeployId, toDeployId) {
|
|
54715
|
+
const src = entries.filter((e) => e.deployId === fromDeployId);
|
|
54716
|
+
let copied = 0;
|
|
54717
|
+
for (const e of src) {
|
|
54718
|
+
const exists = entries.some((x) => sameScope(x, toDeployId, e.name, e.userId));
|
|
54719
|
+
if (exists) continue;
|
|
54720
|
+
entries.push({ ...e, deployId: toDeployId, updatedAt: deps.now() });
|
|
54721
|
+
copied++;
|
|
54722
|
+
}
|
|
54723
|
+
if (copied > 0) scheduleFlush();
|
|
54724
|
+
return copied;
|
|
54725
|
+
},
|
|
54707
54726
|
resolve(deployId, userId) {
|
|
54708
54727
|
const out = {};
|
|
54709
54728
|
for (const e of entries) {
|
|
@@ -63670,7 +63689,7 @@ function computeMethodAccess(args) {
|
|
|
63670
63689
|
}
|
|
63671
63690
|
|
|
63672
63691
|
// src/version.ts
|
|
63673
|
-
var version = "0.2.
|
|
63692
|
+
var version = "0.2.453".length > 0 ? "0.2.453" : "dev";
|
|
63674
63693
|
|
|
63675
63694
|
// src/cli-probe/probe.ts
|
|
63676
63695
|
var fs68 = __toESM(require("fs"), 1);
|
|
@@ -23848,7 +23848,7 @@ var METHOD_DOCS = {
|
|
|
23848
23848
|
args: WorkspaceReadArgs
|
|
23849
23849
|
},
|
|
23850
23850
|
"deploy:start": {
|
|
23851
|
-
summary: "\
|
|
23851
|
+
summary: "\u5BF9\u67D0\u4E2A persona \u8D77\u4E00\u6B21**\u65B0\u7684**\u4E0A\u4E91\u626B\u63CF\uFF1A\u5EFA\u4E00\u5F20\u65B0\u5355\u636E\u5E76\u5F02\u6B65\u626B\uFF08\u4EBA\u4F1A\u70B9\u8FD9\u4E2A\u53EA\u53EF\u80FD\u662F\u56E0\u4E3A persona \u8FED\u4EE3\u4E86\uFF0C\u62FF\u65E7\u6E05\u5355\u53BB\u90E8\u7F72\u662F\u9519\u7684\uFF09\u3002**\u5DF2\u586B\u7684\u51ED\u636E\u503C\u548C\u5C65\u7EA6\u9009\u62E9\u4ECE\u4E0A\u4E00\u5F20\u5355\u7EE7\u627F\u8FC7\u6765**\uFF0C\u4E0D\u7528\u6BCF\u8FED\u4EE3\u4E00\u6B21\u91CD\u8D34\u4E00\u904D key\u3002\u5DF2\u7ECF\u5728\u626B\u7684\u8BDD\u8FD4\u56DE\u90A3\u5F20\u3001\u4E0D\u5E76\u53D1\u8D77\u7B2C\u4E8C\u4E2A\u626B\u63CF\u4F1A\u8BDD\u3002\u56DE\u770B\u65E7\u7684\u90A3\u6B21\u8D70 deploy:list + deploy:get\uFF1Bowner-only",
|
|
23852
23852
|
args: DeployStartArgsSchema
|
|
23853
23853
|
},
|
|
23854
23854
|
"deploy:rescan": {
|