dsh-edge 0.18.0 → 0.19.0-alpha.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.
- package/README.i18n.yaml +2 -2
- package/README.md +8 -8
- package/README.zh.md +8 -8
- package/THIRD_PARTY_NOTICES.md +2011 -449
- package/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/dist/assets/index-Cq6ljTv2.css +1 -0
- package/dist/assets/index-Dy0OhsZ5.js +127 -0
- package/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/dist/favicon-dark.svg +3 -0
- package/dist/favicon.svg +0 -5
- package/dist/index.html +5 -4
- package/dist/manifest.webmanifest +3 -4
- package/dist/plugins/@deepseek-ai/dsh-api-gateway/client.js +353 -101
- package/dist/plugins/@deepseek-ai/dsh-api-job-controller/client.js +367 -0
- package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +7223 -3584
- package/dist/plugins/@deepseek-ai/dsh-api-session-controller/client.js +1107 -991
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-controller/client.js +119 -6
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-files/client.js +41 -35
- package/dist/plugins/@deepseek-ai/dsh-client-connection/client.js +354 -5279
- package/dist/plugins/@deepseek-ai/dsh-client-file-upload/client.js +10 -23
- package/dist/plugins/@deepseek-ai/dsh-client-locale/client.js +234 -80
- package/dist/plugins/@deepseek-ai/dsh-client-modules/client.js +554 -46
- package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +2006 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +1090 -914
- package/dist/plugins/@deepseek-ai/dsh-client-ui-approval/client.js +79 -6
- package/dist/plugins/@deepseek-ai/dsh-client-ui-attachment/client.js +126 -155
- package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +5776 -1593
- package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +375 -121
- package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +3524 -1923
- package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +1615 -258
- package/dist/plugins/@deepseek-ai/dsh-client-ui-directory-picker-browse/client.js +9 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-goal/client.js +25 -10
- package/dist/plugins/@deepseek-ai/dsh-client-ui-input-trigger/client.js +169 -24
- package/dist/plugins/@deepseek-ai/dsh-client-ui-jobs/client.js +413 -63
- package/dist/plugins/@deepseek-ai/dsh-client-ui-layout/client.js +131 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-message-feedback/client.js +24 -22
- package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +281 -128
- package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +674 -223
- package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +596 -18
- package/dist/plugins/@deepseek-ai/dsh-client-ui-reference/client.js +92 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +467 -59
- package/dist/plugins/@deepseek-ai/dsh-client-ui-session/client.js +231 -72
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings/client.js +281 -117
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +642 -122
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-models/client.js +1565 -438
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/client.js +201 -75
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugins/client.js +30 -1628
- package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1163 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +165 -39
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-browser/client.js +1648 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/client.js +5515 -25622
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +419 -118
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +5692 -260
- package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +156 -41
- package/dist/plugins/@deepseek-ai/dsh-client-ui-subagent/client.js +386 -263
- package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +183 -73
- package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +2367 -429
- package/dist/plugins/@deepseek-ai/dsh-client-ui-trajectory/client.js +788 -270
- package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +87 -79
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +28 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +2647 -1044
- package/dist/plugins/@deepseek-ai/dsh-typert-registry/client.js +22 -7
- package/dist/plugins/dsh-edge-client-ui/client.js +1 -10
- package/package.json +96 -86
- package/scripts/cli.mjs +16 -4
- package/scripts/install.d.mts +12 -2
- package/scripts/install.mjs +36 -9
- package/scripts/legal-files.mjs +15 -0
- package/worker/direct/index.js +2564 -1822
- package/worker/isolated/index.js +2144 -1402
- package/dist/assets/index-BKQ_L1z6.js +0 -117
- package/dist/assets/index-DPX2bQLO.css +0 -1
- package/dist/assets/langs/html-CfGypltT.js +0 -2
- package/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/dist/plugins/@deepseek-ai/dsh-client-ui-permission-presets/client.js +0 -505
- package/dist/plugins/@deepseek-ai/dsh-client-ui-schedule/client.js +0 -307
|
@@ -1211,20 +1211,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Look up one schema by `<package>#<name>`.
|
|
1213
1213
|
* @param key - global schema key.
|
|
1214
|
-
* @returns the
|
|
1214
|
+
* @returns a record containing the cached schema, or `undefined` when absent.
|
|
1215
1215
|
*/
|
|
1216
1216
|
get(key) {
|
|
1217
|
-
|
|
1217
|
+
const record = this.schemas.get(key);
|
|
1218
|
+
return record === void 0 ? void 0 : materializeSchema(record);
|
|
1218
1219
|
}
|
|
1219
1220
|
/**
|
|
1220
1221
|
* Resolve one required schema.
|
|
1221
1222
|
* @param key - global schema key.
|
|
1222
|
-
* @returns the
|
|
1223
|
+
* @returns a record containing the cached schema.
|
|
1223
1224
|
* @throws when the key is malformed, the package face is absent, or the schema is not contributed.
|
|
1224
1225
|
*/
|
|
1225
1226
|
resolve(key) {
|
|
1226
1227
|
const record = this.schemas.get(key);
|
|
1227
|
-
if (record !== void 0) return record;
|
|
1228
|
+
if (record !== void 0) return materializeSchema(record);
|
|
1228
1229
|
const hash = key.indexOf("#");
|
|
1229
1230
|
if (hash <= 0 || hash === key.length - 1) throw new Error(`typert: invalid schema key "${key}" — expected "<package>#<name>"`);
|
|
1230
1231
|
const packageName = key.slice(0, hash);
|
|
@@ -1234,10 +1235,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1234
1235
|
/**
|
|
1235
1236
|
* Enumerate live schemas in registration order.
|
|
1236
1237
|
* @param filter - optional package and face restriction.
|
|
1237
|
-
* @returns matching
|
|
1238
|
+
* @returns matching records containing the cached schemas.
|
|
1238
1239
|
*/
|
|
1239
1240
|
list(filter = {}) {
|
|
1240
|
-
return [...this.schemas.values()].filter((record) => matches(record, filter));
|
|
1241
|
+
return [...this.schemas.values()].filter((record) => matches(record, filter)).map(materializeSchema);
|
|
1241
1242
|
}
|
|
1242
1243
|
/**
|
|
1243
1244
|
* Look up generated reflection for one package face.
|
|
@@ -1283,6 +1284,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1283
1284
|
const batch = /* @__PURE__ */ new Set();
|
|
1284
1285
|
for (const schema of contribution.schemas) {
|
|
1285
1286
|
validateSegment("schema name", schema.name);
|
|
1287
|
+
if (typeof schema.create !== "function") throw new Error(`typert: schema "${schema.name}" has no create() factory`);
|
|
1286
1288
|
const key = typertKey(contribution.package, schema.name);
|
|
1287
1289
|
if (batch.has(key) || this.schemas.has(key)) throw new Error(`typert: schema "${key}" is already registered`);
|
|
1288
1290
|
batch.add(key);
|
|
@@ -1296,6 +1298,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1296
1298
|
return records;
|
|
1297
1299
|
}
|
|
1298
1300
|
};
|
|
1301
|
+
function materializeSchema(record) {
|
|
1302
|
+
const schema = record.value ??= record.create();
|
|
1303
|
+
return {
|
|
1304
|
+
name: record.name,
|
|
1305
|
+
schema,
|
|
1306
|
+
package: record.package,
|
|
1307
|
+
face: record.face,
|
|
1308
|
+
key: record.key
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1299
1311
|
function matches(record, filter) {
|
|
1300
1312
|
return (filter.package === void 0 || record.package === filter.package) && (filter.face === void 0 || record.face === filter.face);
|
|
1301
1313
|
}
|
|
@@ -1321,6 +1333,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1321
1333
|
}
|
|
1322
1334
|
const cancellation = descriptor.cancellation;
|
|
1323
1335
|
if (cancellation !== void 0 && cancellation.parameter !== "signal") throw new Error(`typert: invocation "${descriptor.id}" cancellation parameter must be "signal"`);
|
|
1336
|
+
const mode = descriptor.mode;
|
|
1337
|
+
if (mode !== void 0 && mode !== "stream") throw new Error(`typert: invocation "${descriptor.id}" mode must be "stream"`);
|
|
1338
|
+
if (descriptor.uplink !== void 0) validateCodec(descriptor.uplink.codec, `${descriptor.id} uplink`);
|
|
1324
1339
|
if (descriptor.scope !== void 0) {
|
|
1325
1340
|
if (descriptor.invocation.kind !== "direct") throw new Error(`typert: invocation "${descriptor.id}" Context receiver cannot declare a direct scope projection`);
|
|
1326
1341
|
validateSegment("scope Context key", descriptor.scope.context);
|
|
@@ -1339,7 +1354,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1339
1354
|
function validateCodec(codec, subject) {
|
|
1340
1355
|
if (codec.mode === "src-json") return;
|
|
1341
1356
|
validateNonempty(`${subject} type symbol`, codec.typeSymbol);
|
|
1342
|
-
if (typeof codec.
|
|
1357
|
+
if (typeof codec.create !== "function") throw new Error(`typert: ${subject} strict codec has no create() factory`);
|
|
1343
1358
|
}
|
|
1344
1359
|
function validateWireName(subject, value) {
|
|
1345
1360
|
if (value === "." || value === ".." || !/^[A-Za-z0-9_$.-]+$/.test(value)) throw new Error(`typert: invalid ${subject} "${value}" — must contain only RPC endpoint segment characters`);
|
|
@@ -1808,18 +1808,9 @@ window.__ModuleLoader__.load({
|
|
|
1808
1808
|
};
|
|
1809
1809
|
//#endregion
|
|
1810
1810
|
//#region ../../../packages/client/ui-edge/src/client/index.ts
|
|
1811
|
-
const inject = [
|
|
1812
|
-
"slots",
|
|
1813
|
-
"locale",
|
|
1814
|
-
"settingsScope"
|
|
1815
|
-
];
|
|
1811
|
+
const inject = ["slots", "locale"];
|
|
1816
1812
|
function apply(ctx) {
|
|
1817
1813
|
const slots = ctx.slots;
|
|
1818
|
-
const mirror = ctx.settingsScope.describe();
|
|
1819
|
-
if (mirror.persistence === "memory") {
|
|
1820
|
-
mirror.persistence = "host";
|
|
1821
|
-
mirror.load();
|
|
1822
|
-
}
|
|
1823
1814
|
ctx.effect(() => ctx.locale.register("settings.edge", {
|
|
1824
1815
|
en,
|
|
1825
1816
|
zh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-edge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-alpha.2",
|
|
4
4
|
"description": "Your DeepSeek Harness, anywhere — deploy a persistent personal coding agent to Cloudflare Workers in one command",
|
|
5
5
|
"author": "pawaca",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dshEdge": {
|
|
47
|
-
"upstreamVersion": "0.
|
|
47
|
+
"upstreamVersion": "0.2.0-rc.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@clack/prompts": "1.7.0",
|
|
@@ -57,90 +57,100 @@
|
|
|
57
57
|
"@cfworker/json-schema": "^4.1.1",
|
|
58
58
|
"@cloudflare/computer": "0.3.1",
|
|
59
59
|
"@cloudflare/workers-types": "5.20260904.1",
|
|
60
|
-
"@deepseek-ai/cordis": "4.0.
|
|
61
|
-
"@deepseek-ai/
|
|
62
|
-
"@deepseek-ai/dsh-agent
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-api-
|
|
66
|
-
"@deepseek-ai/dsh-api-
|
|
67
|
-
"@deepseek-ai/dsh-api-
|
|
68
|
-
"@deepseek-ai/dsh-api-
|
|
69
|
-
"@deepseek-ai/dsh-api-
|
|
70
|
-
"@deepseek-ai/dsh-
|
|
71
|
-
"@deepseek-ai/dsh-
|
|
72
|
-
"@deepseek-ai/dsh-
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-
|
|
75
|
-
"@deepseek-ai/dsh-
|
|
76
|
-
"@deepseek-ai/dsh-
|
|
77
|
-
"@deepseek-ai/dsh-
|
|
78
|
-
"@deepseek-ai/dsh-
|
|
79
|
-
"@deepseek-ai/dsh-
|
|
80
|
-
"@deepseek-ai/dsh-
|
|
81
|
-
"@deepseek-ai/dsh-
|
|
82
|
-
"@deepseek-ai/dsh-
|
|
83
|
-
"@deepseek-ai/dsh-
|
|
84
|
-
"@deepseek-ai/dsh-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"@deepseek-ai/dsh-
|
|
87
|
-
"@deepseek-ai/dsh-
|
|
88
|
-
"@deepseek-ai/dsh-
|
|
89
|
-
"@deepseek-ai/dsh-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-
|
|
97
|
-
"@deepseek-ai/dsh-
|
|
98
|
-
"@deepseek-ai/dsh-
|
|
99
|
-
"@deepseek-ai/dsh-
|
|
100
|
-
"@deepseek-ai/dsh-
|
|
101
|
-
"@deepseek-ai/dsh-
|
|
102
|
-
"@deepseek-ai/dsh-
|
|
103
|
-
"@deepseek-ai/dsh-
|
|
104
|
-
"@deepseek-ai/dsh-
|
|
105
|
-
"@deepseek-ai/dsh-
|
|
106
|
-
"@deepseek-ai/dsh-session
|
|
107
|
-
"@deepseek-ai/dsh-session-
|
|
108
|
-
"@deepseek-ai/dsh-session-
|
|
109
|
-
"@deepseek-ai/dsh-session-
|
|
110
|
-
"@deepseek-ai/dsh-session-
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/dsh-
|
|
114
|
-
"@deepseek-ai/dsh-
|
|
115
|
-
"@deepseek-ai/dsh-
|
|
116
|
-
"@deepseek-ai/dsh-
|
|
117
|
-
"@deepseek-ai/dsh-
|
|
118
|
-
"@deepseek-ai/dsh-
|
|
119
|
-
"@deepseek-ai/dsh-
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-
|
|
125
|
-
"@deepseek-ai/dsh-
|
|
126
|
-
"@deepseek-ai/dsh-
|
|
127
|
-
"@deepseek-ai/dsh-
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-
|
|
134
|
-
"@deepseek-ai/dsh-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@deepseek-ai/dsh-web
|
|
141
|
-
"@deepseek-ai/dsh-workflow": "0.
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/
|
|
60
|
+
"@deepseek-ai/cordis": "4.0.4",
|
|
61
|
+
"@deepseek-ai/cosmokit": "1.8.5",
|
|
62
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-anonymous-user-id": "0.2.0-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-api-job-controller": "0.2.0-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-api-settings-controller": "0.2.0-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.0-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.0-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-brand": "0.2.0-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.0-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.0-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.0-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-file-reference": "0.2.0-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-fs": "0.2.0-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-goal": "0.2.0-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-goal-round-driver": "0.2.0-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-host-directory-picker": "0.2.0-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-host-plugin-inventory": "0.2.0-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.0-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-llm-deepseek": "0.2.0-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.0-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-message-feedback": "0.2.0-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-output-retention": "0.2.0-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.0-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-schedule": "0.2.0-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-session-format": "0.2.0-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.0-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.0-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-session-format-v1-to-v2": "0.2.0-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.0-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.0-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.2.0-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-session-query": "0.2.0-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-session-reference": "0.2.0-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-session-title": "0.2.0-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-session-title-first-prompt-llm": "0.2.0-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-session-title-llm": "0.2.0-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-skill": "0.2.0-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-spill": "0.2.0-rc.1",
|
|
124
|
+
"@deepseek-ai/dsh-spill-policy": "0.2.0-rc.1",
|
|
125
|
+
"@deepseek-ai/dsh-storage": "0.2.0-rc.1",
|
|
126
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.0-rc.1",
|
|
127
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
128
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.0-rc.1",
|
|
129
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.1",
|
|
130
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-timeout": "0.2.0-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.0-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.0-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.0-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-tool-goal": "0.2.0-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.0-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.0-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.0-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-tool-web": "0.2.0-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-tool-workflow": "0.2.0-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.1",
|
|
145
|
+
"@deepseek-ai/dsh-user-approval": "0.2.0-rc.1",
|
|
146
|
+
"@deepseek-ai/dsh-user-questions": "0.2.0-rc.1",
|
|
147
|
+
"@deepseek-ai/dsh-util-values": "0.2.0-rc.1",
|
|
148
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.1",
|
|
149
|
+
"@deepseek-ai/dsh-web-fetch-http": "0.2.0-rc.1",
|
|
150
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.1",
|
|
151
|
+
"@deepseek-ai/dsh-workflow": "0.2.0-rc.1",
|
|
152
|
+
"@deepseek-ai/dsh-workspace": "0.2.0-rc.1",
|
|
153
|
+
"@deepseek-ai/schemastery": "3.18.4",
|
|
144
154
|
"@mixmark-io/domino": "2.2.0",
|
|
145
155
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
146
156
|
"acorn": "8.18.0",
|
package/scripts/cli.mjs
CHANGED
|
@@ -28,7 +28,9 @@ const DSH_EDGE_HERO = String.raw` ____ ____ _ _ _____ ____ ____ ____
|
|
|
28
28
|
| |_| |___) | _ |_____| |___| |_| | |_| | |___
|
|
29
29
|
|____/|____/|_| |_| |_____|____/ \____|_____|`
|
|
30
30
|
const KEPT_ON_UPDATE = 'conversations, files, access key, and DeepSeek key'
|
|
31
|
+
const KEPT_ON_KEY_RESET = 'conversations, files, and DeepSeek key'
|
|
31
32
|
const CONTAINER_ROLLOUT_NOTE = 'The first command after this can take a few minutes while the container image rolls out.'
|
|
33
|
+
const SESSION_FORMAT_UPGRADE_NOTE = 'Stored sessions move to a new format when this release first starts; only the stored rows that change are rewritten. Rolling back to an earlier dsh-edge release afterwards is not supported.'
|
|
32
34
|
|
|
33
35
|
export class InstallInterruptedError extends InstallCancelledError {
|
|
34
36
|
constructor(signal) {
|
|
@@ -128,7 +130,7 @@ export function createInstallerUi(
|
|
|
128
130
|
validate,
|
|
129
131
|
})))
|
|
130
132
|
},
|
|
131
|
-
async existingWorker({ workerName, mode }) {
|
|
133
|
+
async existingWorker({ workerName, mode, sessionFormatUpgrade }) {
|
|
132
134
|
note([
|
|
133
135
|
...fields([
|
|
134
136
|
['Can', modeCapabilities(mode).join(', ')],
|
|
@@ -136,6 +138,7 @@ export function createInstallerUi(
|
|
|
136
138
|
['Kept', KEPT_ON_UPDATE],
|
|
137
139
|
]),
|
|
138
140
|
...(mode === 'container' ? [CONTAINER_ROLLOUT_NOTE] : []),
|
|
141
|
+
...(sessionFormatUpgrade ? [SESSION_FORMAT_UPGRADE_NOTE] : []),
|
|
139
142
|
].join('\n'), `${workerName} already exists`)
|
|
140
143
|
return await requireAnswer(await clack.select(withOutput({
|
|
141
144
|
message: `Update ${workerName}?`,
|
|
@@ -144,6 +147,7 @@ export function createInstallerUi(
|
|
|
144
147
|
options: [
|
|
145
148
|
{ value: 'update', label: 'Update it', hint: 'keeps everything' },
|
|
146
149
|
{ value: 'change', label: 'Update and change what it can do' },
|
|
150
|
+
{ value: 'reset-key', label: 'Update and reset the access key', hint: 'if you lost it' },
|
|
147
151
|
{ value: 'rename', label: 'Use another name' },
|
|
148
152
|
{ value: 'cancel', label: 'Cancel' },
|
|
149
153
|
],
|
|
@@ -208,13 +212,21 @@ export function createInstallerUi(
|
|
|
208
212
|
['Images', summary.attachmentStorage === 'temporary-do'
|
|
209
213
|
? 'stored in this instance (64 MiB limit)'
|
|
210
214
|
: 'stored privately in Cloudflare R2'],
|
|
211
|
-
...(summary.
|
|
215
|
+
...(summary.resetAccessKey
|
|
216
|
+
? [
|
|
217
|
+
['Kept', KEPT_ON_KEY_RESET],
|
|
218
|
+
['Owner key', 'replaced; the new key is shown when the update finishes'],
|
|
219
|
+
]
|
|
220
|
+
: summary.updating
|
|
212
221
|
? [['Kept', KEPT_ON_UPDATE]]
|
|
213
222
|
: [
|
|
214
223
|
['Owner key', 'generated and shown when installation finishes'],
|
|
215
224
|
['DeepSeek', 'add your API key when the web app asks, or later in Settings → Models'],
|
|
216
225
|
]),
|
|
217
226
|
]),
|
|
227
|
+
...(summary.resetAccessKey
|
|
228
|
+
? ['', 'The old key stops working, and every signed-in browser must sign in again with the new key.']
|
|
229
|
+
: []),
|
|
218
230
|
...(summary.mode === 'container'
|
|
219
231
|
? ['', 'The container sleeps after 10 idle minutes by default; change it in Settings → DSH Edge.', CONTAINER_ROLLOUT_NOTE]
|
|
220
232
|
: []),
|
|
@@ -296,7 +308,7 @@ export function createInstallerUi(
|
|
|
296
308
|
: ['Claim this temporary account within 60 minutes to keep the Worker and its data.']),
|
|
297
309
|
'Open the URL above.',
|
|
298
310
|
newKey
|
|
299
|
-
?
|
|
311
|
+
? `Enter the ${result.updated ? 'new ' : ''}owner access key when prompted.`
|
|
300
312
|
: 'Sign in with your existing owner access key.',
|
|
301
313
|
...(result.updated ? [] : ['Add your DeepSeek API key when the web app asks (or later in Settings → Models).']),
|
|
302
314
|
...(newKey ? ['Save the owner access key; you need it to sign in.'] : []),
|
|
@@ -613,7 +625,7 @@ async function main() {
|
|
|
613
625
|
const args = process.argv.slice(2)
|
|
614
626
|
const command = parseCommand(args)
|
|
615
627
|
if (command === 'help') {
|
|
616
|
-
process.stdout.write('Usage: dsh-edge <install|upgrade> [--verbose]\n\nCommands:\n install Create an instance, or update one that already exists\n upgrade Update an existing instance, keeping its data and keys\n\nOptions:\n --verbose Show Wrangler deployment output\n\nEnvironment:\n DSH_EDGE_ACCESS_KEY Owner access key for a new instance (default: generated)\n')
|
|
628
|
+
process.stdout.write('Usage: dsh-edge <install|upgrade> [--verbose]\n\nCommands:\n install Create an instance, or update one that already exists\n upgrade Update an existing instance, keeping its data and keys\n (choose \"Update and reset the access key\" if you lost it)\n\nOptions:\n --verbose Show Wrangler deployment output\n\nEnvironment:\n DSH_EDGE_ACCESS_KEY Owner access key for a new instance or an access-key reset\n (default: generated)\n')
|
|
617
629
|
return
|
|
618
630
|
}
|
|
619
631
|
if (command === 'version') {
|
package/scripts/install.d.mts
CHANGED
|
@@ -23,11 +23,16 @@ export interface InstallerUi {
|
|
|
23
23
|
step(message: string): void
|
|
24
24
|
selectAccount(choices: Array<{ value: string; label: string; hint?: string }>): Promise<string>
|
|
25
25
|
workerName(initialValue: string, validate: (value: string) => string | undefined): Promise<string>
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* The Worker name already exists; `update` keeps everything and is the
|
|
28
|
+
* confirmation. `reset-key` updates and replaces the owner access key.
|
|
29
|
+
*/
|
|
27
30
|
existingWorker(existing: {
|
|
28
31
|
workerName: string
|
|
29
32
|
mode: RuntimeMode
|
|
30
|
-
|
|
33
|
+
/** The running release predates the 0.19 session format; updating migrates stored sessions. */
|
|
34
|
+
sessionFormatUpgrade: boolean
|
|
35
|
+
}): Promise<'update' | 'change' | 'reset-key' | 'rename' | 'cancel'>
|
|
31
36
|
/** The Worker name belongs to something other than dsh-edge; it is never updated. */
|
|
32
37
|
nameTaken(workerName: string): Promise<'rename' | 'cancel'>
|
|
33
38
|
/** Choose what the agent can do; `current` marks an existing instance's capabilities. */
|
|
@@ -41,6 +46,8 @@ export interface InstallerUi {
|
|
|
41
46
|
workerName: string
|
|
42
47
|
temporary: boolean
|
|
43
48
|
updating: boolean
|
|
49
|
+
/** An update that replaces the owner access key with a new one. */
|
|
50
|
+
resetAccessKey: boolean
|
|
44
51
|
attachmentStorage: AttachmentStorage
|
|
45
52
|
}): Promise<boolean>
|
|
46
53
|
deploymentStart?(message: string): void
|
|
@@ -145,6 +152,8 @@ export function createOutputForwarder(
|
|
|
145
152
|
export function createTerminalSanitizer(): {
|
|
146
153
|
push(chunk: string): string
|
|
147
154
|
}
|
|
155
|
+
/** Whether any process of the group still exists; an exited but unreaped group still counts. */
|
|
156
|
+
export function processGroupExists(pid: number): boolean
|
|
148
157
|
export function resolveWranglerClose(options: {
|
|
149
158
|
outputFailure?: InstallerOutputError
|
|
150
159
|
processError?: unknown
|
|
@@ -193,4 +202,5 @@ export function executeWrangler(args: string[], options?: {
|
|
|
193
202
|
export function inspectExistingDeployment(options: ExistingDeploymentOptions): Promise<{
|
|
194
203
|
mode: RuntimeMode
|
|
195
204
|
attachmentStorage: AttachmentStorage
|
|
205
|
+
sessionFormatUpgrade: boolean
|
|
196
206
|
} | null>
|
package/scripts/install.mjs
CHANGED
|
@@ -17,6 +17,9 @@ export const LOGIN_PROFILE = 'dsh-edge-install'
|
|
|
17
17
|
const appDirectory = fileURLToPath(new URL('..', import.meta.url))
|
|
18
18
|
const require = createRequire(import.meta.url)
|
|
19
19
|
const WRANGLER_CLI = require.resolve('wrangler')
|
|
20
|
+
const EDGE_VERSION = require('../package.json').version
|
|
21
|
+
/** Worker version tag naming the dsh-edge release that deployed it. */
|
|
22
|
+
const RELEASE_TAG = `v${EDGE_VERSION}`
|
|
20
23
|
const AUTH_ENV_KEYS = Object.freeze([
|
|
21
24
|
'CLOUDFLARE_ACCOUNT_ID',
|
|
22
25
|
'CLOUDFLARE_API_KEY',
|
|
@@ -340,6 +343,8 @@ export function wranglerDeployArgs({
|
|
|
340
343
|
workerName,
|
|
341
344
|
'--config',
|
|
342
345
|
configFile,
|
|
346
|
+
'--tag',
|
|
347
|
+
RELEASE_TAG,
|
|
343
348
|
]
|
|
344
349
|
if (secretsFile !== undefined) args.push('--secrets-file', secretsFile)
|
|
345
350
|
if (temporary) args.push('--temporary')
|
|
@@ -416,8 +421,10 @@ async function staleContainerCleanupCommand({ runWrangler, environment, profile,
|
|
|
416
421
|
/**
|
|
417
422
|
* Inspect the active Worker versions once for what an update must preserve:
|
|
418
423
|
* the runtime mode (so the owner is not asked again) and the attachment
|
|
419
|
-
* backend
|
|
420
|
-
*
|
|
424
|
+
* backend, and whether stored sessions still use the pre-0.19 format (no
|
|
425
|
+
* active version carries a 0.19+ release tag). `--name` alone selects the
|
|
426
|
+
* Worker, whatever mode deployed it. Returns null for a Worker that is not
|
|
427
|
+
* dsh-edge, which must never be updated.
|
|
421
428
|
*/
|
|
422
429
|
export async function inspectExistingDeployment({
|
|
423
430
|
workerName,
|
|
@@ -435,12 +442,14 @@ export async function inspectExistingDeployment({
|
|
|
435
442
|
const versionIds = deploymentVersionIds(status.stdout)
|
|
436
443
|
const modes = new Set()
|
|
437
444
|
const backends = new Set()
|
|
445
|
+
let sessionFormatUpgrade = false
|
|
438
446
|
for (const versionId of versionIds) {
|
|
439
447
|
const version = await runWrangler([
|
|
440
448
|
'versions', 'view', versionId, ...args,
|
|
441
449
|
], { environment, signal })
|
|
442
450
|
requireSuccess(version, `Could not inspect existing Worker version ${versionId}`)
|
|
443
|
-
const bindings =
|
|
451
|
+
const { bindings, tag } = versionDetails(version.stdout)
|
|
452
|
+
if (!releasedFromSessionFormatV4(tag)) sessionFormatUpgrade = true
|
|
444
453
|
if (!bindings.some(binding => binding.name === 'DSH_EDGE_INSTANCE'
|
|
445
454
|
&& binding.type === 'durable_object_namespace')) return null
|
|
446
455
|
modes.add(bindingsRuntimeMode(bindings))
|
|
@@ -455,9 +464,16 @@ export async function inspectExistingDeployment({
|
|
|
455
464
|
return {
|
|
456
465
|
mode: modes.values().next().value,
|
|
457
466
|
attachmentStorage: backends.values().next().value,
|
|
467
|
+
sessionFormatUpgrade,
|
|
458
468
|
}
|
|
459
469
|
}
|
|
460
470
|
|
|
471
|
+
/** 0.19 is the first release that stores sessions in format v4 and tags its versions. */
|
|
472
|
+
function releasedFromSessionFormatV4(tag) {
|
|
473
|
+
const match = /^v(\d+)\.(\d+)\./u.exec(tag ?? '')
|
|
474
|
+
return match !== null && (Number(match[1]) > 0 || Number(match[2]) >= 19)
|
|
475
|
+
}
|
|
476
|
+
|
|
461
477
|
// The same bindings the Worker's runtime providers probe decide its mode.
|
|
462
478
|
function bindingsRuntimeMode(bindings) {
|
|
463
479
|
if (bindings.some(binding => binding.name === 'DSH_EDGE_CONTAINER_RUNTIME'
|
|
@@ -488,7 +504,7 @@ function deploymentVersionIds(source) {
|
|
|
488
504
|
return [...new Set(ids)]
|
|
489
505
|
}
|
|
490
506
|
|
|
491
|
-
function
|
|
507
|
+
function versionDetails(source) {
|
|
492
508
|
let version
|
|
493
509
|
try {
|
|
494
510
|
version = JSON.parse(source)
|
|
@@ -501,7 +517,8 @@ function versionBindings(source) {
|
|
|
501
517
|
if (!Array.isArray(bindings) || bindings.some(binding => !isRecord(binding))) {
|
|
502
518
|
throw new Error('Wrangler returned unexpected Worker version details.')
|
|
503
519
|
}
|
|
504
|
-
|
|
520
|
+
const tag = isRecord(version.annotations) ? version.annotations['workers/tag'] : undefined
|
|
521
|
+
return { bindings, tag: typeof tag === 'string' ? tag : undefined }
|
|
505
522
|
}
|
|
506
523
|
|
|
507
524
|
function bindingsAttachmentStorage(bindings) {
|
|
@@ -638,7 +655,7 @@ export async function installEdge({
|
|
|
638
655
|
}
|
|
639
656
|
updateAction = existing === null
|
|
640
657
|
? await ui.nameTaken(workerName)
|
|
641
|
-
: await ui.existingWorker({ workerName, mode: existing.mode })
|
|
658
|
+
: await ui.existingWorker({ workerName, mode: existing.mode, sessionFormatUpgrade: existing.sessionFormatUpgrade })
|
|
642
659
|
if (updateAction === 'cancel') throw new InstallCancelledError()
|
|
643
660
|
if (updateAction !== 'rename') break
|
|
644
661
|
existing = undefined
|
|
@@ -652,8 +669,10 @@ export async function installEdge({
|
|
|
652
669
|
requireRuntimeMode(mode)
|
|
653
670
|
const attachmentStorage = existing?.attachmentStorage ?? 'temporary-do'
|
|
654
671
|
requireAttachmentStorage(attachmentStorage)
|
|
655
|
-
// An update keeps the Worker's secrets
|
|
656
|
-
|
|
672
|
+
// An update keeps the Worker's secrets unless the owner resets the access
|
|
673
|
+
// key; `--secrets-file` is additive, so the other secrets stay in place.
|
|
674
|
+
const resetAccessKey = updating && updateAction === 'reset-key'
|
|
675
|
+
const ownerSecret = updating && !resetAccessKey ? undefined : resolveOwnerSecret(environment)
|
|
657
676
|
// Choosing "Update it" was the confirmation; everything else confirms once here.
|
|
658
677
|
if (updateAction !== 'update' && !await ui.confirm({
|
|
659
678
|
mode,
|
|
@@ -661,6 +680,7 @@ export async function installEdge({
|
|
|
661
680
|
workerName,
|
|
662
681
|
temporary,
|
|
663
682
|
updating,
|
|
683
|
+
resetAccessKey,
|
|
664
684
|
attachmentStorage,
|
|
665
685
|
})) {
|
|
666
686
|
throw new InstallCancelledError()
|
|
@@ -1014,12 +1034,19 @@ async function waitForProcessGroupExit(pid, timeoutMs) {
|
|
|
1014
1034
|
return true
|
|
1015
1035
|
}
|
|
1016
1036
|
|
|
1017
|
-
|
|
1037
|
+
/**
|
|
1038
|
+
* Whether any process of the group still exists. EPERM also means it does: on
|
|
1039
|
+
* macOS, probing a group whose members have exited but are not yet reaped by
|
|
1040
|
+
* this process answers EPERM rather than success, until the reap turns it into
|
|
1041
|
+
* ESRCH.
|
|
1042
|
+
*/
|
|
1043
|
+
export function processGroupExists(pid) {
|
|
1018
1044
|
try {
|
|
1019
1045
|
process.kill(-pid, 0)
|
|
1020
1046
|
return true
|
|
1021
1047
|
} catch (error) {
|
|
1022
1048
|
if (error?.code === 'ESRCH') return false
|
|
1049
|
+
if (error?.code === 'EPERM') return true
|
|
1023
1050
|
throw error
|
|
1024
1051
|
}
|
|
1025
1052
|
}
|
package/scripts/legal-files.mjs
CHANGED
|
@@ -23,6 +23,18 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
23
23
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
24
|
SOFTWARE.`
|
|
25
25
|
|
|
26
|
+
const ISC_TERMS = `Permission to use, copy, modify, and/or distribute this software for any
|
|
27
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
28
|
+
copyright notice and this permission notice appear in all copies.
|
|
29
|
+
|
|
30
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
31
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
32
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
33
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
34
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
35
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
36
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.`
|
|
37
|
+
|
|
26
38
|
const edgeLicense = `MIT License
|
|
27
39
|
|
|
28
40
|
Copyright (c) 2026 pawaca
|
|
@@ -135,6 +147,9 @@ function missingLicenseFallback(component, apacheTerms) {
|
|
|
135
147
|
if (component.license === 'MIT' || component.license === 'MIT OR Apache-2.0') {
|
|
136
148
|
return `${provenance}\n\nThe MIT branch is reproduced for this distribution:\n\nMIT License\n\nPublished package author: ${author}\n\n${MIT_TERMS}`
|
|
137
149
|
}
|
|
150
|
+
if (component.license === 'ISC') {
|
|
151
|
+
return `${provenance}\n\nISC License\n\nPublished package author: ${author}\n\n${ISC_TERMS}`
|
|
152
|
+
}
|
|
138
153
|
if (component.license === 'Apache-2.0' && apacheTerms !== undefined) {
|
|
139
154
|
return `${provenance}\n\n${apacheTerms}`
|
|
140
155
|
}
|