@appchy/jarvis 0.1.70 → 0.1.72

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 CHANGED
@@ -4622,7 +4622,7 @@ function toWorkItem(req) {
4622
4622
  const parts = req.path.split("/");
4623
4623
  const name = parts.at(-2);
4624
4624
  if (!name) return null;
4625
- const backlog = parts[0] === "backlog";
4625
+ const backlog = parts[1] === "backlog";
4626
4626
  const bucket = backlog ? "queue" : parts.at(-3);
4627
4627
  const status2 = !backlog && BUCKETS.includes(bucket) ? bucket : "queue";
4628
4628
  const text = req.text ?? "";
@@ -4637,7 +4637,7 @@ function toWorkItem(req) {
4637
4637
  code: asList(front.code),
4638
4638
  covers: asList(front.covers),
4639
4639
  dependsOn: asList(front.depends_on),
4640
- epic: backlog ? parts[1] ?? "" : parts.at(-4) ?? "",
4640
+ epic: backlog ? parts[2] ?? "" : parts.at(-4) ?? "",
4641
4641
  version: backlog ? "backlog" : parts[1] ?? "",
4642
4642
  path: req.path,
4643
4643
  holders: [],
@@ -4690,14 +4690,12 @@ function byPriorityThenName(a, b) {
4690
4690
  }
4691
4691
  function toVerification(said) {
4692
4692
  const parsed = read(said);
4693
- const gates = (Array.isArray(parsed.results) ? parsed.results : []).map(
4694
- (gate) => ({
4695
- name: String(gate.name ?? ""),
4696
- passed: gate.passed === true,
4697
- skipped: gate.skipped === true,
4698
- said: String(gate.said ?? "")
4699
- })
4700
- );
4693
+ const gates = (Array.isArray(parsed.results) ? parsed.results : []).map((gate) => ({
4694
+ name: String(gate.name ?? ""),
4695
+ passed: gate.passed === true,
4696
+ skipped: gate.skipped === true,
4697
+ said: String(gate.said ?? "")
4698
+ }));
4701
4699
  return {
4702
4700
  state: STATES.includes(parsed.state) ? parsed.state : "finished",
4703
4701
  gate: String(parsed.gate ?? ""),
@@ -4733,11 +4731,9 @@ async function listWorkItems(_ctx, req, options) {
4733
4731
  }
4734
4732
  async function findWorkItem(_ctx, req, options) {
4735
4733
  const work = join4(options.root, "work");
4736
- for (const base of ["versions", "backlog"]) {
4737
- for (const file of await walk(join4(work, base))) {
4738
- const path22 = pathIn(work, file);
4739
- if (path22.split("/").at(-2) === req.id) return readItem(work, file);
4740
- }
4734
+ for (const file of await walk(join4(work, "versions"))) {
4735
+ const path22 = pathIn(work, file);
4736
+ if (path22.split("/").at(-2) === req.id) return readItem(work, file);
4741
4737
  }
4742
4738
  return null;
4743
4739
  }
@@ -4883,11 +4879,9 @@ var scanning = /* @__PURE__ */ new Map();
4883
4879
  async function readTree(root) {
4884
4880
  const work = join4(root, "work");
4885
4881
  const items = [];
4886
- for (const base of ["versions", "backlog"]) {
4887
- for (const file of await walk(join4(work, base))) {
4888
- const item2 = await readItem(work, file);
4889
- if (item2) items.push(item2);
4890
- }
4882
+ for (const file of await walk(join4(work, "versions"))) {
4883
+ const item2 = await readItem(work, file);
4884
+ if (item2) items.push(item2);
4891
4885
  }
4892
4886
  return items;
4893
4887
  }
@@ -10115,7 +10109,7 @@ import { createRequire as createRequire2 } from "module";
10115
10109
  var _require = createRequire2(import.meta.url);
10116
10110
  var VERSION2 = _require("../package.json").version ?? "0.0.0";
10117
10111
  var IS_DEV = String(_require("../package.json").name ?? "").endsWith("-dev");
10118
- var SHA = "8636478";
10112
+ var SHA = "4c7a0e0";
10119
10113
  var BUILT = "2026-09-10";
10120
10114
  var BUILD = SHA ?? "source";
10121
10115
  var BUILD_LABEL = `${SHA ? `${VERSION2} (${SHA}${BUILT ? ` ${BUILT}` : ""})` : `${VERSION2} (source)`}${IS_DEV ? " \u2014 development build" : ""}`;