create-githolon 0.1.5 → 0.1.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/package.json +1 -1
- package/template/README.md +6 -0
- package/template/test/e2e.mts +3 -0
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -10,6 +10,12 @@ npx githolon compile # → build/: deployable package + manifests + typ
|
|
|
10
10
|
npx githolon login --agent # self-onboard a verified identity (no browser; linkable to a full account later)
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
**The shortest complete proof** — `npm install && npx githolon compile && npm run e2e`
|
|
14
|
+
— IS the whole demonstration: your law deploys to a throwaway workspace, an
|
|
15
|
+
ENFORCED-offline write (fetch is trapped) syncs through edge admission, and the
|
|
16
|
+
cloud answers your declared query and count. Paths A/B below are for keeping a
|
|
17
|
+
real workspace afterwards.
|
|
18
|
+
|
|
13
19
|
## Path A — deploy your law
|
|
14
20
|
|
|
15
21
|
```bash
|
package/template/test/e2e.mts
CHANGED
|
@@ -15,6 +15,9 @@ const CLOUD = (process.env.NOMOS_CLOUD || "https://nomos.captainapp.co.uk").repl
|
|
|
15
15
|
const WS = process.env.NOMOS_WS || "gb-e2e-" + Math.random().toString(36).slice(2, 8);
|
|
16
16
|
|
|
17
17
|
// explicit annotation on the const so TS's never-call narrowing applies after fail(...)
|
|
18
|
+
// IDENTITY NOTE: this proof uses the bare x-nomos-principal lane so the test is
|
|
19
|
+
// SELF-CONTAINED (a throwaway workspace, no stored credentials). Real apps use
|
|
20
|
+
// `githolon login --agent` (a VERIFIED identity) + `githolon ws create/deploy`.
|
|
18
21
|
const fail: (m: string) => never = (m) => { console.error("✗ " + m); process.exit(1); };
|
|
19
22
|
const ok = (m: string) => console.log("✓ " + m);
|
|
20
23
|
|