@vm0/cli 9.90.1 → 9.90.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-RJS4OQ2I.js → chunk-VO3BTEUW.js} +58 -52
- package/chunk-VO3BTEUW.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +90 -94
- package/zero.js.map +1 -1
- package/chunk-RJS4OQ2I.js.map +0 -1
|
@@ -47,7 +47,7 @@ if (DSN) {
|
|
|
47
47
|
Sentry.init({
|
|
48
48
|
dsn: DSN,
|
|
49
49
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
50
|
-
release: "9.90.
|
|
50
|
+
release: "9.90.2",
|
|
51
51
|
sendDefaultPii: false,
|
|
52
52
|
tracesSampleRate: 0,
|
|
53
53
|
shutdownTimeout: 500,
|
|
@@ -66,7 +66,7 @@ if (DSN) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
Sentry.setContext("cli", {
|
|
69
|
-
version: "9.90.
|
|
69
|
+
version: "9.90.2",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -2828,6 +2828,19 @@ var chatThreadByIdContract = c10.router({
|
|
|
2828
2828
|
404: apiErrorSchema
|
|
2829
2829
|
},
|
|
2830
2830
|
summary: "Get chat thread detail with messages"
|
|
2831
|
+
},
|
|
2832
|
+
delete: {
|
|
2833
|
+
method: "DELETE",
|
|
2834
|
+
path: "/api/zero/chat-threads/:id",
|
|
2835
|
+
headers: authHeadersSchema,
|
|
2836
|
+
pathParams: z17.object({ id: z17.string() }),
|
|
2837
|
+
responses: {
|
|
2838
|
+
204: c10.noBody(),
|
|
2839
|
+
401: apiErrorSchema,
|
|
2840
|
+
404: apiErrorSchema
|
|
2841
|
+
},
|
|
2842
|
+
summary: "Delete a chat thread",
|
|
2843
|
+
body: c10.noBody()
|
|
2831
2844
|
}
|
|
2832
2845
|
});
|
|
2833
2846
|
var chatMessagesContract = c10.router({
|
|
@@ -16770,25 +16783,22 @@ var zeroAgentSkillContentResponseSchema = z26.object({
|
|
|
16770
16783
|
var zeroAgentSkillListResponseSchema = z26.array(
|
|
16771
16784
|
zeroAgentCustomSkillSchema
|
|
16772
16785
|
);
|
|
16773
|
-
var
|
|
16786
|
+
var zeroSkillsCollectionContract = c17.router({
|
|
16774
16787
|
list: {
|
|
16775
16788
|
method: "GET",
|
|
16776
|
-
path: "/api/zero/
|
|
16789
|
+
path: "/api/zero/skills",
|
|
16777
16790
|
headers: authHeadersSchema,
|
|
16778
|
-
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
16779
16791
|
responses: {
|
|
16780
16792
|
200: zeroAgentSkillListResponseSchema,
|
|
16781
16793
|
401: apiErrorSchema,
|
|
16782
|
-
403: apiErrorSchema
|
|
16783
|
-
404: apiErrorSchema
|
|
16794
|
+
403: apiErrorSchema
|
|
16784
16795
|
},
|
|
16785
|
-
summary: "List custom skills
|
|
16796
|
+
summary: "List all custom skills in the organization"
|
|
16786
16797
|
},
|
|
16787
16798
|
create: {
|
|
16788
16799
|
method: "POST",
|
|
16789
|
-
path: "/api/zero/
|
|
16800
|
+
path: "/api/zero/skills",
|
|
16790
16801
|
headers: authHeadersSchema,
|
|
16791
|
-
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
16792
16802
|
body: zeroAgentSkillContentRequestSchema.extend({
|
|
16793
16803
|
name: zeroAgentCustomSkillNameSchema,
|
|
16794
16804
|
displayName: z26.string().max(256).optional(),
|
|
@@ -16799,21 +16809,17 @@ var zeroAgentSkillsCollectionContract = c17.router({
|
|
|
16799
16809
|
400: apiErrorSchema,
|
|
16800
16810
|
401: apiErrorSchema,
|
|
16801
16811
|
403: apiErrorSchema,
|
|
16802
|
-
404: apiErrorSchema,
|
|
16803
16812
|
409: apiErrorSchema
|
|
16804
16813
|
},
|
|
16805
|
-
summary: "Create custom skill
|
|
16814
|
+
summary: "Create a custom skill in the organization"
|
|
16806
16815
|
}
|
|
16807
16816
|
});
|
|
16808
|
-
var
|
|
16817
|
+
var zeroSkillsDetailContract = c17.router({
|
|
16809
16818
|
get: {
|
|
16810
16819
|
method: "GET",
|
|
16811
|
-
path: "/api/zero/
|
|
16820
|
+
path: "/api/zero/skills/:name",
|
|
16812
16821
|
headers: authHeadersSchema,
|
|
16813
|
-
pathParams: z26.object({
|
|
16814
|
-
id: z26.string().uuid(),
|
|
16815
|
-
name: zeroAgentCustomSkillNameSchema
|
|
16816
|
-
}),
|
|
16822
|
+
pathParams: z26.object({ name: zeroAgentCustomSkillNameSchema }),
|
|
16817
16823
|
responses: {
|
|
16818
16824
|
200: zeroAgentSkillContentResponseSchema,
|
|
16819
16825
|
401: apiErrorSchema,
|
|
@@ -16824,12 +16830,9 @@ var zeroAgentSkillsDetailContract = c17.router({
|
|
|
16824
16830
|
},
|
|
16825
16831
|
update: {
|
|
16826
16832
|
method: "PUT",
|
|
16827
|
-
path: "/api/zero/
|
|
16833
|
+
path: "/api/zero/skills/:name",
|
|
16828
16834
|
headers: authHeadersSchema,
|
|
16829
|
-
pathParams: z26.object({
|
|
16830
|
-
id: z26.string().uuid(),
|
|
16831
|
-
name: zeroAgentCustomSkillNameSchema
|
|
16832
|
-
}),
|
|
16835
|
+
pathParams: z26.object({ name: zeroAgentCustomSkillNameSchema }),
|
|
16833
16836
|
body: zeroAgentSkillContentRequestSchema,
|
|
16834
16837
|
responses: {
|
|
16835
16838
|
200: zeroAgentSkillContentResponseSchema,
|
|
@@ -16841,12 +16844,9 @@ var zeroAgentSkillsDetailContract = c17.router({
|
|
|
16841
16844
|
},
|
|
16842
16845
|
delete: {
|
|
16843
16846
|
method: "DELETE",
|
|
16844
|
-
path: "/api/zero/
|
|
16847
|
+
path: "/api/zero/skills/:name",
|
|
16845
16848
|
headers: authHeadersSchema,
|
|
16846
|
-
pathParams: z26.object({
|
|
16847
|
-
id: z26.string().uuid(),
|
|
16848
|
-
name: zeroAgentCustomSkillNameSchema
|
|
16849
|
-
}),
|
|
16849
|
+
pathParams: z26.object({ name: zeroAgentCustomSkillNameSchema }),
|
|
16850
16850
|
body: c17.noBody(),
|
|
16851
16851
|
responses: {
|
|
16852
16852
|
204: c17.noBody(),
|
|
@@ -16854,7 +16854,7 @@ var zeroAgentSkillsDetailContract = c17.router({
|
|
|
16854
16854
|
403: apiErrorSchema,
|
|
16855
16855
|
404: apiErrorSchema
|
|
16856
16856
|
},
|
|
16857
|
-
summary: "Delete custom skill"
|
|
16857
|
+
summary: "Delete custom skill from the organization"
|
|
16858
16858
|
}
|
|
16859
16859
|
});
|
|
16860
16860
|
var firewallAccessRequestStatusSchema = z26.enum([
|
|
@@ -16872,6 +16872,7 @@ var firewallAccessRequestResponseSchema = z26.object({
|
|
|
16872
16872
|
reason: z26.string().nullable(),
|
|
16873
16873
|
status: firewallAccessRequestStatusSchema,
|
|
16874
16874
|
requesterUserId: z26.string(),
|
|
16875
|
+
requesterName: z26.string().nullable(),
|
|
16875
16876
|
resolvedBy: z26.string().nullable(),
|
|
16876
16877
|
resolvedAt: z26.string().nullable(),
|
|
16877
16878
|
createdAt: z26.string()
|
|
@@ -16904,11 +16905,16 @@ var firewallAccessRequestsCreateContract = c17.router({
|
|
|
16904
16905
|
summary: "Create firewall access request"
|
|
16905
16906
|
}
|
|
16906
16907
|
});
|
|
16908
|
+
var firewallAccessRequestsListQuerySchema = z26.object({
|
|
16909
|
+
agentId: z26.string(),
|
|
16910
|
+
status: z26.string().optional()
|
|
16911
|
+
});
|
|
16907
16912
|
var firewallAccessRequestsListContract = c17.router({
|
|
16908
16913
|
list: {
|
|
16909
16914
|
method: "GET",
|
|
16910
16915
|
path: "/api/zero/firewall-access-requests",
|
|
16911
16916
|
headers: authHeadersSchema,
|
|
16917
|
+
query: firewallAccessRequestsListQuerySchema,
|
|
16912
16918
|
responses: {
|
|
16913
16919
|
200: z26.array(firewallAccessRequestResponseSchema),
|
|
16914
16920
|
400: apiErrorSchema,
|
|
@@ -19664,40 +19670,40 @@ async function updateZeroAgentInstructions(id, content) {
|
|
|
19664
19670
|
handleError(result, `Failed to update instructions for zero agent "${id}"`);
|
|
19665
19671
|
}
|
|
19666
19672
|
|
|
19667
|
-
// src/lib/api/domains/zero-
|
|
19673
|
+
// src/lib/api/domains/zero-skills.ts
|
|
19668
19674
|
import { initClient as initClient16 } from "@ts-rest/core";
|
|
19669
|
-
async function
|
|
19675
|
+
async function listSkills() {
|
|
19670
19676
|
const config = await getClientConfig();
|
|
19671
|
-
const client = initClient16(
|
|
19672
|
-
const result = await client.list(
|
|
19677
|
+
const client = initClient16(zeroSkillsCollectionContract, config);
|
|
19678
|
+
const result = await client.list();
|
|
19673
19679
|
if (result.status === 200) return result.body;
|
|
19674
|
-
handleError(result,
|
|
19680
|
+
handleError(result, "Failed to list skills");
|
|
19675
19681
|
}
|
|
19676
|
-
async function
|
|
19682
|
+
async function createSkill(body) {
|
|
19677
19683
|
const config = await getClientConfig();
|
|
19678
|
-
const client = initClient16(
|
|
19679
|
-
const result = await client.create({
|
|
19684
|
+
const client = initClient16(zeroSkillsCollectionContract, config);
|
|
19685
|
+
const result = await client.create({ body });
|
|
19680
19686
|
if (result.status === 201) return result.body;
|
|
19681
19687
|
handleError(result, `Failed to create skill "${body.name}"`);
|
|
19682
19688
|
}
|
|
19683
|
-
async function
|
|
19689
|
+
async function getSkill(name) {
|
|
19684
19690
|
const config = await getClientConfig();
|
|
19685
|
-
const client = initClient16(
|
|
19686
|
-
const result = await client.get({ params: {
|
|
19691
|
+
const client = initClient16(zeroSkillsDetailContract, config);
|
|
19692
|
+
const result = await client.get({ params: { name } });
|
|
19687
19693
|
if (result.status === 200) return result.body;
|
|
19688
19694
|
handleError(result, `Skill "${name}" not found`);
|
|
19689
19695
|
}
|
|
19690
|
-
async function
|
|
19696
|
+
async function updateSkill(name, body) {
|
|
19691
19697
|
const config = await getClientConfig();
|
|
19692
|
-
const client = initClient16(
|
|
19693
|
-
const result = await client.update({ params: {
|
|
19698
|
+
const client = initClient16(zeroSkillsDetailContract, config);
|
|
19699
|
+
const result = await client.update({ params: { name }, body });
|
|
19694
19700
|
if (result.status === 200) return result.body;
|
|
19695
19701
|
handleError(result, `Failed to update skill "${name}"`);
|
|
19696
19702
|
}
|
|
19697
|
-
async function
|
|
19703
|
+
async function deleteSkill(name) {
|
|
19698
19704
|
const config = await getClientConfig();
|
|
19699
|
-
const client = initClient16(
|
|
19700
|
-
const result = await client.delete({ params: {
|
|
19705
|
+
const client = initClient16(zeroSkillsDetailContract, config);
|
|
19706
|
+
const result = await client.delete({ params: { name } });
|
|
19701
19707
|
if (result.status === 204) return;
|
|
19702
19708
|
handleError(result, `Skill "${name}" not found`);
|
|
19703
19709
|
}
|
|
@@ -20796,11 +20802,11 @@ export {
|
|
|
20796
20802
|
getZeroAgentUserConnectors,
|
|
20797
20803
|
setZeroAgentUserConnectors,
|
|
20798
20804
|
updateZeroAgentInstructions,
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20805
|
+
listSkills,
|
|
20806
|
+
createSkill,
|
|
20807
|
+
getSkill,
|
|
20808
|
+
updateSkill,
|
|
20809
|
+
deleteSkill,
|
|
20804
20810
|
listZeroConnectors,
|
|
20805
20811
|
getZeroConnector,
|
|
20806
20812
|
deleteZeroConnector,
|
|
@@ -20845,4 +20851,4 @@ export {
|
|
|
20845
20851
|
pollEvents,
|
|
20846
20852
|
showNextSteps
|
|
20847
20853
|
};
|
|
20848
|
-
//# sourceMappingURL=chunk-
|
|
20854
|
+
//# sourceMappingURL=chunk-VO3BTEUW.js.map
|