Skip to content

Commit c3369fd

Browse files
committed
chore(spec,runtime): name the clone request's parsed state; alias @objectstack/lint/runtime to source in runtime tests
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pRVPsxnFxPBAQLUMh
1 parent 7e1fa8b commit c3369fd

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/runtime/vitest.config.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ export default defineConfig({
148148
replacement: path.resolve(__dirname, '../platform-objects/src/index.ts'),
149149
},
150150
{ find: '@objectstack/rest', replacement: path.resolve(__dirname, '../rest/src/index.ts') },
151+
// The clone door's target rule (`domains/new-similar-target.ts`) walks the
152+
// dependency closure with `resolvePackageClosure`, the one walk the save
153+
// door's publish gate uses; its tests judge the source, never `dist/`.
154+
{ find: /^@objectstack\/lint\/runtime$/, replacement: path.resolve(__dirname, '../lint/src/runtime.ts') },
151155
// #9457: ONE anchored rule for every `@objectstack/spec` namespace, in
152156
// place of the hand-maintained list of the twelve subpaths tests happened
153157
// to reach on the day it was written. That list had gone stale in three

‎packages/spec/api-surface/api.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
"CloneDataResponse (type)",
184184
"CloneDataResponseSchema (const)",
185185
"CloneFlowRequest (type)",
186+
"CloneFlowRequestParsed (type)",
186187
"CloneFlowRequestSchema (const)",
187188
"CloneFlowResponse (type)",
188189
"CloneFlowResponseParsed (type)",

‎packages/spec/export-origins/api.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
"CloneDataResponse": "src/api/protocol.zod.ts#CloneDataResponse (type)",
174174
"CloneDataResponseSchema": "src/api/protocol.zod.ts#CloneDataResponseSchema (const)",
175175
"CloneFlowRequest": "src/api/automation-api.zod.ts#CloneFlowRequest (type)",
176+
"CloneFlowRequestParsed": "src/api/automation-api.zod.ts#CloneFlowRequestParsed (type)",
176177
"CloneFlowRequestSchema": "src/api/automation-api.zod.ts#CloneFlowRequestSchema (const)",
177178
"CloneFlowResponse": "src/api/automation-api.zod.ts#CloneFlowResponse (type)",
178179
"CloneFlowResponseParsed": "src/api/automation-api.zod.ts#CloneFlowResponseParsed (type)",

‎packages/spec/src/api/automation-api.zod.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ export const CloneFlowRequestSchema = lazySchema(() => z.object({
698698
),
699699
}).strict());
700700
export type CloneFlowRequest = z.input<typeof CloneFlowRequestSchema>;
701+
export type CloneFlowRequestParsed = z.infer<typeof CloneFlowRequestSchema>;
701702

702703
/**
703704
* Response of the flow clone door.

0 commit comments

Comments
 (0)