@domain-first/project-structure 8.10.0 → 8.11.0
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 +17 -7
- package/dist/115.js +142 -141
- package/dist/201.js +10 -1
- package/dist/287.js +983 -434
- package/dist/364.js +79 -0
- package/dist/38.js +29 -13
- package/dist/561.js +167 -93
- package/dist/agent-cli.d.ts +13 -2
- package/dist/agent-requests.d.ts +76 -2
- package/dist/config-file.d.ts +25 -1
- package/dist/frontend-cli.d.ts +3 -0
- package/dist/frontend-modules.d.ts +9 -0
- package/dist/graph.cjs +10 -1
- package/dist/index.cjs +3470 -2913
- package/dist/init.cjs +325 -83
- package/dist/integration.cjs +3470 -2913
- package/dist/integrations/openapi.d.ts +9 -2
- package/dist/integrations/orval.d.ts +31 -4
- package/dist/integrations/rest-endpoint-generator.d.ts +11 -7
- package/dist/integrations/storybook.d.ts +19 -1
- package/dist/lint.cjs +40 -15
- package/dist/lint.js +1 -1
- package/dist/page-router.d.ts +18 -0
- package/dist/react-module-move.d.ts +27 -12
- package/dist/react.cjs +1577 -993
- package/dist/react.js +2 -102
- package/dist/rest-adapters.d.ts +13 -0
- package/dist/svelte-agent-cli.spec.d.ts +1 -0
- package/dist/svelte.cjs +7311 -0
- package/dist/svelte.d.ts +2 -0
- package/dist/svelte.js +3 -0
- package/dist/sveltekit-app.d.ts +7 -0
- package/dist/upgrade-steps.d.ts +6 -1
- package/dist/upgrade.cjs +12 -2
- package/dist/use-cases/add-integration.d.ts +1 -1
- package/dist/use-cases/delete-react-module.d.ts +4 -4
- package/dist/use-cases/index.d.ts +1 -0
- package/dist/use-cases/move-react-module.d.ts +2 -2
- package/dist/use-cases/rest-endpoint-generator.d.ts +6 -4
- package/dist/use-cases/scaffold-svelte-modules.d.ts +22 -0
- package/package.json +2 -1
- package/skills/df-ps-implement/SKILL.md +3 -3
- package/skills/df-ps-plan-feature/SKILL.md +2 -2
- package/skills/df-ps-scaffold/SKILL.md +11 -10
- package/skills/df-ps-scaffold/references/agent-mode.md +1 -1
- package/skills/df-ps-scaffold/references/agent-operations.md +8 -4
- package/skills/df-ps-scaffold/references/generators.md +1 -1
- package/skills/df-ps-scaffold/references/work-plan.md +1 -1
- package/skills/df-ps-svelte/SKILL.md +49 -0
- package/skills/df-ps-svelte/references/generators.md +56 -0
package/dist/agent-requests.d.ts
CHANGED
|
@@ -204,8 +204,80 @@ export declare const reactRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
204
204
|
name: z.ZodString;
|
|
205
205
|
widgetType: z.ZodOptional<z.ZodEnum<{
|
|
206
206
|
monolithic: "monolithic";
|
|
207
|
+
headless: "headless";
|
|
207
208
|
separated: "separated";
|
|
209
|
+
}>>;
|
|
210
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
operation: z.ZodLiteral<"ui-kit-component">;
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
218
|
+
operation: z.ZodLiteral<"shared-hook">;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
223
|
+
operation: z.ZodLiteral<"move-page">;
|
|
224
|
+
module: z.ZodString;
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
moveRoute: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
230
|
+
operation: z.ZodLiteral<"delete-page">;
|
|
231
|
+
module: z.ZodString;
|
|
232
|
+
deleteRoute: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
operation: z.ZodLiteral<"delete-widget">;
|
|
237
|
+
module: z.ZodString;
|
|
238
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
241
|
+
operation: z.ZodLiteral<"move-ui-kit-component">;
|
|
242
|
+
module: z.ZodString;
|
|
243
|
+
name: z.ZodString;
|
|
244
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
|
+
operation: z.ZodLiteral<"move-shared-hook">;
|
|
248
|
+
module: z.ZodString;
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
operation: z.ZodLiteral<"delete-ui-kit-component">;
|
|
254
|
+
module: z.ZodString;
|
|
255
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
258
|
+
operation: z.ZodLiteral<"delete-shared-hook">;
|
|
259
|
+
module: z.ZodString;
|
|
260
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
operation: z.ZodLiteral<"move-widget">;
|
|
264
|
+
module: z.ZodString;
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
}, z.core.$strict>], "operation">;
|
|
269
|
+
export declare const svelteRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
operation: z.ZodLiteral<"page">;
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
operation: z.ZodLiteral<"widget">;
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
widgetType: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
monolithic: "monolithic";
|
|
208
279
|
headless: "headless";
|
|
280
|
+
separated: "separated";
|
|
209
281
|
}>>;
|
|
210
282
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
211
283
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -281,6 +353,7 @@ export declare const integrationRequestSchema: z.ZodObject<{
|
|
|
281
353
|
playwright: "playwright";
|
|
282
354
|
}>>;
|
|
283
355
|
nextAdapter: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
svelteAdapter: z.ZodOptional<z.ZodBoolean>;
|
|
284
357
|
configureReact: z.ZodOptional<z.ZodBoolean>;
|
|
285
358
|
replaceTestingLibrary: z.ZodOptional<z.ZodBoolean>;
|
|
286
359
|
integrationTestTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -302,7 +375,7 @@ export declare const integrationRequestSchema: z.ZodObject<{
|
|
|
302
375
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
303
376
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
304
377
|
}, z.core.$strict>;
|
|
305
|
-
export type AgentCommand = 'df-scaffold' | 'df-react' | 'df-integration';
|
|
378
|
+
export type AgentCommand = 'df-scaffold' | 'df-react' | 'df-svelte' | 'df-integration';
|
|
306
379
|
export declare const requestSchemaFor: (command: AgentCommand) => z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
307
380
|
operation: z.ZodLiteral<"bounded-context">;
|
|
308
381
|
name: z.ZodString;
|
|
@@ -507,8 +580,8 @@ export declare const requestSchemaFor: (command: AgentCommand) => z.ZodDiscrimin
|
|
|
507
580
|
name: z.ZodString;
|
|
508
581
|
widgetType: z.ZodOptional<z.ZodEnum<{
|
|
509
582
|
monolithic: "monolithic";
|
|
510
|
-
separated: "separated";
|
|
511
583
|
headless: "headless";
|
|
584
|
+
separated: "separated";
|
|
512
585
|
}>>;
|
|
513
586
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
514
587
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -583,6 +656,7 @@ export declare const requestSchemaFor: (command: AgentCommand) => z.ZodDiscrimin
|
|
|
583
656
|
playwright: "playwright";
|
|
584
657
|
}>>;
|
|
585
658
|
nextAdapter: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
svelteAdapter: z.ZodOptional<z.ZodBoolean>;
|
|
586
660
|
configureReact: z.ZodOptional<z.ZodBoolean>;
|
|
587
661
|
replaceTestingLibrary: z.ZodOptional<z.ZodBoolean>;
|
|
588
662
|
integrationTestTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/dist/config-file.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import z from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* `df-lint` checks that `backend.rules.lint` can turn off.
|
|
4
4
|
*/
|
|
5
|
-
export declare const lintChecks: readonly ["context-isolation", "shared-kernel", "layers", "dependencies", "react", "clock", "config"];
|
|
5
|
+
export declare const lintChecks: readonly ["context-isolation", "shared-kernel", "layers", "dependencies", "react", "svelte", "clock", "config"];
|
|
6
6
|
export type LintCheck = (typeof lintChecks)[number];
|
|
7
7
|
export declare const configFileName = "domain-first.project-structure.config.json";
|
|
8
8
|
export declare const projectConfigSchema: z.ZodObject<{
|
|
@@ -60,6 +60,7 @@ export declare const rulesSchema: z.ZodObject<{
|
|
|
60
60
|
layers: "layers";
|
|
61
61
|
dependencies: "dependencies";
|
|
62
62
|
react: "react";
|
|
63
|
+
svelte: "svelte";
|
|
63
64
|
clock: "clock";
|
|
64
65
|
config: "config";
|
|
65
66
|
}> & z.core.$partial, z.ZodBoolean>>;
|
|
@@ -158,6 +159,7 @@ export declare const backendConfigSchema: z.ZodObject<{
|
|
|
158
159
|
layers: "layers";
|
|
159
160
|
dependencies: "dependencies";
|
|
160
161
|
react: "react";
|
|
162
|
+
svelte: "svelte";
|
|
161
163
|
clock: "clock";
|
|
162
164
|
config: "config";
|
|
163
165
|
}> & z.core.$partial, z.ZodBoolean>>;
|
|
@@ -170,6 +172,13 @@ export declare const reactConfigSchema: z.ZodObject<{
|
|
|
170
172
|
}>>;
|
|
171
173
|
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
172
174
|
}, z.core.$loose>;
|
|
175
|
+
export declare const svelteConfigSchema: z.ZodObject<{
|
|
176
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
svelte: "svelte";
|
|
178
|
+
sveltekit: "sveltekit";
|
|
179
|
+
}>>;
|
|
180
|
+
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$loose>;
|
|
173
182
|
export declare const frontendConfigSchema: z.ZodObject<{
|
|
174
183
|
react: z.ZodOptional<z.ZodObject<{
|
|
175
184
|
framework: z.ZodOptional<z.ZodEnum<{
|
|
@@ -178,6 +187,13 @@ export declare const frontendConfigSchema: z.ZodObject<{
|
|
|
178
187
|
}>>;
|
|
179
188
|
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
180
189
|
}, z.core.$loose>>;
|
|
190
|
+
svelte: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
192
|
+
svelte: "svelte";
|
|
193
|
+
sveltekit: "sveltekit";
|
|
194
|
+
}>>;
|
|
195
|
+
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$loose>>;
|
|
181
197
|
}, z.core.$loose>;
|
|
182
198
|
export declare const configSchema: z.ZodObject<{
|
|
183
199
|
project: z.ZodObject<{
|
|
@@ -267,6 +283,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
267
283
|
layers: "layers";
|
|
268
284
|
dependencies: "dependencies";
|
|
269
285
|
react: "react";
|
|
286
|
+
svelte: "svelte";
|
|
270
287
|
clock: "clock";
|
|
271
288
|
config: "config";
|
|
272
289
|
}> & z.core.$partial, z.ZodBoolean>>;
|
|
@@ -280,6 +297,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
280
297
|
}>>;
|
|
281
298
|
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
282
299
|
}, z.core.$loose>>;
|
|
300
|
+
svelte: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
svelte: "svelte";
|
|
303
|
+
sveltekit: "sveltekit";
|
|
304
|
+
}>>;
|
|
305
|
+
storybookFramework: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$loose>>;
|
|
283
307
|
}, z.core.$loose>>;
|
|
284
308
|
}, z.core.$loose>;
|
|
285
309
|
export type ProjectConfig = z.infer<typeof configSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Folder } from './file-system';
|
|
2
|
+
import type { FrontendFramework } from './react-module-move';
|
|
3
|
+
/**
|
|
4
|
+
* Operations on frontend modules by their agent operation name; menus and
|
|
5
|
+
* `--request` run the same ones.
|
|
6
|
+
*/
|
|
7
|
+
export declare const frontendOperations: (folder: Folder, framework: FrontendFramework) => Record<string, () => Promise<unknown>>;
|
|
8
|
+
/** Menu items of df-react and df-svelte → agent operations. */
|
|
9
|
+
export declare const frontendMenu: [string, string][];
|
package/dist/graph.cjs
CHANGED
|
@@ -223,6 +223,7 @@ const lintChecks = [
|
|
|
223
223
|
'layers',
|
|
224
224
|
'dependencies',
|
|
225
225
|
'react',
|
|
226
|
+
'svelte',
|
|
226
227
|
'clock',
|
|
227
228
|
'config'
|
|
228
229
|
];
|
|
@@ -267,8 +268,16 @@ const reactConfigSchema = external_zod_default().object({
|
|
|
267
268
|
]).optional(),
|
|
268
269
|
storybookFramework: external_zod_default().string().optional()
|
|
269
270
|
}).passthrough();
|
|
271
|
+
const svelteConfigSchema = external_zod_default().object({
|
|
272
|
+
framework: external_zod_default()["enum"]([
|
|
273
|
+
'svelte',
|
|
274
|
+
'sveltekit'
|
|
275
|
+
]).optional(),
|
|
276
|
+
storybookFramework: external_zod_default().string().optional()
|
|
277
|
+
}).passthrough();
|
|
270
278
|
const frontendConfigSchema = external_zod_default().object({
|
|
271
|
-
react: reactConfigSchema.optional()
|
|
279
|
+
react: reactConfigSchema.optional(),
|
|
280
|
+
svelte: svelteConfigSchema.optional()
|
|
272
281
|
}).passthrough();
|
|
273
282
|
const configSchema = external_zod_default().object({
|
|
274
283
|
project: projectConfigSchema,
|