@letra-ai/cli 0.6.1 → 0.7.0
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-2GRNAFBQ.js +5305 -0
- package/dist/{chunk-MJ2QXNH6.js → chunk-42RST74I.js} +1 -1
- package/dist/chunk-HC24XMPZ.js +269 -0
- package/dist/chunk-LUPN3TRC.js +554 -0
- package/dist/{chunk-KGQLHMGZ.js → chunk-MUCIMQAU.js} +1918 -757
- package/dist/chunk-POGWTSEA.js +125 -0
- package/dist/chunk-TNF7XTFG.js +6178 -0
- package/dist/{chunk-BKAUN5QH.js → chunk-UMC5PDL2.js} +227 -33
- package/dist/{chunk-6HSUVCTR.js → chunk-YAQ2TKSK.js} +82 -30
- package/dist/client/assets/index-C-6kWNFi.js +232 -0
- package/dist/client/assets/index-QV-zN0V8.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/fallback-CXCCKHBA.js +56 -0
- package/dist/flow-serve-LFILD3EV.js +19 -0
- package/dist/{generate-N22QOXUF.js → generate-3R7POT7L.js} +4 -5
- package/dist/harness/default/v0.1.0/gates/all-acs-passing.yaml +1 -0
- package/dist/harness/default/v0.1.0/gates/has-spec-file.yaml +1 -0
- package/dist/harness/default/v0.1.1/gates/all-acs-passing.yaml +1 -0
- package/dist/harness/default/v0.1.1/gates/has-spec-file.yaml +1 -0
- package/dist/harness/default/v0.1.2/gates/all-acs-passing.yaml +1 -0
- package/dist/harness/default/v0.1.2/gates/has-spec-file.yaml +1 -0
- package/dist/harness/default/v0.1.3/gates/all-acs-passing.yaml +1 -0
- package/dist/harness/default/v0.1.3/gates/has-spec-file.yaml +1 -0
- package/dist/harness/default/v0.2.0/executors/registry.yaml +17 -0
- package/dist/harness/default/v0.2.0/flows/flow-main.yaml +84 -4
- package/dist/harness/default/v0.2.0/gates/code-reviewed.yaml +1 -0
- package/dist/harness/default/v0.2.0/gates/human-approved.yaml +4 -3
- package/dist/harness/default/v0.2.0/gates/security-clear.yaml +1 -0
- package/dist/harness/default/v0.2.0/gates/spec-approved.yaml +3 -3
- package/dist/{health-record-YDVXEVLR.js → health-record-JO2ZTIMR.js} +2 -2
- package/dist/index.js +2237 -1104
- package/dist/{push-5JEYSXBY.js → push-2ZCQSOHF.js} +37 -49
- package/dist/server-WUYVNSH7.js +677 -0
- package/dist/service-SVEAXQBX.js +28 -0
- package/dist/service-TOBY3OHO.js +22 -0
- package/dist/service-USTAY5E3.js +62 -0
- package/dist/{session-log-WTQ5JBEN.js → session-log-X2Q4XKQN.js} +6 -2
- package/dist/specs-CQRB7LPA.js +21 -0
- package/dist/sync-LIVPQXEW.js +21 -0
- package/package.json +1 -1
- package/dist/chunk-4QDEU6KP.js +0 -2765
- package/dist/chunk-BTPFUKHG.js +0 -275
- package/dist/chunk-EDD55PWL.js +0 -119
- package/dist/chunk-ELBTIPYN.js +0 -256
- package/dist/chunk-IEFSLCJL.js +0 -837
- package/dist/chunk-MSF44WWE.js +0 -443
- package/dist/chunk-QIVKP3EY.js +0 -362
- package/dist/client/assets/index-BuABgOyz.js +0 -232
- package/dist/client/assets/index-CpseCZh9.css +0 -1
- package/dist/fallback-UXSZ4LNR.js +0 -47
- package/dist/flow-serve-MTB6KZMR.js +0 -19
- package/dist/focus-sync-3D3XWCTI.js +0 -17
- package/dist/server-FUP3APZA.js +0 -415
- package/dist/service-OGF7BMCQ.js +0 -21
- package/dist/sitrep-DJXTP3JO.js +0 -16
|
@@ -2,27 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateAdapters,
|
|
4
4
|
loadWorkflow
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-BKAUN5QH.js";
|
|
5
|
+
} from "./chunk-2GRNAFBQ.js";
|
|
7
6
|
import "./chunk-JMIC5NKB.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-42RST74I.js";
|
|
8
|
+
import "./chunk-UMC5PDL2.js";
|
|
10
9
|
import {
|
|
11
|
-
|
|
12
|
-
getSpecsDir,
|
|
10
|
+
LINK_FILE,
|
|
13
11
|
isWorkspaceMode,
|
|
14
12
|
resolveWorkspaceRoot
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import
|
|
17
|
-
__require
|
|
18
|
-
} from "./chunk-PDX44BCA.js";
|
|
13
|
+
} from "./chunk-YAQ2TKSK.js";
|
|
14
|
+
import "./chunk-PDX44BCA.js";
|
|
19
15
|
|
|
20
16
|
// src/commands/push.ts
|
|
21
|
-
import { existsSync,
|
|
22
|
-
import { join, relative } from "path";
|
|
17
|
+
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
18
|
+
import { join, relative, resolve } from "path";
|
|
23
19
|
import chalk from "chalk";
|
|
24
20
|
async function push(targetPath, options) {
|
|
25
|
-
const cwd = targetPath ?
|
|
21
|
+
const cwd = targetPath ? resolve(process.cwd(), targetPath) : process.cwd();
|
|
26
22
|
const resolution = resolveWorkspaceRoot(cwd);
|
|
27
23
|
if (!isWorkspaceMode(resolution)) {
|
|
28
24
|
console.log(
|
|
@@ -48,16 +44,18 @@ async function push(targetPath, options) {
|
|
|
48
44
|
`));
|
|
49
45
|
}
|
|
50
46
|
const files = [];
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
files.push(
|
|
47
|
+
if (resolve(targetDir) !== resolve(workspaceDir)) {
|
|
48
|
+
const linkPath = join(targetDir, LINK_FILE);
|
|
49
|
+
if (existsSync(linkPath)) {
|
|
50
|
+
const linkedTarget = readFileSync(linkPath, "utf8").trim().split("\n")[0] ?? "";
|
|
51
|
+
if (!linkedTarget || resolve(targetDir, linkedTarget) !== resolve(workspaceDir)) {
|
|
52
|
+
console.log(chalk.red(` Conflito: ${LINK_FILE} j\xE1 aponta para outro workspace; nada foi alterado.`));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
} else {
|
|
56
|
+
files.push(LINK_FILE);
|
|
57
|
+
if (!dryRun) writeFileSync(linkPath, `${workspaceDir}
|
|
58
|
+
`, "utf8");
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
const normalizedTarget = targetDir.replace(/\\/g, "/");
|
|
@@ -67,26 +65,23 @@ async function push(targetPath, options) {
|
|
|
67
65
|
return locationPath === normalizedTarget || locationPath === relativeTarget || locationPath === targetPath;
|
|
68
66
|
});
|
|
69
67
|
const effectiveTools = targetConfig?.adapters && targetConfig.adapters.length > 0 ? targetConfig.adapters : workflow.tools;
|
|
70
|
-
if (effectiveTools && effectiveTools.length > 0
|
|
68
|
+
if (effectiveTools && effectiveTools.length > 0) {
|
|
71
69
|
const activeStage = workflow.primaryItemId ? workflow.items.find((i) => i.id === workflow.primaryItemId)?.stage : workflow.items[0]?.stage;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
".windsurfrules",
|
|
88
|
-
".github/copilot-instructions.md"
|
|
89
|
-
);
|
|
70
|
+
for (const tool of effectiveTools) {
|
|
71
|
+
files.push(`adapters/${tool}/`);
|
|
72
|
+
if (!dryRun) generateAdapters(join(workspaceDir, "adapters", tool), [tool], {
|
|
73
|
+
source: "flow-move",
|
|
74
|
+
workflow: {
|
|
75
|
+
name: workflow.name,
|
|
76
|
+
stages: workflow.stages,
|
|
77
|
+
items: workflow.items
|
|
78
|
+
},
|
|
79
|
+
activeStageId: activeStage || workflow.stages[0]?.id || "backlog",
|
|
80
|
+
primaryItemId: workflow.primaryItemId || workflow.items[0]?.id,
|
|
81
|
+
workspaceDir,
|
|
82
|
+
contentRoot: workspaceDir
|
|
83
|
+
});
|
|
84
|
+
}
|
|
90
85
|
}
|
|
91
86
|
if (!quiet) {
|
|
92
87
|
if (files.length === 0) {
|
|
@@ -104,13 +99,6 @@ async function push(targetPath, options) {
|
|
|
104
99
|
}
|
|
105
100
|
}
|
|
106
101
|
}
|
|
107
|
-
function readdirSyncSimple(dir) {
|
|
108
|
-
try {
|
|
109
|
-
return __require("fs").readdirSync(dir, { recursive: true });
|
|
110
|
-
} catch {
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
102
|
export {
|
|
115
103
|
push
|
|
116
104
|
};
|