@abelxiaoxing/cadence 2.0.29 → 2.0.31
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.de.md +2 -0
- package/README.es.md +2 -0
- package/README.fr.md +2 -0
- package/README.ja.md +3 -0
- package/README.ko.md +3 -0
- package/README.md +2 -0
- package/README.pt-BR.md +2 -0
- package/README.ru.md +2 -0
- package/README.zh-CN.md +2 -0
- package/docs/conversation-mode.md +3 -1
- package/docs/history.md +25 -6
- package/docs/service-management.md +3 -2
- package/package.json +3 -2
- package/src/cadence-mode.ts +3 -1
- package/src/index.ts +3 -0
- package/src/native-build.ts +1 -1
- package/src/sdk-worker.mjs +79 -20
- package/src/service/contracts/workbench.ts +449 -88
- package/src/service/coordination.ts +1 -0
- package/src/service-cli.mjs +4 -3
- package/src/service-host.mjs +2104 -1057
- package/src/session-entries.mjs +7 -0
- package/src/session-sharing.ts +120 -0
- package/web/dist/assets/cadence.css +1 -1
- package/web/dist/assets/cadence.js +13 -13
- package/web/dist/manifest.json +7 -7
- package/src/conversation-context.mjs +0 -225
package/src/service-cli.mjs
CHANGED
|
@@ -2291,7 +2291,7 @@ var HEADER = [
|
|
|
2291
2291
|
var TOKEN_BYTES = 1024;
|
|
2292
2292
|
function accessToken(value) {
|
|
2293
2293
|
const result = text(value, TOKEN_BYTES, true);
|
|
2294
|
-
if (
|
|
2294
|
+
if (/[\p{Cc}\p{Cf}]/u.test(result))
|
|
2295
2295
|
throw new ContractError("invalid");
|
|
2296
2296
|
return result;
|
|
2297
2297
|
}
|
|
@@ -2367,7 +2367,7 @@ function decode(source) {
|
|
|
2367
2367
|
try {
|
|
2368
2368
|
return { port: number, token: accessToken(t.value) };
|
|
2369
2369
|
} catch {
|
|
2370
|
-
return unusable(`has ${TOKEN_KEY} on line ${t.line}
|
|
2370
|
+
return unusable(`has ${TOKEN_KEY} on line ${t.line} that is empty, over ${TOKEN_BYTES} bytes or with control characters`);
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
var code = (error) => error?.code ?? "error";
|
|
@@ -3438,6 +3438,7 @@ class ServiceCoordination {
|
|
|
3438
3438
|
"host-config.json",
|
|
3439
3439
|
"history-v2",
|
|
3440
3440
|
"conversations-v1",
|
|
3441
|
+
"conversation-commands-v1",
|
|
3441
3442
|
"conversation-workflows-v1",
|
|
3442
3443
|
"workflows-v1"
|
|
3443
3444
|
]);
|
|
@@ -6712,7 +6713,7 @@ function observedServerResult(result, service) {
|
|
|
6712
6713
|
}
|
|
6713
6714
|
function serverConfigHint(error) {
|
|
6714
6715
|
return `Cadence changed nothing: ${error.path} ${error.reason}.
|
|
6715
|
-
Fix it and run the command again; the file holds the WebUI port and token as ${PORT_KEY}=<1-65535> and ${TOKEN_KEY}=<
|
|
6716
|
+
Fix it and run the command again; the file holds the WebUI port and token as ${PORT_KEY}=<1-65535> and ${TOKEN_KEY}=<a non-empty token>, one line each.
|
|
6716
6717
|
`;
|
|
6717
6718
|
}
|
|
6718
6719
|
function registryGuidance(_workspace, stateHome) {
|