@adhd/backlog 0.0.1 → 0.0.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/server.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { BacklogCtx } from './client.js';
2
- import { composeSchemas, Operation } from '@adhd/apigen-core-client';
3
- import { Scope } from '@adhd/environment-base-spec';
4
-
5
- export interface StartOpts {
6
- transport: 'http' | 'mcp' | 'both';
7
- port?: number;
8
- host?: string;
9
- scope?: Scope;
10
- /** Test-only override — see `buildBacklogEnv`'s `BuildBacklogEnvOptions`. */
11
- adhdRoot?: string;
12
- cwd?: string;
13
- signal: AbortSignal;
14
- }
15
- /** Builds the composed, apigen-ready package descriptor for `client.ts`'s exports. */
16
- export declare function buildBacklogApigenPackage(ctx: BacklogCtx): Promise<{
17
- pkg: {
18
- id: string;
19
- schemas: ReturnType<typeof composeSchemas>;
20
- importPath: string;
21
- fns: Record<string, (...args: unknown[]) => unknown>;
22
- createClient: () => Promise<BacklogCtx>;
23
- };
24
- operations: Operation[];
25
- }>;
26
- /**
27
- * Opens (or reuses) the backlog store + env, mounts every `client.ts` export
28
- * live via `@adhd/apigen-plugin-api-fastify` and/or `@adhd/apigen-plugin-mcp`
29
- * — no code generation.
30
- */
31
- export declare function startBacklogServer(opts: StartOpts): Promise<void>;
@@ -1,11 +0,0 @@
1
- import { GraphBackend } from '@adhd/sox-graph-store';
2
- import { default as Database } from 'better-sqlite3';
3
-
4
- export interface GraphBacklogStore {
5
- /** Raw handle — ONLY for the CAS transaction wrapper (mutate-metadata.ts / ids.ts). */
6
- readonly db: Database.Database;
7
- /** All non-CAS reads/writes go through this. */
8
- readonly graph: GraphBackend;
9
- }
10
- export declare function openGraphBacklogStore(dbPath: string): GraphBacklogStore;
11
- export declare function closeGraphBacklogStore(store: GraphBacklogStore): void;
package/store/ids.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { GraphBacklogStore } from './graph-backlog-store.js';
2
-
3
- export declare function allocateHumanId(store: GraphBacklogStore, repo: string, family: string): string;
@@ -1,49 +0,0 @@
1
- import { BacklogItem, BacklogStatus, Citation, Note, Priority } from '../model.js';
2
- import { NodeRecord } from '@adhd/sox-graph-store';
3
-
4
- export declare const BACKLOG_ITEM_TAG = "backlog-item";
5
- export declare const BACKLOG_PLAN_TAG = "backlog-plan";
6
- export declare const BACKLOG_ASSIGNEE_TAG = "backlog-assignee";
7
- /**
8
- * The JSON shape persisted in `node.meta` (DESIGN.md §2.2/§4.1). Every
9
- * mutating store operation reads the CURRENT full object, computes a new
10
- * COMPLETE object, and writes it back via `mutateMetadata` — `touch()`
11
- * replaces `meta` wholesale (verified, DESIGN.md §14 point 4), so a partial
12
- * write here would silently drop every other field.
13
- */
14
- export interface BacklogNodeMeta {
15
- humanId: string;
16
- kind: string;
17
- family: string;
18
- title: string;
19
- body: string;
20
- status: BacklogStatus;
21
- priority?: Priority;
22
- repo: string;
23
- projectPath?: string;
24
- plan?: string;
25
- assignee?: string;
26
- claimedBy?: string;
27
- claimedAt?: string;
28
- citations: Citation[];
29
- notes: Note[];
30
- createdAt: string;
31
- updatedAt: string;
32
- /** Set by archiveResolved — excludes the item from renderToMarkdown's default view. */
33
- archivedAt?: string;
34
- /** Dedupe-scan exact-match fields (DESIGN.md §2.4). */
35
- dedupeSymbol?: string;
36
- dedupePath?: string;
37
- dedupeErrorText?: string;
38
- }
39
- export declare function humanIdKind(humanId: string): string;
40
- export declare function humanIdFamily(humanId: string): string;
41
- /** See the file-level DEVIATION doc comment for why the marker is appended. */
42
- export declare function buildNodeContent(repo: string, humanId: string, title: string, body: string): string;
43
- export declare function buildNodeName(repo: string, humanId: string): string;
44
- /** DESIGN.md §2.2 — importance derived deterministically from priority. */
45
- export declare function importanceForPriority(priority: Priority | undefined): number;
46
- export declare function buildTags(kind: string, family: string, userTags?: readonly string[]): string[];
47
- /** A node counts as a live backlog item iff it carries the tag AND is not superseded (DESIGN.md §14). */
48
- export declare function isLiveBacklogItemNode(node: NodeRecord): boolean;
49
- export declare function toBacklogItem(node: NodeRecord): BacklogItem;
File without changes
File without changes
File without changes
File without changes
File without changes