@punks/cli 2.0.0-beta.4 → 2.0.0

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.
Files changed (31) hide show
  1. package/AGENTS.md +4 -0
  2. package/dist/data/catalog/hooks.ts +0 -7
  3. package/dist/data/catalog/packs.ts +31 -2
  4. package/dist/data/catalog/skills.ts +15 -7
  5. package/dist/data/hooks/format-edited-file.mjs +26 -5
  6. package/dist/data/hooks.test.ts +0 -29
  7. package/dist/data/scripts/sync-subagents.mjs +29 -87
  8. package/dist/data/subagents/manifest.mjs +9 -9
  9. package/dist/data/subagents/manifest.test.ts +40 -0
  10. package/dist/index.js +3258 -1771
  11. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +3 -3
  12. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +1 -1
  13. package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +1 -1
  14. package/dist/skills/{agnostic/docs → phases}/docs-ingest-phase/SKILL.md +16 -16
  15. package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +70 -0
  16. package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +56 -0
  17. package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +76 -0
  18. package/dist/skills/{agnostic/docs → phases}/docs-ingest-phase/references/wiki-ingest.md +5 -5
  19. package/dist/skills/{agnostic/planning → phases}/resolve-debt-phase/SKILL.md +4 -4
  20. package/package.json +12 -3
  21. package/dist/skills/agnostic/docs/docs-ingest-phase/references/concept-pages.md +0 -48
  22. package/dist/skills/agnostic/docs/docs-ingest-phase/references/flow-pages.md +0 -41
  23. package/dist/skills/agnostic/docs/docs-ingest-phase/references/fumadocs-routing.md +0 -88
  24. /package/dist/skills/{agnostic/debug → phases}/debugging-phase/SKILL.md +0 -0
  25. /package/dist/skills/{agnostic/planning → phases}/delivery-phase/SKILL.md +0 -0
  26. /package/dist/skills/{agnostic/docs → phases}/docs-ingest-phase/agents/openai.yaml +0 -0
  27. /package/dist/skills/{agnostic/docs → phases}/docs-ingest-phase/references/repo-docs.md +0 -0
  28. /package/dist/skills/{agnostic/planning → phases}/goalify/EXAMPLES.md +0 -0
  29. /package/dist/skills/{agnostic/planning → phases}/goalify/SKILL.md +0 -0
  30. /package/dist/skills/{agnostic/requirements → phases}/requirements-phase/SKILL.md +0 -0
  31. /package/dist/skills/{agnostic/research → phases}/review-phase/SKILL.md +0 -0
@@ -12,9 +12,9 @@ Use this reference before asking clarifying questions.
12
12
  - Prefer the domain whose contract most clearly owns the request.
13
13
  - If multiple domains are involved, pick the primary owner and note cross-domain scope in the spec.
14
14
  - If no domain matches, stop and tell the user to run `/create-wiki-domain <name>` first.
15
- 4. Read the relevant domain contract:
16
- - `apps/wiki/domains/<domain>/<domain>-contract.md`
17
- 5. Optionally read related domain concepts or flows when they are obviously relevant.
15
+ 4. Read the relevant routed domain index:
16
+ - `apps/wiki/content/docs/<domain>/index.mdx`
17
+ 5. Optionally read related routed concepts or flows when they are obviously relevant.
18
18
  6. Check for existing overlapping specs in:
19
19
  - `apps/wiki/specs/<domain>/<domain>-specs.md`
20
20
  7. If backlog context exists, inspect the parent epic/capability and every child story beneath it.
