@wrongstack/core 0.73.1 → 0.77.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/{agent-bridge-C0Ze7Ldm.d.ts → agent-bridge-EWdqs8v6.d.ts} +1 -1
- package/dist/{agent-subagent-runner-BmITbs1Q.d.ts → agent-subagent-runner-D8qW8OSC.d.ts} +2 -2
- package/dist/coordination/index.d.ts +7 -7
- package/dist/coordination/index.js +64 -6
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +11 -11
- package/dist/defaults/index.js +107 -45
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-BBAlxBuw.d.ts → events-CYaoLN5_.d.ts} +37 -0
- package/dist/execution/index.d.ts +6 -6
- package/dist/extension/index.d.ts +2 -2
- package/dist/{index-yQbZ2NQx.d.ts → index-DIxjTOga.d.ts} +2 -2
- package/dist/{index-BN6i2Nfg.d.ts → index-Dsda0uCn.d.ts} +1 -1
- package/dist/index.d.ts +96 -23
- package/dist/index.js +234 -25
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +3 -3
- package/dist/infrastructure/index.js +16 -2
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +3 -3
- package/dist/kernel/index.js.map +1 -1
- package/dist/{logger-bOzkF5LL.d.ts → logger-BppKxDqZ.d.ts} +9 -0
- package/dist/{multi-agent-coordinator-BSBbZt0e.d.ts → multi-agent-coordinator-DpbG3wiy.d.ts} +1 -1
- package/dist/{null-fleet-bus-BCIRT_nV.d.ts → null-fleet-bus-u5ys3lW_.d.ts} +13 -4
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-CjAYGaCw.d.ts → parallel-eternal-engine-Dn0P8Pbj.d.ts} +3 -3
- package/dist/{path-resolver-BnqXa9Ze.d.ts → path-resolver-B32v2JIq.d.ts} +1 -1
- package/dist/{plan-templates-DBgrTGPu.d.ts → plan-templates-BcUwLlMQ.d.ts} +7 -2
- package/dist/{provider-runner-n3KkHT_w.d.ts → provider-runner-CSi_7l0h.d.ts} +1 -1
- package/dist/sdd/index.d.ts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +22 -6
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -10
- package/dist/types/index.js +16 -2
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +12 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-eMXnY1_X.d.ts → wstack-paths-D7evAFWM.d.ts} +8 -1
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as TodoItem, M as Message, J as JSONSchema } from '../context-y87Jc5ei.js';
|
|
2
|
-
export { W as WstackPathOptions, a as WstackPaths, p as projectHash, r as resolveWstackPaths } from '../wstack-paths-
|
|
2
|
+
export { W as WstackPathOptions, a as WstackPaths, p as projectHash, b as projectSlug, r as resolveWstackPaths } from '../wstack-paths-D7evAFWM.js';
|
|
3
3
|
import { M as ModelsDevPayload } from '../models-registry-BcYJDKLm.js';
|
|
4
4
|
import { k as CustomModelDefinition } from '../config-Dy0CK_o6.js';
|
|
5
5
|
|
package/dist/utils/index.js
CHANGED
|
@@ -535,11 +535,20 @@ function unifiedDiff(oldText, newText, opts = {}) {
|
|
|
535
535
|
function projectHash(absRoot) {
|
|
536
536
|
return createHash("sha256").update(path2.resolve(absRoot)).digest("hex").slice(0, 12);
|
|
537
537
|
}
|
|
538
|
+
function projectSlug(absRoot) {
|
|
539
|
+
const base = slugify(path2.basename(absRoot));
|
|
540
|
+
const hash = createHash("sha256").update(path2.resolve(absRoot)).digest("hex").slice(0, 6);
|
|
541
|
+
return `${base}-${hash}`;
|
|
542
|
+
}
|
|
543
|
+
function slugify(name) {
|
|
544
|
+
return name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 40) || "project";
|
|
545
|
+
}
|
|
538
546
|
function resolveWstackPaths(opts) {
|
|
539
547
|
const home = opts.userHome ?? os.homedir();
|
|
540
548
|
const globalRoot = opts.globalRoot ?? path2.join(home, ".wrongstack");
|
|
541
549
|
const hash = projectHash(opts.projectRoot);
|
|
542
|
-
const
|
|
550
|
+
const slug = projectSlug(opts.projectRoot);
|
|
551
|
+
const projectDir = path2.join(globalRoot, "projects", slug);
|
|
543
552
|
return {
|
|
544
553
|
globalRoot,
|
|
545
554
|
configDir: globalRoot,
|
|
@@ -564,6 +573,7 @@ function resolveWstackPaths(opts) {
|
|
|
564
573
|
inProjectSkills: path2.join(opts.projectRoot, ".wrongstack", "skills"),
|
|
565
574
|
inProjectWorktrees: path2.join(opts.projectRoot, ".wrongstack", "worktrees"),
|
|
566
575
|
projectHash: hash,
|
|
576
|
+
projectSlug: slug,
|
|
567
577
|
projectGoal: path2.join(projectDir, "goal.json"),
|
|
568
578
|
projectSpecs: path2.join(projectDir, "specs"),
|
|
569
579
|
projectTaskGraphs: path2.join(projectDir, "task-graphs"),
|
|
@@ -1346,6 +1356,6 @@ function mergeCustomModelDefs(providerCustomModels, configModels) {
|
|
|
1346
1356
|
return out;
|
|
1347
1357
|
}
|
|
1348
1358
|
|
|
1349
|
-
export { atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, projectHash, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
|
|
1359
|
+
export { atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, projectHash, projectSlug, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
|
|
1350
1360
|
//# sourceMappingURL=index.js.map
|
|
1351
1361
|
//# sourceMappingURL=index.js.map
|