@automagik/omni 2.20260218.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/bin/omni +2 -0
- package/dist/__tests__/mock-api.d.ts +32 -0
- package/dist/__tests__/mock-api.d.ts.map +1 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/commands/access.d.ts +13 -0
- package/dist/commands/access.d.ts.map +1 -0
- package/dist/commands/agent-routes.d.ts +14 -0
- package/dist/commands/agent-routes.d.ts.map +1 -0
- package/dist/commands/auth.d.ts +10 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/automations.d.ts +25 -0
- package/dist/commands/automations.d.ts.map +1 -0
- package/dist/commands/batch.d.ts +14 -0
- package/dist/commands/batch.d.ts.map +1 -0
- package/dist/commands/channels.d.ts +12 -0
- package/dist/commands/channels.d.ts.map +1 -0
- package/dist/commands/chats.d.ts +16 -0
- package/dist/commands/chats.d.ts.map +1 -0
- package/dist/commands/completions.d.ts +10 -0
- package/dist/commands/completions.d.ts.map +1 -0
- package/dist/commands/config.d.ts +10 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/dead-letters.d.ts +13 -0
- package/dist/commands/dead-letters.d.ts.map +1 -0
- package/dist/commands/events.d.ts +10 -0
- package/dist/commands/events.d.ts.map +1 -0
- package/dist/commands/instances.d.ts +22 -0
- package/dist/commands/instances.d.ts.map +1 -0
- package/dist/commands/journey.d.ts +9 -0
- package/dist/commands/journey.d.ts.map +1 -0
- package/dist/commands/keys.d.ts +8 -0
- package/dist/commands/keys.d.ts.map +1 -0
- package/dist/commands/logs.d.ts +8 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/media.d.ts +13 -0
- package/dist/commands/media.d.ts.map +1 -0
- package/dist/commands/messages.d.ts +10 -0
- package/dist/commands/messages.d.ts.map +1 -0
- package/dist/commands/payloads.d.ts +13 -0
- package/dist/commands/payloads.d.ts.map +1 -0
- package/dist/commands/persons.d.ts +10 -0
- package/dist/commands/persons.d.ts.map +1 -0
- package/dist/commands/prompts.d.ts +13 -0
- package/dist/commands/prompts.d.ts.map +1 -0
- package/dist/commands/providers.d.ts +17 -0
- package/dist/commands/providers.d.ts.map +1 -0
- package/dist/commands/resync.d.ts +12 -0
- package/dist/commands/resync.d.ts.map +1 -0
- package/dist/commands/send.d.ts +11 -0
- package/dist/commands/send.d.ts.map +1 -0
- package/dist/commands/settings.d.ts +10 -0
- package/dist/commands/settings.d.ts.map +1 -0
- package/dist/commands/status.d.ts +8 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/tts.d.ts +8 -0
- package/dist/commands/tts.d.ts.map +1 -0
- package/dist/commands/update.d.ts +8 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/webhooks.d.ts +13 -0
- package/dist/commands/webhooks.d.ts.map +1 -0
- package/dist/config.d.ts +50 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/help.d.ts +69 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40047 -0
- package/dist/output.d.ts +39 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/resolve.d.ts +90 -0
- package/dist/resolve.d.ts.map +1 -0
- package/dist/server/index.js +153866 -0
- package/dist/status.d.ts +23 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +39 -0
package/dist/help.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Help Formatting Utilities
|
|
3
|
+
*
|
|
4
|
+
* Reusable utilities for formatting CLI help text.
|
|
5
|
+
*/
|
|
6
|
+
/** Option definition for grouped options display */
|
|
7
|
+
export interface OptionDef {
|
|
8
|
+
flags: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
/** Example definition for examples section */
|
|
12
|
+
export interface Example {
|
|
13
|
+
command: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Format a section with title and indented content.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* formatSection('Quick Start', 'omni send --to +55 --text "Hi"')
|
|
21
|
+
* // Returns:
|
|
22
|
+
* // Quick Start:
|
|
23
|
+
* // omni send --to +55 --text "Hi"
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatSection(title: string, content: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Format a group of options with a group title.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* formatOptionGroup('Text Message', [
|
|
31
|
+
* { flags: '--text <text>', description: 'Message content' }
|
|
32
|
+
* ])
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatOptionGroup(title: string, options: OptionDef[]): string;
|
|
35
|
+
/**
|
|
36
|
+
* Format examples section.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* formatExamples([
|
|
40
|
+
* { command: 'omni send --to +55 --text "Hi"', description: 'Send text' }
|
|
41
|
+
* ])
|
|
42
|
+
*/
|
|
43
|
+
export declare function formatExamples(examples: Example[]): string;
|
|
44
|
+
/**
|
|
45
|
+
* Format key-value pairs in a compact display.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* formatKeyValue({ instance: 'cezar-personal', format: 'human' })
|
|
49
|
+
* // Returns: "instance=cezar-personal, format=human"
|
|
50
|
+
*/
|
|
51
|
+
export declare function formatKeyValue(pairs: Record<string, string | undefined>): string;
|
|
52
|
+
/**
|
|
53
|
+
* Indent text by a number of spaces.
|
|
54
|
+
*/
|
|
55
|
+
export declare function indent(text: string, spaces?: number): string;
|
|
56
|
+
/**
|
|
57
|
+
* Format command groups for help display.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* formatCommandGroups({
|
|
61
|
+
* Core: [{ name: 'send', description: 'Send message' }]
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
export interface CommandInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
}
|
|
68
|
+
export declare function formatCommandGroups(groups: Record<string, CommandInfo[]>): string;
|
|
69
|
+
//# sourceMappingURL=help.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,8CAA8C;AAC9C,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAUD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAQ7E;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,CAQ1D;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAMhF;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAMvD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,GAAG,MAAM,CAkBjF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* Omni CLI - LLM-optimized command-line interface
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* omni auth login --api-key sk_xxx
|
|
7
|
+
* omni instances list
|
|
8
|
+
* omni send --instance abc --to +1234567890 --text "Hello"
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG"}
|