@sigrun/sigrun 0.10.1 → 0.11.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +19 -18
  3. package/dist/curation/runs.js +65 -50
  4. package/dist/curation/skill-tool.js +1 -1
  5. package/dist/extension.d.ts +2 -1
  6. package/dist/harness/blocks/tools.js +1 -1
  7. package/dist/harness/boot.js +94 -28
  8. package/dist/harness/decision-tool.js +1 -1
  9. package/dist/harness/decisions.js +1 -1
  10. package/dist/harness/event-bus.js +19 -9
  11. package/dist/harness/loader.js +14 -6
  12. package/dist/harness/migration-snapshot.js +104 -0
  13. package/dist/harness/packages.js +2 -1
  14. package/dist/harness/reports.js +83 -35
  15. package/dist/harness/tools.js +1 -1
  16. package/dist/jobs/docs.js +23 -3
  17. package/dist/jobs/index.js +74 -15
  18. package/dist/jobs/observe.js +26 -9
  19. package/dist/jobs/reconcile.js +12 -3
  20. package/dist/jobs/restart-limit.js +39 -0
  21. package/dist/sandbox/protocol.js +3 -2
  22. package/dist/sandbox/sandboxed-env.js +4 -0
  23. package/dist/sandbox/worker.js +21 -4
  24. package/dist/server/conversation-watch.js +49 -0
  25. package/dist/server/helpers.js +5 -5
  26. package/dist/server/host-bridge.js +6 -3
  27. package/dist/server/routes/admin.js +7 -36
  28. package/dist/server/routes/jobs.js +30 -1
  29. package/dist/server/routes/metrics.js +31 -7
  30. package/dist/server/routes/stream.js +6 -3
  31. package/dist/server/schema-fixture.js +59 -56
  32. package/dist/skills/index.js +1 -1
  33. package/node_modules/@sigrun/shared/CHANGELOG.md +8 -0
  34. package/node_modules/@sigrun/shared/dist/live.d.ts +25 -0
  35. package/node_modules/@sigrun/shared/dist/live.js +30 -0
  36. package/node_modules/@sigrun/shared/dist/views.d.ts +15 -0
  37. package/node_modules/@sigrun/shared/package.json +1 -1
  38. package/package.json +14 -14
  39. package/webui/dist/assets/{index-Bh9dImMT.js → index-B77MiI5E.js} +2 -2
  40. package/webui/dist/assets/index-BvOKatk4.css +1 -0
  41. package/webui/dist/index.html +2 -2
  42. package/dist/jobs/parked.js +0 -38
  43. package/webui/dist/assets/index-B3T0KKiX.css +0 -1
@@ -94,7 +94,22 @@ export interface ViewConversation {
94
94
  /** The upstream view, as the channel reads it. */
95
95
  export interface ConversationViewBase {
96
96
  readonly conversation: ViewConversation;
97
+ /**
98
+ * D1-A (the binding contract): `entries` is the conversation's
99
+ * append-only, fork-aware RAW HISTORY keyed by entry id — NEVER the
100
+ * model's context, and nothing in core cuts entries at a
101
+ * `pi.compaction`/`pi.reset` head marker. The server's watch window is
102
+ * pinned so it never slides (`FULL_HISTORY_WINDOW`), so this list only
103
+ * ever grows; head markers sit where they were written.
104
+ */
97
105
  readonly entries: readonly ViewEntry[];
106
+ /**
107
+ * ID of the entry just before the window (pi-durable 1.5.0's
108
+ * `ConversationView.before`). Absent under the server's full-history
109
+ * watch — the window always starts the transcript — but declared so a
110
+ * client folding a foreign/resumed view stays structurally sound.
111
+ */
112
+ readonly before?: number;
98
113
  /** Built-in conversation documents keyed by kind; absent documents are absent. */
99
114
  readonly docs: Readonly<Record<string, JsonObject>>;
100
115
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrun/shared",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "sigrun shared leaf package \u2014 theme tokens, turn/conversation shaping, and the channel wire types (pure leaf, zero dependencies)",
5
5
  "type": "module",
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrun/sigrun",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "Self-hosted, multi-user personal-assistant server",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,18 +39,18 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@aws-sdk/client-s3": "^3.1154.0",
42
- "@earendil-works/chord": "1.4.0",
43
- "@earendil-works/pi-ai": "1.4.0",
44
- "@earendil-works/pi-durable": "1.4.0",
42
+ "@earendil-works/chord": "1.5.0",
43
+ "@earendil-works/pi-ai": "1.5.0",
44
+ "@earendil-works/pi-durable": "1.5.0",
45
45
  "@earendil-works/pi-tui": "^1.3.0",
46
46
  "@fastify/static": "^10.1.7",
47
- "@sigrun/ext-codemode": "0.1.2",
48
- "@sigrun/ext-curator": "0.3.2",
49
- "@sigrun/ext-gateway": "0.1.20",
50
- "@sigrun/ext-mcp": "0.2.3",
51
- "@sigrun/ext-tool-search": "0.1.2",
52
- "@sigrun/oauth": "0.1.1",
53
- "@sigrun/shared": "0.10.1",
47
+ "@sigrun/ext-codemode": "0.1.3",
48
+ "@sigrun/ext-curator": "0.3.3",
49
+ "@sigrun/ext-gateway": "0.1.22",
50
+ "@sigrun/ext-mcp": "0.2.4",
51
+ "@sigrun/ext-tool-search": "0.1.3",
52
+ "@sigrun/oauth": "0.1.2",
53
+ "@sigrun/shared": "0.11.0",
54
54
  "croner": "^10.0.1",
55
55
  "fastify": "^5.12.7",
56
56
  "semver": "^7.8.5",
@@ -61,9 +61,9 @@
61
61
  "@sigrun/shared"
62
62
  ],
63
63
  "optionalDependencies": {
64
- "@sigrun/sandbox-linux-arm64": "0.10.1",
65
- "@sigrun/sandbox-linux-x64": "0.10.1",
66
- "@sigrun/tui": "0.10.1"
64
+ "@sigrun/sandbox-linux-arm64": "0.11.0",
65
+ "@sigrun/sandbox-linux-x64": "0.11.0",
66
+ "@sigrun/tui": "0.11.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@sigrun/memory-markdown": "file:../sigrun-memory-markdown",