@capybara-hq/kernel 0.1.0-rc.104 → 0.1.0-rc.106

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 (250) hide show
  1. package/dist/agents/agents.schemas.d.ts +9 -9
  2. package/dist/{schedules/schedules.controller.d.ts → automations/automations.controller.d.ts} +37 -32
  3. package/dist/{schedules/schedules.controller.js → automations/automations.controller.js} +68 -57
  4. package/dist/automations/automations.module.d.ts +16 -0
  5. package/dist/{schedules/schedules.module.js → automations/automations.module.js} +18 -15
  6. package/dist/{schedules/schedules.schemas.d.ts → automations/automations.schemas.d.ts} +151 -50
  7. package/dist/automations/automations.schemas.js +253 -0
  8. package/dist/{schedules/scheduled-tasks.service.d.ts → automations/automations.service.d.ts} +99 -52
  9. package/dist/{schedules/scheduled-tasks.service.js → automations/automations.service.js} +303 -134
  10. package/dist/{schedules → automations}/calendar.d.ts +8 -8
  11. package/dist/{schedules → automations}/calendar.js +2 -2
  12. package/dist/automations/effective-settings.d.ts +28 -0
  13. package/dist/automations/effective-settings.js +25 -0
  14. package/dist/automations/errors.d.ts +19 -0
  15. package/dist/automations/errors.js +19 -0
  16. package/dist/automations/events/coalesce.d.ts +28 -0
  17. package/dist/automations/events/coalesce.js +131 -0
  18. package/dist/automations/events/deadline.d.ts +10 -0
  19. package/dist/automations/events/deadline.js +24 -0
  20. package/dist/automations/events/dispatcher.d.ts +74 -0
  21. package/dist/automations/events/dispatcher.js +353 -0
  22. package/dist/automations/events/events.module.d.ts +7 -0
  23. package/dist/automations/events/events.module.js +26 -0
  24. package/dist/automations/events/guards.d.ts +32 -0
  25. package/dist/automations/events/guards.js +87 -0
  26. package/dist/automations/events/sweep.job.d.ts +49 -0
  27. package/dist/automations/events/sweep.job.js +202 -0
  28. package/dist/automations/events/token.d.ts +5 -0
  29. package/dist/automations/events/token.js +5 -0
  30. package/dist/automations/events/trigger-events.service.d.ts +47 -0
  31. package/dist/automations/events/trigger-events.service.js +254 -0
  32. package/dist/{schedules → automations}/fire.d.ts +57 -17
  33. package/dist/{schedules → automations}/fire.js +311 -79
  34. package/dist/{schedules → automations}/grant-rules.d.ts +1 -1
  35. package/dist/{schedules → automations}/grant-rules.js +5 -5
  36. package/dist/automations/job-ids.d.ts +113 -0
  37. package/dist/automations/job-ids.js +117 -0
  38. package/dist/{schedules → automations}/pause.d.ts +3 -3
  39. package/dist/{schedules → automations}/pause.js +3 -3
  40. package/dist/{schedules → automations}/run-tracker.d.ts +21 -10
  41. package/dist/{schedules → automations}/run-tracker.js +68 -56
  42. package/dist/{schedules → automations}/scan.job.d.ts +12 -8
  43. package/dist/{schedules → automations}/scan.job.js +39 -23
  44. package/dist/{schedules → automations}/schedule-math.d.ts +19 -12
  45. package/dist/{schedules → automations}/schedule-math.js +17 -7
  46. package/dist/{schedules → automations}/store.d.ts +57 -27
  47. package/dist/{schedules → automations}/store.js +102 -52
  48. package/dist/automations/store.module.d.ts +6 -0
  49. package/dist/{schedules → automations}/store.module.js +9 -9
  50. package/dist/automations/types.d.ts +178 -0
  51. package/dist/{schedules → automations}/unattended.d.ts +22 -11
  52. package/dist/{schedules → automations}/unattended.js +53 -30
  53. package/dist/catalog/marketplaces.service.d.ts +1 -1
  54. package/dist/channels/channels.module.js +3 -3
  55. package/dist/channels/outbound.d.ts +5 -5
  56. package/dist/channels/outbound.js +17 -17
  57. package/dist/channels/threads.d.ts +1 -1
  58. package/dist/channels/threads.js +1 -1
  59. package/dist/config/schema.d.ts +5 -1
  60. package/dist/config/schema.js +44 -6
  61. package/dist/conversations/approval-profile.d.ts +2 -2
  62. package/dist/conversations/approval-profile.js +3 -3
  63. package/dist/conversations/conversations.controller.d.ts +7 -1
  64. package/dist/conversations/conversations.controller.js +26 -10
  65. package/dist/conversations/conversations.service.d.ts +103 -25
  66. package/dist/conversations/conversations.service.js +138 -33
  67. package/dist/conversations/events.d.ts +48 -1
  68. package/dist/conversations/events.js +61 -9
  69. package/dist/conversations/message-context.d.ts +2 -2
  70. package/dist/conversations/message-context.js +1 -1
  71. package/dist/conversations/permission-profile-store.d.ts +2 -1
  72. package/dist/conversations/permission-profiles.controller.d.ts +3 -0
  73. package/dist/conversations/permission-profiles.service.js +1 -1
  74. package/dist/conversations/prompt-suggestion-request.d.ts +1 -1
  75. package/dist/conversations/prompt-suggestion-request.js +2 -1
  76. package/dist/conversations/queue.d.ts +7 -4
  77. package/dist/conversations/queue.js +6 -2
  78. package/dist/conversations/queue.service.d.ts +5 -5
  79. package/dist/conversations/queue.service.js +20 -14
  80. package/dist/ctx/create-ctx.d.ts +20 -1
  81. package/dist/ctx/create-ctx.js +59 -2
  82. package/dist/db/kernel-schema.d.ts +104 -25
  83. package/dist/devices/device-project-files.service.d.ts +88 -0
  84. package/dist/devices/device-project-files.service.js +249 -0
  85. package/dist/devices/device-projects.service.d.ts +40 -0
  86. package/dist/devices/device-projects.service.js +16 -13
  87. package/dist/devices/devices.controller.d.ts +9 -3
  88. package/dist/devices/devices.controller.js +27 -5
  89. package/dist/devices/devices.module.js +9 -1
  90. package/dist/devices/devices.schemas.js +6 -1
  91. package/dist/devices/dto.d.ts +15 -0
  92. package/dist/devices/dto.js +11 -0
  93. package/dist/devices/project-paths.d.ts +29 -0
  94. package/dist/devices/project-paths.js +66 -0
  95. package/dist/devices/project-rules.d.ts +5 -1
  96. package/dist/devices/project-rules.js +5 -1
  97. package/dist/errors.d.ts +47 -13
  98. package/dist/errors.js +47 -13
  99. package/dist/evals/reconstruct.d.ts +10 -1
  100. package/dist/evals/reconstruct.js +7 -0
  101. package/dist/extensions/host.d.ts +6 -1
  102. package/dist/extensions/host.js +10 -0
  103. package/dist/extensions/permission-set.d.ts +17 -1
  104. package/dist/extensions/permission-set.js +13 -1
  105. package/dist/extensions/permission-view.d.ts +1 -1
  106. package/dist/extensions/permission-view.js +4 -1
  107. package/dist/git/gateway.js +2 -2
  108. package/dist/handoff/app-schemes.d.ts +28 -0
  109. package/dist/handoff/app-schemes.js +41 -0
  110. package/dist/handoff/handoff-paths.d.ts +26 -0
  111. package/dist/handoff/handoff-paths.js +25 -0
  112. package/dist/handoff/handoff-tickets.d.ts +28 -0
  113. package/dist/handoff/handoff-tickets.js +111 -0
  114. package/dist/handoff/handoff.controller.d.ts +24 -0
  115. package/dist/handoff/handoff.controller.js +74 -0
  116. package/dist/handoff/handoff.module.d.ts +7 -0
  117. package/dist/handoff/handoff.module.js +26 -0
  118. package/dist/handoff/handoff.schemas.d.ts +13 -0
  119. package/dist/handoff/handoff.schemas.js +3 -0
  120. package/dist/handoff/handoff.service.d.ts +49 -0
  121. package/dist/handoff/handoff.service.js +96 -0
  122. package/dist/http/api.module.js +13 -5
  123. package/dist/http/meta.controller.d.ts +1 -0
  124. package/dist/http/meta.controller.js +7 -0
  125. package/dist/http/request-signal.d.ts +8 -0
  126. package/dist/http/request-signal.js +14 -0
  127. package/dist/identity/sso.controller.d.ts +30 -6
  128. package/dist/identity/sso.controller.js +51 -17
  129. package/dist/identity/sso.d.ts +10 -2
  130. package/dist/identity/sso.js +15 -3
  131. package/dist/inbox/inbox.module.js +2 -2
  132. package/dist/inbox/inbox.service.d.ts +8 -8
  133. package/dist/inbox/inbox.service.js +7 -7
  134. package/dist/infra/config/kernel-config.service.js +10 -5
  135. package/dist/infra/outbox/registry.d.ts +29 -2
  136. package/dist/infra/outbox/registry.js +30 -7
  137. package/dist/kernel.module.js +3 -0
  138. package/dist/orgs/roles.d.ts +1 -1
  139. package/dist/orgs/roles.js +3 -3
  140. package/dist/orgs/settings.controller.d.ts +1 -1
  141. package/dist/orgs/settings.service.d.ts +27 -11
  142. package/dist/orgs/settings.service.js +42 -24
  143. package/dist/overrides.d.ts +4 -4
  144. package/dist/overrides.js +1 -1
  145. package/dist/platform/exclusions.js +5 -0
  146. package/dist/platform/operation.js +2 -2
  147. package/dist/platform/ops/{schedules.ops.d.ts → automations.ops.d.ts} +4 -4
  148. package/dist/platform/ops/automations.ops.js +560 -0
  149. package/dist/platform/ops/connectors.ops.js +4 -2
  150. package/dist/platform/ops/devices.ops.d.ts +3 -1
  151. package/dist/platform/ops/devices.ops.js +77 -3
  152. package/dist/platform/ops/inbox.ops.js +4 -4
  153. package/dist/platform/ops/orgs.ops.js +1 -1
  154. package/dist/platform/ops/platform.ops.js +4 -4
  155. package/dist/platform/platform-ops.module.d.ts +2 -2
  156. package/dist/platform/platform-ops.module.js +5 -5
  157. package/dist/platform/route-schemas.js +3 -3
  158. package/dist/push/jobs.d.ts +3 -3
  159. package/dist/push/jobs.js +2 -2
  160. package/dist/push/preferences.service.js +1 -1
  161. package/dist/push/push-owed.d.ts +3 -3
  162. package/dist/push/push-owed.js +6 -6
  163. package/dist/push/push.schemas.d.ts +4 -4
  164. package/dist/push/push.schemas.js +3 -3
  165. package/dist/push/recipients.d.ts +4 -4
  166. package/dist/push/recipients.js +23 -23
  167. package/dist/push/texts.d.ts +3 -3
  168. package/dist/push/texts.js +2 -2
  169. package/dist/push/triggers.d.ts +1 -1
  170. package/dist/roles/worker.module.js +3 -3
  171. package/dist/runtime/compaction.service.d.ts +3 -1
  172. package/dist/runtime/compaction.service.js +3 -1
  173. package/dist/runtime/context/build.d.ts +6 -0
  174. package/dist/runtime/context/build.js +14 -3
  175. package/dist/runtime/context/compaction.d.ts +27 -1
  176. package/dist/runtime/context/compaction.js +102 -37
  177. package/dist/runtime/context/run-context.d.ts +38 -0
  178. package/dist/runtime/context/run-context.js +54 -0
  179. package/dist/runtime/maintenance.d.ts +8 -4
  180. package/dist/runtime/maintenance.js +37 -16
  181. package/dist/runtime/model-call.d.ts +6 -4
  182. package/dist/runtime/model-call.js +17 -7
  183. package/dist/runtime/project/knowledge.service.d.ts +16 -7
  184. package/dist/runtime/project/knowledge.service.js +31 -13
  185. package/dist/runtime/run-finish.d.ts +4 -4
  186. package/dist/runtime/run-finish.js +3 -3
  187. package/dist/runtime/run-queue.js +12 -7
  188. package/dist/runtime/run-worker.js +7 -1
  189. package/dist/runtime/runtime.module.js +3 -3
  190. package/dist/runtime/subagents/dispatch.js +11 -3
  191. package/dist/sandbox/browse-roots.d.ts +8 -0
  192. package/dist/sandbox/browse-roots.js +22 -0
  193. package/dist/sandbox/network-grants.d.ts +4 -4
  194. package/dist/sandbox/network-grants.js +7 -7
  195. package/dist/sandbox/operation-authority.d.ts +10 -3
  196. package/dist/sandbox/operation-authority.js +20 -10
  197. package/dist/sandbox/operation-intents.d.ts +3 -1
  198. package/dist/sandbox/operation-intents.js +11 -4
  199. package/dist/sandbox/permission-call-grants.js +2 -2
  200. package/dist/sandbox/permission-facts.js +1 -1
  201. package/dist/sandbox/review/classifier.d.ts +2 -2
  202. package/dist/sandbox/review/classifier.js +22 -11
  203. package/dist/sandbox/review/permission-candidate.d.ts +1 -1
  204. package/dist/sandbox/review/permission-candidate.js +1 -1
  205. package/dist/sandbox/sandbox.service.d.ts +15 -5
  206. package/dist/sandbox/sandbox.service.js +14 -8
  207. package/dist/storage/purge.d.ts +1 -1
  208. package/dist/storage/purge.js +2 -2
  209. package/dist/tools/approvals.service.d.ts +6 -6
  210. package/dist/tools/approvals.service.js +19 -19
  211. package/dist/tools/builtin-names.d.ts +12 -12
  212. package/dist/tools/builtin-names.js +29 -29
  213. package/dist/tools/builtins/{schedules.d.ts → automations.d.ts} +35 -33
  214. package/dist/tools/builtins/{schedules.js → automations.js} +236 -105
  215. package/dist/tools/builtins/builtin-tools.d.ts +8 -8
  216. package/dist/tools/builtins/builtin-tools.js +16 -16
  217. package/dist/tools/call-scope.d.ts +1 -1
  218. package/dist/tools/connectors.service.d.ts +4 -13
  219. package/dist/tools/connectors.service.js +12 -21
  220. package/dist/tools/git-asks.js +1 -1
  221. package/dist/tools/git-push-policy.d.ts +3 -3
  222. package/dist/tools/git-push-policy.js +6 -6
  223. package/dist/tools/network-asks.d.ts +3 -3
  224. package/dist/tools/network-asks.js +3 -3
  225. package/dist/tools/oauth/flow.d.ts +16 -2
  226. package/dist/tools/oauth/flow.js +23 -4
  227. package/dist/tools/oauth/oauth.controller.d.ts +19 -7
  228. package/dist/tools/oauth/oauth.controller.js +42 -12
  229. package/dist/tools/oauth/oauth.schemas.d.ts +14 -1
  230. package/dist/tools/oauth/oauth.schemas.js +4 -1
  231. package/dist/tools/pipeline.d.ts +4 -4
  232. package/dist/tools/pipeline.js +2 -2
  233. package/dist/tools/policy.d.ts +3 -3
  234. package/dist/tools/policy.js +3 -3
  235. package/dist/tools/tools.module.js +9 -9
  236. package/package.json +3 -3
  237. package/src/migrations/0188_automations_rename.sql +309 -0
  238. package/src/migrations/0189_event_automations.sql +136 -0
  239. package/dist/platform/ops/schedules.ops.js +0 -509
  240. package/dist/schedules/effective-settings.d.ts +0 -22
  241. package/dist/schedules/effective-settings.js +0 -18
  242. package/dist/schedules/errors.d.ts +0 -8
  243. package/dist/schedules/errors.js +0 -8
  244. package/dist/schedules/job-ids.d.ts +0 -81
  245. package/dist/schedules/job-ids.js +0 -95
  246. package/dist/schedules/schedules.module.d.ts +0 -16
  247. package/dist/schedules/schedules.schemas.js +0 -213
  248. package/dist/schedules/store.module.d.ts +0 -6
  249. package/dist/schedules/types.d.ts +0 -110
  250. /package/dist/{schedules → automations}/types.js +0 -0