@@ -22,7 +22,7 @@ Use wiki synthesis when the user asks to persist closed grill decisions into `ap
22
22
  Both workflows can happen in one long session, but keep the responsibilities distinct:
23
23
 
24
24
  - `docs/<topic>-grill-log.md` and `docs/<topic>-grill-status.md` are the detailed requirements and glossary record
25
- - `apps/wiki/domains/` is synthesized domain knowledge
25
+ - `apps/wiki/content/docs/<domain>/` is synthesized routed domain knowledge
26
26
  - backlog/user-story creation is the next phase after the grill gate, outside this skill's scope
27
27
 
28
28
  ## Core Behavior
@@ -80,7 +80,7 @@ Create or update decision pages only when:
80
80
 
81
81
  Keep `docs/` as the detailed design record.
82
82
 
83
- Use `apps/wiki/domains/` for synthesized domain knowledge.
83
+ Use `apps/wiki/content/docs/<domain>/` for synthesized routed domain knowledge.
84
84
 
85
85
  Do not duplicate the full grill log in wiki pages.
86
86
  Summarize stable meaning, glossary, and axioms; link back to source docs when useful.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: docs-ingest-phase
3
- description: Ingest specs into the wiki source layer, project wiki/project pages into Fumadocs routes, and keep repo docs accurate. Use when a spec is ready for domain capture, when apps/wiki content or Fumadocs navigation changes, or when code changes alter architecture, setup, contracts, or operator workflow.
3
+ description: Ingest specs and docs-affecting changes into canonical routed wiki/project docs and keep repo docs accurate. Use when a spec is ready for domain capture, when apps/wiki content or Fumadocs navigation changes, or when code changes alter architecture, setup, contracts, or operator workflow.
4
4
  ---
5
5
 
6
6
  # Docs Ingest Phase
@@ -10,15 +10,15 @@ description: Ingest specs into the wiki source layer, project wiki/project pages
10
10
  - **Role:** higher-order ingest and repo-docs phase
11
11
  - **Entrypoint type:** public phase entrypoint
12
12
  - **Upstream:** reviewed or implemented spec folder, or concrete docs-affecting code changes
13
- - **Delegates to:** internal flow-writing phase, internal concept-writing phase, Fumadocs projection
14
- - **Downstream:** synced wiki indexes, ingest metadata, wiki log, routed Fumadocs pages/meta, and required `docs/` updates
13
+ - **Delegates to:** internal routed flow-writing phase, internal routed concept-writing phase, route/navigation bookkeeping
14
+ - **Downstream:** canonical routed Fumadocs pages, `meta.json` navigation, ingest metadata, wiki log/index updates, and required `docs/` updates
15
15
  - **Entry conditions:** resolved spec folder for ingest work, or a concrete docs-affecting code change
16
16
  - **Stop conditions:** ingest bookkeeping complete, required docs updates complete, failures reported honestly
17
17
 
18
18
  ## Use When
19
19
 
20
- - A reviewed or implemented spec folder should become durable domain knowledge.
21
- - `apps/wiki` source content, Fumadocs navigation, `meta.json`, or routed pages change.
20
+ - A reviewed or implemented spec folder should become durable routed domain knowledge.
21
+ - `apps/wiki` content, Fumadocs navigation, `meta.json`, or routed pages change.
22
22
  - Code changes alter architecture, setup, contracts, decisions, runbooks, or operator workflow.
23
23
  - `delivery-phase` reaches `$docs-ingest-phase` and docs-affecting changes exist.
24
24
 
@@ -27,7 +27,7 @@ description: Ingest specs into the wiki source layer, project wiki/project pages
27
27
  - The work is still requirements discovery, planning, coding, or review.
28
28
  - The target spec is already marked `ingested: true`; report a no-op.
29
29
  - The requested docs would document speculative future behavior as current truth.
30
- - The task would duplicate large specs/plans/source pages into routed MDX instead of summarizing and linking.
30
+ - The task would duplicate large specs, plans, implementation notes, or runbooks into wiki/project pages instead of summarizing and linking.
31
31
 
32
32
  ## Quick Start
33
33
 
@@ -36,7 +36,7 @@ description: Ingest specs into the wiki source layer, project wiki/project pages
36
36
  - single-repo: `wiki`
37
37
  2. Read `<wiki-root>/AGENTS.md` before touching wiki content.
38
38
  3. If ingesting a spec, read [references/wiki-ingest.md](references/wiki-ingest.md).
39
- 4. If updating routed docs, read [references/fumadocs-routing.md](references/fumadocs-routing.md).
39
+ 4. If updating routed docs or navigation, read [references/fumadocs-routing.md](references/fumadocs-routing.md).
40
40
  5. If updating root `docs/`, read [references/repo-docs.md](references/repo-docs.md).
41
41
  6. Finish by reporting written pages, metadata changes, docs updates, validation run, and any no-op reason.
42
42
 
@@ -46,10 +46,10 @@ Run this order exactly:
46
46
 
47
47
  ```text
