-
Not sure what you need? Let's figure it out together.
-
Tell us what's going on and we'll give you an honest recommendation and an upfront price.
-
+
+
+
+ Not sure what you need? Let's figure it out together.
+
+
+
+
+ Tell us what's going on and we'll give you an honest recommendation and an
+ upfront price.
+
+
+
+
+
diff --git a/examples/wp-vs-tanstack/wordpress/seed/custom.css b/examples/wp-vs-tanstack/wordpress/seed/custom.css
index eedcbff3..31f8abac 100644
--- a/examples/wp-vs-tanstack/wordpress/seed/custom.css
+++ b/examples/wp-vs-tanstack/wordpress/seed/custom.css
@@ -15,11 +15,17 @@ button,
input,
textarea,
select {
- font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
+ font-family:
+ 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
color: #475569;
}
-h1, h2, h3, h4, h5, h6,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
.wp-block-heading,
.ast-site-title,
.site-title,
diff --git a/kody/headless-api/scripts/local-smoke.mts b/kody/headless-api/scripts/local-smoke.mts
index 752f84a7..27e684af 100644
--- a/kody/headless-api/scripts/local-smoke.mts
+++ b/kody/headless-api/scripts/local-smoke.mts
@@ -19,7 +19,9 @@ import {
const ops = 'http://localhost/api/cms/v1/ops'
let failures = 0
function check(label: string, ok: boolean, detail?: unknown) {
- console.log(`${ok ? '✅' : '❌'} ${label}${detail !== undefined && !ok ? ` — ${JSON.stringify(detail)}` : ''}`)
+ console.log(
+ `${ok ? '✅' : '❌'} ${label}${detail !== undefined && !ok ? ` — ${JSON.stringify(detail)}` : ''}`,
+ )
if (!ok) failures++
}
@@ -53,26 +55,38 @@ check('viewer write denied (403)', viewerRes.status === 403, viewerRes.status)
// 3. Governance: the editor write is staged, invisible before approval.
const pending = await listPending()
-check('write is staged in governance (>=1 pending)', pending.length >= 1, pending.length)
+check(
+ 'write is staged in governance (>=1 pending)',
+ pending.length >= 1,
+ pending.length,
+)
const beforeApprove =
- (await getAs(systemContext('smoke'), {
- collection: 'contentItem',
- id: 'item-smoke',
- staged: false,
- populate: false,
- }))?.doc ?? null
+ (
+ await getAs(systemContext('smoke'), {
+ collection: 'contentItem',
+ id: 'item-smoke',
+ staged: false,
+ populate: false,
+ })
+ )?.doc ?? null
check('staged doc invisible before approval', beforeApprove === null)
// 4. Approve, then the doc is readable from Postgres.
for (const p of pending) await approve(p.id)
const committed =
- (await getAs(systemContext('smoke'), {
- collection: 'contentItem',
- id: 'item-smoke',
- staged: false,
- populate: false,
- }))?.doc ?? null
-check('doc readable after approval', committed?.title === 'Smoke Item', committed)
+ (
+ await getAs(systemContext('smoke'), {
+ collection: 'contentItem',
+ id: 'item-smoke',
+ staged: false,
+ populate: false,
+ })
+ )?.doc ?? null
+check(
+ 'doc readable after approval',
+ committed?.title === 'Smoke Item',
+ committed,
+)
// 5. The two Kody jobs run without throwing (they resolve storage internally).
try {
diff --git a/kody/headless-api/src/cms.config.ts b/kody/headless-api/src/cms.config.ts
index a79b2953..fe8024ef 100644
--- a/kody/headless-api/src/cms.config.ts
+++ b/kody/headless-api/src/cms.config.ts
@@ -24,7 +24,9 @@ export function registerHeadlessCms() {
auth,
// `connectionString` accepts a resolver, so the secret stays out of the
// build and is read at connect time (store-postgres types.ts:85).
- storage: createPostgresStorage({ connectionString: () => getDatabaseUrl() }),
+ storage: createPostgresStorage({
+ connectionString: () => getDatabaseUrl(),
+ }),
})
}
diff --git a/onboarding/apps/demo/src/styles.css b/onboarding/apps/demo/src/styles.css
index 7e8c9331..fa163405 100644
--- a/onboarding/apps/demo/src/styles.css
+++ b/onboarding/apps/demo/src/styles.css
@@ -152,7 +152,9 @@ button {
}
.mode.on,
-button:not(.secondary):not(.onboarding-secondary):not(.team):not(.mode):not(.chip):not(.poster-card) {
+button:not(.secondary):not(.onboarding-secondary):not(.team):not(.mode):not(
+ .chip
+ ):not(.poster-card) {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-ink);
diff --git a/onboarding/apps/demo/tests/demo.test.ts b/onboarding/apps/demo/tests/demo.test.ts
index 3abde163..1305a93a 100644
--- a/onboarding/apps/demo/tests/demo.test.ts
+++ b/onboarding/apps/demo/tests/demo.test.ts
@@ -1,5 +1,8 @@
import { describe, expect, it } from 'vitest'
-import { createOnboardingMachine, listNamespaces } from '@tanstack/onboarding-core'
+import {
+ createOnboardingMachine,
+ listNamespaces,
+} from '@tanstack/onboarding-core'
import {
ONBOARDING_SYSTEM_TOOLS,
buildOnboardingSystemPrompt,
@@ -20,7 +23,6 @@ describe('onboarding-demo flows', () => {
it('supports namespaced validate on a merged flow', async () => {
const machine = createOnboardingMachine(mergedDemo, {
-
controls: [teamPickerControl],
tools: [setInterestsTool],
submits: { 'demo.createAccount': async () => {} },
@@ -42,7 +44,6 @@ describe('onboarding-demo flows', () => {
expect(prompt).toContain('sports interests')
const machine = createOnboardingMachine(productSetup, {
-
onComplete: async () => {},
controls: [teamPickerControl],
tools: [setInterestsTool],
diff --git a/onboarding/apps/demo/tests/entertainment.test.ts b/onboarding/apps/demo/tests/entertainment.test.ts
index 1fd831d9..b92ad80f 100644
--- a/onboarding/apps/demo/tests/entertainment.test.ts
+++ b/onboarding/apps/demo/tests/entertainment.test.ts
@@ -112,7 +112,6 @@ function createEntertainmentMachine(
) {
const search = options.search ?? createMockSearch()
return createOnboardingMachine(entertainmentDemo, {
-
controls: [genrePickerControl, titlePickerControl],
tools: [
createSearchTitlesTool(search),
diff --git a/onboarding/apps/demo/tests/tanstack-ai.test.ts b/onboarding/apps/demo/tests/tanstack-ai.test.ts
index 2b638f11..238e4829 100644
--- a/onboarding/apps/demo/tests/tanstack-ai.test.ts
+++ b/onboarding/apps/demo/tests/tanstack-ai.test.ts
@@ -253,9 +253,20 @@ describe('TanStack AI onboarding binding (demo reference example)', () => {
])
const second = seen[1]!.messages
- expect(second.map((m) => m.role)).toEqual(['user', 'assistant', 'tool', 'tool'])
- expect(second[1]!.toolCalls?.map((c) => c.id)).toEqual(['toolu_a', 'toolu_b'])
- expect(second.slice(2).map((m) => m.toolCallId)).toEqual(['toolu_a', 'toolu_b'])
+ expect(second.map((m) => m.role)).toEqual([
+ 'user',
+ 'assistant',
+ 'tool',
+ 'tool',
+ ])
+ expect(second[1]!.toolCalls?.map((c) => c.id)).toEqual([
+ 'toolu_a',
+ 'toolu_b',
+ ])
+ expect(second.slice(2).map((m) => m.toolCallId)).toEqual([
+ 'toolu_a',
+ 'toolu_b',
+ ])
expect(JSON.stringify(seen[1]!.systemPrompts)).toContain('basketball')
})
@@ -294,7 +305,11 @@ describe('TanStack AI onboarding binding (demo reference example)', () => {
const chunks = [
{ type: 'TEXT_MESSAGE_CONTENT', delta: 'Saving.' },
{ type: 'TOOL_CALL_START', toolCallId: 'a', toolName: 'set_field' },
- { type: 'TOOL_CALL_ARGS', toolCallId: 'a', delta: '{"path":"interests",' },
+ {
+ type: 'TOOL_CALL_ARGS',
+ toolCallId: 'a',
+ delta: '{"path":"interests",',
+ },
{ type: 'TOOL_CALL_ARGS', toolCallId: 'a', delta: '"value":["hiking"]}' },
{ type: 'TOOL_CALL_END', toolCallId: 'a' },
{ type: 'TOOL_CALL_START', toolCallId: 'b', toolCallName: 'validate' },
@@ -308,7 +323,10 @@ describe('TanStack AI onboarding binding (demo reference example)', () => {
const ai = {
maxIterations: (n: number) => ({ max: n }),
toolDefinition: (config: { name: string; description: string }) => ({
- server: (execute: (input: unknown) => unknown) => ({ ...config, execute }),
+ server: (execute: (input: unknown) => unknown) => ({
+ ...config,
+ execute,
+ }),
}),
chat: () =>
(async function* () {
@@ -392,6 +410,8 @@ describe('TanStack AI onboarding binding (demo reference example)', () => {
expect(turn.message).toContain('hiking')
expect(machine.state.values.interests).toEqual(['hiking'])
- expect(turn.toolResults.some((r) => r.name === 'set_field' && r.ok)).toBe(true)
+ expect(turn.toolResults.some((r) => r.name === 'set_field' && r.ok)).toBe(
+ true,
+ )
})
})
diff --git a/onboarding/packages/ai/src/tools.ts b/onboarding/packages/ai/src/tools.ts
index 2e82ca16..ae3f91a5 100644
--- a/onboarding/packages/ai/src/tools.ts
+++ b/onboarding/packages/ai/src/tools.ts
@@ -273,7 +273,10 @@ export async function executeSystemTool(
ok: false,
result: {
error: `set_field: value for "${path}" is invalid — not written.`,
- issues: issues.map((i) => ({ path: i.path, message: i.message })),
+ issues: issues.map((i) => ({
+ path: i.path,
+ message: i.message,
+ })),
},
}
}
diff --git a/onboarding/packages/ai/src/turn.ts b/onboarding/packages/ai/src/turn.ts
index f898b6da..53a5497a 100644
--- a/onboarding/packages/ai/src/turn.ts
+++ b/onboarding/packages/ai/src/turn.ts
@@ -3,7 +3,11 @@ import {
assembleOnboardingMessages,
assembleOnboardingSystemPrompt,
} from './assembly'
-import { executeToolCall, resolveAllowedTools, resolveToolApproval } from './tools'
+import {
+ executeToolCall,
+ resolveAllowedTools,
+ resolveToolApproval,
+} from './tools'
import type { ToolApprovalRequest, ToolCall, ToolResult } from './tools'
export type ChatMessage = {
diff --git a/onboarding/packages/ai/tests/ai.test.ts b/onboarding/packages/ai/tests/ai.test.ts
index c271e0b9..39f7a32d 100644
--- a/onboarding/packages/ai/tests/ai.test.ts
+++ b/onboarding/packages/ai/tests/ai.test.ts
@@ -58,7 +58,6 @@ describe('onboarding-ai', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
onComplete: async () => {},
tools: [
{
@@ -119,7 +118,6 @@ describe('onboarding-ai', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
tools: [
{
name: 'set_interests',
@@ -179,7 +177,6 @@ describe('onboarding-ai', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
controls: [{ id: 'sports.teamPicker' }],
})
@@ -306,7 +303,9 @@ describe('onboarding-ai', () => {
}),
],
})
- const machine = createOnboardingMachine(flow, { onComplete: async () => {} })
+ const machine = createOnboardingMachine(flow, {
+ onComplete: async () => {},
+ })
const approvals: Array
= []
// Provider asks to complete the flow; complete_flow is gated this turn.
diff --git a/onboarding/packages/core/src/define.ts b/onboarding/packages/core/src/define.ts
index 28220be6..c098297e 100644
--- a/onboarding/packages/core/src/define.ts
+++ b/onboarding/packages/core/src/define.ts
@@ -187,9 +187,7 @@ export function writableFieldPaths(flow: OnboardingFlowDef): Set {
}
// Conversation-embedded controls contribute their value path (F6.6).
for (const ref of step.controls ?? []) {
- paths.add(
- typeof ref === 'string' ? ref : (ref.path ?? ref.control),
- )
+ paths.add(typeof ref === 'string' ? ref : (ref.path ?? ref.control))
}
}
}
diff --git a/onboarding/packages/core/src/machine.ts b/onboarding/packages/core/src/machine.ts
index 6d6a747b..c820a3b0 100644
--- a/onboarding/packages/core/src/machine.ts
+++ b/onboarding/packages/core/src/machine.ts
@@ -316,7 +316,10 @@ export function createOnboardingMachine<
// the step id and the missing registration — the guaranteed floor where
// TypeScript can't express it.
const submitNames = options.submits ?? {}
- const knownToolNames = new Set([...SYSTEM_TOOL_NAMES, ...tools.keys()])
+ const knownToolNames = new Set([
+ ...SYSTEM_TOOL_NAMES,
+ ...tools.keys(),
+ ])
for (const step of flow.steps) {
if (step.type === 'form' && step.submit && !(step.submit in submitNames)) {
throw new Error(
@@ -600,9 +603,7 @@ export function createOnboardingMachine<
return { ok: true, issues: [] }
} catch (error) {
const message =
- error instanceof Error
- ? error.message
- : 'Could not complete onboarding'
+ error instanceof Error ? error.message : 'Could not complete onboarding'
publish({ status: 'error', error: message })
return { ok: false, issues: [{ path: '', message }] }
}
@@ -666,7 +667,9 @@ export function createOnboardingMachine<
if (!submit.ok) {
return {
ok: false,
- issues: [{ path: step.id, message: submit.message ?? 'Submit failed' }],
+ issues: [
+ { path: step.id, message: submit.message ?? 'Submit failed' },
+ ],
}
}
const target = nextVisibleStep(step.id, activeSteps())
diff --git a/onboarding/packages/core/tests/core.test.ts b/onboarding/packages/core/tests/core.test.ts
index 811e3b28..dc867801 100644
--- a/onboarding/packages/core/tests/core.test.ts
+++ b/onboarding/packages/core/tests/core.test.ts
@@ -209,7 +209,7 @@ describe('createOnboardingMachine', () => {
it('initializes values from initialValues (F2.5 — the one app source)', () => {
const machine = createOnboardingMachine(makeAccountFlow(), {
initialValues: { email: 'jack@example.com', firstName: 'Jack' },
-
+
submits: accountSubmits,
})
expect(machine.state.values.email).toBe('jack@example.com')
@@ -218,7 +218,6 @@ describe('createOnboardingMachine', () => {
it('exposes reactive state through a @tanstack/store Store', () => {
const machine = createOnboardingMachine(makeAccountFlow(), {
-
submits: accountSubmits,
})
const seen: Array = []
@@ -236,7 +235,6 @@ describe('createOnboardingMachine', () => {
it('scopes controls and tools to the machine instance', () => {
const machine = createOnboardingMachine(makeProductFlow(), {
-
...withTeamPicker,
})
expect(machine.getControl('sports.teamPicker')).toBe(teamPickerControl)
@@ -249,9 +247,11 @@ describe('createOnboardingMachine', () => {
// A reference-free flow needs no registrations.
const bareFlow = defineOnboarding({
id: 'bare',
- steps: [formStep({ id: 'only', fields: [{ name: 'x', required: false }] })],
+ steps: [
+ formStep({ id: 'only', fields: [{ name: 'x', required: false }] }),
+ ],
})
- const bare = createOnboardingMachine(bareFlow, { })
+ const bare = createOnboardingMachine(bareFlow, {})
expect(bare.getControl('sports.teamPicker')).toBeUndefined()
expect(bare.listTools()).toEqual([])
})
@@ -263,25 +263,25 @@ describe('createOnboardingMachine', () => {
formStep({ id: 'profile', fields: [{ name: 'x' }], submit: 'save' }),
],
})
- expect(() =>
- createOnboardingMachine(submitFlow, { }),
- ).toThrow(/step "profile" references submit handler "save"/)
+ expect(() => createOnboardingMachine(submitFlow, {})).toThrow(
+ /step "profile" references submit handler "save"/,
+ )
const controlFlow = defineOnboarding({
id: 'needs-control',
steps: [controlStep({ id: 'pick', control: 'demo.picker' })],
})
- expect(() =>
- createOnboardingMachine(controlFlow, { }),
- ).toThrow(/step "pick" references control "demo.picker"/)
+ expect(() => createOnboardingMachine(controlFlow, {})).toThrow(
+ /step "pick" references control "demo.picker"/,
+ )
const toolFlow = defineOnboarding({
id: 'needs-tool',
steps: [conversationStep({ id: 'chat', tools: ['do_thing'] })],
})
- expect(() =>
- createOnboardingMachine(toolFlow, { }),
- ).toThrow(/step "chat" references tool "do_thing"/)
+ expect(() => createOnboardingMachine(toolFlow, {})).toThrow(
+ /step "chat" references tool "do_thing"/,
+ )
})
it('throws on duplicate control ids, duplicate tool names, and system-tool collisions (F2.6)', () => {
@@ -291,14 +291,12 @@ describe('createOnboardingMachine', () => {
})
expect(() =>
createOnboardingMachine(flow, {
-
controls: [{ id: 'dup' }, { id: 'dup' }],
}),
).toThrow(/duplicate control id "dup"/)
expect(() =>
createOnboardingMachine(flow, {
-
tools: [
{ name: 'a', description: '' },
{ name: 'a', description: '' },
@@ -308,7 +306,6 @@ describe('createOnboardingMachine', () => {
expect(() =>
createOnboardingMachine(flow, {
-
tools: [{ name: 'set_field', description: 'collides' }],
}),
).toThrow(/collides with a built-in system tool/)
@@ -326,7 +323,6 @@ describe('createOnboardingMachine', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
...withTeamPicker,
})
machine.setValue('teamIds', [])
@@ -337,7 +333,6 @@ describe('createOnboardingMachine', () => {
it('validates the whole flow by default with schemas', async () => {
const machine = createOnboardingMachine(makeAccountFlow(), {
-
submits: accountSubmits,
})
const result = await machine.validate()
@@ -351,7 +346,6 @@ describe('createOnboardingMachine', () => {
makeProductFlow(),
])
const machine = createOnboardingMachine(merged, {
-
...withTeamPicker,
initialValues: {
firstName: 'Jack',
@@ -370,7 +364,6 @@ describe('createOnboardingMachine', () => {
it('gates next() on current-step validation and supports back stack', async () => {
const product = makeProductFlow()
const machine = createOnboardingMachine(product, {
-
...withTeamPicker,
})
const blocked = await machine.next()
@@ -387,7 +380,6 @@ describe('createOnboardingMachine', () => {
it('skips optional steps and completes', async () => {
const product = makeProductFlow()
const machine = createOnboardingMachine(product, {
-
...withTeamPicker,
onComplete: async () => {},
})
@@ -472,9 +464,7 @@ describe('createOnboardingMachine', () => {
})
it('keeps the current step when a when-gated earlier step toggles mid-flow', async () => {
- const machine = createOnboardingMachine(makeGatedFlow(), {
-
- })
+ const machine = createOnboardingMachine(makeGatedFlow(), {})
// wantsExtras is false: active steps are [basics, wrap-up].
await machine.next()
expect(machine.currentStep?.id).toBe('wrap-up')
@@ -495,9 +485,7 @@ describe('createOnboardingMachine', () => {
})
it('back() skips history entries that are no longer visible', async () => {
- const machine = createOnboardingMachine(makeGatedFlow(), {
-
- })
+ const machine = createOnboardingMachine(makeGatedFlow(), {})
machine.setValue('wantsExtras', true)
await machine.next() // basics -> extras
await machine.next() // extras -> wrap-up
@@ -513,9 +501,7 @@ describe('createOnboardingMachine', () => {
})
it('back() reports when there is nowhere to go', () => {
- const machine = createOnboardingMachine(makeGatedFlow(), {
-
- })
+ const machine = createOnboardingMachine(makeGatedFlow(), {})
expect(machine.back()).toEqual({ moved: false, stepId: 'basics' })
})
@@ -568,7 +554,9 @@ describe('createOnboardingMachine', () => {
// Live state is untouched — only the snapshot is stripped.
expect(machine.state.values.password).toBe('hunter2ok')
- const restored = createOnboardingMachine(flow, { initialSnapshot: snapshot })
+ const restored = createOnboardingMachine(flow, {
+ initialSnapshot: snapshot,
+ })
expect(restored.state.values.password).toBe('')
expect(restored.state.values.pin).toBe('1234')
})
@@ -587,7 +575,7 @@ describe('createOnboardingMachine', () => {
}),
],
})
- const machine = createOnboardingMachine(flow, { })
+ const machine = createOnboardingMachine(flow, {})
machine.setValues({
email: 'jack@example.com',
password: 'hunter2ok',
@@ -602,9 +590,7 @@ describe('createOnboardingMachine', () => {
})
it('goTo preserves real history so back() returns to the jump origin', () => {
- const machine = createOnboardingMachine(makeGatedFlow(), {
-
- })
+ const machine = createOnboardingMachine(makeGatedFlow(), {})
machine.goTo('wrap-up')
expect(machine.currentStep?.id).toBe('wrap-up')
expect(machine.state.history).toEqual(['basics'])
@@ -667,7 +653,6 @@ describe('createOnboardingMachine', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
onComplete: async () => {},
})
machine.setValue('handle', 'jack')
@@ -703,7 +688,7 @@ describe('createOnboardingMachine', () => {
}),
],
})
- const machine = createOnboardingMachine(flow, { })
+ const machine = createOnboardingMachine(flow, {})
expect(machine.state.values.nickname).toBe('')
expect(machine.state.values.newsletter).toBe(false)
expect('seats' in machine.state.values).toBe(false)
@@ -737,7 +722,7 @@ describe('createOnboardingMachine', () => {
}),
],
})
- const machine = createOnboardingMachine(flow, { })
+ const machine = createOnboardingMachine(flow, {})
machine.setValues({ password: 'hunter2ok', confirm: 'different1' })
const result = await machine.validate()
expect(result.ok).toBe(false)
@@ -763,7 +748,6 @@ describe('createOnboardingMachine', () => {
})
const completed: Array = []
const machine = createOnboardingMachine(flow, {
-
onComplete: (values) => {
completed.push(values.age)
},
@@ -809,7 +793,11 @@ describe('fieldValidationSchema (F3.2 — declared schema only)', () => {
it('returns undefined for readOnly fields and schemaless fields', () => {
expect(
- fieldValidationSchema({ name: 'email', readOnly: true, schema: emailSchema }),
+ fieldValidationSchema({
+ name: 'email',
+ readOnly: true,
+ schema: emailSchema,
+ }),
).toBeUndefined()
expect(fieldValidationSchema({ name: 'nickname' })).toBeUndefined()
// required is a UI hint only — a schemaless field is never validated.
@@ -843,7 +831,6 @@ describe('fieldValidationSchema (F3.2 — declared schema only)', () => {
],
})
const machine = createOnboardingMachine(flow, {
-
onComplete: async () => {},
})
expect(machine.state.values.nickname).toBe('')
@@ -855,9 +842,9 @@ describe('fieldValidationSchema (F3.2 — declared schema only)', () => {
describe('validateStandardSchemaSync (F3.4 — sync contract)', () => {
it('returns sync issues for a sync schema', () => {
- expect(validateStandardSchemaSync(emailSchema, 'nope', 'email').length).toBe(
- 1,
- )
+ expect(
+ validateStandardSchemaSync(emailSchema, 'nope', 'email').length,
+ ).toBe(1)
expect(
validateStandardSchemaSync(emailSchema, 'jack@example.com', 'email'),
).toEqual([])
@@ -867,9 +854,9 @@ describe('validateStandardSchemaSync (F3.4 — sync contract)', () => {
const asyncSchema = z
.string()
.refine(async (v) => v.startsWith('@'), 'must start with @')
- expect(() => validateStandardSchemaSync(asyncSchema, 'jack', 'handle')).toThrow(
- /"handle" is asynchronous/,
- )
+ expect(() =>
+ validateStandardSchemaSync(asyncSchema, 'jack', 'handle'),
+ ).toThrow(/"handle" is asynchronous/)
})
it('dot-joins nested schema issue paths (A5 path semantics)', () => {
@@ -905,7 +892,6 @@ describe('typed flows (flow-level schema)', () => {
const completed: Array = []
const machine = createOnboardingMachine(flow, {
-
initialValues: { email: 'seed@example.com', marketingOptIn: true },
onComplete: (values) => {
// `values.email` is `string` — typed by the flow-level schema.
diff --git a/onboarding/packages/react/src/Wizard.tsx b/onboarding/packages/react/src/Wizard.tsx
index c8062849..777f9abe 100644
--- a/onboarding/packages/react/src/Wizard.tsx
+++ b/onboarding/packages/react/src/Wizard.tsx
@@ -35,7 +35,11 @@ export type OnboardingLabels = {
completeBody: string
restart: string
/** Progress line; receives 1-based current step, total, and the step's display title. */
- stepStatus: (current: number, total: number, title: string | undefined) => string
+ stepStatus: (
+ current: number,
+ total: number,
+ title: string | undefined,
+ ) => string
/** Shown when a conversation step has no injected renderer. */
missingConversationRenderer: ReactNode
}
@@ -84,7 +88,9 @@ type StepViewProps = {
}
function labelsWith(partial?: Partial): OnboardingLabels {
- return partial ? { ...defaultOnboardingLabels, ...partial } : defaultOnboardingLabels
+ return partial
+ ? { ...defaultOnboardingLabels, ...partial }
+ : defaultOnboardingLabels
}
/**
@@ -152,9 +158,7 @@ export function OnboardingStepView<
fieldComponents={fieldComponents}
labels={l}
className={className}
- onSubmit={
- onFormSubmit ? () => onFormSubmit(step, machine) : undefined
- }
+ onSubmit={onFormSubmit ? () => onFormSubmit(step, machine) : undefined}
/>
)
}
@@ -171,7 +175,11 @@ export function OnboardingStepView<
>
{step.title ? {step.title} : null}
{step.description ? {step.description}
: null}
-
+
{conversation ? conversation(step, machine) : l.missingConversationRenderer}>
+ return (
+ <>
+ {conversation
+ ? conversation(step, machine)
+ : l.missingConversationRenderer}
+ >
+ )
}
return null
@@ -309,7 +323,9 @@ function OnboardingWizardInner<
return (
))}
@@ -372,12 +390,17 @@ function OnboardingWizardInner<
{step?.type !== 'form' && state.issues.length ? (
{state.issues.map((issue) => (
- {issue.message}
+
+ {issue.message}
+
))}
) : null}
{state.error ? (
-
+
{state.error}
) : null}
diff --git a/onboarding/packages/react/src/chat.tsx b/onboarding/packages/react/src/chat.tsx
index 8c21ee31..abfdb84b 100644
--- a/onboarding/packages/react/src/chat.tsx
+++ b/onboarding/packages/react/src/chat.tsx
@@ -106,12 +106,7 @@ export function OnboardingChatStep({
const id = typeof ref === 'string' ? ref : ref.control
const path = typeof ref === 'string' ? undefined : ref.path
return (
-
+
)
})}
diff --git a/onboarding/packages/react/src/controls.tsx b/onboarding/packages/react/src/controls.tsx
index 78f10792..79b8f393 100644
--- a/onboarding/packages/react/src/controls.tsx
+++ b/onboarding/packages/react/src/controls.tsx
@@ -152,8 +152,9 @@ export function OnboardingControl
({
const valuePath = path ?? id
const value = useStore(machine.store, (s) => s.values[valuePath]) as TValue
const status = useStore(machine.store, (s) => s.status)
- const Component = (component ??
- registry[id]) as ControlComponent | undefined
+ const Component = (component ?? registry[id]) as
+ | ControlComponent
+ | undefined
if (!Component) {
return (
fallback ?? (
diff --git a/onboarding/packages/react/src/onboarding.css b/onboarding/packages/react/src/onboarding.css
index 02d6d4d0..5e670621 100644
--- a/onboarding/packages/react/src/onboarding.css
+++ b/onboarding/packages/react/src/onboarding.css
@@ -161,7 +161,11 @@
min-height: 8rem;
padding: 1rem;
border-radius: 1rem;
- background: color-mix(in srgb, var(--onboarding-surface) 80%, var(--onboarding-line));
+ background: color-mix(
+ in srgb,
+ var(--onboarding-surface) 80%,
+ var(--onboarding-line)
+ );
}
.onboarding-chat-bubble {
diff --git a/onboarding/packages/react/tests/form.test.tsx b/onboarding/packages/react/tests/form.test.tsx
index 8b4d2002..1d496c57 100644
--- a/onboarding/packages/react/tests/form.test.tsx
+++ b/onboarding/packages/react/tests/form.test.tsx
@@ -55,9 +55,7 @@ const prefsFlow = defineOnboarding({
describe('default field components', () => {
it('renders field components by inputType with typed defaults', () => {
- render(
- ,
- )
+ render( )
expect(screen.getByLabelText('Bio').tagName).toBe('TEXTAREA')
const checkbox = screen.getByLabelText('Newsletter') as HTMLInputElement
expect(checkbox.type).toBe('checkbox')
@@ -70,7 +68,6 @@ describe('default field components', () => {
it('commits typed values to the machine on submit, not per keystroke (A1)', async () => {
const machine = createOnboardingMachine(prefsFlow, {
-
onComplete: async () => {},
})
const step = prefsFlow.steps[0] as FormStepDef
@@ -133,7 +130,7 @@ describe('default field components', () => {
,
)
const input = screen.getByTestId('shout') as HTMLInputElement
@@ -152,20 +149,20 @@ describe('stacking (A2 — one validation pass)', () => {
formStep({
id: 'only',
title: 'Only',
- fields: [
- { name: 'name', label: 'Name', schema: z.string().min(1) },
- ],
+ fields: [{ name: 'name', label: 'Name', schema: z.string().min(1) }],
}),
],
})
const machine = createOnboardingMachine(flow, {
-
onComplete: async () => {},
})
const validateSpy = vi.spyOn(machine, 'validate')
const nextSpy = vi.spyOn(machine, 'next')
render(
- ,
+ ,
)
fireEvent.change(screen.getByLabelText('Name'), {
target: { value: 'Jack' },
@@ -204,7 +201,7 @@ describe('validator wiring', () => {
}),
],
})
- const machine = createOnboardingMachine(flow, { })
+ const machine = createOnboardingMachine(flow, {})
render(
{
{
completed.current = true
},
diff --git a/onboarding/packages/react/tests/react.test.tsx b/onboarding/packages/react/tests/react.test.tsx
index 33856a71..69b6a890 100644
--- a/onboarding/packages/react/tests/react.test.tsx
+++ b/onboarding/packages/react/tests/react.test.tsx
@@ -50,7 +50,6 @@ describe('OnboardingWizard', () => {
{} },
onComplete: async () => {},
}}
@@ -69,7 +68,6 @@ describe('OnboardingWizard', () => {
{
created.current = values
@@ -121,7 +119,6 @@ describe('OnboardingWizard', () => {
flow={controlFlow}
controls={{ 'demo.colorPicker': ColorPicker }}
options={{
-
controls: [{ id: 'demo.colorPicker', schema: z.string().min(1) }],
onComplete: async () => {},
}}
@@ -167,7 +164,9 @@ describe('OnboardingWizard', () => {
options={{ controls: [{ id: 'demo.colorPicker' }] }}
/>,
),
- ).toThrow(/no control component provided for control "demo.colorPicker".*step "color"/)
+ ).toThrow(
+ /no control component provided for control "demo.colorPicker".*step "color"/,
+ )
})
it('renders conversation steps through the injected conversation renderer', async () => {
@@ -187,7 +186,7 @@ describe('OnboardingWizard', () => {
render(
(
{
it('renders an externally created machine via the machine prop (controlled mode)', async () => {
const machine = createOnboardingMachine(flow, {
-
submits: { 'app.createAccount': async () => {} },
onComplete: async () => {},
})
@@ -265,9 +263,7 @@ describe('OnboardingWizard', () => {
],
})
- render(
- ,
- )
+ render( )
// Step 1: fill and advance.
expect(screen.getByText(/Step 1 of 2: Profile/)).toBeTruthy()
@@ -292,7 +288,7 @@ describe('OnboardingWizard', () => {
id: 'chat-missing',
steps: [conversationStep({ id: 'interests' })],
})
- render( )
+ render( )
expect(screen.getByRole('alert').textContent).toContain(
'@tanstack/react-onboarding/chat',
)
diff --git a/package.json b/package.json
index 0591e78f..a62da9d2 100644
--- a/package.json
+++ b/package.json
@@ -69,9 +69,9 @@
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^24.10.1",
"@vitest/coverage-v8": "4.1.11",
- "eslint-plugin-unused-imports": "^4.3.0",
+ "eslint-plugin-unused-imports": "^4.4.1",
"kiira": "0.7.1",
- "knip": "^6.26.0",
+ "knip": "^6.49.0",
"markdown-link-extractor": "^4.0.3",
"nx": "23.1.1",
"oxfmt": "^0.75.0",
@@ -79,8 +79,8 @@
"oxlint-plugin-eslint": "^1.90.0",
"oxlint-tsgolint": "^0.25.0",
"premove": "^4.0.0",
- "publint": "^0.3.15",
- "sherif": "^1.9.0",
+ "publint": "^0.3.25",
+ "sherif": "^1.13.0",
"tinyglobby": "^0.2.17",
"ts-morph": "^28.0.0",
"tsdown": "^0.23.4",
diff --git a/packages/api/src/markdown.ts b/packages/api/src/markdown.ts
index 4f63f9f0..5989b73a 100644
--- a/packages/api/src/markdown.ts
+++ b/packages/api/src/markdown.ts
@@ -29,10 +29,7 @@
*/
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'
import { join } from 'node:path'
-import {
- parseFrontmatter,
- parseMarkdownFile,
-} from '@tanstack/cms-core/storage'
+import { parseFrontmatter, parseMarkdownFile } from '@tanstack/cms-core/storage'
import type { MarkdownDoc } from '@tanstack/cms-core/storage'
import type { z } from 'zod'
diff --git a/packages/api/src/ops.ts b/packages/api/src/ops.ts
index 17050fea..ef8ad9cf 100644
--- a/packages/api/src/ops.ts
+++ b/packages/api/src/ops.ts
@@ -248,9 +248,7 @@ const rollbackInput = z.object({ releaseId: z.string().min(1) })
/** The release's actor: the human (or agent) behind the call, for audit. */
function releaseActor(ctx: CmsOpContext): string {
- return (
- ctx.session.user?.name ?? ctx.session.user?.id ?? ctx.actor ?? 'human'
- )
+ return ctx.session.user?.name ?? ctx.session.user?.id ?? ctx.actor ?? 'human'
}
const docRef = z.object({ collection: z.string(), id: z.string() })
const restoreDocRevisionInput = docRef.extend({ revisionId: z.string() })
@@ -589,8 +587,7 @@ const _ops = {
releasesRollback: {
method: 'POST',
access: 'content.publish',
- description:
- 'Roll back the current live release (released publishing).',
+ description: 'Roll back the current live release (released publishing).',
input: rollbackInput,
output: releaseOutput,
run: async (input: z.infer, ctx: CmsOpContext) =>
diff --git a/packages/api/src/start.ts b/packages/api/src/start.ts
index 9f5dfc6e..4b32407d 100644
--- a/packages/api/src/start.ts
+++ b/packages/api/src/start.ts
@@ -138,9 +138,7 @@ export const releasesGoLive = createServerFn({ method: 'POST' })
export const releasesRollback = createServerFn({ method: 'POST' })
.validator(ops.releasesRollback.input)
- .handler(async ({ data }) =>
- invokeOp('releasesRollback', data, await req()),
- )
+ .handler(async ({ data }) => invokeOp('releasesRollback', data, await req()))
export const save = createServerFn({ method: 'POST' })
.validator(ops.save.input)
diff --git a/packages/api/tests/health.test.ts b/packages/api/tests/health.test.ts
index 783930ab..da22cb64 100644
--- a/packages/api/tests/health.test.ts
+++ b/packages/api/tests/health.test.ts
@@ -145,30 +145,34 @@ describe('per-process state warning', () => {
// Three setups each spin up an embedded PGlite instance (WASM); give the
// three inits headroom under full-suite load (D12).
- it('stays quiet with a shared rate-limit store, without opt-ins, or outside production', { timeout: 20000 }, async () => {
- vi.stubEnv('NODE_ENV', 'production')
- const shared = logger()
- setupCms({
- logger: shared,
- security: {
- rateLimits: { ai: { limit: 5, windowMs: 1000 } },
- rateLimitStore: { hit: () => 1 },
- },
- })
- await handler(req('/api/cms/v1/health'))
- const plain = logger()
- setupCms({ logger: plain })
- await handler(req('/api/cms/v1/health'))
- vi.stubEnv('NODE_ENV', 'test')
- const dev = logger()
- setupCms({ logger: dev, webhooks: [{ url: 'https://hooks.test/cms' }] })
- await handler(req('/api/cms/v1/health'))
- for (const log of [shared, plain, dev]) {
- expect(
- log.warn.mock.calls.filter(([m]) => perProcess.test(m)),
- ).toHaveLength(0)
- }
- })
+ it(
+ 'stays quiet with a shared rate-limit store, without opt-ins, or outside production',
+ { timeout: 20000 },
+ async () => {
+ vi.stubEnv('NODE_ENV', 'production')
+ const shared = logger()
+ setupCms({
+ logger: shared,
+ security: {
+ rateLimits: { ai: { limit: 5, windowMs: 1000 } },
+ rateLimitStore: { hit: () => 1 },
+ },
+ })
+ await handler(req('/api/cms/v1/health'))
+ const plain = logger()
+ setupCms({ logger: plain })
+ await handler(req('/api/cms/v1/health'))
+ vi.stubEnv('NODE_ENV', 'test')
+ const dev = logger()
+ setupCms({ logger: dev, webhooks: [{ url: 'https://hooks.test/cms' }] })
+ await handler(req('/api/cms/v1/health'))
+ for (const log of [shared, plain, dev]) {
+ expect(
+ log.warn.mock.calls.filter(([m]) => perProcess.test(m)),
+ ).toHaveLength(0)
+ }
+ },
+ )
})
describe('logger', () => {
diff --git a/packages/api/tests/releases.test.ts b/packages/api/tests/releases.test.ts
index 63a77a9a..8b4ecef1 100644
--- a/packages/api/tests/releases.test.ts
+++ b/packages/api/tests/releases.test.ts
@@ -79,7 +79,12 @@ function base(extra: Partial = {}): Partial {
fields: [
{ name: 'title', label: 'Title', type: 'text' },
{ name: 'slug', label: 'Slug', type: 'text' },
- { name: 'author', label: 'Author', type: 'relation', collection: 'author' },
+ {
+ name: 'author',
+ label: 'Author',
+ type: 'relation',
+ collection: 'author',
+ },
],
},
{
@@ -117,18 +122,26 @@ describe('released publishing', () => {
setupCms({ publishing: livePublishing(), ...base() })
const saved = await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Hello', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Hello', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
expect(saved.status).toBe(200)
- expect(await live('post', 'p1')).toEqual({ published: true, title: 'Hello' })
+ expect(await live('post', 'p1')).toEqual({
+ published: true,
+ title: 'Hello',
+ })
expect((await call('releasesList', {}, { role: 'admin' })).result).toEqual({
releases: [],
})
- expect((await call('releasesPending', {}, { role: 'admin' })).result).toEqual(
- { changes: [] },
- )
+ expect(
+ (await call('releasesPending', {}, { role: 'admin' })).result,
+ ).toEqual({ changes: [] })
expect((await call('releasesGoLive', {}, { role: 'admin' })).code).toBe(
'PUBLISHING_LIVE_MODE',
)
@@ -143,7 +156,12 @@ describe('released publishing', () => {
setupReleased()
const saved = await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Hello', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Hello', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
expect(saved.status).toBe(200)
@@ -152,7 +170,8 @@ describe('released publishing', () => {
const flags = await pendingFlags('post', 'p1')
expect(flags.revision).not.toBeNull()
expect(flags.unpublish).toBe(false)
- const pending = (await call('releasesPending', {}, { role: 'admin' })).result
+ const pending = (await call('releasesPending', {}, { role: 'admin' }))
+ .result
expect(pending.changes).toEqual([
{
collection: 'post',
@@ -170,7 +189,12 @@ describe('released publishing', () => {
// Make p1 genuinely live through a first release.
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Old', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Old', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call('releasesGoLive', {}, { role: 'admin' })
@@ -178,12 +202,18 @@ describe('released publishing', () => {
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'New', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'New', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
// Public read still serves the old revision.
expect(await live('post', 'p1')).toEqual({ published: true, title: 'Old' })
- const pending = (await call('releasesPending', {}, { role: 'admin' })).result
+ const pending = (await call('releasesPending', {}, { role: 'admin' }))
+ .result
expect(pending.changes[0]).toMatchObject({
collection: 'post',
id: 'p1',
@@ -196,7 +226,12 @@ describe('released publishing', () => {
setupReleased()
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Live', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Live', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call('releasesGoLive', {}, { role: 'admin' })
@@ -204,12 +239,18 @@ describe('released publishing', () => {
// An unpublish is a save that clears `published`.
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Live', published: false }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Live', published: false },
+ publish: true,
+ },
{ role: 'admin' },
)
expect((await live('post', 'p1'))?.published).toBe(true)
expect((await pendingFlags('post', 'p1')).unpublish).toBe(true)
- const pending = (await call('releasesPending', {}, { role: 'admin' })).result
+ const pending = (await call('releasesPending', {}, { role: 'admin' }))
+ .result
expect(pending.changes[0]).toMatchObject({ id: 'p1', action: 'unpublish' })
})
@@ -218,12 +259,22 @@ describe('released publishing', () => {
setupReleased()
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Post one', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Post one', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call(
'save',
- { collection: 'author', id: 'a1', doc: { name: 'Ada', published: true }, publish: true },
+ {
+ collection: 'author',
+ id: 'a1',
+ doc: { name: 'Ada', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
@@ -236,13 +287,16 @@ describe('released publishing', () => {
expect((await live('post', 'p1'))?.published).toBe(true)
expect((await live('author', 'a1'))?.published).toBe(true)
// Pending cleared.
- expect((await call('releasesPending', {}, { role: 'admin' })).result.changes)
- .toEqual([])
+ expect(
+ (await call('releasesPending', {}, { role: 'admin' })).result.changes,
+ ).toEqual([])
// AC5: the stored checksum equals a recomputed sha256 of the sorted manifest.
const { createHash } = await import('node:crypto')
expect(release.checksum).toBe(
- createHash('sha256').update(JSON.stringify(release.manifest)).digest('hex'),
+ createHash('sha256')
+ .update(JSON.stringify(release.manifest))
+ .digest('hex'),
)
// AC12: exactly one release.live event, attributed via audit to the caller.
@@ -250,13 +304,19 @@ describe('released publishing', () => {
expect(released).toHaveLength(1)
expect(released[0]).toMatchObject({ releaseId: release.id, changeCount: 2 })
const audit = await (await getStorage()).listAudit()
- expect(audit.some((a) => a.action === 'release.publish' && a.actor === 'admin'))
- .toBe(true)
+ expect(
+ audit.some((a) => a.action === 'release.publish' && a.actor === 'admin'),
+ ).toBe(true)
// AC6: a second release marks the first replaced.
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Post two', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Post two', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const second = await call('releasesGoLive', {}, { role: 'admin' })
@@ -274,8 +334,9 @@ describe('released publishing', () => {
setupReleased()
const res = await call('releasesGoLive', {}, { role: 'admin' })
expect(res.code).toBe('RELEASE_EMPTY')
- expect((await call('releasesList', {}, { role: 'admin' })).result.releases)
- .toEqual([])
+ expect(
+ (await call('releasesList', {}, { role: 'admin' })).result.releases,
+ ).toEqual([])
})
// AC8 — relation-integrity preflight. --------------------------------------
@@ -285,7 +346,12 @@ describe('released publishing', () => {
await commitDocument('author', 'a1', { name: 'Ada', published: false })
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Post', author: 'a1', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Post', author: 'a1', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const bad = await call('releasesGoLive', {}, { role: 'admin' })
@@ -298,7 +364,12 @@ describe('released publishing', () => {
// Add the author to the same release → goLive succeeds.
await call(
'save',
- { collection: 'author', id: 'a1', doc: { name: 'Ada', published: true }, publish: true },
+ {
+ collection: 'author',
+ id: 'a1',
+ doc: { name: 'Ada', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const ok = await call('releasesGoLive', {}, { role: 'admin' })
@@ -313,19 +384,34 @@ describe('released publishing', () => {
// p2 is genuinely live (pre-release content) through an earlier release.
await call(
'save',
- { collection: 'post', id: 'p2', doc: { title: 'P2 old', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p2',
+ doc: { title: 'P2 old', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call('releasesGoLive', {}, { role: 'admin' })
// p1 first published by this release; p2 updated by it.
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'P1 new', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'P1 new', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call(
'save',
- { collection: 'post', id: 'p2', doc: { title: 'P2 new', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p2',
+ doc: { title: 'P2 new', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const release = (await call('releasesGoLive', {}, { role: 'admin' })).result
@@ -336,7 +422,12 @@ describe('released publishing', () => {
// A pending change not in the release.
await call(
'save',
- { collection: 'post', id: 'p3', doc: { title: 'P3', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p3',
+ doc: { title: 'P3', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
@@ -363,30 +454,40 @@ describe('released publishing', () => {
setupReleased()
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'One', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'One', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const first = (await call('releasesGoLive', {}, { role: 'admin' })).result
.release
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'Two', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'Two', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
await call('releasesGoLive', {}, { role: 'admin' })
- expect(
- (await call('releasesRollback', { releaseId: first.id }, { role: 'admin' }))
- .code,
- ).toBe('RELEASE_NOT_LATEST')
expect(
(
await call(
'releasesRollback',
- { releaseId: 'nope' },
+ { releaseId: first.id },
{ role: 'admin' },
)
).code,
+ ).toBe('RELEASE_NOT_LATEST')
+ expect(
+ (await call('releasesRollback', { releaseId: 'nope' }, { role: 'admin' }))
+ .code,
).toBe('RELEASE_NOT_FOUND')
})
@@ -395,13 +496,20 @@ describe('released publishing', () => {
setupReleased()
await call(
'save',
- { collection: 'post', id: 'p1', doc: { title: 'One', published: true }, publish: true },
+ {
+ collection: 'post',
+ id: 'p1',
+ doc: { title: 'One', published: true },
+ publish: true,
+ },
{ role: 'admin' },
)
const viewer = await call('releasesGoLive', {}, { role: 'viewer' })
expect(viewer.status).toBeGreaterThanOrEqual(401)
expect(viewer.status).toBeLessThan(404)
// A publisher can.
- expect((await call('releasesGoLive', {}, { role: 'admin' })).status).toBe(200)
+ expect((await call('releasesGoLive', {}, { role: 'admin' })).status).toBe(
+ 200,
+ )
})
})
diff --git a/packages/cli/tests/cli.test.ts b/packages/cli/tests/cli.test.ts
index ec7b64a5..be9f2d4c 100644
--- a/packages/cli/tests/cli.test.ts
+++ b/packages/cli/tests/cli.test.ts
@@ -289,7 +289,9 @@ describe('tanstack-cms init', () => {
// Locator era: publicPrefix, no hand-written `path:` arrow (D13).
expect(DEFINITION_TEMPLATE).toContain('publicPrefix')
expect(DEFINITION_TEMPLATE).not.toMatch(/\bpath:\s*\(/)
- expect(DEFINITION_TEMPLATE).toContain("from '@tanstack/cms-core/definition'")
+ expect(DEFINITION_TEMPLATE).toContain(
+ "from '@tanstack/cms-core/definition'",
+ )
// No retired dialect markers leak back into the scaffold.
for (const retired of ['cmsVirtualRoutes', 'createRoutes(', 'publicRead'])
expect(`${DEFINITION_TEMPLATE}${CONFIG_TEMPLATE}`).not.toContain(retired)
diff --git a/packages/cms-compat-wp/README.md b/packages/cms-compat-wp/README.md
index d5193383..7e9c1d16 100644
--- a/packages/cms-compat-wp/README.md
+++ b/packages/cms-compat-wp/README.md
@@ -15,7 +15,7 @@ npm install @tanstack/cms-compat-wp @tanstack/cms-migrate-wp
The plugin contributes an admin route (which belongs in the definition) and a
server op (which belongs in the runtime). Build the definition once, register it,
-then wrap that *same object* into the runtime plugin. Import the definition from
+then wrap that _same object_ into the runtime plugin. Import the definition from
the `/definition` subpath so it stays load-safe in the Vite config:
```ts
@@ -43,7 +43,9 @@ import { defineCms } from '@tanstack/cms-core'
import { createCompatWpPlugin } from '@tanstack/cms-compat-wp'
import { definition, wp } from './cms.definition'
-export const cms = defineCms(definition, { plugins: [createCompatWpPlugin(wp)] })
+export const cms = defineCms(definition, {
+ plugins: [createCompatWpPlugin(wp)],
+})
```
## What you get
diff --git a/packages/cms-compat-wp/src/connector.ts b/packages/cms-compat-wp/src/connector.ts
index 47baf1f5..1c08542d 100644
--- a/packages/cms-compat-wp/src/connector.ts
+++ b/packages/cms-compat-wp/src/connector.ts
@@ -15,7 +15,11 @@ import { DEFAULT_COMMENTS_COLLECTION } from './features/comments.ts'
import { formOps } from './features/form-ops.ts'
import { DEFAULT_FORMS_COLLECTION } from './features/forms.ts'
import { redirectOps } from './features/redirect-ops.ts'
-import type { CmsOpDefinition, CmsPlugin, CmsPluginDefinition } from '@tanstack/cms-core'
+import type {
+ CmsOpDefinition,
+ CmsPlugin,
+ CmsPluginDefinition,
+} from '@tanstack/cms-core'
export { createCompatWpDefinition, DEFAULT_IMPORT_ROUTE } from './definition.ts'
diff --git a/packages/cms-compat-wp/src/definition.ts b/packages/cms-compat-wp/src/definition.ts
index abb34435..d80e951c 100644
--- a/packages/cms-compat-wp/src/definition.ts
+++ b/packages/cms-compat-wp/src/definition.ts
@@ -14,7 +14,10 @@ import { route } from '@tanstack/virtual-file-routes'
import { commentsCollection } from './features/comments.ts'
import { formSubmissionsCollection } from './features/forms.ts'
import { taxonomyCollection } from './features/taxonomy.ts'
-import type { Collection, CmsPluginDefinition } from '@tanstack/cms-core/definition'
+import type {
+ Collection,
+ CmsPluginDefinition,
+} from '@tanstack/cms-core/definition'
import type { CompatWpPluginConfig } from './types.ts'
/** Default admin route (under the admin base) for the import wizard. */
diff --git a/packages/cms-compat-wp/src/features/comments.ts b/packages/cms-compat-wp/src/features/comments.ts
index d299981f..6c6dec88 100644
--- a/packages/cms-compat-wp/src/features/comments.ts
+++ b/packages/cms-compat-wp/src/features/comments.ts
@@ -10,7 +10,12 @@
import { defineCollection } from '@tanstack/cms-core/definition'
/** The moderation states a comment moves through. */
-export const COMMENT_STATUSES = ['pending', 'approved', 'spam', 'trash'] as const
+export const COMMENT_STATUSES = [
+ 'pending',
+ 'approved',
+ 'spam',
+ 'trash',
+] as const
export type CommentStatus = (typeof COMMENT_STATUSES)[number]
/** Default collection name for public comments. */
@@ -30,7 +35,9 @@ export function moderatedStatus(action: string): CommentStatus | null {
}
/** Build the public-comments collection (status field drives moderation). */
-export function commentsCollection(config: { name?: string; label?: string } = {}) {
+export function commentsCollection(
+ config: { name?: string; label?: string } = {},
+) {
return defineCollection({
name: config.name ?? DEFAULT_COMMENTS_COLLECTION,
label: config.label ?? 'Comments',
@@ -46,7 +53,12 @@ export function commentsCollection(config: { name?: string; label?: string } = {
type: 'text',
defaultValue: '',
},
- { name: 'targetId', label: 'On Document', type: 'text', defaultValue: '' },
+ {
+ name: 'targetId',
+ label: 'On Document',
+ type: 'text',
+ defaultValue: '',
+ },
{ name: 'targetPath', label: 'On Path', type: 'text', defaultValue: '' },
{
name: 'status',
diff --git a/packages/cms-compat-wp/src/index.ts b/packages/cms-compat-wp/src/index.ts
index c48399ea..686e6e45 100644
--- a/packages/cms-compat-wp/src/index.ts
+++ b/packages/cms-compat-wp/src/index.ts
@@ -51,7 +51,11 @@ export {
taxonomyCollection,
DEFAULT_TAXONOMY_COLLECTION,
} from './features/taxonomy.ts'
-export { applyRedirectsOp, redirectOps, APPLY_REDIRECTS_OP } from './features/redirect-ops.ts'
+export {
+ applyRedirectsOp,
+ redirectOps,
+ APPLY_REDIRECTS_OP,
+} from './features/redirect-ops.ts'
export type {
CompatWpPluginConfig,
diff --git a/packages/cms-compat-wp/tests/features.test.ts b/packages/cms-compat-wp/tests/features.test.ts
index ba66626e..90be8bee 100644
--- a/packages/cms-compat-wp/tests/features.test.ts
+++ b/packages/cms-compat-wp/tests/features.test.ts
@@ -60,8 +60,9 @@ describe('createCompatWpDefinition feature collections', () => {
describe('createCompatWpPlugin op attachment', () => {
it('always attaches import-preview and apply-redirects, not submit ops', () => {
const names =
- createCompatWpPlugin(createCompatWpDefinition()).ops?.map((o) => o.name) ??
- []
+ createCompatWpPlugin(createCompatWpDefinition()).ops?.map(
+ (o) => o.name,
+ ) ?? []
expect(names).toContain(APPLY_REDIRECTS_OP)
expect(names).not.toContain(SUBMIT_COMMENT_OP)
expect(names).not.toContain(SUBMIT_FORM_OP)
diff --git a/packages/cms-compat-wp/tests/summarize.test.ts b/packages/cms-compat-wp/tests/summarize.test.ts
index 4ea4274c..112a0291 100644
--- a/packages/cms-compat-wp/tests/summarize.test.ts
+++ b/packages/cms-compat-wp/tests/summarize.test.ts
@@ -59,12 +59,17 @@ describe('summarizeEvacuation', () => {
expect(s.detectedPlugins).toEqual(['contact-form-7', 'wordpress-seo'])
expect(s.reportMarkdown).toBe('# Review report')
- expect(s.collections.find((c) => c.collectionName === 'post')).toMatchObject(
- { label: 'Posts', postType: 'post', fieldCount: 3, documentCount: 2 },
- )
- expect(s.collections.find((c) => c.collectionName === 'page')).toMatchObject(
- { fieldCount: 1, documentCount: 1 },
- )
+ expect(
+ s.collections.find((c) => c.collectionName === 'post'),
+ ).toMatchObject({
+ label: 'Posts',
+ postType: 'post',
+ fieldCount: 3,
+ documentCount: 2,
+ })
+ expect(
+ s.collections.find((c) => c.collectionName === 'page'),
+ ).toMatchObject({ fieldCount: 1, documentCount: 1 })
})
it('reports zero documents for an inferred collection with none', () => {
diff --git a/packages/cms-compat-wp/tsconfig.json b/packages/cms-compat-wp/tsconfig.json
index 71d983ce..85ec5a07 100644
--- a/packages/cms-compat-wp/tsconfig.json
+++ b/packages/cms-compat-wp/tsconfig.json
@@ -1,6 +1,11 @@
{
"extends": "../../tsconfig.base.json",
- "include": ["src/**/*.ts", "src/**/*.tsx", "tests/**/*.ts", "vitest.config.ts"],
+ "include": [
+ "src/**/*.ts",
+ "src/**/*.tsx",
+ "tests/**/*.ts",
+ "vitest.config.ts"
+ ],
// The admin route uses `createFileRoute('/wp-import')`, whose path types come
// from the route tree generated in the *consuming* app. In isolation that
// augmentation is absent, so the route is excluded here (same as cms-ui-react).
diff --git a/packages/cms-connect-atproto/README.md b/packages/cms-connect-atproto/README.md
index 9816ba32..19189134 100644
--- a/packages/cms-connect-atproto/README.md
+++ b/packages/cms-connect-atproto/README.md
@@ -26,7 +26,9 @@ export const cms = defineCms(definition, {
plugins: [
createAtprotoConnector({
// Outbound: syndicate the `post` collection.
- publish: { post: { enabled: true, linkBase: 'https://your-site.com/blog' } },
+ publish: {
+ post: { enabled: true, linkBase: 'https://your-site.com/blog' },
+ },
// Inbound: mirror an account into `atproto_posts` every 15 minutes.
sync: [{ actor: 'alice.bsky.social', collection: 'atproto_posts' }],
}),
@@ -38,12 +40,12 @@ Publishing needs a Bluesky app password (Settings, App Passwords). Set `ATP_IDEN
## Credentials
-| Variable | Used for | Default |
-| --- | --- | --- |
-| `ATP_IDENTIFIER` | Login handle or email (publishing) | none (anonymous) |
-| `ATP_APP_PASSWORD` | Bluesky app password (publishing) | none (anonymous) |
-| `ATP_SERVICE` | PDS or entryway URL | `https://bsky.social` |
-| `ATP_LINK_BASE` | Canonical URL base for the link back | none |
+| Variable | Used for | Default |
+| ------------------ | ------------------------------------ | --------------------- |
+| `ATP_IDENTIFIER` | Login handle or email (publishing) | none (anonymous) |
+| `ATP_APP_PASSWORD` | Bluesky app password (publishing) | none (anonymous) |
+| `ATP_SERVICE` | PDS or entryway URL | `https://bsky.social` |
+| `ATP_LINK_BASE` | Canonical URL base for the link back | none |
## CLI
diff --git a/packages/core/README.md b/packages/core/README.md
index 6d15874c..90e908b0 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -42,14 +42,14 @@ model is registered on both client and server.
## Entry points
-| Import | Runs on | Contents |
-| ---------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `@tanstack/cms-core` | client + server | `defineCms`, schema helpers, `opSchemas`, auth types, theme |
-| `@tanstack/cms-core/server` | server | store (`getAs`, `listAs`, `commitDocument`, `stageWrite`, `approve`, …), media library, `runOp`, auth guards, `CmsError` |
-| `@tanstack/cms-core/storage` | config | `StorageAdapter` contract, query/frontmatter utilities (the Postgres engine ships in `@tanstack/cms-store-postgres`) |
-| `@tanstack/cms-core/storage/conformance` | tests | `runStorageConformance()` for custom storage adapters |
-| `@tanstack/cms-core/media` | config | `MediaAdapter` contract, `createLocalMedia()`, image sniffing |
-| `@tanstack/cms-core/media/conformance` | tests | `runMediaConformance()` for custom media adapters |
+| Import | Runs on | Contents |
+| ---------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------ |
+| `@tanstack/cms-core` | client + server | `defineCms`, schema helpers, `opSchemas`, auth types, theme |
+| `@tanstack/cms-core/server` | server | store (`getAs`, `listAs`, `commitDocument`, `stageWrite`, `approve`, …), media library, `runOp`, auth guards, `CmsError` |
+| `@tanstack/cms-core/storage` | config | `StorageAdapter` contract, query/frontmatter utilities (the Postgres engine ships in `@tanstack/cms-store-postgres`) |
+| `@tanstack/cms-core/storage/conformance` | tests | `runStorageConformance()` for custom storage adapters |
+| `@tanstack/cms-core/media` | config | `MediaAdapter` contract, `createLocalMedia()`, image sniffing |
+| `@tanstack/cms-core/media/conformance` | tests | `runMediaConformance()` for custom media adapters |
## Storage
diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts
index 925f805c..d4db6b53 100644
--- a/packages/core/src/config.ts
+++ b/packages/core/src/config.ts
@@ -1553,7 +1553,6 @@ export function getCmsConfig(): ResolvedCmsConfig {
export function isDemoMode(): boolean {
const config = getCmsConfig()
if (config.dev !== undefined) return config.dev
- const env =
- typeof process !== 'undefined' ? process.env.NODE_ENV : undefined
+ const env = typeof process !== 'undefined' ? process.env.NODE_ENV : undefined
return env === 'development' || env === 'test'
}
diff --git a/packages/core/src/server.ts b/packages/core/src/server.ts
index d9e5a16b..04515374 100644
--- a/packages/core/src/server.ts
+++ b/packages/core/src/server.ts
@@ -214,10 +214,7 @@ export {
pendingReleaseChanges,
rollbackRelease,
} from './server/releases'
-export type {
- PendingChange,
- ReleasePreflightIssue,
-} from './server/releases'
+export type { PendingChange, ReleasePreflightIssue } from './server/releases'
export { parseCron, cronMatches, nextCronRun } from './lib/cron'
export type { CronExpr } from './lib/cron'
export type {
diff --git a/packages/core/src/server/auth.ts b/packages/core/src/server/auth.ts
index cf07232c..95b8050d 100644
--- a/packages/core/src/server/auth.ts
+++ b/packages/core/src/server/auth.ts
@@ -419,10 +419,7 @@ const AGENT_SLUG_RE = /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$/
* self-asserted request header (D3: review-queue attribution must be
* trustworthy by construction).
*/
-function bindCredentialAgent(
- session: CmsSession,
- label?: string,
-): CmsSession {
+function bindCredentialAgent(session: CmsSession, label?: string): CmsSession {
return label && AGENT_SLUG_RE.test(label)
? { ...session, agent: label }
: session
@@ -477,7 +474,8 @@ export async function verifyMcpAccess(
await rateLimit('auth', request)
return {
allowed: false,
- reason: 'Unauthorized: the presented MCP credential is not recognized.',
+ reason:
+ 'Unauthorized: the presented MCP credential is not recognized.',
}
}
const role = matched.role
@@ -499,7 +497,10 @@ export async function verifyMcpAccess(
}
// Agent identity is bound to the credential (the key's label), never to a
// self-asserted request header.
- return { allowed: true, session: bindCredentialAgent(session, matched.label) }
+ return {
+ allowed: true,
+ session: bindCredentialAgent(session, matched.label),
+ }
}
}
const session = await resolveSession(request)
diff --git a/packages/core/src/server/content-migrations.ts b/packages/core/src/server/content-migrations.ts
index 422c2aa9..55c3b612 100644
--- a/packages/core/src/server/content-migrations.ts
+++ b/packages/core/src/server/content-migrations.ts
@@ -13,7 +13,11 @@ import { getCmsConfig } from '../config'
import { CmsError } from '../errors'
import { collections, isCollectionReadOnly, schemaFor } from '../schema'
import { denormalize } from './indexing'
-import { ensureDefaultAdapter, getStorage, resolveStorageAdapter } from './storage'
+import {
+ ensureDefaultAdapter,
+ getStorage,
+ resolveStorageAdapter,
+} from './storage'
import type { Collection, ContentMigration, Doc } from '../schema'
import type { PendingRecord, StorageOps } from '../storage/types'
import type { WhereClause } from '../storage/where'
diff --git a/packages/core/src/server/releases.ts b/packages/core/src/server/releases.ts
index d9ae972d..dc04ce14 100644
Binary files a/packages/core/src/server/releases.ts and b/packages/core/src/server/releases.ts differ
diff --git a/packages/core/src/server/storage.ts b/packages/core/src/server/storage.ts
index 93303ebe..4d9cec46 100644
--- a/packages/core/src/server/storage.ts
+++ b/packages/core/src/server/storage.ts
@@ -126,9 +126,8 @@ async function getDefaultAdapter(): Promise {
if (!adapter) {
let createPgliteStorage
try {
- ;({ createPgliteStorage } = await import(
- '@tanstack/cms-store-postgres/pglite'
- ))
+ ;({ createPgliteStorage } =
+ await import('@tanstack/cms-store-postgres/pglite'))
} catch {
throw new Error(
'No `storage` configured and the embedded engine is unavailable. ' +
diff --git a/packages/core/src/server/store/document-state.ts b/packages/core/src/server/store/document-state.ts
index b90fccde..a43a00d6 100644
--- a/packages/core/src/server/store/document-state.ts
+++ b/packages/core/src/server/store/document-state.ts
@@ -957,8 +957,7 @@ export async function executeStrategyWrite(
const releasedMode =
(getCmsConfig().publishing?.kind ?? 'live') === 'released'
const pendingPublish = releasedMode && has('publish')
- const pendingUnpublish =
- releasedMode && has('unpublish') && !has('publish')
+ const pendingUnpublish = releasedMode && has('unpublish') && !has('publish')
const pendingRelease = pendingPublish || pendingUnpublish
const stagesFirst =
has('stage') &&
@@ -1374,7 +1373,8 @@ export async function executeStrategyWrite(
_revision: revision,
_updatedAt: now,
}
- if (!live) await writeDocument(tx, write.collection, write.docId, final, now)
+ if (!live)
+ await writeDocument(tx, write.collection, write.docId, final, now)
// Consume the staged change set exactly as a commit would.
if (consumed && (!write.incoming || stagesFirst)) {
await tx.deletePending(consumed.id)
diff --git a/packages/core/src/storage/conformance.ts b/packages/core/src/storage/conformance.ts
index 880b12b2..cb7f470f 100644
--- a/packages/core/src/storage/conformance.ts
+++ b/packages/core/src/storage/conformance.ts
@@ -1251,7 +1251,12 @@ export function runStorageConformance(
withStorage(async (s) => {
await seedPosts(s)
await s.putDocument(
- { collection: 'page', id: 'p', doc: { title: 'Pg' } as never, updatedAt: now },
+ {
+ collection: 'page',
+ id: 'p',
+ doc: { title: 'Pg' } as never,
+ updatedAt: now,
+ },
index('Pg'),
)
expect(await s.listPendingReleaseChanges()).toEqual([])
@@ -1293,10 +1298,17 @@ export function runStorageConformance(
// A content write must not clobber pending state.
await s.putDocument(
- { collection: 'post', id: 'a', doc: { title: 'A2' } as never, updatedAt: now },
+ {
+ collection: 'post',
+ id: 'a',
+ doc: { title: 'A2' } as never,
+ updatedAt: now,
+ },
index('A2', { published: true }),
)
- expect((await s.getDocument('post', 'a'))?.pendingReleaseRevision).toBe(4)
+ expect((await s.getDocument('post', 'a'))?.pendingReleaseRevision).toBe(
+ 4,
+ )
await s.setPendingRelease('post', 'a', null)
const after = await s.listPendingReleaseChanges()
diff --git a/packages/core/tests/access-context.test.ts b/packages/core/tests/access-context.test.ts
index 2ceb7467..5644b1ad 100644
--- a/packages/core/tests/access-context.test.ts
+++ b/packages/core/tests/access-context.test.ts
@@ -320,10 +320,10 @@ describe('derivation', () => {
expect(viewerRelations.items[0]?.relations?.author).toMatchObject({
title: 'Published memo',
})
- const bySlug = await cmsAs(
- cms,
- siteReadContext(as('viewer')),
- ).get({ collection: 'post', locator: 'live' })
+ const bySlug = await cmsAs(cms, siteReadContext(as('viewer'))).get({
+ collection: 'post',
+ locator: 'live',
+ })
expect(bySlug?.relations?.author).toMatchObject({ title: 'Published memo' })
const ruled = await cmsAs(
cms,
diff --git a/packages/core/tests/readiness.test.ts b/packages/core/tests/readiness.test.ts
index d88ecbbf..ee75c77c 100644
--- a/packages/core/tests/readiness.test.ts
+++ b/packages/core/tests/readiness.test.ts
@@ -69,9 +69,7 @@ describe('1.0 workflow invariants', () => {
it('keeps per-collection writable adapters inside their own transaction', async () => {
await setup({
- collections: [
- { ...post, storage: createPgliteStorage() },
- ],
+ collections: [{ ...post, storage: createPgliteStorage() }],
})
const proposals = await Promise.all(
['First', 'Second'].map((title) =>
diff --git a/packages/core/tests/store.test.ts b/packages/core/tests/store.test.ts
index ea28dd74..b773df21 100644
--- a/packages/core/tests/store.test.ts
+++ b/packages/core/tests/store.test.ts
@@ -1,9 +1,4 @@
-import {
- mkdirSync,
- mkdtempSync,
- rmSync,
- writeFileSync,
-} from 'node:fs'
+import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { afterEach, describe, expect, it, vi } from 'vitest'
diff --git a/packages/core/tests/transfer.test.ts b/packages/core/tests/transfer.test.ts
index 6c010626..319cec58 100644
--- a/packages/core/tests/transfer.test.ts
+++ b/packages/core/tests/transfer.test.ts
@@ -239,30 +239,36 @@ describe('export / import', () => {
).toBeNull()
})
- it('replace deletes every missing document past the first page', { timeout: 20000 }, async () => {
- setup()
- const many = parseCmsExport({
- format: 'tanstack-cms-export',
- version: 1,
- exportedAt: new Date().toISOString(),
- documents: Array.from({ length: 1201 }, (_, i) => ({
- collection: 'post',
- id: `p${String(i).padStart(4, '0')}`,
- doc: { title: `P${i}` },
- })),
- })
- await importContent(many)
- const keepOne = parseCmsExport({
- format: 'tanstack-cms-export',
- version: 1,
- exportedAt: new Date().toISOString(),
- documents: [{ collection: 'post', id: 'p0600', doc: { title: 'Kept' } }],
- })
- const result = await importContent(keepOne, { mode: 'replace' })
- expect(result).toMatchObject({ updated: 1, deleted: 1200 })
- const left = await exportContent()
- expect(left.documents.map((d) => d.id)).toEqual(['p0600'])
- })
+ it(
+ 'replace deletes every missing document past the first page',
+ { timeout: 20000 },
+ async () => {
+ setup()
+ const many = parseCmsExport({
+ format: 'tanstack-cms-export',
+ version: 1,
+ exportedAt: new Date().toISOString(),
+ documents: Array.from({ length: 1201 }, (_, i) => ({
+ collection: 'post',
+ id: `p${String(i).padStart(4, '0')}`,
+ doc: { title: `P${i}` },
+ })),
+ })
+ await importContent(many)
+ const keepOne = parseCmsExport({
+ format: 'tanstack-cms-export',
+ version: 1,
+ exportedAt: new Date().toISOString(),
+ documents: [
+ { collection: 'post', id: 'p0600', doc: { title: 'Kept' } },
+ ],
+ })
+ const result = await importContent(keepOne, { mode: 'replace' })
+ expect(result).toMatchObject({ updated: 1, deleted: 1200 })
+ const left = await exportContent()
+ expect(left.documents.map((d) => d.id)).toEqual(['p0600'])
+ },
+ )
it('rejects files that are not CMS exports or name unknown collections', async () => {
setup()
diff --git a/packages/search-cms/tests/cms.test.ts b/packages/search-cms/tests/cms.test.ts
index 0b5ea17f..ea0d8c41 100644
--- a/packages/search-cms/tests/cms.test.ts
+++ b/packages/search-cms/tests/cms.test.ts
@@ -295,10 +295,7 @@ it('characterizes cmsSearchFields for each field type × searchable/facet', () =
...collection,
titleField: 'name',
search: { fields: searchFields },
- fields: [
- { name: 'name', label: 'Name', type: 'text' },
- f as never,
- ],
+ fields: [{ name: 'name', label: 'Name', type: 'text' }, f as never],
})
return Object.hasOwn(reg, 'f') ? reg.f : 'skip'
} catch {
@@ -340,16 +337,23 @@ it('characterizes cmsSearchFields for each field type × searchable/facet', () =
// non-searchable facet; a plain one (no facet, not searchable) is skipped.
expect(
run(
- { name: 'f', label: 'F', type: 'relation', collection: 'x', many: true, facet: true },
+ {
+ name: 'f',
+ label: 'F',
+ type: 'relation',
+ collection: 'x',
+ many: true,
+ facet: true,
+ },
['name'],
),
).toEqual({ type: 'string', facet: true, scalar: false, searchable: false })
expect(
run({ name: 'f', label: 'F', type: 'multiselect', facet: true }, ['name']),
).toEqual({ type: 'string', facet: true, scalar: false, searchable: false })
- expect(
- run({ name: 'f', label: 'F', type: 'multiselect' }, ['name']),
- ).toBe('skip')
+ expect(run({ name: 'f', label: 'F', type: 'multiselect' }, ['name'])).toBe(
+ 'skip',
+ )
// A multiselect/relation-many as a searchable field is rejected.
expect(
run({ name: 'f', label: 'F', type: 'multiselect', facet: true }, [
diff --git a/packages/store-postgres/package.json b/packages/store-postgres/package.json
index e14a07bd..2fbde352 100644
--- a/packages/store-postgres/package.json
+++ b/packages/store-postgres/package.json
@@ -42,7 +42,7 @@
"types": "./dist/pglite.d.ts",
"import": "./dist/pglite.js"
},
- "./package.json": "./package.json"
+ "./package.json": "./package.json"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts"
diff --git a/packages/store-postgres/src/index.ts b/packages/store-postgres/src/index.ts
index b4d3fc07..a3cddbc8 100644
--- a/packages/store-postgres/src/index.ts
+++ b/packages/store-postgres/src/index.ts
@@ -721,10 +721,12 @@ export function createPostgresStorage(
},
async getLiveRelease() {
return (
- await records(
- `SELECT record FROM ${t('releases')} WHERE status = 'live' ORDER BY sequence DESC LIMIT 1`,
- )
- )[0] ?? null
+ (
+ await records(
+ `SELECT record FROM ${t('releases')} WHERE status = 'live' ORDER BY sequence DESC LIMIT 1`,
+ )
+ )[0] ?? null
+ )
},
async updateReleaseStatus(id, status) {
await q(
diff --git a/packages/store-postgres/src/pglite.ts b/packages/store-postgres/src/pglite.ts
index 0690f006..6a3a48c0 100644
--- a/packages/store-postgres/src/pglite.ts
+++ b/packages/store-postgres/src/pglite.ts
@@ -26,7 +26,9 @@ export interface PgliteStorageOptions {
* serializes queries internally; this serializes transaction boundaries so two
* `BEGIN`s never overlap on the single connection.
*/
-export function createPglitePool(options: { dataDir?: string } = {}): PgPoolLike {
+export function createPglitePool(
+ options: { dataDir?: string } = {},
+): PgPoolLike {
let db: PGlite | undefined
let tail: Promise = Promise.resolve()
diff --git a/packages/store-postgres/tests/pglite.test.ts b/packages/store-postgres/tests/pglite.test.ts
index 4ef7148b..67089784 100644
--- a/packages/store-postgres/tests/pglite.test.ts
+++ b/packages/store-postgres/tests/pglite.test.ts
@@ -4,8 +4,12 @@ import { createPgliteStorage } from '../src/pglite'
// The embedded Postgres engine (PGlite) runs the shared storage conformance
// suite in-process — no external Postgres needed, so this always runs (D12).
-runStorageConformance('pglite (embedded Postgres)', () => createPgliteStorage(), {
- describe,
- it,
- expect,
-})
+runStorageConformance(
+ 'pglite (embedded Postgres)',
+ () => createPgliteStorage(),
+ {
+ describe,
+ it,
+ expect,
+ },
+)
diff --git a/packages/ui-react/src/routes/dashboard.tsx b/packages/ui-react/src/routes/dashboard.tsx
index fdc55ef6..2e4472fc 100644
--- a/packages/ui-react/src/routes/dashboard.tsx
+++ b/packages/ui-react/src/routes/dashboard.tsx
@@ -197,7 +197,9 @@ function DashboardPage() {
>
- {adminT(DECISION_LABELS[a.decision] ?? TYPE_LABELS.update)}
+ {adminT(
+ DECISION_LABELS[a.decision] ?? TYPE_LABELS.update,
+ )}
{adminT(TYPE_LABELS[a.type] ?? TYPE_LABELS.update)}
diff --git a/packages/ui-react/src/routes/media.tsx b/packages/ui-react/src/routes/media.tsx
index 33af1385..f975f613 100644
--- a/packages/ui-react/src/routes/media.tsx
+++ b/packages/ui-react/src/routes/media.tsx
@@ -353,7 +353,11 @@ function MediaDetail({
const message = inUse
? adminT('media.inUseCount', { count: usage ?? 0 })
: adminT('media.deleteConfirm')
- if (!window.confirm(inUse ? adminT('media.confirmForceDelete', { message }) : message)) {
+ if (
+ !window.confirm(
+ inUse ? adminT('media.confirmForceDelete', { message }) : message,
+ )
+ ) {
return
}
setBusy(true)
@@ -407,7 +411,11 @@ function MediaDetail({
/>
) : (
- {item.kind === 'video' ? '▶' : item.kind === 'audio' ? '♪' : '📄'}
+ {item.kind === 'video'
+ ? '▶'
+ : item.kind === 'audio'
+ ? '♪'
+ : '📄'}
)}
diff --git a/packages/ui-react/src/routes/profile.tsx b/packages/ui-react/src/routes/profile.tsx
index ec02f684..8afcb35a 100644
--- a/packages/ui-react/src/routes/profile.tsx
+++ b/packages/ui-react/src/routes/profile.tsx
@@ -45,9 +45,7 @@ function ProfilePage() {
{adminT('profile.email')}
{user.email ?? '—'}
{adminT('profile.userId')}
-
- {user.id}
-
+ {user.id}
) : (
{adminT('profile.anon')}
diff --git a/packages/ui-react/tests/virtual-routes.test.ts b/packages/ui-react/tests/virtual-routes.test.ts
index 503af9bf..ad35d7df 100644
--- a/packages/ui-react/tests/virtual-routes.test.ts
+++ b/packages/ui-react/tests/virtual-routes.test.ts
@@ -253,7 +253,8 @@ describe('createRoutes', () => {
it('omits the admin index when there is no admin base', () => {
const root = createRoutes(definition())
const dash = (root.children ?? []).find(
- (c) => c.type === 'route' && 'file' in c && /dashboard/.test(c.file ?? ''),
+ (c) =>
+ c.type === 'route' && 'file' in c && /dashboard/.test(c.file ?? ''),
)
expect(dash).toBeUndefined()
// Only the public index remains at root; no second index is introduced.
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 87da7810..1ad8880c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -24,14 +24,14 @@ importers:
specifier: 4.1.11
version: 4.1.11(vitest@4.1.11)
eslint-plugin-unused-imports:
- specifier: ^4.3.0
+ specifier: ^4.4.1
version: 4.4.1(eslint@10.12.0(jiti@2.7.0)(supports-color@7.2.0))
kiira:
specifier: 0.7.1
version: 0.7.1
knip:
- specifier: ^6.26.0
- version: 6.39.0
+ specifier: ^6.49.0
+ version: 6.49.0(@clack/prompts@1.8.1)
markdown-link-extractor:
specifier: ^4.0.3
version: 4.0.4
@@ -54,10 +54,10 @@ importers:
specifier: ^4.0.0
version: 4.0.0
publint:
- specifier: ^0.3.15
+ specifier: ^0.3.25
version: 0.3.25
sherif:
- specifier: ^1.9.0
+ specifier: ^1.13.0
version: 1.13.0
tinyglobby:
specifier: ^0.2.17
@@ -4070,137 +4070,137 @@ packages:
'@oslojs/encoding@1.1.0':
resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==}
- '@oxc-parser/binding-android-arm-eabi@0.150.0':
- resolution: {integrity: sha512-oQef2Zu4Prz1KLKznz3HqZzU9uVoA5PMoDZuuLmqms7hKmKSAPzlaMnLllJq3t+rgKmfJJ2siPrpZfFrW06btw==}
+ '@oxc-parser/binding-android-arm-eabi@0.160.0':
+ resolution: {integrity: sha512-IGhHufQ5uRhivrpzCcUJ92Mj4kYyFVhghaWk9hgZP/b+7WxdzdhFqBbH+PwEcfssDdIW10YHXcFvWib3kMX4Zg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
- '@oxc-parser/binding-android-arm64@0.150.0':
- resolution: {integrity: sha512-B6ofpoFiAUwIZ0MJ2IgHPvZK8FAtL4qzSZRwOkAKIfxEobE1mQC8nDdiFZj7pUaJiVUVCsfkMsBJKedzO8rZvA==}
+ '@oxc-parser/binding-android-arm64@0.160.0':
+ resolution: {integrity: sha512-VxqVDFdTJG/QrJJ5pc/JIocKExtxCGcKf9qBsjIMS2VymVnHNdDu58d35pkgxIMFhxJ92YD79+66SBv86GXfCw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
- '@oxc-parser/binding-darwin-arm64@0.150.0':
- resolution: {integrity: sha512-J+9IHKzx/bSz1JetOfD4zKXSK9sOm4/a7+0qomJODcTL6JsRXGeV/ZdkAPSIDydfFmWzYCraMlQEosSZEyBYkQ==}
+ '@oxc-parser/binding-darwin-arm64@0.160.0':
+ resolution: {integrity: sha512-W5ULJkX2YAZAi6h2gkWCZCq1Ws5ZTIejBXjQP3tdf/UOeJaNQes4Vo5659/szYrFoBTef+WWcOU4HaY3TT4OYQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
- '@oxc-parser/binding-darwin-x64@0.150.0':
- resolution: {integrity: sha512-v6IPfcAcSYrBWXV5Tce1DmxDMXLhEYpIIWiRFPJopgCVscZdLaV4MRQOUxvL3usQlw+yrwYOjBFB9IwBx+jUiQ==}
+ '@oxc-parser/binding-darwin-x64@0.160.0':
+ resolution: {integrity: sha512-NNV6qakT/DX8SLqpe/gJ2ab2yDVJ+y6DKdJrbyTAdkpMjTP1KljiUxtAwoKVlHVPqfGMFPpSHIU9yL3FAWG/3w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
- '@oxc-parser/binding-freebsd-x64@0.150.0':
- resolution: {integrity: sha512-AoR/4jD02HET0KO0yNT4nbTE+XJUxiO9jB1X/ycEjUE3WrIJ3IjV/Vf+gskhWLcqqeXfvNnkDtBR7epllAm88A==}
+ '@oxc-parser/binding-freebsd-x64@0.160.0':
+ resolution: {integrity: sha512-P1Ay7bTnFJarHefoBOOrzZ8ynRluk0w92p/+PwkAYgg38Fh5Z2eQN2slzYqODyNQRDd2YrdecLV038V6KmqfXw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
- '@oxc-parser/binding-linux-arm-gnueabihf@0.150.0':
- resolution: {integrity: sha512-A/hycCFjLUrCmLoL5O/vBp40ohlaXO1Ta3v5hqYZxicYFs129wZmgZJggcW4mYGYbZebQLhup+N8JjeQl8qwyw==}
+ '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0':
+ resolution: {integrity: sha512-jw16rzFMeyaGRTVoHTiKAe5qHa6T5v54GX0TGoAvbEskN+hQcK0pZQ+pi5n3yGZ7b1+vTF2eBuqQP98mgcd6XA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxc-parser/binding-linux-arm-musleabihf@0.150.0':
- resolution: {integrity: sha512-pbqahg1Pkz7J4RKmXm30s/iQu99hv64ayXCu8P4p75HcEH5azOdR4eGqiB6lFGkFR3mMpzaYsSKLkS8oJbjmeQ==}
+ '@oxc-parser/binding-linux-arm-musleabihf@0.160.0':
+ resolution: {integrity: sha512-B55bnJn8XMC8NDBbEsL6Za2ZuFx6RIG49GMSlHYfpIc2pWQ6sbJRwarP+iKXnPgpJ1N7wfOAotMp58NUYjzQaQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxc-parser/binding-linux-arm64-gnu@0.150.0':
- resolution: {integrity: sha512-HV11aRbBQGwqv8bEo+K/6qr88uB4fEe1mhXncMhlVCrj+WpBSraxrUzHaPVmeQRU6x6x8v/3DuCbbo93rpp+fw==}
+ '@oxc-parser/binding-linux-arm64-gnu@0.160.0':
+ resolution: {integrity: sha512-YKVHxONDpWXTPfilLv2MKvaI7VbYnKHARr5wJ3KKKGk0OkauDc0tVFyZlKFwIy9+br46fh8AjTVCnz6+9gKxVA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@oxc-parser/binding-linux-arm64-musl@0.150.0':
- resolution: {integrity: sha512-k6pVkJqALwtEuP4zukVhGRhdIy4+ofChUIUUsAHHyqDZlNsknmel3JjbggrJiWGaes6h/dIcWmEXsKW4SmK9oQ==}
+ '@oxc-parser/binding-linux-arm64-musl@0.160.0':
+ resolution: {integrity: sha512-uiVA0AemCVB3+oZ3JmjQCSEqiGIgl+o3+bLqORIfviJbyYlVUChoRh6cVbyyDG6zm4fW0RtQIdKq3fVYuNTA3Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@oxc-parser/binding-linux-ppc64-gnu@0.150.0':
- resolution: {integrity: sha512-tEFg39mw/rHO5n8GK2DR4ZMFfsPQZtnQIPbsIpjoQRomJc/2tRfsCSmCT6gNit+NZGoeJG5aH9ATDH5bf0WnoQ==}
+ '@oxc-parser/binding-linux-ppc64-gnu@0.160.0':
+ resolution: {integrity: sha512-h/tr4lWGdRXs4rUktl84Z0CprQhdDlxN4D82/cCcoKr0Kb4TEIJriXZVqHPznp12/uBWcV+BiihUBPbeyZm1KQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@oxc-parser/binding-linux-riscv64-gnu@0.150.0':
- resolution: {integrity: sha512-0JO7IFkoek6HqV589Menx3hJySNXi6quRhO4tq2P7kpEHKEXoDATnoPVUpn5B7gDH2KLkdo751N0uIrGJFCTCw==}
+ '@oxc-parser/binding-linux-riscv64-gnu@0.160.0':
+ resolution: {integrity: sha512-bA/Ba24KZYxorIUBHF2NbXM0OVY24xowGu4L0YBzpXhivt+ks1z8BT/c+BYGSfdFFqWrfNkC5TJjQGWdRkUHWQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@oxc-parser/binding-linux-riscv64-musl@0.150.0':
- resolution: {integrity: sha512-7XPzREnyAS5wHU9aB+49Uaqgoo1gVCklHc3DRlc3fJy2tXD/eAJFN1QFz/crj+Ulup5P1+axNREF+/RGaB/IRA==}
+ '@oxc-parser/binding-linux-riscv64-musl@0.160.0':
+ resolution: {integrity: sha512-1uI9RghjO7/JQzkL9M/EDnG0Egy5z4v3k5TCUbPESZVUawHEmC52MMnCLe7f2CjMtiLjsm879CnO2HkRtsECNA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@oxc-parser/binding-linux-s390x-gnu@0.150.0':
- resolution: {integrity: sha512-7n7ZxcbRWDFaTdyj8M8p0O9OfzoMKm8O6syBAIgcSutbOALq0Bb9G52Me+XH0anMLZV+NgXc726gqgG2q39vcQ==}
+ '@oxc-parser/binding-linux-s390x-gnu@0.160.0':
+ resolution: {integrity: sha512-1gaVKLXjT+UML8w8ypK93KUJurvUUmegqgQ/7qijDNpGCuogmTOIu0KgsYqL2hH//amY3AtfQhTTMlw9l363wA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@oxc-parser/binding-linux-x64-gnu@0.150.0':
- resolution: {integrity: sha512-Vx0GSA9ZCRTUiczoEQnIIyXkMvtEY8uc6IiwLQtMe5ci2sXPqjrry0Ek5fsPP1k2kCzkML3ow9UOOEgnEDi7Bw==}
+ '@oxc-parser/binding-linux-x64-gnu@0.160.0':
+ resolution: {integrity: sha512-v44/JCrzpIof2jAJwF9W1j9l7mZKEaKihd8vBECBaNyIPcOiO4dtkeGX51MxnGmrJbsltdvTJb60VXLyMyAD2w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@oxc-parser/binding-linux-x64-musl@0.150.0':
- resolution: {integrity: sha512-ii4/9m3viDLssMnfXU7/Pni/3nYplApuGayceX4qsVGaqqQJCx3tHIH9M/HWIeSty5i8LjS21zPYT6lVIkwLxw==}
+ '@oxc-parser/binding-linux-x64-musl@0.160.0':
+ resolution: {integrity: sha512-NOT9x+x27Aitn+z6PggidaeHiKOpbglRXwzcHg+3VqbMT7nv/C3fnXKeVESy4o0u3Yb3mEocwPrtzlT5O53JSA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
- '@oxc-parser/binding-openharmony-arm64@0.150.0':
- resolution: {integrity: sha512-ZtoxX5rez36ZWkwtiEhjkCPnlTPoQ2I7lIL0IYZ1yjxMYohbvoOjBmUIZzrf9W/HouONq0omIfTeCWEY+R380w==}
+ '@oxc-parser/binding-openharmony-arm64@0.160.0':
+ resolution: {integrity: sha512-kXFdUqEkbB1E66dfqu7sk65w0CaDVp+uPeJ4eOacxBuVgKk/poy+b8/XpFfV443UNB8LUUvzgTzyWLxDQte2Dw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
- '@oxc-parser/binding-win32-arm64-msvc@0.150.0':
- resolution: {integrity: sha512-VqeRb5JX/bKYBrff7TUDvJyKY0914UzuCkuXIGxJS4FUmvMNfqkCbc7Sq90iMz9DlmAtlggwaBYQ9eg3h3ltiw==}
+ '@oxc-parser/binding-win32-arm64-msvc@0.160.0':
+ resolution: {integrity: sha512-tzYHz6BOwmKCY2c8txeV06CkMzwEVQhFwug8OR75q2UVRMfksf9yD5UBjAeauPEiFhzNogg1RRyk8UZ0bjMXvg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
- '@oxc-parser/binding-win32-ia32-msvc@0.150.0':
- resolution: {integrity: sha512-EPqJfeZ4Pgg2BJSsCV8GozxV0FDltRzpVtGVa1r2noJu1iu+opOw3gtBWXwIo9odCT/MdFfyHxdy0/CRqs3OqA==}
+ '@oxc-parser/binding-win32-ia32-msvc@0.160.0':
+ resolution: {integrity: sha512-vyYZ4gcWUPuPANDj66eBnZ7+CFzUU0pzX28a5armxejWxM7onM3awHkM4PB/al8eEZ3MH8l0AprX/1jXrfGh7Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ia32]
os: [win32]
- '@oxc-parser/binding-win32-x64-msvc@0.150.0':
- resolution: {integrity: sha512-n5YMzbqwPQqozbkrexi0lNZrUz5cnPHalYpFWe6Dau7AmKIWNo+y24IwzDuZEQtEdUHuKhXmMMih/MPjOI+CMw==}
+ '@oxc-parser/binding-win32-x64-msvc@0.160.0':
+ resolution: {integrity: sha512-KvENUAjmLfLBJBTF9yQ2wb5/DH41+FPM45oM7NMTgW0R3kN49NUj314SaDqqqkba+4cNTBt8NA2Ux5dekZB68w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
- '@oxc-project/types@0.150.0':
- resolution: {integrity: sha512-rDS5/31E9HfPl/CIzGrn0DOlvBbXFseQ5URJ9sYMfstbKLD/c6Gm9vmRzRGDdAXyOIL4zmO37lc9RIwYqVruZw==}
-
'@oxc-project/types@0.152.0':
resolution: {integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==}
'@oxc-project/types@0.156.0':
resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==}
+ '@oxc-project/types@0.160.0':
+ resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==}
+
'@oxc-resolver/binding-android-arm-eabi@11.24.2':
resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==}
cpu: [arm]
@@ -7022,9 +7022,9 @@ packages:
resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==}
engines: {node: '>= 6'}
- formatly@0.7.1:
- resolution: {integrity: sha512-ESuCEJE0SGgabl9q+zABI8LhJDmF+8nhpuqDzuM48HfJ9QTD5o6PqFJDFZY7w6f8xsh5lixuj5nJsQNvYOWvKQ==}
- engines: {node: '>=18.3.0'}
+ formatly@0.12.3:
+ resolution: {integrity: sha512-jGtjZLVw6OXvfwqxrxYBc+x+CxmOcMT/KjZagmkrYCQTEtQxJPablRqZPFSNq75drNsHsadjb1djIsE9KE705w==}
+ engines: {node: ^20.12.0 || >=22}
hasBin: true
formdata-polyfill@4.0.10:
@@ -7611,8 +7611,8 @@ packages:
resolution: {integrity: sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==}
engines: {node: '>= 8'}
- knip@6.39.0:
- resolution: {integrity: sha512-Y7g6Ve1ATMox1u1v+gx3z9LTlvzVLTJISm/LVn9TgBU4qc7OoC63AWGO8qCFPVDDdaqlYdXkDDvvO1METBfTRw==}
+ knip@6.49.0:
+ resolution: {integrity: sha512-8Gf4R0xcJx1NdNKfr6gOGgSVBE1flB+KHPKPybDTKJ/hPtnswxyFE7Zpsk71kBvzAKReezakbe3DbQ0qAT4vzA==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@@ -8344,8 +8344,8 @@ packages:
outdent@0.5.0:
resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==}
- oxc-parser@0.150.0:
- resolution: {integrity: sha512-zwajKw1GUa57IOdafIS7/yOObGF2NihwIfZfs5yJTRprMSkiwhWOc/k+n8bwnUPbHr2/XsjfBO8KyTPaW3VpWg==}
+ oxc-parser@0.160.0:
+ resolution: {integrity: sha512-IIc9PydmdnTcH1hucWCHfTUbAuHWPDEs8+WlmW7td3jJnaYrbzvPQgcc99FEJc0gURrVU8EskpAr2VMyJ8VbzA==}
engines: {node: ^20.19.0 || >=22.12.0}
oxc-resolver@11.24.2:
@@ -8456,6 +8456,15 @@ packages:
resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
engines: {node: '>=8'}
+ parse-standard-args@0.3.0:
+ resolution: {integrity: sha512-SH663jox6V7vxSZgroZJw9DgvSbcNHWOnjHjgvsPyj0/+OIbFraNJyDQbA+ATaAUIi0OGAmV27bIGUgcAEM41g==}
+ engines: {node: '>=18.7.0'}
+ peerDependencies:
+ '@clack/prompts': '>=0.11'
+ peerDependenciesMeta:
+ '@clack/prompts':
+ optional: true
+
parse5-htmlparser2-tree-adapter@7.1.0:
resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==}
@@ -9157,10 +9166,6 @@ packages:
resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==}
engines: {node: '>= 18'}
- smol-toml@1.9.0:
- resolution: {integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ==}
- engines: {node: '>= 18'}
-
smol-toml@1.9.1:
resolution: {integrity: sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==}
engines: {node: '>= 18'}
@@ -9500,8 +9505,8 @@ packages:
ultrahtml@1.7.0:
resolution: {integrity: sha512-2xRd0VHoAQE4M+vF/DvFFB7pUV0ZxTW1TLi7lHQWnF/Sb5TPeEUV/l+hxcNnGO00ZXGnR0voCMmYRKQf+rvJ2g==}
- unbash@4.0.12:
- resolution: {integrity: sha512-PnKvRX+Fbxl/usVlTr/31tXIOVAH+8OdC9qaxUQcvurwEnoc3Vk/ipi2Ce8IjMxzK9byfSGdsUBjqqJGc1o5lw==}
+ unbash@6.0.5:
+ resolution: {integrity: sha512-5P8o+nYRueKpHxmemofYqZRZCSWAi+Tqy31MQS8l/sT54Z+Axn55N9CnWPo19BxxJD4wYYf6RqlcURhWkrFXew==}
engines: {node: '>=14'}
unconfig-core@7.5.0:
@@ -10085,9 +10090,6 @@ packages:
zod@3.25.76:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
- zod@4.6.5:
- resolution: {integrity: sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==}
-
zod@4.6.7:
resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==}
@@ -11878,69 +11880,69 @@ snapshots:
'@oslojs/encoding@1.1.0': {}
- '@oxc-parser/binding-android-arm-eabi@0.150.0':
+ '@oxc-parser/binding-android-arm-eabi@0.160.0':
optional: true
- '@oxc-parser/binding-android-arm64@0.150.0':
+ '@oxc-parser/binding-android-arm64@0.160.0':
optional: true
- '@oxc-parser/binding-darwin-arm64@0.150.0':
+ '@oxc-parser/binding-darwin-arm64@0.160.0':
optional: true
- '@oxc-parser/binding-darwin-x64@0.150.0':
+ '@oxc-parser/binding-darwin-x64@0.160.0':
optional: true
- '@oxc-parser/binding-freebsd-x64@0.150.0':
+ '@oxc-parser/binding-freebsd-x64@0.160.0':
optional: true
- '@oxc-parser/binding-linux-arm-gnueabihf@0.150.0':
+ '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0':
optional: true
- '@oxc-parser/binding-linux-arm-musleabihf@0.150.0':
+ '@oxc-parser/binding-linux-arm-musleabihf@0.160.0':
optional: true
- '@oxc-parser/binding-linux-arm64-gnu@0.150.0':
+ '@oxc-parser/binding-linux-arm64-gnu@0.160.0':
optional: true
- '@oxc-parser/binding-linux-arm64-musl@0.150.0':
+ '@oxc-parser/binding-linux-arm64-musl@0.160.0':
optional: true
- '@oxc-parser/binding-linux-ppc64-gnu@0.150.0':
+ '@oxc-parser/binding-linux-ppc64-gnu@0.160.0':
optional: true
- '@oxc-parser/binding-linux-riscv64-gnu@0.150.0':
+ '@oxc-parser/binding-linux-riscv64-gnu@0.160.0':
optional: true
- '@oxc-parser/binding-linux-riscv64-musl@0.150.0':
+ '@oxc-parser/binding-linux-riscv64-musl@0.160.0':
optional: true
- '@oxc-parser/binding-linux-s390x-gnu@0.150.0':
+ '@oxc-parser/binding-linux-s390x-gnu@0.160.0':
optional: true
- '@oxc-parser/binding-linux-x64-gnu@0.150.0':
+ '@oxc-parser/binding-linux-x64-gnu@0.160.0':
optional: true
- '@oxc-parser/binding-linux-x64-musl@0.150.0':
+ '@oxc-parser/binding-linux-x64-musl@0.160.0':
optional: true
- '@oxc-parser/binding-openharmony-arm64@0.150.0':
+ '@oxc-parser/binding-openharmony-arm64@0.160.0':
optional: true
- '@oxc-parser/binding-win32-arm64-msvc@0.150.0':
+ '@oxc-parser/binding-win32-arm64-msvc@0.160.0':
optional: true
- '@oxc-parser/binding-win32-ia32-msvc@0.150.0':
+ '@oxc-parser/binding-win32-ia32-msvc@0.160.0':
optional: true
- '@oxc-parser/binding-win32-x64-msvc@0.150.0':
+ '@oxc-parser/binding-win32-x64-msvc@0.160.0':
optional: true
- '@oxc-project/types@0.150.0': {}
-
'@oxc-project/types@0.152.0': {}
'@oxc-project/types@0.156.0': {}
+ '@oxc-project/types@0.160.0': {}
+
'@oxc-resolver/binding-android-arm-eabi@11.24.2':
optional: true
@@ -15204,10 +15206,15 @@ snapshots:
hasown: 2.0.4
mime-types: 2.1.35
- formatly@0.7.1:
+ formatly@0.12.3(@clack/prompts@1.8.1):
dependencies:
fd-package-json: 2.0.0
- package-manager-detector: 1.8.0
+ package-manager-detector: 1.9.0
+ parse-standard-args: 0.3.0(@clack/prompts@1.8.1)
+ tinyexec: 1.3.1
+ zod: 4.6.7
+ transitivePeerDependencies:
+ - '@clack/prompts'
formdata-polyfill@4.0.10:
dependencies:
@@ -15818,21 +15825,21 @@ snapshots:
klona@2.0.6: {}
- knip@6.39.0:
+ knip@6.49.0(@clack/prompts@1.8.1):
dependencies:
- fdir: 6.5.0(picomatch@4.0.7)
- formatly: 0.7.1
+ formatly: 0.12.3(@clack/prompts@1.8.1)
get-tsconfig: 4.14.3
jiti: 2.7.0
- oxc-parser: 0.150.0
+ oxc-parser: 0.160.0
oxc-resolver: 11.24.2
picomatch: 4.0.7
- smol-toml: 1.9.0
+ smol-toml: 1.9.1
strip-json-comments: 5.0.3
tinyglobby: 0.2.17
- unbash: 4.0.12
+ unbash: 6.0.5
yaml: 2.9.1
- zod: 4.6.5
+ transitivePeerDependencies:
+ - '@clack/prompts'
layout-base@1.0.2: {}
@@ -17032,29 +17039,29 @@ snapshots:
outdent@0.5.0: {}
- oxc-parser@0.150.0:
+ oxc-parser@0.160.0:
dependencies:
- '@oxc-project/types': 0.150.0
+ '@oxc-project/types': 0.160.0
optionalDependencies:
- '@oxc-parser/binding-android-arm-eabi': 0.150.0
- '@oxc-parser/binding-android-arm64': 0.150.0
- '@oxc-parser/binding-darwin-arm64': 0.150.0
- '@oxc-parser/binding-darwin-x64': 0.150.0
- '@oxc-parser/binding-freebsd-x64': 0.150.0
- '@oxc-parser/binding-linux-arm-gnueabihf': 0.150.0
- '@oxc-parser/binding-linux-arm-musleabihf': 0.150.0
- '@oxc-parser/binding-linux-arm64-gnu': 0.150.0
- '@oxc-parser/binding-linux-arm64-musl': 0.150.0
- '@oxc-parser/binding-linux-ppc64-gnu': 0.150.0
- '@oxc-parser/binding-linux-riscv64-gnu': 0.150.0
- '@oxc-parser/binding-linux-riscv64-musl': 0.150.0
- '@oxc-parser/binding-linux-s390x-gnu': 0.150.0
- '@oxc-parser/binding-linux-x64-gnu': 0.150.0
- '@oxc-parser/binding-linux-x64-musl': 0.150.0
- '@oxc-parser/binding-openharmony-arm64': 0.150.0
- '@oxc-parser/binding-win32-arm64-msvc': 0.150.0
- '@oxc-parser/binding-win32-ia32-msvc': 0.150.0
- '@oxc-parser/binding-win32-x64-msvc': 0.150.0
+ '@oxc-parser/binding-android-arm-eabi': 0.160.0
+ '@oxc-parser/binding-android-arm64': 0.160.0
+ '@oxc-parser/binding-darwin-arm64': 0.160.0
+ '@oxc-parser/binding-darwin-x64': 0.160.0
+ '@oxc-parser/binding-freebsd-x64': 0.160.0
+ '@oxc-parser/binding-linux-arm-gnueabihf': 0.160.0
+ '@oxc-parser/binding-linux-arm-musleabihf': 0.160.0
+ '@oxc-parser/binding-linux-arm64-gnu': 0.160.0
+ '@oxc-parser/binding-linux-arm64-musl': 0.160.0
+ '@oxc-parser/binding-linux-ppc64-gnu': 0.160.0
+ '@oxc-parser/binding-linux-riscv64-gnu': 0.160.0
+ '@oxc-parser/binding-linux-riscv64-musl': 0.160.0
+ '@oxc-parser/binding-linux-s390x-gnu': 0.160.0
+ '@oxc-parser/binding-linux-x64-gnu': 0.160.0
+ '@oxc-parser/binding-linux-x64-musl': 0.160.0
+ '@oxc-parser/binding-openharmony-arm64': 0.160.0
+ '@oxc-parser/binding-win32-arm64-msvc': 0.160.0
+ '@oxc-parser/binding-win32-ia32-msvc': 0.160.0
+ '@oxc-parser/binding-win32-x64-msvc': 0.160.0
oxc-resolver@11.24.2:
optionalDependencies:
@@ -17217,6 +17224,12 @@ snapshots:
json-parse-even-better-errors: 2.3.1
lines-and-columns: 1.2.4
+ parse-standard-args@0.3.0(@clack/prompts@1.8.1):
+ dependencies:
+ '@standard-schema/spec': 1.1.0
+ optionalDependencies:
+ '@clack/prompts': 1.8.1
+
parse5-htmlparser2-tree-adapter@7.1.0:
dependencies:
domhandler: 5.0.3
@@ -18091,8 +18104,6 @@ snapshots:
smol-toml@1.6.1: {}
- smol-toml@1.9.0: {}
-
smol-toml@1.9.1: {}
sonic-boom@4.2.1:
@@ -18400,7 +18411,7 @@ snapshots:
ultrahtml@1.7.0: {}
- unbash@4.0.12: {}
+ unbash@6.0.5: {}
unconfig-core@7.5.0:
dependencies:
@@ -18872,8 +18883,6 @@ snapshots:
zod@3.25.76: {}
- zod@4.6.5: {}
-
zod@4.6.7: {}
zwitch@2.0.4: {}