vibeusage 0.2.14 → 0.2.16
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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/node_modules/@insforge/sdk/LICENSE +201 -0
- package/node_modules/@insforge/sdk/README.md +259 -0
- package/node_modules/@insforge/sdk/dist/index.d.mts +854 -0
- package/node_modules/@insforge/sdk/dist/index.d.ts +854 -0
- package/node_modules/@insforge/sdk/dist/index.js +1823 -0
- package/node_modules/@insforge/sdk/dist/index.js.map +1 -0
- package/node_modules/@insforge/sdk/dist/index.mjs +1784 -0
- package/node_modules/@insforge/sdk/dist/index.mjs.map +1 -0
- package/node_modules/@insforge/sdk/package.json +68 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +583 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +111 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +188 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +48 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +1127 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +277 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +187 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +105 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +144 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +1627 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +209 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts +263 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js +89 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +4 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +22 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +24 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +18 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +14 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts +237 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +79 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +31 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +940 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +50 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +395 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +73 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +269 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +109 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +166 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +49 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +15 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/package.json +31 -0
- package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/node_modules/@supabase/node-fetch/LICENSE.md +22 -0
- package/node_modules/@supabase/node-fetch/README.md +633 -0
- package/node_modules/@supabase/node-fetch/browser.js +22 -0
- package/node_modules/@supabase/node-fetch/lib/index.es.js +1778 -0
- package/node_modules/@supabase/node-fetch/lib/index.js +1787 -0
- package/node_modules/@supabase/node-fetch/lib/index.mjs +1776 -0
- package/node_modules/@supabase/node-fetch/package.json +80 -0
- package/node_modules/@supabase/postgrest-js/LICENSE +21 -0
- package/node_modules/@supabase/postgrest-js/README.md +56 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts +71 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js +222 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts +74 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js +121 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts +17 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js +18 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts +108 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js +381 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts +117 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js +251 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js +226 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts +4 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js +6 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts +19 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js +28 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts +261 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts +31 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts +264 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts +106 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts +2 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/esm/wrapper.mjs +28 -0
- package/node_modules/@supabase/postgrest-js/package.json +75 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +300 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +192 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +18 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +604 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +437 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +368 -0
- package/node_modules/@supabase/postgrest-js/src/constants.ts +2 -0
- package/node_modules/@supabase/postgrest-js/src/index.ts +35 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +469 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +503 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +115 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +602 -0
- package/node_modules/@supabase/postgrest-js/src/types.ts +201 -0
- package/node_modules/@supabase/postgrest-js/src/version.ts +1 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +60 -0
- package/node_modules/debug/src/browser.js +271 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/LICENSE +22 -0
- package/node_modules/engine.io-client/README.md +331 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.js +2968 -0
- package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/node_modules/engine.io-client/package.json +95 -0
- package/node_modules/engine.io-parser/LICENSE +22 -0
- package/node_modules/engine.io-parser/Readme.md +158 -0
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/node_modules/engine.io-parser/package.json +46 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/socket.io-client/LICENSE +21 -0
- package/node_modules/socket.io-client/README.md +29 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
- package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm/socket.js +882 -0
- package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/node_modules/socket.io-client/package.json +101 -0
- package/node_modules/socket.io-parser/LICENSE +20 -0
- package/node_modules/socket.io-parser/Readme.md +81 -0
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/cjs/binary.js +88 -0
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/cjs/index.js +321 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +55 -0
- package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm/index.js +311 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.js +316 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/node_modules/socket.io-parser/package.json +58 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +12 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +514 -0
- package/node_modules/ws/lib/receiver.js +704 -0
- package/node_modules/ws/lib/sender.js +497 -0
- package/node_modules/ws/lib/stream.js +159 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +130 -0
- package/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/ws/lib/websocket.js +1338 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +11 -4
- package/src/commands/init.js +25 -0
- package/src/commands/sync.js +38 -4
- package/src/lib/browser-auth.js +7 -3
- package/src/lib/project-usage-purge.js +100 -0
- package/src/lib/rollout.js +588 -19
- package/src/lib/uploader.js +106 -8
- package/src/lib/vibeusage-api.js +2 -2
- package/src/lib/vibeusage-public-repo.js +88 -0
package/src/lib/rollout.js
CHANGED
|
@@ -4,6 +4,7 @@ const path = require('node:path');
|
|
|
4
4
|
const readline = require('node:readline');
|
|
5
5
|
|
|
6
6
|
const { ensureDir } = require('./fs');
|
|
7
|
+
const { hashRepoRoot, resolveGitHubPublicStatus } = require('./vibeusage-public-repo');
|
|
7
8
|
|
|
8
9
|
const DEFAULT_SOURCE = 'codex';
|
|
9
10
|
const DEFAULT_MODEL = 'unknown';
|
|
@@ -69,7 +70,15 @@ async function listOpencodeMessageFiles(storageDir) {
|
|
|
69
70
|
return out;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
async function parseRolloutIncremental({
|
|
73
|
+
async function parseRolloutIncremental({
|
|
74
|
+
rolloutFiles,
|
|
75
|
+
cursors,
|
|
76
|
+
queuePath,
|
|
77
|
+
projectQueuePath,
|
|
78
|
+
onProgress,
|
|
79
|
+
source,
|
|
80
|
+
publicRepoResolver
|
|
81
|
+
}) {
|
|
73
82
|
await ensureDir(path.dirname(queuePath));
|
|
74
83
|
let filesProcessed = 0;
|
|
75
84
|
let eventsAggregated = 0;
|
|
@@ -77,6 +86,11 @@ async function parseRolloutIncremental({ rolloutFiles, cursors, queuePath, onPro
|
|
|
77
86
|
const cb = typeof onProgress === 'function' ? onProgress : null;
|
|
78
87
|
const totalFiles = Array.isArray(rolloutFiles) ? rolloutFiles.length : 0;
|
|
79
88
|
const hourlyState = normalizeHourlyState(cursors?.hourly);
|
|
89
|
+
const projectEnabled = typeof projectQueuePath === 'string' && projectQueuePath.length > 0;
|
|
90
|
+
const projectState = projectEnabled ? normalizeProjectState(cursors?.projectHourly) : null;
|
|
91
|
+
const projectTouchedBuckets = projectEnabled ? new Set() : null;
|
|
92
|
+
const projectMetaCache = projectEnabled ? new Map() : null;
|
|
93
|
+
const publicRepoCache = projectEnabled ? new Map() : null;
|
|
80
94
|
const touchedBuckets = new Set();
|
|
81
95
|
const defaultSource = normalizeSourceInput(source) || DEFAULT_SOURCE;
|
|
82
96
|
|
|
@@ -100,6 +114,18 @@ async function parseRolloutIncremental({ rolloutFiles, cursors, queuePath, onPro
|
|
|
100
114
|
const lastTotal = prev && prev.inode === inode ? prev.lastTotal || null : null;
|
|
101
115
|
const lastModel = prev && prev.inode === inode ? prev.lastModel || null : null;
|
|
102
116
|
|
|
117
|
+
const projectContext = projectEnabled
|
|
118
|
+
? await resolveProjectContextForFile({
|
|
119
|
+
filePath,
|
|
120
|
+
projectMetaCache,
|
|
121
|
+
publicRepoCache,
|
|
122
|
+
publicRepoResolver,
|
|
123
|
+
projectState
|
|
124
|
+
})
|
|
125
|
+
: null;
|
|
126
|
+
const projectRef = projectContext?.projectRef || null;
|
|
127
|
+
const projectKey = projectContext?.projectKey || null;
|
|
128
|
+
|
|
103
129
|
const result = await parseRolloutFile({
|
|
104
130
|
filePath,
|
|
105
131
|
startOffset,
|
|
@@ -107,7 +133,14 @@ async function parseRolloutIncremental({ rolloutFiles, cursors, queuePath, onPro
|
|
|
107
133
|
lastModel,
|
|
108
134
|
hourlyState,
|
|
109
135
|
touchedBuckets,
|
|
110
|
-
source: fileSource
|
|
136
|
+
source: fileSource,
|
|
137
|
+
projectState,
|
|
138
|
+
projectTouchedBuckets,
|
|
139
|
+
projectRef,
|
|
140
|
+
projectKey,
|
|
141
|
+
projectMetaCache,
|
|
142
|
+
publicRepoCache,
|
|
143
|
+
publicRepoResolver
|
|
111
144
|
});
|
|
112
145
|
|
|
113
146
|
cursors.files[key] = {
|
|
@@ -134,13 +167,28 @@ async function parseRolloutIncremental({ rolloutFiles, cursors, queuePath, onPro
|
|
|
134
167
|
}
|
|
135
168
|
|
|
136
169
|
const bucketsQueued = await enqueueTouchedBuckets({ queuePath, hourlyState, touchedBuckets });
|
|
170
|
+
const projectBucketsQueued = projectEnabled
|
|
171
|
+
? await enqueueTouchedProjectBuckets({ projectQueuePath, projectState, projectTouchedBuckets })
|
|
172
|
+
: 0;
|
|
137
173
|
hourlyState.updatedAt = new Date().toISOString();
|
|
138
174
|
cursors.hourly = hourlyState;
|
|
175
|
+
if (projectState) {
|
|
176
|
+
projectState.updatedAt = new Date().toISOString();
|
|
177
|
+
cursors.projectHourly = projectState;
|
|
178
|
+
}
|
|
139
179
|
|
|
140
|
-
return { filesProcessed, eventsAggregated, bucketsQueued };
|
|
180
|
+
return { filesProcessed, eventsAggregated, bucketsQueued, projectBucketsQueued };
|
|
141
181
|
}
|
|
142
182
|
|
|
143
|
-
async function parseClaudeIncremental({
|
|
183
|
+
async function parseClaudeIncremental({
|
|
184
|
+
projectFiles,
|
|
185
|
+
cursors,
|
|
186
|
+
queuePath,
|
|
187
|
+
projectQueuePath,
|
|
188
|
+
onProgress,
|
|
189
|
+
source,
|
|
190
|
+
publicRepoResolver
|
|
191
|
+
}) {
|
|
144
192
|
await ensureDir(path.dirname(queuePath));
|
|
145
193
|
let filesProcessed = 0;
|
|
146
194
|
let eventsAggregated = 0;
|
|
@@ -149,6 +197,11 @@ async function parseClaudeIncremental({ projectFiles, cursors, queuePath, onProg
|
|
|
149
197
|
const files = Array.isArray(projectFiles) ? projectFiles : [];
|
|
150
198
|
const totalFiles = files.length;
|
|
151
199
|
const hourlyState = normalizeHourlyState(cursors?.hourly);
|
|
200
|
+
const projectEnabled = typeof projectQueuePath === 'string' && projectQueuePath.length > 0;
|
|
201
|
+
const projectState = projectEnabled ? normalizeProjectState(cursors?.projectHourly) : null;
|
|
202
|
+
const projectTouchedBuckets = projectEnabled ? new Set() : null;
|
|
203
|
+
const projectMetaCache = projectEnabled ? new Map() : null;
|
|
204
|
+
const publicRepoCache = projectEnabled ? new Map() : null;
|
|
152
205
|
const touchedBuckets = new Set();
|
|
153
206
|
const defaultSource = normalizeSourceInput(source) || 'claude';
|
|
154
207
|
|
|
@@ -170,12 +223,28 @@ async function parseClaudeIncremental({ projectFiles, cursors, queuePath, onProg
|
|
|
170
223
|
const inode = st.ino || 0;
|
|
171
224
|
const startOffset = prev && prev.inode === inode ? prev.offset || 0 : 0;
|
|
172
225
|
|
|
226
|
+
const projectContext = projectEnabled
|
|
227
|
+
? await resolveProjectContextForFile({
|
|
228
|
+
filePath,
|
|
229
|
+
projectMetaCache,
|
|
230
|
+
publicRepoCache,
|
|
231
|
+
publicRepoResolver,
|
|
232
|
+
projectState
|
|
233
|
+
})
|
|
234
|
+
: null;
|
|
235
|
+
const projectRef = projectContext?.projectRef || null;
|
|
236
|
+
const projectKey = projectContext?.projectKey || null;
|
|
237
|
+
|
|
173
238
|
const result = await parseClaudeFile({
|
|
174
239
|
filePath,
|
|
175
240
|
startOffset,
|
|
176
241
|
hourlyState,
|
|
177
242
|
touchedBuckets,
|
|
178
|
-
source: fileSource
|
|
243
|
+
source: fileSource,
|
|
244
|
+
projectState,
|
|
245
|
+
projectTouchedBuckets,
|
|
246
|
+
projectRef,
|
|
247
|
+
projectKey
|
|
179
248
|
});
|
|
180
249
|
|
|
181
250
|
cursors.files[key] = {
|
|
@@ -200,13 +269,28 @@ async function parseClaudeIncremental({ projectFiles, cursors, queuePath, onProg
|
|
|
200
269
|
}
|
|
201
270
|
|
|
202
271
|
const bucketsQueued = await enqueueTouchedBuckets({ queuePath, hourlyState, touchedBuckets });
|
|
272
|
+
const projectBucketsQueued = projectEnabled
|
|
273
|
+
? await enqueueTouchedProjectBuckets({ projectQueuePath, projectState, projectTouchedBuckets })
|
|
274
|
+
: 0;
|
|
203
275
|
hourlyState.updatedAt = new Date().toISOString();
|
|
204
276
|
cursors.hourly = hourlyState;
|
|
277
|
+
if (projectState) {
|
|
278
|
+
projectState.updatedAt = new Date().toISOString();
|
|
279
|
+
cursors.projectHourly = projectState;
|
|
280
|
+
}
|
|
205
281
|
|
|
206
|
-
return { filesProcessed, eventsAggregated, bucketsQueued };
|
|
282
|
+
return { filesProcessed, eventsAggregated, bucketsQueued, projectBucketsQueued };
|
|
207
283
|
}
|
|
208
284
|
|
|
209
|
-
async function parseGeminiIncremental({
|
|
285
|
+
async function parseGeminiIncremental({
|
|
286
|
+
sessionFiles,
|
|
287
|
+
cursors,
|
|
288
|
+
queuePath,
|
|
289
|
+
projectQueuePath,
|
|
290
|
+
onProgress,
|
|
291
|
+
source,
|
|
292
|
+
publicRepoResolver
|
|
293
|
+
}) {
|
|
210
294
|
await ensureDir(path.dirname(queuePath));
|
|
211
295
|
let filesProcessed = 0;
|
|
212
296
|
let eventsAggregated = 0;
|
|
@@ -215,6 +299,11 @@ async function parseGeminiIncremental({ sessionFiles, cursors, queuePath, onProg
|
|
|
215
299
|
const files = Array.isArray(sessionFiles) ? sessionFiles : [];
|
|
216
300
|
const totalFiles = files.length;
|
|
217
301
|
const hourlyState = normalizeHourlyState(cursors?.hourly);
|
|
302
|
+
const projectEnabled = typeof projectQueuePath === 'string' && projectQueuePath.length > 0;
|
|
303
|
+
const projectState = projectEnabled ? normalizeProjectState(cursors?.projectHourly) : null;
|
|
304
|
+
const projectTouchedBuckets = projectEnabled ? new Set() : null;
|
|
305
|
+
const projectMetaCache = projectEnabled ? new Map() : null;
|
|
306
|
+
const publicRepoCache = projectEnabled ? new Map() : null;
|
|
218
307
|
const touchedBuckets = new Set();
|
|
219
308
|
const defaultSource = normalizeSourceInput(source) || 'gemini';
|
|
220
309
|
|
|
@@ -238,6 +327,18 @@ async function parseGeminiIncremental({ sessionFiles, cursors, queuePath, onProg
|
|
|
238
327
|
let lastTotals = prev && prev.inode === inode ? prev.lastTotals || null : null;
|
|
239
328
|
let lastModel = prev && prev.inode === inode ? prev.lastModel || null : null;
|
|
240
329
|
|
|
330
|
+
const projectContext = projectEnabled
|
|
331
|
+
? await resolveProjectContextForFile({
|
|
332
|
+
filePath,
|
|
333
|
+
projectMetaCache,
|
|
334
|
+
publicRepoCache,
|
|
335
|
+
publicRepoResolver,
|
|
336
|
+
projectState
|
|
337
|
+
})
|
|
338
|
+
: null;
|
|
339
|
+
const projectRef = projectContext?.projectRef || null;
|
|
340
|
+
const projectKey = projectContext?.projectKey || null;
|
|
341
|
+
|
|
241
342
|
const result = await parseGeminiFile({
|
|
242
343
|
filePath,
|
|
243
344
|
startIndex,
|
|
@@ -245,7 +346,11 @@ async function parseGeminiIncremental({ sessionFiles, cursors, queuePath, onProg
|
|
|
245
346
|
lastModel,
|
|
246
347
|
hourlyState,
|
|
247
348
|
touchedBuckets,
|
|
248
|
-
source: fileSource
|
|
349
|
+
source: fileSource,
|
|
350
|
+
projectState,
|
|
351
|
+
projectTouchedBuckets,
|
|
352
|
+
projectRef,
|
|
353
|
+
projectKey
|
|
249
354
|
});
|
|
250
355
|
|
|
251
356
|
cursors.files[key] = {
|
|
@@ -272,13 +377,28 @@ async function parseGeminiIncremental({ sessionFiles, cursors, queuePath, onProg
|
|
|
272
377
|
}
|
|
273
378
|
|
|
274
379
|
const bucketsQueued = await enqueueTouchedBuckets({ queuePath, hourlyState, touchedBuckets });
|
|
380
|
+
const projectBucketsQueued = projectEnabled
|
|
381
|
+
? await enqueueTouchedProjectBuckets({ projectQueuePath, projectState, projectTouchedBuckets })
|
|
382
|
+
: 0;
|
|
275
383
|
hourlyState.updatedAt = new Date().toISOString();
|
|
276
384
|
cursors.hourly = hourlyState;
|
|
385
|
+
if (projectState) {
|
|
386
|
+
projectState.updatedAt = new Date().toISOString();
|
|
387
|
+
cursors.projectHourly = projectState;
|
|
388
|
+
}
|
|
277
389
|
|
|
278
|
-
return { filesProcessed, eventsAggregated, bucketsQueued };
|
|
390
|
+
return { filesProcessed, eventsAggregated, bucketsQueued, projectBucketsQueued };
|
|
279
391
|
}
|
|
280
392
|
|
|
281
|
-
async function parseOpencodeIncremental({
|
|
393
|
+
async function parseOpencodeIncremental({
|
|
394
|
+
messageFiles,
|
|
395
|
+
cursors,
|
|
396
|
+
queuePath,
|
|
397
|
+
projectQueuePath,
|
|
398
|
+
onProgress,
|
|
399
|
+
source,
|
|
400
|
+
publicRepoResolver
|
|
401
|
+
}) {
|
|
282
402
|
await ensureDir(path.dirname(queuePath));
|
|
283
403
|
let filesProcessed = 0;
|
|
284
404
|
let eventsAggregated = 0;
|
|
@@ -287,6 +407,11 @@ async function parseOpencodeIncremental({ messageFiles, cursors, queuePath, onPr
|
|
|
287
407
|
const files = Array.isArray(messageFiles) ? messageFiles : [];
|
|
288
408
|
const totalFiles = files.length;
|
|
289
409
|
const hourlyState = normalizeHourlyState(cursors?.hourly);
|
|
410
|
+
const projectEnabled = typeof projectQueuePath === 'string' && projectQueuePath.length > 0;
|
|
411
|
+
const projectState = projectEnabled ? normalizeProjectState(cursors?.projectHourly) : null;
|
|
412
|
+
const projectTouchedBuckets = projectEnabled ? new Set() : null;
|
|
413
|
+
const projectMetaCache = projectEnabled ? new Map() : null;
|
|
414
|
+
const publicRepoCache = projectEnabled ? new Map() : null;
|
|
290
415
|
const opencodeState = normalizeOpencodeState(cursors?.opencode);
|
|
291
416
|
const messageIndex = opencodeState.messages;
|
|
292
417
|
const touchedBuckets = new Set();
|
|
@@ -329,6 +454,18 @@ async function parseOpencodeIncremental({ messageFiles, cursors, queuePath, onPr
|
|
|
329
454
|
const fallbackTotals = prev && typeof prev.lastTotals === 'object' ? prev.lastTotals : null;
|
|
330
455
|
const fallbackMessageKey =
|
|
331
456
|
prev && typeof prev.messageKey === 'string' && prev.messageKey.trim() ? prev.messageKey.trim() : null;
|
|
457
|
+
const projectContext = projectEnabled
|
|
458
|
+
? await resolveProjectContextForFile({
|
|
459
|
+
filePath,
|
|
460
|
+
projectMetaCache,
|
|
461
|
+
publicRepoCache,
|
|
462
|
+
publicRepoResolver,
|
|
463
|
+
projectState
|
|
464
|
+
})
|
|
465
|
+
: null;
|
|
466
|
+
const projectRef = projectContext?.projectRef || null;
|
|
467
|
+
const projectKey = projectContext?.projectKey || null;
|
|
468
|
+
|
|
332
469
|
const result = await parseOpencodeMessageFile({
|
|
333
470
|
filePath,
|
|
334
471
|
messageIndex,
|
|
@@ -336,7 +473,11 @@ async function parseOpencodeIncremental({ messageFiles, cursors, queuePath, onPr
|
|
|
336
473
|
fallbackMessageKey,
|
|
337
474
|
hourlyState,
|
|
338
475
|
touchedBuckets,
|
|
339
|
-
source: fileSource
|
|
476
|
+
source: fileSource,
|
|
477
|
+
projectState,
|
|
478
|
+
projectTouchedBuckets,
|
|
479
|
+
projectRef,
|
|
480
|
+
projectKey
|
|
340
481
|
});
|
|
341
482
|
|
|
342
483
|
cursors.files[key] = {
|
|
@@ -371,12 +512,19 @@ async function parseOpencodeIncremental({ messageFiles, cursors, queuePath, onPr
|
|
|
371
512
|
}
|
|
372
513
|
|
|
373
514
|
const bucketsQueued = await enqueueTouchedBuckets({ queuePath, hourlyState, touchedBuckets });
|
|
515
|
+
const projectBucketsQueued = projectEnabled
|
|
516
|
+
? await enqueueTouchedProjectBuckets({ projectQueuePath, projectState, projectTouchedBuckets })
|
|
517
|
+
: 0;
|
|
374
518
|
hourlyState.updatedAt = new Date().toISOString();
|
|
375
519
|
cursors.hourly = hourlyState;
|
|
376
520
|
opencodeState.updatedAt = new Date().toISOString();
|
|
377
521
|
cursors.opencode = opencodeState;
|
|
522
|
+
if (projectState) {
|
|
523
|
+
projectState.updatedAt = new Date().toISOString();
|
|
524
|
+
cursors.projectHourly = projectState;
|
|
525
|
+
}
|
|
378
526
|
|
|
379
|
-
return { filesProcessed, eventsAggregated, bucketsQueued };
|
|
527
|
+
return { filesProcessed, eventsAggregated, bucketsQueued, projectBucketsQueued };
|
|
380
528
|
}
|
|
381
529
|
|
|
382
530
|
async function parseRolloutFile({
|
|
@@ -386,7 +534,14 @@ async function parseRolloutFile({
|
|
|
386
534
|
lastModel,
|
|
387
535
|
hourlyState,
|
|
388
536
|
touchedBuckets,
|
|
389
|
-
source
|
|
537
|
+
source,
|
|
538
|
+
projectState,
|
|
539
|
+
projectTouchedBuckets,
|
|
540
|
+
projectRef,
|
|
541
|
+
projectKey,
|
|
542
|
+
projectMetaCache,
|
|
543
|
+
publicRepoCache,
|
|
544
|
+
publicRepoResolver
|
|
390
545
|
}) {
|
|
391
546
|
const st = await fs.stat(filePath);
|
|
392
547
|
const endOffset = st.size;
|
|
@@ -399,12 +554,18 @@ async function parseRolloutFile({
|
|
|
399
554
|
|
|
400
555
|
let model = typeof lastModel === 'string' ? lastModel : null;
|
|
401
556
|
let totals = lastTotal && typeof lastTotal === 'object' ? lastTotal : null;
|
|
557
|
+
let currentCwd = null;
|
|
558
|
+
let currentProjectRef = projectRef || null;
|
|
559
|
+
let currentProjectKey = projectKey || null;
|
|
402
560
|
let eventsAggregated = 0;
|
|
403
561
|
|
|
404
562
|
for await (const line of rl) {
|
|
405
563
|
if (!line) continue;
|
|
406
564
|
const maybeTokenCount = line.includes('"token_count"');
|
|
407
|
-
const maybeTurnContext =
|
|
565
|
+
const maybeTurnContext =
|
|
566
|
+
!maybeTokenCount &&
|
|
567
|
+
(line.includes('"turn_context"') || line.includes('"session_meta"')) &&
|
|
568
|
+
(line.includes('"model"') || line.includes('"cwd"'));
|
|
408
569
|
if (!maybeTokenCount && !maybeTurnContext) continue;
|
|
409
570
|
|
|
410
571
|
let obj;
|
|
@@ -414,8 +575,29 @@ async function parseRolloutFile({
|
|
|
414
575
|
continue;
|
|
415
576
|
}
|
|
416
577
|
|
|
417
|
-
if (
|
|
418
|
-
|
|
578
|
+
if (
|
|
579
|
+
(obj?.type === 'turn_context' || obj?.type === 'session_meta') &&
|
|
580
|
+
obj?.payload &&
|
|
581
|
+
typeof obj.payload === 'object'
|
|
582
|
+
) {
|
|
583
|
+
if (typeof obj.payload.model === 'string') {
|
|
584
|
+
model = obj.payload.model;
|
|
585
|
+
}
|
|
586
|
+
if (projectState && typeof obj.payload.cwd === 'string') {
|
|
587
|
+
const nextCwd = obj.payload.cwd.trim();
|
|
588
|
+
if (nextCwd && nextCwd !== currentCwd) {
|
|
589
|
+
const context = await resolveProjectContextForPath({
|
|
590
|
+
startDir: nextCwd,
|
|
591
|
+
projectMetaCache,
|
|
592
|
+
publicRepoCache,
|
|
593
|
+
publicRepoResolver,
|
|
594
|
+
projectState
|
|
595
|
+
});
|
|
596
|
+
currentCwd = nextCwd;
|
|
597
|
+
currentProjectRef = context?.projectRef || null;
|
|
598
|
+
currentProjectKey = context?.projectKey || null;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
419
601
|
continue;
|
|
420
602
|
}
|
|
421
603
|
|
|
@@ -444,13 +626,34 @@ async function parseRolloutFile({
|
|
|
444
626
|
const bucket = getHourlyBucket(hourlyState, source, model, bucketStart);
|
|
445
627
|
addTotals(bucket.totals, delta);
|
|
446
628
|
touchedBuckets.add(bucketKey(source, model, bucketStart));
|
|
629
|
+
if (currentProjectKey && projectState && projectTouchedBuckets) {
|
|
630
|
+
const projectBucket = getProjectBucket(
|
|
631
|
+
projectState,
|
|
632
|
+
currentProjectKey,
|
|
633
|
+
source,
|
|
634
|
+
bucketStart,
|
|
635
|
+
currentProjectRef
|
|
636
|
+
);
|
|
637
|
+
addTotals(projectBucket.totals, delta);
|
|
638
|
+
projectTouchedBuckets.add(projectBucketKey(currentProjectKey, source, bucketStart));
|
|
639
|
+
}
|
|
447
640
|
eventsAggregated += 1;
|
|
448
641
|
}
|
|
449
642
|
|
|
450
643
|
return { endOffset, lastTotal: totals, lastModel: model, eventsAggregated };
|
|
451
644
|
}
|
|
452
645
|
|
|
453
|
-
async function parseClaudeFile({
|
|
646
|
+
async function parseClaudeFile({
|
|
647
|
+
filePath,
|
|
648
|
+
startOffset,
|
|
649
|
+
hourlyState,
|
|
650
|
+
touchedBuckets,
|
|
651
|
+
source,
|
|
652
|
+
projectState,
|
|
653
|
+
projectTouchedBuckets,
|
|
654
|
+
projectRef,
|
|
655
|
+
projectKey
|
|
656
|
+
}) {
|
|
454
657
|
const st = await fs.stat(filePath).catch(() => null);
|
|
455
658
|
if (!st || !st.isFile()) return { endOffset: startOffset, eventsAggregated: 0 };
|
|
456
659
|
|
|
@@ -486,6 +689,11 @@ async function parseClaudeFile({ filePath, startOffset, hourlyState, touchedBuck
|
|
|
486
689
|
const bucket = getHourlyBucket(hourlyState, source, model, bucketStart);
|
|
487
690
|
addTotals(bucket.totals, delta);
|
|
488
691
|
touchedBuckets.add(bucketKey(source, model, bucketStart));
|
|
692
|
+
if (projectKey && projectState && projectTouchedBuckets) {
|
|
693
|
+
const projectBucket = getProjectBucket(projectState, projectKey, source, bucketStart, projectRef);
|
|
694
|
+
addTotals(projectBucket.totals, delta);
|
|
695
|
+
projectTouchedBuckets.add(projectBucketKey(projectKey, source, bucketStart));
|
|
696
|
+
}
|
|
489
697
|
eventsAggregated += 1;
|
|
490
698
|
}
|
|
491
699
|
|
|
@@ -501,7 +709,11 @@ async function parseGeminiFile({
|
|
|
501
709
|
lastModel,
|
|
502
710
|
hourlyState,
|
|
503
711
|
touchedBuckets,
|
|
504
|
-
source
|
|
712
|
+
source,
|
|
713
|
+
projectState,
|
|
714
|
+
projectTouchedBuckets,
|
|
715
|
+
projectRef,
|
|
716
|
+
projectKey
|
|
505
717
|
}) {
|
|
506
718
|
const raw = await fs.readFile(filePath, 'utf8').catch(() => '');
|
|
507
719
|
if (!raw.trim()) return { lastIndex: startIndex, lastTotals, lastModel, eventsAggregated: 0 };
|
|
@@ -554,6 +766,11 @@ async function parseGeminiFile({
|
|
|
554
766
|
const bucket = getHourlyBucket(hourlyState, source, model, bucketStart);
|
|
555
767
|
addTotals(bucket.totals, delta);
|
|
556
768
|
touchedBuckets.add(bucketKey(source, model, bucketStart));
|
|
769
|
+
if (projectKey && projectState && projectTouchedBuckets) {
|
|
770
|
+
const projectBucket = getProjectBucket(projectState, projectKey, source, bucketStart, projectRef);
|
|
771
|
+
addTotals(projectBucket.totals, delta);
|
|
772
|
+
projectTouchedBuckets.add(projectBucketKey(projectKey, source, bucketStart));
|
|
773
|
+
}
|
|
557
774
|
eventsAggregated += 1;
|
|
558
775
|
totals = currentTotals;
|
|
559
776
|
}
|
|
@@ -573,7 +790,11 @@ async function parseOpencodeMessageFile({
|
|
|
573
790
|
fallbackMessageKey,
|
|
574
791
|
hourlyState,
|
|
575
792
|
touchedBuckets,
|
|
576
|
-
source
|
|
793
|
+
source,
|
|
794
|
+
projectState,
|
|
795
|
+
projectTouchedBuckets,
|
|
796
|
+
projectRef,
|
|
797
|
+
projectKey
|
|
577
798
|
}) {
|
|
578
799
|
const fallbackKey =
|
|
579
800
|
typeof fallbackMessageKey === 'string' && fallbackMessageKey.trim() ? fallbackMessageKey.trim() : null;
|
|
@@ -645,6 +866,11 @@ async function parseOpencodeMessageFile({
|
|
|
645
866
|
const bucket = getHourlyBucket(hourlyState, source, model, bucketStart);
|
|
646
867
|
addTotals(bucket.totals, delta);
|
|
647
868
|
touchedBuckets.add(bucketKey(source, model, bucketStart));
|
|
869
|
+
if (projectKey && projectState && projectTouchedBuckets) {
|
|
870
|
+
const projectBucket = getProjectBucket(projectState, projectKey, source, bucketStart, projectRef);
|
|
871
|
+
addTotals(projectBucket.totals, delta);
|
|
872
|
+
projectTouchedBuckets.add(projectBucketKey(projectKey, source, bucketStart));
|
|
873
|
+
}
|
|
648
874
|
return { messageKey, lastTotals: currentTotals, eventsAggregated: 1, shouldUpdate: true };
|
|
649
875
|
}
|
|
650
876
|
|
|
@@ -918,6 +1144,45 @@ async function enqueueTouchedBuckets({ queuePath, hourlyState, touchedBuckets })
|
|
|
918
1144
|
return toAppend.length;
|
|
919
1145
|
}
|
|
920
1146
|
|
|
1147
|
+
async function enqueueTouchedProjectBuckets({ projectQueuePath, projectState, projectTouchedBuckets }) {
|
|
1148
|
+
if (!projectQueuePath || !projectState || !projectTouchedBuckets || projectTouchedBuckets.size === 0) return 0;
|
|
1149
|
+
|
|
1150
|
+
await ensureDir(path.dirname(projectQueuePath));
|
|
1151
|
+
|
|
1152
|
+
const toAppend = [];
|
|
1153
|
+
for (const key of projectTouchedBuckets) {
|
|
1154
|
+
const bucket = projectState.buckets[key];
|
|
1155
|
+
if (!bucket || !bucket.totals) continue;
|
|
1156
|
+
const totals = bucket.totals;
|
|
1157
|
+
const queuedKey = totalsKey(totals);
|
|
1158
|
+
if (bucket.queuedKey === queuedKey) continue;
|
|
1159
|
+
const projectRef = typeof bucket.project_ref === 'string' ? bucket.project_ref : null;
|
|
1160
|
+
const projectKey = typeof bucket.project_key === 'string' ? bucket.project_key : null;
|
|
1161
|
+
if (!projectRef || !projectKey) continue;
|
|
1162
|
+
|
|
1163
|
+
toAppend.push(
|
|
1164
|
+
JSON.stringify({
|
|
1165
|
+
project_ref: projectRef,
|
|
1166
|
+
project_key: projectKey,
|
|
1167
|
+
source: bucket.source,
|
|
1168
|
+
hour_start: bucket.hour_start,
|
|
1169
|
+
input_tokens: totals.input_tokens,
|
|
1170
|
+
cached_input_tokens: totals.cached_input_tokens,
|
|
1171
|
+
output_tokens: totals.output_tokens,
|
|
1172
|
+
reasoning_output_tokens: totals.reasoning_output_tokens,
|
|
1173
|
+
total_tokens: totals.total_tokens
|
|
1174
|
+
})
|
|
1175
|
+
);
|
|
1176
|
+
bucket.queuedKey = queuedKey;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
if (toAppend.length > 0) {
|
|
1180
|
+
await fs.appendFile(projectQueuePath, toAppend.join('\n') + '\n', 'utf8');
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
return toAppend.length;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
921
1186
|
function pickDominantModel(buckets) {
|
|
922
1187
|
let dominantModel = null;
|
|
923
1188
|
let dominantTotal = -1;
|
|
@@ -1049,6 +1314,31 @@ function normalizeHourlyState(raw) {
|
|
|
1049
1314
|
};
|
|
1050
1315
|
}
|
|
1051
1316
|
|
|
1317
|
+
function normalizeProjectState(raw) {
|
|
1318
|
+
const state = raw && typeof raw === 'object' ? raw : {};
|
|
1319
|
+
const rawBuckets = state.buckets && typeof state.buckets === 'object' ? state.buckets : {};
|
|
1320
|
+
const buckets = {};
|
|
1321
|
+
const rawProjects = state.projects && typeof state.projects === 'object' ? state.projects : {};
|
|
1322
|
+
const projects = {};
|
|
1323
|
+
|
|
1324
|
+
for (const [key, value] of Object.entries(rawBuckets)) {
|
|
1325
|
+
if (!key) continue;
|
|
1326
|
+
buckets[key] = value;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
for (const [key, value] of Object.entries(rawProjects)) {
|
|
1330
|
+
if (!key || !value || typeof value !== 'object') continue;
|
|
1331
|
+
projects[key] = { ...value };
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
return {
|
|
1335
|
+
version: 2,
|
|
1336
|
+
buckets,
|
|
1337
|
+
projects,
|
|
1338
|
+
updatedAt: typeof state.updatedAt === 'string' ? state.updatedAt : null
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1052
1342
|
function normalizeOpencodeState(raw) {
|
|
1053
1343
|
const state = raw && typeof raw === 'object' ? raw : {};
|
|
1054
1344
|
const messages = state.messages && typeof state.messages === 'object' ? state.messages : {};
|
|
@@ -1093,6 +1383,40 @@ function getHourlyBucket(state, source, model, hourStart) {
|
|
|
1093
1383
|
return bucket;
|
|
1094
1384
|
}
|
|
1095
1385
|
|
|
1386
|
+
function getProjectBucket(state, projectKey, source, hourStart, projectRef) {
|
|
1387
|
+
const buckets = state.buckets;
|
|
1388
|
+
const normalizedSource = normalizeSourceInput(source) || DEFAULT_SOURCE;
|
|
1389
|
+
const key = projectBucketKey(projectKey, normalizedSource, hourStart);
|
|
1390
|
+
let bucket = buckets[key];
|
|
1391
|
+
if (!bucket || typeof bucket !== 'object') {
|
|
1392
|
+
bucket = {
|
|
1393
|
+
totals: initTotals(),
|
|
1394
|
+
queuedKey: null,
|
|
1395
|
+
project_key: projectKey,
|
|
1396
|
+
project_ref: projectRef,
|
|
1397
|
+
source: normalizedSource,
|
|
1398
|
+
hour_start: hourStart
|
|
1399
|
+
};
|
|
1400
|
+
buckets[key] = bucket;
|
|
1401
|
+
return bucket;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
if (!bucket.totals || typeof bucket.totals !== 'object') {
|
|
1405
|
+
bucket.totals = initTotals();
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
if (bucket.queuedKey != null && typeof bucket.queuedKey !== 'string') {
|
|
1409
|
+
bucket.queuedKey = null;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
if (projectRef) bucket.project_ref = projectRef;
|
|
1413
|
+
if (projectKey) bucket.project_key = projectKey;
|
|
1414
|
+
bucket.source = normalizedSource;
|
|
1415
|
+
bucket.hour_start = hourStart;
|
|
1416
|
+
|
|
1417
|
+
return bucket;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1096
1420
|
function initTotals() {
|
|
1097
1421
|
return {
|
|
1098
1422
|
input_tokens: 0,
|
|
@@ -1146,6 +1470,11 @@ function bucketKey(source, model, hourStart) {
|
|
|
1146
1470
|
return `${safeSource}${BUCKET_SEPARATOR}${safeModel}${BUCKET_SEPARATOR}${hourStart}`;
|
|
1147
1471
|
}
|
|
1148
1472
|
|
|
1473
|
+
function projectBucketKey(projectKey, source, hourStart) {
|
|
1474
|
+
const safeSource = normalizeSourceInput(source) || DEFAULT_SOURCE;
|
|
1475
|
+
return `${projectKey}${BUCKET_SEPARATOR}${safeSource}${BUCKET_SEPARATOR}${hourStart}`;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1149
1478
|
function groupBucketKey(source, hourStart) {
|
|
1150
1479
|
const safeSource = normalizeSourceInput(source) || DEFAULT_SOURCE;
|
|
1151
1480
|
return `${safeSource}${BUCKET_SEPARATOR}${hourStart}`;
|
|
@@ -1178,6 +1507,246 @@ function normalizeModelInput(value) {
|
|
|
1178
1507
|
return trimmed.length > 0 ? trimmed : null;
|
|
1179
1508
|
}
|
|
1180
1509
|
|
|
1510
|
+
async function resolveProjectMetaForPath(startDir, cache) {
|
|
1511
|
+
if (!startDir || typeof startDir !== 'string') return null;
|
|
1512
|
+
if (cache && cache.has(startDir)) return cache.get(startDir);
|
|
1513
|
+
|
|
1514
|
+
const visited = [];
|
|
1515
|
+
let current = startDir;
|
|
1516
|
+
const root = path.parse(startDir).root;
|
|
1517
|
+
while (current) {
|
|
1518
|
+
if (cache && cache.has(current)) {
|
|
1519
|
+
const cached = cache.get(current);
|
|
1520
|
+
for (const entry of visited) cache.set(entry, cached);
|
|
1521
|
+
return cached;
|
|
1522
|
+
}
|
|
1523
|
+
visited.push(current);
|
|
1524
|
+
|
|
1525
|
+
const configPath = await resolveGitConfigPath(current);
|
|
1526
|
+
if (configPath) {
|
|
1527
|
+
const remoteUrl = await readGitRemoteUrl(configPath);
|
|
1528
|
+
const projectRef = canonicalizeProjectRef(remoteUrl);
|
|
1529
|
+
const meta = { projectRef: projectRef || null, repoRoot: current };
|
|
1530
|
+
if (cache) {
|
|
1531
|
+
for (const entry of visited) cache.set(entry, meta);
|
|
1532
|
+
}
|
|
1533
|
+
return meta;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
if (current === root) break;
|
|
1537
|
+
const parent = path.dirname(current);
|
|
1538
|
+
if (!parent || parent === current) break;
|
|
1539
|
+
current = parent;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
if (cache) {
|
|
1543
|
+
for (const entry of visited) cache.set(entry, null);
|
|
1544
|
+
}
|
|
1545
|
+
return null;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
async function defaultPublicRepoResolver({ projectRef, repoRoot, cache }) {
|
|
1549
|
+
if (!projectRef) {
|
|
1550
|
+
return {
|
|
1551
|
+
status: 'blocked',
|
|
1552
|
+
projectKey: null,
|
|
1553
|
+
projectRef: null,
|
|
1554
|
+
repoRootHash: repoRoot ? hashRepoRoot(repoRoot) : null,
|
|
1555
|
+
reason: 'missing_ref'
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
const cached = cache && cache.has(projectRef) ? cache.get(projectRef) : null;
|
|
1560
|
+
const base = cached || (await resolveGitHubPublicStatus(projectRef));
|
|
1561
|
+
if (cache && !cached) cache.set(projectRef, base);
|
|
1562
|
+
return {
|
|
1563
|
+
...base,
|
|
1564
|
+
repoRootHash: repoRoot ? hashRepoRoot(repoRoot) : null
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
function recordProjectMeta(projectState, meta) {
|
|
1569
|
+
if (!projectState || !meta || typeof meta !== 'object') return;
|
|
1570
|
+
const repoRootHash = typeof meta.repoRootHash === 'string' ? meta.repoRootHash : null;
|
|
1571
|
+
let projectKey = typeof meta.projectKey === 'string' ? meta.projectKey : null;
|
|
1572
|
+
if (!projectKey && repoRootHash && projectState.projects && typeof projectState.projects === 'object') {
|
|
1573
|
+
for (const [key, entry] of Object.entries(projectState.projects)) {
|
|
1574
|
+
if (entry && entry.repo_root_hash === repoRootHash) {
|
|
1575
|
+
projectKey = key;
|
|
1576
|
+
break;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
if (!projectKey) return;
|
|
1581
|
+
if (!projectState.projects || typeof projectState.projects !== 'object') {
|
|
1582
|
+
projectState.projects = {};
|
|
1583
|
+
}
|
|
1584
|
+
const prev = projectState.projects[projectKey] || {};
|
|
1585
|
+
const status = typeof meta.status === 'string' ? meta.status : null;
|
|
1586
|
+
const projectRef = typeof meta.projectRef === 'string' ? meta.projectRef : null;
|
|
1587
|
+
const next = {
|
|
1588
|
+
...prev,
|
|
1589
|
+
project_ref: projectRef || prev.project_ref || null,
|
|
1590
|
+
status: status || prev.status || null,
|
|
1591
|
+
repo_root_hash: repoRootHash || prev.repo_root_hash || null,
|
|
1592
|
+
updated_at: new Date().toISOString()
|
|
1593
|
+
};
|
|
1594
|
+
if (status === 'blocked' && prev.status !== 'blocked') {
|
|
1595
|
+
next.purge_pending = true;
|
|
1596
|
+
} else if (status && status !== 'blocked') {
|
|
1597
|
+
next.purge_pending = false;
|
|
1598
|
+
}
|
|
1599
|
+
projectState.projects[projectKey] = next;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
async function resolveProjectContextForFile({
|
|
1603
|
+
filePath,
|
|
1604
|
+
projectMetaCache,
|
|
1605
|
+
publicRepoCache,
|
|
1606
|
+
publicRepoResolver,
|
|
1607
|
+
projectState
|
|
1608
|
+
}) {
|
|
1609
|
+
if (!filePath) return null;
|
|
1610
|
+
return resolveProjectContextForPath({
|
|
1611
|
+
startDir: path.dirname(filePath),
|
|
1612
|
+
projectMetaCache,
|
|
1613
|
+
publicRepoCache,
|
|
1614
|
+
publicRepoResolver,
|
|
1615
|
+
projectState
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
async function resolveProjectContextForPath({
|
|
1620
|
+
startDir,
|
|
1621
|
+
projectMetaCache,
|
|
1622
|
+
publicRepoCache,
|
|
1623
|
+
publicRepoResolver,
|
|
1624
|
+
projectState
|
|
1625
|
+
}) {
|
|
1626
|
+
if (!startDir) return null;
|
|
1627
|
+
const projectMeta = await resolveProjectMetaForPath(startDir, projectMetaCache);
|
|
1628
|
+
if (!projectMeta) return null;
|
|
1629
|
+
const resolver = typeof publicRepoResolver === 'function' ? publicRepoResolver : defaultPublicRepoResolver;
|
|
1630
|
+
const meta = await resolver({
|
|
1631
|
+
projectRef: projectMeta.projectRef,
|
|
1632
|
+
repoRoot: projectMeta.repoRoot,
|
|
1633
|
+
cache: publicRepoCache
|
|
1634
|
+
});
|
|
1635
|
+
const repoRootHash = projectMeta.repoRoot ? hashRepoRoot(projectMeta.repoRoot) : null;
|
|
1636
|
+
const normalized = {
|
|
1637
|
+
...(meta || {}),
|
|
1638
|
+
projectRef: meta?.projectRef || projectMeta.projectRef,
|
|
1639
|
+
projectKey: meta?.projectKey || null,
|
|
1640
|
+
status: meta?.status || 'blocked',
|
|
1641
|
+
repoRootHash: meta?.repoRootHash || repoRootHash
|
|
1642
|
+
};
|
|
1643
|
+
recordProjectMeta(projectState, normalized);
|
|
1644
|
+
if (normalized.status !== 'public_verified') {
|
|
1645
|
+
return { projectRef: normalized.projectRef, projectKey: null, status: normalized.status };
|
|
1646
|
+
}
|
|
1647
|
+
return { projectRef: normalized.projectRef, projectKey: normalized.projectKey, status: normalized.status };
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
async function resolveGitConfigPath(rootDir) {
|
|
1651
|
+
const gitPath = path.join(rootDir, '.git');
|
|
1652
|
+
const st = await fs.stat(gitPath).catch(() => null);
|
|
1653
|
+
if (!st) return null;
|
|
1654
|
+
if (st.isDirectory()) {
|
|
1655
|
+
const configPath = path.join(gitPath, 'config');
|
|
1656
|
+
const cfg = await fs.stat(configPath).catch(() => null);
|
|
1657
|
+
return cfg && cfg.isFile() ? configPath : null;
|
|
1658
|
+
}
|
|
1659
|
+
if (st.isFile()) {
|
|
1660
|
+
const content = await fs.readFile(gitPath, 'utf8').catch(() => '');
|
|
1661
|
+
const match = content.match(/gitdir:\s*(.+)/i);
|
|
1662
|
+
if (!match) return null;
|
|
1663
|
+
let gitDir = match[1].trim();
|
|
1664
|
+
if (!gitDir) return null;
|
|
1665
|
+
if (!path.isAbsolute(gitDir)) {
|
|
1666
|
+
gitDir = path.resolve(rootDir, gitDir);
|
|
1667
|
+
}
|
|
1668
|
+
const configPath = path.join(gitDir, 'config');
|
|
1669
|
+
const cfg = await fs.stat(configPath).catch(() => null);
|
|
1670
|
+
if (cfg && cfg.isFile()) return configPath;
|
|
1671
|
+
|
|
1672
|
+
const commonDirRaw = await fs.readFile(path.join(gitDir, 'commondir'), 'utf8').catch(() => '');
|
|
1673
|
+
const commonDirRel = commonDirRaw.trim();
|
|
1674
|
+
if (!commonDirRel) return null;
|
|
1675
|
+
let commonDir = commonDirRel;
|
|
1676
|
+
if (!path.isAbsolute(commonDir)) {
|
|
1677
|
+
commonDir = path.resolve(gitDir, commonDir);
|
|
1678
|
+
}
|
|
1679
|
+
const commonConfigPath = path.join(commonDir, 'config');
|
|
1680
|
+
const commonCfg = await fs.stat(commonConfigPath).catch(() => null);
|
|
1681
|
+
return commonCfg && commonCfg.isFile() ? commonConfigPath : null;
|
|
1682
|
+
}
|
|
1683
|
+
return null;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
async function readGitRemoteUrl(configPath) {
|
|
1687
|
+
const raw = await fs.readFile(configPath, 'utf8').catch(() => '');
|
|
1688
|
+
if (!raw.trim()) return null;
|
|
1689
|
+
|
|
1690
|
+
const remotes = new Map();
|
|
1691
|
+
let current = null;
|
|
1692
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
1693
|
+
const sectionHeader = line.match(/^\s*\[[^\]]+\]\s*$/);
|
|
1694
|
+
if (sectionHeader) {
|
|
1695
|
+
const sectionMatch = line.match(/^\s*\[remote\s+"([^"]+)"\]\s*$/i);
|
|
1696
|
+
current = sectionMatch ? sectionMatch[1] : null;
|
|
1697
|
+
continue;
|
|
1698
|
+
}
|
|
1699
|
+
if (!current) continue;
|
|
1700
|
+
const urlMatch = line.match(/^\s*url\s*=\s*(.+)\s*$/i);
|
|
1701
|
+
if (urlMatch) {
|
|
1702
|
+
remotes.set(current, urlMatch[1].trim());
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (remotes.has('origin')) return remotes.get('origin');
|
|
1707
|
+
const first = remotes.values().next();
|
|
1708
|
+
return first.done ? null : first.value;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
function canonicalizeProjectRef(remoteUrl) {
|
|
1712
|
+
if (typeof remoteUrl !== 'string') return null;
|
|
1713
|
+
let ref = remoteUrl.trim();
|
|
1714
|
+
if (!ref) return null;
|
|
1715
|
+
|
|
1716
|
+
if (ref.startsWith('file://')) return null;
|
|
1717
|
+
if (path.isAbsolute(ref) || path.win32.isAbsolute(ref)) return null;
|
|
1718
|
+
|
|
1719
|
+
const gitAtMatch = ref.match(/^git@([^:]+):(.+)$/i);
|
|
1720
|
+
if (gitAtMatch) {
|
|
1721
|
+
ref = `https://${gitAtMatch[1]}/${gitAtMatch[2]}`;
|
|
1722
|
+
} else if (ref.startsWith('ssh://')) {
|
|
1723
|
+
try {
|
|
1724
|
+
const parsed = new URL(ref);
|
|
1725
|
+
ref = `https://${parsed.hostname}${parsed.pathname}`;
|
|
1726
|
+
} catch (_e) {
|
|
1727
|
+
return null;
|
|
1728
|
+
}
|
|
1729
|
+
} else if (ref.startsWith('git://')) {
|
|
1730
|
+
ref = `https://${ref.slice('git://'.length)}`;
|
|
1731
|
+
} else if (ref.startsWith('http://')) {
|
|
1732
|
+
ref = `https://${ref.slice('http://'.length)}`;
|
|
1733
|
+
} else if (!ref.startsWith('https://')) {
|
|
1734
|
+
return null;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
try {
|
|
1738
|
+
const parsed = new URL(ref);
|
|
1739
|
+
if (!parsed.hostname) return null;
|
|
1740
|
+
ref = `https://${parsed.hostname}${parsed.pathname}`;
|
|
1741
|
+
} catch (_e) {
|
|
1742
|
+
return null;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
ref = ref.replace(/\.git$/i, '');
|
|
1746
|
+
ref = ref.replace(/\/+$/, '');
|
|
1747
|
+
return ref || null;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1181
1750
|
function normalizeGeminiTokens(tokens) {
|
|
1182
1751
|
if (!tokens || typeof tokens !== 'object') return null;
|
|
1183
1752
|
const input = toNonNegativeInt(tokens.input);
|