@@ -11,15 +11,15 @@ import { OutboxService } from "../infra/outbox/outbox.service.js";
11
11
  import type { KernelLogger } from "../log.js";
12
12
  import { OrgLock } from "../orgs/org-lock.js";
13
13
  import { DeviceProviders } from "../sandbox/providers.js";
14
- import { type SchedSettleJobData } from "./job-ids.js";
15
- import { ScheduledTaskRunTracker } from "./run-tracker.js";
16
- import { ScheduledTaskStore } from "./store.js";
14
+ import { type AutomationSettleJobData } from "./job-ids.js";
15
+ import { AutomationRunTracker } from "./run-tracker.js";
16
+ import { AutomationStore } from "./store.js";
17
17
  /** A task run's message client id in a conversation's queue (never read back as "the task's"). */
18
- export declare const scheduledClientMessageId: (taskRunId: string) => string;
18
+ export declare const automationClientMessageId: (taskRunId: string) => string;
19
19
  /** The tick in the task's zone as the run's header shows it: `2026-11-11 09:00 (Asia/Shanghai)`. */
20
20
  export declare function localTimeOf(at: Date, timeZone: string): string;
21
21
  /**
22
- * Checks and starts one task run (scheduled tasks spec §6), the body of the `sched-fire-<id>` job.
22
+ * Checks and starts one task run (scheduled tasks spec §6), the body of the `automation-fire-<id>` job.
23
23
  * Idempotent on the task run: only a `pending` one is fired. Two steps:
24
24
  *
25
25
  * 1. The claim, one transaction under the org row lock (which serializes the org's rate limit
@@ -29,19 +29,25 @@ export declare function localTimeOf(at: Date, timeZone: string): string;
29
29
  * gone or not visible, conversation gone, connection inactive or its extension disabled in the
30
30
  * org, overlap, rate limit, device offline, queue paused), each a `skipped` run with its reason,
31
31
  * the lasting ones also pausing the task; then `fired_at` is written, after the rate limit count,
32
- * with the run's delayed settle check owed (`sched-settle`, {@link settle}).
32
+ * with the run's delayed settle check owed (`automation-settle`, {@link settle}).
33
33
  * A run whose claim committed before (a retried job) goes straight to the start.
34
34
  * 2. The start, idempotent: `new` creates the conversation with its first message keyed by the
35
35
  * task run id (`create_request_id`); `conversation` queues the prompt in the target
36
36
  * conversation's queue (never absorbed into a run in progress); `chat` finds the DM's live
37
37
  * thread or creates and binds a conversation (one transaction), then queues the prompt there;
38
38
  * a group chat gets a new conversation per run whose thread outbound binds at the run's first
39
- * post (`openGroup`). A start that finds the target gone takes `fired_at` back and skips the run.
39
+ * post (`openGroup`); `subject` finds the subject's conversation (`automation_conversations`)
40
+ * or creates and maps one (one transaction, `bindSubject`), then queues the prompt there. A
41
+ * start that finds the target gone takes `fired_at` back and skips the run.
40
42
  *
41
- * Every message carries the schedule marker and the task's zone; the kernel run its message
42
- * triggers takes the task run (`linkStartedRunIn`), and the run tracker follows it to its end.
43
+ * A time run's message carries the schedule marker and the task's zone; an event run's carries
44
+ * the event marker (its events, from `automation_event_deliveries`; collaboration spec §4.6). The
45
+ * kernel run its message triggers takes the task run (`linkStartedRunIn`), and the run tracker
46
+ * follows it to its end. An event run skips the overlap check (its events would be lost): a `new`
47
+ * run gets its own conversation, and a `conversation` or `subject` run is queued into its
48
+ * conversation, whose queue serializes the runs. The rate limit counts the owner's runs.
43
49
  */
