@vm0/cli 9.37.4 → 9.37.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/index.js +45 -8
- 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.37.
|
|
48
|
+
release: "9.37.6",
|
|
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.37.
|
|
67
|
+
version: "9.37.6",
|
|
68
68
|
command: process.argv.slice(2).join(" ")
|
|
69
69
|
});
|
|
70
70
|
Sentry.setContext("runtime", {
|
|
@@ -607,7 +607,7 @@ function getConfigPath() {
|
|
|
607
607
|
return join2(homedir2(), ".vm0", "config.json");
|
|
608
608
|
}
|
|
609
609
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
610
|
-
console.log(chalk7.bold(`VM0 CLI v${"9.37.
|
|
610
|
+
console.log(chalk7.bold(`VM0 CLI v${"9.37.6"}`));
|
|
611
611
|
console.log();
|
|
612
612
|
const config = await loadConfig();
|
|
613
613
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -3652,9 +3652,40 @@ var CONNECTOR_TYPES = {
|
|
|
3652
3652
|
COMPUTER_CONNECTOR_ENDPOINT: "$secrets.COMPUTER_CONNECTOR_ENDPOINT",
|
|
3653
3653
|
COMPUTER_CONNECTOR_DOMAIN: "$secrets.COMPUTER_CONNECTOR_DOMAIN"
|
|
3654
3654
|
}
|
|
3655
|
+
},
|
|
3656
|
+
gmail: {
|
|
3657
|
+
label: "Gmail",
|
|
3658
|
+
helpText: "Connect your Gmail account to access email",
|
|
3659
|
+
authMethods: {
|
|
3660
|
+
oauth: {
|
|
3661
|
+
label: "OAuth (Recommended)",
|
|
3662
|
+
helpText: "Sign in with Google to grant Gmail access.",
|
|
3663
|
+
secrets: {
|
|
3664
|
+
GMAIL_ACCESS_TOKEN: {
|
|
3665
|
+
label: "Access Token",
|
|
3666
|
+
required: true
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3671
|
+
defaultAuthMethod: "oauth",
|
|
3672
|
+
environmentMapping: {
|
|
3673
|
+
GMAIL_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN",
|
|
3674
|
+
GMAIL_ACCESS_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN"
|
|
3675
|
+
},
|
|
3676
|
+
oauth: {
|
|
3677
|
+
authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",
|
|
3678
|
+
tokenUrl: "https://oauth2.googleapis.com/token",
|
|
3679
|
+
scopes: []
|
|
3680
|
+
}
|
|
3655
3681
|
}
|
|
3656
3682
|
};
|
|
3657
|
-
var connectorTypeSchema = z23.enum([
|
|
3683
|
+
var connectorTypeSchema = z23.enum([
|
|
3684
|
+
"github",
|
|
3685
|
+
"notion",
|
|
3686
|
+
"computer",
|
|
3687
|
+
"gmail"
|
|
3688
|
+
]);
|
|
3658
3689
|
function getConnectorEnvironmentMapping(type2) {
|
|
3659
3690
|
return CONNECTOR_TYPES[type2].environmentMapping;
|
|
3660
3691
|
}
|
|
@@ -3699,6 +3730,8 @@ var connectorResponseSchema = z23.object({
|
|
|
3699
3730
|
id: z23.string().uuid(),
|
|
3700
3731
|
type: connectorTypeSchema,
|
|
3701
3732
|
authMethod: z23.string(),
|
|
3733
|
+
platform: z23.enum(["self-hosted", "nango"]),
|
|
3734
|
+
nangoConnectionId: z23.string().nullable().optional(),
|
|
3702
3735
|
externalId: z23.string().nullable(),
|
|
3703
3736
|
externalUsername: z23.string().nullable(),
|
|
3704
3737
|
externalEmail: z23.string().nullable(),
|
|
@@ -4597,6 +4630,10 @@ var FEATURE_SWITCHES = {
|
|
|
4597
4630
|
["agentDetailPage" /* AgentDetailPage */]: {
|
|
4598
4631
|
maintainer: "yuma@vm0.ai",
|
|
4599
4632
|
enabled: false
|
|
4633
|
+
},
|
|
4634
|
+
["connectorNango" /* ConnectorNango */]: {
|
|
4635
|
+
maintainer: "ethan@vm0.ai",
|
|
4636
|
+
enabled: false
|
|
4600
4637
|
}
|
|
4601
4638
|
};
|
|
4602
4639
|
|
|
@@ -6443,7 +6480,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
6443
6480
|
options.autoUpdate = false;
|
|
6444
6481
|
}
|
|
6445
6482
|
if (options.autoUpdate !== false) {
|
|
6446
|
-
await startSilentUpgrade("9.37.
|
|
6483
|
+
await startSilentUpgrade("9.37.6");
|
|
6447
6484
|
}
|
|
6448
6485
|
try {
|
|
6449
6486
|
let result;
|
|
@@ -8657,7 +8694,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
8657
8694
|
async (identifier, prompt, options) => {
|
|
8658
8695
|
try {
|
|
8659
8696
|
if (options.autoUpdate !== false) {
|
|
8660
|
-
await startSilentUpgrade("9.37.
|
|
8697
|
+
await startSilentUpgrade("9.37.6");
|
|
8661
8698
|
}
|
|
8662
8699
|
const { scope, name, version } = parseIdentifier(identifier);
|
|
8663
8700
|
if (scope && !options.experimentalSharedAgent) {
|
|
@@ -10233,7 +10270,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
|
|
|
10233
10270
|
).option("-y, --yes", "Skip confirmation prompts").option("-v, --verbose", "Show full tool inputs and outputs").addOption(new Option5("--debug-no-mock-claude").hideHelp()).addOption(new Option5("--no-auto-update").hideHelp()).action(
|
|
10234
10271
|
async (prompt, options) => {
|
|
10235
10272
|
if (options.autoUpdate !== false) {
|
|
10236
|
-
const shouldExit = await checkAndUpgrade("9.37.
|
|
10273
|
+
const shouldExit = await checkAndUpgrade("9.37.6", prompt);
|
|
10237
10274
|
if (shouldExit) {
|
|
10238
10275
|
process.exit(0);
|
|
10239
10276
|
}
|
|
@@ -14958,7 +14995,7 @@ var preferenceCommand = new Command77().name("preference").description("View or
|
|
|
14958
14995
|
|
|
14959
14996
|
// src/index.ts
|
|
14960
14997
|
var program = new Command78();
|
|
14961
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.37.
|
|
14998
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.37.6");
|
|
14962
14999
|
program.addCommand(authCommand);
|
|
14963
15000
|
program.addCommand(infoCommand);
|
|
14964
15001
|
program.addCommand(composeCommand);
|