@automagik/omni 2.260428.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 +50 -3
- package/dist/output.d.ts +10 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-routes.d.ts","sourceRoot":"","sources":["../../src/commands/agent-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-routes.d.ts","sourceRoot":"","sources":["../../src/commands/agent-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuLpC,wBAAgB,mBAAmB,IAAI,OAAO,CAmM7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoJpC,wBAAgB,mBAAmB,IAAI,OAAO,CAsL7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgFpC,wBAAgB,oBAAoB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgFpC,wBAAgB,oBAAoB,IAAI,OAAO,CAiG9C"}
|
|
@@ -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;AA2LpC,wBAAgB,sBAAsB,IAAI,OAAO,CAstChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/commands/providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC;;GAEG;AACH,iBAAS,eAAe,CAAC,CAAC,EAAE,SAAS,GAAG;IACtC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAOA;AAED;;GAEG;AAC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AAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAMA;AAED,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAyUF,wBAAgB,sBAAsB,IAAI,OAAO,CA8IhD"}
|
package/dist/index.js
CHANGED
|
@@ -2798,6 +2798,7 @@ var init_config = __esm(() => {
|
|
|
2798
2798
|
var exports_output = {};
|
|
2799
2799
|
__export(exports_output, {
|
|
2800
2800
|
warn: () => warn,
|
|
2801
|
+
tip: () => tip,
|
|
2801
2802
|
success: () => success,
|
|
2802
2803
|
setMaxCellWidth: () => setMaxCellWidth,
|
|
2803
2804
|
raw: () => raw,
|
|
@@ -2867,6 +2868,14 @@ function warn(message) {
|
|
|
2867
2868
|
writeStdoutLine(`${c().yellow("\u26A0")} ${message}`);
|
|
2868
2869
|
}
|
|
2869
2870
|
}
|
|
2871
|
+
function tip(message) {
|
|
2872
|
+
const format = getCurrentFormat();
|
|
2873
|
+
if (format === "json") {
|
|
2874
|
+
console.error(JSON.stringify({ tip: message }));
|
|
2875
|
+
} else {
|
|
2876
|
+
console.error(`${c().cyan("\uD83D\uDCA1")} ${message}`);
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2870
2879
|
function info(message) {
|
|
2871
2880
|
const format = getCurrentFormat();
|
|
2872
2881
|
if (format === "json") {
|
|
@@ -113929,7 +113938,7 @@ import { fileURLToPath } from "url";
|
|
|
113929
113938
|
// package.json
|
|
113930
113939
|
var package_default = {
|
|
113931
113940
|
name: "@automagik/omni",
|
|
113932
|
-
version: "2.
|
|
113941
|
+
version: "2.260429.2",
|
|
113933
113942
|
description: "LLM-optimized CLI for Omni",
|
|
113934
113943
|
type: "module",
|
|
113935
113944
|
bin: {
|
|
@@ -114595,6 +114604,22 @@ ${ids}`);
|
|
|
114595
114604
|
error(`No route found matching "${input}"`);
|
|
114596
114605
|
}
|
|
114597
114606
|
|
|
114607
|
+
// src/utils/genie-wiring-nudge.ts
|
|
114608
|
+
init_output();
|
|
114609
|
+
async function maybeNudgeForGenieBackedAgent(client, providerId, agentName) {
|
|
114610
|
+
let schema;
|
|
114611
|
+
try {
|
|
114612
|
+
const provider = await client.providers.get(providerId);
|
|
114613
|
+
schema = provider.schema;
|
|
114614
|
+
} catch {
|
|
114615
|
+
return;
|
|
114616
|
+
}
|
|
114617
|
+
if (schema !== "nats-genie")
|
|
114618
|
+
return;
|
|
114619
|
+
const agentSlot = agentName ?? "<agent>";
|
|
114620
|
+
tip(`For genie-backed agents, prefer 'omni connect <instance-id> ${agentSlot}' (or '/genie:omni' from a Claude session) \u2014 it creates the provider, the agent record, and binds the instance in one step. This command stays for power users.`);
|
|
114621
|
+
}
|
|
114622
|
+
|
|
114598
114623
|
// src/commands/agent-routes.ts
|
|
114599
114624
|
function formatReplyFilter(f) {
|
|
114600
114625
|
if (f?.mode === "all")
|
|
@@ -114652,6 +114677,16 @@ async function createAgentRouteAction(options) {
|
|
|
114652
114677
|
isActive: !options.inactive
|
|
114653
114678
|
});
|
|
114654
114679
|
success(`Route created: ${route.id}`);
|
|
114680
|
+
if (options.agent) {
|
|
114681
|
+
try {
|
|
114682
|
+
const agent = await client.agents.get(options.agent);
|
|
114683
|
+
const providerId = agent.agentProviderId;
|
|
114684
|
+
const agentName = agent.name;
|
|
114685
|
+
if (providerId) {
|
|
114686
|
+
await maybeNudgeForGenieBackedAgent(client, providerId, agentName);
|
|
114687
|
+
}
|
|
114688
|
+
} catch {}
|
|
114689
|
+
}
|
|
114655
114690
|
data(route);
|
|
114656
114691
|
} catch (err) {
|
|
114657
114692
|
const message = err instanceof Error ? err.message : "Unknown error";
|
|
@@ -114924,9 +114959,13 @@ function createAgentsCommand() {
|
|
|
114924
114959
|
agents.command("create").description("Create a new agent").requiredOption("--name <name>", "Agent name").requiredOption("--provider <provider>", `AI provider (${VALID_PROVIDERS.join(", ")})`).option("--model <model>", "Model identifier (e.g. claude-sonnet-4-6)").option("--type <type>", `Agent type (${VALID_TYPES.join(", ")})`, "assistant").option("--agent-provider <agentProviderId>", "Link to an agent provider configuration").option("--provider-agent-id <id>", "Provider-internal agent identifier (e.g. agno agent name). Stored at metadata.providerAgentId; used by the dispatcher to resolve agentInternalId.").option("--config-path <path>", "Path to the agent config file (DB column config_path)").option("--metadata <json>", "Additional metadata as JSON string. Merged into metadata; --provider-agent-id takes precedence if both provide providerAgentId.").action(async (options) => {
|
|
114925
114960
|
const body = buildCreateAgentBody(options);
|
|
114926
114961
|
try {
|
|
114927
|
-
const
|
|
114962
|
+
const client = getClient();
|
|
114963
|
+
const agent = await client.agents.create(body);
|
|
114928
114964
|
success(`Agent created: ${agent.id}`);
|
|
114929
114965
|
data(agent);
|
|
114966
|
+
if (options.agentProvider) {
|
|
114967
|
+
await maybeNudgeForGenieBackedAgent(client, options.agentProvider, agent.name);
|
|
114968
|
+
}
|
|
114930
114969
|
} catch (err) {
|
|
114931
114970
|
const message = err instanceof Error ? err.message : "Unknown error";
|
|
114932
114971
|
error(`Failed to create agent: ${message}`);
|
|
@@ -117329,7 +117368,8 @@ Make sure genie is installed and the agent is registered:
|
|
|
117329
117368
|
keyValue("Inbound", `omni.message.${instanceId}.*`);
|
|
117330
117369
|
keyValue("Outbound", `omni.reply.${instanceId}.*`);
|
|
117331
117370
|
header("Next Step");
|
|
117332
|
-
info("
|
|
117371
|
+
info("Verify the bridge is running: genie serve status");
|
|
117372
|
+
info("If not running, start it with: genie serve start --headless");
|
|
117333
117373
|
});
|
|
117334
117374
|
}
|
|
117335
117375
|
|
|
@@ -120761,6 +120801,10 @@ function createInstancesCommand() {
|
|
|
120761
120801
|
if (Object.keys(body).length > 0) {
|
|
120762
120802
|
await client.instances.update(id, body);
|
|
120763
120803
|
success(`Instance updated: ${id}`, body);
|
|
120804
|
+
const agentProviderId = options.agentProvider;
|
|
120805
|
+
if (agentProviderId && agentProviderId !== "null") {
|
|
120806
|
+
await maybeNudgeForGenieBackedAgent(client, agentProviderId);
|
|
120807
|
+
}
|
|
120764
120808
|
} else if (!options.profileName) {
|
|
120765
120809
|
error("No update options provided. Use --help to see all available options.");
|
|
120766
120810
|
}
|
|
@@ -123454,6 +123498,9 @@ async function handleCreate3(options) {
|
|
|
123454
123498
|
Next steps:`);
|
|
123455
123499
|
info(` 1. Test connectivity: omni providers test ${provider.id}`);
|
|
123456
123500
|
info(` 2. Assign to instance: omni instances update <instance-id> --agent-provider ${provider.id}${options.defaultAgentId ? ` --agent ${options.defaultAgentId}` : ""}`);
|
|
123501
|
+
if (options.schema === "nats-genie" && options.agentName) {
|
|
123502
|
+
tip(`For genie-backed agents, prefer 'omni connect <instance-id> ${options.agentName}' (or '/genie:omni' from a Claude session) \u2014 it creates the provider, the agent record, and binds the instance in one step. This command stays for power users.`);
|
|
123503
|
+
}
|
|
123457
123504
|
} catch (err2) {
|
|
123458
123505
|
const message2 = err2 instanceof Error ? err2.message : "Unknown error";
|
|
123459
123506
|
error(`Failed to create provider: ${message2}`);
|
package/dist/output.d.ts
CHANGED
|
@@ -17,6 +17,16 @@ export declare function success(message: string, data?: unknown): void;
|
|
|
17
17
|
export declare function error(message: string, details?: unknown, exitCode?: number): never;
|
|
18
18
|
/** Output warning message. In JSON mode, writes to stderr to keep stdout as valid JSON. */
|
|
19
19
|
export declare function warn(message: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Output a deprecation tip / nudge — ALWAYS to stderr regardless of format.
|
|
22
|
+
*
|
|
23
|
+
* Unlike `info` / `warn`, this never goes to stdout so CI scripts that grep
|
|
24
|
+
* stdout for command output remain unaffected. Use for "prefer X over Y"
|
|
25
|
+
* hints on legacy command paths that still work but are being deprioritized
|
|
26
|
+
* (e.g., the manual nats-genie wiring chain — operators should use
|
|
27
|
+
* `omni connect` or `/genie:omni` instead).
|
|
28
|
+
*/
|
|
29
|
+
export declare function tip(message: string): void;
|
|
20
30
|
/** Output info message. In JSON mode, writes to stderr to keep stdout as valid JSON. */
|
|
21
31
|
export declare function info(message: string): void;
|
|
22
32
|
/** Output data (main output) */
|
package/dist/output.d.ts.map
CHANGED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IAAI,CAEnD;AAED,4GAA4G;AAC5G,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAclG;AAsFD,6BAA6B;AAC7B,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAQ1D;AAED,6BAA6B;AAC7B,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI1C;AAED,kCAAkC;AAClC,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAItC;AAED,8CAA8C;AAC9C,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAOjD"}
|
package/dist/server/index.js
CHANGED
|
@@ -224554,7 +224554,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
224554
224554
|
var require_package8 = __commonJS((exports, module) => {
|
|
224555
224555
|
module.exports = {
|
|
224556
224556
|
name: "@omni/api",
|
|
224557
|
-
version: "2.
|
|
224557
|
+
version: "2.260429.2",
|
|
224558
224558
|
type: "module",
|
|
224559
224559
|
exports: {
|
|
224560
224560
|
".": {
|
|
@@ -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"
|