Catch missed content edits from tree restructure
The fe39fcb commit captured the file moves (git mv stages those automatically)
but didn't catch the content edits I made afterward — npm package rename
(@mizan/runtime → @mizan/base), path updates in Makefile/Dockerfile/examples,
and doc updates were all left unstaged at commit time.
This commit lands those:
- npm rename: 3 frontend package.jsons (base/vue/svelte) + mizan-base/src/index.ts + 4 codegen templates
- path updates: Makefile, Dockerfile.test, two Gitea workflows, four example/harness configs
- doc updates: CLAUDE.md, ROADMAP.md, ISSUES.md, docs/AFI_ARCHITECTURE.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,7 @@ export function generateReactAdapter(schema) {
|
||||
'// AUTO-GENERATED by mizan — do not edit',
|
||||
'',
|
||||
"import { createContext, useContext, useState, useEffect, useCallback, useRef, useSyncExternalStore, type ReactNode } from 'react'",
|
||||
"import { registerContext, mizanFetch, mizanCall, type ContextState } from '@mizan/runtime'",
|
||||
"import { registerContext, mizanFetch, mizanCall, type ContextState } from '@mizan/base'",
|
||||
'',
|
||||
]
|
||||
|
||||
@@ -172,8 +172,8 @@ export function generateReactAdapter(schema) {
|
||||
|
||||
// ── Re-export runtime types ─────────────────────────────────────────
|
||||
|
||||
lines.push("export type { ContextState } from '@mizan/runtime'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/runtime'")
|
||||
lines.push("export type { ContextState } from '@mizan/base'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/base'")
|
||||
lines.push('')
|
||||
|
||||
return lines.join('\n')
|
||||
|
||||
@@ -18,7 +18,7 @@ export function generateSvelteAdapter(schema) {
|
||||
'// AUTO-GENERATED by mizan — do not edit',
|
||||
'',
|
||||
"import { readable, type Readable } from 'svelte/store'",
|
||||
"import { registerContext, type ContextState } from '@mizan/runtime'",
|
||||
"import { registerContext, type ContextState } from '@mizan/base'",
|
||||
'',
|
||||
]
|
||||
|
||||
@@ -70,8 +70,8 @@ export function generateSvelteAdapter(schema) {
|
||||
}
|
||||
lines.push('')
|
||||
|
||||
lines.push("export type { ContextState } from '@mizan/runtime'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/runtime'")
|
||||
lines.push("export type { ContextState } from '@mizan/base'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/base'")
|
||||
lines.push('')
|
||||
|
||||
return lines.join('\n')
|
||||
|
||||
@@ -18,7 +18,7 @@ export function generateVueAdapter(schema) {
|
||||
'// AUTO-GENERATED by mizan — do not edit',
|
||||
'',
|
||||
"import { ref, computed, onMounted, onUnmounted, onServerPrefetch, type ComputedRef } from 'vue'",
|
||||
"import { registerContext, type ContextState } from '@mizan/runtime'",
|
||||
"import { registerContext, type ContextState } from '@mizan/base'",
|
||||
'',
|
||||
]
|
||||
|
||||
@@ -96,8 +96,8 @@ export function generateVueAdapter(schema) {
|
||||
lines.push('')
|
||||
}
|
||||
|
||||
lines.push("export type { ContextState } from '@mizan/runtime'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/runtime'")
|
||||
lines.push("export type { ContextState } from '@mizan/base'")
|
||||
lines.push("export { configure, initSession, MizanError } from '@mizan/base'")
|
||||
lines.push('')
|
||||
|
||||
return lines.join('\n')
|
||||
|
||||
@@ -80,7 +80,7 @@ export function generateContextFile(ctxName, ctxMeta, functions) {
|
||||
const lines = [
|
||||
'// AUTO-GENERATED by mizan — do not edit',
|
||||
'',
|
||||
"import { mizanFetch } from '@mizan/runtime'",
|
||||
"import { mizanFetch } from '@mizan/base'",
|
||||
'',
|
||||
]
|
||||
|
||||
@@ -133,7 +133,7 @@ export function generateMutationFile(fn) {
|
||||
const lines = [
|
||||
'// AUTO-GENERATED by mizan — do not edit',
|
||||
'',
|
||||
"import { mizanCall } from '@mizan/runtime'",
|
||||
"import { mizanCall } from '@mizan/base'",
|
||||
'',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user