@shardworks/guild-starter-kit 0.1.94 → 0.1.96

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.
@@ -179,8 +179,8 @@ This lets animas decompose work into sub-items without managing the coordination
179
179
 
180
180
  ### Workspace-Bound Writ Lifecycle
181
181
 
182
- 1. **Posted** — the patron runs `nsg writ post <spec> --workshop <name>`. This creates the writ with `sourceType: 'patron'` and signals `writ.posted`.
183
- 2. **Worktree prepared** — the `workshop-prepare` engine (triggered by `writ.posted`) creates a branch and worktree, then signals `writ.workspace-ready`.
182
+ 1. **Posted** — the patron runs `nsg writ post <spec> --workshop <name>`. This creates the writ with `sourceType: 'patron'` and signals `writ.ready`.
183
+ 2. **Worktree prepared** — the `workshop-prepare` engine (triggered by `writ.ready`) creates a branch and worktree (or reuses an existing one for interrupted/rolled-up writs), then signals `writ.workspace-ready`.
184
184
  3. **Dispatched** — the Clockworks matches `writ.workspace-ready` and summons an artificer, hydrating the prompt template with writ fields.
185
185
  4. **In Progress** — the artificer works on the writ. They may create child writs for sub-tasks using `create-writ`.
186
186
  5. **Session ended** — the artificer calls `complete-session` when done. If child writs exist and are incomplete, the writ goes to `pending`. If the session ends without `complete-session`, the writ is interrupted and re-dispatched.
@@ -301,7 +301,7 @@ Engines are automated mechanical processes with no AI involvement. Two kinds:
301
301
 
302
302
  **Clockwork engines** — purpose-built to respond to events via standing orders. Use the `engine()` SDK factory from `@shardworks/nexus-core`. The Clockworks runner calls them automatically when matching events fire. Packaged in `@shardworks/nexus-stdlib`:
303
303
 
304
- - **workshop-prepare** — creates a worktree when a writ is posted (`writ.posted` → `writ.workspace-ready`)
304
+ - **workshop-prepare** — creates a worktree when a writ is ready (`writ.ready` → `writ.workspace-ready`)
305
305
  - **workshop-merge** — merges the writ branch after the writ completes (`writ.completed` → `writ.merged` or `writ.merge-failed`)
306
306
 
307
307
  ### Session Providers
@@ -349,12 +349,12 @@ Two kinds:
349
349
 
350
350
  | Event | When it fires | Typical standing order |
351
351
  |-------|--------------|----------------------|
352
- | `writ.posted` | A patron posts a writ | `run: workshop-prepare` |
352
+ | `writ.ready` | A writ needs work (new, interrupted, or rolled up) | `run: workshop-prepare` |
353
353
  | `writ.workspace-ready` | Worktree prepared for a writ | `summon: artificer` |
354
354
  | `writ.completed` | Any writ completed (generic) | `run: workshop-merge` |
355
355
  | `writ.merged` | Writ branch merged to main | (guild-defined) |
356
356
  | `writ.merge-failed` | Writ branch merge failed | (guild-defined) |
357
- | `<type>.ready` | A writ of given type is ready | (guild-defined) |
357
+ | `<type>.ready` | A writ of given type is ready | Fires for all types including `writ` |
358
358
  | `<type>.completed` | A writ of given type completed | (guild-defined) |
359
359
  | `<type>.failed` | A writ of given type failed | (guild-defined) |
360
360
  | `session.started` | Any session begins | (guild-defined) |
@@ -389,7 +389,7 @@ Example `guild.json` configuration:
389
389
  }
390
390
  },
391
391
  "standingOrders": [
392
- { "on": "writ.posted", "run": "workshop-prepare" },
392
+ { "on": "writ.ready", "run": "workshop-prepare" },
393
393
  { "on": "writ.workspace-ready", "summon": "artificer",
394
394
  "prompt": "You have been assigned a writ.\n\n{{writ.title}}\n\n{{writ.description}}" },
395
395
  { "on": "writ.completed", "run": "workshop-merge" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shardworks/guild-starter-kit",
3
- "version": "0.1.94",
3
+ "version": "0.1.96",
4
4
  "description": "Default bundle for new Nexus guilds — tools, training, and migrations",
5
5
  "repository": {
6
6
  "type": "git",