@adhd/backlog 0.1.0 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 0.1.2 (2026-07-27)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **backlog:** add `backlog install` command — installs the skill AND registers the MCP server into host configs (Claude Code `~/.claude.json` + project `.mcp.json`; opencode `~/.config/opencode/opencode.json` + project) idempotently, at user/project scopes; `install-skill` retained as an alias.
7
+
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **backlog:** ship `skill/SKILL.md` into `dist/` via a vite `writeBundle` copy plugin (project.json `build.options.assets` is a no-op under `@nx/vite:build`); fix `install-skill` packaged-skill path escaping to `@adhd/skill` in the published rebased layout (BUG-013, BUG-012 class). Harden the inferred `assets` nx target with explicit `outputs` so a `build` cache-hit can't wipe copied assets.
12
+
13
+
14
+ ## 0.1.1 (2026-07-27)
15
+
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **backlog:** fix published tarball crashing at mount — `backlogDistDir()` resolved `client.d.ts` via `import.meta.url + '../dist'`, which escaped to the nonexistent `node_modules/@adhd/dist` once `dist-manifest` rebased the package to its root; now probes for the sibling `client.d.ts` (BUG-012). Adds `server.published-layout.spec.ts` reproducing the published rebased-to-root layout.
20
+
21
+
22
+ ### ❤️ Thank You
23
+
24
+ - pseudosky
25
+
1
26
  ## 0.0.3 (2026-07-25)
2
27
 
3
28
 
package/client.d.ts CHANGED
@@ -26,7 +26,23 @@ export interface BacklogCtx {
26
26
  * idOverride is given.
27
27
  */
28
28
  export declare function createItem(ctx: BacklogCtx, input: CreateItemInput): Promise<CreateItemResult>;
29
- /** repo is required — humanId alone is not globally unique. */
29
+ /**
30
+ * repo is required — humanId alone is not globally unique. A genuine miss
31
+ * (humanId doesn't exist under ANY repo) still returns `null` — unchanged,
32
+ * every existing caller relying on nullable-not-throwing keeps working.
33
+ *
34
+ * BUG-BACKLOG-REPO-LOOKUP-UX-001: previously a repo/humanId MISMATCH (the
35
+ * item is live, just filed under a different `repo` string) was
36
+ * indistinguishable from a genuine miss — both silently returned `null`,
37
+ * which is worse than `appendNote`'s bare-but-at-least-thrown
38
+ * `BacklogItemNotFoundError` (and, before this fix, could surface through
39
+ * apigen's MCP layer as the unrelated broken int64/null encoding,
40
+ * BUG-APIGEN-LOGICAL-NULL-OBJECT-RESULT-INT64-001 — out of scope here, but
41
+ * this fix removes the only path that made this lookup look like that bug).
42
+ * Now: a real cross-repo match THROWS the same informative
43
+ * `BacklogItemNotFoundError` (with `foundInRepos` naming the actual repo) the
44
+ * mutating lookups already throw, instead of masquerading as "not found".
45
+ */
30
46
  export declare function getItem(ctx: BacklogCtx, repo: string, humanId: string): Promise<BacklogItem | null>;
31
47
  export declare function updateItem(ctx: BacklogCtx, repo: string, humanId: string, patch: UpdateItemInput): Promise<BacklogItem>;
32
48
  export declare function listItems(ctx: BacklogCtx, filter?: BacklogFilter): Promise<BacklogItem[]>;