rivet-design 0.21.2 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/agent-variants/WorktreeOrchestrator.d.ts +1 -1
  2. package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  3. package/dist/agent-variants/WorktreeOrchestrator.js +6 -7
  4. package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
  5. package/dist/agent-variants/contracts.d.ts +286 -286
  6. package/dist/agent-variants/guidancePrompt.d.ts.map +1 -1
  7. package/dist/agent-variants/guidancePrompt.js +17 -0
  8. package/dist/agent-variants/guidancePrompt.js.map +1 -1
  9. package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
  10. package/dist/agent-variants/workItemBriefing.js +1 -1
  11. package/dist/agent-variants/workItemBriefing.js.map +1 -1
  12. package/dist/agent-variants/workItemContextFiles.d.ts.map +1 -1
  13. package/dist/agent-variants/workItemContextFiles.js +9 -4
  14. package/dist/agent-variants/workItemContextFiles.js.map +1 -1
  15. package/dist/cli/commands/contextRequest.d.ts.map +1 -1
  16. package/dist/cli/commands/contextRequest.js +19 -4
  17. package/dist/cli/commands/contextRequest.js.map +1 -1
  18. package/dist/cli/commands/generationPreflight.js +1 -1
  19. package/dist/cli/commands/generationPreflight.js.map +1 -1
  20. package/dist/cli/commands/guidanceReferences.d.ts +11 -0
  21. package/dist/cli/commands/guidanceReferences.d.ts.map +1 -0
  22. package/dist/cli/commands/guidanceReferences.js +56 -0
  23. package/dist/cli/commands/guidanceReferences.js.map +1 -0
  24. package/dist/cli/commands/mcpServe.d.ts.map +1 -1
  25. package/dist/cli/commands/mcpServe.js +9 -1
  26. package/dist/cli/commands/mcpServe.js.map +1 -1
  27. package/dist/cli/commands/open.d.ts.map +1 -1
  28. package/dist/cli/commands/open.js +18 -59
  29. package/dist/cli/commands/open.js.map +1 -1
  30. package/dist/cli/commands/status.js +1 -1
  31. package/dist/cli/commands/status.js.map +1 -1
  32. package/dist/cli/commands/update.d.ts.map +1 -1
  33. package/dist/cli/commands/update.js +7 -0
  34. package/dist/cli/commands/update.js.map +1 -1
  35. package/dist/cli/commands/wait.d.ts.map +1 -1
  36. package/dist/cli/commands/wait.js +37 -4
  37. package/dist/cli/commands/wait.js.map +1 -1
  38. package/dist/cli/entry.d.ts.map +1 -1
  39. package/dist/cli/entry.js +16 -0
  40. package/dist/cli/entry.js.map +1 -1
  41. package/dist/cli/projectRuntimeUpgrade.d.ts +21 -0
  42. package/dist/cli/projectRuntimeUpgrade.d.ts.map +1 -0
  43. package/dist/cli/projectRuntimeUpgrade.js +116 -0
  44. package/dist/cli/projectRuntimeUpgrade.js.map +1 -0
  45. package/dist/cli/router.d.ts.map +1 -1
  46. package/dist/cli/router.js +4 -3
  47. package/dist/cli/router.js.map +1 -1
  48. package/dist/cli/runtimeInterruption.d.ts +32 -0
  49. package/dist/cli/runtimeInterruption.d.ts.map +1 -0
  50. package/dist/cli/runtimeInterruption.js +65 -0
  51. package/dist/cli/runtimeInterruption.js.map +1 -0
  52. package/dist/cli/serverVersion.js +1 -1
  53. package/dist/cli/serverVersion.js.map +1 -1
  54. package/dist/cli/synchronizeRuntimes.d.ts +19 -0
  55. package/dist/cli/synchronizeRuntimes.d.ts.map +1 -0
  56. package/dist/cli/synchronizeRuntimes.js +113 -0
  57. package/dist/cli/synchronizeRuntimes.js.map +1 -0
  58. package/dist/library/HubClient.d.ts +2 -0
  59. package/dist/library/HubClient.d.ts.map +1 -1
  60. package/dist/library/HubClient.js +48 -9
  61. package/dist/library/HubClient.js.map +1 -1
  62. package/dist/routes/cli.d.ts +1 -0
  63. package/dist/routes/cli.d.ts.map +1 -1
  64. package/dist/routes/cli.js +11 -4
  65. package/dist/routes/cli.js.map +1 -1
  66. package/dist/routes/library/guidance.d.ts.map +1 -1
  67. package/dist/routes/library/guidance.js +6 -1
  68. package/dist/routes/library/guidance.js.map +1 -1
  69. package/dist/server.d.ts.map +1 -1
  70. package/dist/server.js +1 -0
  71. package/dist/server.js.map +1 -1
  72. package/dist/services/RuntimeAdmission.d.ts +1 -1
  73. package/dist/services/RuntimeAdmission.d.ts.map +1 -1
  74. package/dist/services/RuntimeAdmission.js +3 -2
  75. package/dist/services/RuntimeAdmission.js.map +1 -1
  76. package/dist/services/VariantRunService.d.ts +1 -0
  77. package/dist/services/VariantRunService.d.ts.map +1 -1
  78. package/dist/services/VariantRunService.js +8 -2
  79. package/dist/services/VariantRunService.js.map +1 -1
  80. package/dist/services/guidanceDelivery.d.ts.map +1 -1
  81. package/dist/services/guidanceDelivery.js +15 -11
  82. package/dist/services/guidanceDelivery.js.map +1 -1
  83. package/dist/services/guidanceReferences.d.ts +6 -0
  84. package/dist/services/guidanceReferences.d.ts.map +1 -0
  85. package/dist/services/guidanceReferences.js +133 -0
  86. package/dist/services/guidanceReferences.js.map +1 -0
  87. package/dist/services/profiles/DesignProfiles.d.ts +66 -1
  88. package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
  89. package/dist/services/profiles/DesignProfiles.js +5 -1
  90. package/dist/services/profiles/DesignProfiles.js.map +1 -1
  91. package/dist/services/profiles/ProfilePlanning.d.ts +1 -1
  92. package/dist/services/runtimeVersion.d.ts +1 -1
  93. package/dist/services/runtimeVersion.d.ts.map +1 -1
  94. package/dist/services/runtimeVersion.js +1 -1
  95. package/dist/services/runtimeVersion.js.map +1 -1
  96. package/dist/services/stopRuntimeProcess.d.ts +9 -0
  97. package/dist/services/stopRuntimeProcess.d.ts.map +1 -0
  98. package/dist/services/stopRuntimeProcess.js +84 -0
  99. package/dist/services/stopRuntimeProcess.js.map +1 -0
  100. package/dist/storage/profiles/ProfilePlans.d.ts +4 -4
  101. package/dist/storage/profiles/ProfileRecords.d.ts +1 -1
  102. package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
  103. package/dist/storage/profiles/ProfileRecords.js +3 -1
  104. package/dist/storage/profiles/ProfileRecords.js.map +1 -1
  105. package/dist/storage/profiles/migrations.d.ts +2 -2
  106. package/dist/storage/profiles/migrations.d.ts.map +1 -1
  107. package/dist/storage/profiles/migrations.js +3 -0
  108. package/dist/storage/profiles/migrations.js.map +1 -1
  109. package/dist/storage/profiles/planSchema.d.ts +1 -1
  110. package/dist/storage/profiles/schema.d.ts +29 -1
  111. package/dist/storage/profiles/schema.d.ts.map +1 -1
  112. package/dist/storage/profiles/schema.js +1 -0
  113. package/dist/storage/profiles/schema.js.map +1 -1
  114. package/dist/types/design-profile.d.ts +2 -2
  115. package/dist/types/guidance-references.d.ts +230 -0
  116. package/dist/types/guidance-references.d.ts.map +1 -0
  117. package/dist/types/guidance-references.js +133 -0
  118. package/dist/types/guidance-references.js.map +1 -0
  119. package/dist/types/guidance.d.ts +662 -1
  120. package/dist/types/guidance.d.ts.map +1 -1
  121. package/dist/types/guidance.js +10 -2
  122. package/dist/types/guidance.js.map +1 -1
  123. package/dist/types/reference-onboarding.d.ts +2 -2
  124. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  125. package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
  126. package/dist/utils/skills/cli-guidance.js +4 -2
  127. package/dist/utils/skills/cli-guidance.js.map +1 -1
  128. package/package.json +3 -2
  129. package/src/ui/dist/assets/{LibraryEntry-B5kPF3Ey.js → LibraryEntry-yoxzWNdQ.js} +1 -1
  130. package/src/ui/dist/assets/{main-Er_TRZTd.js → main-DlZAsDUG.js} +2 -2
  131. package/src/ui/dist/index.html +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"guidance.d.ts","sourceRoot":"","sources":["../../src/types/guidance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,oBAAoB,QAAmB,CAAC;AACrD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wB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pE,eAAO,MAAM,eAAe,GAC1B,WAAW,SAAS,gBAAgB,EAAE,KACrC,eAAe,GAAG,SAwBpB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.guidanceWarning = exports.GuidanceWarningSchema = exports.guidancePayloadByteLength = exports.GuidanceError = exports.GuidanceSelectionSchema = exports.GuidanceUploadUpdateSchema = exports.GuidanceUploadSchema = exports.GuidanceUpdateSchema = exports.GuidanceInputSchema = exports.SavedGuidanceSchema = exports.GuidanceDocumentSchema = exports.guidanceByteLength = exports.GuidanceAttachmentSchema = exports.GUIDANCE_IMAGE_BYTES = void 0;
4
4
  const zod_1 = require("zod");
5
+ const guidance_references_1 = require("./guidance-references");
5
6
  const design_profile_1 = require("./design-profile");
6
7
  const LARGE_GUIDANCE_BYTES = 32 * 1024;
7
8
  const GUIDANCE_TITLE_LENGTH = 500;
@@ -33,6 +34,7 @@ exports.GuidanceDocumentSchema = zod_1.z
33
34
  title: zod_1.z.string().trim().min(1).max(GUIDANCE_TITLE_LENGTH),
34
35
  markdown: GuidanceMarkdownSchema,
35
36
  attachments: zod_1.z.array(exports.GuidanceAttachmentSchema).optional(),
37
+ references: guidance_references_1.GuidanceReferencesSchema.optional(),
36
38
  })
