@letra-ai/cli 0.6.2 → 0.8.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-MJ2QXNH6.js → chunk-42RST74I.js} +1 -1
- package/dist/chunk-5VGLNF7Q.js +6193 -0
- package/dist/chunk-EEIVVJK4.js +269 -0
- package/dist/{chunk-URUC6ZZP.js → chunk-FK6CIZE7.js} +1735 -861
- package/dist/chunk-LUPN3TRC.js +554 -0
- package/dist/chunk-POGWTSEA.js +125 -0
- package/dist/chunk-U264XFAO.js +5322 -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-J7OVUHDK.js +56 -0
- package/dist/flow-serve-AD4CFVJ4.js +19 -0
- package/dist/{generate-UPFERQMD.js → generate-MUAEF3JC.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 +81 -3
- package/dist/harness/default/v0.2.0/gates/code-reviewed.yaml +1 -0
- package/dist/harness/default/v0.2.0/gates/human-approved.yaml +1 -0
- package/dist/harness/default/v0.2.0/gates/security-clear.yaml +1 -0
- package/dist/{health-record-YDVXEVLR.js → health-record-JO2ZTIMR.js} +2 -2
- package/dist/index.js +2309 -1167
- package/dist/{push-VJRSQGUD.js → push-OCAQ5SK3.js} +37 -49
- package/dist/server-TOL32IF4.js +677 -0
- package/dist/service-KI5XMOBA.js +22 -0
- package/dist/service-SVEAXQBX.js +28 -0
- package/dist/service-YJ3GLLWB.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-553BP2FM.js +21 -0
- package/package.json +1 -1
- package/dist/chunk-DMOLJWWW.js +0 -3321
- package/dist/chunk-EDD55PWL.js +0 -119
- package/dist/chunk-H64RC3YS.js +0 -254
- package/dist/chunk-L6YKDTAQ.js +0 -275
- package/dist/chunk-OIHMDOIN.js +0 -1326
- package/dist/client/assets/index-EyRsq1SH.css +0 -1
- package/dist/client/assets/index-WfKR7Xp6.js +0 -232
- package/dist/fallback-MQLGS4KL.js +0 -46
- package/dist/flow-serve-G5MSSB3G.js +0 -18
- package/dist/focus-sync-3D3XWCTI.js +0 -17
- package/dist/server-P6GKRWDX.js +0 -423
- package/dist/service-2JN2KI4D.js +0 -29
- package/dist/sitrep-OKNZJICV.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-U264XFAO.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
|
};
|