omp-superagent 0.1.17 → 0.1.18
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.
- package/DESIGN.md +15 -12
- package/config.example.json +4 -1
- package/docs/OPERATIONS.en.md +78 -29
- package/docs/OPERATIONS.md +59 -20
- package/docs/design/execution.md +30 -15
- package/docs/design/messaging.md +126 -43
- package/docs/releases/0.1.18.md +10 -0
- package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
- package/gateway/bin/omp-gateway-darwin-x64 +0 -0
- package/gateway/bin/omp-gateway-linux-arm64 +0 -0
- package/gateway/bin/omp-gateway-linux-x64 +0 -0
- package/package.json +1 -1
- package/skills/head/SKILL.md +2 -2
- package/skills/head/references/routing.md +17 -6
- package/src/config/config.ts +15 -0
- package/src/contracts.ts +46 -3
- package/src/cron/cron-jobs.ts +135 -92
- package/src/cron/cron-pr-intake.ts +18 -11
- package/src/extension.ts +15 -5
- package/src/gateway/gateway-client.ts +3 -1
- package/src/lane/workflow.ts +12 -6
- package/src/managed-super-probe.ts +21 -15
- package/src/messaging/messenger-command-catalog.json +1 -1
- package/src/messaging/messenger-commands.ts +8 -3
- package/src/messaging/slack-context.ts +50 -0
- package/src/omp/superkit-skills.ts +15 -2
- package/src/pr/pr-intake-order.ts +62 -0
- package/src/pr/pr-intake-review.ts +49 -31
- package/src/pr/pr-intake-work.ts +3 -2
- package/src/routing/message-order.ts +22 -1
- package/src/routing/topic-request.ts +41 -0
- package/src/runtime/controller.ts +461 -178
- package/src/runtime/deferred-routing.ts +12 -4
- package/src/runtime/dm-timeline.ts +3 -3
- package/src/storage/deferred-routing.ts +25 -4
- package/src/storage/store.ts +367 -50
package/docs/design/messaging.md
CHANGED
|
@@ -65,6 +65,16 @@ receipt keeps its original place relative to slash commands. A distinct history
|
|
|
65
65
|
revision of that pending message stays in the durable inbox after the original,
|
|
66
66
|
where it can inherit the original physical route and logical topic. Already
|
|
67
67
|
admitted inputs and their external effects are not executed again.
|
|
68
|
+
When Slack packet normalization changes, the Gateway matches exact retained
|
|
69
|
+
receipts from Gateway or HEAD (including deferred routing) before admitting a
|
|
70
|
+
new projection. Legacy `!usage-reset` text and attachment-based revision IDs
|
|
71
|
+
do not authorize another effect. If a Gateway receipt was lost after HEAD
|
|
72
|
+
persisted a message or edit, the pending event keeps that retained clock on
|
|
73
|
+
retransmission. Only the two exact old and current JSON representations derived
|
|
74
|
+
from the same verified Slack timestamp are equivalent; a different payload is
|
|
75
|
+
not. Slack broadcast events are references; only the exact owning reply can
|
|
76
|
+
establish its text and attachment evidence. A temporary Slack lookup failure
|
|
77
|
+
does not acknowledge an unverified broadcast as consumed.
|
|
68
78
|
|
|
69
79
|
### Account presence
|
|
70
80
|
|
|
@@ -174,14 +184,19 @@ and logical topics) queue behind it; other conversations are not held. A
|
|
|
174
184
|
redelivery of a queued input shares the store's immutable-payload and signed
|
|
175
185
|
attachment URL reconciliation. Fresh `/restart`, `/stop head`, and
|
|
176
186
|
`/stop <exact authorized lane-id>` bypass deferred waiting, including after
|
|
177
|
-
restart. A bare `/stop` bypasses failing admission only
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
187
|
+
restart. A bare `/stop` (`!stop` in Slack) bypasses failing admission only in an
|
|
188
|
+
already-bound physical Discord or Slack work thread, and only if the message does
|
|
189
|
+
not reference another target. On Slack, the thread's root can be a placement
|
|
190
|
+
receipt, so it must not resolve to a workspace question, a separate placement
|
|
191
|
+
or an unverified target. Bare DM and reply-relative stops wait for earlier
|
|
192
|
+
routing, rather than choosing today's apparent target; edits cannot acquire
|
|
193
|
+
priority. Global HEAD stops and
|
|
181
194
|
lane-specific stops snapshot receipt order across both queues. A later resume
|
|
182
195
|
waits for an older deferred stop of that exact lane without being cancelled by
|
|
183
|
-
it; other lanes' work is independent. A pending queued
|
|
184
|
-
|
|
196
|
+
it; other lanes' work is independent. A pending queued choice, including a Slack
|
|
197
|
+
message with fractional milliseconds, fences the automatic history choice like
|
|
198
|
+
an unreceipted Gateway event. Only a delivered question with actual historical
|
|
199
|
+
candidates starts a timer; an empty or failed lookup does not authorize work. A
|
|
185
200
|
failed admission stays first in its conversation and is retried with bounded
|
|
186
201
|
backoff; a permanent denial is dropped. The queue survives a restart and resumes
|
|
187
202
|
in order once intake is ready. On first opening an older store, HEAD migrates the
|
|
@@ -226,7 +241,7 @@ before the foreign completion is still sent to its own conversation. If a
|
|
|
226
241
|
native batch cannot be split by origin, only individually identified job
|
|
227
242
|
receipts are sent.
|
|
228
243
|
|
|
229
|
-
Same-conversation Discord HEAD steers
|
|
244
|
+
Same-conversation Discord and Slack HEAD steers share one final answer. When the
|
|
230
245
|
native session has observed a steer before that answer and completed its
|
|
231
246
|
correlated prompt, the controller records its physical source with the answer.
|
|
232
247
|
The opening request may be a Discord application command with no physical
|
|
@@ -235,9 +250,13 @@ prove that a joined message was answered, even in the same topic. A clean
|
|
|
235
250
|
answer observed before that input can still provide proof if selected for
|
|
236
251
|
delivery. An observed job launched in a continuation proved by a completion
|
|
237
252
|
from the same request can contribute to its answer.
|
|
238
|
-
Once
|
|
239
|
-
|
|
240
|
-
|
|
253
|
+
Once the messenger confirms the answer's message ID, the outbox queues a short
|
|
254
|
+
notice for each distinct joined message. Discord replies to that exact input.
|
|
255
|
+
Slack verifies the original owner and bot answer in the same physical route and
|
|
256
|
+
links to both using `chat.getPermalink`. A confirmed rate limit before the notice
|
|
257
|
+
was posted leaves it pending until the provider's retry delay, for up to two
|
|
258
|
+
retries. An uncertain post is not retried. A missing or unverifiable source
|
|
259
|
+
cannot fall back to an unanchored notice. This does not duplicate the answer or claim that each
|
|
241
260
|
request's work succeeded. An uncertain or failed answer send does not produce
|
|
242
261
|
a link.
|
|
243
262
|
|
|
@@ -309,15 +328,16 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
309
328
|
evidence from the owner's request and context to discover and verify a directory
|
|
310
329
|
before dispatch. It asks a focused question only if a material ambiguity remains.
|
|
311
330
|
Neither a default repository nor the last active lane or chat is evidence of
|
|
312
|
-
intent. If the original route is an unbound Discord thread, use that thread for
|
|
331
|
+
intent. If the original route is an unbound Discord or Slack thread, use that thread for
|
|
313
332
|
any assigned work; create a sibling only on explicit request.
|
|
314
333
|
An implicit workspace question left over from an older release is not a
|
|
315
334
|
session binding. A follow-up can reference a single unstarted request in its
|
|
316
|
-
current Discord thread or DM, or by replying to the exact sent question
|
|
335
|
+
current Discord or Slack thread or DM, or by replying to the exact sent question
|
|
317
336
|
(including its Slack root timestamp). Submission rechecks that it is still
|
|
318
337
|
awaiting placement; neither its excerpt nor hints based on it are reused
|
|
319
338
|
after placement or cancellation. An exact workspace selection still answers
|
|
320
|
-
the original question without replay.
|
|
339
|
+
the original question without replay. A terminal notice for an invalid or
|
|
340
|
+
mismatched directory is not a selectable workspace question.
|
|
321
341
|
- Where there are eligible managed sessions, ordinary HEAD routing automatically
|
|
322
342
|
checks relevant original owner text against scoped Mnemopi recall and a bounded
|
|
323
343
|
search of authorized native journals. The read-only pass adds only matching
|
|
@@ -333,12 +353,35 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
333
353
|
- Explicit `cwd: /absolute/path`, `/new` with a task, an exact reply to a placed
|
|
334
354
|
original or its delivered message with a verified workspace, and intentional
|
|
335
355
|
historical lookup use controller placement. Invalid explicit cwd is rejected,
|
|
336
|
-
not sent to HEAD as ordinary input.
|
|
337
|
-
|
|
356
|
+
not sent to HEAD as ordinary input. In Slack a verified leading mention of
|
|
357
|
+
this bot can precede `cwd:`, a plain thread split, or a historical continuation.
|
|
358
|
+
Only placement and lookup omit that address; it does not change the original
|
|
359
|
+
receipt or authorize a written control or workflow selector. A workspace
|
|
360
|
+
header or written choice decodes Slack path entities once. A new topic may
|
|
361
|
+
reuse a workspace, never another topic's transcript. The quote body is not placement evidence; `/new`
|
|
338
362
|
in a bound thread can reuse that thread's workspace. When explicit placement
|
|
339
363
|
needs workspace clarification, a known name or absolute path selects just one
|
|
340
364
|
pending original on its original route. Neither an edited confirmation nor a
|
|
341
|
-
stale answer becomes another task. A Slack reply uses the sent
|
|
365
|
+
stale answer becomes another task. A Slack channel-root reply uses the sent
|
|
366
|
+
question's root timestamp; a plausible reply or bare `!stop` can wait for
|
|
367
|
+
that exact receipt even when a slash invocation has no message timestamp or
|
|
368
|
+
a DM request has a logical topic ID. A
|
|
369
|
+
separate top-level Slack message is not a reply to the question. Within an
|
|
370
|
+
existing Slack thread, a written
|
|
371
|
+
`!choose <source-ts> <answer>` names the exact delivered question without
|
|
372
|
+
routing to another thread or guessing among outstanding questions. An explicit
|
|
373
|
+
answer must physically follow the final post of the question and be authored
|
|
374
|
+
no later than the deadline when the question has one. A number, a known
|
|
375
|
+
workspace name, a bare absolute path, or a `cwd:`-only answer to a single
|
|
376
|
+
threaded question uses the same physical post order. While the receipt is
|
|
377
|
+
in flight, HEAD retains these answers without applying them to an
|
|
378
|
+
unconfirmed post. On a lost IPC reply or startup it can recover the exact
|
|
379
|
+
completed, same-route Gateway send before consuming the answer. A history
|
|
380
|
+
question's deadline starts from its final Slack post, independent of when
|
|
381
|
+
HEAD obtains the receipt. It does not resend the question for proof. A timely
|
|
382
|
+
answer can hold automatic fallback from the durable queues. A bare number can be
|
|
383
|
+
ambiguous near an expired question, but that question no longer competes with
|
|
384
|
+
a later question or claims unrelated numbers indefinitely.
|
|
342
385
|
- A retrospective request with a task description can search previous managed native
|
|
343
386
|
sessions across the configured owner's currently allowed channels. Search the
|
|
344
387
|
operator's text, not reply bodies, pasted commands or attachments. Telegram
|
|
@@ -366,11 +409,11 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
366
409
|
journal. Recheck the prior identity, work state, entry and pinned evidence
|
|
367
410
|
digest before native submission, without searching mutable memory again;
|
|
368
411
|
historical text cannot start workflows or approve effects.
|
|
369
|
-
Outside a bound Discord work thread, a new request with a different explicit
|
|
412
|
+
Outside a bound Discord or Slack work thread, a new request with a different explicit
|
|
370
413
|
workspace can start a separate topic. `/new` with a request in a thread starts
|
|
371
414
|
a separate topic instead of changing a lane's cwd. A closed lane or an
|
|
372
415
|
uncertain receipt is not reopened by ordinary input.
|
|
373
|
-
- In an already-bound
|
|
416
|
+
- In an already-bound native Discord or Slack work thread, work and replies stay in the
|
|
374
417
|
current thread. A historical match contributes only verified, pinned evidence
|
|
375
418
|
to the current lane, not a handoff to a different session or workspace. Ask
|
|
376
419
|
about ambiguous matches in that same thread and honor a timely choice. For
|
|
@@ -379,7 +422,7 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
379
422
|
from the current session, then a verified candidate in the same cwd by recency.
|
|
380
423
|
If none remains eligible, continue with the current lane context. This timeout
|
|
381
424
|
does not approve effects or authorize cross-workspace execution.
|
|
382
|
-
- A different `cwd:` in a bound Discord work thread does not change its lane or
|
|
425
|
+
- A different `cwd:` in a bound Discord or Slack work thread does not change its lane or
|
|
383
426
|
open a sibling automatically. To separate work, send `/new <request>` or a
|
|
384
427
|
direct, one-line split request, e.g. `이건 따로 빼줘: 로그인 점검`,
|
|
385
428
|
`로그인 점검은 새 스레드에서 해줘`, `Split this into a new thread: Check login`,
|
|
@@ -387,9 +430,18 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
387
430
|
`이건 따로 빼줘` or `Split this into a new thread`, the controller asks them to
|
|
388
431
|
name the task with `/new` instead of creating a topic. Natural split
|
|
389
432
|
directives preserve an explicit `cwd:` header, including spaces inside path
|
|
390
|
-
quotes. They apply only to original owner messages in
|
|
391
|
-
threads, not edits, quoted text or attachments.
|
|
392
|
-
|
|
433
|
+
quotes. They apply only to original owner messages in native Discord or Slack
|
|
434
|
+
work threads, not edits, quoted text or attachments. When Slack removes a
|
|
435
|
+
verified bot address, rich formatting in the task after the split directive
|
|
436
|
+
remains task data. A verified `cwd:` header alone does not attest the split
|
|
437
|
+
directive or a workflow selector on the next line, including after `!new`.
|
|
438
|
+
An unverified task body is presented to the model as task data inside the
|
|
439
|
+
native context fence rather than passed to OMP's magic-keyword matcher. If blocks are present,
|
|
440
|
+
the raw fallback text cannot supply an address that the blocks do not attest.
|
|
441
|
+
Slack splits and workspace answers must have matching written-body
|
|
442
|
+
evidence from Gateway, with or without an address; old receipts are
|
|
443
|
+
not reinterpreted or upgraded on redelivery. Slack uses `!new` as
|
|
444
|
+
its text command. Ordinary DM context selection is unchanged.
|
|
393
445
|
- `/new` and plain split directives keep the source parent. With operator opt-in,
|
|
394
446
|
HEAD may select a different native parent for an original authorized owner
|
|
395
447
|
request via `lane_start`. The default `"allowlist"` scope requires the
|
|
@@ -402,10 +454,13 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
402
454
|
The grant permits work delivery, not text or command intake or history
|
|
403
455
|
recovery; approvals remain on the original allowed route. The source receives
|
|
404
456
|
one placement notice; progress and final work reports use the work thread.
|
|
457
|
+
Slack's separate `allowCrossChannelThreads` opt-in only permits another
|
|
458
|
+
allowlisted channel in the same workspace and authenticated account, where the
|
|
459
|
+
bot is a member. The exact verified starter `ts` is the thread identity.
|
|
405
460
|
- `/head <request>` explicitly addresses the shared coordination model (Slack:
|
|
406
461
|
`!head` or `/superagent-head`). Manager handoffs keep HEAD's review path.
|
|
407
|
-
When HEAD selects an existing
|
|
408
|
-
authorized
|
|
462
|
+
When HEAD selects an existing native Discord or Slack work thread from its exact
|
|
463
|
+
authorized parent, that thread is the handoff's progress and final
|
|
409
464
|
report route. An opening `lane_start` requires its confirmed kickoff in
|
|
410
465
|
that thread; an explicit `lane_message` pins the route on admission.
|
|
411
466
|
This applies equally to local and enrolled SSH lanes. It does not
|
|
@@ -422,7 +477,11 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
422
477
|
quoted text do not become global settings changes.
|
|
423
478
|
- Thread-first work sends a short kickoff to the selected topic. The durable
|
|
424
479
|
`sent` receipt gates new lane dispatch and steering for that input. A missing
|
|
425
|
-
or uncertain delivery is not a successful kickoff.
|
|
480
|
+
or uncertain delivery is not a successful kickoff. A pending Slack kickoff
|
|
481
|
+
behind a proven preflight rate limit keeps the original placement pending,
|
|
482
|
+
not uncertain. An ordered restart acknowledgement on the same route waits
|
|
483
|
+
without blocking unrelated delivery; only its sent receipt authorizes the
|
|
484
|
+
restart handoff. A later explicit HEAD stop still supersedes that wait.
|
|
426
485
|
- `/new` selects a fresh logical topic in an eligible private conversation.
|
|
427
486
|
With no request it does not start a lane or model turn. `/main` changes future
|
|
428
487
|
input context without altering previous bindings, approvals or work. Topic
|
|
@@ -470,7 +529,7 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
|
|
|
470
529
|
| --- | --- |
|
|
471
530
|
| Discord | Ordinary `/...` messages and explicitly registered application commands share authorized ingress. Interactions have an `interactionId` and no message ID; do not use them for history, reactions, fetch, thread sources or replies, or persist response tokens. Server text/announcement channels support threads; forum/media posts can require exact tag IDs. DMs use logical topics. |
|
|
472
531
|
| Telegram | Ordinary slash messages and owner-scoped menus keep real message IDs. Normalize only actual bot-command entities addressed to this bot; ignore commands addressed to other bots. Native topics require eligible forum supergroups or topic-enabled private chat; group topic creation needs the granted capability. |
|
|
473
|
-
| Slack | Ordinary `!...` messages and registered `/superagent-*` commands use Socket Mode. Slash commands have no message `ts`: deduplicate with a token-free scoped invocation fingerprint; anchor topic boundaries to the last durably admitted real owner message and use admission order on the same anchor. Do not persist trigger/response tokens or invent a timestamp. Use real root messages for threads, never nested threads. |
|
|
532
|
+
| Slack | Ordinary `!...` messages and registered `/superagent-*` commands use Socket Mode. Slack does not allow app slash commands inside threads; use `!` there. Slash commands have no message `ts`: deduplicate with a token-free scoped invocation fingerprint; anchor topic boundaries to the last durably admitted real owner message and use admission order on the same anchor. Do not persist trigger/response tokens or invent a timestamp. Use real root messages for threads, never nested threads. |
|
|
474
533
|
|
|
475
534
|
[Command definitions](../../src/messaging/messenger-commands.ts) are shared. Menu registration
|
|
476
535
|
is a separate explicit apply, not a side effect of setup, doctor or start. Command
|
|
@@ -504,7 +563,7 @@ is not a native mutation receipt. The head requires the recorded sent receipt
|
|
|
504
563
|
for the exact card before changing settings. Unselected cards expire after five
|
|
505
564
|
minutes, on Gateway restart, or when a new menu of the same kind replaces them
|
|
506
565
|
on the same route.
|
|
507
|
-
On Discord, the model card
|
|
566
|
+
On Discord and Slack, the model card offers the destination (HEAD or the
|
|
508
567
|
lane bound to the opening conversation) and the provider/model browser. With
|
|
509
568
|
both destinations available the operator must pick one; without a bound lane
|
|
510
569
|
only HEAD is offered. Browsing providers or changing the destination is not a
|
|
@@ -521,8 +580,9 @@ The reset picker chooses an exact linked account from the configured OMP profile
|
|
|
521
580
|
Discord accepts the argumentless `/usage-reset` command in its picker and in
|
|
522
581
|
authorized messages. `/usage` only reads quotas. The Gateway rejects stale
|
|
523
582
|
`/usage` interactions carrying options; HEAD refuses legacy `/usage reset`
|
|
524
|
-
messages as invalid controls, not model or lane requests.
|
|
525
|
-
|
|
583
|
+
messages as invalid controls, not model or lane requests. Slack accepts
|
|
584
|
+
`!usage-reset` or `/superagent-usage-reset`, as well as `!usage reset`. Telegram
|
|
585
|
+
keeps `/usage reset`. Edits cannot open the reset picker.
|
|
526
586
|
The first click only changes the displayed card revision; Confirm on that
|
|
527
587
|
revision is the only action that admits a reset request. Cancel closes the card
|
|
528
588
|
without admitting any request. The head checks the original sent card and live
|
|
@@ -577,6 +637,12 @@ Manage Threads, and skip archived threads. A confirmed Discord rate limit
|
|
|
577
637
|
defers reconciliation and rechecks current state before the next write;
|
|
578
638
|
an ambiguous write is not retried.
|
|
579
639
|
|
|
640
|
+
Slack `thread_inspect` verifies the exact root against the authenticated
|
|
641
|
+
account. A bot-created work starter has an editable label: explicit title
|
|
642
|
+
updates and automatic `⏳`/`✅` changes edit that starter using `chat.update`, not
|
|
643
|
+
an owner message or the Slack channel's name. Slack has no per-thread archive,
|
|
644
|
+
reopen, or forum tag API; those fields are not simulated.
|
|
645
|
+
|
|
580
646
|
`/help`, `/status`, `/context` and `/usage` are code-handled reads with no model turn.
|
|
581
647
|
[`/usage`](../../src/omp/omp-usage.ts) invokes the configured executable and
|
|
582
648
|
profile with `usage --json --redact`, so OMP discovers built-in and extension-provided
|
|
@@ -590,8 +656,10 @@ Unknown quota is not zero or an estimate of this session's usage. `/compact` use
|
|
|
590
656
|
compaction and requires an idle eligible head; status and priority stop remain
|
|
591
657
|
available while it runs. `/stop` pauses the bound lane. In an unbound topic a
|
|
592
658
|
reply can select the exact pending placement or the running HEAD request on
|
|
593
|
-
that route.
|
|
594
|
-
|
|
659
|
+
that route. A Slack question still being posted elsewhere in the channel
|
|
660
|
+
does not delay a stop for an already bound lane. If the bare command could
|
|
661
|
+
mean either, or the referenced physical message's revisions do not identify
|
|
662
|
+
one target, report the ambiguity on the
|
|
595
663
|
original route instead of cancelling one by guesswork. Use `/stop head` for
|
|
596
664
|
the global control, or name a lane ID to pause it. Once admitted to the
|
|
597
665
|
head, priority controls and approval answers do not wait for an ordinary model
|
|
@@ -704,8 +772,11 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
|
|
|
704
772
|
25 seconds for the whole Discord output, including destination lookup,
|
|
705
773
|
leaving time to return the result before the head's 30-second IPC timeout.
|
|
706
774
|
No new parts are posted after that deadline. An in-flight POST at expiry or
|
|
707
|
-
a failure after a visible part is uncertain; nothing is resent. Slack
|
|
708
|
-
|
|
775
|
+
a failure after a visible part is uncertain; nothing is resent. Slack splits
|
|
776
|
+
at paragraph, line, then space boundaries into at most five posts of up to
|
|
777
|
+
3,000 UTF-16 units. It holds a partial send as uncertain and records later
|
|
778
|
+
parts and the final timestamp only for a complete multipart send. Larger
|
|
779
|
+
output uses upload URL → bytes → `files.completeUploadExternal`, not `files.upload`.
|
|
709
780
|
Telegram and Slack do not automatically retry remote mutations. Discord renders
|
|
710
781
|
ordinary Markdown pipe tables at delivery as stacked list items, with the
|
|
711
782
|
column labels and each row's values on separate lines. This leaves links,
|
|
@@ -721,18 +792,27 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
|
|
|
721
792
|
- Pending outbox delivery runs concurrently across distinct physical routes
|
|
722
793
|
(platform, account, authority, guild, channel, thread) while preserving
|
|
723
794
|
strict sequence order within each physical route and never automatically
|
|
724
|
-
retrying uncertain sends.
|
|
795
|
+
retrying uncertain sends. A confirmed `Retry-After` holds later output on
|
|
796
|
+
that route only; the pending work stays visible to lifecycle guards. Slack
|
|
797
|
+
joined links honor the original preflight rejection time even if HEAD loses
|
|
798
|
+
the response or restarts before recording the delay. The exact completed
|
|
799
|
+
Gateway receipt settles success or definitive rejection for a joined link,
|
|
800
|
+
workspace question, kickoff, or restart acknowledgement, even if its IPC
|
|
801
|
+
reply is lost. Definitively rejected plain posts are not retried. A delay
|
|
802
|
+
the scheduler cannot represent is not retried and does not make the
|
|
803
|
+
rejection uncertain. An unfinished or ambiguous send never authorizes a retry.
|
|
804
|
+
Routes wake as soon as outputs become pending
|
|
725
805
|
without waiting behind an unrelated command tail; restart checkpoints still
|
|
726
806
|
wait for all in-flight route deliveries to settle before lifecycle handoff.
|
|
727
|
-
- In-place editing of
|
|
728
|
-
`discord.editProgressInPlace` (default `false`). By default, every progress
|
|
807
|
+
- In-place editing of progress reports is opt-in via
|
|
808
|
+
`discord.editProgressInPlace` or `slack.editProgressInPlace` (both default `false`). By default, every progress
|
|
729
809
|
update and HEAD lane progress summary posts as an ordinary new message so
|
|
730
|
-
progress history stays visible. When enabled
|
|
810
|
+
progress history stays visible. When enabled, nonterminal progress
|
|
731
811
|
for one request—including direct HEAD progress, direct topic progress, and
|
|
732
812
|
HEAD summaries of non-topic lane progress keyed by the original lane input—uses
|
|
733
813
|
a single `⏳` status message edited in place (`⏳\n` when the body begins
|
|
734
814
|
with a code fence so card fences remain intact). Each update stays its own
|
|
735
|
-
immutable output with `status: true
|
|
815
|
+
immutable output with `status: true`. On Discord, initial long status messages use the
|
|
736
816
|
single-message text attachment fallback instead of splitting across multiple
|
|
737
817
|
posts so later edits replace that single message cleanly. When an update is
|
|
738
818
|
claimed for delivery, the controller fixes `editOf` to the physical message of
|
|
@@ -740,9 +820,10 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
|
|
|
740
820
|
redelivery edits that same message. An uncertain post never becomes an edit
|
|
741
821
|
target. A rejected edit fails only that update and is never reposted; it
|
|
742
822
|
releases the target so a later update posts a fresh status message. An
|
|
743
|
-
ambiguous edit stays uncertain.
|
|
744
|
-
|
|
745
|
-
|
|
823
|
+
ambiguous edit stays uncertain. Slack verifies its own status marker and
|
|
824
|
+
exact destination before `chat.update`; an over-limit Slack status does not
|
|
825
|
+
create a file or a second message. Final answers and lane completion reports
|
|
826
|
+
remain separate. Other transports post ordinary progress messages.
|
|
746
827
|
- Discord turns a fenced ```` ```card ```` [json-render](https://github.com/vercel-labs/json-render)
|
|
747
828
|
spec (`{"root", "elements"}`, root `Card`; `Card`, `Section`, `Text`,
|
|
748
829
|
`Fields`, `Field`, `Table`, `Divider`, `Image`) into an embed at delivery.
|
|
@@ -751,8 +832,10 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
|
|
|
751
832
|
permission at the parent channel; otherwise send the original fence as text.
|
|
752
833
|
An Image needs a valid HTTPS URL. A spec that is
|
|
753
834
|
invalid, uses another component, reuses an element or exceeds Discord's embed
|
|
754
|
-
limits stays verbatim as its code block
|
|
755
|
-
|
|
835
|
+
limits stays verbatim as its code block. Slack renders the same card format
|
|
836
|
+
as non-interactive Block Kit with HTTPS-only images and its own block bounds;
|
|
837
|
+
unsupported content stays literal. Telegram keeps the original text.
|
|
838
|
+
The [Rust renderer](../../gateway/src/discord/embeds.rs) and the
|
|
756
839
|
[test-only Bun renderer](../../test/oracles/bun-gateway/discord-markdown.ts)
|
|
757
840
|
share one [fixture](../../test/fixtures/discord-cards.json).
|
|
758
841
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# omp-superagent 0.1.18
|
|
2
|
+
|
|
3
|
+
- Slack work stays in its bound thread unless explicitly split. `!model` can select HEAD or the bound lane, and `!stop` can pause the bound lane even while an unrelated workspace question is pending. Optional settings enable mention-only channel intake, work starters in another allowlisted channel, and in-place progress updates. [#77](https://github.com/dbc-hbin/omp-superagent/pull/77)
|
|
4
|
+
- Slack supports repository PR intake from allowed parent conversations. Workspace answers and manual PR controls use verified Slack message identity and order. After an interrupted response, Superagent uses the matching durable Gateway receipt to settle delivery rather than treating missing confirmation as success or blindly resending. [#77](https://github.com/dbc-hbin/omp-superagent/pull/77)
|
|
5
|
+
- Managed Hosts verify current Superkit presets and canonical workflow discovery through native OMP, without depending on preset wording or retired aliases. Already-admitted legacy workflow commands still work on compatible Hosts. [#76](https://github.com/dbc-hbin/omp-superagent/pull/76)
|
|
6
|
+
- CI tests the latest official stock OMP on Linux and macOS and verifies fresh installs of the current package on all four target platforms. It no longer reinstalls a historical npm release to simulate an upgrade. [#76](https://github.com/dbc-hbin/omp-superagent/pull/76)
|
|
7
|
+
|
|
8
|
+
**Before upgrading**, follow the [upgrade procedure](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.en.md#update-an-existing-installation) ([한국어](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.md#기존-설치-업데이트)). Use the old installation to stop affected resident lanes and Gateway/HEAD and verify their exits before installing `omp-superagent@0.1.18`. For Slack, review the [app scopes and command setup](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.en.md#23-slack); reinstall the Slack app if you add scopes. In threads, use `!` controls rather than app slash commands.
|
|
9
|
+
|
|
10
|
+
[Changes since 0.1.17](https://github.com/dbc-hbin/omp-superagent/compare/v0.1.17...v0.1.18)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/skills/head/SKILL.md
CHANGED
|
@@ -48,7 +48,7 @@ work, send a separate update, or grant scope or execution authority.
|
|
|
48
48
|
from the tool. For unsupported or ambiguous wording, clarify in ordinary
|
|
49
49
|
language; do not ask for command syntax or claim a save. One-off requests
|
|
50
50
|
remain local to that answer. No file, preset, or memory edit.
|
|
51
|
-
- Keep discovered work in the original unbound Discord thread. Do not create a
|
|
51
|
+
- Keep discovered work in the original unbound Discord or Slack thread. Do not create a
|
|
52
52
|
sibling without an explicit split request. A new lane needs a confirmed kickoff.
|
|
53
53
|
Leave explicit cwd, `/new`, exact replies with a known workspace, and intentional
|
|
54
54
|
historical lookup or choice to the controller's placement path.
|
|
@@ -86,7 +86,7 @@ load references for direct answers or routine progress updates.
|
|
|
86
86
|
|
|
87
87
|
| When | Reference |
|
|
88
88
|
| --- | --- |
|
|
89
|
-
| Starting or splitting lanes, managing Discord
|
|
89
|
+
| Starting or splitting lanes, managing Discord or Slack work threads, resolving workspace or shared-resource conflicts, or selecting an explicit workflow | `routing.md` |
|
|
90
90
|
| Selecting a substantive lane model, handling an authorized model change, or resolving capability/risk ambiguity | `model-selection.md` |
|
|
91
91
|
| Correcting or closing work, tracking a PR, or reconciling an interruption, approval, or uncertain effect | `supervision.md` |
|
|
92
92
|
|
|
@@ -44,8 +44,8 @@ original attachments and quoted context; a narrower brief does not filter them.
|
|
|
44
44
|
The event identity must also be compatible: a Discord interaction or Slack
|
|
45
45
|
invocation cannot be reused across platforms.
|
|
46
46
|
|
|
47
|
-
For an explicit `lane_message` from the exact
|
|
48
|
-
|
|
47
|
+
For an explicit `lane_message` from the exact parent of an existing native
|
|
48
|
+
Discord or Slack work thread, the controller pins the lane's progress and
|
|
49
49
|
final report to that thread. Keep the original source ID and review the
|
|
50
50
|
receipts normally; do not repeat the work reports in the parent. A parent
|
|
51
51
|
acknowledgement, if useful, should only point to the thread. An ordinary
|
|
@@ -128,17 +128,17 @@ controls Host capacity.
|
|
|
128
128
|
device is idle after its current run). For integration, settle the shared
|
|
129
129
|
contract and name one owner and verification boundary. Checkout separation is not
|
|
130
130
|
permission to merge, delete a checkout, or touch another lane's uncommitted work.
|
|
131
|
-
- Keep the original route by default. For work from an unbound Discord thread,
|
|
131
|
+
- Keep the original route by default. For work from an unbound Discord or Slack thread,
|
|
132
132
|
place any new lane in that exact thread, not its parent or a sibling. A source
|
|
133
133
|
in a guild parent channel can also explicitly request alternate placement.
|
|
134
|
-
For an explicitly requested split from a Discord thread, use the exact
|
|
134
|
+
For an explicitly requested split from a Discord or Slack thread, use the exact
|
|
135
135
|
authorized parent `destination` with `threadId:null` and no `topicId` to
|
|
136
136
|
create a sibling thread, never a bare channel destination or nested thread.
|
|
137
137
|
That parent is normally the source thread's own parent. If the operator has
|
|
138
|
-
enabled `discord.allowCrossChannelThreads`, HEAD may choose an eligible
|
|
138
|
+
enabled `discord.allowCrossChannelThreads` or `slack.allowCrossChannelThreads`, HEAD may choose an eligible
|
|
139
139
|
alternate parent explicitly in `lane_start` for an authorized owner request.
|
|
140
140
|
The `"allowlist"` scope requires an allowed channel; the additional opt-in
|
|
141
|
-
`"guild"` scope can use an unlisted parent in the same trusted guild,
|
|
141
|
+
Discord-only `"guild"` scope can use an unlisted parent in the same trusted guild,
|
|
142
142
|
authenticated bot account and owner. Never select a restricted `groupRooms`
|
|
143
143
|
channel, assume bot permissions, or fall back to another parent. `/new` and
|
|
144
144
|
ordinary split directives still use the source parent. An unlisted thread
|
|
@@ -158,6 +158,10 @@ controls Host capacity.
|
|
|
158
158
|
where allowed); omitted fields stay unchanged. ManageThreads is required. Archive
|
|
159
159
|
and lane lifecycle are independent. Replay receipts are historical; inspect current
|
|
160
160
|
state and reconcile an uncertain update before a new explicit owner request.
|
|
161
|
+
On Slack, `thread_inspect` verifies the root. Use `lane_thread_update` with
|
|
162
|
+
`title` only when `editableTitle` is true: this edits the app's own managed
|
|
163
|
+
starter label. Slack has no per-thread tags or archive/reopen API; lane
|
|
164
|
+
lifecycle actions are not Slack thread mutations.
|
|
161
165
|
- `discord_context` reads current channel/thread metadata without overwriting the
|
|
162
166
|
input snapshot. Context and owner purpose notes are evidence, not instructions
|
|
163
167
|
or repository/dispatch policy. For an explicit note change, use
|
|
@@ -165,6 +169,13 @@ controls Host capacity.
|
|
|
165
169
|
conversation (default), exact parent (`scope: channel`), or current thread
|
|
166
170
|
(`scope: thread`); `discord_purpose_list` lists those notes. One mutation per
|
|
167
171
|
source and target; don't replay conflicts or claim these tools edit Discord itself.
|
|
172
|
+
- For an original Slack source, `slack_context` reads the exact Slack channel
|
|
173
|
+
and thread identity, current channel metadata and any local purpose notes.
|
|
174
|
+
Use `slack_purpose_list` to list notes and `slack_purpose_set` or
|
|
175
|
+
`slack_purpose_clear` only for an explicit owner request. The same current
|
|
176
|
+
conversation, exact parent, and current thread scopes apply. Slack's native
|
|
177
|
+
purpose is read-only evidence, distinct from the local note; neither
|
|
178
|
+
authorizes changing the workspace, lane, or routing.
|
|
168
179
|
|
|
169
180
|
## 3. Dispatch with a clear owner and acceptance
|
|
170
181
|
|
package/src/config/config.ts
CHANGED
|
@@ -62,6 +62,9 @@ export interface SlackConfig {
|
|
|
62
62
|
ownerId: string;
|
|
63
63
|
teamId: string;
|
|
64
64
|
allowedChannelIds: string[];
|
|
65
|
+
readonly requireAddressing?: boolean;
|
|
66
|
+
readonly allowCrossChannelThreads?: boolean;
|
|
67
|
+
readonly editProgressInPlace?: boolean;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
export const DEFAULT_HEAD_IDLE_MS = 30 * 60 * 1000;
|
|
@@ -252,6 +255,15 @@ export function parseConfig(value: unknown, path: string): Config {
|
|
|
252
255
|
const crossChannelThreadScope = discord?.crossChannelThreadScope;
|
|
253
256
|
if (crossChannelThreadScope !== undefined && crossChannelThreadScope !== "allowlist" && crossChannelThreadScope !== "guild")
|
|
254
257
|
throw new Error("discord.crossChannelThreadScope must be allowlist or guild");
|
|
258
|
+
const slackAddressing = slack?.requireAddressing;
|
|
259
|
+
if (slackAddressing !== undefined && typeof slackAddressing !== "boolean")
|
|
260
|
+
throw new Error("slack.requireAddressing must be a boolean");
|
|
261
|
+
const slackCrossChannel = slack?.allowCrossChannelThreads;
|
|
262
|
+
if (slackCrossChannel !== undefined && typeof slackCrossChannel !== "boolean")
|
|
263
|
+
throw new Error("slack.allowCrossChannelThreads must be a boolean");
|
|
264
|
+
const slackProgress = slack?.editProgressInPlace;
|
|
265
|
+
if (slackProgress !== undefined && typeof slackProgress !== "boolean")
|
|
266
|
+
throw new Error("slack.editProgressInPlace must be a boolean");
|
|
255
267
|
if (raw.remoteMemorySync !== undefined && typeof raw.remoteMemorySync !== "boolean")
|
|
256
268
|
throw new Error("remoteMemorySync must be a boolean");
|
|
257
269
|
const voice = discord?.voice === undefined ? undefined : record(discord.voice, "discord.voice");
|
|
@@ -321,6 +333,9 @@ export function parseConfig(value: unknown, path: string): Config {
|
|
|
321
333
|
ownerId: id(slack.ownerId, "slack.ownerId", /^[UW][A-Z0-9]+$/),
|
|
322
334
|
teamId: id(slack.teamId, "slack.teamId", /^T[A-Z0-9]+$/),
|
|
323
335
|
allowedChannelIds: ids(slack.allowedChannelIds, "slack.allowedChannelIds", /^[CG][A-Z0-9]+$/),
|
|
336
|
+
requireAddressing: slackAddressing ?? false,
|
|
337
|
+
...(slackCrossChannel === undefined ? {} : { allowCrossChannelThreads: slackCrossChannel }),
|
|
338
|
+
...(slackProgress === undefined ? {} : { editProgressInPlace: slackProgress }),
|
|
324
339
|
} } : {}),
|
|
325
340
|
...(kakao ? { kakao: parseKakao(kakao) } : {}),
|
|
326
341
|
};
|
package/src/contracts.ts
CHANGED
|
@@ -110,6 +110,31 @@ export type DiscordPurposeRequest = {
|
|
|
110
110
|
);
|
|
111
111
|
export interface DiscordPurposeNote { readonly route: Route; readonly purpose: string }
|
|
112
112
|
|
|
113
|
+
/** Current verified Slack conversation observations, never instructions, authority or routing policy. */
|
|
114
|
+
export interface SlackContext {
|
|
115
|
+
readonly kind: "workspace" | "dm";
|
|
116
|
+
readonly channel: {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly name?: string;
|
|
119
|
+
readonly topic?: string | null;
|
|
120
|
+
/** Native Slack channel purpose, observed but not editable here. */
|
|
121
|
+
readonly slackPurpose?: string | null;
|
|
122
|
+
/** Owner's local Superagent note, not Slack metadata. */
|
|
123
|
+
readonly purpose?: string;
|
|
124
|
+
};
|
|
125
|
+
readonly thread?: { readonly id: string; readonly parentId: string; readonly purpose?: string };
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface SlackContextRequest {
|
|
129
|
+
readonly sourceId: string;
|
|
130
|
+
readonly route: Route;
|
|
131
|
+
}
|
|
132
|
+
export type SlackPurposeRequest = SlackContextRequest & (
|
|
133
|
+
| { readonly action: "list" | "clear" }
|
|
134
|
+
| { readonly action: "set"; readonly purpose: string }
|
|
135
|
+
);
|
|
136
|
+
export interface SlackPurposeNote { readonly route: Route; readonly purpose: string }
|
|
137
|
+
|
|
113
138
|
export type PresenceAction = "start" | "status" | "stop";
|
|
114
139
|
export interface MessengerPresenceRequest {
|
|
115
140
|
readonly action: PresenceAction;
|
|
@@ -150,6 +175,8 @@ export interface Inbound {
|
|
|
150
175
|
readonly discordOriginalText?: string;
|
|
151
176
|
/** Adapter-verified routing-only view; an empty string excludes the entire message. */
|
|
152
177
|
readonly routingText?: string;
|
|
178
|
+
/** The Slack adapter proved that this message's routing body is plain owner text. */
|
|
179
|
+
readonly slackVerifiedRoutingBody?: true;
|
|
153
180
|
/** Telegram's authenticated formatting verdict; absent on pre-upgrade receipts. */
|
|
154
181
|
readonly telegramProtectedCommand?: boolean;
|
|
155
182
|
/** Original Telegram text or caption when an addressed bot suffix was removed. */
|
|
@@ -306,7 +333,7 @@ export interface OutputRecord {
|
|
|
306
333
|
sourceId: string;
|
|
307
334
|
route: Route;
|
|
308
335
|
/** Durable original owner message, only in the same physical conversation. */
|
|
309
|
-
replyTo?: MessageReference & { readonly requireExisting?: true };
|
|
336
|
+
replyTo?: MessageReference & { readonly requireExisting?: true; readonly joinedAnswerId?: string };
|
|
310
337
|
/** Discord status message replaced in place; fixed when the output is claimed. */
|
|
311
338
|
readonly editOf?: MessageReference;
|
|
312
339
|
/** Initial Discord status message; overflow falls back to one attachment instead of multi-message split. */
|
|
@@ -320,8 +347,8 @@ export interface OutputRecord {
|
|
|
320
347
|
}
|
|
321
348
|
|
|
322
349
|
export type SettlementOutput = Pick<OutputRecord, "id" | "text" | "picker"> & {
|
|
323
|
-
/** Physically distinct
|
|
324
|
-
readonly
|
|
350
|
+
/** Physically distinct HEAD steers proved to precede this shared answer. */
|
|
351
|
+
readonly headFollowups?: readonly string[];
|
|
325
352
|
/** Controller-only lane failure routing, never derived from output text. */
|
|
326
353
|
readonly laneFailure?: "quota" | "recover";
|
|
327
354
|
};
|
|
@@ -468,6 +495,7 @@ export interface StorePort {
|
|
|
468
495
|
| { readonly kind: "sources"; readonly sources: readonly InputRecord[] }
|
|
469
496
|
| { readonly kind: "unverified" | "unknown" };
|
|
470
497
|
isDiscordWorkspaceQuestion(route: Route, messageId: string): boolean;
|
|
498
|
+
hasSlackHistoryChoice(route: Route, number: number, authoredAt: number, excludeSourceId?: string): boolean;
|
|
471
499
|
sentOutputForMessage(route: Route, messageId: string): OutputRecord | null;
|
|
472
500
|
/** Actual authorized message IDs in durable admission order; not invocation or edit IDs. */
|
|
473
501
|
admittedMessageIds(route: Route): Iterable<string>;
|
|
@@ -496,8 +524,17 @@ export interface StorePort {
|
|
|
496
524
|
output: Pick<OutputRecord, "id" | "sourceId" | "route" | "text">): boolean;
|
|
497
525
|
recordHeadHoldNotice(blockerId: string, output: Omit<OutputRecord, "state" | "remoteId" | "error" | "editOf">): boolean;
|
|
498
526
|
output(id: string): OutputRecord | null;
|
|
527
|
+
/** Every pending output, including work held by a route's retry fence. */
|
|
499
528
|
outputs(physicalRoute?: string): OutputRecord[];
|
|
529
|
+
/** Pending outputs before any future Slack joined retry on their physical route. */
|
|
530
|
+
deliverableOutputs(physicalRoute?: string): OutputRecord[];
|
|
500
531
|
claimOutput(id: string, editInPlace?: boolean): boolean;
|
|
532
|
+
/** Retry only a Slack joined notice known not to have been posted. */
|
|
533
|
+
deferSlackJoinedOutput(id: string, delayMs: number): boolean;
|
|
534
|
+
/** Settle a scoped in-flight Slack workspace question, kickoff, or restart ACK from its exact Gateway receipt. */
|
|
535
|
+
reconcileSlackOutput(id: string): boolean;
|
|
536
|
+
/** Settle an in-flight Slack joined notice from its exact durable Gateway receipt. */
|
|
537
|
+
reconcileSlackJoinedOutput(id: string): boolean;
|
|
501
538
|
finishOutput(id: string, state: "sent" | "uncertain" | "failed" | "pending", remoteId?: string, error?: string): void;
|
|
502
539
|
createLane(lane: Lane & { model: LaneModel; modelReason: string }, sourceId: string): Lane;
|
|
503
540
|
lane(id: string): Lane | null;
|
|
@@ -576,6 +613,10 @@ export interface ThreadInfo {
|
|
|
576
613
|
readonly route: Route;
|
|
577
614
|
readonly title: string;
|
|
578
615
|
readonly archived: boolean | null;
|
|
616
|
+
/** Slack only: true when the verified root belongs to this app's bot. */
|
|
617
|
+
readonly botStarter?: boolean;
|
|
618
|
+
/** Slack only: the root is the bot's managed work title, not a user or PR notice. */
|
|
619
|
+
readonly editableTitle?: boolean;
|
|
579
620
|
readonly requiresTag: boolean;
|
|
580
621
|
readonly availableTags: readonly { readonly id: string; readonly name: string; readonly moderated: boolean }[];
|
|
581
622
|
readonly appliedTags: readonly string[];
|
|
@@ -632,6 +673,8 @@ export interface Messenger {
|
|
|
632
673
|
updateThread?(route: Route, update: ThreadUpdate): Promise<ThreadInfo>;
|
|
633
674
|
inspectDiscordContext?(route: Route): Promise<DiscordContext>;
|
|
634
675
|
discordPurpose?(request: DiscordPurposeRequest): Promise<readonly DiscordPurposeNote[]>;
|
|
676
|
+
inspectSlackContext?(request: SlackContextRequest): Promise<SlackContext>;
|
|
677
|
+
slackPurpose?(request: SlackPurposeRequest): Promise<readonly SlackPurposeNote[]>;
|
|
635
678
|
messengerPresence?(request: MessengerPresenceRequest): Promise<DiscordPresenceStatus>;
|
|
636
679
|
/** null means adapter-owned recovery. An ordered read uses the Gateway's saved gap cutoff. */
|
|
637
680
|
fetchAfter(route: Route, messageId: string, historySequence?: number): Promise<Inbound[] | null>;
|