flowviant 0.28.4 → 0.28.6
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/bin/lib/claude.mjs +31 -21
- package/bin/lib/env-cli.mjs +1 -1
- package/bin/lib/env.mjs +4 -1
- package/package.json +2 -2
package/bin/lib/claude.mjs
CHANGED
|
@@ -138,23 +138,32 @@ 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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- docs/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
+
smell — merge 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.
|
|
158
167
|
|
|
159
168
|
EVERY chapter follows this exact anatomy, in order:
|
|
160
169
|
1. YAML frontmatter listing the real repo files the chapter draws on.
|
|
@@ -172,11 +181,12 @@ EVERY chapter follows this exact anatomy, in order:
|
|
|
172
181
|
functions/types, env/config keys, DB tables/columns — as markdown tables.
|
|
173
182
|
6. A "## Gotchas" section: the traps, edge cases, invariants, and non-obvious
|
|
174
183
|
constraints.
|
|
175
|
-
7. A "## See also" section: [[wikilinks]] to the deeper vault pages, plus
|
|
176
|
-
|
|
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)").
|
|
177
186
|
|
|
178
|
-
Cross-link liberally: [[wikilinks]] point to vault pages;
|
|
179
|
-
|
|
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
|
|
180
190
|
claim grounded in code you actually read.
|
|
181
191
|
|
|
182
192
|
Full-sweep protocol:
|
package/bin/lib/env-cli.mjs
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import { readFileSync } from 'node:fs';
|
|
21
21
|
import { basename } from 'node:path';
|
|
22
22
|
import { createInterface } from 'node:readline';
|
|
23
|
-
import sodium from 'libsodium-wrappers';
|
|
23
|
+
import sodium from 'libsodium-wrappers-sumo'; // sumo: Argon2 for the recovery KDF (see env.mjs)
|
|
24
24
|
import { FLEET_URL, FLEET_TOKEN, USER_AGENT } from './config.mjs';
|
|
25
25
|
import { ensureKeypair, myPubB64, fetchBundle } from './env.mjs';
|
|
26
26
|
|
package/bin/lib/env.mjs
CHANGED
|
@@ -39,7 +39,10 @@ import {
|
|
|
39
39
|
import { execFileSync } from 'node:child_process';
|
|
40
40
|
import { homedir, hostname } from 'node:os';
|
|
41
41
|
import { join, dirname, resolve } from 'node:path';
|
|
42
|
-
|
|
42
|
+
// The SUMO build: the standard `libsodium-wrappers` omits Argon2 (crypto_pwhash),
|
|
43
|
+
// which bootstrapProject() needs to derive the recovery-code key — without it
|
|
44
|
+
// crypto_pwhash_SALTBYTES is undefined and bootstrap throws every poll.
|
|
45
|
+
import sodium from 'libsodium-wrappers-sumo';
|
|
43
46
|
import { FLEET_URL, FLEET_TOKEN, USER_AGENT } from './config.mjs';
|
|
44
47
|
import { c, info, note, ok, warn } from './ui.mjs';
|
|
45
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowviant",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.6",
|
|
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": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@anthropic-ai/claude-agent-sdk": "^0.3.0",
|
|
19
|
-
"libsodium-wrappers": "^0.8.4",
|
|
19
|
+
"libsodium-wrappers-sumo": "^0.8.4",
|
|
20
20
|
"ws": "^8.18.0"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|