@vm0/cli 9.217.4 → 9.217.6
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/{agent-YIH6PNEM.js → agent-VPCUNNL3.js} +4 -4
- package/{automation-RHOPNL6S.js → automation-FPT5NSY3.js} +2 -2
- package/{banking-67Z3D7VX.js → banking-YFGMVREA.js} +2 -2
- package/{chat-JFH77LJN.js → chat-NFJJGTRJ.js} +2 -2
- package/{chunk-7S2TYSJX.js → chunk-37MXVVML.js} +176 -106
- package/chunk-37MXVVML.js.map +1 -0
- package/{chunk-U55ZE2OY.js → chunk-HQ27RTRK.js} +3 -3
- package/{chunk-PVH3TQIR.js → chunk-JOUXZAP3.js} +2 -2
- package/{chunk-BEQMCUCA.js → chunk-LRTLF7ZC.js} +3 -3
- package/{chunk-BEGJBHUZ.js → chunk-MPFX7JBV.js} +16 -267
- package/chunk-MPFX7JBV.js.map +1 -0
- package/{chunk-3TPITAUC.js → chunk-QU3UUXGM.js} +2 -2
- package/{chunk-SP47PTXZ.js → chunk-S6IOT4JU.js} +2 -2
- package/{chunk-W5UJSC2D.js → chunk-UIMA34V4.js} +2 -2
- package/{chunk-R3NUHZCC.js → chunk-VMXN6HNW.js} +2 -2
- package/{computer-use-P5UAAMVN.js → computer-use-VANQ77E3.js} +2 -2
- package/{connector-HRHGA3XE.js → connector-XC3WTOSX.js} +3 -3
- package/{credit-UT6Q25VJ.js → credit-5SHNEWB5.js} +2 -2
- package/{developer-support-3HHCKM45.js → developer-support-X5QMIYKK.js} +2 -2
- package/{doctor-YU4GKA27.js → doctor-RWQLYWYD.js} +5 -5
- package/{generate-VZNBTXPB.js → generate-JZIKREP7.js} +3 -3
- package/{github-3YIFBVQV.js → github-EGAIOSFE.js} +6 -167
- package/github-EGAIOSFE.js.map +1 -0
- package/{goal-MRW5CDN4.js → goal-EXT2VNDJ.js} +2 -2
- package/{host-BHNFCI5J.js → host-33AEVIZA.js} +2 -2
- package/index.js +13 -13
- package/{logs-ZJCHPPJA.js → logs-2G5RDIJP.js} +6 -6
- package/{maps-I5NQSD3Z.js → maps-IRRYG772.js} +2 -2
- package/{model-5VPLHVX3.js → model-CYIZEKQ7.js} +3 -3
- package/{model-provider-KVBRO7X4.js → model-provider-B6OPQDRU.js} +3 -3
- package/{org-LBPKUI3W.js → org-MU5LDZXF.js} +2 -2
- package/package.json +1 -1
- package/{phone-EBS46537.js → phone-HVXEX73Z.js} +2 -2
- package/{preference-A2YLGHAU.js → preference-EZEOWKMI.js} +2 -2
- package/{resource-IMAG6HCQ.js → resource-32WJDVHN.js} +2 -2
- package/{search-ZUZLEVJO.js → search-F64BOILN.js} +6 -6
- package/{secret-PHSWDBTL.js → secret-B3KZG6TX.js} +3 -3
- package/{slack-WROLRIGJ.js → slack-MIJTLUGK.js} +2 -2
- package/{telegram-FVXVX7SF.js → telegram-5D67OCZI.js} +2 -2
- package/{variable-6ZVNRGVM.js → variable-PTTIEJHO.js} +2 -2
- package/{web-JOPIPAG5.js → web-263UCCO6.js} +2 -2
- package/{whoami-BHW4HAW3.js → whoami-5BBAQ7AU.js} +4 -4
- package/{workflow-QUC64IOK.js → workflow-QHTVAKSK.js} +2 -2
- package/zero.js +32 -32
- package/zero.js.map +1 -1
- package/chunk-7S2TYSJX.js.map +0 -1
- package/chunk-BEGJBHUZ.js.map +0 -1
- package/github-3YIFBVQV.js.map +0 -1
- /package/{agent-YIH6PNEM.js.map → agent-VPCUNNL3.js.map} +0 -0
- /package/{automation-RHOPNL6S.js.map → automation-FPT5NSY3.js.map} +0 -0
- /package/{banking-67Z3D7VX.js.map → banking-YFGMVREA.js.map} +0 -0
- /package/{chat-JFH77LJN.js.map → chat-NFJJGTRJ.js.map} +0 -0
- /package/{chunk-U55ZE2OY.js.map → chunk-HQ27RTRK.js.map} +0 -0
- /package/{chunk-PVH3TQIR.js.map → chunk-JOUXZAP3.js.map} +0 -0
- /package/{chunk-BEQMCUCA.js.map → chunk-LRTLF7ZC.js.map} +0 -0
- /package/{chunk-3TPITAUC.js.map → chunk-QU3UUXGM.js.map} +0 -0
- /package/{chunk-SP47PTXZ.js.map → chunk-S6IOT4JU.js.map} +0 -0
- /package/{chunk-W5UJSC2D.js.map → chunk-UIMA34V4.js.map} +0 -0
- /package/{chunk-R3NUHZCC.js.map → chunk-VMXN6HNW.js.map} +0 -0
- /package/{computer-use-P5UAAMVN.js.map → computer-use-VANQ77E3.js.map} +0 -0
- /package/{connector-HRHGA3XE.js.map → connector-XC3WTOSX.js.map} +0 -0
- /package/{credit-UT6Q25VJ.js.map → credit-5SHNEWB5.js.map} +0 -0
- /package/{developer-support-3HHCKM45.js.map → developer-support-X5QMIYKK.js.map} +0 -0
- /package/{doctor-YU4GKA27.js.map → doctor-RWQLYWYD.js.map} +0 -0
- /package/{generate-VZNBTXPB.js.map → generate-JZIKREP7.js.map} +0 -0
- /package/{goal-MRW5CDN4.js.map → goal-EXT2VNDJ.js.map} +0 -0
- /package/{host-BHNFCI5J.js.map → host-33AEVIZA.js.map} +0 -0
- /package/{logs-ZJCHPPJA.js.map → logs-2G5RDIJP.js.map} +0 -0
- /package/{maps-I5NQSD3Z.js.map → maps-IRRYG772.js.map} +0 -0
- /package/{model-5VPLHVX3.js.map → model-CYIZEKQ7.js.map} +0 -0
- /package/{model-provider-KVBRO7X4.js.map → model-provider-B6OPQDRU.js.map} +0 -0
- /package/{org-LBPKUI3W.js.map → org-MU5LDZXF.js.map} +0 -0
- /package/{phone-EBS46537.js.map → phone-HVXEX73Z.js.map} +0 -0
- /package/{preference-A2YLGHAU.js.map → preference-EZEOWKMI.js.map} +0 -0
- /package/{resource-IMAG6HCQ.js.map → resource-32WJDVHN.js.map} +0 -0
- /package/{search-ZUZLEVJO.js.map → search-F64BOILN.js.map} +0 -0
- /package/{secret-PHSWDBTL.js.map → secret-B3KZG6TX.js.map} +0 -0
- /package/{slack-WROLRIGJ.js.map → slack-MIJTLUGK.js.map} +0 -0
- /package/{telegram-FVXVX7SF.js.map → telegram-5D67OCZI.js.map} +0 -0
- /package/{variable-6ZVNRGVM.js.map → variable-PTTIEJHO.js.map} +0 -0
- /package/{web-JOPIPAG5.js.map → web-263UCCO6.js.map} +0 -0
- /package/{whoami-BHW4HAW3.js.map → whoami-5BBAQ7AU.js.map} +0 -0
- /package/{workflow-QUC64IOK.js.map → workflow-QHTVAKSK.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
parseSegment,
|
|
9
9
|
splitPathSegments,
|
|
10
10
|
validateBaseUrl
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MPFX7JBV.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esm_shims
|
|
14
14
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -609,4 +609,4 @@ export {
|
|
|
609
609
|
matchFirewallBaseUrl,
|
|
610
610
|
findMatchingRoutingPermissions
|
|
611
611
|
};
|
|
612
|
-
//# sourceMappingURL=chunk-
|
|
612
|
+
//# sourceMappingURL=chunk-QU3UUXGM.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadFirewallPermissionMetadata,
|
|
6
6
|
resolveFirewallMetadataPolicies
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VMXN6HNW.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default
|
|
10
10
|
} from "./chunk-JUTUEPIR.js";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
policyIcon,
|
|
88
88
|
loadConnectorPermissionInfos
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-S6IOT4JU.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
MODEL_PROVIDER_TYPES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MPFX7JBV.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
formatModelProviderRoute,
|
|
41
41
|
formatModelPolicyStatus
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
43
|
+
//# sourceMappingURL=chunk-UIMA34V4.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
UNKNOWN_PERMISSION_GRANT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MPFX7JBV.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -3089,4 +3089,4 @@ export {
|
|
|
3089
3089
|
resolveFirewallMetadataPolicies,
|
|
3090
3090
|
permissionGrantsToFirewallPolicies
|
|
3091
3091
|
};
|
|
3092
|
-
//# sourceMappingURL=chunk-
|
|
3092
|
+
//# sourceMappingURL=chunk-VMXN6HNW.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
createComputerUseWriteCommand,
|
|
7
7
|
fetchComputerUseScreenshot,
|
|
8
8
|
getComputerUseCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MPFX7JBV.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiRequestError,
|
|
12
12
|
withErrorHandler
|
|
@@ -472,4 +472,4 @@ export {
|
|
|
472
472
|
formatComputerUseResultForConsole,
|
|
473
473
|
zeroComputerUseCommand
|
|
474
474
|
};
|
|
475
|
-
//# sourceMappingURL=computer-use-
|
|
475
|
+
//# sourceMappingURL=computer-use-VANQ77E3.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getConnectorAuthMethodScopeDiff,
|
|
14
14
|
getConnectorEnvBindingEntries,
|
|
15
15
|
hasRequiredConnectorAuthMethodScopes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JOUXZAP3.js";
|
|
17
17
|
import "./chunk-LTDQISD7.js";
|
|
18
18
|
import {
|
|
19
19
|
CONNECTOR_TYPES,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
listZeroConnectors,
|
|
30
30
|
listZeroCustomConnectors,
|
|
31
31
|
searchZeroConnectors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MPFX7JBV.js";
|
|
33
33
|
import {
|
|
34
34
|
withErrorHandler
|
|
35
35
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -845,4 +845,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Check th
|
|
|
845
845
|
export {
|
|
846
846
|
zeroConnectorCommand
|
|
847
847
|
};
|
|
848
|
-
//# sourceMappingURL=connector-
|
|
848
|
+
//# sourceMappingURL=connector-XC3WTOSX.js.map
|
|
@@ -8,7 +8,7 @@ import "./chunk-LTDQISD7.js";
|
|
|
8
8
|
import {
|
|
9
9
|
createZeroCreditCheckout,
|
|
10
10
|
getZeroOrgMembers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MPFX7JBV.js";
|
|
12
12
|
import {
|
|
13
13
|
withErrorHandler
|
|
14
14
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -87,4 +87,4 @@ var zeroCreditCommand = new Command().name("credit").description("Create a Strip
|
|
|
87
87
|
export {
|
|
88
88
|
zeroCreditCommand
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=credit-
|
|
90
|
+
//# sourceMappingURL=credit-5SHNEWB5.js.map
|
|
@@ -5,7 +5,7 @@ import "./chunk-LTDQISD7.js";
|
|
|
5
5
|
import {
|
|
6
6
|
requestDeveloperSupportConsent,
|
|
7
7
|
submitDeveloperSupport
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MPFX7JBV.js";
|
|
9
9
|
import {
|
|
10
10
|
withErrorHandler
|
|
11
11
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -61,4 +61,4 @@ Notes:
|
|
|
61
61
|
export {
|
|
62
62
|
zeroDeveloperSupportCommand
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=developer-support-
|
|
64
|
+
//# sourceMappingURL=developer-support-X5QMIYKK.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
findFirewallMetadataPermission,
|
|
6
6
|
getFirewallPermissionSummary,
|
|
7
7
|
loadFirewallPermissionMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VMXN6HNW.js";
|
|
9
9
|
import {
|
|
10
10
|
getPlatformOrigin,
|
|
11
11
|
toPlatformUrl
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
findMatchingRoutingPermissions,
|
|
15
15
|
matchFirewallBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QU3UUXGM.js";
|
|
17
17
|
import {
|
|
18
18
|
getConnectorEnvBindingEntries,
|
|
19
19
|
getDiagnosticConnectorTypeForRuntimeEnvName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JOUXZAP3.js";
|
|
21
21
|
import "./chunk-LTDQISD7.js";
|
|
22
22
|
import {
|
|
23
23
|
CONNECTOR_TYPES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
hasUnsafeFirewallPath,
|
|
33
33
|
resolveFirewallBaseUrlTemplate,
|
|
34
34
|
searchZeroConnectors
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MPFX7JBV.js";
|
|
36
36
|
import {
|
|
37
37
|
ApiRequestError,
|
|
38
38
|
getApiUrl,
|
|
@@ -8446,4 +8446,4 @@ Notes:
|
|
|
8446
8446
|
export {
|
|
8447
8447
|
zeroDoctorCommand
|
|
8448
8448
|
};
|
|
8449
|
-
//# sourceMappingURL=doctor-
|
|
8449
|
+
//# sourceMappingURL=doctor-RWQLYWYD.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-4KC5DNRL.js";
|
|
20
20
|
import {
|
|
21
21
|
getConnectorGenerationTypes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JOUXZAP3.js";
|
|
23
23
|
import "./chunk-LTDQISD7.js";
|
|
24
24
|
import {
|
|
25
25
|
CONNECTOR_TYPES,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getZeroAgentUserConnectors,
|
|
28
28
|
listZeroConnectors,
|
|
29
29
|
searchZeroConnectors
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MPFX7JBV.js";
|
|
31
31
|
import {
|
|
32
32
|
generateWebImage,
|
|
33
33
|
generateWebVideo,
|
|
@@ -2699,4 +2699,4 @@ var generateCommand = new Command().name("generate").description(
|
|
|
2699
2699
|
export {
|
|
2700
2700
|
generateCommand
|
|
2701
2701
|
};
|
|
2702
|
-
//# sourceMappingURL=generate-
|
|
2702
|
+
//# sourceMappingURL=generate-JZIKREP7.js.map
|
|
@@ -4,19 +4,13 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import "./chunk-LTDQISD7.js";
|
|
5
5
|
import {
|
|
6
6
|
completeGithubFileUpload,
|
|
7
|
-
createGithubLabelListener,
|
|
8
|
-
deleteGithubLabelListener,
|
|
9
7
|
downloadGithubFile,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
updateGithubLabelListener
|
|
13
|
-
} from "./chunk-BEGJBHUZ.js";
|
|
8
|
+
initGithubFileUpload
|
|
9
|
+
} from "./chunk-MPFX7JBV.js";
|
|
14
10
|
import {
|
|
15
11
|
withErrorHandler
|
|
16
12
|
} from "./chunk-3F4RFLPX.js";
|
|
17
|
-
import
|
|
18
|
-
source_default
|
|
19
|
-
} from "./chunk-JUTUEPIR.js";
|
|
13
|
+
import "./chunk-JUTUEPIR.js";
|
|
20
14
|
import "./chunk-LRHXR7JT.js";
|
|
21
15
|
import {
|
|
22
16
|
Command
|
|
@@ -98,160 +92,6 @@ Notes:
|
|
|
98
92
|
)
|
|
99
93
|
);
|
|
100
94
|
|
|
101
|
-
// src/commands/zero/github/label-listener/index.ts
|
|
102
|
-
init_esm_shims();
|
|
103
|
-
function parseTriggerMode(value) {
|
|
104
|
-
if (value === "created_by_me" || value === "anyone") {
|
|
105
|
-
return value;
|
|
106
|
-
}
|
|
107
|
-
throw new Error("trigger-mode must be one of: created_by_me, anyone");
|
|
108
|
-
}
|
|
109
|
-
function enabledLabel(listener) {
|
|
110
|
-
return listener.enabled ? source_default.green("yes") : source_default.dim("no");
|
|
111
|
-
}
|
|
112
|
-
function manageableLabel(listener) {
|
|
113
|
-
return listener.canManage ? source_default.green("yes") : source_default.dim("no");
|
|
114
|
-
}
|
|
115
|
-
function printListeners(listeners) {
|
|
116
|
-
if (listeners.length === 0) {
|
|
117
|
-
console.log(source_default.dim("No GitHub label listeners found"));
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
const idWidth = Math.max(
|
|
121
|
-
2,
|
|
122
|
-
...listeners.map((listener) => {
|
|
123
|
-
return listener.id.length;
|
|
124
|
-
})
|
|
125
|
-
);
|
|
126
|
-
const labelWidth = Math.max(
|
|
127
|
-
5,
|
|
128
|
-
...listeners.map((listener) => {
|
|
129
|
-
return listener.labelName.length;
|
|
130
|
-
})
|
|
131
|
-
);
|
|
132
|
-
const agentWidth = Math.max(
|
|
133
|
-
5,
|
|
134
|
-
...listeners.map((listener) => {
|
|
135
|
-
return (listener.agent?.name ?? "-").length;
|
|
136
|
-
})
|
|
137
|
-
);
|
|
138
|
-
console.log(
|
|
139
|
-
source_default.dim(
|
|
140
|
-
[
|
|
141
|
-
"ID".padEnd(idWidth),
|
|
142
|
-
"LABEL".padEnd(labelWidth),
|
|
143
|
-
"AGENT".padEnd(agentWidth),
|
|
144
|
-
"TRIGGER".padEnd(13),
|
|
145
|
-
"ENABLED",
|
|
146
|
-
"CAN MANAGE"
|
|
147
|
-
].join(" ")
|
|
148
|
-
)
|
|
149
|
-
);
|
|
150
|
-
for (const listener of listeners) {
|
|
151
|
-
console.log(
|
|
152
|
-
[
|
|
153
|
-
listener.id.padEnd(idWidth),
|
|
154
|
-
listener.labelName.padEnd(labelWidth),
|
|
155
|
-
(listener.agent?.name ?? "-").padEnd(agentWidth),
|
|
156
|
-
listener.triggerMode.padEnd(13),
|
|
157
|
-
enabledLabel(listener).padEnd(7),
|
|
158
|
-
manageableLabel(listener)
|
|
159
|
-
].join(" ")
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
var listCommand = new Command().name("list").alias("ls").description("List GitHub label listeners for the active organization").option("--json", "Print raw JSON").action(
|
|
164
|
-
withErrorHandler(async (options) => {
|
|
165
|
-
const installation = await getGithubInstallation();
|
|
166
|
-
if (options.json) {
|
|
167
|
-
console.log(JSON.stringify(installation.labelListeners));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
printListeners(installation.labelListeners);
|
|
171
|
-
})
|
|
172
|
-
);
|
|
173
|
-
var createCommand = new Command().name("create").description("Create a GitHub label listener").requiredOption("--label <name>", "GitHub label name to watch").requiredOption(
|
|
174
|
-
"--agent-id <id>",
|
|
175
|
-
"Agent ID to run when the label is applied"
|
|
176
|
-
).requiredOption("--prompt <text>", "Prompt to pass to the agent").option(
|
|
177
|
-
"--trigger-mode <mode>",
|
|
178
|
-
"Who can trigger the listener: anyone | created_by_me",
|
|
179
|
-
"anyone"
|
|
180
|
-
).option("--disabled", "Create the listener disabled").option("--json", "Print raw JSON").action(
|
|
181
|
-
withErrorHandler(
|
|
182
|
-
async (options) => {
|
|
183
|
-
const result = await createGithubLabelListener({
|
|
184
|
-
labelName: options.label,
|
|
185
|
-
agentId: options.agentId,
|
|
186
|
-
prompt: options.prompt,
|
|
187
|
-
triggerMode: parseTriggerMode(options.triggerMode),
|
|
188
|
-
enabled: options.disabled ? false : void 0
|
|
189
|
-
});
|
|
190
|
-
if (options.json) {
|
|
191
|
-
console.log(JSON.stringify(result.listener));
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
console.log(`Created GitHub label listener ${result.listener.id}`);
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
);
|
|
198
|
-
var updateCommand = new Command().name("update").alias("edit").description("Update a GitHub label listener").argument("<listener-id>", "GitHub label listener ID").option("--label <name>", "New GitHub label name").option("--agent-id <id>", "New agent ID").option("--prompt <text>", "New prompt").option(
|
|
199
|
-
"--trigger-mode <mode>",
|
|
200
|
-
"Who can trigger the listener: anyone | created_by_me"
|
|
201
|
-
).option("--enable", "Enable the listener").option("--disable", "Disable the listener").option("--json", "Print raw JSON").action(
|
|
202
|
-
withErrorHandler(
|
|
203
|
-
async (listenerId, options) => {
|
|
204
|
-
if (options.enable && options.disable) {
|
|
205
|
-
throw new Error("Use only one of --enable or --disable");
|
|
206
|
-
}
|
|
207
|
-
const body = {};
|
|
208
|
-
if (options.label !== void 0) body.labelName = options.label;
|
|
209
|
-
if (options.agentId !== void 0) body.agentId = options.agentId;
|
|
210
|
-
if (options.prompt !== void 0) body.prompt = options.prompt;
|
|
211
|
-
if (options.triggerMode !== void 0) {
|
|
212
|
-
body.triggerMode = parseTriggerMode(options.triggerMode);
|
|
213
|
-
}
|
|
214
|
-
if (options.enable) body.enabled = true;
|
|
215
|
-
if (options.disable) body.enabled = false;
|
|
216
|
-
if (Object.keys(body).length === 0) {
|
|
217
|
-
throw new Error(
|
|
218
|
-
"Provide at least one change: --label, --agent-id, --prompt, --trigger-mode, --enable, or --disable"
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
const result = await updateGithubLabelListener(listenerId, body);
|
|
222
|
-
if (options.json) {
|
|
223
|
-
console.log(JSON.stringify(result.listener));
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
console.log(`Updated GitHub label listener ${result.listener.id}`);
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
);
|
|
230
|
-
var deleteCommand = new Command().name("delete").alias("rm").description("Delete a GitHub label listener").argument("<listener-id>", "GitHub label listener ID").option("--json", "Print raw JSON").action(
|
|
231
|
-
withErrorHandler(
|
|
232
|
-
async (listenerId, options) => {
|
|
233
|
-
const result = await deleteGithubLabelListener(listenerId);
|
|
234
|
-
if (options.json) {
|
|
235
|
-
console.log(JSON.stringify(result));
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
console.log(`Deleted GitHub label listener ${listenerId}`);
|
|
239
|
-
}
|
|
240
|
-
)
|
|
241
|
-
);
|
|
242
|
-
var labelListenerCommand = new Command().name("label-listener").alias("label-listeners").alias("labels").description("Manage GitHub label listeners").addCommand(listCommand).addCommand(createCommand).addCommand(updateCommand).addCommand(deleteCommand).addHelpText(
|
|
243
|
-
"after",
|
|
244
|
-
`
|
|
245
|
-
Examples:
|
|
246
|
-
List listeners: zero github label-listener list
|
|
247
|
-
Create listener: zero github label-listener create --label zero --agent-id <agent-id> --prompt "Handle this issue"
|
|
248
|
-
Edit listener: zero github label-listener update <listener-id> --disable
|
|
249
|
-
Delete listener: zero github label-listener delete <listener-id>
|
|
250
|
-
|
|
251
|
-
Notes:
|
|
252
|
-
- Updating or deleting a listener is allowed only for the listener owner or an org admin.`
|
|
253
|
-
);
|
|
254
|
-
|
|
255
95
|
// src/commands/zero/github/upload-file.ts
|
|
256
96
|
init_esm_shims();
|
|
257
97
|
import { readFileSync, statSync } from "fs";
|
|
@@ -351,15 +191,14 @@ Notes:
|
|
|
351
191
|
);
|
|
352
192
|
|
|
353
193
|
// src/commands/zero/github/index.ts
|
|
354
|
-
var zeroGithubCommand = new Command().name("github").description("
|
|
194
|
+
var zeroGithubCommand = new Command().name("github").description("Upload and download GitHub files").addCommand(downloadFileCommand).addCommand(uploadFileCommand).addHelpText(
|
|
355
195
|
"after",
|
|
356
196
|
`
|
|
357
197
|
Examples:
|
|
358
198
|
Upload a file: zero github upload-file -f /tmp/report.pdf -r vm0-ai/vm0 -i 42
|
|
359
|
-
Download a file: zero github download-file https://github.com/user-attachments/assets/abc123 -o /tmp/out.png
|
|
360
|
-
List labels: zero github label-listener list`
|
|
199
|
+
Download a file: zero github download-file https://github.com/user-attachments/assets/abc123 -o /tmp/out.png`
|
|
361
200
|
);
|
|
362
201
|
export {
|
|
363
202
|
zeroGithubCommand
|
|
364
203
|
};
|
|
365
|
-
//# sourceMappingURL=github-
|
|
204
|
+
//# sourceMappingURL=github-EGAIOSFE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/github/index.ts","../src/commands/zero/github/download-file.ts","../src/commands/zero/github/upload-file.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { downloadFileCommand } from \"./download-file\";\nimport { uploadFileCommand } from \"./upload-file\";\n\nexport const zeroGithubCommand = new Command()\n .name(\"github\")\n .description(\"Upload and download GitHub files\")\n .addCommand(downloadFileCommand)\n .addCommand(uploadFileCommand)\n .addHelpText(\n \"after\",\n `\nExamples:\n Upload a file: zero github upload-file -f /tmp/report.pdf -r vm0-ai/vm0 -i 42\n Download a file: zero github download-file https://github.com/user-attachments/assets/abc123 -o /tmp/out.png`,\n );\n","import { basename, join } from \"path\";\nimport { tmpdir } from \"os\";\nimport { Command } from \"commander\";\nimport { downloadGithubFile } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\n\nfunction filenameFromUrl(fileUrl: string): string {\n if (URL.canParse(fileUrl)) {\n const segment = new URL(fileUrl).pathname.split(\"/\").filter(Boolean).pop();\n if (!segment) {\n return \"file\";\n }\n try {\n return decodeURIComponent(segment);\n } catch {\n return segment;\n }\n }\n return basename(fileUrl) || \"file\";\n}\n\nfunction safeDefaultFilename(filename: string): string {\n const component = basename(filename.replaceAll(\"\\\\\", \"/\"));\n if (!component || component === \".\" || component === \"..\") {\n return \"file\";\n }\n return component;\n}\n\nfunction defaultOutPath(fileUrl: string, filename?: string): string {\n return join(\n tmpdir(),\n `github-${safeDefaultFilename(filename || filenameFromUrl(fileUrl))}`,\n );\n}\n\nexport const downloadFileCommand = new Command()\n .name(\"download-file\")\n .description(\"Download a file from a GitHub context block\")\n .argument(\"<url>\", \"URL from a [GitHub file] block\")\n .option(\n \"-o, --out <path>\",\n \"Output path for the downloaded file (default: /tmp/github-<filename-or-url-basename>)\",\n )\n .option(\"--filename <name>\", \"Filename hint from the [GitHub file] block\")\n .addHelpText(\n \"after\",\n `\nExamples:\n Download to default temp path: zero github download-file https://github.com/user-attachments/assets/abc123 --filename screenshot.png\n Download to explicit path: zero github download-file https://github.com/user-attachments/assets/abc123 -o /tmp/screenshot.png\n\nOutput:\n Prints a JSON object to stdout on success:\n {\"path\":\"/tmp/github-screenshot.png\",\"mimetype\":\"image/png\",\"size\":12345}\n\nHow to read the downloaded file:\n - Images (png/jpg/gif/webp/svg): open the file path with your image viewing tool\n - Videos (mp4/mov/webm): transcribe audio first with\n zero video transcribe --url <download-url>\n or extract frames with\n ffmpeg -i <path> -vf \"fps=1\" -q:v 2 /tmp/github_frame_%03d.jpg\n - PDF/text/csv/json/markdown: read the file directly\n\nNotes:\n - The URL comes from a [GitHub file] block\n - Streams the GitHub file bytes through VM0 directly to disk`,\n )\n .action(\n withErrorHandler(\n async (fileUrl: string, options: { out?: string; filename?: string }) => {\n const outPath =\n options.out ?? defaultOutPath(fileUrl, options.filename);\n const result = await downloadGithubFile(\n fileUrl,\n outPath,\n options.filename,\n );\n console.log(JSON.stringify(result));\n },\n ),\n );\n","import { readFileSync, statSync } from \"fs\";\nimport { basename, extname } from \"path\";\nimport { Command } from \"commander\";\nimport {\n completeGithubFileUpload,\n initGithubFileUpload,\n} from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\n\nconst MIME_BY_EXTENSION: Record<string, string> = {\n \".png\": \"image/png\",\n \".jpg\": \"image/jpeg\",\n \".jpeg\": \"image/jpeg\",\n \".gif\": \"image/gif\",\n \".webp\": \"image/webp\",\n \".svg\": \"image/svg+xml\",\n \".mp4\": \"video/mp4\",\n \".webm\": \"video/webm\",\n \".mov\": \"video/quicktime\",\n \".pdf\": \"application/pdf\",\n \".txt\": \"text/plain\",\n \".csv\": \"text/csv\",\n \".md\": \"text/markdown\",\n \".json\": \"application/json\",\n};\n\nfunction inferContentType(localPath: string): string {\n const ext = extname(localPath).toLowerCase();\n return MIME_BY_EXTENSION[ext] ?? \"application/octet-stream\";\n}\n\nfunction parseIssueNumber(value: string): number {\n const parsed = Number(value);\n if (!Number.isSafeInteger(parsed) || parsed <= 0) {\n throw new Error(\"issue-number must be a positive integer\");\n }\n return parsed;\n}\n\nexport const uploadFileCommand = new Command()\n .name(\"upload-file\")\n .description(\"Upload a local file to a GitHub issue or pull request comment\")\n .requiredOption(\"-f, --file <path>\", \"Local file path to upload\")\n .requiredOption(\"-r, --repo <owner/name>\", \"GitHub repository\")\n .requiredOption(\n \"-i, --issue-number <number>\",\n \"GitHub issue or pull request number\",\n )\n .option(\"--caption <text>\", \"Text to include before the file link\")\n .option(\"--content-type <mime>\", \"Override inferred content type\")\n .addHelpText(\n \"after\",\n `\nExamples:\n Upload a file: zero github upload-file -f /tmp/report.pdf -r vm0-ai/vm0 -i 42\n With a caption: zero github upload-file -f /tmp/data.csv -r vm0-ai/vm0 -i 42 --caption \"Daily report\"\n\nOutput:\n Prints a JSON object to stdout on success:\n {\"commentId\":\"123\",\"repo\":\"vm0-ai/vm0\",\"issueNumber\":42,\"filename\":\"report.pdf\",\"mimetype\":\"application/pdf\",\"size\":12345,\"url\":\"https://...\"}\n\nNotes:\n - Uses the GitHub App installation on the server side\n - Uploads through VM0 storage first, then posts a GitHub comment containing the file URL`,\n )\n .action(\n withErrorHandler(\n async (options: {\n file: string;\n repo: string;\n issueNumber: string;\n caption?: string;\n contentType?: string;\n }) => {\n let fileSize: number;\n try {\n const stat = statSync(options.file);\n if (!stat.isFile()) {\n throw new Error(`Not a regular file: ${options.file}`);\n }\n fileSize = stat.size;\n } catch (error) {\n if (error instanceof Error && error.message.startsWith(\"Not \")) {\n throw error;\n }\n throw new Error(`File not found: ${options.file}`);\n }\n\n if (fileSize === 0) {\n throw new Error(\"File is empty\");\n }\n\n const filename = basename(options.file);\n const contentType =\n options.contentType ?? inferContentType(options.file);\n const issueNumber = parseIssueNumber(options.issueNumber);\n\n const prepared = await initGithubFileUpload({\n filename,\n contentType,\n length: fileSize,\n });\n\n const fileContent = readFileSync(options.file);\n const uploadResponse = await fetch(prepared.uploadUrl, {\n method: \"PUT\",\n headers: { \"Content-Type\": prepared.contentType },\n body: new Uint8Array(fileContent),\n });\n\n if (!uploadResponse.ok) {\n throw new Error(\n `File upload failed: ${uploadResponse.status} ${uploadResponse.statusText}`,\n );\n }\n\n const result = await completeGithubFileUpload({\n uploadId: prepared.uploadId,\n repo: options.repo,\n issueNumber,\n contentType: prepared.contentType,\n caption: options.caption,\n });\n\n console.log(JSON.stringify(result));\n },\n ),\n );\n"],"mappings":"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","names":["basename","basename"]}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getGoal,
|
|
12
12
|
pauseGoal,
|
|
13
13
|
resumeGoal
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MPFX7JBV.js";
|
|
15
15
|
import {
|
|
16
16
|
withErrorHandler
|
|
17
17
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -78,4 +78,4 @@ var zeroGoalCommand = new Command().name("goal").description("Manage the current
|
|
|
78
78
|
export {
|
|
79
79
|
zeroGoalCommand
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=goal-
|
|
81
|
+
//# sourceMappingURL=goal-EXT2VNDJ.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getHostedSiteFiles,
|
|
13
13
|
hostedArtifactKindSchema,
|
|
14
14
|
prepareHostedSite
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MPFX7JBV.js";
|
|
16
16
|
import {
|
|
17
17
|
withErrorHandler
|
|
18
18
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -547,4 +547,4 @@ Notes:
|
|
|
547
547
|
export {
|
|
548
548
|
zeroHostCommand
|
|
549
549
|
};
|
|
550
|
-
//# sourceMappingURL=host-
|
|
550
|
+
//# sourceMappingURL=host-33AEVIZA.js.map
|
package/index.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
renderRunCreated,
|
|
41
41
|
require_dist,
|
|
42
42
|
showNextSteps
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-37MXVVML.js";
|
|
44
44
|
import "./chunk-4KC5DNRL.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-QU3UUXGM.js";
|
|
46
|
+
import "./chunk-JOUXZAP3.js";
|
|
47
47
|
import {
|
|
48
48
|
isInteractive,
|
|
49
49
|
promptText
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
prepareStorage,
|
|
78
78
|
searchLogs,
|
|
79
79
|
volumeConfigSchema
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MPFX7JBV.js";
|
|
81
81
|
import {
|
|
82
82
|
ApiRequestError,
|
|
83
83
|
clearConfig,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
} from "./chunk-JUTUEPIR.js";
|
|
95
95
|
import {
|
|
96
96
|
configureGlobalProxyFromEnv
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-HQ27RTRK.js";
|
|
98
98
|
import "./chunk-LRHXR7JT.js";
|
|
99
99
|
import {
|
|
100
100
|
Command,
|
|
@@ -432,7 +432,7 @@ function getConfigPath() {
|
|
|
432
432
|
return join(os.homedir(), ".vm0", "config.json");
|
|
433
433
|
}
|
|
434
434
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
435
|
-
console.log(source_default.bold(`VM0 CLI v${"9.217.
|
|
435
|
+
console.log(source_default.bold(`VM0 CLI v${"9.217.6"}`));
|
|
436
436
|
console.log();
|
|
437
437
|
const config = await loadConfig();
|
|
438
438
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1134,7 +1134,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
1134
1134
|
options.autoUpdate = false;
|
|
1135
1135
|
}
|
|
1136
1136
|
if (options.autoUpdate !== false) {
|
|
1137
|
-
await startSilentUpgrade("9.217.
|
|
1137
|
+
await startSilentUpgrade("9.217.6");
|
|
1138
1138
|
}
|
|
1139
1139
|
try {
|
|
1140
1140
|
const { config, agentName, agent, basePath } = await loadAndValidateConfig(resolvedConfigFile);
|
|
@@ -1231,7 +1231,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
1231
1231
|
withErrorHandler(
|
|
1232
1232
|
async (identifier, prompt, options) => {
|
|
1233
1233
|
if (options.autoUpdate !== false) {
|
|
1234
|
-
await startSilentUpgrade("9.217.
|
|
1234
|
+
await startSilentUpgrade("9.217.6");
|
|
1235
1235
|
}
|
|
1236
1236
|
const { name, version } = parseIdentifier(identifier);
|
|
1237
1237
|
let composeId;
|
|
@@ -3090,13 +3090,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3090
3090
|
if (latestVersion === null) {
|
|
3091
3091
|
throw new Error("Could not check for updates. Please try again later.");
|
|
3092
3092
|
}
|
|
3093
|
-
if (latestVersion === "9.217.
|
|
3094
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.217.
|
|
3093
|
+
if (latestVersion === "9.217.6") {
|
|
3094
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.217.6"})`));
|
|
3095
3095
|
return;
|
|
3096
3096
|
}
|
|
3097
3097
|
console.log(
|
|
3098
3098
|
source_default.yellow(
|
|
3099
|
-
`Current version: ${"9.217.
|
|
3099
|
+
`Current version: ${"9.217.6"} -> Latest version: ${latestVersion}`
|
|
3100
3100
|
)
|
|
3101
3101
|
);
|
|
3102
3102
|
console.log();
|
|
@@ -3123,7 +3123,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3123
3123
|
const success = await performUpgrade(packageManager);
|
|
3124
3124
|
if (success) {
|
|
3125
3125
|
console.log(
|
|
3126
|
-
source_default.green(`\u2713 Upgraded from ${"9.217.
|
|
3126
|
+
source_default.green(`\u2713 Upgraded from ${"9.217.6"} to ${latestVersion}`)
|
|
3127
3127
|
);
|
|
3128
3128
|
return;
|
|
3129
3129
|
}
|
|
@@ -3190,7 +3190,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
3190
3190
|
|
|
3191
3191
|
// src/index.ts
|
|
3192
3192
|
var program = new Command();
|
|
3193
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.217.
|
|
3193
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.217.6");
|
|
3194
3194
|
program.addCommand(authCommand);
|
|
3195
3195
|
program.addCommand(infoCommand);
|
|
3196
3196
|
program.addCommand(composeCommand);
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
searchCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LRTLF7ZC.js";
|
|
7
7
|
import {
|
|
8
8
|
EventRenderer,
|
|
9
9
|
EventStreamNormalizer,
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
parseBoundedLogCount,
|
|
15
15
|
parsePositiveLogCount,
|
|
16
16
|
parseTime
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-37MXVVML.js";
|
|
18
18
|
import "./chunk-4KC5DNRL.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QU3UUXGM.js";
|
|
20
|
+
import "./chunk-JOUXZAP3.js";
|
|
21
21
|
import "./chunk-LTDQISD7.js";
|
|
22
22
|
import {
|
|
23
23
|
getZeroRunAgentEvents,
|
|
24
24
|
listZeroLogs
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MPFX7JBV.js";
|
|
26
26
|
import {
|
|
27
27
|
withErrorHandler
|
|
28
28
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -274,4 +274,4 @@ Examples:
|
|
|
274
274
|
export {
|
|
275
275
|
zeroLogsCommand
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=logs-
|
|
277
|
+
//# sourceMappingURL=logs-2G5RDIJP.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import "./chunk-LTDQISD7.js";
|
|
5
5
|
import {
|
|
6
6
|
callZeroMaps
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MPFX7JBV.js";
|
|
8
8
|
import {
|
|
9
9
|
withErrorHandler
|
|
10
10
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -484,4 +484,4 @@ Notes:
|
|
|
484
484
|
export {
|
|
485
485
|
zeroMapsCommand
|
|
486
486
|
};
|
|
487
|
-
//# sourceMappingURL=maps-
|
|
487
|
+
//# sourceMappingURL=maps-IRRYG772.js.map
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UIMA34V4.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
getVm0ModelPriceTier,
|
|
12
12
|
listZeroModelPolicies
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MPFX7JBV.js";
|
|
14
14
|
import {
|
|
15
15
|
withErrorHandler
|
|
16
16
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
switchCommand,
|
|
91
91
|
zeroModelCommand
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=model-
|
|
93
|
+
//# sourceMappingURL=model-CYIZEKQ7.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
getModelProviderRouteKind,
|
|
7
7
|
getModelProviderTypeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UIMA34V4.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
listZeroModelPolicies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MPFX7JBV.js";
|
|
13
13
|
import {
|
|
14
14
|
withErrorHandler
|
|
15
15
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
setCommand,
|
|
75
75
|
zeroModelProviderCommand
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=model-provider-
|
|
77
|
+
//# sourceMappingURL=model-provider-B6OPQDRU.js.map
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
switchZeroOrg,
|
|
34
34
|
updateZeroOrg,
|
|
35
35
|
upsertZeroOrgModelProvider
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MPFX7JBV.js";
|
|
37
37
|
import {
|
|
38
38
|
ApiRequestError,
|
|
39
39
|
getActiveOrg,
|
|
@@ -919,4 +919,4 @@ var zeroOrgCommand = new Command().name("org").description("Manage organization
|
|
|
919
919
|
export {
|
|
920
920
|
zeroOrgCommand
|
|
921
921
|
};
|
|
922
|
-
//# sourceMappingURL=org-
|
|
922
|
+
//# sourceMappingURL=org-MU5LDZXF.js.map
|