44
- export declare class ScheduledTaskFirer {
50
+ export declare class AutomationFirer {
45
51
  private readonly kdb;
46
52
  readonly txHost: TransactionHost;
47
53
  private readonly config;
@@ -60,7 +66,7 @@ export declare class ScheduledTaskFirer {
60
66
  private readonly log;
61
67
  /** The claim owes the run's settle check (ruling R26). */
62
68
  private readonly outbox;
63
- constructor(kdb: KernelDb, txHost: TransactionHost, config: Pick<KernelConfigService, "get">, store: ScheduledTaskStore, tracker: Pick<ScheduledTaskRunTracker, "inFlightIn" | "failStartIn">, orgLock: Pick<OrgLock, "tryLock">, agents: Pick<AgentLookup, "get">, access: Pick<ConversationAccess, "isAccessible">, conversations: Pick<ConversationsService, "createWithMessage" | "create">, queue: Pick<ConversationQueue, "add">, connections: Pick<ChannelConnections, "row" | "channel">,
69
+ constructor(kdb: KernelDb, txHost: TransactionHost, config: Pick<KernelConfigService, "get">, store: AutomationStore, tracker: Pick<AutomationRunTracker, "inFlightIn" | "failStartIn">, orgLock: Pick<OrgLock, "tryLock">, agents: Pick<AgentLookup, "get">, access: Pick<ConversationAccess, "isAccessible">, conversations: Pick<ConversationsService, "createWithMessage" | "create">, queue: Pick<ConversationQueue, "add">, connections: Pick<ChannelConnections, "row" | "channel">,
64
70
  /** Whether a dial-in device's machine is connected now. */
65
71
  relay: Pick<DialInRelay, "online">,
66
72
  /** Each device's provider (whether it serves its devices over the dial-in channel). */
@@ -71,7 +77,7 @@ export declare class ScheduledTaskFirer {
71
77
  /** Fires task run `taskRunId` (see the class); a run not `pending` is left as it is. */
72
78
  fire(taskRunId: string): Promise<void>;
73
79
  /**
74
- * The `sched-settle` job (ruling R26; `job-ids.ts`). The claimed check: a task run claimed
80
+ * The `automation-settle` job (ruling R26; `job-ids.ts`). The claimed check: a task run claimed
75
81
  * (`fired_at`) and still `pending` goes through the run tracker's check, which links it to its
76
82
  * run, settles it, or releases a run that left no trace (`skipped`, `removed`), so a `once`
77
83
  * task's last run never stays pending; one still in flight (its item queued, its message posted)
@@ -80,27 +86,61 @@ export declare class ScheduledTaskFirer {
80
86
  * a "run now", so the overlap check never waits on it. A run claimed, started, ended or skipped
81
87
  * since is left as it is (the claimed check follows a claimed run).
82
88
  */
83
- settle(data: SchedSettleJobData): Promise<void>;
89
+ settle(data: AutomationSettleJobData): Promise<void>;
84
90
  /** The unfired check (see {@link settle}), task row first (the one lock order). */
85
91
  private settleUnfired;
86
92
  /** Step 1 (see the class): a skip, the plan, or null when there is nothing to fire. */
87
93
  private claim;
94
+ /** The marker a run's message carries: the event marker, or the schedule marker and zone. */
95
+ private markerOf;
88
96
  /** Step 2 (see the class). */
89
97
  private start;
90
98
  /**
91
99
  * The DM's live conversation, or a new one bound to it (`findOrBindThread`), in one transaction:
92
- * a conversation it creates is the task's (`conversations.scheduled_task_id`). Null when the
100
+ * a conversation it creates is the task's (`conversations.automation_id`). Null when the
93
101
  * live conversation's queue is paused (the run is skipped, `queue_paused`).
94
102
  */
95
103
  private bindChat;
96
104
  /**
97
105
  * A group run's conversation (spec §8): a new one per run, the task's
98
- * (`conversations.scheduled_task_id`), whose delivery goes to the group with its thread still to
106
+ * (`conversations.automation_id`), whose delivery goes to the group with its thread still to
99
107
  * bind (`channel_deliveries.pending_thread_account_id` = the creator): outbound binds it at the
100
108
  * run's first post, thread key = that message's id, so replies in that thread continue the
101
109
  * conversation. One transaction; a retried start reuses the conversation it made before.
102
110
  */
103
111
  private openGroup;
112
+ /**
113
+ * A subject run's conversation (collaboration spec §4.5), in one transaction under the task row
114
+ * lock (so two runs of one subject never create two): the conversation `automation_conversations`
115
+ * maps the subject to, when it is still live, the owner's chat with the task's agent and
116
+ * accessible; else a new one, the task's (`conversations.automation_id`) with
117
+ * `conversations.subject` set, whose mapping replaces the stale one (the mapping has no foreign
118
+ * key: a deleted conversation leaves it behind). Null when the run is no longer pending or the
119
+ * mapped conversation's queue is paused (the run is skipped, `queue_paused`). A retried start
120
+ * reuses the conversation the run already recorded. `fresh`: the conversation has no message
121
+ * yet, logged or queued by another run (just created, or created by a start that stopped
122
+ * before its message), so this run's message carries the task's model and effort.
123
+ */
124
+ private bindSubject;
125
+ /**
126
+ * Conversation `conversationId` has no event yet (`last_seq` 0) and no queued message other
127
+ * than task run `runId`'s own (see {@link bindSubject}).
128
+ */
129
+ private noMessageYet;
130
+ /**
131
+ * The live conversation `automation_conversations` maps a subject of the task to (see
132
+ * {@link bindSubject}), or undefined: no mapping, or its conversation is gone, deleted, no
133
+ * longer the owner's chat with the task's agent, or not accessible.
134
+ */
135
+ private subjectConversation;
136
+ /**
137
+ * An event run's marker (collaboration spec §4.6): the events its deliveries name, in the order
138
+ * they were stored (the coalescer's order), each with its type, subject and summary; past
139
+ * {@link AUTOMATION_EVENT_HEAD} + {@link AUTOMATION_EVENT_TAIL} events only the first and the
140
+ * latest, the rest counted (`omittedEvents`; every delivery stays bound to the run); undefined
141
+ * when it has none.
142
+ */
143
+ private eventMarkerOf;
104
144
  /** The start found the target gone: `fired_at` back to null, skipped with `reason`. */
105
145
  private unstart;
106
146
  /**
@@ -140,7 +180,7 @@ export declare class ScheduledTaskFirer {
140
180
  }
141
181
  /**
142
182
  * The fire job and the scanner, worker only: imported by `MaintenanceModule` (which dispatches
143
- * `sched-fire`) and `WorkerModule` (the scan's `@LockedCron`), never by another role.
183
+ * `automation-fire`) and `WorkerModule` (the scan's `@LockedCron`), never by another role.
144
184
  */
145
- export declare class ScheduledTaskFireModule {
185
+ export declare class AutomationFireModule {
146
186
  }