@erclx/canon 4.65.0 → 4.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/canon-frames-read/REQUIREMENT.md +34 -0
- package/claude/skills/canon-frames-read/SKILL.md +46 -0
- package/claude/skills/claude-worktree/SKILL.md +18 -4
- package/docs/agents/commands.md +4 -1
- package/docs/agents/demo.md +17 -1
- package/docs/agents/index.md +1 -1
- package/docs/target-projects.md +19 -0
- package/docs/workflow/ai-workflow.md +9 -5
- package/package.json +1 -1
- package/src/claude/cases/claude-workflow.ts +5 -0
- package/src/commands/claude.ts +15 -1
- package/src/commands/demo.ts +97 -1
- package/src/commands/design.ts +12 -3
- package/src/commands/docs.ts +4 -1
- package/src/commands/gov.ts +24 -4
- package/src/commands/migrate.ts +94 -14
- package/src/commands/sandbox.ts +7 -1
- package/src/commands/snippets.ts +8 -2
- package/src/commands/tooling.ts +10 -8
- package/src/demo/container.ts +95 -0
- package/src/design/components.ts +1157 -4
- package/src/design/css.ts +44 -17
- package/src/exec.ts +5 -1
- package/src/migrate/plan.ts +13 -5
- package/src/migrate/rename.ts +209 -94
- package/src/migrate/skill-names.ts +89 -0
- package/src/project-root.ts +17 -0
- package/src/sync/engine.ts +4 -0
- package/src/target.ts +5 -1
- package/src/teach/fonts.ts +28 -0
- package/src/teach/nav.ts +11 -1
- package/src/teach/workspace.ts +4 -1
package/src/sync/engine.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { existsSync, readFileSync } from 'node:fs'
|
|
|
2
2
|
import { rm } from 'node:fs/promises'
|
|
3
3
|
import { isAbsolute, relative, resolve } from 'node:path'
|
|
4
4
|
import { copyPreservingMode } from '@/copy'
|
|
5
|
+
import { checkoutMismatchWarning } from '@/project-root'
|
|
5
6
|
import { findInstalledOrigin, readHistoryIndex } from '@/sync/history'
|
|
6
7
|
import {
|
|
7
8
|
type DomainHashes,
|
|
@@ -339,6 +340,9 @@ export async function runDomainSync(
|
|
|
339
340
|
): Promise<number> {
|
|
340
341
|
intro(adapter.banner)
|
|
341
342
|
|
|
343
|
+
const mismatch = checkoutMismatchWarning(process.cwd())
|
|
344
|
+
if (mismatch !== undefined) logWarn(mismatch)
|
|
345
|
+
|
|
342
346
|
const resolved = resolve(target)
|
|
343
347
|
|
|
344
348
|
if (!isDirectory(resolved)) {
|
package/src/target.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { statSync } from 'node:fs'
|
|
2
2
|
import { resolve } from 'node:path'
|
|
3
|
-
import {
|
|
3
|
+
import { checkoutMismatchWarning } from '@/project-root'
|
|
4
|
+
import { logError, logWarn, outro } from '@/ui'
|
|
4
5
|
|
|
5
6
|
export function isDirectory(path: string): boolean {
|
|
6
7
|
try {
|
|
@@ -23,6 +24,9 @@ export function resolveTarget(
|
|
|
23
24
|
target: string,
|
|
24
25
|
protectedRoot: string,
|
|
25
26
|
): string | number {
|
|
27
|
+
const mismatch = checkoutMismatchWarning(process.cwd())
|
|
28
|
+
if (mismatch !== undefined) logWarn(mismatch)
|
|
29
|
+
|
|
26
30
|
const resolved = resolve(target)
|
|
27
31
|
|
|
28
32
|
if (!isDirectory(resolved)) {
|