flowviant 0.28.6 → 0.28.8

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.
@@ -138,36 +138,37 @@ docs — comprehensive, precisely structured, richly cross-linked. Detailed and
138
138
  thorough beats short: a reader should be able to work in a subsystem after
139
139
  reading its chapter.
140
140
 
141
- Organize the chapters into CATEGORY FOLDERS: docs/<NN>-<category>/<MM>-<chapter>.md.
142
- The folder name (minus its numeric prefix, hyphens spaces) becomes the sidebar's
143
- bold GROUP HEADER exactly like the grouped left nav in Stripe / HuggingFace docs.
144
- Numeric prefixes on BOTH the folder and the file set reading order.
145
-
146
- Fixed spine:
147
- - docs/00-overview/00-start-here.md the landing page + MASTER TABLE OF CONTENTS:
148
- what the product is (2-3 sentences); how to run it locally (prerequisites,
149
- install, required env, dev server, tests); then a linked table of contents of
150
- EVERY chapter GROUPED BY CATEGORY, each with a one-line description; then 2-3
151
- role-based reading paths (e.g. "New to the backend: read Architecture, then
152
- Agent fleet, then Data model").
153
- - docs/00-overview/01-architecture.md the system at a glance: a Mermaid diagram
154
- (a fenced code block whose language is mermaid) of the major components and how
155
- they connect, a component-responsibility table, the primary request/data flows,
156
- and a link into the chapter for each component.
157
- - docs/<NN>-<category>/<MM>-<chapter>.md — the subsystem chapters, sorted into a
158
- FEW meaningful categories (aim for 2-5 folders) that mirror the codebase's real
159
- divisions e.g. docs/10-core-runtime/, docs/20-api-and-data/, docs/30-frontend/.
160
- Each folder groups the RELATED chapters (a category holding a single chapter is a
161
- smellmerge or regroup). One chapter per major subsystem; cover every
162
- significant one.
163
- - docs/90-reference/00-decisions.md — notable design decisions, each as context,
164
- decision, why, and consequences.
165
- - docs/90-reference/01-glossary.md — the project's terms of art, alphabetized, each
166
- linking to the chapter or vault page that defines it.
141
+ Every chapter declares its sidebar GROUP with a "category:" line in its
142
+ frontmatter the bold group header it sits under, exactly like the grouped left
143
+ nav in Stripe / HuggingFace docs. Group RELATED chapters under a shared category
144
+ (aim for 2-5 categories total that mirror the codebase's real divisions — e.g.
145
+ "Getting started", "Core runtime", "Workspaces", "Reference"; a category holding a
146
+ single chapter is a smell — merge or regroup). Number the chapters so same-category
147
+ chapters are CONTIGUOUS and the categories flow in reading order. The "# Title" is
148
+ a clean human name NO number prefix (ordering comes from the filename prefix).
149
+
150
+ Fixed spine (flat docs/ files; numeric prefix = reading order):
151
+ - docs/00-start-here.md (category: "Getting started") the landing page + MASTER
152
+ TABLE OF CONTENTS: what the product is (2-3 sentences); how to run it locally
153
+ (prerequisites, install, required env, dev server, tests); then a linked table
154
+ of contents of EVERY chapter GROUPED BY CATEGORY, each with a one-line
155
+ description; then 2-3 role-based reading paths (e.g. "New to the backend: read
156
+ Architecture, then Agent fleet, then Data model").
157
+ - docs/01-architecture.md (category: "Getting started") — the system at a glance:
158
+ a Mermaid diagram (a fenced code block whose language is mermaid) of the major
159
+ components and how they connect, a component-responsibility table, the primary
160
+ request/data flows, and a link into the chapter for each component.
161
+ - docs/1N-<chapter>.md ONE chapter per major subsystem, EACH with its own
162
+ "category:" grouping it with its siblings. Cover every significant subsystem.
163
+ - docs/90-decisions.md (category: "Reference") — notable design decisions, each as
164
+ context, decision, why, and consequences.
165
+ - docs/91-glossary.md (category: "Reference") — the project's terms of art,
166
+ alphabetized, each linking to the chapter or vault page that defines it.
167
167
 
168
168
  EVERY chapter follows this exact anatomy, in order:
169
- 1. YAML frontmatter listing the real repo files the chapter draws on.
170
- 2. A "# Title" heading.
169
+ 1. YAML frontmatter: a "category:" group header (see the spine) AND a "files:"
170
+ list of the real repo files the chapter draws on.
171
+ 2. A "# Title" heading (a clean name — no leading number).
171
172
  3. One or two sentences: what the chapter covers and who should read it.
172
173
  4. A "## Contents" section — an in-page table of contents: a bulleted list
173
174
  linking each of the chapter's own "## " sections by anchor. An anchor is the
@@ -181,12 +182,11 @@ EVERY chapter follows this exact anatomy, in order:
181
182
  functions/types, env/config keys, DB tables/columns — as markdown tables.
182
183
  6. A "## Gotchas" section: the traps, edge cases, invariants, and non-obvious
183
184
  constraints.
184
- 7. A "## See also" section: [[wikilinks]] to the deeper vault pages, plus links
185
- to sibling chapters by BASENAME (e.g. "[Architecture](01-architecture.md)").
185
+ 7. A "## See also" section: [[wikilinks]] to the deeper vault pages, plus
186
+ relative links to sibling chapters (e.g. "[Architecture](01-architecture.md)").
186
187
 
187
- Cross-link liberally: [[wikilinks]] point to vault pages; sibling-chapter links by
188
- BASENAME ("MM-name.md") resolve no matter which category folder the target sits in
189
- — you needn't spell the folder path. Both are clickable in the reader. Keep every
188
+ Cross-link liberally: [[wikilinks]] point to vault pages; relative "NN-name.md"
189
+ links point to sibling chapters; both are clickable in the reader. Keep every
190
190
  claim grounded in code you actually read.
191
191
 
192
192
  Full-sweep protocol:
@@ -1,10 +1,23 @@
1
1
  /** Parsed configuration: env vars, CLI flags, and the chosen credentials. */
2
2
 
3
3
  import { readFileSync } from 'node:fs';
4
- import { join } from 'node:path';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
5
6
  import { homedir } from 'node:os';
6
7
 
7
- export const VERSION = '0.28.0';
8
+ // Read the daemon's version from its OWN package.json (always shipped in the npm
9
+ // tarball) — never hardcode it. The hardcoded constant drifted: it sat at
10
+ // '0.28.0' across every release through 0.28.6, so the startup banner, the
11
+ // User-Agent the server version-gates on, and the self-update check all reported
12
+ // a stale version (and the "update available" nag never cleared).
13
+ export const VERSION = (() => {
14
+ try {
15
+ const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'package.json');
16
+ return JSON.parse(readFileSync(pkgPath, 'utf8')).version || '0.0.0';
17
+ } catch {
18
+ return '0.0.0';
19
+ }
20
+ })();
8
21
 
9
22
  // The model EVERY daemon Claude turn runs on — pinned so autonomous work never
10
23
  // inherits your interactive `~/.claude/settings.json` default. That matters: a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowviant",
3
- "version": "0.28.6",
3
+ "version": "0.28.8",
4
4
  "description": "Run your own Claude Code as headless build agents for Flowviant — on your own credentials. Claims dispatched work, opens PRs, captures review evidence, and routes questions back to you.",
5
5
  "type": "module",
6
6
  "bin": {