@vm0/cli 9.59.2 → 9.59.4
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/index.js +62 -35
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -45,7 +45,7 @@ if (DSN) {
|
|
|
45
45
|
Sentry.init({
|
|
46
46
|
dsn: DSN,
|
|
47
47
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
48
|
-
release: "9.59.
|
|
48
|
+
release: "9.59.4",
|
|
49
49
|
sendDefaultPii: false,
|
|
50
50
|
tracesSampleRate: 0,
|
|
51
51
|
shutdownTimeout: 500,
|
|
@@ -64,7 +64,7 @@ if (DSN) {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
Sentry.setContext("cli", {
|
|
67
|
-
version: "9.59.
|
|
67
|
+
version: "9.59.4",
|
|
68
68
|
command: process.argv.slice(2).join(" ")
|
|
69
69
|
});
|
|
70
70
|
Sentry.setContext("runtime", {
|
|
@@ -673,7 +673,7 @@ function getConfigPath() {
|
|
|
673
673
|
return join2(homedir2(), ".vm0", "config.json");
|
|
674
674
|
}
|
|
675
675
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
676
|
-
console.log(chalk4.bold(`VM0 CLI v${"9.59.
|
|
676
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.59.4"}`));
|
|
677
677
|
console.log();
|
|
678
678
|
const config = await loadConfig();
|
|
679
679
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -6451,7 +6451,7 @@ var computerConnectorContract = c18.router({
|
|
|
6451
6451
|
|
|
6452
6452
|
// ../../packages/core/src/contracts/services.ts
|
|
6453
6453
|
function bearerAuth(secretName) {
|
|
6454
|
-
return { headers: { Authorization: `Bearer \${secrets.${secretName}}` } };
|
|
6454
|
+
return { headers: { Authorization: `Bearer \${{ secrets.${secretName} }}` } };
|
|
6455
6455
|
}
|
|
6456
6456
|
var FULL_ACCESS_PERMISSION = {
|
|
6457
6457
|
name: "full-access",
|
|
@@ -6572,6 +6572,33 @@ var SERVICE_CONFIGS = {
|
|
|
6572
6572
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
6573
6573
|
]
|
|
6574
6574
|
},
|
|
6575
|
+
{
|
|
6576
|
+
name: "user-read",
|
|
6577
|
+
description: "Read authenticated user profile and related data",
|
|
6578
|
+
rules: [
|
|
6579
|
+
"GET /user",
|
|
6580
|
+
"GET /user/emails",
|
|
6581
|
+
"GET /user/repos",
|
|
6582
|
+
"GET /user/orgs",
|
|
6583
|
+
"GET /user/teams",
|
|
6584
|
+
"GET /user/starred",
|
|
6585
|
+
"GET /user/subscriptions",
|
|
6586
|
+
"GET /users/{username}",
|
|
6587
|
+
"GET /users/{username}/repos",
|
|
6588
|
+
"GET /users/{username}/orgs"
|
|
6589
|
+
]
|
|
6590
|
+
},
|
|
6591
|
+
{
|
|
6592
|
+
name: "user-write",
|
|
6593
|
+
description: "Update user profile, manage starred repos and email",
|
|
6594
|
+
rules: [
|
|
6595
|
+
"PATCH /user",
|
|
6596
|
+
"POST /user/emails",
|
|
6597
|
+
"DELETE /user/emails",
|
|
6598
|
+
"PUT /user/starred/{owner}/{repo}",
|
|
6599
|
+
"DELETE /user/starred/{owner}/{repo}"
|
|
6600
|
+
]
|
|
6601
|
+
},
|
|
6575
6602
|
{
|
|
6576
6603
|
name: "search",
|
|
6577
6604
|
description: "Search code, issues, and repositories",
|
|
@@ -6593,7 +6620,7 @@ var SERVICE_CONFIGS = {
|
|
|
6593
6620
|
apis: [
|
|
6594
6621
|
api("https://api.notion.com/v1", {
|
|
6595
6622
|
headers: {
|
|
6596
|
-
Authorization: "Bearer ${secrets.NOTION_TOKEN}",
|
|
6623
|
+
Authorization: "Bearer ${{ secrets.NOTION_TOKEN }}",
|
|
6597
6624
|
"Notion-Version": "2022-06-28"
|
|
6598
6625
|
}
|
|
6599
6626
|
})
|
|
@@ -6645,14 +6672,14 @@ var SERVICE_CONFIGS = {
|
|
|
6645
6672
|
hume: {
|
|
6646
6673
|
apis: [
|
|
6647
6674
|
api("https://api.hume.ai", {
|
|
6648
|
-
headers: { "X-Hume-Api-Key": "${secrets.HUME_TOKEN}" }
|
|
6675
|
+
headers: { "X-Hume-Api-Key": "${{ secrets.HUME_TOKEN }}" }
|
|
6649
6676
|
})
|
|
6650
6677
|
]
|
|
6651
6678
|
},
|
|
6652
6679
|
heygen: {
|
|
6653
6680
|
apis: [
|
|
6654
6681
|
api("https://api.heygen.com", {
|
|
6655
|
-
headers: { "x-api-key": "${secrets.HEYGEN_TOKEN}" }
|
|
6682
|
+
headers: { "x-api-key": "${{ secrets.HEYGEN_TOKEN }}" }
|
|
6656
6683
|
})
|
|
6657
6684
|
]
|
|
6658
6685
|
},
|
|
@@ -6697,12 +6724,12 @@ var SERVICE_CONFIGS = {
|
|
|
6697
6724
|
apis: [
|
|
6698
6725
|
api("https://api.jotform.com", {
|
|
6699
6726
|
headers: {
|
|
6700
|
-
APIKEY: "${secrets.JOTFORM_TOKEN}"
|
|
6727
|
+
APIKEY: "${{ secrets.JOTFORM_TOKEN }}"
|
|
6701
6728
|
}
|
|
6702
6729
|
}),
|
|
6703
6730
|
api("https://eu-api.jotform.com", {
|
|
6704
6731
|
headers: {
|
|
6705
|
-
APIKEY: "${secrets.JOTFORM_TOKEN}"
|
|
6732
|
+
APIKEY: "${{ secrets.JOTFORM_TOKEN }}"
|
|
6706
6733
|
}
|
|
6707
6734
|
})
|
|
6708
6735
|
]
|
|
@@ -6714,22 +6741,22 @@ var SERVICE_CONFIGS = {
|
|
|
6714
6741
|
apis: [
|
|
6715
6742
|
api("https://eu1.make.com/api/v2", {
|
|
6716
6743
|
headers: {
|
|
6717
|
-
Authorization: "Token ${secrets.MAKE_TOKEN}"
|
|
6744
|
+
Authorization: "Token ${{ secrets.MAKE_TOKEN }}"
|
|
6718
6745
|
}
|
|
6719
6746
|
}),
|
|
6720
6747
|
api("https://eu2.make.com/api/v2", {
|
|
6721
6748
|
headers: {
|
|
6722
|
-
Authorization: "Token ${secrets.MAKE_TOKEN}"
|
|
6749
|
+
Authorization: "Token ${{ secrets.MAKE_TOKEN }}"
|
|
6723
6750
|
}
|
|
6724
6751
|
}),
|
|
6725
6752
|
api("https://us1.make.com/api/v2", {
|
|
6726
6753
|
headers: {
|
|
6727
|
-
Authorization: "Token ${secrets.MAKE_TOKEN}"
|
|
6754
|
+
Authorization: "Token ${{ secrets.MAKE_TOKEN }}"
|
|
6728
6755
|
}
|
|
6729
6756
|
}),
|
|
6730
6757
|
api("https://us2.make.com/api/v2", {
|
|
6731
6758
|
headers: {
|
|
6732
|
-
Authorization: "Token ${secrets.MAKE_TOKEN}"
|
|
6759
|
+
Authorization: "Token ${{ secrets.MAKE_TOKEN }}"
|
|
6733
6760
|
}
|
|
6734
6761
|
})
|
|
6735
6762
|
]
|
|
@@ -6738,7 +6765,7 @@ var SERVICE_CONFIGS = {
|
|
|
6738
6765
|
apis: [
|
|
6739
6766
|
api("https://api.metabase.com", {
|
|
6740
6767
|
headers: {
|
|
6741
|
-
"x-api-key": "${secrets.METABASE_TOKEN}"
|
|
6768
|
+
"x-api-key": "${{ secrets.METABASE_TOKEN }}"
|
|
6742
6769
|
}
|
|
6743
6770
|
})
|
|
6744
6771
|
]
|
|
@@ -6834,7 +6861,7 @@ var SERVICE_CONFIGS = {
|
|
|
6834
6861
|
similarweb: {
|
|
6835
6862
|
apis: [
|
|
6836
6863
|
api("https://api.similarweb.com", {
|
|
6837
|
-
headers: { "api-key": "${secrets.SIMILARWEB_API_KEY}" }
|
|
6864
|
+
headers: { "api-key": "${{ secrets.SIMILARWEB_API_KEY }}" }
|
|
6838
6865
|
})
|
|
6839
6866
|
]
|
|
6840
6867
|
},
|
|
@@ -6865,14 +6892,14 @@ var SERVICE_CONFIGS = {
|
|
|
6865
6892
|
pdf4me: {
|
|
6866
6893
|
apis: [
|
|
6867
6894
|
api("https://api.pdf4me.com", {
|
|
6868
|
-
headers: { Authorization: "${secrets.PDF4ME_TOKEN}" }
|
|
6895
|
+
headers: { Authorization: "${{ secrets.PDF4ME_TOKEN }}" }
|
|
6869
6896
|
})
|
|
6870
6897
|
]
|
|
6871
6898
|
},
|
|
6872
6899
|
pdfco: {
|
|
6873
6900
|
apis: [
|
|
6874
6901
|
api("https://api.pdf.co/v1", {
|
|
6875
|
-
headers: { "x-api-key": "${secrets.PDFCO_TOKEN}" }
|
|
6902
|
+
headers: { "x-api-key": "${{ secrets.PDFCO_TOKEN }}" }
|
|
6876
6903
|
})
|
|
6877
6904
|
]
|
|
6878
6905
|
},
|
|
@@ -6885,7 +6912,7 @@ var SERVICE_CONFIGS = {
|
|
|
6885
6912
|
browserbase: {
|
|
6886
6913
|
apis: [
|
|
6887
6914
|
api("https://api.browserbase.com/v1", {
|
|
6888
|
-
headers: { "X-BB-API-Key": "${secrets.BROWSERBASE_TOKEN}" }
|
|
6915
|
+
headers: { "X-BB-API-Key": "${{ secrets.BROWSERBASE_TOKEN }}" }
|
|
6889
6916
|
})
|
|
6890
6917
|
]
|
|
6891
6918
|
},
|
|
@@ -6897,7 +6924,7 @@ var SERVICE_CONFIGS = {
|
|
|
6897
6924
|
explorium: {
|
|
6898
6925
|
apis: [
|
|
6899
6926
|
api("https://api.explorium.ai", {
|
|
6900
|
-
headers: { api_key: "${secrets.EXPLORIUM_TOKEN}" }
|
|
6927
|
+
headers: { api_key: "${{ secrets.EXPLORIUM_TOKEN }}" }
|
|
6901
6928
|
})
|
|
6902
6929
|
]
|
|
6903
6930
|
},
|
|
@@ -6907,21 +6934,21 @@ var SERVICE_CONFIGS = {
|
|
|
6907
6934
|
scrapeninja: {
|
|
6908
6935
|
apis: [
|
|
6909
6936
|
api("https://scrapeninja.p.rapidapi.com", {
|
|
6910
|
-
headers: { "X-RapidAPI-Key": "${secrets.SCRAPENINJA_TOKEN}" }
|
|
6937
|
+
headers: { "X-RapidAPI-Key": "${{ secrets.SCRAPENINJA_TOKEN }}" }
|
|
6911
6938
|
})
|
|
6912
6939
|
]
|
|
6913
6940
|
},
|
|
6914
6941
|
elevenlabs: {
|
|
6915
6942
|
apis: [
|
|
6916
6943
|
api("https://api.elevenlabs.io", {
|
|
6917
|
-
headers: { "xi-api-key": "${secrets.ELEVENLABS_TOKEN}" }
|
|
6944
|
+
headers: { "xi-api-key": "${{ secrets.ELEVENLABS_TOKEN }}" }
|
|
6918
6945
|
})
|
|
6919
6946
|
]
|
|
6920
6947
|
},
|
|
6921
6948
|
devto: {
|
|
6922
6949
|
apis: [
|
|
6923
6950
|
api("https://dev.to/api", {
|
|
6924
|
-
headers: { "api-key": "${secrets.DEVTO_TOKEN}" }
|
|
6951
|
+
headers: { "api-key": "${{ secrets.DEVTO_TOKEN }}" }
|
|
6925
6952
|
})
|
|
6926
6953
|
]
|
|
6927
6954
|
},
|
|
@@ -6937,7 +6964,7 @@ var SERVICE_CONFIGS = {
|
|
|
6937
6964
|
qdrant: {
|
|
6938
6965
|
apis: [
|
|
6939
6966
|
api("https://cloud.qdrant.io", {
|
|
6940
|
-
headers: { "api-key": "${secrets.QDRANT_TOKEN}" }
|
|
6967
|
+
headers: { "api-key": "${{ secrets.QDRANT_TOKEN }}" }
|
|
6941
6968
|
})
|
|
6942
6969
|
]
|
|
6943
6970
|
},
|
|
@@ -6953,7 +6980,7 @@ var SERVICE_CONFIGS = {
|
|
|
6953
6980
|
apis: [
|
|
6954
6981
|
api("https://api.zeptomail.com/v1.1", {
|
|
6955
6982
|
headers: {
|
|
6956
|
-
Authorization: "Zoho-enczapikey ${secrets.ZEPTOMAIL_TOKEN}"
|
|
6983
|
+
Authorization: "Zoho-enczapikey ${{ secrets.ZEPTOMAIL_TOKEN }}"
|
|
6957
6984
|
}
|
|
6958
6985
|
})
|
|
6959
6986
|
]
|
|
@@ -6964,14 +6991,14 @@ var SERVICE_CONFIGS = {
|
|
|
6964
6991
|
shortio: {
|
|
6965
6992
|
apis: [
|
|
6966
6993
|
api("https://api.short.io", {
|
|
6967
|
-
headers: { Authorization: "${secrets.SHORTIO_TOKEN}" }
|
|
6994
|
+
headers: { Authorization: "${{ secrets.SHORTIO_TOKEN }}" }
|
|
6968
6995
|
})
|
|
6969
6996
|
]
|
|
6970
6997
|
},
|
|
6971
6998
|
supadata: {
|
|
6972
6999
|
apis: [
|
|
6973
7000
|
api("https://api.supadata.ai/v1", {
|
|
6974
|
-
headers: { "x-api-key": "${secrets.SUPADATA_TOKEN}" }
|
|
7001
|
+
headers: { "x-api-key": "${{ secrets.SUPADATA_TOKEN }}" }
|
|
6975
7002
|
})
|
|
6976
7003
|
]
|
|
6977
7004
|
},
|
|
@@ -6981,7 +7008,7 @@ var SERVICE_CONFIGS = {
|
|
|
6981
7008
|
tldv: {
|
|
6982
7009
|
apis: [
|
|
6983
7010
|
api("https://pasta.tldv.io", {
|
|
6984
|
-
headers: { "x-api-key": "${secrets.TLDV_TOKEN}" }
|
|
7011
|
+
headers: { "x-api-key": "${{ secrets.TLDV_TOKEN }}" }
|
|
6985
7012
|
})
|
|
6986
7013
|
]
|
|
6987
7014
|
},
|
|
@@ -9886,7 +9913,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9886
9913
|
options.autoUpdate = false;
|
|
9887
9914
|
}
|
|
9888
9915
|
if (options.autoUpdate !== false) {
|
|
9889
|
-
await startSilentUpgrade("9.59.
|
|
9916
|
+
await startSilentUpgrade("9.59.4");
|
|
9890
9917
|
}
|
|
9891
9918
|
try {
|
|
9892
9919
|
let result;
|
|
@@ -11060,7 +11087,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
11060
11087
|
withErrorHandler(
|
|
11061
11088
|
async (identifier, prompt, options) => {
|
|
11062
11089
|
if (options.autoUpdate !== false) {
|
|
11063
|
-
await startSilentUpgrade("9.59.
|
|
11090
|
+
await startSilentUpgrade("9.59.4");
|
|
11064
11091
|
}
|
|
11065
11092
|
const { org, name, version } = parseIdentifier(identifier);
|
|
11066
11093
|
if (org && !options.experimentalSharedAgent) {
|
|
@@ -12747,7 +12774,7 @@ var cookAction = new Command34().name("cook").description("Quick start: prepare,
|
|
|
12747
12774
|
withErrorHandler(
|
|
12748
12775
|
async (prompt, options) => {
|
|
12749
12776
|
if (options.autoUpdate !== false) {
|
|
12750
|
-
const shouldExit = await checkAndUpgrade("9.59.
|
|
12777
|
+
const shouldExit = await checkAndUpgrade("9.59.4", prompt);
|
|
12751
12778
|
if (shouldExit) {
|
|
12752
12779
|
process.exit(0);
|
|
12753
12780
|
}
|
|
@@ -18098,13 +18125,13 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
18098
18125
|
if (latestVersion === null) {
|
|
18099
18126
|
throw new Error("Could not check for updates. Please try again later.");
|
|
18100
18127
|
}
|
|
18101
|
-
if (latestVersion === "9.59.
|
|
18102
|
-
console.log(chalk84.green(`\u2713 Already up to date (${"9.59.
|
|
18128
|
+
if (latestVersion === "9.59.4") {
|
|
18129
|
+
console.log(chalk84.green(`\u2713 Already up to date (${"9.59.4"})`));
|
|
18103
18130
|
return;
|
|
18104
18131
|
}
|
|
18105
18132
|
console.log(
|
|
18106
18133
|
chalk84.yellow(
|
|
18107
|
-
`Current version: ${"9.59.
|
|
18134
|
+
`Current version: ${"9.59.4"} -> Latest version: ${latestVersion}`
|
|
18108
18135
|
)
|
|
18109
18136
|
);
|
|
18110
18137
|
console.log();
|
|
@@ -18131,7 +18158,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
18131
18158
|
const success = await performUpgrade(packageManager);
|
|
18132
18159
|
if (success) {
|
|
18133
18160
|
console.log(
|
|
18134
|
-
chalk84.green(`\u2713 Upgraded from ${"9.59.
|
|
18161
|
+
chalk84.green(`\u2713 Upgraded from ${"9.59.4"} to ${latestVersion}`)
|
|
18135
18162
|
);
|
|
18136
18163
|
return;
|
|
18137
18164
|
}
|
|
@@ -18145,7 +18172,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
18145
18172
|
|
|
18146
18173
|
// src/index.ts
|
|
18147
18174
|
var program = new Command91();
|
|
18148
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.59.
|
|
18175
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.59.4");
|
|
18149
18176
|
program.addCommand(authCommand);
|
|
18150
18177
|
program.addCommand(infoCommand);
|
|
18151
18178
|
program.addCommand(composeCommand);
|