48
48
  docs-ingest-phase
49
- -> flow-writing phase
50
- -> concept-writing phase
49
+ -> routed flow-writing phase
50
+ -> routed concept-writing phase
51
51
  -> ingest bookkeeping
52
- -> Fumadocs projection
52
+ -> route/navigation bookkeeping
53
53
  ```
54
54
 
55
55
  Why: concept pages can cross-link flow pages, so flows must exist first.
@@ -58,10 +58,9 @@ Why: concept pages can cross-link flow pages, so flows must exist first.
58
58
 
59
59
  Keep the private Fumadocs app discoverable:
60
60
 
61
- - `/docs/wiki` renders product/domain knowledge: usage, concepts, theory, flows, glossary, and concept/flow ingest output.
62
- - `/docs/project` renders internal project operations: specs, plans, implementation notes, maintenance logs, decisions, repo guidance, runbooks, and useful management context.
61
+ - `/docs/project` is the canonical routed surface for internal project operations: specs, plans, implementation notes, maintenance logs, decisions, repo guidance, runbooks, and useful management context.
63
62
 
64
- Do not create a second wiki or separate content-owner layer. `apps/wiki` owns canonical source content and rendered Fumadocs pages.
63
+ Do not create a second wiki or a separate `domains/` content-owner layer. Routed MDX pages under `content/docs` are the durable human-facing wiki/project pages.
65
64
 
66
65
  ## Output Contract
67
66
 
@@ -70,8 +69,8 @@ Always report:
70
69
  - source spec or docs-affecting change processed
71
70
  - flows written or skipped
72
71
  - concepts written or skipped
73
- - source frontmatter/bookkeeping updates
74
- - Fumadocs routed pages and `meta.json` updates
72
+ - routed pages and `meta.json` updates
73
+ - ingest frontmatter/bookkeeping updates
75
74
  - root `docs/` updates, if any
76
75
  - validation commands run
77
76
  - no-op reasons or blockers
@@ -81,7 +80,8 @@ Always report:
81
80
  - Leave new or moved routed pages out of Fumadocs `meta.json`.
82
81
  - Strip or omit `surface` / `permission` frontmatter from routed pages.
83
82
  - Proceed to concept writing after a flow write fails.
83
+ - Write canonical concept or flow content outside routed `content/docs` pages.
84
84
  - Create `docs/prd`, `docs/dev`, roadmap, sprint, or backlog-mirror folders.
85
85
  - Put agent task instructions inside human-facing docs pages.
86
86
  - Leave docs orphaned from `docs/README.md` after adding or renaming them.
87
- - Duplicate content between `<wiki-root>/domains/` and `docs/reference/domains/`.
87
+ - Duplicate wiki article content across routed pages and another source tree.
@@ -0,0 +1,70 @@
1
+ # Concept Pages
2
+
3
+ Use this reference when `docs-ingest-phase` writes concepts into routed wiki docs.
4
+
5
+ ## Input Expansion
6
+
7
+ For each extracted concept:
8
+
9
+ 1. Read related routed flow pages under `<wiki-root>/content/docs/<domain>/`.
10
+ 2. Scan `<wiki-root>/raw/` recursively and collect files where frontmatter `ingested: false` or `ingested` is absent.
11
+ 3. Use relevant raw content only as supplementary material. Do not mark raw files as ingested here.
12
+
13
+ ## Output Contract
14
+
15
+ Synthesize concept content in this precedence order:
16
+
17
+ 1. `IMPLEMENTATION-NOTES.md` deviations, surprises, and judgment calls
18
+ 2. `SPEC.md` acceptance criteria, data model, and technical notes
19
+ 3. relevant sections from routed flow pages
20
+ 4. relevant raw file content
21
+
22
+ Determine status:
23
+
24
+ - `proposed` when only `SPEC.md` is present
25
+ - `implemented` when `IMPLEMENTATION-NOTES.md` is present
26
+
27
+ Derive the routed output path:
28
+
29
+ 1. Use the domain's existing route section if the concept clearly belongs there.
30
+ 2. Otherwise write to `<wiki-root>/content/docs/<domain>/<concept-name>.mdx`.
31
+ 3. Slugify the concept name to kebab-case.
32
+
33
+ For Harness-style domains, prefer existing topical sections such as `foundations`, `prompt-surfaces`, `skills-and-packs`, `execution-modes`, `validation-and-tools`, and `lifecycle-flows` when they already exist.
34
+
35
+ ## Page Shape
36
+
37
+ Every concept page must include frontmatter:
38
+
39
+ ```yaml
40
+ ---
41
+ title: <Concept Name>
42
+ description: <one sentence>
43
+ surface: wiki
44
+ permission: internal
45
+ domain: <domain>
46
+ type: concept
47
+ status: proposed | implemented
48
+ source:
49
+ - <source path>
50
+ updated: YYYY-MM-DD
51
+ ---
52
+ ```
53
+
54
+ Every concept page should include:
55
+
56
+ - a definition or opening explanation
57
+ - the concept's invariants, attributes, or boundaries
58
+ - links to related flows or mechanics pages
59
+ - source links or a short source section when useful
60
+
61
+ ## Merge Rules
62
+
63
+ When a routed concept page already exists:
64
+
65
+ - preserve established facts
66
+ - merge new implemented reality into the main article
67
+ - flag contradictions inline with a warning callout
68
+ - update `updated` and `source`
69
+
70
+ Update the nearest `meta.json` and section index page so the concept is discoverable.
@@ -0,0 +1,56 @@
1
+ # Flow Pages
2
+
3
+ Use this reference when `docs-ingest-phase` writes flows into routed wiki docs.
4
+
5
+ ## Output Contract
6
+
7
+ For each extracted flow:
8
+
9
+ 1. Derive the routed output path:
10
+ - use the domain's existing flow section when one exists
11
+ - otherwise write to `<wiki-root>/content/docs/<domain>/<flow-name>.mdx`
12
+ - slugify the flow name to kebab-case
13
+ 2. Determine status:
14
+ - `proposed` when only `SPEC.md` is present
15
+ - `implemented` when `IMPLEMENTATION-NOTES.md` is present
16
+ 3. Reconcile implementation notes when present:
17
+ - use `SPEC.md` acceptance criteria as the skeleton
18
+ - override or annotate steps where `IMPLEMENTATION-NOTES.md` records a deviation, surprise, or judgment call
19
+ - mark blocked or unmet steps with a warning callout
20
+ 4. Write or merge the routed flow page:
21
+ - preserve established facts
22
+ - integrate new implemented reality into the main flow
23
+ - flag contradictions inline with a warning callout
24
+ 5. Update the nearest `meta.json` and section index page so the flow is discoverable.
25
+
26
+ For Harness-style domains, flow pages usually belong under `lifecycle-flows`.
27
+
28
+ ## Page Shape
29
+
30
+ Every flow page must include frontmatter:
31
+
32
+ ```yaml
33
+ ---
34
+ title: <Flow Name>
35
+ description: <one sentence>
36
+ surface: wiki
37
+ permission: internal
38
+ domain: <domain>
39
+ type: flow
40
+ status: proposed | implemented
41
+ source:
42
+ - <source path>
43
+ updated: YYYY-MM-DD
44
+ ---
45
+ ```
46
+
47
+ Every flow page should include:
48
+
49
+ - trigger
50
+ - actors
51
+ - ordered steps and decision points
52
+ - terminal outcome
53
+ - validation or closeout signal
54
+ - source links when useful
55
+
56
+ Use a Mermaid diagram only when it clarifies branching or sequencing. Do not force diagrams for simple flows.
@@ -0,0 +1,76 @@
1
+ # Fumadocs Routing
2
+
3
+ Use this reference when `docs-ingest-phase` updates routed wiki or project docs.
4
+
5
+ ## Canonical Routed Content
6
+
7
+ `apps/wiki` owns the wiki application and its documentation content. The default scaffolded routed docs surface is:
8
+
9
+ - `<wiki-root>/content/docs/project`
10
+
11
+ Product/domain routes are repository-owned. Add them only when that project deliberately defines them.
12
+
13
+ Do not create or maintain a separate canonical `domains/` tree for concepts and flows. That split creates drift because one article then has two homes.
14
+
15
+ `<wiki-root>/specs`, `<wiki-root>/raw`, `<wiki-root>/index.md`, and `<wiki-root>/log.md` may remain source/input/bookkeeping surfaces. They are not duplicate article trees.
16
+
17
+ ## Route Boundaries
18
+
19
+ Use `/docs/project` for internal project operations:
20
+
21
+ - specs
22
+ - plans
23
+ - implementation notes
24
+ - maintenance logs
25
+ - decisions
26
+ - repo guidance
27
+ - operator/project runbooks
28
+ - useful Linear/grill-derived management context
29
+
30
+ Keep implementation specs and notes linked or summarized. Do not paste large source artifacts into routed pages.
31
+
32
+ ## Fumadocs Mechanics
33
+
34
+ Fumadocs uses file paths to determine route slugs. Examples:
35
+
36
+ - `content/docs/project/index.mdx` -> `/docs/project`
37
+ - `content/docs/project/specs/index.mdx` -> `/docs/project/specs`
38
+
39
+ Each folder with an explicit `meta.json` `pages` array must list every page or child folder that should appear in the page tree. Update `meta.json` whenever pages are added, moved, or removed.
40
+
41
+ Use the project folder as the default scaffolded surface:
42
+
43
+ ```json
44
+ {
45
+ "title": "Project"
46
+ }
47
+ ```
48
+
49
+ Default scaffold output should keep project internals exploded without adding a redundant Project parent section. Product/domain routes are added later only when a repository explicitly defines them.
50
+
51
+ ## Routed Page Frontmatter
52
+
53
+ Preserve access-control frontmatter on routed pages:
54
+
55
+ ```yaml
56
+ surface: wiki
57
+ permission: internal
58
+ ```
59
+
60
+ ```yaml
61
+ surface: project
62
+ permission: project
63
+ ```
64
+
65
+ Routed ingest pages should also carry durable metadata when useful:
66
+
67
+ ```yaml
68
+ domain: <domain>
69
+ type: concept | flow
70
+ status: proposed | implemented
71
+ source:
72
+ - apps/wiki/specs/<domain>/<spec>/SPEC.md
73
+ updated: YYYY-MM-DD
74
+ ```
75
+
76
+ Do not implement full auth unless the repo already has the required auth primitives. When auth exists, prefer a small Fumadocs loader-level filter so restricted files are removed from the input source before page tree/search generation.
@@ -17,7 +17,7 @@ Resolve to a full spec folder before continuing. If ambiguous, ask only for the
17
17
  1. Read `SPEC.md`. Stop if missing.
18
18
  2. Check `SPEC.md` frontmatter for `ingested: true`; if set, exit with a clear no-op.
19
19
  3. Verify `domain:` exists in frontmatter.
20
- 4. Verify `<wiki-root>/domains/<domain>/` exists with a `<domain>.md` index file. If missing, stop and scaffold the domain structure first.
20
+ 4. Verify the routed domain root exists under `<wiki-root>/content/docs/<domain>/` with an `index.mdx` file and `meta.json`. If missing, stop and scaffold the routed domain structure first.
21
21
 
22
22
  ## Source Read
23
23
 
@@ -108,7 +108,7 @@ ingested: true
108
108
  last_ingested: YYYY-MM-DD
109
109
  ```
