@aacombarro89/praxis 0.1.11 → 0.1.13
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/README.md +28 -0
- package/dist/anchors.d.ts +17 -1
- package/dist/anchors.js +65 -4
- package/dist/anchors.js.map +1 -1
- package/dist/emit.js +5 -1
- package/dist/emit.js.map +1 -1
- package/dist/init.d.ts +11 -3
- package/dist/init.js +55 -4
- package/dist/init.js.map +1 -1
- package/dist/manifest.d.ts +48 -0
- package/dist/manifest.js +139 -0
- package/dist/manifest.js.map +1 -1
- package/dist/packages.d.ts +1 -0
- package/dist/packages.js +14 -1
- package/dist/packages.js.map +1 -1
- package/dist/program.d.ts +18 -0
- package/dist/program.js +129 -34
- package/dist/program.js.map +1 -1
- package/package.json +1 -1
- package/packages/layer2/workspace/commands/workspace-upkeep.md +56 -0
- package/packages/layer2/workspace/package.yaml +14 -0
- package/packages/layer2/workspace/rules.md +17 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Hub-sovereign workspace upkeep — audit this hub and its cloned members, report drift and proposed edits, and apply only what the user confirms.
|
|
3
|
+
argument-hint: [optional-member-or-area-to-focus]
|
|
4
|
+
allowed-tools: Read, Glob, Bash(git log:*), Bash(npx @aacombarro89/praxis@latest check:*), Bash(npx @aacombarro89/praxis@latest sync:*), Bash(npx @aacombarro89/praxis check:*), Bash(npx @aacombarro89/praxis sync:*), Bash(praxis check:*), Bash(praxis sync:*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Focus: {{arguments}} — if empty, cover the whole workspace at a high level.
|
|
8
|
+
|
|
9
|
+
This is the hub-sovereign upkeep pass for a Praxis **workspace**: a meta-repo
|
|
10
|
+
with independent git repos cloned beneath it. It sequences the hub's own
|
|
11
|
+
upkeep, keeps the hub wiki's cross-repo knowledge current, fans work out to
|
|
12
|
+
cloned members in **audit mode only**, and never edits a member repo without
|
|
13
|
+
the user's explicit confirmation.
|
|
14
|
+
|
|
15
|
+
1. **Read the workspace** from `praxis.yaml`'s `workspace:` section (members,
|
|
16
|
+
edges, contract pages). If it is absent, say so and stop — this command is
|
|
17
|
+
for a workspace hub only. Note any member whose directory isn't cloned yet;
|
|
18
|
+
skip it in the steps below and point at that repo's own clone/setup script
|
|
19
|
+
if one exists — never invent one.
|
|
20
|
+
|
|
21
|
+
2. **Hub pass.** Perform `{{workflow:praxis-upkeep}}` for this repo. Its
|
|
22
|
+
`praxis check` output now includes member-anchor skips and the `Workspace:`
|
|
23
|
+
status line for this hub — read them, don't just exit-code them.
|
|
24
|
+
|
|
25
|
+
3. **Workspace wiki currency.** Ensure the hub wiki has a system-map page (a
|
|
26
|
+
member table, the dependency edges, a contract-page index, cross-repo change
|
|
27
|
+
order, and an add-a-member checklist) consistent with `workspace:` in
|
|
28
|
+
`praxis.yaml` — the manifest is the source of truth for membership and
|
|
29
|
+
edges; the wiki holds the prose and contracts. Anchor member references with
|
|
30
|
+
`member:` anchors so `praxis check` trips on drift. This is wiki work: follow
|
|
31
|
+
`{{workflow:praxis-wiki}}`'s own conventions and confirmation gate before
|
|
32
|
+
creating or editing pages.
|
|
33
|
+
|
|
34
|
+
4. **Member fan-out (report-first).** For each **cloned** member, produce a
|
|
35
|
+
per-member brief with `{{workflow:praxis-handoff}}` and delegate one
|
|
36
|
+
workstream per member — where the tool lacks subagent spawning, execute the
|
|
37
|
+
briefs sequentially instead. Each delegate works inside that member's own
|
|
38
|
+
directory, reads that repo's own agent instructions and rules first, then
|
|
39
|
+
runs its upkeep in **audit mode**: run `praxis check` there, assess
|
|
40
|
+
instruction/wiki currency, and **return proposed edits without applying
|
|
41
|
+
them**. Also have it flag any duplicated cross-repo integration prose that
|
|
42
|
+
belongs in the hub's contract pages instead.
|
|
43
|
+
|
|
44
|
+
5. **Edge-based staleness judgment.** For each member with changes since its
|
|
45
|
+
relevant contract page was last touched (compare via `git log`), walk
|
|
46
|
+
`edges` where that member is the producer (`from`) and name each downstream
|
|
47
|
+
member plus its contract page as *likely stale* — a candidate for review,
|
|
48
|
+
not proof.
|
|
49
|
+
|
|
50
|
+
6. **Consolidated report + apply opt-in.** Report: hub status; a per-member
|
|
51
|
+
table (cloned / onboarded / check result); proposed edits per member;
|
|
52
|
+
likely-stale contract pages; and a recommendation of the form "run
|
|
53
|
+
`{{workflow:praxis-upkeep}}` in `<member>`" for any member whose own upkeep
|
|
54
|
+
needs running. On explicit user confirmation, re-delegate to apply the
|
|
55
|
+
confirmed subset per member, so the user can review each member's own git
|
|
56
|
+
diff. Never edit a member's files without that confirmation.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Package manifest (docs/wiki/packages-and-emit.md, D53). Ships a standing
|
|
2
|
+
# reminder (rules.md) plus the /praxis-workspace-upkeep command
|
|
3
|
+
# (commands/workspace-upkeep.md): hub-sovereign upkeep for a Praxis workspace —
|
|
4
|
+
# a meta-repo with N independent git repos cloned beneath it, declared in this
|
|
5
|
+
# repo's own `workspace:` praxis.yaml section. Gated on the `workspace`
|
|
6
|
+
# pseudo-stack, which is derived from that section (never user-declarable in
|
|
7
|
+
# `stacks:`, src/manifest.ts/src/packages.ts), so it never lands in an ordinary
|
|
8
|
+
# repo. Requires wiki-memory/upkeep/session-handoff (D21): the command
|
|
9
|
+
# delegates to all three rather than restating their steps.
|
|
10
|
+
name: workspace
|
|
11
|
+
layer: layer2
|
|
12
|
+
stack: workspace
|
|
13
|
+
provides: [rules, commands]
|
|
14
|
+
requires: [wiki-memory, upkeep, session-handoff]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Workspace hub (Layer 2)
|
|
2
|
+
|
|
3
|
+
This repo is a Praxis **workspace hub**: `workspace:` in `praxis.yaml` declares
|
|
4
|
+
the member repos cloned beneath it and the dependency edges between them.
|
|
5
|
+
|
|
6
|
+
Cross-repo knowledge — dependency edges, API contracts between members,
|
|
7
|
+
cross-repo change order, the add-a-new-member checklist — lives in **this
|
|
8
|
+
repo's wiki**, never duplicated into member wikis; members carry at most prose
|
|
9
|
+
pointers up to it.
|
|
10
|
+
|
|
11
|
+
Trigger: after any change with cross-repo impact (a producer API change, a new
|
|
12
|
+
member, an edge change), or on a periodic sweep, run
|
|
13
|
+
`{{workflow:praxis-workspace-upkeep}}` rather than fixing hub/member drift
|
|
14
|
+
piecemeal.
|
|
15
|
+
|
|
16
|
+
Sovereignty: never edit a member repo's files from the hub uninvited — audit,
|
|
17
|
+
propose, and apply only what the user confirms.
|