@automagik/omni 2.260423.2 → 2.260423.3

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.
@@ -15,6 +15,40 @@
15
15
  * omni providers test <id>
16
16
  * omni providers delete <id>
17
17
  */
18
+ import type { AgnoAgent, AgnoTeam, AgnoWorkflow } from '@omni/sdk';
18
19
  import { Command } from 'commander';
20
+ /**
21
+ * Map agno 2.5+ (`id`) and pre-2.5 (`agent_id`) agent shapes to the list row.
22
+ */
23
+ declare function mapAgnoAgentRow(a: AgnoAgent): {
24
+ id: string | undefined;
25
+ name: string;
26
+ model: string;
27
+ description: string;
28
+ };
29
+ /**
30
+ * Map agno 2.5+ (`id`) and pre-2.5 (`team_id`) team shapes to the list row.
31
+ */
32
+ declare function mapAgnoTeamRow(t: AgnoTeam): {
33
+ id: string | undefined;
34
+ name: string;
35
+ mode: string;
36
+ members: number;
37
+ description: string;
38
+ };
39
+ /**
40
+ * Map agno 2.5+ (`id`) and pre-2.5 (`workflow_id`) workflow shapes to the list row.
41
+ */
42
+ declare function mapAgnoWorkflowRow(w: AgnoWorkflow): {
43
+ id: string | undefined;
44
+ name: string;
45
+ description: string;
46
+ };
47
+ export declare const __testables: {
48
+ mapAgnoAgentRow: typeof mapAgnoAgentRow;
49
+ mapAgnoTeamRow: typeof mapAgnoTeamRow;
50
+ mapAgnoWorkflowRow: typeof mapAgnoWorkflowRow;
51
+ };
19
52
  export declare function createProvidersCommand(): Command;
53
+ export {};
20
54
  //# sourceMappingURL=providers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/commands/providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiUpC,wBAAgB,sBAAsB,IAAI,OAAO,CA6JhD"}
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;AACH,iBAAS,cAAc,CAAC,CAAC,EAAE,QAAQ,GAAG;IACpC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAQA;AAED;;GAEG;AACH,iBAAS,kBAAkB,CAAC,CAAC,EAAE,YAAY,GAAG;IAC5C,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAMA;AAED,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AA6TF,wBAAgB,sBAAsB,IAAI,OAAO,CA8IhD"}
package/dist/index.js CHANGED
@@ -113839,7 +113839,7 @@ import { fileURLToPath } from "url";
113839
113839
  // package.json