37
39
  .strict();
38
40
  exports.SavedGuidanceSchema = exports.GuidanceDocumentSchema.extend({
@@ -48,9 +50,11 @@ exports.GuidanceUpdateSchema = exports.SavedGuidanceSchema.omit({ id: true })
48
50
  .refine((value) => Object.keys(value).length > 0, 'Provide a guidance update');
49
51
  exports.GuidanceUploadSchema = exports.GuidanceInputSchema.omit({
50
52
  attachments: true,
53
+ references: true,
51
54
  })
52
55
  .extend({
53
56
  images: GuidanceImagesSchema.optional(),
57
+ references: guidance_references_1.GuidanceReferencesUploadSchema.optional(),
54
58
  })
55
59
  .strict();
56
60
  exports.GuidanceUploadUpdateSchema = exports.GuidanceUploadSchema.partial().refine((value) => Object.keys(value).length > 0 &&
@@ -80,14 +84,18 @@ exports.GuidanceWarningSchema = zod_1.z.object({
80
84
  message: zod_1.z.string(),
81
85
  });
82
86
  const guidanceWarning = (documents) => {
83
- const byteCount = documents.reduce((total, document) => total + (0, exports.guidanceByteLength)(document.markdown), 0);
87
+ const byteCount = documents.reduce((total, document) => total +
88
+ (0, exports.guidanceByteLength)(document.markdown) +
89
+ (document.references ?? []).reduce((bytes, reference) => bytes +
90
+ (0, exports.guidanceByteLength)(reference.intent) +
91
+ (reference.files ?? []).reduce((size, file) => size + (0, exports.guidanceByteLength)(file.content), 0), 0), 0);
84
92
  if (byteCount <= LARGE_GUIDANCE_BYTES)
85
93
  return undefined;
86
94
  return {
87
95
  code: 'large_saved_context',
88
96
  documentCount: documents.length,
89
97
  byteCount,
90
- message: `Saved context includes ${documents.length} ${documents.length === 1 ? 'document' : 'documents'} and ${byteCount} UTF-8 bytes of Markdown. All selected text is included. This may use substantial prompt space; bytes do not predict model capacity. To reduce it for a run, choose documents to exclude or use --guidance off.`,
98
+ message: `Saved context includes ${documents.length} ${documents.length === 1 ? 'document' : 'documents'} and ${byteCount} UTF-8 bytes of guidance and reference text. Native reference files are available for workers to read. This may use substantial prompt space; bytes do not predict model capacity. To reduce it for a run, choose documents to exclude or use --guidance off.`,
91
99
  };
92
100
  };
93
101
  exports.guidanceWarning = guidanceWarning;
@@ -1 +1 @@
1
- {"version":3,"file":"guidance.js","sourceRoot":"","sources":["../../src/types/guidance.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qDAI0B;AAE1B,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAClC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAClB,QAAA,oBAAoB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACxC,QAAA,wBAAwB,GAAG,mCAAkB,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GA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;QAC3B,aAAa,EAAE,SAAS,CAAC,MAAM;QAC/B,SAAS;QACT,OAAO,EAAE,0BAA0B,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,QAAQ,SAAS,+PAA+P;KACzX,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,eAAe,mBA0B1B"}
@@ -889,8 +889,8 @@ export declare const ReferencePlanSchema: z.ZodObject<{
889
889
  }, "strip", z.ZodTypeAny, {
890
890
  id: string;
891
891
  expiresAt: string;
892
- runtime: "claude" | "codex" | "cursor";
893
892
  revision: string;
893
+ runtime: "claude" | "codex" | "cursor";
894
894
  profile: {
895
895
  id: string;
896
896
  url: string;
@@ -941,8 +941,8 @@ export declare const ReferencePlanSchema: z.ZodObject<{
941
941
  }, {
942
942
  id: string;
943
943
  expiresAt: string;
944
- runtime: "claude" | "codex" | "cursor";
945
944
  revision: string;
945
+ runtime: "claude" | "codex" | "cursor";
946
946
  profile: {
947
947
  id: string;
948
948
  url: string;
@@ -1,4 +1,4 @@
1
- export declare const CLI_GUIDANCE_VERSION = 47;
1
+ export declare const CLI_GUIDANCE_VERSION = 48;
2
2
  export declare const CLI_GUIDANCE_BODY: string;
3
3
  export declare const CLI_GUIDANCE_DESCRIPTION = "Rivet \u2014 open the visual editor or explore design directions for a web app.";
4
4
  //# sourceMappingURL=cli-guidance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-guidance.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAIvC,eAAO,MAAM,iBAAiB,QA+Emc,CAAC;AAEle,eAAO,MAAM,wBAAwB,oFACyC,CAAC"}
1
+ {"version":3,"file":"cli-guidance.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAIvC,eAAO,MAAM,iBAAiB,QAiFmc,CAAC;AAEle,eAAO,MAAM,wBAAwB,oFACyC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLI_GUIDANCE_DESCRIPTION = exports.CLI_GUIDANCE_BODY = exports.CLI_GUIDANCE_VERSION = void 0;
4
4
  const displayLocale_1 = require("../displayLocale");
5
- exports.CLI_GUIDANCE_VERSION = 47;
5
+ exports.CLI_GUIDANCE_VERSION = 48;
6
6
  const DISPLAY_LOCALE = (0, displayLocale_1.resolveDisplayLocale)();
7
7
  exports.CLI_GUIDANCE_BODY = `Rivet helps you **explore multiple design directions** for a web app. You drive it by running \`rivet\` CLI commands. Every command prints exactly one JSON envelope on stdout (\`{ schemaVersion, ok, command, data | error }\`), routes progress to stderr, and never prompts for input.
8
8
 
@@ -38,7 +38,9 @@ exports.CLI_GUIDANCE_BODY = `Rivet helps you **explore multiple design direction
38
38
 
39
39
  Save user-provided principles with \`rivet context add --title <title> --file <Markdown path>\`. Use \`context list\` or \`context show <id>\` to inspect them, \`context update <id> --file <path>\` to replace saved text, and \`context enable|disable|remove <id>\` only when the user wants a persistent change. Files are copied when saved. Documents belong to the signed-in account on this installation and apply across projects. Do not save one-off requests as defaults without the user's intent to do so.
40
40
 
41
- Translate "ignore my motion principles for this run" into \`--exclude-guidance '["<documentId>"]'\` on both \`context resolve\` and \`variants start\`. Use \`--guidance off\` to exclude all saved instructions for one request. These flags do not alter saved documents. \`--profile off\` controls visual reference selection independently. The optional \`rivet_variants\` tool accepts \`guidance\` and \`excludedGuidanceIds\`; \`rivet_design_context\` accepts \`contextAction\`, \`contextId\`, \`contextFile\`, and \`title\` for the same context commands. Use \`contextAction: "resolve"\` before host-authored briefs, with the same selection fields.
41
+ For supplied component libraries or brand systems, prepare selected native UTF-8 files and attach them with \`rivet context add --title <title> --references <manifest.json>\`, optionally adding \`--file\` for setup guidance. The manifest is an array of \`{kind:"url"|"repository",url,intent,revision?,files?:[{name,path}]}\`. Paths resolve relative to the manifest; names preserve useful extensions and relative layout. Retain the user's intended use, source origin, and package/version requirements. Provide setup guidance in intent or Markdown so direction planning can read it without opening files. No particular styling or component schema is required. URLs are identifiers, not crawl/clone requests; References without selected files are explicit source pointers. Limits are 32 references, 100 files and 5 MiB of native text per document, with 1 MiB per file. Rivet retains the text after source deletion and materializes native paths for resolution and generation. It does not install packages when saving context. Workers must inspect relevant APIs and use documented package/theme setup in compatible apps. Do not force a different runtime or imply that delivery verifies correct use. Updating with \`--references\` replaces the array; an empty array removes it; omission preserves it.
42
+
43
+ Translate "ignore my motion principles for this run" into \`--exclude-guidance '["<documentId>"]'\` on both \`context resolve\` and \`variants start\`. Use \`--guidance off\` to exclude all saved instructions for one request. These flags do not alter saved documents. \`--profile off\` controls visual reference selection independently. The optional \`rivet_variants\` tool accepts \`guidance\` and \`excludedGuidanceIds\`; \`rivet_design_context\` accepts \`contextAction\`, \`contextId\`, \`contextFile\`, \`contextReferences\`, and \`title\` for the same context commands. Use \`contextAction: "resolve"\` before host-authored briefs, with the same selection fields.
42
44
 
43
45
  Every generation resolves current saved instructions once and supplies the same text to its planner and workers. Editing defaults affects the next generation; retries retain their original text. For "what instructions did this run receive?", use \`rivet context inspect <workId> --project <path>\` or \`rivet_design_context\` with \`contextAction: "inspect"\`, \`requestId\`, and \`project\`. Use the retained text rather than resolving today's defaults. If \`isRecorded\` is false, historical evidence is unavailable. Delivery is evidence of supplied context; it does not establish that the generated design followed every principle.
44
46
 
@@ -1 +1 @@
1
- {"version":3,"file":"cli-guidance.js","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAE3C,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAEvC,MAAM,cAAc,GAAG,IAAA,oCAAoB,GAAE,CAAC;AAEjC,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+UAgE8S,cAAc;;;;;;;;;;;;;;;ieAeoI,CAAC;AAErd,QAAA,wBAAwB,GACnC,4EAA4E,CAAC"}
1
+ {"version":3,"file":"cli-guidance.js","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAE3C,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAEvC,MAAM,cAAc,GAAG,IAAA,oCAAoB,GAAE,CAAC;AAEjC,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+UAkE8S,cAAc;;;;;;;;;;;;;;;ieAeoI,CAAC;AAErd,QAAA,wBAAwB,GACnC,4EAA4E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rivet-design",
3
- "version": "0.21.2",
3
+ "version": "0.21.4",
4
4
  "description": "Local visual web development tool with AI-powered code modification",
5
5
  "main": "dist/index.js",
6
6
  "workspaces": [
@@ -28,7 +28,8 @@
28
28
  "lint:fix": "eslint . --ext ts,tsx,js,jsx --fix",
29
29
  "format": "prettier --write .",
30
30
  "format:check": "prettier --check .",
31
- "test": "node --max-old-space-size=4096 ./node_modules/jest/bin/jest.js --config src/jest.config.ts",
31
+ "test": "node --max-old-space-size=4096 ./node_modules/jest/bin/jest.js --config src/jest.config.ts --silent",
32
+ "test:e2e-helpers": "node --import tsx --test e2e/helpers/*.test.ts",
32
33
  "test:install": "yarn build && node scripts/test-host-install.mjs",
33
34
  "rivet:channel": "tsx src/install/channelCli.ts",
34
35
  "test:watch": "jest --config src/jest.config.ts --watch",
@@ -1,4 +1,4 @@
1
- var Be=s=>{throw TypeError(s)};var Ee=(s,t,r)=>t.has(s)||Be("Cannot "+r);var d=(s,t,r)=>(Ee(s,t,"read from private field"),r?r.call(s):t.get(s)),z=(s,t,r)=>t.has(s)?Be("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,r),T=(s,t,r,i)=>(Ee(s,t,"write to private field"),i?i.call(s,r):t.set(s,r),r),D=(s,t,r)=>(Ee(s,t,"access private method"),r);import{S as ot,s as lt,h as Ve,g as Ht,n as be,r as Kt,Q as ct,u as _e,a as Qt,b as Bt,c as u,e as Vt,d as Gt,f as Yt,i as dt,j as Ge,k as Wt,l as Jt,m as Xt,o as de,p as pe,q as Zt,t as e,B as J,v as Pe,P as es,w as ts,x as ss,y as rs,z as is,X as ut,D as ht,A as mt,C as pt,E as xt,F as ft,G as bt,H as yt,I as as,J as ns,K as os,L as ls,M as oe,N as Se,R as cs,O as gt,T as ee,U as Y,V as x,W as re,Y as H,Z as vt,_ as ds,$ as us,a0 as hs,a1 as ms,a2 as ps,a3 as xs,a4 as fs,a5 as bs,a6 as B,a7 as ys,a8 as gs,a9 as Ye,aa as vs,ab as ws,ac as js,ad as Ns,ae as ks,af as wt,ag as Ss,ah as _s,ai as Is,aj as Rs,ak as Cs,al as Es}from"./main-Er_TRZTd.js";var ie,ne,U,ae,se,xe,Oe,at,Ps=(at=class extends ot{constructor(t,r){super();z(this,se);z(this,ie);z(this,ne);z(this,U);z(this,ae);T(this,ie,t),this.setOptions(r),this.bindMethods(),D(this,se,xe).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const r=this.options;this.options=d(this,ie).defaultMutationOptions(t),lt(this.options,r)||d(this,ie).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,U),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ve(r.mutationKey)!==Ve(this.options.mutationKey)?this.reset():((i=d(this,U))==null?void 0:i.state.status)==="pending"&&d(this,U).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&d(this,U)&&(d(this,U).addObserver(this),D(this,se,xe).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,U))==null||t.removeObserver(this)}onMutationUpdate(t){D(this,se,xe).call(this),D(this,se,Oe).call(this,t)}getCurrentResult(){return d(this,ne)}reset(){var t;(t=d(this,U))==null||t.removeObserver(this),T(this,U,void 0),D(this,se,xe).call(this),D(this,se,Oe).call(this)}mutate(t,r){var i;return T(this,ae,r),(i=d(this,U))==null||i.removeObserver(this),T(this,U,d(this,ie).getMutationCache().build(d(this,ie),this.options)),d(this,U).addObserver(this),d(this,U).execute(t)}},ie=new WeakMap,ne=new WeakMap,U=new WeakMap,ae=new WeakMap,se=new WeakSet,xe=function(){var r;const t=((r=d(this,U))==null?void 0:r.state)??Ht();T(this,ne,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Oe=function(t){be.batch(()=>{var r,i,n,o,a,c,p,v;if(d(this,ae)&&this.hasListeners()){const y=d(this,ne).variables,m=d(this,ne).context,N={client:d(this,ie),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(i=(r=d(this,ae)).onSuccess)==null||i.call(r,t.data,y,m,N)}catch(f){Promise.reject(f)}try{(o=(n=d(this,ae)).onSettled)==null||o.call(n,t.data,null,y,m,N)}catch(f){Promise.reject(f)}}else if((t==null?void 0:t.type)==="error"){try{(c=(a=d(this,ae)).onError)==null||c.call(a,t.error,y,m,N)}catch(f){Promise.reject(f)}try{(v=(p=d(this,ae)).onSettled)==null||v.call(p,void 0,t.error,y,m,N)}catch(f){Promise.reject(f)}}}this.listeners.forEach(y=>{y(d(this,ne))})})},at);function We(s,t){const r=new Set(t);return s.filter(i=>!r.has(i))}var he,Q,me,le,G,ce,ge,ve,we,je,L,Te,Le,jt,Ae,Me,De,nt,Os=(nt=class extends ot{constructor(t,r,i){super();z(this,L);z(this,he);z(this,Q);z(this,me);z(this,le);z(this,G);z(this,ce);z(this,ge);z(this,ve);z(this,we);z(this,je,[]);T(this,he,t),T(this,le,i),T(this,me,[]),T(this,G,[]),T(this,Q,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&d(this,G).forEach(t=>{t.subscribe(r=>{D(this,L,Me).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,d(this,G).forEach(t=>{t.destroy()})}setQueries(t,r){T(this,me,t),T(this,le,r),be.batch(()=>{const i=d(this,G),n=D(this,L,Ae).call(this,d(this,me));n.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=n.map(m=>m.observer),a=o.map(m=>m.getCurrentResult()),c=i.length!==o.length,p=o.some((m,N)=>m!==i[N]),v=c||p,y=v?!0:a.some((m,N)=>{const f=d(this,Q)[N];return!f||!lt(m,f)});!v&&!y||(v&&(T(this,je,n),T(this,G,o)),T(this,Q,a),this.hasListeners()&&(v&&(We(i,o).forEach(m=>{m.destroy()}),We(o,i).forEach(m=>{m.subscribe(N=>{D(this,L,Me).call(this,m,N)})})),D(this,L,De).call(this)))})}getCurrentResult(){return d(this,Q)}getQueries(){return d(this,G).map(t=>t.getCurrentQuery())}getObservers(){return d(this,G)}getOptimisticResult(t,r){const i=D(this,L,Ae).call(this,t),n=i.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),o=i.map(a=>a.defaultedQueryOptions.queryHash);return[n,a=>D(this,L,Le).call(this,a??n,r,o),()=>D(this,L,Te).call(this,n,i)]}},he=new WeakMap,Q=new WeakMap,me=new WeakMap,le=new WeakMap,G=new WeakMap,ce=new WeakMap,ge=new WeakMap,ve=new WeakMap,we=new WeakMap,je=new WeakMap,L=new WeakSet,Te=function(t,r){const i=new Set;return r.map((n,o)=>{const a=t[o];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,c=>{i.has(c)||(i.add(c),r.forEach(p=>{p.observer.trackProp(c)}))})})},Le=function(t,r,i){if(r){const n=d(this,we),o=i!==void 0&&n!==void 0&&(n.length!==i.length||i.some((a,c)=>a!==n[c]));return(d(this,Q)!==d(this,ve)||o||r!==d(this,ge))&&(T(this,ge,r),T(this,ve,d(this,Q)),i!==void 0&&T(this,we,i),T(this,ce,Kt(d(this,ce),r(t)))),d(this,ce)}return t},jt=function(){var t;return!((t=d(this,le))!=null&&t.combine)||d(this,G).some((r,i)=>{var n;return r.options.suspense&&((n=d(this,Q)[i])==null?void 0:n.data)===void 0})},Ae=function(t){const r=new Map;d(this,G).forEach(n=>{const o=n.options.queryHash;if(!o)return;const a=r.get(o);a?a.push(n):r.set(o,[n])});const i=[];return t.forEach(n=>{var c;const o=d(this,he).defaultQueryOptions(n),a=((c=r.get(o.queryHash))==null?void 0:c.shift())??new ct(d(this,he),o);i.push({defaultedQueryOptions:o,observer:a})}),i},Me=function(t,r){const i=d(this,G).indexOf(t);i!==-1&&(T(this,Q,d(this,Q).slice()),d(this,Q)[i]=r,D(this,L,De).call(this))},De=function(){var t;if(this.hasListeners()){const r=D(this,L,jt).call(this),i=d(this,ce),n=r?i:D(this,L,Le).call(this,D(this,L,Te).call(this,d(this,Q),d(this,je)),(t=d(this,le))==null?void 0:t.combine);(r||i!==n)&&be.batch(()=>{this.listeners.forEach(o=>{o(d(this,Q))})})}},nt);function Ts({queries:s,...t},r){const i=_e(),n=Qt(),o=Bt(),a=t.subscribed!==!1,c=u.useMemo(()=>s.map(S=>{const g=i.defaultQueryOptions(S);return g._optimisticResults=n?"isRestoring":a?"optimistic":void 0,g}),[s,i,n,a]);c.forEach(S=>{Vt(S);const g=i.getQueryCache().get(S.queryHash);Gt(S,o,g)}),Yt(o);const[p]=u.useState(()=>new Os(i,c,t)),[v,y,m]=p.getOptimisticResult(c,t.combine),N=!n&&a;u.useSyncExternalStore(u.useCallback(S=>N?p.subscribe(be.batchCalls(S)):dt,[p,N]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),u.useEffect(()=>{p.setQueries(c,t)},[c,t,p]);const f=v.some((S,g)=>Ge(c[g],S))?v.flatMap((S,g)=>{const k=c[g];if(k&&Ge(k,S)){const $=new ct(i,k);return Wt(k,$,o)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=v.find((S,g)=>{const k=c[g];return k&&Jt({result:S,errorResetBoundary:o,throwOnError:k.throwOnError,query:i.getQueryCache().get(k.queryHash),suspense:k.suspense})});if(R)throw R.error;return y(m())}function fe(s,t){const r=_e(),[i]=u.useState(()=>new Ps(r,s));u.useEffect(()=>{i.setOptions(s)},[i,s]);const n=u.useSyncExternalStore(u.useCallback(a=>i.subscribe(be.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=u.useCallback((...a)=>{i.mutate(a[0],a[1]).catch(dt)},[i]);if(n.error&&Xt(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:o,mutateAsync:n.mutate}}/**
1
+ var Be=s=>{throw TypeError(s)};var Ee=(s,t,r)=>t.has(s)||Be("Cannot "+r);var d=(s,t,r)=>(Ee(s,t,"read from private field"),r?r.call(s):t.get(s)),z=(s,t,r)=>t.has(s)?Be("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,r),T=(s,t,r,i)=>(Ee(s,t,"write to private field"),i?i.call(s,r):t.set(s,r),r),D=(s,t,r)=>(Ee(s,t,"access private method"),r);import{S as ot,s as lt,h as Ve,g as Ht,n as be,r as Kt,Q as ct,u as _e,a as Qt,b as Bt,c as u,e as Vt,d as Gt,f as Yt,i as dt,j as Ge,k as Wt,l as Jt,m as Xt,o as de,p as pe,q as Zt,t as e,B as J,v as Pe,P as es,w as ts,x as ss,y as rs,z as is,X as ut,D as ht,A as mt,C as pt,E as xt,F as ft,G as bt,H as yt,I as as,J as ns,K as os,L as ls,M as oe,N as Se,R as cs,O as gt,T as ee,U as Y,V as x,W as re,Y as H,Z as vt,_ as ds,$ as us,a0 as hs,a1 as ms,a2 as ps,a3 as xs,a4 as fs,a5 as bs,a6 as B,a7 as ys,a8 as gs,a9 as Ye,aa as vs,ab as ws,ac as js,ad as Ns,ae as ks,af as wt,ag as Ss,ah as _s,ai as Is,aj as Rs,ak as Cs,al as Es}from"./main-DlZAsDUG.js";var ie,ne,U,ae,se,xe,Oe,at,Ps=(at=class extends ot{constructor(t,r){super();z(this,se);z(this,ie);z(this,ne);z(this,U);z(this,ae);T(this,ie,t),this.setOptions(r),this.bindMethods(),D(this,se,xe).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const r=this.options;this.options=d(this,ie).defaultMutationOptions(t),lt(this.options,r)||d(this,ie).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,U),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ve(r.mutationKey)!==Ve(this.options.mutationKey)?this.reset():((i=d(this,U))==null?void 0:i.state.status)==="pending"&&d(this,U).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&d(this,U)&&(d(this,U).addObserver(this),D(this,se,xe).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,U))==null||t.removeObserver(this)}onMutationUpdate(t){D(this,se,xe).call(this),D(this,se,Oe).call(this,t)}getCurrentResult(){return d(this,ne)}reset(){var t;(t=d(this,U))==null||t.removeObserver(this),T(this,U,void 0),D(this,se,xe).call(this),D(this,se,Oe).call(this)}mutate(t,r){var i;return T(this,ae,r),(i=d(this,U))==null||i.removeObserver(this),T(this,U,d(this,ie).getMutationCache().build(d(this,ie),this.options)),d(this,U).addObserver(this),d(this,U).execute(t)}},ie=new WeakMap,ne=new WeakMap,U=new WeakMap,ae=new WeakMap,se=new WeakSet,xe=function(){var r;const t=((r=d(this,U))==null?void 0:r.state)??Ht();T(this,ne,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Oe=function(t){be.batch(()=>{var r,i,n,o,a,c,p,v;if(d(this,ae)&&this.hasListeners()){const y=d(this,ne).variables,m=d(this,ne).context,N={client:d(this,ie),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(i=(r=d(this,ae)).onSuccess)==null||i.call(r,t.data,y,m,N)}catch(f){Promise.reject(f)}try{(o=(n=d(this,ae)).onSettled)==null||o.call(n,t.data,null,y,m,N)}catch(f){Promise.reject(f)}}else if((t==null?void 0:t.type)==="error"){try{(c=(a=d(this,ae)).onError)==null||c.call(a,t.error,y,m,N)}catch(f){Promise.reject(f)}try{(v=(p=d(this,ae)).onSettled)==null||v.call(p,void 0,t.error,y,m,N)}catch(f){Promise.reject(f)}}}this.listeners.forEach(y=>{y(d(this,ne))})})},at);function We(s,t){const r=new Set(t);return s.filter(i=>!r.has(i))}var he,Q,me,le,G,ce,ge,ve,we,je,L,Te,Le,jt,Ae,Me,De,nt,Os=(nt=class extends ot{constructor(t,r,i){super();z(this,L);z(this,he);z(this,Q);z(this,me);z(this,le);z(this,G);z(this,ce);z(this,ge);z(this,ve);z(this,we);z(this,je,[]);T(this,he,t),T(this,le,i),T(this,me,[]),T(this,G,[]),T(this,Q,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&d(this,G).forEach(t=>{t.subscribe(r=>{D(this,L,Me).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,d(this,G).forEach(t=>{t.destroy()})}setQueries(t,r){T(this,me,t),T(this,le,r),be.batch(()=>{const i=d(this,G),n=D(this,L,Ae).call(this,d(this,me));n.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=n.map(m=>m.observer),a=o.map(m=>m.getCurrentResult()),c=i.length!==o.length,p=o.some((m,N)=>m!==i[N]),v=c||p,y=v?!0:a.some((m,N)=>{const f=d(this,Q)[N];return!f||!lt(m,f)});!v&&!y||(v&&(T(this,je,n),T(this,G,o)),T(this,Q,a),this.hasListeners()&&(v&&(We(i,o).forEach(m=>{m.destroy()}),We(o,i).forEach(m=>{m.subscribe(N=>{D(this,L,Me).call(this,m,N)})})),D(this,L,De).call(this)))})}getCurrentResult(){return d(this,Q)}getQueries(){return d(this,G).map(t=>t.getCurrentQuery())}getObservers(){return d(this,G)}getOptimisticResult(t,r){const i=D(this,L,Ae).call(this,t),n=i.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),o=i.map(a=>a.defaultedQueryOptions.queryHash);return[n,a=>D(this,L,Le).call(this,a??n,r,o),()=>D(this,L,Te).call(this,n,i)]}},he=new WeakMap,Q=new WeakMap,me=new WeakMap,le=new WeakMap,G=new WeakMap,ce=new WeakMap,ge=new WeakMap,ve=new WeakMap,we=new WeakMap,je=new WeakMap,L=new WeakSet,Te=function(t,r){const i=new Set;return r.map((n,o)=>{const a=t[o];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,c=>{i.has(c)||(i.add(c),r.forEach(p=>{p.observer.trackProp(c)}))})})},Le=function(t,r,i){if(r){const n=d(this,we),o=i!==void 0&&n!==void 0&&(n.length!==i.length||i.some((a,c)=>a!==n[c]));return(d(this,Q)!==d(this,ve)||o||r!==d(this,ge))&&(T(this,ge,r),T(this,ve,d(this,Q)),i!==void 0&&T(this,we,i),T(this,ce,Kt(d(this,ce),r(t)))),d(this,ce)}return t},jt=function(){var t;return!((t=d(this,le))!=null&&t.combine)||d(this,G).some((r,i)=>{var n;return r.options.suspense&&((n=d(this,Q)[i])==null?void 0:n.data)===void 0})},Ae=function(t){const r=new Map;d(this,G).forEach(n=>{const o=n.options.queryHash;if(!o)return;const a=r.get(o);a?a.push(n):r.set(o,[n])});const i=[];return t.forEach(n=>{var c;const o=d(this,he).defaultQueryOptions(n),a=((c=r.get(o.queryHash))==null?void 0:c.shift())??new ct(d(this,he),o);i.push({defaultedQueryOptions:o,observer:a})}),i},Me=function(t,r){const i=d(this,G).indexOf(t);i!==-1&&(T(this,Q,d(this,Q).slice()),d(this,Q)[i]=r,D(this,L,De).call(this))},De=function(){var t;if(this.hasListeners()){const r=D(this,L,jt).call(this),i=d(this,ce),n=r?i:D(this,L,Le).call(this,D(this,L,Te).call(this,d(this,Q),d(this,je)),(t=d(this,le))==null?void 0:t.combine);(r||i!==n)&&be.batch(()=>{this.listeners.forEach(o=>{o(d(this,Q))})})}},nt);function Ts({queries:s,...t},r){const i=_e(),n=Qt(),o=Bt(),a=t.subscribed!==!1,c=u.useMemo(()=>s.map(S=>{const g=i.defaultQueryOptions(S);return g._optimisticResults=n?"isRestoring":a?"optimistic":void 0,g}),[s,i,n,a]);c.forEach(S=>{Vt(S);const g=i.getQueryCache().get(S.queryHash);Gt(S,o,g)}),Yt(o);const[p]=u.useState(()=>new Os(i,c,t)),[v,y,m]=p.getOptimisticResult(c,t.combine),N=!n&&a;u.useSyncExternalStore(u.useCallback(S=>N?p.subscribe(be.batchCalls(S)):dt,[p,N]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),u.useEffect(()=>{p.setQueries(c,t)},[c,t,p]);const f=v.some((S,g)=>Ge(c[g],S))?v.flatMap((S,g)=>{const k=c[g];if(k&&Ge(k,S)){const $=new ct(i,k);return Wt(k,$,o)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=v.find((S,g)=>{const k=c[g];return k&&Jt({result:S,errorResetBoundary:o,throwOnError:k.throwOnError,query:i.getQueryCache().get(k.queryHash),suspense:k.suspense})});if(R)throw R.error;return y(m())}function fe(s,t){const r=_e(),[i]=u.useState(()=>new Ps(r,s));u.useEffect(()=>{i.setOptions(s)},[i,s]);const n=u.useSyncExternalStore(u.useCallback(a=>i.subscribe(be.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=u.useCallback((...a)=>{i.mutate(a[0],a[1]).catch(dt)},[i]);if(n.error&&Xt(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:o,mutateAsync:n.mutate}}/**
2
2
  * @license lucide-react v1.52.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.