@automagik/omni 2.260331.1 → 2.260405.1
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/db/drizzle/0013_curious_leo.sql +4 -0
- package/db/drizzle/0014_overrated_silver_fox.sql +5 -0
- package/db/drizzle/0015_burly_trauma.sql +27 -0
- package/db/drizzle/meta/0013_snapshot.json +6754 -0
- package/db/drizzle/meta/0014_snapshot.json +6784 -0
- package/db/drizzle/meta/0015_snapshot.json +7025 -0
- package/db/drizzle/meta/_journal.json +21 -0
- package/dist/commands/close.d.ts +11 -0
- package/dist/commands/close.d.ts.map +1 -0
- package/dist/commands/connect.d.ts +1 -1
- package/dist/commands/done.d.ts +14 -0
- package/dist/commands/done.d.ts.map +1 -0
- package/dist/commands/film.d.ts +16 -0
- package/dist/commands/film.d.ts.map +1 -0
- package/dist/commands/imagine.d.ts +16 -0
- package/dist/commands/imagine.d.ts.map +1 -0
- package/dist/commands/instances.d.ts.map +1 -1
- package/dist/commands/listen.d.ts +18 -0
- package/dist/commands/listen.d.ts.map +1 -0
- package/dist/commands/open.d.ts +12 -0
- package/dist/commands/open.d.ts.map +1 -0
- package/dist/commands/persons.d.ts +4 -0
- package/dist/commands/persons.d.ts.map +1 -1
- package/dist/commands/react.d.ts +11 -0
- package/dist/commands/react.d.ts.map +1 -0
- package/dist/commands/say.d.ts +12 -0
- package/dist/commands/say.d.ts.map +1 -0
- package/dist/commands/see.d.ts +15 -0
- package/dist/commands/see.d.ts.map +1 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/speak.d.ts +18 -0
- package/dist/commands/speak.d.ts.map +1 -0
- package/dist/commands/use.d.ts +12 -0
- package/dist/commands/use.d.ts.map +1 -0
- package/dist/commands/where.d.ts +11 -0
- package/dist/commands/where.d.ts.map +1 -0
- package/dist/context.d.ts +43 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/index.js +2137 -756
- package/dist/server/index.js +30246 -2926
- package/package.json +9 -9
|
@@ -92,6 +92,27 @@
|
|
|
92
92
|
"when": 1774721939291,
|
|
93
93
|
"tag": "0012_large_wendell_rand",
|
|
94
94
|
"breakpoints": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"idx": 13,
|
|
98
|
+
"version": "7",
|
|
99
|
+
"when": 1775236890700,
|
|
100
|
+
"tag": "0013_curious_leo",
|
|
101
|
+
"breakpoints": true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"idx": 14,
|
|
105
|
+
"version": "7",
|
|
106
|
+
"when": 1775404097628,
|
|
107
|
+
"tag": "0014_overrated_silver_fox",
|
|
108
|
+
"breakpoints": true
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"idx": 15,
|
|
112
|
+
"version": "7",
|
|
113
|
+
"when": 1775404179968,
|
|
114
|
+
"tag": "0015_burly_trauma",
|
|
115
|
+
"breakpoints": true
|
|
95
116
|
}
|
|
96
117
|
]
|
|
97
118
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Close Command
|
|
3
|
+
*
|
|
4
|
+
* omni close
|
|
5
|
+
*
|
|
6
|
+
* Clears the active conversation context. After this, verb commands
|
|
7
|
+
* will require explicit --instance/--to flags or env vars.
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'commander';
|
|
10
|
+
export declare function createCloseCommand(): Command;
|
|
11
|
+
//# sourceMappingURL=close.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../src/commands/close.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,kBAAkB,IAAI,OAAO,CAa5C"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connect Command — omni connect <instance-id> <agent-name>
|
|
3
3
|
*
|
|
4
4
|
* One-command setup for Omni ↔ Genie NATS integration:
|
|
5
|
-
* 1. Discovers agent via `genie dir
|
|
5
|
+
* 1. Discovers agent via `genie dir ls <agent-name> --json`
|
|
6
6
|
* 2. Creates/updates Omni provider with schema `nats-genie`
|
|
7
7
|
* 3. Creates Omni agent record linked to provider
|
|
8
8
|
* 4. Updates instance to use the new agent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Done Command — Turn-closing verb
|
|
3
|
+
*
|
|
4
|
+
* omni done "final text" — send text + close turn
|
|
5
|
+
* omni done --media <path> — send media + close turn
|
|
6
|
+
* omni done --react <emoji> — react to trigger message + close turn
|
|
7
|
+
* omni done --skip — close turn with no outbound
|
|
8
|
+
*
|
|
9
|
+
* Uses context resolution (env vars > PG context > config) for instance/chat/message.
|
|
10
|
+
* Calls POST /v2/turns/close to emit NATS turn.done event.
|
|
11
|
+
*/
|
|
12
|
+
import { Command } from 'commander';
|
|
13
|
+
export declare function createDoneCommand(): Command;
|
|
14
|
+
//# sourceMappingURL=done.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"done.d.ts","sourceRoot":"","sources":["../../src/commands/done.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2HpC,wBAAgB,iBAAiB,IAAI,OAAO,CAqC3C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Film Command — Video generation verb
|
|
3
|
+
*
|
|
4
|
+
* omni film "sunset over dunes" — generate + send to open chat
|
|
5
|
+
* omni film "sunset" --duration 8 — 8-second clip
|
|
6
|
+
* omni film "sunset" --resolution 1080p — resolution hint
|
|
7
|
+
* omni film "sunset" --output sunset.mp4 — save locally, don't send
|
|
8
|
+
* omni film "sunset" --reply — quote-reply to trigger message
|
|
9
|
+
*
|
|
10
|
+
* Uses Gemini Veo 3.1 via the `POST /v2/media/film` endpoint. The API handles
|
|
11
|
+
* the async polling loop internally; the CLI shows a spinner while it waits
|
|
12
|
+
* and enforces a 5-minute timeout.
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from 'commander';
|
|
15
|
+
export declare function createFilmCommand(): Command;
|
|
16
|
+
//# sourceMappingURL=film.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/commands/film.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBpC,wBAAgB,iBAAiB,IAAI,OAAO,CA4H3C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imagine Command — Image generation verb
|
|
3
|
+
*
|
|
4
|
+
* omni imagine "a neon cat in Tokyo" generate + send to open chat
|
|
5
|
+
* omni imagine "a cat" --output cat.png save locally, no send
|
|
6
|
+
* omni imagine "a cat" --aspect-ratio 16:9 --size 2K control output shape/size
|
|
7
|
+
* omni imagine "a cat" --model nano-banana-pro pick the pro model
|
|
8
|
+
* omni imagine "a cat" --count 3 --output cat.png save 3 variants (cat-1.png, ...)
|
|
9
|
+
* omni imagine "a cat" --reply quote-reply to trigger message
|
|
10
|
+
*
|
|
11
|
+
* Delegates to POST /v2/media/imagine which routes through the provider
|
|
12
|
+
* registry. Defaults to Gemini Nano Banana 2 — override with --provider.
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from 'commander';
|
|
15
|
+
export declare function createImagineCommand(): Command;
|
|
16
|
+
//# sourceMappingURL=imagine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imagine.d.ts","sourceRoot":"","sources":["../../src/commands/imagine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkDpC,wBAAgB,oBAAoB,IAAI,OAAO,CA+I9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../src/commands/instances.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../src/commands/instances.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwJpC,wBAAgB,sBAAsB,IAAI,OAAO,CAsnChD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Listen Command — Speech-to-text verb
|
|
3
|
+
*
|
|
4
|
+
* omni listen audio.ogg — print transcription to stdout
|
|
5
|
+
* omni listen audio.ogg --provider gemini — force Gemini STT (handles >19.5MB)
|
|
6
|
+
* omni listen audio.ogg --provider groq — force Groq Whisper (fast, 19.5MB cap)
|
|
7
|
+
* omni listen audio.ogg --language pt — language hint
|
|
8
|
+
* omni listen audio.ogg --timestamps — include segment timestamps
|
|
9
|
+
* omni listen audio.ogg --format json — output structured JSON
|
|
10
|
+
* omni listen audio.ogg --reply — transcribe + quote-reply to trigger message
|
|
11
|
+
* omni listen audio.ogg --reply <message-id> — transcribe + quote-reply to specific message
|
|
12
|
+
*
|
|
13
|
+
* STT provider is resolved server-side through the provider registry:
|
|
14
|
+
* --provider explicit > `stt.provider` setting > first registered.
|
|
15
|
+
*/
|
|
16
|
+
import { Command } from 'commander';
|
|
17
|
+
export declare function createListenCommand(): Command;
|
|
18
|
+
//# sourceMappingURL=listen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listen.d.ts","sourceRoot":"","sources":["../../src/commands/listen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2DpC,wBAAgB,mBAAmB,IAAI,OAAO,CAwH7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Open Command
|
|
3
|
+
*
|
|
4
|
+
* omni open <contact>
|
|
5
|
+
*
|
|
6
|
+
* Resolves a contact (name, phone, chat ID) and sets it as the active
|
|
7
|
+
* conversation context. Subsequent verb commands (say, send, react, etc.)
|
|
8
|
+
* will target this chat without needing explicit --instance/--to flags.
|
|
9
|
+
*/
|
|
10
|
+
import { Command } from 'commander';
|
|
11
|
+
export declare function createOpenCommand(): Command;
|
|
12
|
+
//# sourceMappingURL=open.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../src/commands/open.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,iBAAiB,IAAI,OAAO,CAqC3C"}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
* omni persons search <query>
|
|
5
5
|
* omni persons get <id>
|
|
6
6
|
* omni persons presence <id>
|
|
7
|
+
* omni persons update <id> [--name] [--phone] [--email] [--avatar] [--metadata]
|
|
8
|
+
* omni persons merge <source> <target> [--reason]
|
|
9
|
+
* omni persons link <identityA> <identityB>
|
|
10
|
+
* omni persons unlink <identityId> [--reason]
|
|
7
11
|
*/
|
|
8
12
|
import { Command } from 'commander';
|
|
9
13
|
export declare function createPersonsCommand(): Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../src/commands/persons.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../src/commands/persons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,oBAAoB,IAAI,OAAO,CAuL9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Command — Emoji reaction verb
|
|
3
|
+
*
|
|
4
|
+
* omni react 👍 — react to trigger message
|
|
5
|
+
* omni react 👍 --message <id> — react to specific message
|
|
6
|
+
*
|
|
7
|
+
* Uses context resolution (env vars > PG context > config) for instance/chat/message.
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'commander';
|
|
10
|
+
export declare function createReactCommand(): Command;
|
|
11
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/commands/react.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,kBAAkB,IAAI,OAAO,CA6C5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Say Command — Text message verb
|
|
3
|
+
*
|
|
4
|
+
* omni say "hello" — send text to open chat
|
|
5
|
+
* omni say "hello" --reply — quote-reply to trigger message
|
|
6
|
+
* omni say "hello" --reply <id> — quote-reply to specific message
|
|
7
|
+
*
|
|
8
|
+
* Uses context resolution (env vars > PG context > config) for instance/chat.
|
|
9
|
+
*/
|
|
10
|
+
import { Command } from 'commander';
|
|
11
|
+
export declare function createSayCommand(): Command;
|
|
12
|
+
//# sourceMappingURL=say.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"say.d.ts","sourceRoot":"","sources":["../../src/commands/say.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,gBAAgB,IAAI,OAAO,CAiD1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* See Command — Vision verb
|
|
3
|
+
*
|
|
4
|
+
* omni see photo.jpg — describe image, print to stdout
|
|
5
|
+
* omni see photo.jpg "what color?" — guided prompt
|
|
6
|
+
* omni see photo.jpg --reply — describe + quote-reply the description
|
|
7
|
+
* omni see photo.jpg --language pt-BR — response in a specific language
|
|
8
|
+
* omni see photo.jpg --provider gemini — force a specific vision provider
|
|
9
|
+
*
|
|
10
|
+
* Reads the file locally, sends base64-encoded media to POST /v2/media/vision,
|
|
11
|
+
* and prints the description. Used by agents to understand media they received.
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'commander';
|
|
14
|
+
export declare function createSeeCommand(): Command;
|
|
15
|
+
//# sourceMappingURL=see.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"see.d.ts","sourceRoot":"","sources":["../../src/commands/see.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8IpC,wBAAgB,gBAAgB,IAAI,OAAO,CAyB1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgbpC,wBAAgB,iBAAiB,IAAI,OAAO,CA8F3C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Speak Command — Voice message verb
|
|
3
|
+
*
|
|
4
|
+
* omni speak "hello" — synthesize + send voice note to open chat
|
|
5
|
+
* omni speak "hello" --provider gemini — force Gemini TTS
|
|
6
|
+
* omni speak "hello" --provider elevenlabs — force ElevenLabs TTS
|
|
7
|
+
* omni speak "hello" --voice Kore — specific voice (provider-dependent)
|
|
8
|
+
* omni speak "hello" --style cheerful — style prompt (Gemini only)
|
|
9
|
+
* omni speak "hello" --reply — quote-reply to trigger message
|
|
10
|
+
* omni speak "hello" --output out.ogg — save locally without sending
|
|
11
|
+
*
|
|
12
|
+
* Uses context resolution (env vars > PG context > config) for instance/chat.
|
|
13
|
+
* TTS provider is resolved server-side through the provider registry:
|
|
14
|
+
* --provider explicit > `tts.provider` setting > first registered.
|
|
15
|
+
*/
|
|
16
|
+
import { Command } from 'commander';
|
|
17
|
+
export declare function createSpeakCommand(): Command;
|
|
18
|
+
//# sourceMappingURL=speak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speak.d.ts","sourceRoot":"","sources":["../../src/commands/speak.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsCpC,wBAAgB,kBAAkB,IAAI,OAAO,CAoG5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use Command
|
|
3
|
+
*
|
|
4
|
+
* omni use <instance>
|
|
5
|
+
*
|
|
6
|
+
* Sets the active instance for the current API key.
|
|
7
|
+
* Scoped agents can only use instances in their allowed list.
|
|
8
|
+
* Admins can switch between any instance.
|
|
9
|
+
*/
|
|
10
|
+
import { Command } from 'commander';
|
|
11
|
+
export declare function createUseCommand(): Command;
|
|
12
|
+
//# sourceMappingURL=use.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../src/commands/use.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,gBAAgB,IAAI,OAAO,CA0B1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where Command
|
|
3
|
+
*
|
|
4
|
+
* omni where
|
|
5
|
+
*
|
|
6
|
+
* Shows the current conversation context: active instance, chat, and message.
|
|
7
|
+
* Displays where each value comes from (flags, env, API, config).
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'commander';
|
|
10
|
+
export declare function createWhereCommand(): Command;
|
|
11
|
+
//# sourceMappingURL=where.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"where.d.ts","sourceRoot":"","sources":["../../src/commands/where.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,kBAAkB,IAAI,OAAO,CAyB5C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Resolution
|
|
3
|
+
*
|
|
4
|
+
* Resolves conversation context (instance, chat, message) through a priority chain:
|
|
5
|
+
* 1. Explicit CLI flags (--instance, --to, --message)
|
|
6
|
+
* 2. Environment variables (OMNI_INSTANCE, OMNI_CHAT, OMNI_MESSAGE)
|
|
7
|
+
* 3. PG-backed context (stored per API key via /context endpoint)
|
|
8
|
+
* 4. Config defaults (defaultInstance from ~/.omni/config.json)
|
|
9
|
+
* 5. Error — no context available
|
|
10
|
+
*/
|
|
11
|
+
export interface ResolvedContext {
|
|
12
|
+
instanceId: string | null;
|
|
13
|
+
chatId: string | null;
|
|
14
|
+
messageId: string | null;
|
|
15
|
+
source: 'flags' | 'env' | 'api' | 'config' | 'none';
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Resolve the current conversation context.
|
|
19
|
+
*
|
|
20
|
+
* @param flags - Explicit CLI flags passed by the user
|
|
21
|
+
* @returns Resolved context with source indicator
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveContext(flags?: {
|
|
24
|
+
instance?: string;
|
|
25
|
+
chat?: string;
|
|
26
|
+
message?: string;
|
|
27
|
+
}): Promise<ResolvedContext>;
|
|
28
|
+
/**
|
|
29
|
+
* Resolve instance ID with context fallback.
|
|
30
|
+
* Returns the instance ID or exits with error if none available.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveInstanceFromContext(explicitInstance?: string): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Resolve the message ID for --reply.
|
|
35
|
+
*
|
|
36
|
+
* Priority:
|
|
37
|
+
* 1. Explicit message ID passed via --reply <id>
|
|
38
|
+
* 2. OMNI_MESSAGE env var (set by turn-based dispatcher)
|
|
39
|
+
* 3. messageId from resolved context (PG-backed)
|
|
40
|
+
* 4. null — no reply target available
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveReplyTo(explicitMessageId?: string): Promise<string | null>;
|
|
43
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CACrD;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,KAAK,CAAC,EAAE;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,eAAe,CAAC,CA4D3B;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAS3F;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAevF"}
|