@gtrabanco/agentic-workflow-schema 1.0.0 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gabriel Trabanco <gtrabanco@users.noreply.github.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,9 +2,11 @@
2
2
 
3
3
  Types, JSON Schema, and parser/validator for the
4
4
  [agentic-workflow](https://github.com/gtrabanco/agentic-workflow) **machine
5
- envelope** — the fixed JSON block every user-facing skill prints as the
6
- absolute last output of its turn, so external orchestrators can route the
7
- workflow programmatically (which command next, on which model tier).
5
+ envelope** — the fixed JSON block a driven agent turn ends with (emitted by
6
+ `workflow-status` always, and by any other skill when the driver injects the
7
+ canonical system-prompt snippet — see the driver protocol below), so external
8
+ orchestrators can route the workflow programmatically (which command next, on
9
+ which model tier).
8
10
 
9
11
  Zero runtime dependencies. Source of truth for the contract:
10
12
  [`skills/orchestration-envelope/SKILL.md`](https://github.com/gtrabanco/agentic-workflow/blob/main/skills/orchestration-envelope/SKILL.md);
@@ -43,12 +45,142 @@ one per turn, all top-level keys always present.
43
45
 
44
46
  Also exported: `extractLastJsonBlock(text)`, `validateEnvelope(value)`,
45
47
  `ENVELOPE_STATES` (the 11-state enum), `TERMINAL_STATES`, and every field
46
- type. A language-agnostic **JSON Schema** ships too:
48
+ type. A language-agnostic **JSON Schema** ships too — works on the
49
+ `engines.node` minimum (>=18):
50
+
51
+ ```ts
52
+ import { createRequire } from "node:module";
53
+ const schema = createRequire(import.meta.url)("@gtrabanco/agentic-workflow-schema/envelope.schema.json");
54
+ ```
55
+
56
+ On Node 20.10+/22, the newer import-attributes form also works:
47
57
 
48
58
  ```ts
49
59
  import schema from "@gtrabanco/agentic-workflow-schema/envelope.schema.json" with { type: "json" };
50
60
  ```
51
61
 
62
+ ## The envelope, field by field
63
+
64
+ Every top-level key is **always present** (`required` in the JSON Schema) —
65
+ a skill that has nothing to report for a key uses `null` / `[]` / `0`, never
66
+ omits it. **Closed** = the exact enum below is exhaustive (the validator
67
+ rejects anything else); **open** = free-form, any value of the stated type.
68
+
69
+ | Field | Type | Values | Meaning |
70
+ |---|---|---|---|
71
+ | `skill` | string | open (non-empty) | Which skill produced this envelope. |
72
+ | `state` | enum | **closed** — the 11 states below | The routing key. Everything an orchestrator decides starts here. |
73
+ | `summary` | string | open | One plain-text sentence: what happened this turn. |
74
+ | `unit.type` | enum | **closed** — `feature` · `fix` · `docs` · `none` | What kind of unit the turn worked on. |
75
+ | `unit.id` | string\|null | open | The unit's identifier (`NN-slug` for features, `n-topic` for fixes). |
76
+ | `unit.issue` | integer\|null | open | The tracking issue number, when the unit is issue-born. |
77
+ | `unit.branch` | string\|null | open | The working branch. |
78
+ | `phase.current` | string\|null | open (by convention `P1`, `P2`, …) | Phase just worked, for phased (M/L) features. |
79
+ | `phase.total` / `phase.completed` | integer\|null | open | Phase counts; `null` for single-pass units. |
80
+ | `pr.number` / `pr.url` / `pr.head_sha` | int/str\|null | open | The unit's PR, once it exists. |
81
+ | `pr.state` | enum | **closed** — `open` · `merged` · `none` | Merge state lives in the forge, not the roadmap. |
82
+ | `pr.merge_ready` | boolean\|null | open | `true` only after an `audit-pr` MERGE-READY verdict on the current head. |
83
+ | `pr.ci` | enum | **closed** — `green` · `red` · `pending` · `none` · `null` | `none` = the project has no CI; `null` = not checked this turn. |
84
+ | `gates.verification` | enum | **closed** — `green` · `red` · `not-run` · `null` | The project's own gate (type-check + tests + build) as last RUN. |
85
+ | `gates.review_pending` / `gates.audit_pending` | boolean\|null | open | Whether the mandatory review / merge audit still has to happen. |
86
+ | `findings.fix_now[]` | object array | items: `ref` (open), `title` (open), `file` (open, nullable) | Findings that must fold into the CURRENT branch before it advances. |
87
+ | `findings.issues_filed[]` | integer array | open | Issue numbers created/updated this turn. |
88
+ | `findings.untriaged` | integer ≥ 0 | open | Findings still without a destination — skills whose contract routes everything must report `0`. |
89
+ | `findings.decisions_recorded` | integer ≥ 0 | open | Decisions written to `decisions.md`-class records this turn. |
90
+ | `blockers[].kind` | enum | **closed** — `dependency` · `issue` · `gate` · `merge-conflict` · `substrate` · `input` | Why the unit (or run) cannot proceed. |
91
+ | `blockers[].scope` | enum | **closed** — `unit` · `run` | `run` means stop-the-world: nothing else proceeds either. |
92
+ | `blockers[].id` / `blockers[].detail` | string | open | What exactly (a slug, `#N`, a check name) + one line of context. |
93
+ | `dependencies.unmet[]` / `dependencies.build_order[]` | string arrays | open | Unmet roadmap/issue refs, and the deepest-first order to build them. |
94
+ | `recommendations.product_audit` | boolean | open | `true` when recurring drift suggests the founding assumptions are stale. |
95
+ | `recommendations.reason` | string\|null | open | Why (required in practice when the flag is `true`). |
96
+ | `needs_input` | object\|null | `question` (open) + `options[]` (open) | Non-null only on `state: NEEDS_INPUT` — the human decision to surface, with concrete options. Nothing was guessed. |
97
+ | `next.recommended` | string | open (a skill invocation) | The single best next command. |
98
+ | `next.alternatives[]` | string array | open | The other defensible choices. |
99
+ | `next.tier` | enum | **closed** — `strong` · `cheap` | Which model class the next step deserves — judgment vs mechanical. |
100
+ | `detail` | any | open (skill-specific) | Per-skill payload — e.g. `workflow-status` carries the full project tree (`features`, `fixes`, `startable_now`, `blocked_units`, `crash_recovery`, …) here. |
101
+
102
+ ### The `state` routing table (closed — exactly these 11)
103
+
104
+ | `state` | Meaning | Orchestrator action |
105
+ |---|---|---|
106
+ | `OK` | Skill finished its job | Invoke `next.recommended` on `next.tier` |
107
+ | `CONTINUE` | Same unit, more of the same work | Re-invoke `next.recommended` (advisory checkpoints also land here — the alternative is listed) |
108
+ | `READY_FOR_REVIEW` | Unit finished; mandatory review next | `/review-change` on a strong model, fresh context |
109
+ | `READY_FOR_AUDIT` | Review clean | `/audit-pr` (strong) |
110
+ | `MERGE_READY` | Audit passed on the current head SHA | Human merges — or your written auto-merge policy does |
111
+ | `MERGED` | An authorized auto-merge ran this turn | Next unit: poll `workflow-status` |
112
+ | `NEEDS_FIXES` | `findings.fix_now` is non-empty | Fold on-branch (commit AND push), then re-run the gate that emitted them |
113
+ | `BLOCKED` | Unmet dependency / external cause | Follow `dependencies.build_order`, or resolve `blockers[]` |
114
+ | `NEEDS_INPUT` | A human must decide | Surface `needs_input.question` + `options`; resume with the answer |
115
+ | `FAILED` | Retries exhausted | Stop this unit; a human looks |
116
+ | `HALT` | Stop-the-world discovery (`blockers[].scope: "run"`) | Stop the whole run; nothing proceeds until a human clears it |
117
+
118
+ `isTerminal(state)` covers `NEEDS_INPUT` / `FAILED` / `HALT` (+ human-gated
119
+ `MERGE_READY`); `isRunHalt(envelope)` is the `HALT` / run-scoped-blocker check.
120
+
121
+ ## Orchestrating with this schema
122
+
123
+ Two patterns, both consuming the same envelope. In both, **inject the
124
+ canonical system-prompt snippet** into every headless invocation (skills do
125
+ not emit the envelope on their own — `workflow-status` is the one exception):
126
+
127
+ ```text
128
+ Every turn you produce MUST end with exactly one fenced ```json block matching
129
+ the orchestration envelope schema (all top-level keys present; values only
130
+ from verified command output). Emit nothing after it.
131
+ ```
132
+
133
+ …and run the **repair loop** on parse failure — one retry, then fail the step:
134
+
135
+ ```ts
136
+ async function turn(prompt: string) {
137
+ let out = await invokeAgent(prompt, { system: SNIPPET });
138
+ let r = parseEnvelope(out);
139
+ if (!r.ok) {
140
+ out = await invokeAgent("Emit only the machine envelope for the turn above.", { resume: true });
141
+ r = parseEnvelope(out);
142
+ if (!r.ok) throw new Error(`step failed: no valid envelope (${r.errors.join("; ")})`);
143
+ }
144
+ return r.envelope;
145
+ }
146
+ ```
147
+
148
+ **Pattern 1 — fixed driver loop** (start here): poll the sensor, route on
149
+ `state`, repeat. Full skeleton in
150
+ [`docs/workflow/ORCHESTRATION.md`](https://github.com/gtrabanco/agentic-workflow/blob/main/docs/workflow/ORCHESTRATION.md),
151
+ including the crash-recovery restart protocol (`--last-envelope` hint +
152
+ append-only envelope journal).
153
+
154
+ **Pattern 2 — dynamic workflows** (the conductor pattern): one long-running
155
+ conductor context *writes and monitors* the work plan; every worker runs in a
156
+ **clean context** and only its envelope flows back up — the conductor never
157
+ ingests raw transcripts, which is what lets it stay long-running without
158
+ degrading. The envelope is precisely the "structured result" this pattern
159
+ needs:
160
+
161
+ ```ts
162
+ // Conductor: fan out independent units (workflow-status said they're startable
163
+ // in parallel and the project declares `worktrees`), read back only envelopes.
164
+ const status = await turn("Follow the installed SKILL.md for: /workflow-status --json-only");
165
+ const units = status.detail.startable_now as string[];
166
+
167
+ const results = await Promise.all(
168
+ units.map((u) => turn(`Follow the installed SKILL.md for: /execute-phase ${u}`))
169
+ );
170
+
171
+ for (const env of results) {
172
+ if (isRunHalt(env)) throw new Error(`HALT: ${JSON.stringify(env.blockers)}`);
173
+ if (env.state === "NEEDS_FIXES")
174
+ await turn(`Fold the fix-now findings on ${env.unit.branch}: ${JSON.stringify(env.findings.fix_now)}`);
175
+ }
176
+ // The conductor's own context grew by a few KB of envelopes — not by N transcripts.
177
+ ```
178
+
179
+ Safety floor for any driver, fixed loop or dynamic: never skip a
180
+ `review_pending`/`audit_pending` gate, never merge on anything but a fresh
181
+ `MERGE_READY` bound to the current head SHA, and treat `HALT` as terminal
182
+ until a human clears it.
183
+
52
184
  ## Versioning
53
185
 
54
186
  This package's semver tracks the **envelope contract**, not the repo:
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@
2
2
  * @gtrabanco/agentic-workflow-schema
3
3
  *
4
4
  * Types, extraction, and validation for the agentic-workflow **machine
5
- * envelope** — the fixed JSON block every user-facing skill prints as the
6
- * absolute last output of its turn.
5
+ * envelope** — the fixed JSON block a driven agent turn ends with (emitted by
6
+ * workflow-status always, and by any other skill when the driver injects the
7
+ * canonical system-prompt snippet).
7
8
  *
8
9
  * Parse contract (mirrors skills/orchestration-envelope/SKILL.md):
9
10
  * take the LAST fenced ```json block of the assistant's final message;
package/dist/index.js CHANGED
@@ -2,8 +2,9 @@
2
2
  * @gtrabanco/agentic-workflow-schema
3
3
  *
4
4
  * Types, extraction, and validation for the agentic-workflow **machine
5
- * envelope** — the fixed JSON block every user-facing skill prints as the
6
- * absolute last output of its turn.
5
+ * envelope** — the fixed JSON block a driven agent turn ends with (emitted by
6
+ * workflow-status always, and by any other skill when the driver injects the
7
+ * canonical system-prompt snippet).
7
8
  *
8
9
  * Parse contract (mirrors skills/orchestration-envelope/SKILL.md):
9
10
  * take the LAST fenced ```json block of the assistant's final message;
@@ -49,6 +50,28 @@ export function extractLastJsonBlock(text) {
49
50
  function isObj(v) {
50
51
  return typeof v === "object" && v !== null && !Array.isArray(v);
51
52
  }
53
+ function isIntOrNull(v) {
54
+ return v === null || (typeof v === "number" && Number.isInteger(v));
55
+ }
56
+ function isStringOrNull(v) {
57
+ return v === null || typeof v === "string";
58
+ }
59
+ function isStringArray(v) {
60
+ return Array.isArray(v) && v.every((x) => typeof x === "string");
61
+ }
62
+ const UNIT_TYPES = ["feature", "fix", "docs", "none"];
63
+ const PR_STATES = ["open", "merged", "none"];
64
+ const CI_STATES = ["green", "red", "pending", "none"];
65
+ const VERIFICATION_STATES = ["green", "red", "not-run"];
66
+ const BLOCKER_KINDS = [
67
+ "dependency",
68
+ "issue",
69
+ "gate",
70
+ "merge-conflict",
71
+ "substrate",
72
+ "input",
73
+ ];
74
+ const BLOCKER_SCOPES = ["unit", "run"];
52
75
  const REQUIRED_KEYS = [
53
76
  "skill",
54
77
  "state",
@@ -87,46 +110,137 @@ export function validateEnvelope(value) {
87
110
  if (typeof value.summary !== "string") {
88
111
  errors.push("summary must be a string");
89
112
  }
90
- if (!isObj(value.unit))
113
+ if (!isObj(value.unit)) {
91
114
  errors.push("unit must be an object");
92
- if (!isObj(value.phase))
115
+ }
116
+ else {
117
+ const unit = value.unit;
118
+ if (!UNIT_TYPES.includes(unit.type)) {
119
+ errors.push(`unit.type must be one of ${UNIT_TYPES.join("|")} (got: ${String(unit.type)})`);
120
+ }
121
+ if (!isStringOrNull(unit.id))
122
+ errors.push("unit.id must be a string or null");
123
+ if (!isIntOrNull(unit.issue))
124
+ errors.push("unit.issue must be an integer or null");
125
+ if (!isStringOrNull(unit.branch))
126
+ errors.push("unit.branch must be a string or null");
127
+ }
128
+ if (!isObj(value.phase)) {
93
129
  errors.push("phase must be an object");
94
- if (!isObj(value.pr))
130
+ }
131
+ else {
132
+ const phase = value.phase;
133
+ if (!isStringOrNull(phase.current))
134
+ errors.push("phase.current must be a string or null");
135
+ if (!isIntOrNull(phase.total))
136
+ errors.push("phase.total must be an integer or null");
137
+ if (!isIntOrNull(phase.completed))
138
+ errors.push("phase.completed must be an integer or null");
139
+ }
140
+ if (!isObj(value.pr)) {
95
141
  errors.push("pr must be an object");
96
- if (!isObj(value.gates))
142
+ }
143
+ else {
144
+ const pr = value.pr;
145
+ if (!isIntOrNull(pr.number))
146
+ errors.push("pr.number must be an integer or null");
147
+ if (!isStringOrNull(pr.url))
148
+ errors.push("pr.url must be a string or null");
149
+ if (!PR_STATES.includes(pr.state)) {
150
+ errors.push(`pr.state must be one of ${PR_STATES.join("|")} (got: ${String(pr.state)})`);
151
+ }
152
+ if (!isStringOrNull(pr.head_sha))
153
+ errors.push("pr.head_sha must be a string or null");
154
+ if (pr.merge_ready !== null && typeof pr.merge_ready !== "boolean") {
155
+ errors.push("pr.merge_ready must be a boolean or null");
156
+ }
157
+ if (pr.ci !== null && !CI_STATES.includes(pr.ci)) {
158
+ errors.push(`pr.ci must be one of ${CI_STATES.join("|")} or null (got: ${String(pr.ci)})`);
159
+ }
160
+ }
161
+ if (!isObj(value.gates)) {
97
162
  errors.push("gates must be an object");
163
+ }
164
+ else {
165
+ const gates = value.gates;
166
+ if (gates.verification !== null && !VERIFICATION_STATES.includes(gates.verification)) {
167
+ errors.push(`gates.verification must be one of ${VERIFICATION_STATES.join("|")} or null (got: ${String(gates.verification)})`);
168
+ }
169
+ if (gates.review_pending !== null && typeof gates.review_pending !== "boolean") {
170
+ errors.push("gates.review_pending must be a boolean or null");
171
+ }
172
+ if (gates.audit_pending !== null && typeof gates.audit_pending !== "boolean") {
173
+ errors.push("gates.audit_pending must be a boolean or null");
174
+ }
175
+ }
98
176
  if (!Array.isArray(value.blockers)) {
99
177
  errors.push("blockers must be an array");
100
178
  }
101
179
  else {
102
180
  value.blockers.forEach((b, i) => {
103
- if (!isObj(b) || typeof b.kind !== "string" || typeof b.id !== "string") {
104
- errors.push(`blockers[${i}] must be {kind, id, scope, detail}`);
181
+ if (!isObj(b)) {
182
+ errors.push(`blockers[${i}] must be an object`);
183
+ return;
184
+ }
185
+ if (!BLOCKER_KINDS.includes(b.kind)) {
186
+ errors.push(`blockers[${i}].kind must be one of ${BLOCKER_KINDS.join("|")} (got: ${String(b.kind)})`);
105
187
  }
188
+ if (typeof b.id !== "string")
189
+ errors.push(`blockers[${i}].id must be a string`);
190
+ if (!BLOCKER_SCOPES.includes(b.scope)) {
191
+ errors.push(`blockers[${i}].scope must be one of ${BLOCKER_SCOPES.join("|")} (got: ${String(b.scope)})`);
192
+ }
193
+ if (typeof b.detail !== "string")
194
+ errors.push(`blockers[${i}].detail must be a string`);
106
195
  });
107
196
  }
108
197
  if (!isObj(value.dependencies)) {
109
198
  errors.push("dependencies must be an object");
110
199
  }
111
200
  else {
112
- if (!Array.isArray(value.dependencies.unmet)) {
113
- errors.push("dependencies.unmet must be an array");
201
+ if (!isStringArray(value.dependencies.unmet)) {
202
+ errors.push("dependencies.unmet must be an array of strings");
114
203
  }
115
- if (!Array.isArray(value.dependencies.build_order)) {
116
- errors.push("dependencies.build_order must be an array");
204
+ if (!isStringArray(value.dependencies.build_order)) {
205
+ errors.push("dependencies.build_order must be an array of strings");
206
+ }
207
+ }
208
+ if (!isObj(value.recommendations)) {
209
+ errors.push("recommendations must be an object");
210
+ }
211
+ else {
212
+ if (typeof value.recommendations.product_audit !== "boolean") {
213
+ errors.push("recommendations.product_audit must be a boolean");
214
+ }
215
+ if (!isStringOrNull(value.recommendations.reason)) {
216
+ errors.push("recommendations.reason must be a string or null");
117
217
  }
118
218
  }
119
219
  if (!isObj(value.findings)) {
120
220
  errors.push("findings must be an object");
121
221
  }
122
222
  else {
123
- if (!Array.isArray(value.findings.fix_now)) {
223
+ const findings = value.findings;
224
+ if (!Array.isArray(findings.fix_now)) {
124
225
  errors.push("findings.fix_now must be an array");
125
226
  }
126
- if (!Array.isArray(value.findings.issues_filed) ||
127
- !value.findings.issues_filed.every((n) => typeof n === "number" && Number.isInteger(n))) {
227
+ else {
228
+ findings.fix_now.forEach((f, i) => {
229
+ if (!isObj(f) || typeof f.ref !== "string" || typeof f.title !== "string") {
230
+ errors.push(`findings.fix_now[${i}] must be {ref, title, file?}`);
231
+ }
232
+ });
233
+ }
234
+ if (!Array.isArray(findings.issues_filed) ||
235
+ !findings.issues_filed.every((n) => typeof n === "number" && Number.isInteger(n))) {
128
236
  errors.push("findings.issues_filed must be an array of integers");
129
237
  }
238
+ if (typeof findings.untriaged !== "number" || !Number.isInteger(findings.untriaged)) {
239
+ errors.push("findings.untriaged must be an integer");
240
+ }
241
+ if (typeof findings.decisions_recorded !== "number" || !Number.isInteger(findings.decisions_recorded)) {
242
+ errors.push("findings.decisions_recorded must be an integer");
243
+ }
130
244
  }
131
245
  if (!isObj(value.next)) {
132
246
  errors.push("next must be an object");
@@ -135,13 +249,18 @@ export function validateEnvelope(value) {
135
249
  if (typeof value.next.recommended !== "string") {
136
250
  errors.push("next.recommended must be a string");
137
251
  }
252
+ if (!isStringArray(value.next.alternatives)) {
253
+ errors.push("next.alternatives must be an array of strings");
254
+ }
138
255
  if (value.next.tier !== "strong" && value.next.tier !== "cheap") {
139
256
  errors.push(`next.tier must be strong|cheap (got: ${String(value.next.tier)})`);
140
257
  }
141
258
  }
142
259
  if (value.needs_input !== null && value.needs_input !== undefined) {
143
- if (!isObj(value.needs_input) || typeof value.needs_input.question !== "string") {
144
- errors.push("needs_input must be null or {question, options}");
260
+ if (!isObj(value.needs_input) ||
261
+ typeof value.needs_input.question !== "string" ||
262
+ !isStringArray(value.needs_input.options)) {
263
+ errors.push("needs_input must be null or {question: string, options: string[]}");
145
264
  }
146
265
  }
147
266
  if (errors.length > 0)
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://github.com/gtrabanco/agentic-workflow/packages/agentic-workflow-schema/envelope.schema.json",
4
4
  "title": "agentic-workflow machine envelope",
5
- "description": "The fixed JSON block every user-facing agentic-workflow skill prints as the absolute last output of its turn. Source of truth: skills/orchestration-envelope/SKILL.md.",
5
+ "description": "The fixed JSON block a driven agentic-workflow agent turn ends with (emitted by workflow-status always, and by any other skill when the driver injects the canonical system-prompt snippet). Source of truth: skills/orchestration-envelope/SKILL.md.",
6
6
  "type": "object",
7
7
  "required": [
8
8
  "skill",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gtrabanco/agentic-workflow-schema",
3
- "version": "1.0.0",
4
- "description": "Types, JSON Schema, and parser/validator for the agentic-workflow machine envelope — the fixed JSON block every user-facing skill prints as its last output, for programmatic orchestration.",
3
+ "version": "1.0.2",
4
+ "description": "Types, JSON Schema, and parser/validator for the agentic-workflow machine envelope — the fixed JSON block a driven agent turn ends with (workflow-status always; other skills under the driver-injected snippet), for programmatic orchestration.",
5
5
  "keywords": [
6
6
  "agentic-workflow",
7
7
  "agent",
@@ -31,7 +31,8 @@
31
31
  "files": [
32
32
  "dist",
33
33
  "envelope.schema.json",
34
- "README.md"
34
+ "README.md",
35
+ "LICENSE"
35
36
  ],
36
37
  "engines": {
37
38
  "node": ">=18"
@@ -41,7 +42,7 @@
41
42
  },
42
43
  "scripts": {
43
44
  "build": "tsc",
44
- "test": "npm run build && node --test test/index.test.mjs",
45
+ "test": "tsc && node --test test/index.test.mjs",
45
46
  "prepublishOnly": "npm test"
46
47
  },
47
48
  "devDependencies": {