@automagik/omni 2.260427.1 → 2.260429.2
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/dist/commands/agent-routes.d.ts.map +1 -1
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/instances.d.ts.map +1 -1
- package/dist/commands/providers.d.ts.map +1 -1
- package/dist/index.js +54 -4
- package/dist/output.d.ts +10 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/pm2.d.ts +6 -0
- package/dist/pm2.d.ts.map +1 -1
- package/dist/server/index.js +952 -270
- package/dist/utils/genie-wiring-nudge.d.ts +32 -0
- package/dist/utils/genie-wiring-nudge.d.ts.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Genie Wiring Deprecation Nudge
|
|
3
|
+
*
|
|
4
|
+
* Shared helper that emits a stderr tip when an operator runs one of the
|
|
5
|
+
* legacy multi-command genie-wiring entry points (`agents create`,
|
|
6
|
+
* `instances update --agent`, `agent-routes create`) on a `nats-genie`
|
|
7
|
+
* provider. The tip steers them toward the canonical
|
|
8
|
+
* `omni connect <instance> <agent>` (or the `/genie:omni` skill from a
|
|
9
|
+
* Claude session) without breaking the legacy path.
|
|
10
|
+
*
|
|
11
|
+
* Why a shared helper: each caller needs the same provider-fetch +
|
|
12
|
+
* schema-check logic. A single helper keeps the nudge text in one place
|
|
13
|
+
* and makes the "best-effort, never throw" semantics explicit.
|
|
14
|
+
*
|
|
15
|
+
* Tracked under the canonical-genie-omni-wiring wish (Wave 3 / Group 5,
|
|
16
|
+
* second half — indirect-detection). The schema-detected case
|
|
17
|
+
* (`providers create --schema nats-genie`) was wired in PR #553.
|
|
18
|
+
*/
|
|
19
|
+
import type { OmniClient } from '@omni/sdk';
|
|
20
|
+
/**
|
|
21
|
+
* If `providerId` references a provider whose schema is `nats-genie`,
|
|
22
|
+
* emit the deprecation nudge to stderr. Best-effort: if the provider
|
|
23
|
+
* lookup fails (network, 404, etc.), silently skip — the nudge is a
|
|
24
|
+
* UX hint, not a contract.
|
|
25
|
+
*
|
|
26
|
+
* @param agentName Optional agent name to fold into the suggested
|
|
27
|
+
* `omni connect <instance> <agentName>` example. When omitted (e.g.,
|
|
28
|
+
* `agent-routes create` doesn't always know the agent's display name),
|
|
29
|
+
* the example uses a placeholder.
|
|
30
|
+
*/
|
|
31
|
+
export declare function maybeNudgeForGenieBackedAgent(client: OmniClient, providerId: string, agentName?: string): Promise<void>;
|
|
32
|
+
//# sourceMappingURL=genie-wiring-nudge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genie-wiring-nudge.d.ts","sourceRoot":"","sources":["../../src/utils/genie-wiring-nudge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG5C;;;;;;;;;;GAUG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automagik/omni",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.260429.2",
|
|
4
4
|
"description": "LLM-optimized CLI for Omni",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"qrcode-terminal": "^0.12.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@omni/api": "2.
|
|
54
|
-
"@omni/channel-discord": "2.
|
|
55
|
-
"@omni/channel-gupshup": "2.
|
|
56
|
-
"@omni/channel-sdk": "2.
|
|
57
|
-
"@omni/channel-slack": "2.
|
|
58
|
-
"@omni/channel-telegram": "2.
|
|
59
|
-
"@omni/channel-whatsapp": "2.
|
|
60
|
-
"@omni/core": "2.
|
|
61
|
-
"@omni/sdk": "2.
|
|
53
|
+
"@omni/api": "2.260429.1",
|
|
54
|
+
"@omni/channel-discord": "2.260429.1",
|
|
55
|
+
"@omni/channel-gupshup": "2.260429.1",
|
|
56
|
+
"@omni/channel-sdk": "2.260429.1",
|
|
57
|
+
"@omni/channel-slack": "2.260429.1",
|
|
58
|
+
"@omni/channel-telegram": "2.260429.1",
|
|
59
|
+
"@omni/channel-whatsapp": "2.260429.1",
|
|
60
|
+
"@omni/core": "2.260429.1",
|
|
61
|
+
"@omni/sdk": "2.260429.1",
|
|
62
62
|
"@types/node": "^22.10.3",
|
|
63
63
|
"@types/qrcode-terminal": "^0.12.2",
|
|
64
64
|
"typescript": "^5.7.3"
|