@open-artifact/harness-kit 0.14.1 → 0.14.3

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/README.md +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -16,7 +16,7 @@ const harness = await createHarness({
16
16
  harness: 'my-app', // ^[a-z0-9][a-z0-9._-]{0,40}$
17
17
  agentName: 'Assistant',
18
18
  commands: ['artifact'],
19
- runtime: { dir: '/path/to/@open-artifact/cli', version: '0.14.1' }, // starts the daemon when none runs
19
+ runtime: { dir: '/path/to/@open-artifact/cli', version: '0.14.3' }, // starts the daemon when none runs
20
20
  // Give a message to a session: 'delivered' | 'resumed' | 'drafted' | 'queued' | 'failed' (the daemon keeps it),
21
21
  // or { status, session }. Only the owner's words (source.from.kind === 'owner') should become a user turn.
22
22
  wake: async ({ session, text, source }) => ((await myApp.deliver(session, text, source)) ? 'delivered' : 'failed'),
@@ -43,7 +43,8 @@ harness.on('artifact', ({ session, artifact, change }) => myApp.card(session, ar
43
43
  `ELECTRON_RUN_AS_NODE` in `env`) and still chooses the runtime, waits for the daemon, checks its version and tries
44
44
  the next runtime; return the process (anything with `once('exit')`) so a failed one is left at once. An Electron app
45
45
  with its `RunAsNode` fuse off uses `utilityProcess.fork(bin, args, { env, stdio: 'pipe' })`; type servers then run
46
- in worker threads of the daemon
46
+ in worker threads of the daemon, and the app asks the daemon to stop (`child.kill()`, then a bounded wait for
47
+ `exit`) before it quits, so `daemon.json` and the lock do not stay behind
47
48
  ([runtime guide](../../docs/integrating/runtime.md#electron-apps-with-the-runasnode-fuse-off)).
48
49
 
49
50
  ## The `Harness` object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-artifact/harness-kit",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "The SDK an agent app uses to integrate Open Artifact: find or start the local daemon, hold a Harness API connection that reconnects, register the tools, take comment wakes and page opens, and follow the artifacts its sessions make.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "NOTICE"
25
25
  ],
26
26
  "dependencies": {
27
- "@open-artifact/protocol": "0.14.1"
27
+ "@open-artifact/protocol": "0.14.3"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.18"