spets 0.1.98 → 0.2.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-BQWHTHA3.js → chunk-2MUV3F53.js} +19 -0
- package/dist/{chunk-3OOPOFUK.js → chunk-3JIHGW47.js} +1 -1
- package/dist/{chunk-TXGA3CZZ.js → chunk-3QH66XVU.js} +4 -1
- package/dist/{chunk-HXNXQAVN.js → chunk-BCOGSLCX.js} +1 -1
- package/dist/{chunk-NYBOEOGE.js → chunk-ZRWVDWBF.js} +2 -1
- package/dist/{config-ALWYEUVJ.js → config-FMQ5APSF.js} +2 -2
- package/dist/{docs-KUVQEWW4.js → docs-FNCV4EQF.js} +2 -2
- package/dist/index.js +771 -69
- package/dist/{knowledge-3WOLZUWG.js → knowledge-QC6464NS.js} +2 -2
- package/dist/{tasks-YSWQLXLI.js → tasks-2IAXZVDS.js} +2 -2
- package/package.json +10 -2
- package/web/dist/assets/index-3dD4COCL.css +1 -0
- package/web/dist/assets/index-D7PKBhmU.js +195 -0
- package/web/dist/index.html +13 -0
|
@@ -96,6 +96,24 @@ function clearConfigCache() {
|
|
|
96
96
|
configCachePath = null;
|
|
97
97
|
stepDefinitionCache.clear();
|
|
98
98
|
}
|
|
99
|
+
function loadStepDefinition(stepName, cwd = process.cwd()) {
|
|
100
|
+
const cacheKey = `${cwd}:${stepName}`;
|
|
101
|
+
if (stepDefinitionCache.has(cacheKey)) {
|
|
102
|
+
return stepDefinitionCache.get(cacheKey);
|
|
103
|
+
}
|
|
104
|
+
const stepDir = join(getStepsDir(cwd), stepName);
|
|
105
|
+
const templatePath = join(stepDir, "template.md");
|
|
106
|
+
const template = existsSync(templatePath) ? readFileSync(templatePath, "utf-8") : void 0;
|
|
107
|
+
const stepDef = {
|
|
108
|
+
name: stepName,
|
|
109
|
+
template
|
|
110
|
+
};
|
|
111
|
+
stepDefinitionCache.set(cacheKey, stepDef);
|
|
112
|
+
return stepDef;
|
|
113
|
+
}
|
|
114
|
+
function loadAllSteps(config, cwd = process.cwd()) {
|
|
115
|
+
return config.steps.map((stepName) => loadStepDefinition(stepName, cwd));
|
|
116
|
+
}
|
|
99
117
|
function getGitHubConfig(cwd = process.cwd()) {
|
|
100
118
|
const config = loadConfig(cwd);
|
|
101
119
|
return config.github;
|
|
@@ -109,5 +127,6 @@ export {
|
|
|
109
127
|
spetsExists,
|
|
110
128
|
loadConfig,
|
|
111
129
|
clearConfigCache,
|
|
130
|
+
loadAllSteps,
|
|
112
131
|
getGitHubConfig
|
|
113
132
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSpetsDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2MUV3F53.js";
|
|
4
4
|
|
|
5
5
|
// src/ui/sections/knowledge.ts
|
|
6
6
|
import { spawnSync } from "child_process";
|
|
@@ -204,6 +204,9 @@ async function runKnowledgeInteractive(cwd = process.cwd()) {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
export {
|
|
207
|
+
getKnowledgeDir,
|
|
208
|
+
listKnowledgeFiles,
|
|
209
|
+
loadKnowledgeFile,
|
|
207
210
|
loadKnowledgeFiles,
|
|
208
211
|
saveKnowledge,
|
|
209
212
|
loadGuide,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getOutputsDir,
|
|
3
3
|
loadConfig,
|
|
4
4
|
spetsExists
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2MUV3F53.js";
|
|
6
6
|
|
|
7
7
|
// src/ui/sections/tasks.ts
|
|
8
8
|
import { select as select2 } from "@inquirer/prompts";
|
|
@@ -530,6 +530,7 @@ To resume this task, run:`);
|
|
|
530
530
|
|
|
531
531
|
export {
|
|
532
532
|
generateTaskId,
|
|
533
|
+
loadDocument,
|
|
533
534
|
listTasks,
|
|
534
535
|
getWorkflowState,
|
|
535
536
|
loadTaskMetadata,
|