@north-light/crouter 0.3.251 → 0.3.253

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 (59) hide show
  1. package/dist/api/dto/config.d.ts +2 -0
  2. package/dist/builtin-memory/02-turn-lifecycle/00-ending-a-turn.md +1 -5
  3. package/dist/builtin-memory/04-base-worker-exploring.md +13 -0
  4. package/dist/builtin-memory/04-base-worker.md +1 -4
  5. package/dist/builtin-memory/05-kinds/explore/00-base.md +2 -2
  6. package/dist/builtin-memory/05-kinds/explore/01-orchestrator.md +4 -2
  7. package/dist/builtin-memory/05-kinds/review/security-findings.md +1 -1
  8. package/dist/builtin-memory/explore/exploration-doc.md +27 -0
  9. package/dist/clients/attach/__tests__/completion-frecency.test.d.ts +1 -0
  10. package/dist/clients/attach/__tests__/completion-frecency.test.js +35 -0
  11. package/dist/clients/attach/__tests__/ref-autocomplete.test.js +3 -1
  12. package/dist/clients/attach/__tests__/titled-editor-preview.test.js +2 -1
  13. package/dist/clients/attach/input/completion-frecency.d.ts +45 -0
  14. package/dist/clients/attach/input/completion-frecency.js +141 -0
  15. package/dist/clients/attach/input/controller.d.ts +17 -0
  16. package/dist/clients/attach/input/controller.js +40 -0
  17. package/dist/clients/attach/input/ref-autocomplete.d.ts +3 -1
  18. package/dist/clients/attach/input/ref-autocomplete.js +49 -8
  19. package/dist/clients/attach/input/titled-editor.d.ts +3 -0
  20. package/dist/clients/attach/input/titled-editor.js +5 -0
  21. package/dist/clients/attach/session/editor-inventory.d.ts +3 -0
  22. package/dist/clients/attach/session/editor-inventory.js +1 -1
  23. package/dist/clients/attach/session/input-wiring.d.ts +3 -0
  24. package/dist/clients/attach/session/input-wiring.js +2 -0
  25. package/dist/clients/attach/viewer.js +578 -578
  26. package/dist/commands/node/lifecycle.js +21 -6
  27. package/dist/core/__tests__/canvas-inbox-watcher-hold.test.js +4 -2
  28. package/dist/core/__tests__/canvas-inbox-watcher-naming.test.js +4 -1
  29. package/dist/core/__tests__/canvas-inbox-watcher.test.js +4 -1
  30. package/dist/core/__tests__/fixtures/fake-engine.d.ts +3 -1
  31. package/dist/core/__tests__/fixtures/fake-engine.js +7 -1
  32. package/dist/core/__tests__/integration/deferred-no-wake.test.js +4 -1
  33. package/dist/core/__tests__/migration.test.js +57 -11
  34. package/dist/core/__tests__/seam/broker-provider-retry.test.js +17 -2
  35. package/dist/core/__tests__/seam/dormancy-release.test.js +1 -0
  36. package/dist/core/__tests__/watchdog-abort-arms-retry.test.js +9 -2
  37. package/dist/core/canvas/migrations.js +63 -24
  38. package/dist/core/runtime/broker/engine-drive.js +7 -1
  39. package/dist/core/runtime/broker/fault-retry.js +31 -13
  40. package/dist/core/runtime/broker/held-deferred-inbox.d.ts +4 -0
  41. package/dist/core/runtime/broker/held-deferred-inbox.js +7 -2
  42. package/dist/core/runtime/broker.js +19 -0
  43. package/dist/core/runtime/close.js +2 -2
  44. package/dist/core/runtime/fault.js +8 -5
  45. package/dist/core/runtime/recycle.js +63 -41
  46. package/dist/core/runtime/reset.d.ts +1 -1
  47. package/dist/core/runtime/reset.js +25 -2
  48. package/dist/core/runtime/revive.js +6 -1
  49. package/dist/daemon/__tests__/helpers/source-daemon.js +1 -0
  50. package/dist/daemon/api/handlers/messages.js +1 -1
  51. package/dist/daemon/api/handlers/nodes.js +124 -4
  52. package/dist/daemon/api/handlers/reports.js +1 -1
  53. package/dist/daemon/api/map.d.ts +1 -1
  54. package/dist/daemon/api/map.js +3 -2
  55. package/dist/daemon/cron/sinks.js +1 -1
  56. package/dist/daemon/messaging/node-message.js +1 -1
  57. package/dist/pi-extensions/canvas-inbox-watcher.js +5 -2
  58. package/package.json +1 -1
  59. package/runtime.lock.json +2 -2
@@ -59,7 +59,7 @@ export async function deliverNodeMessage(args) {
59
59
  label: args.label,
60
60
  data: { ...args.data, body: args.body },
61
61
  }));
62
- if (args.mode !== 'quiet' || target.frozen_at !== null)
62
+ if (entry.tier !== 'deferred' || target.frozen_at !== null)
63
63
  cancelCronsOnWake(args.node_id);
64
64
  // The APPENDED entry's tier decides the wake: a quiet send to a terminal
65
65
  // target was raised out of `deferred` by the append, and must be delivered.
@@ -23,7 +23,7 @@ import { errorClassFromError } from '../core/events/errors.js';
23
23
  import { operationIdContext } from '../core/events/operation-id.js';
24
24
  import { situationalContextEnvelope, SITUATIONAL_CONTEXT_CUSTOM_TYPE } from '../core/runtime/situational-context.js';
25
25
  import { isProfilePaused } from '../core/profiles/manifest.js';
26
- import { HELD_DEFERRED_INBOX_PROMPT_JOIN, } from '../core/runtime/broker/held-deferred-inbox.js';
26
+ import { brokerIdleTurnStart, HELD_DEFERRED_INBOX_PROMPT_JOIN, } from '../core/runtime/broker/held-deferred-inbox.js';
27
27
  const MAX_PENDING_HANDOFFS = 64;
28
28
  const MAX_SOURCE_OPERATION_IDS = 16;
29
29
  let currentWatcher;
@@ -738,7 +738,10 @@ class CanvasInboxWatcher {
738
738
  this.pi.sendMessage({ customType: SITUATIONAL_CONTEXT_CUSTOM_TYPE, content: card, display: true }, route === 'idle' ? {} : { deliverAs: route });
739
739
  }
740
740
  if (route === 'idle') {
741
- this.pi.sendUserMessage(content);
741
+ const start = brokerIdleTurnStart();
742
+ if (start === undefined)
743
+ throw new Error('broker idle-turn admission is unavailable');
744
+ start(content);
742
745
  }
743
746
  else {
744
747
  this.pi.sendUserMessage(content, { deliverAs: route });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.251",
3
+ "version": "0.3.253",
4
4
  "description": "crtr — agent runtime with memory, plugins, and marketplaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/runtime.lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.251",
3
+ "version": "0.3.253",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@north-light/crouter",
9
- "version": "0.3.251",
9
+ "version": "0.3.253",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {