rivet-design 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -1
  2. package/dist/agent-variants/WorkerExecutorService.js +7 -1
  3. package/dist/agent-variants/WorkerExecutorService.js.map +1 -1
  4. package/dist/agent-variants/WorktreeOrchestrator.d.ts +0 -1
  5. package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  6. package/dist/agent-variants/WorktreeOrchestrator.js +2 -19
  7. package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
  8. package/dist/agent-variants/contracts.d.ts +388 -388
  9. package/dist/agent-variants/directionAuthoring.d.ts +1 -1
  10. package/dist/agent-variants/directionAuthoring.d.ts.map +1 -1
  11. package/dist/agent-variants/directionAuthoring.js +9 -1
  12. package/dist/agent-variants/directionAuthoring.js.map +1 -1
  13. package/dist/agent-variants/guidancePrompt.d.ts.map +1 -1
  14. package/dist/agent-variants/guidancePrompt.js +24 -13
  15. package/dist/agent-variants/guidancePrompt.js.map +1 -1
  16. package/dist/agent-variants/variantContext.d.ts +1 -0
  17. package/dist/agent-variants/variantContext.d.ts.map +1 -1
  18. package/dist/agent-variants/variantContext.js +5 -4
  19. package/dist/agent-variants/variantContext.js.map +1 -1
  20. package/dist/agent-variants/workItemContextFiles.d.ts +17 -0
  21. package/dist/agent-variants/workItemContextFiles.d.ts.map +1 -0
  22. package/dist/agent-variants/workItemContextFiles.js +41 -0
  23. package/dist/agent-variants/workItemContextFiles.js.map +1 -0
  24. package/dist/cli/commands/contextRequest.d.ts.map +1 -1
  25. package/dist/cli/commands/contextRequest.js +4 -3
  26. package/dist/cli/commands/contextRequest.js.map +1 -1
  27. package/dist/cli/commands/guidanceUpload.d.ts +3 -0
  28. package/dist/cli/commands/guidanceUpload.d.ts.map +1 -0
  29. package/dist/cli/commands/guidanceUpload.js +39 -0
  30. package/dist/cli/commands/guidanceUpload.js.map +1 -0
  31. package/dist/cli/commands/mcpServe.js +1 -1
  32. package/dist/cli/commands/mcpServe.js.map +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +25 -9
  36. package/dist/index.js.map +1 -1
  37. package/dist/library/BrowserSessions.d.ts +24 -8
  38. package/dist/library/BrowserSessions.d.ts.map +1 -1
  39. package/dist/library/BrowserSessions.js +67 -45
  40. package/dist/library/BrowserSessions.js.map +1 -1
  41. package/dist/library/HubServer.js +1 -1
  42. package/dist/library/HubServer.js.map +1 -1
  43. package/dist/routes/account.d.ts.map +1 -1
  44. package/dist/routes/account.js +7 -2
  45. package/dist/routes/account.js.map +1 -1
  46. package/dist/routes/installRef.d.ts +3 -0
  47. package/dist/routes/installRef.d.ts.map +1 -0
  48. package/dist/routes/installRef.js +18 -0
  49. package/dist/routes/installRef.js.map +1 -0
  50. package/dist/routes/library/app.d.ts.map +1 -1
  51. package/dist/routes/library/app.js +3 -8
  52. package/dist/routes/library/app.js.map +1 -1
  53. package/dist/routes/library/browserAccess.d.ts +0 -1
  54. package/dist/routes/library/browserAccess.d.ts.map +1 -1
  55. package/dist/routes/library/browserAccess.js +27 -20
  56. package/dist/routes/library/browserAccess.js.map +1 -1
  57. package/dist/routes/library/guidance.d.ts.map +1 -1
  58. package/dist/routes/library/guidance.js +3 -2
  59. package/dist/routes/library/guidance.js.map +1 -1
  60. package/dist/routes/library/index.d.ts.map +1 -1
  61. package/dist/routes/library/index.js +2 -4
  62. package/dist/routes/library/index.js.map +1 -1
  63. package/dist/routes/library/middleware.d.ts +1 -1
  64. package/dist/routes/library/middleware.d.ts.map +1 -1
  65. package/dist/routes/library/middleware.js +15 -3
  66. package/dist/routes/library/middleware.js.map +1 -1
  67. package/dist/routes/library/schemas.d.ts +2 -2
  68. package/dist/routes/variantRequestSchema.d.ts +7 -7
  69. package/dist/server.d.ts.map +1 -1
  70. package/dist/server.js +2 -0
  71. package/dist/server.js.map +1 -1
  72. package/dist/services/AuthService.d.ts.map +1 -1
  73. package/dist/services/AuthService.js +41 -15
  74. package/dist/services/AuthService.js.map +1 -1
  75. package/dist/services/BrowserAgentClient.d.ts.map +1 -1
  76. package/dist/services/BrowserAgentClient.js +13 -3
  77. package/dist/services/BrowserAgentClient.js.map +1 -1
  78. package/dist/services/ConfigManager.d.ts +23 -3
  79. package/dist/services/ConfigManager.d.ts.map +1 -1
  80. package/dist/services/ConfigManager.js +117 -24
  81. package/dist/services/ConfigManager.js.map +1 -1
  82. package/dist/services/GatewayClient.d.ts.map +1 -1
  83. package/dist/services/GatewayClient.js +3 -2
  84. package/dist/services/GatewayClient.js.map +1 -1
  85. package/dist/services/IntegrationsClient.d.ts +4 -4
  86. package/dist/services/IntegrationsClient.d.ts.map +1 -1
  87. package/dist/services/IntegrationsClient.js +5 -11
  88. package/dist/services/IntegrationsClient.js.map +1 -1
  89. package/dist/services/ProjectRegistry.d.ts +2 -2
  90. package/dist/services/PrototypeDeployService.d.ts.map +1 -1
  91. package/dist/services/PrototypeDeployService.js +3 -2
  92. package/dist/services/PrototypeDeployService.js.map +1 -1
  93. package/dist/services/VariantRunService.d.ts +1 -1
  94. package/dist/services/VariantRunService.d.ts.map +1 -1
  95. package/dist/services/VariantRunService.js +17 -2
  96. package/dist/services/VariantRunService.js.map +1 -1
  97. package/dist/services/authUpdate.d.ts +8 -0
  98. package/dist/services/authUpdate.d.ts.map +1 -0
  99. package/dist/services/authUpdate.js +21 -0
  100. package/dist/services/authUpdate.js.map +1 -0
  101. package/dist/services/guidanceDelivery.d.ts +15 -0
  102. package/dist/services/guidanceDelivery.d.ts.map +1 -0
  103. package/dist/services/guidanceDelivery.js +112 -0
  104. package/dist/services/guidanceDelivery.js.map +1 -0
  105. package/dist/services/guidanceImages.d.ts +18 -0
  106. package/dist/services/guidanceImages.d.ts.map +1 -0
  107. package/dist/services/guidanceImages.js +74 -0
  108. package/dist/services/guidanceImages.js.map +1 -0
  109. package/dist/services/pendingLogin.d.ts +2 -0
  110. package/dist/services/pendingLogin.d.ts.map +1 -1
  111. package/dist/services/pendingLogin.js +4 -2
  112. package/dist/services/pendingLogin.js.map +1 -1
  113. package/dist/services/profiles/DesignProfiles.d.ts +67 -11
  114. package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
  115. package/dist/services/profiles/DesignProfiles.js +62 -5
  116. package/dist/services/profiles/DesignProfiles.js.map +1 -1
  117. package/dist/services/profiles/ProfileMedia.d.ts +1 -0
  118. package/dist/services/profiles/ProfileMedia.d.ts.map +1 -1
  119. package/dist/services/profiles/ProfileMedia.js +13 -11
  120. package/dist/services/profiles/ProfileMedia.js.map +1 -1
  121. package/dist/services/profiles/ProfilePlanning.d.ts +5 -5
  122. package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -1
  123. package/dist/services/profiles/ProfilePreparation.js +12 -8
  124. package/dist/services/profiles/ProfilePreparation.js.map +1 -1
  125. package/dist/services/profiles/ReferenceReader.d.ts +4 -4
  126. package/dist/services/profiles/profileContext.d.ts +1 -1
  127. package/dist/services/profiles/profileContext.d.ts.map +1 -1
  128. package/dist/services/profiles/profileContext.js +36 -4
  129. package/dist/services/profiles/profileContext.js.map +1 -1
  130. package/dist/storage/library/BrowserAuthorizationRecords.d.ts +54 -0
  131. package/dist/storage/library/BrowserAuthorizationRecords.d.ts.map +1 -0
  132. package/dist/storage/library/BrowserAuthorizationRecords.js +175 -0
  133. package/dist/storage/library/BrowserAuthorizationRecords.js.map +1 -0
  134. package/dist/storage/library/ProjectPreviewCache.d.ts +2 -2
  135. package/dist/storage/library/database.d.ts +2 -1
  136. package/dist/storage/library/database.d.ts.map +1 -1
  137. package/dist/storage/library/database.js +5 -36
  138. package/dist/storage/library/database.js.map +1 -1
  139. package/dist/storage/library/migrations.d.ts +1 -0
  140. package/dist/storage/library/migrations.d.ts.map +1 -1
  141. package/dist/storage/library/migrations.js +14 -1
  142. package/dist/storage/library/migrations.js.map +1 -1
  143. package/dist/storage/library/schema/browserAuthorization.d.ts +191 -0
  144. package/dist/storage/library/schema/browserAuthorization.d.ts.map +1 -0
  145. package/dist/storage/library/schema/browserAuthorization.js +20 -0
  146. package/dist/storage/library/schema/browserAuthorization.js.map +1 -0
  147. package/dist/storage/profiles/ProfilePlans.d.ts +19 -19
  148. package/dist/storage/profiles/ProfileRecords.d.ts +4 -4
  149. package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
  150. package/dist/storage/profiles/ProfileRecords.js +12 -3
  151. package/dist/storage/profiles/ProfileRecords.js.map +1 -1
  152. package/dist/storage/profiles/migrations.d.ts +2 -2
  153. package/dist/storage/profiles/migrations.d.ts.map +1 -1
  154. package/dist/storage/profiles/migrations.js +3 -0
  155. package/dist/storage/profiles/migrations.js.map +1 -1
  156. package/dist/storage/profiles/planSchema.d.ts +5 -5
  157. package/dist/storage/profiles/schema.d.ts +29 -3
  158. package/dist/storage/profiles/schema.d.ts.map +1 -1
  159. package/dist/storage/profiles/schema.js +1 -0
  160. package/dist/storage/profiles/schema.js.map +1 -1
  161. package/dist/types/cosmos-profile.d.ts +6 -6
  162. package/dist/types/cosmos.d.ts +20 -20
  163. package/dist/types/design-library.d.ts +3 -3
  164. package/dist/types/design-profile.d.ts +40 -40
  165. package/dist/types/design-profile.d.ts.map +1 -1
  166. package/dist/types/design-profile.js +2 -1
  167. package/dist/types/design-profile.js.map +1 -1
  168. package/dist/types/guidance.d.ts +391 -5
  169. package/dist/types/guidance.d.ts.map +1 -1
  170. package/dist/types/guidance.js +27 -1
  171. package/dist/types/guidance.js.map +1 -1
  172. package/dist/types/reference-connectors.d.ts +10 -10
  173. package/dist/types/reference-onboarding.d.ts +65 -65
  174. package/dist/types/reference-pages.d.ts +12 -12
  175. package/dist/types/variant-reference.d.ts +4 -4
  176. package/dist/utils/installRef.d.ts +8 -0
  177. package/dist/utils/installRef.d.ts.map +1 -0
  178. package/dist/utils/installRef.js +34 -0
  179. package/dist/utils/installRef.js.map +1 -0
  180. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  181. package/dist/utils/skills/cli-guidance.js +3 -3
  182. package/package.json +4 -2
  183. package/src/ui/dist/assets/LibraryEntry-B5kPF3Ey.js +36 -0
  184. package/src/ui/dist/assets/main-Er_TRZTd.js +435 -0
  185. package/src/ui/dist/index.html +1 -1
  186. package/src/ui/dist/assets/LibraryEntry-BmQyIG74.js +0 -36
  187. package/src/ui/dist/assets/main-C-Pki9j3.js +0 -435
@@ -0,0 +1,191 @@
1
+ export declare const browserAuthority: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "browser_authority";
3
+ schema: undefined;
4
+ columns: {
5
+ singleton: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: string;
7
+ tableName: "browser_authority";
8
+ dataType: "number int53";
9
+ data: number;
10
+ driverParam: number;
11
+ notNull: true;
12
+ hasDefault: true;
13
+ isPrimaryKey: true;
14
+ isAutoincrement: false;
15
+ hasRuntimeDefault: false;
16
+ enumValues: undefined;
17
+ baseColumn: never;
18
+ identity: undefined;
19
+ generated: undefined;
20
+ }, {}>;
21
+ accountId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
22
+ name: string;
23
+ tableName: "browser_authority";
24
+ dataType: "string";
25
+ data: string;
26
+ driverParam: string;
27
+ notNull: false;
28
+ hasDefault: false;
29
+ isPrimaryKey: false;
30
+ isAutoincrement: false;
31
+ hasRuntimeDefault: false;
32
+ enumValues: [string, ...string[]];
33
+ baseColumn: never;
34
+ identity: undefined;
35
+ generated: undefined;
36
+ }, {}>;
37
+ generation: import("drizzle-orm/sqlite-core").SQLiteColumn<{
38
+ name: string;
39
+ tableName: "browser_authority";
40
+ dataType: "string";
41
+ data: string;
42
+ driverParam: string;
43
+ notNull: true;
44
+ hasDefault: false;
45
+ isPrimaryKey: false;
46
+ isAutoincrement: false;
47
+ hasRuntimeDefault: false;
48
+ enumValues: [string, ...string[]];
49
+ baseColumn: never;
50
+ identity: undefined;
51
+ generated: undefined;
52
+ }, {}>;
53
+ operationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
54
+ name: string;
55
+ tableName: "browser_authority";
56
+ dataType: "string";
57
+ data: string;
58
+ driverParam: string;
59
+ notNull: false;
60
+ hasDefault: false;
61
+ isPrimaryKey: false;
62
+ isAutoincrement: false;
63
+ hasRuntimeDefault: false;
64
+ enumValues: [string, ...string[]];
65
+ baseColumn: never;
66
+ identity: undefined;
67
+ generated: undefined;
68
+ }, {}>;
69
+ phase: import("drizzle-orm/sqlite-core").SQLiteColumn<{
70
+ name: string;
71
+ tableName: "browser_authority";
72
+ dataType: "string enum";
73
+ data: "ready" | "changing";
74
+ driverParam: string;
75
+ notNull: true;
76
+ hasDefault: false;
77
+ isPrimaryKey: false;
78
+ isAutoincrement: false;
79
+ hasRuntimeDefault: false;
80
+ enumValues: ["ready", "changing"];
81
+ baseColumn: never;
82
+ identity: undefined;
83
+ generated: undefined;
84
+ }, {}>;
85
+ };
86
+ dialect: "sqlite";
87
+ }>;
88
+ export declare const browserCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
89
+ name: "browser_credentials";
90
+ schema: undefined;
91
+ columns: {
92
+ digest: import("drizzle-orm/sqlite-core").SQLiteColumn<{
93
+ name: string;
94
+ tableName: "browser_credentials";
95
+ dataType: "string";
96
+ data: string;
97
+ driverParam: string;
98
+ notNull: true;
99
+ hasDefault: false;
100
+ isPrimaryKey: true;
101
+ isAutoincrement: false;
102
+ hasRuntimeDefault: false;
103
+ enumValues: [string, ...string[]];
104
+ baseColumn: never;
105
+ identity: undefined;
106
+ generated: undefined;
107
+ }, {}>;
108
+ scope: import("drizzle-orm/sqlite-core").SQLiteColumn<{
109
+ name: string;
110
+ tableName: "browser_credentials";
111
+ dataType: "string";
112
+ data: string;
113
+ driverParam: string;
114
+ notNull: true;
115
+ hasDefault: false;
116
+ isPrimaryKey: false;
117
+ isAutoincrement: false;
118
+ hasRuntimeDefault: false;
119
+ enumValues: [string, ...string[]];
120
+ baseColumn: never;
121
+ identity: undefined;
122
+ generated: undefined;
123
+ }, {}>;
124
+ accountId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
125
+ name: string;
126
+ tableName: "browser_credentials";
127
+ dataType: "string";
128
+ data: string;
129
+ driverParam: string;
130
+ notNull: false;
131
+ hasDefault: false;
132
+ isPrimaryKey: false;
133
+ isAutoincrement: false;
134
+ hasRuntimeDefault: false;
135
+ enumValues: [string, ...string[]];
136
+ baseColumn: never;
137
+ identity: undefined;
138
+ generated: undefined;
139
+ }, {}>;
140
+ generation: import("drizzle-orm/sqlite-core").SQLiteColumn<{
141
+ name: string;
142
+ tableName: "browser_credentials";
143
+ dataType: "string";
144
+ data: string;
145
+ driverParam: string;
146
+ notNull: true;
147
+ hasDefault: false;
148
+ isPrimaryKey: false;
149
+ isAutoincrement: false;
150
+ hasRuntimeDefault: false;
151
+ enumValues: [string, ...string[]];
152
+ baseColumn: never;
153
+ identity: undefined;
154
+ generated: undefined;
155
+ }, {}>;
156
+ kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
157
+ name: string;
158
+ tableName: "browser_credentials";
159
+ dataType: "string enum";
160
+ data: "session" | "launch";
161
+ driverParam: string;
162
+ notNull: true;
163
+ hasDefault: false;
164
+ isPrimaryKey: false;
165
+ isAutoincrement: false;
166
+ hasRuntimeDefault: false;
167
+ enumValues: ["session", "launch"];
168
+ baseColumn: never;
169
+ identity: undefined;
170
+ generated: undefined;
171
+ }, {}>;
172
+ expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
173
+ name: string;
174
+ tableName: "browser_credentials";
175
+ dataType: "number int53";
176
+ data: number;
177
+ driverParam: number;
178
+ notNull: true;
179
+ hasDefault: false;
180
+ isPrimaryKey: false;
181
+ isAutoincrement: false;
182
+ hasRuntimeDefault: false;
183
+ enumValues: undefined;
184
+ baseColumn: never;
185
+ identity: undefined;
186
+ generated: undefined;
187
+ }, {}>;
188
+ };
189
+ dialect: "sqlite";
190
+ }>;
191
+ //# sourceMappingURL=browserAuthorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserAuthorization.d.ts","sourceRoot":"","sources":["../../../../src/storage/library/schema/browserAuthorization.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.browserCredentials = exports.browserAuthority = void 0;
4
+ const sqlite_core_1 = require("drizzle-orm/sqlite-core");
5
+ exports.browserAuthority = (0, sqlite_core_1.sqliteTable)('browser_authority', {
6
+ singleton: (0, sqlite_core_1.integer)().primaryKey(),
7
+ accountId: (0, sqlite_core_1.text)('account_id'),
8
+ generation: (0, sqlite_core_1.text)().notNull(),
9
+ operationId: (0, sqlite_core_1.text)('operation_id'),
10
+ phase: (0, sqlite_core_1.text)({ enum: ['ready', 'changing'] }).notNull(),
11
+ });
12
+ exports.browserCredentials = (0, sqlite_core_1.sqliteTable)('browser_credentials', {
13
+ digest: (0, sqlite_core_1.text)().primaryKey(),
14
+ scope: (0, sqlite_core_1.text)().notNull(),
15
+ accountId: (0, sqlite_core_1.text)('account_id'),
16
+ generation: (0, sqlite_core_1.text)().notNull(),
17
+ kind: (0, sqlite_core_1.text)({ enum: ['session', 'launch'] }).notNull(),
18
+ expiresAt: (0, sqlite_core_1.integer)('expires_at').notNull(),
19
+ });
20
+ //# sourceMappingURL=browserAuthorization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserAuthorization.js","sourceRoot":"","sources":["../../../../src/storage/library/schema/browserAuthorization.ts"],"names":[],"mappings":";;;AAAA,yDAAqE;AAExD,QAAA,gBAAgB,GAAG,IAAA,yBAAW,EAAC,mBAAmB,EAAE;IAC/D,SAAS,EAAE,IAAA,qBAAO,GAAE,CAAC,UAAU,EAAE;IACjC,SAAS,EAAE,IAAA,kBAAI,EAAC,YAAY,CAAC;IAC7B,UAAU,EAAE,IAAA,kBAAI,GAAE,CAAC,OAAO,EAAE;IAC5B,WAAW,EAAE,IAAA,kBAAI,EAAC,cAAc,CAAC;IACjC,KAAK,EAAE,IAAA,kBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE;CACvD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,IAAA,yBAAW,EAAC,qBAAqB,EAAE;IACnE,MAAM,EAAE,IAAA,kBAAI,GAAE,CAAC,UAAU,EAAE;IAC3B,KAAK,EAAE,IAAA,kBAAI,GAAE,CAAC,OAAO,EAAE;IACvB,SAAS,EAAE,IAAA,kBAAI,EAAC,YAAY,CAAC;IAC7B,UAAU,EAAE,IAAA,kBAAI,GAAE,CAAC,OAAO,EAAE;IAC5B,IAAI,EAAE,IAAA,kBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE;IACrD,SAAS,EAAE,IAAA,qBAAO,EAAC,YAAY,CAAC,CAAC,OAAO,EAAE;CAC3C,CAAC,CAAC"}
@@ -11,9 +11,9 @@ export declare class ProfilePlans {
11
11
  total: number;
12
12
  collections: {
13
13
  id: string;
14
+ description: string | null;
14
15
  url: string | null;
15
16
  title: string;
16
- description: string | null;
17
17
  children: string[];
18
18
  total: number | null;
19
19
  parentId: string | null;
@@ -31,9 +31,9 @@ export declare class ProfilePlans {
31
31
  total: number;
32
32
  collections: {
33
33
  id: string;
34
+ description: string | null;
34
35
  url: string | null;
35
36
  title: string;
36
- description: string | null;
37
37
  children: string[];
38
38
  total: number | null;
39
39
  parentId: string | null;
@@ -51,9 +51,9 @@ export declare class ProfilePlans {
51
51
  total: number;
52
52
  collections: {
53
53
  id: string;
54
+ description: string | null;
54
55
  url: string | null;
55
56
  title: string;
56
- description: string | null;
57
57
  children: string[];
58
58
  total: number | null;
59
59
  parentId: string | null;
@@ -68,6 +68,7 @@ export declare class ProfilePlans {
68
68
  }[];
69
69
  savePlan(input: z.input<typeof ReferencePlanInputSchema>): {
70
70
  id: string;
71
+ expiresAt: string;
71
72
  runtime: "claude" | "codex" | "cursor";
72
73
  revision: string;
73
74
  profile: {
@@ -80,9 +81,9 @@ export declare class ProfilePlans {
80
81
  discoveryId: string;
81
82
  sources: {
82
83
  references: {
84
+ title: string;
83
85
  text: string;
84
86
  provider: "arena" | "pinterest" | "x" | "cosmos";
85
- title: string;
86
87
  remoteId: string;
87
88
  media: {
88
89
  hash: string;
@@ -93,8 +94,8 @@ export declare class ProfilePlans {
93
94
  }[];
94
95
  url?: string | undefined;
95
96
  variant?: {
96
- sessionId: string;
97
97
  projectId: string;
98
+ sessionId: string;
98
99
  variantId: string;
99
100
  treeSha?: string | undefined;
100
101
  } | undefined;
@@ -105,9 +106,9 @@ export declare class ProfilePlans {
105
106
  }[];
106
107
  collection: {
107
108
  id: string;
109
+ description: string | null;
108
110
  url: string | null;
109
111
  title: string;
110
- description: string | null;
111
112
  children: string[];
112
113
  total: number | null;
113
114
  parentId: string | null;
@@ -115,12 +116,12 @@ export declare class ProfilePlans {
115
116
  collectionIds: string[];
116
117
  }[];
117
118
  reusableCount: number;
118
- expiresAt: string;
119
119
  approvedAt: string | null;
120
120
  jobIds: string[];
121
121
  };
122
122
  plan(id: string): {
123
123
  id: string;
124
+ expiresAt: string;
124
125
  runtime: "claude" | "codex" | "cursor";
125
126
  revision: string;
126
127
  profile: {
@@ -133,9 +134,9 @@ export declare class ProfilePlans {
133
134
  discoveryId: string;
134
135
  sources: {
135
136
  references: {
137
+ title: string;
136
138
  text: string;
137
139
  provider: "arena" | "pinterest" | "x" | "cosmos";
138
- title: string;
139
140
  remoteId: string;
140
141
  media: {
141
142
  hash: string;
@@ -146,8 +147,8 @@ export declare class ProfilePlans {
146
147
  }[];
147
148
  url?: string | undefined;
148
149
  variant?: {
149
- sessionId: string;
150
150
  projectId: string;
151
+ sessionId: string;
151
152
  variantId: string;
152
153
  treeSha?: string | undefined;
153
154
  } | undefined;
@@ -158,9 +159,9 @@ export declare class ProfilePlans {
158
159
  }[];
159
160
  collection: {
160
161
  id: string;
162
+ description: string | null;
161
163
  url: string | null;
162
164
  title: string;
163
- description: string | null;
164
165
  children: string[];
165
166
  total: number | null;
166
167
  parentId: string | null;
@@ -168,12 +169,12 @@ export declare class ProfilePlans {
168
169
  collectionIds: string[];
169
170
  }[];
170
171
  reusableCount: number;
171
- expiresAt: string;
172
172
  approvedAt: string | null;
173
173
  jobIds: string[];
174
174
  };
175
175
  plans(): {
176
176
  id: string;
177
+ expiresAt: string;
177
178
  runtime: "claude" | "codex" | "cursor";
178
179
  revision: string;
179
180
  profile: {
@@ -186,9 +187,9 @@ export declare class ProfilePlans {
186
187
  discoveryId: string;
187
188
  sources: {
188
189
  references: {
190
+ title: string;
189
191
  text: string;
190
192
  provider: "arena" | "pinterest" | "x" | "cosmos";
191
- title: string;
192
193
  remoteId: string;
193
194
  media: {
194
195
  hash: string;
@@ -199,8 +200,8 @@ export declare class ProfilePlans {
199
200
  }[];
200
201
  url?: string | undefined;
201
202
  variant?: {
202
- sessionId: string;
203
203
  projectId: string;
204
+ sessionId: string;
204
205
  variantId: string;
205
206
  treeSha?: string | undefined;
206
207
  } | undefined;
@@ -211,9 +212,9 @@ export declare class ProfilePlans {
211
212
  }[];
212
213
  collection: {
213
214
  id: string;
215
+ description: string | null;
214
216
  url: string | null;
215
217
  title: string;
216
- description: string | null;
217
218
  children: string[];
218
219
  total: number | null;
219
220
  parentId: string | null;
@@ -221,7 +222,6 @@ export declare class ProfilePlans {
221
222
  collectionIds: string[];
222
223
  }[];
223
224
  reusableCount: number;
224
- expiresAt: string;
225
225
  approvedAt: string | null;
226
226
  jobIds: string[];
227
227
  }[];
@@ -236,6 +236,7 @@ export declare class ProfilePlans {
236
236
  }>;
237
237
  }): {
238
238
  id: string;
239
+ expiresAt: string;
239
240
  runtime: "claude" | "codex" | "cursor";
240
241
  revision: string;
241
242
  profile: {
@@ -248,9 +249,9 @@ export declare class ProfilePlans {
248
249
  discoveryId: string;
249
250
  sources: {
250
251
  references: {
252
+ title: string;
251
253
  text: string;
252
254
  provider: "arena" | "pinterest" | "x" | "cosmos";
253
- title: string;
254
255
  remoteId: string;
255
256
  media: {
256
257
  hash: string;
@@ -261,8 +262,8 @@ export declare class ProfilePlans {
261
262
  }[];
262
263
  url?: string | undefined;
263
264
  variant?: {
264
- sessionId: string;
265
265
  projectId: string;
266
+ sessionId: string;
266
267
  variantId: string;
267
268
  treeSha?: string | undefined;
268
269
  } | undefined;
@@ -273,9 +274,9 @@ export declare class ProfilePlans {
273
274
  }[];
274
275
  collection: {
275
276
  id: string;
277
+ description: string | null;
276
278
  url: string | null;
277
279
  title: string;
278
- description: string | null;
279
280
  children: string[];
280
281
  total: number | null;
281
282
  parentId: string | null;
@@ -283,7 +284,6 @@ export declare class ProfilePlans {
283
284
  collectionIds: string[];
284
285
  }[];
285
286
  reusableCount: number;
286
- expiresAt: string;
287
287
  approvedAt: string | null;
288
288
  jobIds: string[];
289
289
  };
@@ -209,6 +209,7 @@ export declare class ProfileRecords {
209
209
  isApproved: boolean;
210
210
  }): {
211
211
  id: string;
212
+ expiresAt: string;
212
213
  runtime: "claude" | "codex" | "cursor";
213
214
  revision: string;
214
215
  profile: {
@@ -221,9 +222,9 @@ export declare class ProfileRecords {
221
222
  discoveryId: string;
222
223
  sources: {
223
224
  references: {
225
+ title: string;
224
226
  text: string;
225
227
  provider: "arena" | "pinterest" | "x" | "cosmos";
226
- title: string;
227
228
  remoteId: string;
228
229
  media: {
229
230
  hash: string;
@@ -234,8 +235,8 @@ export declare class ProfileRecords {
234
235
  }[];
235
236
  url?: string | undefined;
236
237
  variant?: {
237
- sessionId: string;
238
238
  projectId: string;
239
+ sessionId: string;
239
240
  variantId: string;
240
241
  treeSha?: string | undefined;
241
242
  } | undefined;
@@ -246,9 +247,9 @@ export declare class ProfileRecords {
246
247
  }[];
247
248
  collection: {
248
249
  id: string;
250
+ description: string | null;
249
251
  url: string | null;
250
252
  title: string;
251
- description: string | null;
252
253
  children: string[];
253
254
  total: number | null;
254
255
  parentId: string | null;
@@ -256,7 +257,6 @@ export declare class ProfileRecords {
256
257
  collectionIds: string[];
257
258
  }[];
258
259
  reusableCount: number;
259
- expiresAt: string;
260
260
  approvedAt: string | null;
261
261
  jobIds: string[];
262
262
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileRecords.d.ts","sourceRoot":"","sources":["../../../src/storage/profiles/ProfileRecords.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAuB9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAqBzE,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAGpC,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EA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CAAC;QACX,KAAK,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;QACpD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,GAAG,IAAI;IAsBR,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM;;;;;;;;;IA6BvB,WAAW,CAAC,KAAK,EAAE;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,UAAU,GAAG,UAAU,CAAC;QAC/B,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI;IA6BR,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAYvE,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAIvC,WAAW,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8DxE,OAAO,CAAC,eAAe;IA0IvB,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,KAAK;IAkBb,OAAO,CAAC,cAAc;CAwFvB"}
@@ -68,7 +68,10 @@ class ProfileRecords {
68
68
  .from(schema_1.guidance)
69
69
  .orderBy(schema_1.guidance.id)
70
70
  .all()
71
- .map((document) => guidance_1.SavedGuidanceSchema.parse(document));
71
+ .map(({ attachments, ...document }) => guidance_1.SavedGuidanceSchema.parse({
72
+ ...document,
73
+ ...(attachments ? { attachments } : {}),
74
+ }));
72
75
  }
73
76
  getGuidance(id) {
74
77
  const document = this.db
@@ -78,7 +81,10 @@ class ProfileRecords {
78
81
  .get();
79
82
  if (!document)
80
83
  throw new guidance_1.GuidanceError('guidance_not_found', 'Unknown saved guidance');
81
- return guidance_1.SavedGuidanceSchema.parse(document);
84
+ return guidance_1.SavedGuidanceSchema.parse({
85
+ ...document,
86
+ attachments: document.attachments ?? undefined,
87
+ });
82
88
  }
83
89
  addGuidance(input) {
84
90
  const document = { ...guidance_1.GuidanceInputSchema.parse(input), id: (0, crypto_1.randomUUID)() };
@@ -110,7 +116,10 @@ class ProfileRecords {
110
116
  throw new guidance_1.GuidanceError('guidance_not_found', 'Unknown saved guidance exclusion');
111
117
  const selected = documents
112
118
  .filter((document) => document.isEnabled && !selection.excludedIds.includes(document.id))
113
- .map(({ id, title, markdown }) => ({ id, title, markdown }));
119
+ .map(({ isEnabled: _isEnabled, attachments, ...document }) => ({
120
+ ...document,
121
+ ...(attachments?.length ? { attachments } : {}),
122
+ }));
114
123
  return selected;
115
124
  }
116
125
  sources() {