@appchy/jarvis 0.1.127 → 0.1.129
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/bin.js +12 -6
- package/dist/bin.js.map +1 -1
- package/harness/presets/appchy/PRESET.md +27 -3
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -4811,8 +4811,9 @@ function toWorkItem(req) {
|
|
|
4811
4811
|
if (!name) return null;
|
|
4812
4812
|
const backlog = parts[1] === "backlog";
|
|
4813
4813
|
const filed = parts[1] === "complete" || parts[1] === "archive";
|
|
4814
|
+
const archived = parts[1] === "archive" && parts.length === 4;
|
|
4814
4815
|
const bucket = backlog ? "queue" : parts.at(-3);
|
|
4815
|
-
const status2 = !backlog && BUCKETS.includes(bucket) ? bucket : "queue";
|
|
4816
|
+
const status2 = archived ? "archived" : !backlog && BUCKETS.includes(bucket) ? bucket : "queue";
|
|
4816
4817
|
const text = req.text ?? "";
|
|
4817
4818
|
const front = parseFrontmatter(text) ?? {};
|
|
4818
4819
|
return {
|
|
@@ -4825,13 +4826,19 @@ function toWorkItem(req) {
|
|
|
4825
4826
|
code: asList(front.code),
|
|
4826
4827
|
covers: asList(front.covers),
|
|
4827
4828
|
dependsOn: asList(front.depends_on),
|
|
4828
|
-
|
|
4829
|
-
|
|
4829
|
+
// An archived item belongs to neither: it left the cut when it was archived, and
|
|
4830
|
+
// saying which one it USED to be in is the record's job, not the path's. The
|
|
4831
|
+
// reason and the origin live in its own `archived:` frontmatter.
|
|
4832
|
+
epic: archived ? "" : backlog ? parts[2] ?? "" : parts.at(-4) ?? "",
|
|
4833
|
+
version: archived ? "" : backlog ? "backlog" : filed ? parts[2] ?? "" : parts[1] ?? "",
|
|
4830
4834
|
path: req.path,
|
|
4831
4835
|
holders: [],
|
|
4832
4836
|
updatedAt: asString(front.updated) ?? req.changedAt
|
|
4833
4837
|
};
|
|
4834
4838
|
}
|
|
4839
|
+
function hasLeftTheBoard(path23) {
|
|
4840
|
+
return path23.startsWith("versions/complete/") || path23.startsWith("versions/archive/");
|
|
4841
|
+
}
|
|
4835
4842
|
function toPage(items, req) {
|
|
4836
4843
|
const matched = items.filter((item2) => req.status ? item2.status === req.status : true).filter((item2) => req.owner ? item2.owner === req.owner : true).filter((item2) => req.epic ? item2.epic === req.epic : true).filter((item2) => req.version ? item2.version === req.version : true).sort(byPriorityThenName);
|
|
4837
4844
|
const offset = req.offset ?? 0;
|
|
@@ -5067,13 +5074,12 @@ function scanTree(root) {
|
|
|
5067
5074
|
return scan2;
|
|
5068
5075
|
}
|
|
5069
5076
|
var scanning = /* @__PURE__ */ new Map();
|
|
5070
|
-
var LEFT_THE_BOARD = ["complete", "archive"];
|
|
5071
5077
|
async function readTree(root) {
|
|
5072
5078
|
const work = join5(root, "work");
|
|
5073
5079
|
const items = [];
|
|
5074
5080
|
for (const file of await walk(join5(work, "versions"))) {
|
|
5075
5081
|
const path23 = pathIn(work, file);
|
|
5076
|
-
if (
|
|
5082
|
+
if (hasLeftTheBoard(path23)) continue;
|
|
5077
5083
|
const item2 = await readItem(work, file);
|
|
5078
5084
|
if (item2) items.push(item2);
|
|
5079
5085
|
}
|
|
@@ -10387,7 +10393,7 @@ import { createRequire as createRequire2 } from "module";
|
|
|
10387
10393
|
var _require = createRequire2(import.meta.url);
|
|
10388
10394
|
var VERSION2 = _require("../package.json").version ?? "0.0.0";
|
|
10389
10395
|
var IS_DEV = String(_require("../package.json").name ?? "").endsWith("-dev");
|
|
10390
|
-
var SHA = "
|
|
10396
|
+
var SHA = "bf80421";
|
|
10391
10397
|
var BUILT = "2026-09-12";
|
|
10392
10398
|
var BUILD = SHA ?? "source";
|
|
10393
10399
|
var BUILD_LABEL = `${SHA ? `${VERSION2} (${SHA}${BUILT ? ` ${BUILT}` : ""})` : `${VERSION2} (source)`}${IS_DEV ? " \u2014 development build" : ""}`;
|