@h-rig/run-worker 0.0.6-alpha.156 → 0.0.6-alpha.158

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 (47) hide show
  1. package/dist/src/autohost.d.ts +8 -10
  2. package/dist/src/autohost.js +683 -95
  3. package/dist/src/constants.d.ts +0 -1
  4. package/dist/src/constants.js +0 -2
  5. package/dist/src/extension.js +683 -95
  6. package/dist/src/host-kernel.d.ts +22 -0
  7. package/dist/src/host-kernel.js +78 -0
  8. package/dist/src/host.d.ts +2 -0
  9. package/dist/src/host.js +419 -0
  10. package/dist/src/index.d.ts +0 -6
  11. package/dist/src/index.js +1913 -133
  12. package/dist/src/local-run-changes.d.ts +3 -0
  13. package/dist/src/local-run-changes.js +65 -0
  14. package/dist/src/notifications.js +13 -5
  15. package/dist/src/notify-cap.d.ts +11 -0
  16. package/dist/src/notify-cap.js +13 -0
  17. package/dist/src/panel-plugin.js +3 -7
  18. package/dist/src/plugin.d.ts +0 -11
  19. package/dist/src/plugin.js +1910 -101
  20. package/dist/src/{runs → read-model-backend}/control.d.ts +0 -1
  21. package/dist/src/{runs → read-model-backend}/control.js +361 -38
  22. package/dist/src/{runs → read-model-backend}/diagnostics.d.ts +0 -1
  23. package/dist/src/{runs → read-model-backend}/diagnostics.js +1 -3
  24. package/dist/src/{runs → read-model-backend}/guard.js +2 -3
  25. package/dist/src/{runs → read-model-backend}/inbox.js +366 -36
  26. package/dist/src/{runs → read-model-backend}/index.js +552 -223
  27. package/dist/src/{runs → read-model-backend}/inspect.d.ts +0 -1
  28. package/dist/src/{runs → read-model-backend}/inspect.js +350 -34
  29. package/dist/src/{runs → read-model-backend}/projection.d.ts +21 -7
  30. package/dist/src/{runs → read-model-backend}/projection.js +349 -31
  31. package/dist/src/{runs → read-model-backend}/run-status.d.ts +6 -3
  32. package/dist/src/{runs → read-model-backend}/run-status.js +53 -33
  33. package/dist/src/{runs → read-model-backend}/stats.d.ts +0 -1
  34. package/dist/src/{runs → read-model-backend}/stats.js +373 -58
  35. package/dist/src/read-model-service.d.ts +2 -0
  36. package/dist/src/read-model-service.js +1433 -0
  37. package/dist/src/session-journal.d.ts +60 -0
  38. package/dist/src/session-journal.js +471 -0
  39. package/dist/src/stall.d.ts +8 -3
  40. package/dist/src/stall.js +0 -1
  41. package/dist/src/utils.js +282 -3
  42. package/package.json +9 -12
  43. package/dist/src/journal.d.ts +0 -33
  44. package/dist/src/journal.js +0 -31
  45. /package/dist/src/{runs → read-model-backend}/guard.d.ts +0 -0
  46. /package/dist/src/{runs → read-model-backend}/inbox.d.ts +0 -0
  47. /package/dist/src/{runs → read-model-backend}/index.d.ts +0 -0
@@ -1,14 +1,12 @@
1
1
  import type { ExtensionAPI, ExtensionContext, AgentEndEvent } from "@oh-my-pi/pi-coding-agent";
2
- import { type RigRunTimelineEntry, type RunInboxResolutionSentinel, type RunJournalProjection, type RunSessionCustomEntry } from "@rig/contracts";
3
- import { updateRunTaskSourceLifecycle } from "@rig/runtime/control-plane/tasks/source-lifecycle";
4
- import { type RegistryRunProjection } from "@rig/relay-registry";
2
+ import { type RigRunTimelineEntry, type RunInboxResolutionSentinel, type RunJournalProjection, type RunRegistryRunProjection, type RunSessionCustomEntry, type RunTaskSourceLifecycleOptions, type RunTaskSourceLifecycleRun, type RunTaskSourceLifecycleStatus, type TaskSourceLifecycleUpdateResult } from "@rig/contracts";
5
3
  export interface RunProcessWorkerHooks {
6
4
  readonly beforeAgentStart: () => void;
7
5
  readonly messageStart: () => void;
8
6
  readonly agentEnd: (event: AgentEndEvent) => Promise<void>;
9
7
  }
10
8
  export declare const REGISTRY_PROJECTION_TIMELINE_LIMIT = 100;
11
- type RunTaskSourceLifecycleUpdater = typeof updateRunTaskSourceLifecycle;
9
+ type RunTaskSourceLifecycleUpdater = (projectRoot: string, run: RunTaskSourceLifecycleRun, status: RunTaskSourceLifecycleStatus, summary: string, options?: RunTaskSourceLifecycleOptions) => Promise<TaskSourceLifecycleUpdateResult | null>;
12
10
  export declare function reflectStoppedRunTaskSource(input: {
13
11
  readonly projectRoot: string;
14
12
  readonly runId: string;
@@ -25,12 +23,12 @@ export declare function registryRunProjection(input: {
25
23
  readonly folded: RunJournalProjection;
26
24
  readonly entries: readonly RunSessionCustomEntry[];
27
25
  readonly title: string;
28
- readonly joinLink?: string | null;
29
- readonly webLink?: string | null;
30
- readonly relayUrl?: string | null;
31
- readonly sessionPath?: string | null;
32
- readonly timeline?: readonly RigRunTimelineEntry[];
33
- }): RegistryRunProjection;
26
+ readonly joinLink?: string | null | undefined;
27
+ readonly webLink?: string | null | undefined;
28
+ readonly relayUrl?: string | null | undefined;
29
+ readonly sessionPath?: string | null | undefined;
30
+ readonly timeline?: readonly RigRunTimelineEntry[] | undefined;
31
+ }): RunRegistryRunProjection;
34
32
  export declare function detectRunControlText(text: string, runId: string): {
35
33
  kind: "pause";
36
34
  } | {