wicked-core-ts 0.7.5 → 0.7.7

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.
Files changed (2) hide show
  1. package/index.d.ts +26 -1
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -59,6 +59,16 @@ export interface LaunchOptions {
59
59
  * session persisted. Omit for runs that deliver inside their own workdir.
60
60
  */
61
61
  extraWriteRoots?: Array<string>
62
+ /**
63
+ * ADDITIONAL absolute READ-ONLY roots for the run (core#294) — the read mirror of
64
+ * `extraWriteRoots`, for grounding a run in content it must never edit (e.g. a repo the
65
+ * workflow reads without binding its worktree). Reads inside these roots pass the governed
66
+ * units' boundary; WRITES there stay denied — a read root never widens write scope. Same
67
+ * launch-side vetting as the write roots (absolute, outside the engine's config/pin tree);
68
+ * an invalid root REJECTS the launch with no session persisted. Omit for the default
69
+ * evidence-derived read boundary.
70
+ */
71
+ extraReadRoots?: Array<string>
62
72
  /**
63
73
  * The PROJECT code graph this run's governed workers should query, instead of the run repo's
64
74
  * own graph — one database holding every member repo of the project, so a worker's
@@ -211,8 +221,23 @@ export declare class Core {
211
221
  * a UI builds its project list from).
212
222
  */
213
223
  sessionsDetail(): Promise<string>
214
- /** A unit's captured work output (transcript), as a JSON value — a string, or `null` if none. */
224
+ /**
225
+ * A unit's captured work output (transcript), as a JSON value — a string, or `null` if none.
226
+ * A REJECTED unit answers with whatever PARTIAL output existed at rejection (usability review
227
+ * #1) — the unit record's `status`/`denial` marks it partial; `null` only when no output was
228
+ * ever stored (never ran, or denied before any output existed — see `unitTranscript`).
229
+ */
215
230
  workOutput(unitId: string): Promise<string>
231
+ /**
232
+ * A unit's full transcript RECORD (usability review #1), as a JSON object — or `null` when the
233
+ * unit never ran far enough to leave one. Shape: `{ unit_id, resolution: "resolved"|"rejected",
234
+ * partial: bool, phase_status?, output?, denial_reason?, denial? }` where `denial` is
235
+ * `{ source, reason, claim_id?, rule_ids?, denied_tool?, phase? }`. A rejected unit keeps its
236
+ * PARTIAL output here, flagged; a unit denied BEFORE any output existed answers with an
237
+ * explicit failure record (`output` absent, `denial` carrying the claim id / firing rule ids /
238
+ * denied tool) instead of `null`.
239
+ */
240
+ unitTranscript(unitId: string): Promise<string>
216
241
  /**
217
242
  * A run's recorded event history, oldest first, as a JSON array. Each entry is the SAME tagged
218
243
  * object the `/ws` stream carries ([`CoreEvent::to_json`]) plus a capture-time `ts` (epoch millis)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Node/TypeScript bindings (napi-rs) for wicked-core: drive the in-process orchestration engine from JS/TS.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,11 +42,11 @@
42
42
  "smoke:all": "node smoke.mjs && node smoke-lifecycle.mjs && node smoke-terminal.mjs && node smoke-evals.mjs"
43
43
  },
44
44
  "optionalDependencies": {
45
- "wicked-core-ts-darwin-arm64": "0.7.5",
46
- "wicked-core-ts-darwin-x64": "0.7.5",
47
- "wicked-core-ts-linux-arm64-gnu": "0.7.5",
48
- "wicked-core-ts-linux-x64-gnu": "0.7.5",
49
- "wicked-core-ts-win32-x64-msvc": "0.7.5"
45
+ "wicked-core-ts-darwin-arm64": "0.7.7",
46
+ "wicked-core-ts-darwin-x64": "0.7.7",
47
+ "wicked-core-ts-linux-arm64-gnu": "0.7.7",
48
+ "wicked-core-ts-linux-x64-gnu": "0.7.7",
49
+ "wicked-core-ts-win32-x64-msvc": "0.7.7"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@napi-rs/cli": "^2.18.4"