@vm0/cli 9.158.0 → 9.158.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.
@@ -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.0",
74086
+ release: "9.158.2",
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.0",
74105
+ version: "9.158.2",
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 callback.
96684
- // Other provider types omit these. Mirrors the server-side connector
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,
@@ -105119,6 +105150,9 @@ var connectorSessionStatusResponseSchema = external_exports.object({
105119
105150
  status: connectorSessionStatusSchema,
105120
105151
  errorMessage: external_exports.string().nullable().optional()
105121
105152
  });
105153
+ var connectorOauthStartResponseSchema = external_exports.object({
105154
+ authorizationUrl: external_exports.string()
105155
+ });
105122
105156
  var computerConnectorCreateResponseSchema = external_exports.object({
105123
105157
  id: external_exports.uuid(),
105124
105158
  ngrokToken: external_exports.string(),
@@ -105201,6 +105235,23 @@ var zeroConnectorAuthorizeContract = c17.router({
105201
105235
  summary: "Start connector OAuth authorization (zero proxy)"
105202
105236
  }
105203
105237
  });
105238
+ var zeroConnectorOauthStartContract = c17.router({
105239
+ start: {
105240
+ method: "POST",
105241
+ path: "/api/zero/connectors/:type/oauth/start",
105242
+ headers: authHeadersSchema,
105243
+ pathParams: external_exports.object({ type: connectorTypeSchema }),
105244
+ body: external_exports.object({}).optional(),
105245
+ responses: {
105246
+ 200: connectorOauthStartResponseSchema,
105247
+ 400: apiErrorSchema,
105248
+ 401: apiErrorSchema,
105249
+ 403: apiErrorSchema,
105250
+ 500: apiErrorSchema
105251
+ },
105252
+ summary: "Create connector OAuth handoff and authorization URL"
105253
+ }
105254
+ });
105204
105255
  var connectorSearchAuthMethodSchema = external_exports.enum([
105205
105256
  "oauth",
105206
105257
  "api-token",
@@ -106547,6 +106598,7 @@ var sandboxReuseResultSchema = external_exports.enum([
106547
106598
  "noSessionId",
106548
106599
  "poolMiss",
106549
106600
  "profileMismatch",
106601
+ "deviceLimitMismatch",
106550
106602
  "unparkFailed"
106551
106603
  ]);
106552
106604
  var agentEventSchema = external_exports.object({
@@ -123243,6 +123295,27 @@ var webflowFirewall = {
123243
123295
  ]
123244
123296
  };
123245
123297
 
123298
+ // ../../packages/connectors/src/firewalls/weread.generated.ts
123299
+ init_esm_shims();
123300
+ var wereadFirewall = {
123301
+ name: "weread",
123302
+ description: "WeRead (\u5FAE\u4FE1\u8BFB\u4E66) Agent gateway: bookshelf, notes, reading stats, search",
123303
+ placeholders: {
123304
+ WEREAD_API_KEY: "wrk-CoffeeSafeLocalCoffeeSafeLocalCoffee"
123305
+ },
123306
+ apis: [
123307
+ {
123308
+ base: "https://i.weread.qq.com",
123309
+ auth: {
123310
+ headers: {
123311
+ Authorization: "Bearer ${{ secrets.WEREAD_API_KEY }}"
123312
+ }
123313
+ },
123314
+ permissions: []
123315
+ }
123316
+ ]
123317
+ };
123318
+
123246
123319
  // ../../packages/connectors/src/firewalls/wix.generated.ts
123247
123320
  init_esm_shims();
123248
123321
  var wixFirewall = {
@@ -125566,6 +125639,7 @@ var CONNECTOR_FIREWALLS = {
125566
125639
  vercel: vercelFirewall,
125567
125640
  wandb: wandbFirewall,
125568
125641
  webflow: webflowFirewall,
125642
+ weread: wereadFirewall,
125569
125643
  wix: wixFirewall,
125570
125644
  workos: workosFirewall,
125571
125645
  wrike: wrikeFirewall,
@@ -127823,34 +127897,6 @@ var zeroPersonalModelProvidersByTypeContract = c65.router({
127823
127897
  summary: "Delete a personal model provider for the requesting user"
127824
127898
  }
127825
127899
  });
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
127900
 
127855
127901
  // ../../packages/api-contracts/src/contracts/api-keys.ts
127856
127902
  init_esm_shims();
@@ -132109,4 +132155,4 @@ undici/lib/web/fetch/body.js:
132109
132155
  undici/lib/web/websocket/frame.js:
132110
132156
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
132111
132157
  */
132112
- //# sourceMappingURL=chunk-AUKY6FBC.js.map
132158
+ //# sourceMappingURL=chunk-KLSNDWRO.js.map