@workflow-code/cli 0.2.4-20260913002 → 0.2.4-20260915001
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/{chunk-JFKLYN5N.js → chunk-J5O2O4SM.js} +1 -1
- package/dist/{chunk-VVM2HB7H.js → chunk-NUYTXYWI.js} +74 -6
- package/dist/index.js +5 -5
- package/dist/{local-LLZVKUQW.js → local-KZGKXXGH.js} +2 -2
- package/dist/{mcp-2FQRHZMR.js → mcp-24TNJGMZ.js} +1 -1
- package/dist/{workspace-TSJW4LXW.js → workspace-CKNLJISH.js} +25 -5
- package/package.json +8 -8
|
@@ -3721,7 +3721,9 @@ var desktop = {
|
|
|
3721
3721
|
releaseExecutionTargets: "Release targets",
|
|
3722
3722
|
releaseExecutionTargetsDescription: "Choose Server execution and local execution on this device for the immutable version.",
|
|
3723
3723
|
serverCloudExecution: "Server cloud execution",
|
|
3724
|
-
serverCloudExecutionDescription: "Prepare a Server runtime for runs,
|
|
3724
|
+
serverCloudExecutionDescription: "Prepare a Server runtime for runs, Webhook, and schedules.",
|
|
3725
|
+
webExecution: "Web execution",
|
|
3726
|
+
webExecutionDescription: "Mark this version as loadable from the Web entry point and launchable to the Web. Web runs are hosted by Desktop, which must be online.",
|
|
3725
3727
|
kanbanServerExecutionDisabled: "Kanban is statically hosted and does not use the Server executor.",
|
|
3726
3728
|
desktopTargetMacos: "macOS local execution",
|
|
3727
3729
|
desktopTargetWindows: "Windows local execution",
|
|
@@ -4472,6 +4474,34 @@ var desktop = {
|
|
|
4472
4474
|
loginItemDescription: "When enabled, Desktop starts in the background without opening the main window. Restore it from the system tray.",
|
|
4473
4475
|
enabled: "Enabled",
|
|
4474
4476
|
disabledByDefault: "Off by default",
|
|
4477
|
+
localProjectAccess: "Local projects",
|
|
4478
|
+
localProjectAccessDescription: "Local projects are created, imported, or installed on this device. They stay hidden here until you turn them on.",
|
|
4479
|
+
localProjectAccessAria: "Enable local projects on this device",
|
|
4480
|
+
localProjectAccessEnabled: "Local projects are enabled",
|
|
4481
|
+
localProjectAccessDisabled: "Local projects are disabled",
|
|
4482
|
+
localProjectAccessEnableDescription: "Enabling this lets Workflow Code run projects from this device again. Nothing changes until you confirm the risks.",
|
|
4483
|
+
localProjectAccessEnableConfirm: "Enable local projects",
|
|
4484
|
+
localProjectAccessSaveFailed: "Failed to update the local project setting.",
|
|
4485
|
+
localProjectAccessRiskExecute: "Local projects execute their own source on this machine, so an untrusted project can harm it.",
|
|
4486
|
+
localProjectAccessRiskFiles: "Local runs can read and write files on this machine and in the local application database.",
|
|
4487
|
+
localProjectAccessRiskUpload: "Publishing a project, or launching it to the Web, may upload its source to the server.",
|
|
4488
|
+
localProjectAccessRiskDependencies: "Runs fail outright when a project dependency is missing, outdated, or damaged.",
|
|
4489
|
+
localProjectAccessRiskSchedules: "Local schedules keep firing in the background once configured.",
|
|
4490
|
+
localProjectsDisabledScopeHint: "Local projects are turned off. Enable them in Settings to show them here.",
|
|
4491
|
+
localProjectsGateRunRefused: 'Local project "{{projectName}}" cannot run while local projects are disabled in Settings.',
|
|
4492
|
+
runToWebTitle: "Run {{projectName}} on the Web",
|
|
4493
|
+
runToWebMenuItem: "Run on the Web",
|
|
4494
|
+
runToWebDescription: "Desktop hosts this run and serves the page. Keep Desktop running while the browser is using it.",
|
|
4495
|
+
runToWebStarting: "Preparing the Web session\u2026",
|
|
4496
|
+
runToWebPublicLinkHint: "Open this link in any browser. Anyone who has it can watch this run until the session ends.",
|
|
4497
|
+
runToWebRelayPending: "Desktop is not connected to the relay yet, so this link will not open for anyone else. It keeps trying in the background.",
|
|
4498
|
+
runToWebRelayIdentity: "Relay identity",
|
|
4499
|
+
runToWebLinkHint: "Open this link in a browser on this machine. It carries a single-use token and stops working once used.",
|
|
4500
|
+
runToWebOpen: "Open in browser",
|
|
4501
|
+
runToWebCopy: "Copy link",
|
|
4502
|
+
runToWebUnavailable: "The Desktop Web session could not be started.",
|
|
4503
|
+
runToWebLocalProjectsDisabled: "Local projects are turned off",
|
|
4504
|
+
runToWebLocalProjectsDisabledHint: "Turn local projects on in Settings before launching one to the Web.",
|
|
4475
4505
|
desktopUpdate: "Desktop update",
|
|
4476
4506
|
desktopVersionLine: "Workflow Code Desktop {{version}}",
|
|
4477
4507
|
availableVersionLabel: "Version {{version}}",
|
|
@@ -6339,6 +6369,7 @@ var serverWeb = {
|
|
|
6339
6369
|
versionsVersionStatusPreparing: "Preparing",
|
|
6340
6370
|
versionsTargetMacos: "macOS",
|
|
6341
6371
|
versionsTargetServer: "Server",
|
|
6372
|
+
versionsTargetWeb: "Web",
|
|
6342
6373
|
versionsTargetStaticWeb: "Static Web",
|
|
6343
6374
|
versionsTargetWindows: "Windows",
|
|
6344
6375
|
versionsTargetNone: "No executor",
|
|
@@ -6937,10 +6968,10 @@ var cli = {
|
|
|
6937
6968
|
" status",
|
|
6938
6969
|
" health",
|
|
6939
6970
|
" pack <workflow> [--path <workflow-dir>] [--output <file.tgz>] [--project-group] [--dependency <alias>=<path>]",
|
|
6940
|
-
" upload <workflow> [--path <workflow-dir>] [--file <archive>] [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--desktop-platform macos|windows] [--no-wait] [--create] [--project-group] [--publish-group] [--dependency <alias>=<path>]",
|
|
6971
|
+
" upload <workflow> [--path <workflow-dir>] [--file <archive>] [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--web-runtime|--no-web-runtime] [--desktop-platform macos|windows] [--no-wait] [--create] [--project-group] [--publish-group] [--dependency <alias>=<path>]",
|
|
6941
6972
|
" preparation <workflow-id> <job-id>",
|
|
6942
6973
|
" download <workflow> [--target draft|latest|version] [--path <dir>]",
|
|
6943
|
-
" publish <workflow> [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--desktop-platform macos|windows] [--project-group] [--dependency <alias>=<path>]",
|
|
6974
|
+
" publish <workflow> [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--web-runtime|--no-web-runtime] [--desktop-platform macos|windows] [--project-group] [--dependency <alias>=<path>]",
|
|
6944
6975
|
" publish --deployment <id>",
|
|
6945
6976
|
" run <workflow> [...args] [--target draft|latest|version] [--entrypoint <id>]",
|
|
6946
6977
|
" debug-node <workflow> <node> [...args] [--target draft|latest|version] [--entrypoint <id>]",
|
|
@@ -6953,6 +6984,7 @@ var cli = {
|
|
|
6953
6984
|
" --server <url> Defaults to WORKFLOW_SERVER_URL, saved CLI auth, or http://localhost:7125",
|
|
6954
6985
|
" --token <token> Optional manual override. Defaults to WORKFLOW_SERVER_ADMIN_KEY or saved CLI auth API key",
|
|
6955
6986
|
" --server-runtime / --no-server-runtime Enable or disable Server execution for this release",
|
|
6987
|
+
" --web-runtime / --no-web-runtime Mark this version loadable from the Web entry point and launchable to the Web; requires retained source",
|
|
6956
6988
|
" --desktop-platform <macos|windows> Add a downloadable Desktop target; may be repeated"
|
|
6957
6989
|
].join("\n"),
|
|
6958
6990
|
invalidLocale: 'Unsupported locale "{{value}}". Expected "zh-CN" or "en".',
|
|
@@ -6986,6 +7018,8 @@ var cli = {
|
|
|
6986
7018
|
invalidSourceMode: '--source-mode must be "bundled" or "source".',
|
|
6987
7019
|
workspaceDownloadPlatformUnsupported: "workspace download is only supported on macOS and Windows; current platform is {{platform}}.",
|
|
6988
7020
|
serverRuntimeOptionsConflict: "--server-runtime and --no-server-runtime cannot be combined.",
|
|
7021
|
+
webRuntimeOptionsConflict: "--web-runtime and --no-web-runtime cannot be combined.",
|
|
7022
|
+
webRuntimeRequiresSource: "--web-runtime cannot be combined with --source-mode bundled; Web releases require source mode.",
|
|
6989
7023
|
invalidDesktopPlatform: 'Unsupported --desktop-platform "{{platform}}". Expected macos or windows.',
|
|
6990
7024
|
executionTargetCommandUnsupported: "Execution target options are only supported by upload and publish.",
|
|
6991
7025
|
desktopPlatformRequiresSource: "--desktop-platform cannot be combined with --source-mode bundled; Desktop releases require source mode.",
|
|
@@ -8610,7 +8644,9 @@ var desktop2 = {
|
|
|
8610
8644
|
releaseExecutionTargets: "\u53D1\u884C\u76EE\u6807",
|
|
8611
8645
|
releaseExecutionTargetsDescription: "\u9009\u62E9\u6B64\u4E0D\u53EF\u53D8\u7248\u672C\u7684 Server \u6267\u884C\u4E0E\u5F53\u524D\u8BBE\u5907\u672C\u5730\u8FD0\u884C\u80FD\u529B\u3002",
|
|
8612
8646
|
serverCloudExecution: "Server \u4E91\u7AEF\u6267\u884C",
|
|
8613
|
-
serverCloudExecutionDescription: "\u4E3A\u8FD0\u884C\
|
|
8647
|
+
serverCloudExecutionDescription: "\u4E3A\u8FD0\u884C\u3001Webhook \u548C\u8BA1\u5212\u4EFB\u52A1\u51C6\u5907 Server runtime\u3002",
|
|
8648
|
+
webExecution: "Web \u6267\u884C",
|
|
8649
|
+
webExecutionDescription: "\u628A\u8BE5\u7248\u672C\u6807\u8BB0\u4E3A\u53EF\u7531 Web \u5165\u53E3\u52A0\u8F7D\u3001\u5E76\u53EF\u542F\u52A8\u5230 Web\uFF1BWeb \u8FD0\u884C\u7531 Desktop \u5BBF\u4E3B\u6267\u884C\uFF0C\u9700\u8981 Desktop \u5728\u7EBF\u3002",
|
|
8614
8650
|
kanbanServerExecutionDisabled: "Kanban \u4F7F\u7528\u9759\u6001\u6258\u7BA1\uFF0C\u4E0D\u8FDB\u5165 Server executor\u3002",
|
|
8615
8651
|
desktopTargetMacos: "macOS \u672C\u5730\u8FD0\u884C",
|
|
8616
8652
|
desktopTargetWindows: "Windows \u672C\u5730\u8FD0\u884C",
|
|
@@ -9361,6 +9397,34 @@ var desktop2 = {
|
|
|
9361
9397
|
loginItemDescription: "\u542F\u7528\u540E\u4EE5\u540E\u53F0\u6A21\u5F0F\u542F\u52A8\uFF0C\u4E0D\u81EA\u52A8\u6253\u5F00\u4E3B\u7A97\u53E3\uFF1B\u53EF\u4ECE\u7CFB\u7EDF\u6258\u76D8\u6062\u590D\u7A97\u53E3\u3002",
|
|
9362
9398
|
enabled: "\u5DF2\u542F\u7528",
|
|
9363
9399
|
disabledByDefault: "\u9ED8\u8BA4\u5173\u95ED",
|
|
9400
|
+
localProjectAccess: "\u672C\u5730\u9879\u76EE",
|
|
9401
|
+
localProjectAccessDescription: "\u672C\u5730\u9879\u76EE\u5728\u5F53\u524D\u8BBE\u5907\u4E2D\u521B\u5EFA\u3001\u5BFC\u5165\u6216\u5B89\u88C5\uFF1B\u5728\u4F60\u4E8E\u6B64\u5904\u5F00\u542F\u4E4B\u524D\u4E0D\u4F1A\u663E\u793A\u3002",
|
|
9402
|
+
localProjectAccessAria: "\u5728\u5F53\u524D\u8BBE\u5907\u542F\u7528\u672C\u5730\u9879\u76EE",
|
|
9403
|
+
localProjectAccessEnabled: "\u672C\u5730\u9879\u76EE\u5DF2\u542F\u7528",
|
|
9404
|
+
localProjectAccessDisabled: "\u672C\u5730\u9879\u76EE\u5DF2\u5173\u95ED",
|
|
9405
|
+
localProjectAccessEnableDescription: "\u5F00\u542F\u540E Workflow Code \u4F1A\u91CD\u65B0\u8FD0\u884C\u672C\u673A\u4E0A\u7684\u9879\u76EE\uFF1B\u9700\u8981\u5148\u786E\u8BA4\u98CE\u9669\u624D\u4F1A\u751F\u6548\u3002",
|
|
9406
|
+
localProjectAccessEnableConfirm: "\u542F\u7528\u672C\u5730\u9879\u76EE",
|
|
9407
|
+
localProjectAccessSaveFailed: "\u66F4\u65B0\u672C\u5730\u9879\u76EE\u8BBE\u7F6E\u5931\u8D25\u3002",
|
|
9408
|
+
localProjectAccessRiskExecute: "\u672C\u5730\u9879\u76EE\u4F1A\u5728\u672C\u673A\u76F4\u63A5\u6267\u884C\u81EA\u8EAB\u6E90\u7801\uFF0C\u6765\u6E90\u4E0D\u53EF\u4FE1\u7684\u9879\u76EE\u53EF\u80FD\u5371\u5BB3\u672C\u673A\u3002",
|
|
9409
|
+
localProjectAccessRiskFiles: "\u672C\u5730\u8FD0\u884C\u53EF\u4EE5\u8BFB\u5199\u672C\u673A\u6587\u4EF6\u4E0E\u672C\u5730\u5E94\u7528\u6570\u636E\u5E93\u3002",
|
|
9410
|
+
localProjectAccessRiskUpload: "\u53D1\u5E03\u9879\u76EE\u3001\u6216\u628A\u9879\u76EE\u542F\u52A8\u5230 Web \u65F6\uFF0C\u53EF\u80FD\u628A\u6E90\u7801\u4E0A\u4F20\u5230\u670D\u52A1\u5668\u3002",
|
|
9411
|
+
localProjectAccessRiskDependencies: "\u9879\u76EE\u4F9D\u8D56\u7F3A\u5931\u3001\u8FC7\u671F\u6216\u635F\u574F\u65F6\u4F1A\u76F4\u63A5\u8FD0\u884C\u5931\u8D25\u3002",
|
|
9412
|
+
localProjectAccessRiskSchedules: "\u672C\u5730\u5B9A\u65F6\u4EFB\u52A1\u914D\u7F6E\u540E\u4F1A\u6301\u7EED\u5728\u540E\u53F0\u89E6\u53D1\u3002",
|
|
9413
|
+
localProjectsDisabledScopeHint: "\u672C\u5730\u9879\u76EE\u5DF2\u5173\u95ED\uFF1B\u8BF7\u5148\u5728\u8BBE\u7F6E\u4E2D\u5F00\u542F\uFF0C\u624D\u80FD\u5728\u6B64\u663E\u793A\u3002",
|
|
9414
|
+
localProjectsGateRunRefused: "\u672C\u5730\u9879\u76EE\u201C{{projectName}}\u201D\u5728\u8BBE\u7F6E\u4E2D\u5F00\u542F\u672C\u5730\u9879\u76EE\u4E4B\u524D\u65E0\u6CD5\u8FD0\u884C\u3002",
|
|
9415
|
+
runToWebTitle: "\u5728 Web \u4E0A\u8FD0\u884C {{projectName}}",
|
|
9416
|
+
runToWebMenuItem: "\u542F\u52A8\u5230 Web",
|
|
9417
|
+
runToWebDescription: "\u8BE5\u8FD0\u884C\u7531 Desktop \u5BBF\u4E3B\u6267\u884C\u5E76\u63D0\u4F9B\u9875\u9762\uFF1B\u6D4F\u89C8\u5668\u4F7F\u7528\u671F\u95F4\u8BF7\u4FDD\u6301 Desktop \u8FD0\u884C\u3002",
|
|
9418
|
+
runToWebStarting: "\u6B63\u5728\u51C6\u5907 Web \u4F1A\u8BDD\u2026",
|
|
9419
|
+
runToWebPublicLinkHint: "\u53EF\u5728\u4EFB\u610F\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u6B64\u94FE\u63A5\u3002\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u53EF\u4EE5\u89C2\u770B\u8FD9\u6B21\u8FD0\u884C\uFF0C\u76F4\u5230\u4F1A\u8BDD\u7ED3\u675F\u3002",
|
|
9420
|
+
runToWebRelayPending: "Desktop \u5C1A\u672A\u8FDE\u63A5\u5230\u4E2D\u7EE7\uFF0C\u8FD9\u4E2A\u94FE\u63A5\u5728\u5176\u5B83\u8BBE\u5907\u4E0A\u8FD8\u6253\u4E0D\u5F00\u3002Desktop \u4F1A\u5728\u540E\u53F0\u7EE7\u7EED\u91CD\u8BD5\u3002",
|
|
9421
|
+
runToWebRelayIdentity: "\u4E2D\u7EE7\u8EAB\u4EFD",
|
|
9422
|
+
runToWebLinkHint: "\u8BF7\u5728\u672C\u673A\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u6B64\u94FE\u63A5\u3002\u94FE\u63A5\u643A\u5E26\u4E00\u6B21\u6027\u4EE4\u724C\uFF0C\u4F7F\u7528\u540E\u5373\u5931\u6548\u3002",
|
|
9423
|
+
runToWebOpen: "\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00",
|
|
9424
|
+
runToWebCopy: "\u590D\u5236\u94FE\u63A5",
|
|
9425
|
+
runToWebUnavailable: "\u65E0\u6CD5\u542F\u52A8 Desktop Web \u4F1A\u8BDD\u3002",
|
|
9426
|
+
runToWebLocalProjectsDisabled: "\u672C\u5730\u9879\u76EE\u5DF2\u5173\u95ED",
|
|
9427
|
+
runToWebLocalProjectsDisabledHint: "\u8BF7\u5148\u5728\u8BBE\u7F6E\u4E2D\u5F00\u542F\u672C\u5730\u9879\u76EE\uFF0C\u518D\u628A\u9879\u76EE\u542F\u52A8\u5230 Web\u3002",
|
|
9364
9428
|
desktopUpdate: "Desktop \u66F4\u65B0",
|
|
9365
9429
|
desktopVersionLine: "Workflow Code Desktop {{version}}",
|
|
9366
9430
|
availableVersionLabel: "\u7248\u672C {{version}}",
|
|
@@ -11228,6 +11292,7 @@ var serverWeb2 = {
|
|
|
11228
11292
|
versionsVersionStatusPreparing: "\u51C6\u5907\u4E2D",
|
|
11229
11293
|
versionsTargetMacos: "macOS",
|
|
11230
11294
|
versionsTargetServer: "Server",
|
|
11295
|
+
versionsTargetWeb: "Web",
|
|
11231
11296
|
versionsTargetStaticWeb: "\u9759\u6001 Web",
|
|
11232
11297
|
versionsTargetWindows: "Windows",
|
|
11233
11298
|
versionsTargetNone: "\u65E0\u6267\u884C\u76EE\u6807",
|
|
@@ -11826,10 +11891,10 @@ var cli2 = {
|
|
|
11826
11891
|
" status",
|
|
11827
11892
|
" health",
|
|
11828
11893
|
" pack <workflow> [--path <workflow-dir>] [--output <file.tgz>] [--project-group] [--dependency <alias>=<path>]",
|
|
11829
|
-
" upload <workflow> [--path <workflow-dir>] [--file <archive>] [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--desktop-platform macos|windows] [--no-wait] [--create] [--project-group] [--publish-group] [--dependency <alias>=<path>]",
|
|
11894
|
+
" upload <workflow> [--path <workflow-dir>] [--file <archive>] [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--web-runtime|--no-web-runtime] [--desktop-platform macos|windows] [--no-wait] [--create] [--project-group] [--publish-group] [--dependency <alias>=<path>]",
|
|
11830
11895
|
" preparation <workflow-id> <job-id>",
|
|
11831
11896
|
" download <workflow> [--target draft|latest|version] [--path <dir>]",
|
|
11832
|
-
" publish <workflow> [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--desktop-platform macos|windows] [--project-group] [--dependency <alias>=<path>]",
|
|
11897
|
+
" publish <workflow> [--release-log <text>] [--source-mode bundled|source] [--server-runtime|--no-server-runtime] [--web-runtime|--no-web-runtime] [--desktop-platform macos|windows] [--project-group] [--dependency <alias>=<path>]",
|
|
11833
11898
|
" publish --deployment <id>",
|
|
11834
11899
|
" run <workflow> [...args] [--target draft|latest|version] [--entrypoint <id>]",
|
|
11835
11900
|
" debug-node <workflow> <node> [...args] [--target draft|latest|version] [--entrypoint <id>]",
|
|
@@ -11842,6 +11907,7 @@ var cli2 = {
|
|
|
11842
11907
|
" --server <url> \u9ED8\u8BA4\u8BFB\u53D6 WORKFLOW_SERVER_URL\u3001\u5DF2\u4FDD\u5B58\u7684 CLI \u8BA4\u8BC1\u6216 http://localhost:7125",
|
|
11843
11908
|
" --token <token> \u53EF\u9009\u7684\u624B\u52A8\u8986\u76D6\u503C\uFF0C\u9ED8\u8BA4\u8BFB\u53D6 WORKFLOW_SERVER_ADMIN_KEY \u6216\u5DF2\u4FDD\u5B58\u7684 CLI API key",
|
|
11844
11909
|
" --server-runtime / --no-server-runtime \u4E3A\u672C\u6B21\u53D1\u884C\u542F\u7528\u6216\u5173\u95ED Server \u6267\u884C",
|
|
11910
|
+
" --web-runtime / --no-web-runtime \u58F0\u660E\u8BE5\u7248\u672C\u53EF\u7531 Web \u5165\u53E3\u52A0\u8F7D\u5E76\u542F\u52A8\u5230 Web\uFF0C\u9700\u8981\u4FDD\u7559\u6E90\u7801",
|
|
11845
11911
|
" --desktop-platform <macos|windows> \u589E\u52A0\u53EF\u4E0B\u8F7D\u7684 Desktop \u76EE\u6807\uFF0C\u53EF\u91CD\u590D\u6307\u5B9A"
|
|
11846
11912
|
].join("\n"),
|
|
11847
11913
|
invalidLocale: "\u4E0D\u652F\u6301\u8BED\u8A00 {{value}}\uFF0C\u53EA\u80FD\u4F7F\u7528 zh-CN \u6216 en\u3002",
|
|
@@ -11875,6 +11941,8 @@ var cli2 = {
|
|
|
11875
11941
|
invalidSourceMode: "--source-mode \u53EA\u80FD\u662F bundled \u6216 source\u3002",
|
|
11876
11942
|
workspaceDownloadPlatformUnsupported: "workspace download \u4EC5\u652F\u6301 macOS \u548C Windows\uFF0C\u5F53\u524D\u5E73\u53F0\u4E3A {{platform}}\u3002",
|
|
11877
11943
|
serverRuntimeOptionsConflict: "--server-runtime \u4E0E --no-server-runtime \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528\u3002",
|
|
11944
|
+
webRuntimeOptionsConflict: "--web-runtime \u4E0E --no-web-runtime \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528\u3002",
|
|
11945
|
+
webRuntimeRequiresSource: "--web-runtime \u4E0D\u80FD\u4E0E --source-mode bundled \u540C\u65F6\u4F7F\u7528\uFF1BWeb \u53D1\u884C\u5FC5\u987B\u4FDD\u7559\u6E90\u7801\u3002",
|
|
11878
11946
|
invalidDesktopPlatform: "\u4E0D\u652F\u6301 --desktop-platform {{platform}}\uFF0C\u53EA\u80FD\u4F7F\u7528 macos \u6216 windows\u3002",
|
|
11879
11947
|
executionTargetCommandUnsupported: "\u53D1\u884C\u76EE\u6807\u53C2\u6570\u4EC5\u652F\u6301 upload \u548C publish \u547D\u4EE4\u3002",
|
|
11880
11948
|
desktopPlatformRequiresSource: "--desktop-platform \u4E0D\u80FD\u4E0E --source-mode bundled \u540C\u65F6\u4F7F\u7528\uFF1BDesktop \u53D1\u884C\u5FC5\u987B\u4FDD\u7559\u6E90\u7801\u3002",
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
prepareCliInvocation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J5O2O4SM.js";
|
|
5
5
|
import {
|
|
6
6
|
i18n,
|
|
7
7
|
translateWorkflowCodeError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NUYTXYWI.js";
|
|
9
9
|
import "./chunk-NSPRIPOP.js";
|
|
10
10
|
|
|
11
11
|
// src/index.ts
|
|
@@ -23,12 +23,12 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
23
23
|
const prepared = prepareCliInvocation(argv);
|
|
24
24
|
argv = prepared.argv;
|
|
25
25
|
if (argv[0] === "workspace") {
|
|
26
|
-
const workspaceCli = await import("./workspace-
|
|
26
|
+
const workspaceCli = await import("./workspace-CKNLJISH.js");
|
|
27
27
|
await workspaceCli.main(argv.slice(1), { localeInitialized: true });
|
|
28
28
|
return typeof process.exitCode === "number" ? process.exitCode : 0;
|
|
29
29
|
}
|
|
30
30
|
if (argv[0] === "mcp") {
|
|
31
|
-
const mcpCli = await import("./mcp-
|
|
31
|
+
const mcpCli = await import("./mcp-24TNJGMZ.js");
|
|
32
32
|
return mcpCli.main(argv.slice(1));
|
|
33
33
|
}
|
|
34
34
|
if (argv.length === 0 || argv[0] === "help" || argv[0] === "--help" || argv[0] === "-h") {
|
|
@@ -38,7 +38,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
38
38
|
}
|
|
39
39
|
const { register } = await import("tsx/esm/api");
|
|
40
40
|
register();
|
|
41
|
-
const localCli = await import("./local-
|
|
41
|
+
const localCli = await import("./local-KZGKXXGH.js");
|
|
42
42
|
return localCli.main(argv, { localeInitialized: true });
|
|
43
43
|
}
|
|
44
44
|
function formatHelp() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
prepareCliInvocation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J5O2O4SM.js";
|
|
5
5
|
import {
|
|
6
6
|
createCliRelatedProjectRuntime,
|
|
7
7
|
parseCliRelatedProjectSpec
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
i18n,
|
|
14
14
|
translateWorkflowCodeError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NUYTXYWI.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__toESM
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-PGM3IPWA.js";
|
|
9
9
|
import {
|
|
10
10
|
prepareCliInvocation
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J5O2O4SM.js";
|
|
12
12
|
import {
|
|
13
13
|
isWorkflowUuid,
|
|
14
14
|
readWorkflowProjectInfo,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getCurrentLocale,
|
|
19
19
|
i18n,
|
|
20
20
|
translateWorkflowCodeError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NUYTXYWI.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__toESM
|
|
@@ -1970,6 +1970,7 @@ async function uploadProjectGroupPackage(options) {
|
|
|
1970
1970
|
const query = new URLSearchParams({ fileName: archiveName });
|
|
1971
1971
|
if (options.executionTargets !== void 0) {
|
|
1972
1972
|
query.set("serverRuntime", String(options.executionTargets.server));
|
|
1973
|
+
query.set("webRuntime", String(options.executionTargets.web));
|
|
1973
1974
|
for (const platform of options.executionTargets.desktop) {
|
|
1974
1975
|
query.append("desktopPlatform", platform);
|
|
1975
1976
|
}
|
|
@@ -2118,6 +2119,7 @@ async function uploadPackage(options) {
|
|
|
2118
2119
|
const query = new URLSearchParams({ fileName: archiveName });
|
|
2119
2120
|
if (options.executionTargets !== void 0) {
|
|
2120
2121
|
query.set("serverRuntime", String(options.executionTargets.server));
|
|
2122
|
+
query.set("webRuntime", String(options.executionTargets.web));
|
|
2121
2123
|
for (const platform of options.executionTargets.desktop) {
|
|
2122
2124
|
query.append("desktopPlatform", platform);
|
|
2123
2125
|
}
|
|
@@ -2381,6 +2383,18 @@ function parseArgs(argv) {
|
|
|
2381
2383
|
}
|
|
2382
2384
|
options.serverRuntime = false;
|
|
2383
2385
|
break;
|
|
2386
|
+
case "--web-runtime":
|
|
2387
|
+
if (options.webRuntime === false) {
|
|
2388
|
+
throw new Error(i18n.t("webRuntimeOptionsConflict", { ns: "cli" }));
|
|
2389
|
+
}
|
|
2390
|
+
options.webRuntime = true;
|
|
2391
|
+
break;
|
|
2392
|
+
case "--no-web-runtime":
|
|
2393
|
+
if (options.webRuntime === true) {
|
|
2394
|
+
throw new Error(i18n.t("webRuntimeOptionsConflict", { ns: "cli" }));
|
|
2395
|
+
}
|
|
2396
|
+
options.webRuntime = false;
|
|
2397
|
+
break;
|
|
2384
2398
|
case "--desktop-platform": {
|
|
2385
2399
|
const value = requireValue(rest, index += 1, "--desktop-platform");
|
|
2386
2400
|
if (!isWorkflowDesktopExecutionPlatform(value)) {
|
|
@@ -2437,13 +2451,16 @@ function parseArgs(argv) {
|
|
|
2437
2451
|
if (options.projectGroup === true && command !== "pack" && command !== "upload" && command !== "publish") {
|
|
2438
2452
|
throw new Error(i18n.t("projectGroupCommandUnsupported", { ns: "cli" }));
|
|
2439
2453
|
}
|
|
2440
|
-
const hasExecutionTargetOptions = options.serverRuntime !== void 0 || options.desktopPlatforms.length > 0;
|
|
2454
|
+
const hasExecutionTargetOptions = options.serverRuntime !== void 0 || options.webRuntime !== void 0 || options.desktopPlatforms.length > 0;
|
|
2441
2455
|
if (hasExecutionTargetOptions && command !== "upload" && command !== "publish") {
|
|
2442
2456
|
throw new Error(i18n.t("executionTargetCommandUnsupported", { ns: "cli" }));
|
|
2443
2457
|
}
|
|
2444
2458
|
if (options.sourceMode === "bundled" && options.desktopPlatforms.length > 0) {
|
|
2445
2459
|
throw new Error(i18n.t("desktopPlatformRequiresSource", { ns: "cli" }));
|
|
2446
2460
|
}
|
|
2461
|
+
if (options.sourceMode === "bundled" && options.webRuntime === true) {
|
|
2462
|
+
throw new Error(i18n.t("webRuntimeRequiresSource", { ns: "cli" }));
|
|
2463
|
+
}
|
|
2447
2464
|
if (options.deployment !== void 0 && (options.projectGroup === true || options.dependencies.length > 0 || options.path !== void 0 || options.file !== void 0 || options.output !== void 0 || options.create === true || options.releaseLog !== void 0 || options.sourceMode !== void 0 || hasExecutionTargetOptions)) {
|
|
2448
2465
|
throw new Error(i18n.t("deploymentOptionsConflict", { ns: "cli" }));
|
|
2449
2466
|
}
|
|
@@ -2454,14 +2471,17 @@ function parseArgs(argv) {
|
|
|
2454
2471
|
};
|
|
2455
2472
|
}
|
|
2456
2473
|
function resolveRequestedExecutionTargets(options, projectType) {
|
|
2457
|
-
if (options.serverRuntime === void 0 && options.desktopPlatforms.length === 0)
|
|
2474
|
+
if (options.serverRuntime === void 0 && options.webRuntime === void 0 && options.desktopPlatforms.length === 0) {
|
|
2475
|
+
return void 0;
|
|
2476
|
+
}
|
|
2458
2477
|
return {
|
|
2459
2478
|
server: options.serverRuntime ?? projectType !== "kanban",
|
|
2479
|
+
web: options.webRuntime ?? false,
|
|
2460
2480
|
desktop: [...options.desktopPlatforms]
|
|
2461
2481
|
};
|
|
2462
2482
|
}
|
|
2463
2483
|
function resolveRequestedSourceMode(options, executionTargets) {
|
|
2464
|
-
return (executionTargets?.desktop.length ?? 0) > 0 ? "source" : options.sourceMode;
|
|
2484
|
+
return (executionTargets?.desktop.length ?? 0) > 0 || executionTargets?.web === true ? "source" : options.sourceMode;
|
|
2465
2485
|
}
|
|
2466
2486
|
function requireLogin(parsed) {
|
|
2467
2487
|
if (parsed.options.server.trim() === "" || parsed.options.token.trim() === "") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow-code/cli",
|
|
3
|
-
"version": "0.2.4-
|
|
3
|
+
"version": "0.2.4-20260915001",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"workflow-code": "./dist/index.js"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"zod": "4.4.3"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"workflow-code": "0.2.4-
|
|
23
|
+
"workflow-code": "0.2.4-20260915001"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^25.6.0",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
31
|
"vitest": "^4.1.7",
|
|
32
|
-
"workflow-code": "0.2.4-
|
|
32
|
+
"workflow-code": "0.2.4-20260915001",
|
|
33
33
|
"@workflow-code/auth-config": "0.1.0",
|
|
34
|
-
"@workflow-code/
|
|
34
|
+
"@workflow-code/execution-targets": "0.1.0",
|
|
35
35
|
"@workflow-code/i18n": "0.1.0",
|
|
36
|
+
"@workflow-code/openai-responses": "0.1.0",
|
|
36
37
|
"@workflow-code/project-dependencies": "0.1.0",
|
|
37
|
-
"@workflow-code/execution-targets": "0.1.0",
|
|
38
38
|
"@workflow-code/project-info": "0.1.0",
|
|
39
39
|
"@workflow-code/project-upload": "0.1.0",
|
|
40
40
|
"@workflow-code/runtime-compatibility": "0.1.0",
|
|
41
|
-
"@workflow-code/workflow-
|
|
42
|
-
"@workflow-code/workflow-
|
|
41
|
+
"@workflow-code/workflow-ids": "0.1.0",
|
|
42
|
+
"@workflow-code/workflow-mcp": "0.1.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"bootstrap": "node scripts/bootstrap.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
|
51
51
|
"test": "pnpm build && vitest run",
|
|
52
52
|
"coverage": "pnpm build && vitest run --coverage",
|
|
53
|
-
"test:scripts": "node --test scripts/__tests__/*.test.mjs",
|
|
53
|
+
"test:scripts": "node --test --test-reporter=spec scripts/__tests__/*.test.mjs",
|
|
54
54
|
"release:prepare": "node scripts/prepare-release.mjs"
|
|
55
55
|
}
|
|
56
56
|
}
|