113840
113840
  var package_default = {
113841
113841
  name: "@automagik/omni",
113842
- version: "2.260423.2",
113842
+ version: "2.260423.3",
113843
113843
  description: "LLM-optimized CLI for Omni",
113844
113844
  type: "module",
113845
113845
  bin: {
@@ -123139,6 +123139,30 @@ function createSetupCommand() {
123139
123139
  }
123140
123140
 
123141
123141
  // src/commands/providers.ts
123142
+ function mapAgnoAgentRow(a2) {
123143
+ return {
123144
+ id: a2.id ?? a2.agent_id,
123145
+ name: a2.name,
123146
+ model: a2.model?.name ?? "-",
123147
+ description: a2.description?.slice(0, 50) ?? "-"
123148
+ };
123149
+ }
123150
+ function mapAgnoTeamRow(t) {
123151
+ return {
123152
+ id: t.id ?? t.team_id,
123153
+ name: t.name,
123154
+ mode: t.mode ?? "-",
123155
+ members: t.members?.length ?? 0,
123156
+ description: t.description?.slice(0, 50) ?? "-"
123157
+ };
123158
+ }
123159
+ function mapAgnoWorkflowRow(w) {
123160
+ return {
123161
+ id: w.id ?? w.workflow_id,
123162
+ name: w.name,
123163
+ description: w.description?.slice(0, 50) ?? "-"
123164
+ };
123165
+ }
123142
123166
  var VALID_SCHEMAS = PROVIDER_SCHEMAS;
123143
123167
  var WS_ONLY_SCHEMAS = ["openclaw"];
123144
123168
  function validateUrlScheme(schema3, baseUrl) {
@@ -123401,12 +123425,7 @@ function createProvidersCommand() {
123401
123425
  const client = getClient();
123402
123426
  try {
123403
123427
  const agents2 = await client.providers.listAgents(resolvedId);
123404
- const items = agents2.map((a2) => ({
123405
- id: a2.agent_id,
123406
- name: a2.name,
123407
- model: a2.model?.name ?? "-",
123408
- description: a2.description?.slice(0, 50) ?? "-"
123409
- }));
123428
+ const items = agents2.map(mapAgnoAgentRow);
123410
123429
  list(items, { emptyMessage: "No agents found." });
123411
123430
  } catch (err2) {
123412
123431
  const message2 = err2 instanceof Error ? err2.message : "Unknown error";
@@ -123418,13 +123437,7 @@ function createProvidersCommand() {
123418
123437
  const client = getClient();
123419
123438
  try {
123420
123439
  const teams = await client.providers.listTeams(resolvedId);
123421
- const items = teams.map((t) => ({
123422
- id: t.team_id,
123423
- name: t.name,
123424
- mode: t.mode ?? "-",
123425
- members: t.members?.length ?? 0,
123426
- description: t.description?.slice(0, 50) ?? "-"
123427
- }));
123440
+ const items = teams.map(mapAgnoTeamRow);
123428
123441
  list(items, { emptyMessage: "No teams found." });
123429
123442
  } catch (err2) {
123430
123443
  const message2 = err2 instanceof Error ? err2.message : "Unknown error";
@@ -123436,11 +123449,7 @@ function createProvidersCommand() {
123436
123449
  const client = getClient();
123437
123450
  try {
123438
123451
  const workflows = await client.providers.listWorkflows(resolvedId);
123439
- const items = workflows.map((w) => ({
123440
- id: w.workflow_id,
123441
- name: w.name,
123442
- description: w.description?.slice(0, 50) ?? "-"
123443
- }));
123452
+ const items = workflows.map(mapAgnoWorkflowRow);
123444
123453
  list(items, { emptyMessage: "No workflows found." });
123445
123454
  } catch (err2) {
123446
123455
  const message2 = err2 instanceof Error ? err2.message : "Unknown error";
@@ -224464,7 +224464,7 @@ var init_sentry_scrub = __esm(() => {
224464
224464
  var require_package8 = __commonJS((exports, module) => {
224465
224465
  module.exports = {
224466
224466
  name: "@omni/api",
224467
- version: "2.260423.2",
224467
+ version: "2.260423.3",
224468
224468
  type: "module",
224469
224469
  exports: {
224470
224470
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260423.2",
3
+ "version": "2.260423.3",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,15 +39,15 @@
39
39
  "qrcode-terminal": "^0.12.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@omni/api": "2.260423.1",
43
- "@omni/channel-discord": "2.260423.1",
44
- "@omni/channel-gupshup": "2.260423.1",
45
- "@omni/channel-sdk": "2.260423.1",
46
- "@omni/channel-slack": "2.260423.1",
47
- "@omni/channel-telegram": "2.260423.1",
48
- "@omni/channel-whatsapp": "2.260423.1",
49
- "@omni/core": "2.260423.1",
50
- "@omni/sdk": "2.260423.1",
42
+ "@omni/api": "2.260423.2",
43
+ "@omni/channel-discord": "2.260423.2",
44
+ "@omni/channel-gupshup": "2.260423.2",
45
+ "@omni/channel-sdk": "2.260423.2",
46
+ "@omni/channel-slack": "2.260423.2",
47
+ "@omni/channel-telegram": "2.260423.2",
48
+ "@omni/channel-whatsapp": "2.260423.2",
49
+ "@omni/core": "2.260423.2",
50
+ "@omni/sdk": "2.260423.2",
51
51
  "@types/node": "^22.10.3",
52
52
  "@types/qrcode-terminal": "^0.12.2",
53
53
  "typescript": "^5.7.3"