110
110
 
111
- Also populate its `links` array with the SPEC link plus every flow and concept page written in this ingest.
111
+ Also populate its `links` array with the SPEC link plus every routed flow and concept page written in this ingest.
112
112
 
113
113
  Append to `<wiki-root>/log.md` and cap the log at 50 entries:
114
114
 
@@ -120,12 +120,12 @@ Append to `<wiki-root>/log.md` and cap the log at 50 entries:
120
120
  - Concepts written: <count>
121
121
  ```
122
122
 
123
- If new pages were created, update Concepts and Flows counts in `<wiki-root>/index.md`.
123
+ If new pages were created, update Concepts and Flows counts in `<wiki-root>/index.md` when that index tracks counts.
124
124
 
125
125
  ## Resumability
126
126
 
127
127
  Output pages are checkpoints:
128
128
 
129
- - existing flow pages with `ingested: true` can be skipped
129
+ - existing routed flow pages with matching source metadata can be skipped
130
130
  - missing expected flow pages should be rewritten before concepts
131
- - existing concept pages with `ingested: true` can be skipped
131
+ - existing routed concept pages with matching source metadata can be skipped
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: resolve-debt-phase
3
- description: Resolves one candidate or accepted tech debt item through validation, resolution spec creation, delivery, and closeout. Use when the user asks to resolve a tech debt entry, process a debt candidate, or continue from a canonical `docs/reference/tech-debt/<domain>/<spec>/<debt-slug>.md` artifact.
3
+ description: Resolves one candidate or accepted tech debt item through validation, resolution spec creation, delivery, and closeout. Use when the user asks to resolve a tech debt entry, process a debt candidate, or continue from a canonical routed `apps/wiki/content/docs/project/tech-debt/<domain>/<spec>/<debt-slug>.md` artifact.
4
4
  ---
5
5
 
6
6
  # Resolve Debt Phase
@@ -9,14 +9,14 @@ description: Resolves one candidate or accepted tech debt item through validatio
9
9
 
10
10
  - **Role:** public lifecycle entrypoint for one tech debt phase item
11
11
  - **Scope:** one candidate or accepted debt item, never generic debt management
12
- - **Canonical input:** `docs/reference/tech-debt/<domain>/<spec>/<debt-slug>.md`
12
+ - **Canonical input:** `apps/wiki/content/docs/project/tech-debt/<domain>/<spec>/<debt-slug>.md`
13
13
  - **Source of truth:** debt file; backlog mirrors are secondary and may be stale
14
14
  - **Delegates to:** `$parallel-research` for independent readonly checks; `$create-spec` or equivalent spec workflow for accepted debt; `$delivery-phase` for implementation
15
15
  - **Stop conditions:** draft decision requested, accepted item handed to delivery, resolved item no-oped, or completed item marked resolved with links
16
16
 
17
17
  ## Use When
18
18
 
19
- - The user provides or points to one tech debt artifact under `docs/reference/tech-debt/`.
19
+ - The user provides or points to one tech debt artifact under `apps/wiki/content/docs/project/tech-debt/`.
20
20
  - The user asks to validate, accept, delete, or resolve one debt candidate.
21
21
  - The user asks to continue an accepted tech debt item into implementation.
22
22
 
@@ -28,7 +28,7 @@ description: Resolves one candidate or accepted tech debt item through validatio
28
28
 
29
29
  ## Workflow
30
30
 
31
- 1. Locate the debt file at `docs/reference/tech-debt/<domain>/<spec>/<debt-slug>.md`; stop if multiple items are implied.
31
+ 1. Locate the debt file at `apps/wiki/content/docs/project/tech-debt/<domain>/<spec>/<debt-slug>.md`; stop if multiple items are implied.
32
32
  2. Read the debt file first and extract status, domain, originating spec, linked backlog mirror, evidence, and proposed resolution.
33
33
  3. Treat the debt file as canonical. Use backlog mirrors only to sync status or discover context.
34
34
  4. Branch by status: `draft`, `accepted`, or `resolved`. If missing or ambiguous, inspect context and ask before changing state.
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "2.0.0-beta.4",
4
- "description": "Devpunks AI scaffolding CLI",
3
+ "version": "2.0.0",
4
+ "description": "Harness Intelligence scaffolding CLI",
5
5
  "bin": {
6
6
  "devpunks": "dist/index.js",
7
7
  "dp": "dist/index.js",
8
8
  "punks": "dist/index.js"
9
9
  },
10
- "type": "module"
10
+ "type": "module",
11
+ "homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/wearedevpunks/harness-intelligence.git",
15
+ "directory": "apps/cli"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/wearedevpunks/harness-intelligence/issues"
19
+ }
11
20
  }
@@ -1,48 +0,0 @@
1
- # Concept Pages
2
-
3
- Use this reference during Step 6 of `docs-ingest-phase`.
4
-
5
- ## Input expansion
6
-
7
- For each extracted concept:
8
-
9
- 1. Read existing flow pages under `<wiki-root>/domains/<domain>/flows/` for cross-linking.
10
- 2. Scan `<wiki-root>/raw/` recursively and collect files where frontmatter `ingested: false` or `ingested` is absent.
11
- 3. Use relevant raw content only as supplementary material. Do not mark raw files as ingested here.
12
-
13
- ## Output contract
14
-
15
- 4. Synthesize concept content in this precedence order:
16
- - `IMPLEMENTATION-NOTES.md` deviations, surprises, and judgment calls
17
- - `SPEC.md` acceptance criteria, data model, and technical notes
18
- - relevant sections from flow pages
19
- - relevant raw file content
20
- 5. Determine status:
21
- - `proposed` when only `SPEC.md` is present
22
- - `implemented` when `IMPLEMENTATION-NOTES.md` is present
23
- 6. Derive the output path:
24
- - slugify the concept name to kebab-case
25
- - write to `<wiki-root>/domains/<domain>/concepts/<concept-name>.md`
26
- 7. Write or merge the concept page:
27
- - preserve established facts
28
- - append new information under `## [Source: <origin>]`
29
- - flag contradictions inline: `> [!warning] CONTRADICTS [[source]]`
30
- 8. Every concept page must include:
31
- - frontmatter:
32
- ```yaml
33
- ---
34
- domain: <domain>
35
- type: concept
36
- status: proposed | implemented
37
- ingested: true
38
- last_ingested: YYYY-MM-DD
39
- links: []
40
- created: YYYY-MM-DD
41
- updated: YYYY-MM-DD
42
- ---
43
- ```
44
- - `Definition`
45
- - `Attributes` table
46
- - `Related flows`
47
- - `## [Source: <origin>]`
48
- 9. Update `<wiki-root>/domains/<domain>/<domain>.md` to link the concept page if not already present
@@ -1,41 +0,0 @@
1
- # Flow Pages
2
-
3
- Use this reference during Step 4 of `docs-ingest-phase`.
4
-
5
- ## Output contract
6
-
7
- For each extracted flow:
8
-
9
- 1. Derive the output path:
10
- - slugify `flow_name` to kebab-case
11
- - write to `<wiki-root>/domains/<domain>/flows/<flow-name>.md`
12
- 2. Determine status:
13
- - `proposed` when only `SPEC.md` is present
14
- - `implemented` when `IMPLEMENTATION-NOTES.md` is present
15
- 3. Reconcile implementation notes when present:
16
- - use `SPEC.md` acceptance criteria as the skeleton
17
- - override or annotate steps where `IMPLEMENTATION-NOTES.md` records a deviation, surprise, or judgment call
18
- - mark blocked or unmet steps: `⚠ blocked — <reason>`
19
- 4. Write or merge the flow page:
20
- - preserve established facts
21
- - append new information under `## [Source: <origin>]`
22
- - flag contradictions inline: `> [!warning] CONTRADICTS [[source]]`
23
- 5. Every flow page must include:
24
- - frontmatter:
25
- ```yaml
26
- ---
27
- domain: <domain>
28
- type: flow
29
- status: proposed | implemented
30
- ingested: true
31
- last_ingested: YYYY-MM-DD
32
- links:
33
- - "[[specs/<domain>/<spec>/SPEC]]"
34
- - "[[specs/<domain>/<spec>/IMPLEMENTATION-NOTES]]" # only when notes exist
35
- created: YYYY-MM-DD
36
- updated: YYYY-MM-DD
37
- ---
38
- ```
39
- - a Mermaid diagram
40
- - a numbered step list aligned to the diagram nodes
41
- 6. Update `<wiki-root>/domains/<domain>/<domain>.md` to link the flow page if not already present
@@ -1,88 +0,0 @@
1
- # Fumadocs Routing
2
-
3
- Use this reference during Step 10 of `docs-ingest-phase`.
4
-
5
- ## Source And Projection
6
-
7
- `apps/wiki` is both the private Fumadocs app and the canonical wiki source owner. Do not create another wiki, another content-owner layer, or a mirrored docs tree outside this app.
8
-
9
- Canonical source content may remain in:
10
-
11
- - `apps/wiki/domains`
12
- - `apps/wiki/specs`
13
- - `apps/wiki/raw`
14
- - `apps/wiki/index.md`
15
- - `apps/wiki/log.md`
16
-
17
- Rendered/discoverable pages live under:
18
-
19
- - `apps/wiki/content/docs/wiki`
20
- - `apps/wiki/content/docs/project`
21
-
22
- The routed pages are a projection layer. They may summarize, curate, and point back to canonical source files. They should not duplicate large specs, plans, implementation notes, runbooks, or source pages.
23
-
24
- ## Route Boundaries
25
-
26
- Use `/docs/wiki` for product/domain knowledge:
27
-
28
- - usage model
29
- - concepts
30
- - theory
31
- - flows
32
- - glossary
33
- - docs-ingest-phase concept/flow ingest output
34
-
35
- Use `/docs/project` for internal project operations:
36
-
37
- - specs
38
- - plans
39
- - implementation notes
40
- - maintenance logs
41
- - decisions
42
- - repo guidance
43
- - operator/project runbooks
44
- - useful Linear/grill-derived management context
45
-
46
- Docs ingest concepts and flows are abstract/domain-theory outputs. The Fumadocs projection makes those outputs navigable.
47
-
48
- ## Fumadocs Mechanics
49
-
50
- Fumadocs uses file paths to determine route slugs. Examples:
51
-
52
- - `content/docs/wiki/index.mdx` -> `/docs/wiki`
53
- - `content/docs/wiki/cli/index.mdx` -> `/docs/wiki/cli`
54
- - `content/docs/project/specs/index.mdx` -> `/docs/project/specs`
55
-
56
- Each folder with an explicit `meta.json` `pages` array must list every page or child folder that should appear in the page tree. Update `meta.json` whenever pages are added, moved, or removed.
57
-
58
- Use root folders for the two main surfaces:
59
-
60
- ```json
61
- {
62
- "title": "Wiki",
63
- "root": true
64
- }
65
- ```
66
-
67
- ```json
68
- {
69
- "title": "Project",
70
- "root": true
71
- }
72
- ```
73
-
74
- ## Access Frontmatter
75
-
76
- Preserve access-control frontmatter on routed pages:
77
-
78
- ```yaml
79
- surface: wiki
80
- permission: internal
81
- ```
82
-
83
- ```yaml
84
- surface: project
85
- permission: project
86
- ```
87
-
88
- Do not implement full auth unless the repo already has the required auth primitives. When auth exists, prefer a small Fumadocs loader-level filter so restricted files are removed from the input source before page tree/search generation.