@duvoai/cli 1.1.0 → 1.2.0
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/bin/duvo.js +368 -303
- package/dist/bin/duvo.js.map +4 -4
- package/package.json +1 -1
package/dist/bin/duvo.js
CHANGED
|
@@ -11597,8 +11597,72 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
|
|
|
11597
11597
|
}
|
|
11598
11598
|
__name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
|
|
11599
11599
|
|
|
11600
|
-
// src/commands/build-integrations/
|
|
11600
|
+
// src/commands/build-integrations/case-queue-setup.ts
|
|
11601
|
+
import { z as z71 } from "zod";
|
|
11602
|
+
var slotSchema = z71.object({
|
|
11603
|
+
config_id: z71.string(),
|
|
11604
|
+
integration_type: z71.string(),
|
|
11605
|
+
linked_queue_count: z71.number()
|
|
11606
|
+
});
|
|
11607
|
+
var responseSchema2 = z71.object({
|
|
11608
|
+
configs: z71.array(slotSchema),
|
|
11609
|
+
has_available_queues: z71.boolean()
|
|
11610
|
+
});
|
|
11601
11611
|
var TABLE_COLUMNS9 = [
|
|
11612
|
+
{ header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
|
|
11613
|
+
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.integration_type, "cell") },
|
|
11614
|
+
{ header: "QUEUES", cell: /* @__PURE__ */ __name((row) => String(row.linked_queue_count), "cell") },
|
|
11615
|
+
{
|
|
11616
|
+
header: "STATUS",
|
|
11617
|
+
cell: /* @__PURE__ */ __name((row) => row.linked_queue_count === 0 ? "no queue linked \u2014 will fail" : "ok", "cell")
|
|
11618
|
+
}
|
|
11619
|
+
];
|
|
11620
|
+
function registerBuildIntegrationsCaseQueueSetup(buildIntegrations) {
|
|
11621
|
+
buildIntegrations.command("case-queue-setup").description(
|
|
11622
|
+
"Check that a revision's case-queue integration slots each point at a queue"
|
|
11623
|
+
).requiredOption("--agent <id>", "ID of the agent the revision belongs to").requiredOption("--revision <id>", "ID of the revision").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function setupAction(options) {
|
|
11624
|
+
const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
|
|
11625
|
+
const raw = await httpRequest({
|
|
11626
|
+
method: "GET",
|
|
11627
|
+
path: `/v2/agents/${encodeURIComponent(options.agent)}/revisions/${encodeURIComponent(options.revision)}/case-queue-validation`,
|
|
11628
|
+
apiKey,
|
|
11629
|
+
apiBaseUrl
|
|
11630
|
+
});
|
|
11631
|
+
if (options.json) {
|
|
11632
|
+
printJson(raw);
|
|
11633
|
+
return;
|
|
11634
|
+
}
|
|
11635
|
+
const parsed = responseSchema2.safeParse(raw);
|
|
11636
|
+
if (!parsed.success) {
|
|
11637
|
+
throw new CliError(
|
|
11638
|
+
`Unexpected response from the API: ${parsed.error.message}`
|
|
11639
|
+
);
|
|
11640
|
+
}
|
|
11641
|
+
const { configs, has_available_queues: hasAvailableQueues } = parsed.data;
|
|
11642
|
+
if (configs.length === 0) {
|
|
11643
|
+
console.log("No case-queue integration slots on this revision.");
|
|
11644
|
+
return;
|
|
11645
|
+
}
|
|
11646
|
+
console.log(renderTable(TABLE_COLUMNS9, configs));
|
|
11647
|
+
const unmapped = configs.filter((slot) => slot.linked_queue_count === 0);
|
|
11648
|
+
if (unmapped.length > 0) {
|
|
11649
|
+
console.log(
|
|
11650
|
+
`${unmapped.length} slot(s) point at no queue and will fail at runtime \u2014 link a queue with "revision-integrations queues set".`
|
|
11651
|
+
);
|
|
11652
|
+
if (!hasAvailableQueues) {
|
|
11653
|
+
console.log(
|
|
11654
|
+
'Your team owns no case queues yet \u2014 create one with "queues create" first.'
|
|
11655
|
+
);
|
|
11656
|
+
}
|
|
11657
|
+
} else {
|
|
11658
|
+
console.log("All case-queue slots are linked to at least one queue.");
|
|
11659
|
+
}
|
|
11660
|
+
}, "setupAction"));
|
|
11661
|
+
}
|
|
11662
|
+
__name(registerBuildIntegrationsCaseQueueSetup, "registerBuildIntegrationsCaseQueueSetup");
|
|
11663
|
+
|
|
11664
|
+
// src/commands/build-integrations/connections-list.ts
|
|
11665
|
+
var TABLE_COLUMNS10 = [
|
|
11602
11666
|
{
|
|
11603
11667
|
header: "CONNECTION ID",
|
|
11604
11668
|
cell: /* @__PURE__ */ __name((row) => row.connection_id, "cell")
|
|
@@ -11637,7 +11701,7 @@ function registerBuildIntegrationsConnectionsList(connections) {
|
|
|
11637
11701
|
console.log("No connections pinned to this slot.");
|
|
11638
11702
|
return;
|
|
11639
11703
|
}
|
|
11640
|
-
console.log(renderTable(
|
|
11704
|
+
console.log(renderTable(TABLE_COLUMNS10, rows));
|
|
11641
11705
|
console.log(`Showing ${rows.length}`);
|
|
11642
11706
|
}, "listAction"));
|
|
11643
11707
|
}
|
|
@@ -11707,7 +11771,7 @@ function registerBuildIntegrationsConnectionsUnpin(connections) {
|
|
|
11707
11771
|
__name(registerBuildIntegrationsConnectionsUnpin, "registerBuildIntegrationsConnectionsUnpin");
|
|
11708
11772
|
|
|
11709
11773
|
// src/commands/build-integrations/list.ts
|
|
11710
|
-
var
|
|
11774
|
+
var TABLE_COLUMNS11 = [
|
|
11711
11775
|
{
|
|
11712
11776
|
header: "INTEGRATION ID",
|
|
11713
11777
|
cell: /* @__PURE__ */ __name((row) => row.integration_id ?? row.custom_integration_id ?? "", "cell")
|
|
@@ -11747,14 +11811,14 @@ function registerBuildIntegrationsList(buildIntegrations) {
|
|
|
11747
11811
|
console.log("No integrations attached to this revision.");
|
|
11748
11812
|
return;
|
|
11749
11813
|
}
|
|
11750
|
-
console.log(renderTable(
|
|
11814
|
+
console.log(renderTable(TABLE_COLUMNS11, integrations));
|
|
11751
11815
|
console.log(`Showing ${integrations.length}`);
|
|
11752
11816
|
}, "listAction"));
|
|
11753
11817
|
}
|
|
11754
11818
|
__name(registerBuildIntegrationsList, "registerBuildIntegrationsList");
|
|
11755
11819
|
|
|
11756
11820
|
// src/commands/build-integrations/queues-list.ts
|
|
11757
|
-
var
|
|
11821
|
+
var TABLE_COLUMNS12 = [
|
|
11758
11822
|
{ header: "QUEUE ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
11759
11823
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") }
|
|
11760
11824
|
];
|
|
@@ -11786,14 +11850,14 @@ function registerBuildIntegrationsQueuesList(queues) {
|
|
|
11786
11850
|
console.log("No case queues linked to this integration slot.");
|
|
11787
11851
|
return;
|
|
11788
11852
|
}
|
|
11789
|
-
console.log(renderTable(
|
|
11853
|
+
console.log(renderTable(TABLE_COLUMNS12, parsed.data.queues));
|
|
11790
11854
|
console.log(`Showing ${parsed.data.queues.length}`);
|
|
11791
11855
|
}, "listAction"));
|
|
11792
11856
|
}
|
|
11793
11857
|
__name(registerBuildIntegrationsQueuesList, "registerBuildIntegrationsQueuesList");
|
|
11794
11858
|
|
|
11795
11859
|
// src/commands/build-integrations/queues-set.ts
|
|
11796
|
-
var
|
|
11860
|
+
var TABLE_COLUMNS13 = [
|
|
11797
11861
|
{ header: "QUEUE ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
11798
11862
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") }
|
|
11799
11863
|
];
|
|
@@ -11835,7 +11899,7 @@ function registerBuildIntegrationsQueuesSet(queues) {
|
|
|
11835
11899
|
green(`Linked ${parsed.data.queues.length} case queue(s) to the slot.`)
|
|
11836
11900
|
);
|
|
11837
11901
|
if (parsed.data.queues.length > 0) {
|
|
11838
|
-
console.log(renderTable(
|
|
11902
|
+
console.log(renderTable(TABLE_COLUMNS13, parsed.data.queues));
|
|
11839
11903
|
}
|
|
11840
11904
|
}, "setAction"));
|
|
11841
11905
|
}
|
|
@@ -11878,6 +11942,7 @@ function registerBuildIntegrations(program) {
|
|
|
11878
11942
|
registerBuildIntegrationsList(buildIntegrations);
|
|
11879
11943
|
registerBuildIntegrationsAttach(buildIntegrations);
|
|
11880
11944
|
registerBuildIntegrationsRemove(buildIntegrations);
|
|
11945
|
+
registerBuildIntegrationsCaseQueueSetup(buildIntegrations);
|
|
11881
11946
|
const connections = buildIntegrations.command("connections").description(
|
|
11882
11947
|
"Manage your pinned connections for a revision's integration slot"
|
|
11883
11948
|
);
|
|
@@ -11893,44 +11958,44 @@ function registerBuildIntegrations(program) {
|
|
|
11893
11958
|
__name(registerBuildIntegrations, "registerBuildIntegrations");
|
|
11894
11959
|
|
|
11895
11960
|
// src/api/build-schemas.ts
|
|
11896
|
-
import { z as
|
|
11961
|
+
import { z as z73 } from "zod";
|
|
11897
11962
|
|
|
11898
11963
|
// src/api/json-value.ts
|
|
11899
|
-
import { z as
|
|
11900
|
-
var jsonValueSchema =
|
|
11901
|
-
() =>
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11964
|
+
import { z as z72 } from "zod";
|
|
11965
|
+
var jsonValueSchema = z72.lazy(
|
|
11966
|
+
() => z72.union([
|
|
11967
|
+
z72.string(),
|
|
11968
|
+
z72.number(),
|
|
11969
|
+
z72.boolean(),
|
|
11970
|
+
z72.null(),
|
|
11971
|
+
z72.array(jsonValueSchema),
|
|
11972
|
+
z72.record(z72.string(), jsonValueSchema)
|
|
11908
11973
|
])
|
|
11909
11974
|
);
|
|
11910
11975
|
|
|
11911
11976
|
// src/api/build-schemas.ts
|
|
11912
|
-
var publicBuildSchema2 =
|
|
11913
|
-
id:
|
|
11914
|
-
agent_id:
|
|
11915
|
-
name:
|
|
11916
|
-
status:
|
|
11977
|
+
var publicBuildSchema2 = z73.object({
|
|
11978
|
+
id: z73.string(),
|
|
11979
|
+
agent_id: z73.string(),
|
|
11980
|
+
name: z73.string(),
|
|
11981
|
+
status: z73.string().nullish(),
|
|
11917
11982
|
config: jsonValueSchema.nullish(),
|
|
11918
|
-
revision_number:
|
|
11919
|
-
created_at:
|
|
11920
|
-
updated_at:
|
|
11983
|
+
revision_number: z73.number().nullish(),
|
|
11984
|
+
created_at: z73.string().nullish(),
|
|
11985
|
+
updated_at: z73.string().nullish()
|
|
11921
11986
|
});
|
|
11922
|
-
var listBuildsResponseSchema2 =
|
|
11923
|
-
builds:
|
|
11924
|
-
total:
|
|
11925
|
-
limit:
|
|
11926
|
-
offset:
|
|
11987
|
+
var listBuildsResponseSchema2 = z73.object({
|
|
11988
|
+
builds: z73.array(publicBuildSchema2),
|
|
11989
|
+
total: z73.number().nullish(),
|
|
11990
|
+
limit: z73.number().nullish(),
|
|
11991
|
+
offset: z73.number().nullish()
|
|
11927
11992
|
});
|
|
11928
|
-
var getBuildResponseSchema =
|
|
11993
|
+
var getBuildResponseSchema = z73.object({
|
|
11929
11994
|
build: publicBuildSchema2
|
|
11930
11995
|
});
|
|
11931
|
-
var createBuildResponseSchema =
|
|
11996
|
+
var createBuildResponseSchema = z73.object({
|
|
11932
11997
|
build: publicBuildSchema2,
|
|
11933
|
-
agent:
|
|
11998
|
+
agent: z73.object({ id: z73.string() })
|
|
11934
11999
|
});
|
|
11935
12000
|
|
|
11936
12001
|
// src/commands/builds/create.ts
|
|
@@ -12024,7 +12089,7 @@ __name(registerBuildsGet, "registerBuildsGet");
|
|
|
12024
12089
|
var DEFAULT_LIMIT2 = 20;
|
|
12025
12090
|
var MIN_LIMIT2 = 1;
|
|
12026
12091
|
var MAX_LIMIT2 = 100;
|
|
12027
|
-
var
|
|
12092
|
+
var TABLE_COLUMNS14 = [
|
|
12028
12093
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
12029
12094
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
12030
12095
|
{
|
|
@@ -12067,7 +12132,7 @@ function registerBuildsList(builds) {
|
|
|
12067
12132
|
console.log("No revisions found.");
|
|
12068
12133
|
return;
|
|
12069
12134
|
}
|
|
12070
|
-
console.log(renderTable(
|
|
12135
|
+
console.log(renderTable(TABLE_COLUMNS14, response.builds));
|
|
12071
12136
|
const resolvedOffset = response.offset ?? offset;
|
|
12072
12137
|
const total = response.total ?? null;
|
|
12073
12138
|
const summary = total === null ? `Showing ${response.builds.length} \xB7 offset ${resolvedOffset}` : `Showing ${response.builds.length} of ${total} \xB7 offset ${resolvedOffset}`;
|
|
@@ -12077,9 +12142,9 @@ function registerBuildsList(builds) {
|
|
|
12077
12142
|
__name(registerBuildsList, "registerBuildsList");
|
|
12078
12143
|
|
|
12079
12144
|
// src/commands/builds/promote.ts
|
|
12080
|
-
import { z as
|
|
12081
|
-
var promoteResponseSchema =
|
|
12082
|
-
success:
|
|
12145
|
+
import { z as z74 } from "zod";
|
|
12146
|
+
var promoteResponseSchema = z74.object({
|
|
12147
|
+
success: z74.boolean()
|
|
12083
12148
|
});
|
|
12084
12149
|
function registerBuildsPromote(builds) {
|
|
12085
12150
|
builds.command("promote <id>").description(
|
|
@@ -12538,7 +12603,7 @@ __name(fetchQueueCaseCount, "fetchQueueCaseCount");
|
|
|
12538
12603
|
|
|
12539
12604
|
// src/commands/cases/create.ts
|
|
12540
12605
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
12541
|
-
var
|
|
12606
|
+
var TABLE_COLUMNS15 = [
|
|
12542
12607
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
12543
12608
|
{ header: "TITLE", cell: /* @__PURE__ */ __name((row) => row.title, "cell"), maxWidth: 50 },
|
|
12544
12609
|
{ header: "STATUS", cell: /* @__PURE__ */ __name((row) => row.status, "cell") }
|
|
@@ -12581,7 +12646,7 @@ function registerCasesCreate(cases) {
|
|
|
12581
12646
|
)
|
|
12582
12647
|
);
|
|
12583
12648
|
console.log();
|
|
12584
|
-
console.log(renderTable(
|
|
12649
|
+
console.log(renderTable(TABLE_COLUMNS15, addedCases));
|
|
12585
12650
|
}, "createAction"));
|
|
12586
12651
|
}
|
|
12587
12652
|
__name(registerCasesCreate, "registerCasesCreate");
|
|
@@ -12816,7 +12881,7 @@ __name(registerCasesGet, "registerCasesGet");
|
|
|
12816
12881
|
|
|
12817
12882
|
// src/commands/cases/labels.ts
|
|
12818
12883
|
var MAX_LABELS_PER_REQUEST = 50;
|
|
12819
|
-
var
|
|
12884
|
+
var TABLE_COLUMNS16 = [
|
|
12820
12885
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
12821
12886
|
{ header: "KEY", cell: /* @__PURE__ */ __name((row) => row.key, "cell") },
|
|
12822
12887
|
{ header: "VALUE", cell: /* @__PURE__ */ __name((row) => row.value, "cell") },
|
|
@@ -12846,7 +12911,7 @@ function registerCasesLabels(cases) {
|
|
|
12846
12911
|
console.log("No labels assigned.");
|
|
12847
12912
|
return;
|
|
12848
12913
|
}
|
|
12849
|
-
console.log(renderTable(
|
|
12914
|
+
console.log(renderTable(TABLE_COLUMNS16, parsed.data.labels));
|
|
12850
12915
|
console.log(`Showing ${parsed.data.labels.length}`);
|
|
12851
12916
|
}, "listAction"));
|
|
12852
12917
|
labels.command("assign <case-id>").description(
|
|
@@ -12886,7 +12951,7 @@ function registerCasesLabels(cases) {
|
|
|
12886
12951
|
);
|
|
12887
12952
|
}
|
|
12888
12953
|
console.log(green("Labels assigned!"));
|
|
12889
|
-
console.log(renderTable(
|
|
12954
|
+
console.log(renderTable(TABLE_COLUMNS16, parsed.data.labels));
|
|
12890
12955
|
}, "assignAction"));
|
|
12891
12956
|
labels.command("unlink <case-id>").description(
|
|
12892
12957
|
"Remove one or more labels from a case (by --label-id or --label key=value, for symmetry with assign)"
|
|
@@ -13004,7 +13069,7 @@ var MIN_LIMIT3 = 1;
|
|
|
13004
13069
|
var MAX_LIMIT3 = 100;
|
|
13005
13070
|
var SORT_FIELDS = ["created_at", "updated_at", "postponed_to"];
|
|
13006
13071
|
var SORT_ORDERS = ["asc", "desc"];
|
|
13007
|
-
var
|
|
13072
|
+
var TABLE_COLUMNS17 = [
|
|
13008
13073
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
13009
13074
|
{ header: "TITLE", cell: /* @__PURE__ */ __name((row) => row.title, "cell"), maxWidth: 50 },
|
|
13010
13075
|
{ header: "STATUS", cell: /* @__PURE__ */ __name((row) => row.status, "cell") },
|
|
@@ -13077,7 +13142,7 @@ function registerCasesList(cases) {
|
|
|
13077
13142
|
console.log("No cases found.");
|
|
13078
13143
|
return;
|
|
13079
13144
|
}
|
|
13080
|
-
console.log(renderTable(
|
|
13145
|
+
console.log(renderTable(TABLE_COLUMNS17, response.cases));
|
|
13081
13146
|
const resolvedOffset = response.offset ?? offset;
|
|
13082
13147
|
const total = response.total ?? null;
|
|
13083
13148
|
const summary = total === null ? `Showing ${response.cases.length} \xB7 offset ${resolvedOffset}` : `Showing ${response.cases.length} of ${total} \xB7 offset ${resolvedOffset}`;
|
|
@@ -13131,7 +13196,7 @@ function parseSortOrder(raw) {
|
|
|
13131
13196
|
__name(parseSortOrder, "parseSortOrder");
|
|
13132
13197
|
|
|
13133
13198
|
// src/commands/cases/runs.ts
|
|
13134
|
-
import { z as
|
|
13199
|
+
import { z as z75 } from "zod";
|
|
13135
13200
|
var MIN_LIMIT4 = 1;
|
|
13136
13201
|
var MAX_LIMIT4 = 10;
|
|
13137
13202
|
var DEFAULT_LIMIT4 = 3;
|
|
@@ -13149,17 +13214,17 @@ var RUNS_TABLE_COLUMNS = [
|
|
|
13149
13214
|
cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
|
|
13150
13215
|
}
|
|
13151
13216
|
];
|
|
13152
|
-
var recentMessageSchema =
|
|
13153
|
-
id:
|
|
13154
|
-
type:
|
|
13155
|
-
role:
|
|
13156
|
-
timestamp:
|
|
13157
|
-
text_content:
|
|
13158
|
-
tool_call:
|
|
13159
|
-
tool_result:
|
|
13160
|
-
});
|
|
13161
|
-
var recentMessagesResponseSchema =
|
|
13162
|
-
messages:
|
|
13217
|
+
var recentMessageSchema = z75.object({
|
|
13218
|
+
id: z75.string(),
|
|
13219
|
+
type: z75.string(),
|
|
13220
|
+
role: z75.string(),
|
|
13221
|
+
timestamp: z75.string(),
|
|
13222
|
+
text_content: z75.string().nullish(),
|
|
13223
|
+
tool_call: z75.object({ id: z75.string(), name: z75.string() }).passthrough().nullish(),
|
|
13224
|
+
tool_result: z75.object({ tool_call_id: z75.string() }).passthrough().nullish()
|
|
13225
|
+
});
|
|
13226
|
+
var recentMessagesResponseSchema = z75.object({
|
|
13227
|
+
messages: z75.array(recentMessageSchema)
|
|
13163
13228
|
});
|
|
13164
13229
|
var TEXT_PREVIEW_WIDTH = 60;
|
|
13165
13230
|
var MESSAGES_TABLE_COLUMNS = [
|
|
@@ -13289,7 +13354,7 @@ function registerCases(program) {
|
|
|
13289
13354
|
__name(registerCases, "registerCases");
|
|
13290
13355
|
|
|
13291
13356
|
// src/commands/clarity/index.ts
|
|
13292
|
-
import { z as
|
|
13357
|
+
import { z as z79 } from "zod";
|
|
13293
13358
|
|
|
13294
13359
|
// src/commands/clarity/render.ts
|
|
13295
13360
|
var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
|
|
@@ -14283,16 +14348,16 @@ function formatOptionalBoolean(value) {
|
|
|
14283
14348
|
__name(formatOptionalBoolean, "formatOptionalBoolean");
|
|
14284
14349
|
|
|
14285
14350
|
// src/commands/clarity/get-current-process.ts
|
|
14286
|
-
import { z as
|
|
14287
|
-
var snapshotSchema =
|
|
14288
|
-
snapshot:
|
|
14289
|
-
id:
|
|
14290
|
-
status:
|
|
14291
|
-
creator_type:
|
|
14292
|
-
user_id:
|
|
14293
|
-
sandbox_id:
|
|
14294
|
-
created_at:
|
|
14295
|
-
updated_at:
|
|
14351
|
+
import { z as z76 } from "zod";
|
|
14352
|
+
var snapshotSchema = z76.object({
|
|
14353
|
+
snapshot: z76.object({
|
|
14354
|
+
id: z76.string(),
|
|
14355
|
+
status: z76.string(),
|
|
14356
|
+
creator_type: z76.string(),
|
|
14357
|
+
user_id: z76.string().nullable(),
|
|
14358
|
+
sandbox_id: z76.string().nullable(),
|
|
14359
|
+
created_at: z76.string(),
|
|
14360
|
+
updated_at: z76.string()
|
|
14296
14361
|
})
|
|
14297
14362
|
});
|
|
14298
14363
|
function registerClarityGetCurrentProcess(clarity) {
|
|
@@ -14331,16 +14396,16 @@ function registerClarityGetCurrentProcess(clarity) {
|
|
|
14331
14396
|
__name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
|
|
14332
14397
|
|
|
14333
14398
|
// src/commands/clarity/get-transformation-proposal.ts
|
|
14334
|
-
import { z as
|
|
14335
|
-
var snapshotSchema2 =
|
|
14336
|
-
snapshot:
|
|
14337
|
-
id:
|
|
14338
|
-
status:
|
|
14339
|
-
creator_type:
|
|
14340
|
-
user_id:
|
|
14341
|
-
sandbox_id:
|
|
14342
|
-
created_at:
|
|
14343
|
-
updated_at:
|
|
14399
|
+
import { z as z77 } from "zod";
|
|
14400
|
+
var snapshotSchema2 = z77.object({
|
|
14401
|
+
snapshot: z77.object({
|
|
14402
|
+
id: z77.string(),
|
|
14403
|
+
status: z77.string(),
|
|
14404
|
+
creator_type: z77.string(),
|
|
14405
|
+
user_id: z77.string().nullable(),
|
|
14406
|
+
sandbox_id: z77.string().nullable(),
|
|
14407
|
+
created_at: z77.string(),
|
|
14408
|
+
updated_at: z77.string()
|
|
14344
14409
|
})
|
|
14345
14410
|
});
|
|
14346
14411
|
function registerClarityGetTransformationProposal(clarity) {
|
|
@@ -14445,7 +14510,7 @@ __name(registerClarityGet, "registerClarityGet");
|
|
|
14445
14510
|
var DEFAULT_LIMIT5 = 20;
|
|
14446
14511
|
var MIN_LIMIT5 = 1;
|
|
14447
14512
|
var MAX_LIMIT5 = 100;
|
|
14448
|
-
var
|
|
14513
|
+
var TABLE_COLUMNS18 = [
|
|
14449
14514
|
{
|
|
14450
14515
|
header: "ID",
|
|
14451
14516
|
cell: /* @__PURE__ */ __name((row) => row.id, "cell")
|
|
@@ -14506,7 +14571,7 @@ function registerClarityListExtraCaptureRequests(clarity) {
|
|
|
14506
14571
|
console.log("No extra-capture requests found.");
|
|
14507
14572
|
return;
|
|
14508
14573
|
}
|
|
14509
|
-
console.log(renderTable(
|
|
14574
|
+
console.log(renderTable(TABLE_COLUMNS18, response.requests));
|
|
14510
14575
|
console.log(
|
|
14511
14576
|
`Showing ${response.requests.length} of ${response.total} \xB7 offset ${response.offset}`
|
|
14512
14577
|
);
|
|
@@ -14515,33 +14580,33 @@ function registerClarityListExtraCaptureRequests(clarity) {
|
|
|
14515
14580
|
__name(registerClarityListExtraCaptureRequests, "registerClarityListExtraCaptureRequests");
|
|
14516
14581
|
|
|
14517
14582
|
// src/api/clarity-schemas.ts
|
|
14518
|
-
import { z as
|
|
14519
|
-
var clarityListProcessSchema =
|
|
14520
|
-
id:
|
|
14521
|
-
name:
|
|
14583
|
+
import { z as z78 } from "zod";
|
|
14584
|
+
var clarityListProcessSchema = z78.object({
|
|
14585
|
+
id: z78.guid(),
|
|
14586
|
+
name: z78.string(),
|
|
14522
14587
|
status: clarityProcessStatusSchema,
|
|
14523
|
-
version:
|
|
14524
|
-
capture_count:
|
|
14525
|
-
capture_counts:
|
|
14526
|
-
video:
|
|
14527
|
-
interview:
|
|
14528
|
-
document:
|
|
14588
|
+
version: z78.number().int(),
|
|
14589
|
+
capture_count: z78.number().int(),
|
|
14590
|
+
capture_counts: z78.object({
|
|
14591
|
+
video: z78.number().int(),
|
|
14592
|
+
interview: z78.number().int(),
|
|
14593
|
+
document: z78.number().int()
|
|
14529
14594
|
}).optional(),
|
|
14530
|
-
pending_invitation_count:
|
|
14531
|
-
contributors:
|
|
14532
|
-
|
|
14533
|
-
user_id:
|
|
14534
|
-
user_name:
|
|
14595
|
+
pending_invitation_count: z78.number().int(),
|
|
14596
|
+
contributors: z78.array(
|
|
14597
|
+
z78.object({
|
|
14598
|
+
user_id: z78.string(),
|
|
14599
|
+
user_name: z78.string()
|
|
14535
14600
|
})
|
|
14536
14601
|
),
|
|
14537
|
-
created_at:
|
|
14538
|
-
created_by_name:
|
|
14602
|
+
created_at: z78.string(),
|
|
14603
|
+
created_by_name: z78.string().nullable()
|
|
14539
14604
|
});
|
|
14540
|
-
var listClarityProcessesResponseSchema =
|
|
14541
|
-
processes:
|
|
14542
|
-
total:
|
|
14543
|
-
limit:
|
|
14544
|
-
offset:
|
|
14605
|
+
var listClarityProcessesResponseSchema = z78.object({
|
|
14606
|
+
processes: z78.array(clarityListProcessSchema),
|
|
14607
|
+
total: z78.number().int(),
|
|
14608
|
+
limit: z78.number().int(),
|
|
14609
|
+
offset: z78.number().int()
|
|
14545
14610
|
});
|
|
14546
14611
|
var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
|
|
14547
14612
|
|
|
@@ -15552,8 +15617,8 @@ async function buildTeamContextCheck(config) {
|
|
|
15552
15617
|
}
|
|
15553
15618
|
}
|
|
15554
15619
|
__name(buildTeamContextCheck, "buildTeamContextCheck");
|
|
15555
|
-
var listMyTeamsResponseSchema2 =
|
|
15556
|
-
teams:
|
|
15620
|
+
var listMyTeamsResponseSchema2 = z79.object({
|
|
15621
|
+
teams: z79.array(z79.object({ id: z79.string() }))
|
|
15557
15622
|
});
|
|
15558
15623
|
async function buildClarityApiReachableCheck(command, config) {
|
|
15559
15624
|
let teamId;
|
|
@@ -16254,7 +16319,7 @@ function registerConnectionsGet(connections) {
|
|
|
16254
16319
|
__name(registerConnectionsGet, "registerConnectionsGet");
|
|
16255
16320
|
|
|
16256
16321
|
// src/commands/connections/list.ts
|
|
16257
|
-
var
|
|
16322
|
+
var TABLE_COLUMNS19 = [
|
|
16258
16323
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
16259
16324
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
16260
16325
|
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.type, "cell") },
|
|
@@ -16294,26 +16359,26 @@ function registerConnectionsList(connections) {
|
|
|
16294
16359
|
console.log("No connections found.");
|
|
16295
16360
|
return;
|
|
16296
16361
|
}
|
|
16297
|
-
console.log(renderTable(
|
|
16362
|
+
console.log(renderTable(TABLE_COLUMNS19, rows));
|
|
16298
16363
|
console.log(`Showing ${rows.length}`);
|
|
16299
16364
|
}, "listAction"));
|
|
16300
16365
|
}
|
|
16301
16366
|
__name(registerConnectionsList, "registerConnectionsList");
|
|
16302
16367
|
|
|
16303
16368
|
// src/commands/connections/probe.ts
|
|
16304
|
-
import { z as
|
|
16305
|
-
var toolSchema =
|
|
16306
|
-
name:
|
|
16307
|
-
description:
|
|
16308
|
-
input_schema:
|
|
16369
|
+
import { z as z80 } from "zod";
|
|
16370
|
+
var toolSchema = z80.object({
|
|
16371
|
+
name: z80.string(),
|
|
16372
|
+
description: z80.string().optional(),
|
|
16373
|
+
input_schema: z80.record(z80.string(), z80.unknown()).optional()
|
|
16309
16374
|
});
|
|
16310
|
-
var probeResponseSchema =
|
|
16311
|
-
success:
|
|
16312
|
-
tools:
|
|
16313
|
-
error:
|
|
16375
|
+
var probeResponseSchema = z80.object({
|
|
16376
|
+
success: z80.boolean(),
|
|
16377
|
+
tools: z80.array(toolSchema).optional(),
|
|
16378
|
+
error: z80.string().optional()
|
|
16314
16379
|
});
|
|
16315
16380
|
var DESCRIPTION_MAX_WIDTH = 80;
|
|
16316
|
-
var
|
|
16381
|
+
var TABLE_COLUMNS20 = [
|
|
16317
16382
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
16318
16383
|
{
|
|
16319
16384
|
header: "DESCRIPTION",
|
|
@@ -16373,7 +16438,7 @@ function registerConnectionsProbe(connections) {
|
|
|
16373
16438
|
console.log("No tools found.");
|
|
16374
16439
|
return;
|
|
16375
16440
|
}
|
|
16376
|
-
console.log(renderTable(
|
|
16441
|
+
console.log(renderTable(TABLE_COLUMNS20, tools));
|
|
16377
16442
|
console.log(
|
|
16378
16443
|
`Showing ${tools.length} tool${tools.length === 1 ? "" : "s"}`
|
|
16379
16444
|
);
|
|
@@ -16529,48 +16594,48 @@ function registerConnections(program) {
|
|
|
16529
16594
|
__name(registerConnections, "registerConnections");
|
|
16530
16595
|
|
|
16531
16596
|
// src/api/credential-schemas.ts
|
|
16532
|
-
import { z as
|
|
16533
|
-
var dateLike =
|
|
16534
|
-
var secretSchema =
|
|
16535
|
-
id:
|
|
16536
|
-
team_id:
|
|
16537
|
-
user_id:
|
|
16538
|
-
name:
|
|
16539
|
-
service_slug:
|
|
16540
|
-
env_var_keys:
|
|
16541
|
-
created_by:
|
|
16597
|
+
import { z as z81 } from "zod";
|
|
16598
|
+
var dateLike = z81.string();
|
|
16599
|
+
var secretSchema = z81.object({
|
|
16600
|
+
id: z81.string(),
|
|
16601
|
+
team_id: z81.string(),
|
|
16602
|
+
user_id: z81.string().nullable(),
|
|
16603
|
+
name: z81.string(),
|
|
16604
|
+
service_slug: z81.string().nullable(),
|
|
16605
|
+
env_var_keys: z81.array(z81.string()),
|
|
16606
|
+
created_by: z81.string(),
|
|
16542
16607
|
created_at: dateLike,
|
|
16543
16608
|
updated_at: dateLike
|
|
16544
16609
|
});
|
|
16545
|
-
var secretsListResponseSchema =
|
|
16610
|
+
var secretsListResponseSchema = z81.array(secretSchema);
|
|
16546
16611
|
var secretResponseSchema = secretSchema;
|
|
16547
|
-
var browserLoginSchema =
|
|
16548
|
-
id:
|
|
16549
|
-
user_id:
|
|
16550
|
-
team_id:
|
|
16551
|
-
domain:
|
|
16552
|
-
username:
|
|
16612
|
+
var browserLoginSchema = z81.object({
|
|
16613
|
+
id: z81.string(),
|
|
16614
|
+
user_id: z81.string().nullable(),
|
|
16615
|
+
team_id: z81.string(),
|
|
16616
|
+
domain: z81.string(),
|
|
16617
|
+
username: z81.string().nullable(),
|
|
16553
16618
|
password: encryptedDataSchema.nullable(),
|
|
16554
16619
|
otp_secret: encryptedDataSchema.nullable(),
|
|
16555
16620
|
created_at: dateLike,
|
|
16556
16621
|
updated_at: dateLike
|
|
16557
16622
|
});
|
|
16558
|
-
var browserLoginsListResponseSchema =
|
|
16559
|
-
var revisionLoginSummarySchema =
|
|
16560
|
-
id:
|
|
16561
|
-
user_id:
|
|
16562
|
-
team_id:
|
|
16563
|
-
domain:
|
|
16564
|
-
username:
|
|
16623
|
+
var browserLoginsListResponseSchema = z81.array(credentialPreviewSchema);
|
|
16624
|
+
var revisionLoginSummarySchema = z81.object({
|
|
16625
|
+
id: z81.string(),
|
|
16626
|
+
user_id: z81.string().nullable(),
|
|
16627
|
+
team_id: z81.string().nullable(),
|
|
16628
|
+
domain: z81.string(),
|
|
16629
|
+
username: z81.string().nullable(),
|
|
16565
16630
|
created_at: dateLike,
|
|
16566
16631
|
updated_at: dateLike
|
|
16567
16632
|
});
|
|
16568
|
-
var revisionLoginsListResponseSchema =
|
|
16633
|
+
var revisionLoginsListResponseSchema = z81.array(
|
|
16569
16634
|
revisionLoginSummarySchema
|
|
16570
16635
|
);
|
|
16571
|
-
var revisionSecretsListResponseSchema =
|
|
16572
|
-
var successResponseSchema2 =
|
|
16573
|
-
success:
|
|
16636
|
+
var revisionSecretsListResponseSchema = z81.array(secretSchema);
|
|
16637
|
+
var successResponseSchema2 = z81.object({
|
|
16638
|
+
success: z81.boolean()
|
|
16574
16639
|
});
|
|
16575
16640
|
var attachSuccessResponseSchema = successResponseSchema2;
|
|
16576
16641
|
var deleteSecretResponseSchema = successResponseSchema2;
|
|
@@ -16764,7 +16829,7 @@ function registerCredentialsGet(credentials) {
|
|
|
16764
16829
|
__name(registerCredentialsGet, "registerCredentialsGet");
|
|
16765
16830
|
|
|
16766
16831
|
// src/commands/credentials/list.ts
|
|
16767
|
-
var
|
|
16832
|
+
var TABLE_COLUMNS21 = [
|
|
16768
16833
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
16769
16834
|
{ header: "DOMAIN", cell: /* @__PURE__ */ __name((row) => row.domain, "cell") },
|
|
16770
16835
|
{
|
|
@@ -16823,7 +16888,7 @@ function registerCredentialsList(credentials) {
|
|
|
16823
16888
|
console.log("No credentials found.");
|
|
16824
16889
|
return;
|
|
16825
16890
|
}
|
|
16826
|
-
console.log(renderTable(
|
|
16891
|
+
console.log(renderTable(TABLE_COLUMNS21, rows));
|
|
16827
16892
|
console.log(`Showing ${rows.length}`);
|
|
16828
16893
|
}, "listAction"));
|
|
16829
16894
|
}
|
|
@@ -17103,7 +17168,7 @@ function registerFilesDownloadUrl(files) {
|
|
|
17103
17168
|
__name(registerFilesDownloadUrl, "registerFilesDownloadUrl");
|
|
17104
17169
|
|
|
17105
17170
|
// src/commands/files/list.ts
|
|
17106
|
-
var
|
|
17171
|
+
var TABLE_COLUMNS22 = [
|
|
17107
17172
|
{ header: "PATH", cell: /* @__PURE__ */ __name((row) => row.path, "cell") },
|
|
17108
17173
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
17109
17174
|
{
|
|
@@ -17146,7 +17211,7 @@ function registerFilesList(files) {
|
|
|
17146
17211
|
console.log("No files found.");
|
|
17147
17212
|
return;
|
|
17148
17213
|
}
|
|
17149
|
-
console.log(renderTable(
|
|
17214
|
+
console.log(renderTable(TABLE_COLUMNS22, parsed.data.files));
|
|
17150
17215
|
console.log(`Showing ${parsed.data.files.length}`);
|
|
17151
17216
|
}, "listAction"));
|
|
17152
17217
|
}
|
|
@@ -17408,7 +17473,7 @@ function registerIntegrationsCustom(integrations) {
|
|
|
17408
17473
|
__name(registerIntegrationsCustom, "registerIntegrationsCustom");
|
|
17409
17474
|
|
|
17410
17475
|
// src/commands/integrations/list.ts
|
|
17411
|
-
var
|
|
17476
|
+
var TABLE_COLUMNS23 = [
|
|
17412
17477
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
17413
17478
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
17414
17479
|
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.type, "cell") },
|
|
@@ -17450,7 +17515,7 @@ function registerIntegrationsList(integrations) {
|
|
|
17450
17515
|
console.log("No integrations found.");
|
|
17451
17516
|
return;
|
|
17452
17517
|
}
|
|
17453
|
-
console.log(renderTable(
|
|
17518
|
+
console.log(renderTable(TABLE_COLUMNS23, rows));
|
|
17454
17519
|
console.log(`Showing ${rows.length}`);
|
|
17455
17520
|
}, "listAction"));
|
|
17456
17521
|
}
|
|
@@ -18289,7 +18354,7 @@ function parseHeaders(raw) {
|
|
|
18289
18354
|
return result;
|
|
18290
18355
|
}
|
|
18291
18356
|
__name(parseHeaders, "parseHeaders");
|
|
18292
|
-
var
|
|
18357
|
+
var TABLE_COLUMNS24 = [
|
|
18293
18358
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
18294
18359
|
{ header: "DESCRIPTION", cell: /* @__PURE__ */ __name((row) => row.description, "cell") }
|
|
18295
18360
|
];
|
|
@@ -18347,7 +18412,7 @@ function registerOauthMcpProbe(mcp) {
|
|
|
18347
18412
|
console.log("No tools advertised by this MCP server.");
|
|
18348
18413
|
return;
|
|
18349
18414
|
}
|
|
18350
|
-
console.log(renderTable(
|
|
18415
|
+
console.log(renderTable(TABLE_COLUMNS24, rows));
|
|
18351
18416
|
console.log(`Showing ${rows.length}`);
|
|
18352
18417
|
}, "probeMcpAction"));
|
|
18353
18418
|
}
|
|
@@ -18429,7 +18494,7 @@ function registerOauth(program) {
|
|
|
18429
18494
|
__name(registerOauth, "registerOauth");
|
|
18430
18495
|
|
|
18431
18496
|
// src/commands/plugins/list.ts
|
|
18432
|
-
var
|
|
18497
|
+
var TABLE_COLUMNS25 = [
|
|
18433
18498
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
18434
18499
|
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.type, "cell") },
|
|
18435
18500
|
{
|
|
@@ -18463,7 +18528,7 @@ function registerPluginsList(plugins) {
|
|
|
18463
18528
|
console.log("No plugins found.");
|
|
18464
18529
|
return;
|
|
18465
18530
|
}
|
|
18466
|
-
console.log(renderTable(
|
|
18531
|
+
console.log(renderTable(TABLE_COLUMNS25, parsed.data.plugins));
|
|
18467
18532
|
console.log(`Showing ${parsed.data.plugins.length}`);
|
|
18468
18533
|
}, "listAction"));
|
|
18469
18534
|
}
|
|
@@ -18661,7 +18726,7 @@ function registerProfiles(program) {
|
|
|
18661
18726
|
__name(registerProfiles, "registerProfiles");
|
|
18662
18727
|
|
|
18663
18728
|
// src/commands/queue-labels/index.ts
|
|
18664
|
-
var
|
|
18729
|
+
var TABLE_COLUMNS26 = [
|
|
18665
18730
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
18666
18731
|
{ header: "KEY", cell: /* @__PURE__ */ __name((row) => row.key, "cell") },
|
|
18667
18732
|
{ header: "VALUE", cell: /* @__PURE__ */ __name((row) => row.value, "cell") },
|
|
@@ -18715,7 +18780,7 @@ function registerList3(labels) {
|
|
|
18715
18780
|
console.log("No labels defined on this queue.");
|
|
18716
18781
|
return;
|
|
18717
18782
|
}
|
|
18718
|
-
console.log(renderTable(
|
|
18783
|
+
console.log(renderTable(TABLE_COLUMNS26, parsed.data.labels));
|
|
18719
18784
|
console.log(`Showing ${parsed.data.labels.length}`);
|
|
18720
18785
|
}, "listAction"));
|
|
18721
18786
|
}
|
|
@@ -19469,7 +19534,7 @@ __name(registerQueuesLinkAgent, "registerQueuesLinkAgent");
|
|
|
19469
19534
|
var DEFAULT_LIMIT7 = 20;
|
|
19470
19535
|
var MIN_LIMIT7 = 1;
|
|
19471
19536
|
var MAX_LIMIT7 = 100;
|
|
19472
|
-
var
|
|
19537
|
+
var TABLE_COLUMNS27 = [
|
|
19473
19538
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
19474
19539
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
19475
19540
|
{
|
|
@@ -19517,7 +19582,7 @@ function registerQueuesList(queues) {
|
|
|
19517
19582
|
console.log("No queues found.");
|
|
19518
19583
|
return;
|
|
19519
19584
|
}
|
|
19520
|
-
console.log(renderTable(
|
|
19585
|
+
console.log(renderTable(TABLE_COLUMNS27, response.queues));
|
|
19521
19586
|
const resolvedOffset = response.offset ?? offset;
|
|
19522
19587
|
const total = response.total ?? null;
|
|
19523
19588
|
const summary = total === null ? `Showing ${response.queues.length} \xB7 offset ${resolvedOffset}` : `Showing ${response.queues.length} of ${total} \xB7 offset ${resolvedOffset}`;
|
|
@@ -19775,7 +19840,7 @@ function registerRevisionLoginsDetach(revisionLogins) {
|
|
|
19775
19840
|
__name(registerRevisionLoginsDetach, "registerRevisionLoginsDetach");
|
|
19776
19841
|
|
|
19777
19842
|
// src/commands/revision-logins/list.ts
|
|
19778
|
-
var
|
|
19843
|
+
var TABLE_COLUMNS28 = [
|
|
19779
19844
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
19780
19845
|
{ header: "DOMAIN", cell: /* @__PURE__ */ __name((row) => row.domain, "cell") },
|
|
19781
19846
|
{
|
|
@@ -19811,7 +19876,7 @@ function registerRevisionLoginsList(revisionLogins) {
|
|
|
19811
19876
|
console.log("No browser logins attached to this revision.");
|
|
19812
19877
|
return;
|
|
19813
19878
|
}
|
|
19814
|
-
console.log(renderTable(
|
|
19879
|
+
console.log(renderTable(TABLE_COLUMNS28, rows));
|
|
19815
19880
|
console.log(`Showing ${rows.length}`);
|
|
19816
19881
|
}, "listAction"));
|
|
19817
19882
|
}
|
|
@@ -19884,7 +19949,7 @@ function registerRevisionSecretsDetach(revisionSecrets) {
|
|
|
19884
19949
|
__name(registerRevisionSecretsDetach, "registerRevisionSecretsDetach");
|
|
19885
19950
|
|
|
19886
19951
|
// src/commands/revision-secrets/list.ts
|
|
19887
|
-
var
|
|
19952
|
+
var TABLE_COLUMNS29 = [
|
|
19888
19953
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
19889
19954
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
19890
19955
|
{
|
|
@@ -19922,7 +19987,7 @@ function registerRevisionSecretsList(revisionSecrets) {
|
|
|
19922
19987
|
console.log("No secrets attached to this revision.");
|
|
19923
19988
|
return;
|
|
19924
19989
|
}
|
|
19925
|
-
console.log(renderTable(
|
|
19990
|
+
console.log(renderTable(TABLE_COLUMNS29, rows));
|
|
19926
19991
|
console.log(`Showing ${rows.length}`);
|
|
19927
19992
|
}, "listAction"));
|
|
19928
19993
|
}
|
|
@@ -19938,91 +20003,91 @@ function registerRevisionSecrets(program) {
|
|
|
19938
20003
|
__name(registerRevisionSecrets, "registerRevisionSecrets");
|
|
19939
20004
|
|
|
19940
20005
|
// src/api/run-schemas.ts
|
|
19941
|
-
import { z as
|
|
19942
|
-
var publicRunSchema =
|
|
19943
|
-
id:
|
|
19944
|
-
agent_id:
|
|
19945
|
-
build_id:
|
|
19946
|
-
status:
|
|
19947
|
-
source:
|
|
19948
|
-
sandbox_id:
|
|
19949
|
-
started_at:
|
|
19950
|
-
completed_at:
|
|
19951
|
-
created_at:
|
|
19952
|
-
updated_at:
|
|
19953
|
-
human_in_the_loop_enabled:
|
|
19954
|
-
});
|
|
19955
|
-
var startRunResponseSchema =
|
|
20006
|
+
import { z as z82 } from "zod";
|
|
20007
|
+
var publicRunSchema = z82.object({
|
|
20008
|
+
id: z82.string(),
|
|
20009
|
+
agent_id: z82.string(),
|
|
20010
|
+
build_id: z82.string(),
|
|
20011
|
+
status: z82.string(),
|
|
20012
|
+
source: z82.string().nullish(),
|
|
20013
|
+
sandbox_id: z82.string().nullish(),
|
|
20014
|
+
started_at: z82.string().nullish(),
|
|
20015
|
+
completed_at: z82.string().nullish(),
|
|
20016
|
+
created_at: z82.string(),
|
|
20017
|
+
updated_at: z82.string().nullish(),
|
|
20018
|
+
human_in_the_loop_enabled: z82.boolean().nullish()
|
|
20019
|
+
});
|
|
20020
|
+
var startRunResponseSchema = z82.object({
|
|
19956
20021
|
run: publicRunSchema
|
|
19957
20022
|
});
|
|
19958
|
-
var questionOptionSchema =
|
|
19959
|
-
label:
|
|
19960
|
-
description:
|
|
19961
|
-
});
|
|
19962
|
-
var questionSchema =
|
|
19963
|
-
question:
|
|
19964
|
-
header:
|
|
19965
|
-
options:
|
|
19966
|
-
multi_select:
|
|
19967
|
-
});
|
|
19968
|
-
var pendingHumanRequestSchema =
|
|
19969
|
-
id:
|
|
19970
|
-
title:
|
|
19971
|
-
description:
|
|
19972
|
-
created_at:
|
|
19973
|
-
type:
|
|
19974
|
-
questions:
|
|
19975
|
-
});
|
|
19976
|
-
var getRunResponseSchema =
|
|
20023
|
+
var questionOptionSchema = z82.object({
|
|
20024
|
+
label: z82.string(),
|
|
20025
|
+
description: z82.string().nullish()
|
|
20026
|
+
});
|
|
20027
|
+
var questionSchema = z82.object({
|
|
20028
|
+
question: z82.string(),
|
|
20029
|
+
header: z82.string().nullish(),
|
|
20030
|
+
options: z82.array(questionOptionSchema).nullish(),
|
|
20031
|
+
multi_select: z82.boolean().nullish()
|
|
20032
|
+
});
|
|
20033
|
+
var pendingHumanRequestSchema = z82.object({
|
|
20034
|
+
id: z82.string(),
|
|
20035
|
+
title: z82.string(),
|
|
20036
|
+
description: z82.string().nullish(),
|
|
20037
|
+
created_at: z82.string(),
|
|
20038
|
+
type: z82.string(),
|
|
20039
|
+
questions: z82.array(questionSchema).nullish()
|
|
20040
|
+
});
|
|
20041
|
+
var getRunResponseSchema = z82.object({
|
|
19977
20042
|
run: publicRunSchema.nullable(),
|
|
19978
20043
|
pending_human_request: pendingHumanRequestSchema.nullish()
|
|
19979
20044
|
});
|
|
19980
|
-
var stopRunResponseSchema =
|
|
19981
|
-
success:
|
|
19982
|
-
message:
|
|
19983
|
-
});
|
|
19984
|
-
var runMessageSchema =
|
|
19985
|
-
id:
|
|
19986
|
-
type:
|
|
19987
|
-
role:
|
|
19988
|
-
timestamp:
|
|
19989
|
-
text_content:
|
|
19990
|
-
tool_call:
|
|
19991
|
-
id:
|
|
19992
|
-
name:
|
|
19993
|
-
arguments:
|
|
20045
|
+
var stopRunResponseSchema = z82.object({
|
|
20046
|
+
success: z82.boolean(),
|
|
20047
|
+
message: z82.string().nullish()
|
|
20048
|
+
});
|
|
20049
|
+
var runMessageSchema = z82.object({
|
|
20050
|
+
id: z82.string(),
|
|
20051
|
+
type: z82.string(),
|
|
20052
|
+
role: z82.string(),
|
|
20053
|
+
timestamp: z82.string(),
|
|
20054
|
+
text_content: z82.string().nullish(),
|
|
20055
|
+
tool_call: z82.object({
|
|
20056
|
+
id: z82.string(),
|
|
20057
|
+
name: z82.string(),
|
|
20058
|
+
arguments: z82.record(z82.string(), z82.unknown()).nullish()
|
|
19994
20059
|
}).nullish(),
|
|
19995
|
-
tool_result:
|
|
19996
|
-
tool_call_id:
|
|
19997
|
-
result:
|
|
19998
|
-
error:
|
|
20060
|
+
tool_result: z82.object({
|
|
20061
|
+
tool_call_id: z82.string(),
|
|
20062
|
+
result: z82.unknown().nullish(),
|
|
20063
|
+
error: z82.string().nullish()
|
|
19999
20064
|
}).nullish()
|
|
20000
20065
|
});
|
|
20001
|
-
var listRunMessagesResponseSchema =
|
|
20002
|
-
messages:
|
|
20003
|
-
total:
|
|
20004
|
-
limit:
|
|
20005
|
-
offset:
|
|
20066
|
+
var listRunMessagesResponseSchema = z82.object({
|
|
20067
|
+
messages: z82.array(runMessageSchema),
|
|
20068
|
+
total: z82.number().nullish(),
|
|
20069
|
+
limit: z82.number().nullish(),
|
|
20070
|
+
offset: z82.number().nullish()
|
|
20006
20071
|
});
|
|
20007
|
-
var postedMessageSchema =
|
|
20008
|
-
id:
|
|
20009
|
-
type:
|
|
20010
|
-
role:
|
|
20011
|
-
timestamp:
|
|
20012
|
-
text_content:
|
|
20072
|
+
var postedMessageSchema = z82.object({
|
|
20073
|
+
id: z82.string(),
|
|
20074
|
+
type: z82.string(),
|
|
20075
|
+
role: z82.string(),
|
|
20076
|
+
timestamp: z82.string(),
|
|
20077
|
+
text_content: z82.string()
|
|
20013
20078
|
});
|
|
20014
|
-
var postRunMessageResponseSchema =
|
|
20079
|
+
var postRunMessageResponseSchema = z82.object({
|
|
20015
20080
|
message: postedMessageSchema
|
|
20016
20081
|
});
|
|
20017
|
-
var respondHumanRequestResponseSchema =
|
|
20018
|
-
human_request:
|
|
20019
|
-
id:
|
|
20020
|
-
run_id:
|
|
20021
|
-
title:
|
|
20022
|
-
description:
|
|
20023
|
-
response:
|
|
20024
|
-
responded_at:
|
|
20025
|
-
created_at:
|
|
20082
|
+
var respondHumanRequestResponseSchema = z82.object({
|
|
20083
|
+
human_request: z82.object({
|
|
20084
|
+
id: z82.string(),
|
|
20085
|
+
run_id: z82.string(),
|
|
20086
|
+
title: z82.string(),
|
|
20087
|
+
description: z82.string().nullish(),
|
|
20088
|
+
response: z82.string().nullish(),
|
|
20089
|
+
responded_at: z82.string().nullish(),
|
|
20090
|
+
created_at: z82.string()
|
|
20026
20091
|
})
|
|
20027
20092
|
});
|
|
20028
20093
|
|
|
@@ -20091,7 +20156,7 @@ var MAX_LIMIT8 = 100;
|
|
|
20091
20156
|
var SORT_ORDERS2 = ["asc", "desc"];
|
|
20092
20157
|
var HAS_ISSUES_VALUES = ["true", "false"];
|
|
20093
20158
|
var TITLE_PREVIEW_WIDTH = 50;
|
|
20094
|
-
var
|
|
20159
|
+
var TABLE_COLUMNS30 = [
|
|
20095
20160
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
20096
20161
|
{ header: "RUN#", cell: /* @__PURE__ */ __name((row) => String(row.run_number), "cell") },
|
|
20097
20162
|
{ header: "STATUS", cell: /* @__PURE__ */ __name((row) => row.status, "cell") },
|
|
@@ -20192,7 +20257,7 @@ function registerRunsList(runs) {
|
|
|
20192
20257
|
console.log("No runs found.");
|
|
20193
20258
|
return;
|
|
20194
20259
|
}
|
|
20195
|
-
console.log(renderTable(
|
|
20260
|
+
console.log(renderTable(TABLE_COLUMNS30, response.data));
|
|
20196
20261
|
console.log(
|
|
20197
20262
|
`Showing ${response.data.length} of ${response.total} \xB7 offset ${offset}`
|
|
20198
20263
|
);
|
|
@@ -20302,7 +20367,7 @@ var DEFAULT_LIMIT9 = 20;
|
|
|
20302
20367
|
var MIN_LIMIT9 = 1;
|
|
20303
20368
|
var MAX_LIMIT9 = 50;
|
|
20304
20369
|
var TEXT_PREVIEW_WIDTH2 = 60;
|
|
20305
|
-
var
|
|
20370
|
+
var TABLE_COLUMNS31 = [
|
|
20306
20371
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
20307
20372
|
{ header: "ROLE", cell: /* @__PURE__ */ __name((row) => row.role, "cell") },
|
|
20308
20373
|
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.type, "cell") },
|
|
@@ -20367,7 +20432,7 @@ function registerRunsMessages(runs) {
|
|
|
20367
20432
|
console.log("No messages found.");
|
|
20368
20433
|
return;
|
|
20369
20434
|
}
|
|
20370
|
-
console.log(renderTable(
|
|
20435
|
+
console.log(renderTable(TABLE_COLUMNS31, response.messages));
|
|
20371
20436
|
const resolvedOffset = response.offset ?? offset;
|
|
20372
20437
|
const summary = response.total === null || response.total === void 0 ? `Showing ${response.messages.length} \xB7 offset ${resolvedOffset}` : `Showing ${response.messages.length} of ${response.total} \xB7 offset ${resolvedOffset}`;
|
|
20373
20438
|
console.log(summary);
|
|
@@ -20634,28 +20699,28 @@ function registerRuns(program) {
|
|
|
20634
20699
|
__name(registerRuns, "registerRuns");
|
|
20635
20700
|
|
|
20636
20701
|
// src/api/sandbox-schemas.ts
|
|
20637
|
-
import { z as
|
|
20638
|
-
var createSandboxResponseSchema =
|
|
20639
|
-
sandbox_id:
|
|
20640
|
-
expires_at:
|
|
20702
|
+
import { z as z83 } from "zod";
|
|
20703
|
+
var createSandboxResponseSchema = z83.object({
|
|
20704
|
+
sandbox_id: z83.string(),
|
|
20705
|
+
expires_at: z83.string()
|
|
20641
20706
|
});
|
|
20642
|
-
var createSandboxUploadUrlResponseSchema =
|
|
20643
|
-
upload_url:
|
|
20644
|
-
path:
|
|
20645
|
-
expires_in_seconds:
|
|
20707
|
+
var createSandboxUploadUrlResponseSchema = z83.object({
|
|
20708
|
+
upload_url: z83.string(),
|
|
20709
|
+
path: z83.string(),
|
|
20710
|
+
expires_in_seconds: z83.number()
|
|
20646
20711
|
});
|
|
20647
|
-
var sandboxFileSchema =
|
|
20648
|
-
name:
|
|
20649
|
-
path:
|
|
20650
|
-
type:
|
|
20651
|
-
size_bytes:
|
|
20712
|
+
var sandboxFileSchema = z83.object({
|
|
20713
|
+
name: z83.string(),
|
|
20714
|
+
path: z83.string(),
|
|
20715
|
+
type: z83.enum(["file", "dir"]),
|
|
20716
|
+
size_bytes: z83.number()
|
|
20652
20717
|
});
|
|
20653
|
-
var listSandboxFilesResponseSchema =
|
|
20654
|
-
files:
|
|
20718
|
+
var listSandboxFilesResponseSchema = z83.object({
|
|
20719
|
+
files: z83.array(sandboxFileSchema)
|
|
20655
20720
|
});
|
|
20656
|
-
var uploadSandboxFileResponseSchema =
|
|
20657
|
-
path:
|
|
20658
|
-
size_bytes:
|
|
20721
|
+
var uploadSandboxFileResponseSchema = z83.object({
|
|
20722
|
+
path: z83.string(),
|
|
20723
|
+
size_bytes: z83.number()
|
|
20659
20724
|
});
|
|
20660
20725
|
var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
|
|
20661
20726
|
|
|
@@ -20692,7 +20757,7 @@ function registerSandboxesCreate(sandboxes) {
|
|
|
20692
20757
|
__name(registerSandboxesCreate, "registerSandboxesCreate");
|
|
20693
20758
|
|
|
20694
20759
|
// src/commands/sandboxes/files.ts
|
|
20695
|
-
var
|
|
20760
|
+
var TABLE_COLUMNS32 = [
|
|
20696
20761
|
{ header: "TYPE", cell: /* @__PURE__ */ __name((row) => row.type, "cell") },
|
|
20697
20762
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
20698
20763
|
{ header: "PATH", cell: /* @__PURE__ */ __name((row) => row.path, "cell") },
|
|
@@ -20730,7 +20795,7 @@ function registerSandboxesFiles(sandboxes) {
|
|
|
20730
20795
|
console.log("No files found.");
|
|
20731
20796
|
return;
|
|
20732
20797
|
}
|
|
20733
|
-
console.log(renderTable(
|
|
20798
|
+
console.log(renderTable(TABLE_COLUMNS32, files));
|
|
20734
20799
|
console.log(`Showing ${files.length}`);
|
|
20735
20800
|
}, "filesAction"));
|
|
20736
20801
|
}
|
|
@@ -21075,7 +21140,7 @@ function registerSecretsGet(secrets) {
|
|
|
21075
21140
|
__name(registerSecretsGet, "registerSecretsGet");
|
|
21076
21141
|
|
|
21077
21142
|
// src/commands/secrets/list.ts
|
|
21078
|
-
var
|
|
21143
|
+
var TABLE_COLUMNS33 = [
|
|
21079
21144
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
21080
21145
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
21081
21146
|
{
|
|
@@ -21119,7 +21184,7 @@ function registerSecretsList(secrets) {
|
|
|
21119
21184
|
console.log("No secrets found.");
|
|
21120
21185
|
return;
|
|
21121
21186
|
}
|
|
21122
|
-
console.log(renderTable(
|
|
21187
|
+
console.log(renderTable(TABLE_COLUMNS33, rows));
|
|
21123
21188
|
console.log(`Showing ${rows.length}`);
|
|
21124
21189
|
}, "listAction"));
|
|
21125
21190
|
}
|
|
@@ -21230,7 +21295,7 @@ function registerSecrets(program) {
|
|
|
21230
21295
|
__name(registerSecrets, "registerSecrets");
|
|
21231
21296
|
|
|
21232
21297
|
// src/commands/skills/assignments.ts
|
|
21233
|
-
var
|
|
21298
|
+
var TABLE_COLUMNS34 = [
|
|
21234
21299
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
21235
21300
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") }
|
|
21236
21301
|
];
|
|
@@ -21258,7 +21323,7 @@ function registerSkillsAssignments(skills) {
|
|
|
21258
21323
|
console.log("No assignments use this skill.");
|
|
21259
21324
|
return;
|
|
21260
21325
|
}
|
|
21261
|
-
console.log(renderTable(
|
|
21326
|
+
console.log(renderTable(TABLE_COLUMNS34, assignments));
|
|
21262
21327
|
console.log(`Showing ${assignments.length} of ${total}`);
|
|
21263
21328
|
}, "assignmentsAction"));
|
|
21264
21329
|
}
|
|
@@ -21266,13 +21331,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
|
|
|
21266
21331
|
|
|
21267
21332
|
// src/commands/skills/create.ts
|
|
21268
21333
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
21269
|
-
import { z as
|
|
21270
|
-
var createSkillResponseSchema =
|
|
21271
|
-
skill:
|
|
21272
|
-
id:
|
|
21273
|
-
name:
|
|
21274
|
-
description:
|
|
21275
|
-
team_id:
|
|
21334
|
+
import { z as z84 } from "zod";
|
|
21335
|
+
var createSkillResponseSchema = z84.object({
|
|
21336
|
+
skill: z84.object({
|
|
21337
|
+
id: z84.string(),
|
|
21338
|
+
name: z84.string(),
|
|
21339
|
+
description: z84.string(),
|
|
21340
|
+
team_id: z84.string()
|
|
21276
21341
|
})
|
|
21277
21342
|
});
|
|
21278
21343
|
function registerSkillsCreate(skills) {
|
|
@@ -21540,7 +21605,7 @@ function readContent2(options) {
|
|
|
21540
21605
|
__name(readContent2, "readContent");
|
|
21541
21606
|
|
|
21542
21607
|
// src/commands/skills/files.ts
|
|
21543
|
-
var
|
|
21608
|
+
var TABLE_COLUMNS35 = [
|
|
21544
21609
|
{ header: "PATH", cell: /* @__PURE__ */ __name((row) => row.path, "cell") },
|
|
21545
21610
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell") },
|
|
21546
21611
|
{
|
|
@@ -21579,7 +21644,7 @@ function registerSkillsFiles(skills) {
|
|
|
21579
21644
|
console.log("No files found.");
|
|
21580
21645
|
return;
|
|
21581
21646
|
}
|
|
21582
|
-
console.log(renderTable(
|
|
21647
|
+
console.log(renderTable(TABLE_COLUMNS35, parsed.data.files));
|
|
21583
21648
|
console.log(`Showing ${parsed.data.files.length}`);
|
|
21584
21649
|
}, "filesAction"));
|
|
21585
21650
|
}
|
|
@@ -21636,13 +21701,13 @@ function readExistingContent(source) {
|
|
|
21636
21701
|
__name(readExistingContent, "readExistingContent");
|
|
21637
21702
|
|
|
21638
21703
|
// src/commands/skills/install.ts
|
|
21639
|
-
import { z as
|
|
21640
|
-
var installSkillResponseSchema =
|
|
21641
|
-
skill:
|
|
21642
|
-
id:
|
|
21643
|
-
name:
|
|
21644
|
-
description:
|
|
21645
|
-
team_id:
|
|
21704
|
+
import { z as z85 } from "zod";
|
|
21705
|
+
var installSkillResponseSchema = z85.object({
|
|
21706
|
+
skill: z85.object({
|
|
21707
|
+
id: z85.string(),
|
|
21708
|
+
name: z85.string(),
|
|
21709
|
+
description: z85.string(),
|
|
21710
|
+
team_id: z85.string()
|
|
21646
21711
|
})
|
|
21647
21712
|
});
|
|
21648
21713
|
function registerSkillsInstall(skills) {
|
|
@@ -21832,13 +21897,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
|
|
|
21832
21897
|
// src/commands/skills/upload.ts
|
|
21833
21898
|
import { readFile as readFile6, stat as stat2 } from "node:fs/promises";
|
|
21834
21899
|
import { basename as basename2 } from "node:path";
|
|
21835
|
-
import { z as
|
|
21836
|
-
var uploadSkillResponseSchema =
|
|
21837
|
-
skill:
|
|
21838
|
-
id:
|
|
21839
|
-
name:
|
|
21840
|
-
description:
|
|
21841
|
-
team_id:
|
|
21900
|
+
import { z as z86 } from "zod";
|
|
21901
|
+
var uploadSkillResponseSchema = z86.object({
|
|
21902
|
+
skill: z86.object({
|
|
21903
|
+
id: z86.string(),
|
|
21904
|
+
name: z86.string(),
|
|
21905
|
+
description: z86.string(),
|
|
21906
|
+
team_id: z86.string()
|
|
21842
21907
|
})
|
|
21843
21908
|
});
|
|
21844
21909
|
function registerSkillsUpload(skills) {
|
|
@@ -21993,7 +22058,7 @@ __name(registerTeamGet, "registerTeamGet");
|
|
|
21993
22058
|
var DEFAULT_LIMIT10 = 50;
|
|
21994
22059
|
var MIN_LIMIT10 = 1;
|
|
21995
22060
|
var MAX_LIMIT10 = 100;
|
|
21996
|
-
var
|
|
22061
|
+
var TABLE_COLUMNS36 = [
|
|
21997
22062
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
|
|
21998
22063
|
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name ?? "", "cell") },
|
|
21999
22064
|
{ header: "EMAIL", cell: /* @__PURE__ */ __name((row) => row.email, "cell") },
|
|
@@ -22044,7 +22109,7 @@ function registerTeamMembers(team) {
|
|
|
22044
22109
|
console.log("No members found.");
|
|
22045
22110
|
return;
|
|
22046
22111
|
}
|
|
22047
|
-
console.log(renderTable(
|
|
22112
|
+
console.log(renderTable(TABLE_COLUMNS36, response.members));
|
|
22048
22113
|
console.log(
|
|
22049
22114
|
`Showing ${response.members.length} of ${response.total} \xB7 offset ${response.offset}`
|
|
22050
22115
|
);
|
|
@@ -22053,11 +22118,11 @@ function registerTeamMembers(team) {
|
|
|
22053
22118
|
__name(registerTeamMembers, "registerTeamMembers");
|
|
22054
22119
|
|
|
22055
22120
|
// src/commands/team/use.ts
|
|
22056
|
-
import { z as
|
|
22121
|
+
import { z as z87 } from "zod";
|
|
22057
22122
|
var TEAM_ID_SHAPE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
22058
|
-
var teamIdSchema =
|
|
22059
|
-
var listMyTeamsResponseSchema3 =
|
|
22060
|
-
teams:
|
|
22123
|
+
var teamIdSchema = z87.string().regex(TEAM_ID_SHAPE);
|
|
22124
|
+
var listMyTeamsResponseSchema3 = z87.object({
|
|
22125
|
+
teams: z87.array(z87.object({ id: z87.string() }))
|
|
22061
22126
|
});
|
|
22062
22127
|
function registerTeamUse(team) {
|
|
22063
22128
|
team.command("use <team-id>").description(
|
|
@@ -22139,14 +22204,14 @@ function registerTeam(program) {
|
|
|
22139
22204
|
__name(registerTeam, "registerTeam");
|
|
22140
22205
|
|
|
22141
22206
|
// src/commands/teams/list.ts
|
|
22142
|
-
import { z as
|
|
22143
|
-
var teamApiSchema2 =
|
|
22144
|
-
id:
|
|
22145
|
-
name:
|
|
22146
|
-
organization_id:
|
|
22207
|
+
import { z as z88 } from "zod";
|
|
22208
|
+
var teamApiSchema2 = z88.object({
|
|
22209
|
+
id: z88.string(),
|
|
22210
|
+
name: z88.string(),
|
|
22211
|
+
organization_id: z88.string().nullable()
|
|
22147
22212
|
});
|
|
22148
|
-
var listMyTeamsResponseSchema4 =
|
|
22149
|
-
teams:
|
|
22213
|
+
var listMyTeamsResponseSchema4 = z88.object({
|
|
22214
|
+
teams: z88.array(teamApiSchema2)
|
|
22150
22215
|
});
|
|
22151
22216
|
function registerTeamsList(program) {
|
|
22152
22217
|
const teams = program.command("teams").description("Inspect the teams your credentials can act on");
|
|
@@ -22242,7 +22307,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
|
|
|
22242
22307
|
var version = resolveVersion();
|
|
22243
22308
|
function resolveVersion() {
|
|
22244
22309
|
if (true) {
|
|
22245
|
-
return "1.
|
|
22310
|
+
return "1.2.0";
|
|
22246
22311
|
}
|
|
22247
22312
|
const packageJsonPath = join2(
|
|
22248
22313
|
dirname2(fileURLToPath(import.meta.url)),
|
|
@@ -22311,7 +22376,7 @@ function checkForUpdate() {
|
|
|
22311
22376
|
__name(checkForUpdate, "checkForUpdate");
|
|
22312
22377
|
function loadPackageMeta() {
|
|
22313
22378
|
if (true) {
|
|
22314
|
-
return { name: "@duvoai/cli", version: "1.
|
|
22379
|
+
return { name: "@duvoai/cli", version: "1.2.0" };
|
|
22315
22380
|
}
|
|
22316
22381
|
const require2 = createRequire(import.meta.url);
|
|
22317
22382
|
const raw = require2("../package.json");
|