@nocville/npc 0.5.0 → 0.5.1

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.
@@ -262,9 +262,11 @@ function buildAgentPayload(adapter, state, config) {
262
262
  };
263
263
  }
264
264
  /**
265
- * Clients reused within one process (a long-lived watchdog): a fresh client
266
- * re-runs enrollment, manifest, version and session requests on every push.
267
- * Any failure (e.g. a hook process took over the producer session) drops it.
265
+ * Clients reused within one process (a long-lived watchdog). A fresh client in
266
+ * a new hook process resumes the sign-in cached by @nocville/node (session claim
267
+ * plus the write); only a missing, refused or 12-hour-old sign-in re-runs
268
+ * enrollment, manifest and version. Any failure (e.g. a hook process took over
269
+ * the producer session) drops the client.
268
270
  */
269
271
  const clients = new Map();
270
272
  async function defaultPush(config, serviceId, payload, timeoutMs) {
@@ -240,9 +240,11 @@ export function buildAgentPayload(adapter, state, config) {
240
240
  };
241
241
  }
242
242
  /**
243
- * Clients reused within one process (a long-lived watchdog): a fresh client
244
- * re-runs enrollment, manifest, version and session requests on every push.
245
- * Any failure (e.g. a hook process took over the producer session) drops it.
243
+ * Clients reused within one process (a long-lived watchdog). A fresh client in
244
+ * a new hook process resumes the sign-in cached by @nocville/node (session claim
245
+ * plus the write); only a missing, refused or 12-hour-old sign-in re-runs
246
+ * enrollment, manifest and version. Any failure (e.g. a hook process took over
247
+ * the producer session) drops the client.
246
248
  */
247
249
  const clients = new Map();
248
250
  async function defaultPush(config, serviceId, payload, timeoutMs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocville/npc",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Put your Claude Code and Codex sessions (and your servers) in the Nocville office as live NPCs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "pngjs": "^7.0.0",
27
- "@nocville/node": "^0.5.0"
27
+ "@nocville/node": "^0.5.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "puppeteer-core": "*"