base-combos 0.1.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.
@@ -0,0 +1,5 @@
1
+ import { type Envelope } from 'base-link-core';
2
+ import { PRESENT_KEYS } from './present.js';
3
+ export { PRESENT_KEYS };
4
+ export declare function comboEnvelope(key: string): Envelope<'list'>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,CAAC;AAKxB,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAG3D"}
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { createEnvelope, createRegistry } from 'base-link-core';
2
+ import { PRESENT_KEYS } from './present.js';
3
+ export { PRESENT_KEYS };
4
+ const registry = createRegistry(PRESENT_KEYS);
5
+ // 骨架占位:key 先过 registry(对不上即 throw),载荷走 envelope list 全字段;真实载荷 P7/skilllink 落包。
6
+ export function comboEnvelope(key) {
7
+ const { skill } = registry.resolve(key);
8
+ return createEnvelope({ skill, shape: 'list', key, data: { items: [] } });
9
+ }
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,QAAQ,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;AAE9C,+EAA+E;AAC/E,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,OAAO,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC5E,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** @generated —— 由 scripts/gen-present.mjs 从 combos.yaml 生成,手改无效(构建覆盖)。
2
+ * present 层红线:只许 string 字面量引 registry key,禁 import render。 */
3
+ export declare const PRESENT_KEYS: string[];
4
+ //# sourceMappingURL=present.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"present.d.ts","sourceRoot":"","sources":["../src/present.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,eAAO,MAAM,YAAY,EAAE,MAAM,EAwFhC,CAAC"}
@@ -0,0 +1,92 @@
1
+ /** @generated —— 由 scripts/gen-present.mjs 从 combos.yaml 生成,手改无效(构建覆盖)。
2
+ * present 层红线:只许 string 字面量引 registry key,禁 import render。 */
3
+ export const PRESENT_KEYS = [
4
+ 'calorie.today',
5
+ 'calorie.view.home',
6
+ 'calorie.view.diet',
7
+ 'calorie.view.exercise',
8
+ 'calorie.view.goal',
9
+ 'calorie.view.goal-config',
10
+ 'calorie.view.goal-recommend',
11
+ 'calorie.view.goal-weight',
12
+ 'calorie.view.goal-progress',
13
+ 'calorie.view.goal-status',
14
+ 'calorie.view.combined',
15
+ 'calorie.view.deficit',
16
+ 'calorie.view.diet-review',
17
+ 'calorie.view.health',
18
+ 'calorie.view.ranking',
19
+ 'calorie.view.library',
20
+ 'calorie.view.search',
21
+ 'calorie.photo.list',
22
+ 'calorie.photo.detail',
23
+ 'calorie.photo.compare',
24
+ 'calorie.photo.gif',
25
+ 'calorie.help.center',
26
+ 'calorie.help.lookup',
27
+ 'calorie.history',
28
+ 'calorie.view.weight',
29
+ 'calorie.view.weight-history',
30
+ 'calorie.view.weight-compare',
31
+ 'calorie.view.weight-review',
32
+ 'calorie.view.volatility',
33
+ 'calorie.view.body-composition',
34
+ 'calorie.view.body-measure',
35
+ 'calorie.view.plan',
36
+ 'calorie.view.plan-wizard',
37
+ 'calorie.view.exercise-goal',
38
+ 'calorie.view.goal-expiring',
39
+ 'calorie.view.goal-predict',
40
+ 'calorie.view.goal-vs-actual',
41
+ 'calorie.view.predict',
42
+ 'calorie.view.anomaly',
43
+ 'calorie.view.contraindication',
44
+ 'calorie.view.dedupe',
45
+ 'calorie.view.profile',
46
+ 'calorie.diet.add',
47
+ 'calorie.diet.update',
48
+ 'calorie.diet.remove',
49
+ 'calorie.diet.batch',
50
+ 'calorie.diet.copy',
51
+ 'calorie.diet.update-by-date',
52
+ 'calorie.diet.remove-by-date',
53
+ 'calorie.diet.remove-by-range',
54
+ 'calorie.diet.remove-by-type',
55
+ 'calorie.water.log',
56
+ 'calorie.weight.log',
57
+ 'calorie.weight.update',
58
+ 'calorie.weight.remove',
59
+ 'calorie.weight.batch',
60
+ 'calorie.exercise.add',
61
+ 'calorie.exercise.update',
62
+ 'calorie.exercise.remove',
63
+ 'calorie.photo.add',
64
+ 'calorie.photo.remove',
65
+ 'calorie.photo.tag',
66
+ 'calorie.product.add',
67
+ 'calorie.product.update',
68
+ 'calorie.product.deprecate',
69
+ 'calorie.profile.set',
70
+ 'calorie.profile.activity',
71
+ 'calorie.profile.update',
72
+ 'calorie.goal.set',
73
+ 'calorie.goal.water',
74
+ 'calorie.goal.weight',
75
+ 'calorie.goal.pause',
76
+ 'calorie.goal.resume',
77
+ 'calorie.body.composition-add',
78
+ 'calorie.body.composition-remove',
79
+ 'calorie.body.measure-add',
80
+ 'calorie.body.measure-remove',
81
+ 'memo.search',
82
+ 'memo.detail',
83
+ 'memo.create',
84
+ 'memo.update',
85
+ 'memo.remove',
86
+ 'memo.remind',
87
+ 'memo.wish',
88
+ 'memo.sync',
89
+ 'memo.batch',
90
+ 'memo.stats',
91
+ ];
92
+ //# sourceMappingURL=present.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"present.js","sourceRoot":"","sources":["../src/present.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,MAAM,CAAC,MAAM,YAAY,GAAa;IACpC,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;IACnB,0BAA0B;IAC1B,6BAA6B;IAC7B,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;IAC1B,uBAAuB;IACvB,sBAAsB;IACtB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,sBAAsB;IACtB,qBAAqB;IACrB,oBAAoB;IACpB,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,qBAAqB;IACrB,6BAA6B;IAC7B,6BAA6B;IAC7B,4BAA4B;IAC5B,yBAAyB;IACzB,+BAA+B;IAC/B,2BAA2B;IAC3B,mBAAmB;IACnB,0BAA0B;IAC1B,4BAA4B;IAC5B,4BAA4B;IAC5B,2BAA2B;IAC3B,6BAA6B;IAC7B,sBAAsB;IACtB,sBAAsB;IACtB,+BAA+B;IAC/B,qBAAqB;IACrB,sBAAsB;IACtB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;IACnB,6BAA6B;IAC7B,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,uBAAuB;IACvB,sBAAsB;IACtB,sBAAsB;IACtB,yBAAyB;IACzB,yBAAyB;IACzB,mBAAmB;IACnB,sBAAsB;IACtB,mBAAmB;IACnB,qBAAqB;IACrB,wBAAwB;IACxB,2BAA2B;IAC3B,qBAAqB;IACrB,0BAA0B;IAC1B,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,8BAA8B;IAC9B,iCAAiC;IACjC,0BAA0B;IAC1B,6BAA6B;IAC7B,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,WAAW;IACX,WAAW;IACX,YAAY;IACZ,YAAY;CACb,CAAC"}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "base-combos",
3
+ "version": "0.1.0",
4
+ "description": "语义包:combos.yaml 唯一真相源,36 组语义条目",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": "./dist/index.js"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "dependencies": {
15
+ "base-link-core": "workspace:^0.1.0"
16
+ },
17
+ "engines": {
18
+ "node": ">=22.13"
19
+ },
20
+ "scripts": {
21
+ "build": "node scripts/gen-present.mjs && tsc -b && node scripts/build-help.mjs",
22
+ "test": "node --test ../../test/scaffold.test.mjs"
23
+ }
24
+ }