wiki-graph-sdk 0.7.0 → 0.8.0

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 CHANGED
@@ -27,6 +27,22 @@ Job event subscriptions observe durable work without coupling observation to
27
27
  cancellation. Call `job.cancel()` explicitly to cancel a job; unsubscribing
28
28
  only stops the current listener.
29
29
 
30
+ Services that receive chapter job artifacts as files can apply an ordered,
31
+ lazy sequence through the Node delivery boundary without importing Core:
32
+
33
+ ```ts
34
+ import { applyWikiGraphJobArtifacts } from "wiki-graph-sdk/worker";
35
+
36
+ await applyWikiGraphJobArtifacts({
37
+ archive: { kind: "standalone", path: "/tmp/job/archive.wikg" },
38
+ artifacts,
39
+ stateDir: "/tmp/job/sdk-state",
40
+ });
41
+ ```
42
+
43
+ Each artifact carries its chapter, job kind, and source revision. The operation
44
+ stops before consuming later artifacts when a revision no longer matches.
45
+
30
46
  The SDK intentionally has no `execute(command, args)` API. CLI argument
31
47
  parsing, help text, terminal formatting, JSON, and JSONL rendering belong to
32
48
  the `wiki-graph` package. SDK methods return typed objects and job events.