@vm0/cli 9.158.0 → 9.158.1
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.
|
@@ -74083,7 +74083,7 @@ if (DSN) {
|
|
|
74083
74083
|
init2({
|
|
74084
74084
|
dsn: DSN,
|
|
74085
74085
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
74086
|
-
release: "9.158.
|
|
74086
|
+
release: "9.158.1",
|
|
74087
74087
|
sendDefaultPii: false,
|
|
74088
74088
|
tracesSampleRate: 0,
|
|
74089
74089
|
shutdownTimeout: 500,
|
|
@@ -74102,7 +74102,7 @@ if (DSN) {
|
|
|
74102
74102
|
}
|
|
74103
74103
|
});
|
|
74104
74104
|
setContext("cli", {
|
|
74105
|
-
version: "9.158.
|
|
74105
|
+
version: "9.158.1",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -74498,6 +74498,11 @@ var FEATURE_SWITCHES = {
|
|
|
74498
74498
|
description: "Enable the Zapier connector. When disabled, Zapier is hidden from the connectors list and cannot be connected.",
|
|
74499
74499
|
enabled: false
|
|
74500
74500
|
},
|
|
74501
|
+
["wereadConnector" /* WereadConnector */]: {
|
|
74502
|
+
maintainer: "ethan@vm0.ai",
|
|
74503
|
+
description: "Enable the WeRead (\u5FAE\u4FE1\u8BFB\u4E66) connector. When disabled, WeRead is hidden from the connectors list and cannot be connected.",
|
|
74504
|
+
enabled: false
|
|
74505
|
+
},
|
|
74501
74506
|
["voiceChatRealtimeBilling" /* VoiceChatRealtimeBilling */]: {
|
|
74502
74507
|
maintainer: "lancy@vm0.ai",
|
|
74503
74508
|
description: "Gate voice-chat realtime billing (Plan D, Epic #12128). When OFF, the token route mints an OpenAI ephemeral token without admission checks and the /session-started, /usage, and /session-ended endpoints are 200 no-ops \u2014 the org gets unmetered voice-chat. When ON, the token route runs credit + pricing admission, /session-started inserts an audit row in voice_chat_realtime_sessions, and the browser self-reports response.done + transcription.completed usage events for billing. Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
|
|
@@ -74509,6 +74514,12 @@ var FEATURE_SWITCHES = {
|
|
|
74509
74514
|
description: "Enable static hosted-site deployments from zero host. Staff-only during rollout.",
|
|
74510
74515
|
enabled: false,
|
|
74511
74516
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74517
|
+
},
|
|
74518
|
+
["sandboxIoLimiters" /* SandboxIoLimiters */]: {
|
|
74519
|
+
maintainer: "liangyou@vm0.ai",
|
|
74520
|
+
description: "Enable runner-provided disk and network device rate limiters for sandbox VMs.",
|
|
74521
|
+
enabled: false,
|
|
74522
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74512
74523
|
}
|
|
74513
74524
|
};
|
|
74514
74525
|
function isFeatureEnabled(key, ctx) {
|
|
@@ -88976,6 +88987,18 @@ var RUN_ERROR_GUIDANCE = {
|
|
|
88976
88987
|
guidance: "Wait for your current run to complete before starting a new one."
|
|
88977
88988
|
}
|
|
88978
88989
|
};
|
|
88990
|
+
var ACTIONABLE_RUN_ERROR_SNIPPETS = [
|
|
88991
|
+
...Object.values(RUN_ERROR_GUIDANCE).flatMap((guidance) => {
|
|
88992
|
+
return [guidance.title, guidance.guidance];
|
|
88993
|
+
}),
|
|
88994
|
+
"Cannot continue session",
|
|
88995
|
+
"Invalid signature in thinking block",
|
|
88996
|
+
"Run cancelled",
|
|
88997
|
+
"usage limit",
|
|
88998
|
+
"usage_limit",
|
|
88999
|
+
"usage-limit",
|
|
89000
|
+
"UsageLimit"
|
|
89001
|
+
];
|
|
88979
89002
|
|
|
88980
89003
|
// src/lib/api/core/client-factory.ts
|
|
88981
89004
|
init_esm_shims();
|
|
@@ -96232,34 +96255,6 @@ var MODEL_PROVIDER_TYPES = {
|
|
|
96232
96255
|
label: "ChatGPT (Codex)",
|
|
96233
96256
|
helpText: "Run `codex login` on your machine, then paste the resulting ~/.codex/auth.json contents to authorize ChatGPT (Plus / Pro / Business / Edu / Enterprise) for Codex.",
|
|
96234
96257
|
authMethods: {
|
|
96235
|
-
oauth: {
|
|
96236
|
-
label: "OpenAI OAuth",
|
|
96237
|
-
helpText: "Sign in with OpenAI to authorize ChatGPT (Plus / Pro / Business / Edu / Enterprise) for Codex.",
|
|
96238
|
-
secrets: {
|
|
96239
|
-
CHATGPT_ACCESS_TOKEN: {
|
|
96240
|
-
label: "CHATGPT_ACCESS_TOKEN",
|
|
96241
|
-
required: true,
|
|
96242
|
-
derived: true
|
|
96243
|
-
},
|
|
96244
|
-
CHATGPT_REFRESH_TOKEN: {
|
|
96245
|
-
label: "CHATGPT_REFRESH_TOKEN",
|
|
96246
|
-
required: true,
|
|
96247
|
-
serverOnly: true,
|
|
96248
|
-
derived: true
|
|
96249
|
-
},
|
|
96250
|
-
CHATGPT_ACCOUNT_ID: {
|
|
96251
|
-
label: "CHATGPT_ACCOUNT_ID",
|
|
96252
|
-
required: true,
|
|
96253
|
-
derived: true
|
|
96254
|
-
},
|
|
96255
|
-
CHATGPT_ID_TOKEN: {
|
|
96256
|
-
label: "CHATGPT_ID_TOKEN",
|
|
96257
|
-
required: true,
|
|
96258
|
-
serverOnly: true,
|
|
96259
|
-
derived: true
|
|
96260
|
-
}
|
|
96261
|
-
}
|
|
96262
|
-
},
|
|
96263
96258
|
// Paste-based auth: client posts CODEX_AUTH_JSON, server parses it via
|
|
96264
96259
|
// codex-auth-json-parser.ts and persists the four derived CHATGPT_*
|
|
96265
96260
|
// fields. The raw blob is NEVER stored. The wire-shape secret
|
|
@@ -96680,11 +96675,8 @@ var modelProviderResponseSchema = external_exports.object({
|
|
|
96680
96675
|
selectedModel: external_exports.string().nullable(),
|
|
96681
96676
|
createdAt: external_exports.string(),
|
|
96682
96677
|
updatedAt: external_exports.string(),
|
|
96683
|
-
// ChatGPT-only metadata populated by the codex-oauth-token
|
|
96684
|
-
// Other provider types omit these.
|
|
96685
|
-
// shape in apps/web/src/lib/zero/connector/providers/codex-oauth.ts.
|
|
96686
|
-
// The corresponding server route lands in #11909; declared here so the
|
|
96687
|
-
// platform UI does not have to bypass schema validation to read them.
|
|
96678
|
+
// ChatGPT-only metadata populated by the codex-oauth-token auth.json paste
|
|
96679
|
+
// flow. Other provider types omit these.
|
|
96688
96680
|
workspaceName: external_exports.string().nullable().optional(),
|
|
96689
96681
|
planType: external_exports.string().nullable().optional(),
|
|
96690
96682
|
// OAuth refresh state. `needsReconnect` flips to true when the firewall's
|
|
@@ -104534,6 +104526,44 @@ var webflow = {
|
|
|
104534
104526
|
}
|
|
104535
104527
|
};
|
|
104536
104528
|
|
|
104529
|
+
// ../../packages/connectors/src/connectors/weread.ts
|
|
104530
|
+
init_esm_shims();
|
|
104531
|
+
var weread = {
|
|
104532
|
+
weread: {
|
|
104533
|
+
label: "WeRead",
|
|
104534
|
+
category: "docs-files-knowledge",
|
|
104535
|
+
tags: [
|
|
104536
|
+
"weread",
|
|
104537
|
+
"\u5FAE\u4FE1\u8BFB\u4E66",
|
|
104538
|
+
"wechat reading",
|
|
104539
|
+
"books",
|
|
104540
|
+
"reading",
|
|
104541
|
+
"highlights",
|
|
104542
|
+
"notes",
|
|
104543
|
+
"bookshelf"
|
|
104544
|
+
],
|
|
104545
|
+
environmentMapping: {
|
|
104546
|
+
WEREAD_API_KEY: "$secrets.WEREAD_API_KEY"
|
|
104547
|
+
},
|
|
104548
|
+
helpText: "Connect WeChat Reading (\u5FAE\u4FE1\u8BFB\u4E66) to search books, browse your bookshelf, and read your notes, highlights, reviews, and reading statistics",
|
|
104549
|
+
authMethods: {
|
|
104550
|
+
"api-token": {
|
|
104551
|
+
featureFlag: "wereadConnector" /* WereadConnector */,
|
|
104552
|
+
label: "WeRead API Key",
|
|
104553
|
+
helpText: "1. Open the [WeRead Skill page](https://weread.qq.com/r/weread-skills)\n2. Scan the QR code with WeChat to sign in to your WeChat Reading account\n3. Copy the generated API key (it begins with `wrk-`)\n4. The key authorises every endpoint under `i.weread.qq.com` and is scoped to your own account data",
|
|
104554
|
+
secrets: {
|
|
104555
|
+
WEREAD_API_KEY: {
|
|
104556
|
+
label: "API Key",
|
|
104557
|
+
required: true,
|
|
104558
|
+
placeholder: "wrk-xxxxxxxxxxxxxxxx"
|
|
104559
|
+
}
|
|
104560
|
+
}
|
|
104561
|
+
}
|
|
104562
|
+
},
|
|
104563
|
+
defaultAuthMethod: "api-token"
|
|
104564
|
+
}
|
|
104565
|
+
};
|
|
104566
|
+
|
|
104537
104567
|
// ../../packages/connectors/src/connectors/wix.ts
|
|
104538
104568
|
init_esm_shims();
|
|
104539
104569
|
var wix = {
|
|
@@ -105058,6 +105088,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
105058
105088
|
...v0,
|
|
105059
105089
|
...wandb,
|
|
105060
105090
|
...webflow,
|
|
105091
|
+
...weread,
|
|
105061
105092
|
...wix,
|
|
105062
105093
|
...workos,
|
|
105063
105094
|
...wrike,
|
|
@@ -106547,6 +106578,7 @@ var sandboxReuseResultSchema = external_exports.enum([
|
|
|
106547
106578
|
"noSessionId",
|
|
106548
106579
|
"poolMiss",
|
|
106549
106580
|
"profileMismatch",
|
|
106581
|
+
"deviceLimitMismatch",
|
|
106550
106582
|
"unparkFailed"
|
|
106551
106583
|
]);
|
|
106552
106584
|
var agentEventSchema = external_exports.object({
|
|
@@ -123243,6 +123275,27 @@ var webflowFirewall = {
|
|
|
123243
123275
|
]
|
|
123244
123276
|
};
|
|
123245
123277
|
|
|
123278
|
+
// ../../packages/connectors/src/firewalls/weread.generated.ts
|
|
123279
|
+
init_esm_shims();
|
|
123280
|
+
var wereadFirewall = {
|
|
123281
|
+
name: "weread",
|
|
123282
|
+
description: "WeRead (\u5FAE\u4FE1\u8BFB\u4E66) Agent gateway: bookshelf, notes, reading stats, search",
|
|
123283
|
+
placeholders: {
|
|
123284
|
+
WEREAD_API_KEY: "wrk-CoffeeSafeLocalCoffeeSafeLocalCoffee"
|
|
123285
|
+
},
|
|
123286
|
+
apis: [
|
|
123287
|
+
{
|
|
123288
|
+
base: "https://i.weread.qq.com",
|
|
123289
|
+
auth: {
|
|
123290
|
+
headers: {
|
|
123291
|
+
Authorization: "Bearer ${{ secrets.WEREAD_API_KEY }}"
|
|
123292
|
+
}
|
|
123293
|
+
},
|
|
123294
|
+
permissions: []
|
|
123295
|
+
}
|
|
123296
|
+
]
|
|
123297
|
+
};
|
|
123298
|
+
|
|
123246
123299
|
// ../../packages/connectors/src/firewalls/wix.generated.ts
|
|
123247
123300
|
init_esm_shims();
|
|
123248
123301
|
var wixFirewall = {
|
|
@@ -125566,6 +125619,7 @@ var CONNECTOR_FIREWALLS = {
|
|
|
125566
125619
|
vercel: vercelFirewall,
|
|
125567
125620
|
wandb: wandbFirewall,
|
|
125568
125621
|
webflow: webflowFirewall,
|
|
125622
|
+
weread: wereadFirewall,
|
|
125569
125623
|
wix: wixFirewall,
|
|
125570
125624
|
workos: workosFirewall,
|
|
125571
125625
|
wrike: wrikeFirewall,
|
|
@@ -127823,34 +127877,6 @@ var zeroPersonalModelProvidersByTypeContract = c65.router({
|
|
|
127823
127877
|
summary: "Delete a personal model provider for the requesting user"
|
|
127824
127878
|
}
|
|
127825
127879
|
});
|
|
127826
|
-
var zeroPersonalModelProvidersCodexOauthContract = c65.router({
|
|
127827
|
-
authorize: {
|
|
127828
|
-
method: "GET",
|
|
127829
|
-
path: "/api/zero/me/model-providers/codex-oauth-token/oauth/authorize",
|
|
127830
|
-
headers: authHeadersSchema,
|
|
127831
|
-
responses: {
|
|
127832
|
-
307: c65.noBody(),
|
|
127833
|
-
404: external_exports.object({ error: external_exports.string() }),
|
|
127834
|
-
500: external_exports.object({ error: external_exports.string() })
|
|
127835
|
-
},
|
|
127836
|
-
summary: "Start Codex OAuth for a personal model provider"
|
|
127837
|
-
},
|
|
127838
|
-
callback: {
|
|
127839
|
-
method: "GET",
|
|
127840
|
-
path: "/api/zero/me/model-providers/codex-oauth-token/oauth/callback",
|
|
127841
|
-
headers: authHeadersSchema,
|
|
127842
|
-
query: external_exports.object({
|
|
127843
|
-
code: external_exports.string().optional(),
|
|
127844
|
-
state: external_exports.string().optional(),
|
|
127845
|
-
error: external_exports.string().optional(),
|
|
127846
|
-
error_description: external_exports.string().optional()
|
|
127847
|
-
}),
|
|
127848
|
-
responses: {
|
|
127849
|
-
307: c65.noBody()
|
|
127850
|
-
},
|
|
127851
|
-
summary: "Complete Codex OAuth for a personal model provider"
|
|
127852
|
-
}
|
|
127853
|
-
});
|
|
127854
127880
|
|
|
127855
127881
|
// ../../packages/api-contracts/src/contracts/api-keys.ts
|
|
127856
127882
|
init_esm_shims();
|
|
@@ -132109,4 +132135,4 @@ undici/lib/web/fetch/body.js:
|
|
|
132109
132135
|
undici/lib/web/websocket/frame.js:
|
|
132110
132136
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
132111
132137
|
*/
|
|
132112
|
-
//# sourceMappingURL=chunk-
|
|
132138
|
+
//# sourceMappingURL=chunk-Y2IQIGV7.js.map
|