@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/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
- /** 接线探测(main.tsx 源文本 → 出厂接线形态)。
90
- * 前置闸:单 css 行 / 单 applyTheme 调用 / 实参与包名后缀一致 / applyTheme import 在场。
91
- * 失配 throw(文案含下一步引导)——调用方零触碰。 */
92
- declare function probeThemeWiring(mainSrc: string): ThemeWiring;
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, probeThemeWiring, resolveWorkspaceCatalog, syncAssemblyFile };
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{D as f,E as a,F as x,G as c,e,h as o,l as r,m as t,n as p,p as s,w as d}from"./chunk-E6DFGTST.js";import{b as m,d as l}from"./chunk-UOUZPGPV.js";import"./chunk-IBFYJ3GA.js";export{p as THEME_ID_RE,d as TarballSource,f as assertValidModuleId,x as cliScaffoldAsset,a as detectContext,r as embeddedPackageDepIssues,c as expandScaffoldAsset,t as findInRepoModuleDir,m as parseModuleDescriptor,s as probeThemeWiring,o as resolveWorkspaceCatalog,e as syncAssemblyFile,l as writeAtomic};
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-IYFXN6OS.js";import"./chunk-UOUZPGPV.js";import"./chunk-IBFYJ3GA.js";export{c as collectDeclared,b as listLocalModules,a as readComponentFile};
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};