@tbox.cn/app-cli 0.9.7 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/chunk-24FH6YZH.js +17 -0
- package/dist/{chunk-IYFXN6OS.js → chunk-735OVBDV.js} +1 -1
- package/dist/chunk-MYYUZ76H.js +11 -0
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/{declared-TLTQ632U.js → declared-Y3HHI2LL.js} +1 -1
- package/dist/index.js +87 -62
- package/package.json +4 -3
- package/scaffold/theme/README.md +1 -1
- package/scaffold/theme/index.css +1 -1
- package/skills/integration.md +26 -1
- package/skills/verify.md +2 -0
- package/starter/agent.md +4 -0
- package/dist/chunk-E6DFGTST.js +0 -11
- package/dist/chunk-UOUZPGPV.js +0 -17
package/dist/core.d.ts
CHANGED
|
@@ -70,12 +70,6 @@ declare function embeddedPackageDepIssues(manifest: Record<string, unknown>): Em
|
|
|
70
70
|
*/
|
|
71
71
|
declare function findInRepoModuleDir(modulesDir: string, pkgName: string): string | null;
|
|
72
72
|
|
|
73
|
-
/**
|
|
74
|
-
* 主题接线词汇与手术(dev --theme 与 theme use 双消费单源——plans/theme-assembly-axis)。
|
|
75
|
-
*
|
|
76
|
-
* 探测/手术均 **import 语句锚定**(^import 行):main.tsx 注释区含主题字样不得误报。
|
|
77
|
-
* 架构定律 A 同构:变换在生成期/命令期完成,运行时消费方(vite-override shim)零逻辑纯重映射。
|
|
78
|
-
*/
|
|
79
73
|
interface ThemeWiring {
|
|
80
74
|
/** 出厂接线包名(如 @tbox.cn/app-theme-tbox) */
|
|
81
75
|
factoryPkg: string;
|
|
@@ -86,10 +80,17 @@ interface ThemeWiring {
|
|
|
86
80
|
}
|
|
87
81
|
/** 主题 id 词法(与 manifest isValidModuleId 同语义——themes/<id> 拼接逃逸免疫) */
|
|
88
82
|
declare const THEME_ID_RE: RegExp;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
interface LocatedThemeWiring {
|
|
84
|
+
/** 接线文件绝对路径(手术写回对象) */
|
|
85
|
+
file: string;
|
|
86
|
+
/** 文件源文本(手术/写回基准) */
|
|
87
|
+
src: string;
|
|
88
|
+
wiring: ThemeWiring;
|
|
89
|
+
}
|
|
90
|
+
/** 定位接线入口(候选序;首个完整接线文件即真源)。
|
|
91
|
+
* 多文件同时接线 → throw(替换语义要求单入口);候选在场但接线不完整 → throw 该文件具体失配。
|
|
92
|
+
* 相对路径文案恒以 `apps/client/` 为基准(无关 cwd)。 */
|
|
93
|
+
declare function locateThemeWiring(clientDir: string): LocatedThemeWiring;
|
|
93
94
|
|
|
94
95
|
/**
|
|
95
96
|
* Source 抽象(003 D11 / 004 D8):create 与 add 共用的模块/模板来源。
|
|
@@ -152,4 +153,4 @@ declare function expandScaffoldAsset(assetDir: string, targetDir: string, tokens
|
|
|
152
153
|
pkg: string;
|
|
153
154
|
}, force: boolean): Promise<string[]>;
|
|
154
155
|
|
|
155
|
-
export { type AssemblyKind, type DeclaredModule, type DoctorIssue, type EmbeddedDepState, THEME_ID_RE, TarballSource, assertValidModuleId, cliScaffoldAsset, detectContext, embeddedPackageDepIssues, expandScaffoldAsset, findInRepoModuleDir,
|
|
156
|
+
export { type AssemblyKind, type DeclaredModule, type DoctorIssue, type EmbeddedDepState, THEME_ID_RE, TarballSource, assertValidModuleId, cliScaffoldAsset, detectContext, embeddedPackageDepIssues, expandScaffoldAsset, findInRepoModuleDir, locateThemeWiring, resolveWorkspaceCatalog, syncAssemblyFile };
|
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{F as a,G as f,H as c,I as x,e,h as o,l as r,m as t,n as p,r as s,y as d}from"./chunk-MYYUZ76H.js";import{b as l,d as m}from"./chunk-24FH6YZH.js";import"./chunk-IBFYJ3GA.js";export{p as THEME_ID_RE,d as TarballSource,a as assertValidModuleId,c as cliScaffoldAsset,f as detectContext,r as embeddedPackageDepIssues,x as expandScaffoldAsset,t as findInRepoModuleDir,s as locateThemeWiring,l as parseModuleDescriptor,o as resolveWorkspaceCatalog,e as syncAssemblyFile,m as writeAtomic};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-735OVBDV.js";import"./chunk-24FH6YZH.js";import"./chunk-IBFYJ3GA.js";export{c as collectDeclared,b as listLocalModules,a as readComponentFile};
|