mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-14 07:10:44 +08:00
Mirror scheduled-run summaries into the origin effective session.
Pin origin at create time, keep isolated fire sessions for audit, and after IM/DSH delivery resume or open the origin chat to append the same summary for follow-ups. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2e690c30c8
commit
29d946f3dd
12 changed files with 527 additions and 26 deletions
5
lib/index.d.ts
vendored
5
lib/index.d.ts
vendored
|
|
@ -42,5 +42,10 @@ export const TITLE_PREFIX: string
|
|||
export function claimOccurrence(state: object, jobId: string, now: number, trigger: string, policies?: object): object
|
||||
export function executeClaimedRun(state: object, runId: string, deps: object): Promise<object>
|
||||
export function normalizeDelivery(input?: object): { kind: 'dsh' | 'im', botId?: string, targetId?: string }
|
||||
export function normalizeOrigin(input?: object): { kind: 'web' | 'im', sessionId?: string, peer?: object } | null
|
||||
export function resolveCreateDelivery(args?: object, exec?: object, deps?: object): Promise<{ kind: 'dsh' | 'im', botId?: string, targetId?: string }>
|
||||
export function resolveCreateOrigin(args?: object, exec?: object, deps?: object): Promise<{ kind: 'web' | 'im', sessionId?: string, peer?: object } | null>
|
||||
export function resolveMirrorSession(job: object, deps?: object): Promise<{ sessionId: string, via: string } | null>
|
||||
export function formatRunResultBody(job: object, summary?: string): string
|
||||
export function deliverRunToIm(job: object, summary?: string, deps?: object): Promise<object>
|
||||
export function mirrorRunToSession(job: object, summary?: string, deps?: object): Promise<object>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue