@archme/cli 0.14.2 → 0.14.3

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/cli.js CHANGED
@@ -16042,6 +16042,15 @@ var init_proposalAbout = __esm({
16042
16042
  }
16043
16043
  });
16044
16044
 
16045
+ // ../shared/proposalDone.ts
16046
+ function isProposalDone(doneOverride, realizationState) {
16047
+ return doneOverride ?? realizationState === "closed";
16048
+ }
16049
+ var init_proposalDone = __esm({
16050
+ "../shared/proposalDone.ts"() {
16051
+ }
16052
+ });
16053
+
16045
16054
  // ../shared/boardTriage.ts
16046
16055
  function flatten(stories, out = []) {
16047
16056
  for (const s of stories) {
@@ -16074,7 +16083,7 @@ function aboutThisRepo(about, scope) {
16074
16083
  }
16075
16084
  function selectTriageCandidates(rows, scope, limit = TRIAGE_CANDIDATE_LIMIT) {
16076
16085
  return rows.filter(
16077
- (r) => r.kind === "proposal" && !TERMINAL.has(r.realization_state ?? "") && r.review_state !== "rejected" && aboutThisRepo(aboutFromColumns(r), scope)
16086
+ (r) => r.kind === "proposal" && !isProposalDone(r.done_override, r.realization_state) && r.realization_state !== "abandoned" && r.review_state !== "rejected" && aboutThisRepo(aboutFromColumns(r), scope)
16078
16087
  ).sort((a2, b) => b.updated_at.localeCompare(a2.updated_at)).slice(0, limit).map((r) => ({
16079
16088
  id: r.id,
16080
16089
  title: r.title,
@@ -16083,14 +16092,14 @@ function selectTriageCandidates(rows, scope, limit = TRIAGE_CANDIDATE_LIMIT) {
16083
16092
  about: aboutFromColumns(r)
16084
16093
  }));
16085
16094
  }
16086
- var TRIAGE_CANDIDATE_LIMIT, TERMINAL;
16095
+ var TRIAGE_CANDIDATE_LIMIT;
16087
16096
  var init_boardTriage = __esm({
16088
16097
  "../shared/boardTriage.ts"() {
16089
16098
  init_proposalAbout();
16099
+ init_proposalDone();
16090
16100
  init_repoContainer();
16091
16101
  init_waypoints();
16092
16102
  TRIAGE_CANDIDATE_LIMIT = 40;
16093
- TERMINAL = /* @__PURE__ */ new Set(["closed", "abandoned"]);
16094
16103
  }
16095
16104
  });
16096
16105
 
@@ -22102,7 +22111,7 @@ async function completeClaudeRun(ctx, job, deviceId, run) {
22102
22111
  );
22103
22112
  }
22104
22113
  async function loadTriageProposals(client, projectId) {
22105
- const { data, error } = await client.from("proposals").select("id, kind, title, description, review_state, realization_state, about_component, about_story, about_repo, updated_at").eq("project_id", projectId).eq("kind", "proposal").not("realization_state", "in", "(closed,abandoned)").order("updated_at", { ascending: false }).limit(500);
22114
+ const { data, error } = await client.from("proposals").select("id, kind, title, description, review_state, realization_state, done_override, about_component, about_story, about_repo, updated_at").eq("project_id", projectId).eq("kind", "proposal").not("realization_state", "in", "(closed,abandoned)").order("updated_at", { ascending: false }).limit(500);
22106
22115
  if (error) return null;
22107
22116
  return data ?? [];
22108
22117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Map your codebase into a living architecture diagram: run `archme init` in a repo to scan it, `archme daemon start` to keep it current on every commit.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "image": "ghcr.io/architectme/archme-job",
3
- "digest": "sha256:e65cbf5dbcd3e9289e54c140922a98904ce2c7fa28402bec6a909202bc1b7b78"
3
+ "digest": "sha256:acd28e9e721e85bd167408354c33f94274abf486813eada75a65961ed9f2a36e"
4
4
  }