@workflow-code/cli 0.2.4-20261011005.codex-cli-web → 0.2.4-20261011007.codex-cli-web
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-HLMW6LAQ.js +908 -0
- package/dist/{chunk-G7PZDTYW.js → chunk-MNY562W5.js} +1 -1
- package/dist/{chunk-BP2VDZQV.js → chunk-P6K3NB5S.js} +1 -0
- package/dist/{chunk-T4FXQ7AQ.js → chunk-WN7VAGK6.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{local-7HMZSBG2.js → local-QLYFH4WT.js} +3 -3
- package/dist/{mcp-5H6U7H4S.js → mcp-LQ2IV6VA.js} +2 -2
- package/dist/web/kanban-data.mjs +613 -0
- package/dist/web/kanban-workspace.css +2354 -0
- package/dist/web/kanban-workspace.js +4530 -0
- package/dist/web/worker.mjs +7 -1
- package/dist/web/workflow-ui.js +6 -2
- package/dist/web/workflow-workspace.js +30 -4
- package/dist/{web-A3HVQRKB.js → web-KEM7Y2ZR.js} +751 -62
- package/dist/{workspace-G7SB6MS5.js → workspace-V3UXVFK6.js} +9 -76
- package/package.json +3 -2
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
KANBAN_MANIFEST_FILE,
|
|
4
|
+
createKanbanArtifactEntryPath,
|
|
5
|
+
readKanbanArtifactConfig,
|
|
6
|
+
readPackageProjectType
|
|
7
|
+
} from "./chunk-HLMW6LAQ.js";
|
|
2
8
|
import {
|
|
3
9
|
prepareCliInvocation
|
|
4
10
|
} from "./chunk-J2JMC4MZ.js";
|
|
@@ -13,7 +19,7 @@ import {
|
|
|
13
19
|
isWorkflowUuid,
|
|
14
20
|
readWorkflowProjectInfo,
|
|
15
21
|
resolveWorkflowRelatedProjectAccess
|
|
16
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-P6K3NB5S.js";
|
|
17
23
|
import {
|
|
18
24
|
getCurrentLocale,
|
|
19
25
|
i18n,
|
|
@@ -541,79 +547,6 @@ import path from "path";
|
|
|
541
547
|
|
|
542
548
|
// .shared/project-upload/index.ts
|
|
543
549
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
544
|
-
|
|
545
|
-
// .shared/kanban-project/index.ts
|
|
546
|
-
var KANBAN_MANIFEST_FILE = "kanban.json";
|
|
547
|
-
var KANBAN_ENTRY_FILE = "index.html";
|
|
548
|
-
var KANBAN_ARTIFACT_DIR = ".";
|
|
549
|
-
var KANBAN_FILE_MAX_BYTES = 50 * 1024 * 1024;
|
|
550
|
-
function readPackageProjectType(value) {
|
|
551
|
-
if (!isRecord(value)) return void 0;
|
|
552
|
-
const workflowCode = value["workflowCode"];
|
|
553
|
-
if (!isRecord(workflowCode)) return void 0;
|
|
554
|
-
return workflowCode["projectType"] === "kanban" ? "kanban" : void 0;
|
|
555
|
-
}
|
|
556
|
-
function readKanbanArtifactConfig(value) {
|
|
557
|
-
if (!isRecord(value)) {
|
|
558
|
-
throw new Error("package.json root must be an object.");
|
|
559
|
-
}
|
|
560
|
-
const workflowCode = value["workflowCode"];
|
|
561
|
-
if (!isRecord(workflowCode)) {
|
|
562
|
-
throw new Error("package.json workflowCode must be an object for a Kanban project.");
|
|
563
|
-
}
|
|
564
|
-
const rawConfig = workflowCode["kanban"];
|
|
565
|
-
if (rawConfig !== void 0 && !isRecord(rawConfig)) {
|
|
566
|
-
throw new Error("package.json workflowCode.kanban must be an object.");
|
|
567
|
-
}
|
|
568
|
-
if (rawConfig?.["dataSources"] !== void 0) {
|
|
569
|
-
throw new Error(
|
|
570
|
-
"package.json workflowCode.kanban.dataSources was removed; declare workflowCode.projectInfo.relatedProjects instead."
|
|
571
|
-
);
|
|
572
|
-
}
|
|
573
|
-
return {
|
|
574
|
-
artifactDir: readKanbanRelativePath(
|
|
575
|
-
rawConfig?.["artifactDir"],
|
|
576
|
-
"workflowCode.kanban.artifactDir",
|
|
577
|
-
KANBAN_ARTIFACT_DIR,
|
|
578
|
-
true
|
|
579
|
-
),
|
|
580
|
-
entry: readKanbanRelativePath(
|
|
581
|
-
rawConfig?.["entry"],
|
|
582
|
-
"workflowCode.kanban.entry",
|
|
583
|
-
KANBAN_ENTRY_FILE,
|
|
584
|
-
false
|
|
585
|
-
)
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
function createKanbanArtifactEntryPath(config) {
|
|
589
|
-
return config.artifactDir === KANBAN_ARTIFACT_DIR ? config.entry : `${config.artifactDir}/${config.entry}`;
|
|
590
|
-
}
|
|
591
|
-
function readKanbanRelativePath(value, field, fallback, allowDot) {
|
|
592
|
-
const raw = value === void 0 ? fallback : value;
|
|
593
|
-
if (typeof raw !== "string" || raw.trim() === "") {
|
|
594
|
-
throw new Error(`package.json ${field} must be a non-empty string.`);
|
|
595
|
-
}
|
|
596
|
-
const normalized = raw.trim().replaceAll("\\", "/").replace(/\/+$/, "");
|
|
597
|
-
if (allowDot && normalized === ".") return normalized;
|
|
598
|
-
if (normalized === "" || normalized === "." || normalized.startsWith("/") || normalized.startsWith("//") || /^[a-zA-Z]:/.test(normalized) || normalized.includes("\0") || normalized.split("/").some((part) => part === "" || part === "." || part === "..")) {
|
|
599
|
-
throw new Error(`package.json ${field} must be a safe project-relative path.`);
|
|
600
|
-
}
|
|
601
|
-
const reservedDirectory = normalized.split("/").find((part) => [".git", ".hg", ".svn", "node_modules"].includes(part.toLowerCase()));
|
|
602
|
-
if (reservedDirectory !== void 0) {
|
|
603
|
-
throw new Error(
|
|
604
|
-
`package.json ${field} must not use reserved directory ${JSON.stringify(reservedDirectory)}.`
|
|
605
|
-
);
|
|
606
|
-
}
|
|
607
|
-
if (!allowDot && !/\.html?$/i.test(normalized)) {
|
|
608
|
-
throw new Error(`package.json ${field} must point to an HTML file.`);
|
|
609
|
-
}
|
|
610
|
-
return normalized;
|
|
611
|
-
}
|
|
612
|
-
function isRecord(value) {
|
|
613
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
// .shared/project-upload/index.ts
|
|
617
550
|
var WORKFLOW_IGNORE_FILE = ".workflowignore";
|
|
618
551
|
function hasWorkflowIgnoreRules(content) {
|
|
619
552
|
if (content === void 0) return false;
|
|
@@ -875,7 +808,7 @@ function isProjectGroupHostDataPath(filePath) {
|
|
|
875
808
|
return baseName === ".env" || baseName === ".envrc" || baseName.startsWith(".env.") && baseName !== ".env.example";
|
|
876
809
|
}
|
|
877
810
|
function parseDependencyLock(value, index, published) {
|
|
878
|
-
if (!
|
|
811
|
+
if (!isRecord(value)) {
|
|
879
812
|
throw dependencyError(
|
|
880
813
|
"lockObject",
|
|
881
814
|
`Project dependency lock[${index}] must be an object.`,
|
|
@@ -966,7 +899,7 @@ function readOptionalString(value, field) {
|
|
|
966
899
|
}
|
|
967
900
|
return value.trim();
|
|
968
901
|
}
|
|
969
|
-
function
|
|
902
|
+
function isRecord(value) {
|
|
970
903
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
971
904
|
}
|
|
972
905
|
function assertSupportedFields(value, supportedFields, field) {
|
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-20261011007.codex-cli-web",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"workflow-code": "./dist/index.js"
|
|
@@ -38,10 +38,11 @@
|
|
|
38
38
|
"workflow-code": "0.2.4-20260929001",
|
|
39
39
|
"@workflow-code/auth-config": "0.1.0",
|
|
40
40
|
"@workflow-code/execution-targets": "0.1.0",
|
|
41
|
+
"@workflow-code/kanban-project": "0.1.0",
|
|
41
42
|
"@workflow-code/i18n": "0.1.0",
|
|
42
43
|
"@workflow-code/openai-responses": "0.1.0",
|
|
43
|
-
"@workflow-code/project-info": "0.1.0",
|
|
44
44
|
"@workflow-code/project-dependencies": "0.1.0",
|
|
45
|
+
"@workflow-code/project-info": "0.1.0",
|
|
45
46
|
"@workflow-code/project-upload": "0.1.0",
|
|
46
47
|
"@workflow-code/runtime-compatibility": "0.1.0",
|
|
47
48
|
"@workflow-code/workflow-ids": "0.1.0",
|