@vielzeug/codex 26.11.13 → 26.11.15

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/data/refine.json CHANGED
@@ -7743,55 +7743,59 @@
7743
7743
  },
7744
7744
  {
7745
7745
  "kind": "variable",
7746
- "name": "CHECKBOX_TAG",
7746
+ "name": "CHECKBOX_GROUP_CTX"
7747
+ },
7748
+ {
7749
+ "kind": "variable",
7750
+ "name": "CHECKBOX_GROUP_TAG",
7747
7751
  "type": {
7748
- "text": "'ore-checkbox'"
7752
+ "text": "'ore-checkbox-group'"
7749
7753
  },
7750
- "default": "'ore-checkbox'",
7751
- "description": "A customizable checkbox component with theme colors, sizes, and indeterminate state support."
7754
+ "default": "'ore-checkbox-group'",
7755
+ "description": "A fieldset wrapper that groups `ore-checkbox` elements, provides shared\n`color` and `size` via context, and manages multi-value selection state."
7752
7756
  },
7753
7757
  {
7754
7758
  "kind": "class",
7755
- "name": "OreCheckboxElement",
7756
- "tagName": "ore-checkbox",
7759
+ "name": "OreCheckboxGroupElement",
7760
+ "tagName": "ore-checkbox-group",
7757
7761
  "customElement": true,
7758
- "description": "A customizable checkbox component with theme colors, sizes, and indeterminate state support.",
7762
+ "description": "A fieldset wrapper that groups `ore-checkbox` elements, provides shared\n`color` and `size` via context, and manages multi-value selection state.",
7759
7763
  "summary": "",
7760
7764
  "attributes": [
7761
7765
  {
7762
- "name": "checked",
7766
+ "name": "label",
7763
7767
  "type": {
7764
- "text": "boolean"
7768
+ "text": "string"
7765
7769
  },
7766
- "description": "Checked state"
7770
+ "description": "Legend text (required for a11y)"
7767
7771
  },
7768
7772
  {
7769
- "name": "disabled",
7773
+ "name": "values",
7770
7774
  "type": {
7771
- "text": "boolean"
7775
+ "text": "string"
7772
7776
  },
7773
- "description": "Disable checkbox interaction"
7777
+ "description": "Comma-separated list of checked values"
7774
7778
  },
7775
7779
  {
7776
- "name": "indeterminate",
7780
+ "name": "disabled",
7777
7781
  "type": {
7778
7782
  "text": "boolean"
7779
7783
  },
7780
- "description": "Indeterminate (partially checked) state"
7784
+ "description": "Disable all checkboxes in the group"
7781
7785
  },
7782
7786
  {
7783
- "name": "required",
7787
+ "name": "error",
7784
7788
  "type": {
7785
- "text": "boolean"
7789
+ "text": "string"
7786
7790
  },
7787
- "description": "Require this checkbox to be checked for native form validation"
7791
+ "description": "Error message"
7788
7792
  },
7789
7793
  {
7790
- "name": "value",
7794
+ "name": "helper",
7791
7795
  "type": {
7792
7796
  "text": "string"
7793
7797
  },
7794
- "description": "Field value submitted with forms"
7798
+ "description": "Helper text"
7795
7799
  },
7796
7800
  {
7797
7801
  "name": "name",
@@ -7812,34 +7816,27 @@
7812
7816
  "type": {
7813
7817
  "text": "'sm' | 'md' | 'lg'"
7814
7818
  },
7815
- "description": "Checkbox size: 'sm' | 'md' | 'lg'"
7819
+ "description": "Component size: 'sm' | 'md' | 'lg'"
7816
7820
  },
7817
7821
  {
7818
- "name": "error",
7822
+ "name": "orientation",
7819
7823
  "type": {
7820
- "text": "string"
7824
+ "text": "'vertical' | 'horizontal'"
7821
7825
  },
7822
- "description": "Error message (marks field as invalid)"
7826
+ "description": "Layout: 'vertical' | 'horizontal'"
7823
7827
  },
7824
7828
  {
7825
- "name": "helper",
7829
+ "name": "required",
7826
7830
  "type": {
7827
- "text": "string"
7831
+ "text": "boolean"
7828
7832
  },
7829
- "description": "Helper text displayed below the checkbox"
7833
+ "description": "Required field"
7830
7834
  }
7831
7835
  ],
7832
7836
  "events": [
7833
- {
7834
- "name": "input",
7835
- "description": "Emitted when checkbox is toggled.",
7836
- "type": {
7837
- "text": "CustomEvent"
7838
- }
7839
- },
7840
7837
  {
7841
7838
  "name": "change",
7842
- "description": "Emitted when checkbox is toggled.",
7839
+ "description": "Emitted when selection changes. detail: { value: string, values: string[], labels: string[], originalEvent?: Event }",
7843
7840
  "type": {
7844
7841
  "text": "CustomEvent"
7845
7842
  }
@@ -7848,119 +7845,83 @@
7848
7845
  "slots": [
7849
7846
  {
7850
7847
  "name": "",
7851
- "description": "Checkbox label text"
7848
+ "description": "Place `ore-checkbox` elements here"
7852
7849
  }
7853
7850
  ],
7854
7851
  "cssParts": [
7855
7852
  {
7856
- "name": "checkbox",
7857
- "description": "The checkbox wrapper element"
7858
- },
7859
- {
7860
- "name": "box",
7861
- "description": "The visual checkbox box"
7862
- },
7863
- {
7864
- "name": "label",
7865
- "description": "The label element"
7866
- },
7867
- {
7868
- "name": "helper-text",
7869
- "description": "The helper/error text element"
7853
+ "name": "items",
7854
+ "description": "Items container."
7870
7855
  }
7871
7856
  ],
7872
7857
  "cssProperties": [
7873
7858
  {
7874
- "name": "--checkbox-size",
7875
- "description": "Control size (width and height)"
7876
- },
7877
- {
7878
- "name": "--checkbox-radius",
7879
- "description": "Control border radius"
7880
- },
7881
- {
7882
- "name": "--checkbox-bg",
7883
- "description": "Unchecked background color"
7884
- },
7885
- {
7886
- "name": "--checkbox-border-color",
7887
- "description": "Unchecked border color"
7888
- },
7889
- {
7890
- "name": "--checkbox-checked-bg",
7891
- "description": "Checked/indeterminate background color"
7892
- },
7893
- {
7894
- "name": "--checkbox-color",
7895
- "description": "Checkmark icon color"
7859
+ "name": "--checkbox-group-direction",
7860
+ "description": "Flex direction of the items list ('row' | 'column')"
7896
7861
  },
7897
7862
  {
7898
- "name": "--checkbox-font-size",
7899
- "description": "Label font size"
7863
+ "name": "--checkbox-group-gap",
7864
+ "description": "Gap between checkbox items"
7900
7865
  }
7901
7866
  ],
7902
7867
  "demos": [
7903
7868
  {
7904
7869
  "url": "",
7905
- "description": "```html\n<ore-checkbox name=\"agree\" required>I agree to the terms</ore-checkbox>\n<ore-checkbox checked color=\"primary\" size=\"lg\">Enabled by default</ore-checkbox>\n<ore-checkbox error=\"This field is required\" helper=\"Check to continue\">Accept</ore-checkbox>\n```"
7870
+ "description": "```html\n<ore-checkbox-group name=\"fruits\" label=\"Favourite fruits\" required>\n <ore-checkbox value=\"apple\">Apple</ore-checkbox>\n <ore-checkbox value=\"banana\">Banana</ore-checkbox>\n <ore-checkbox value=\"cherry\">Cherry</ore-checkbox>\n</ore-checkbox-group>\n<ore-checkbox-group name=\"options\" orientation=\"horizontal\" color=\"primary\">\n <ore-checkbox value=\"a\">Option A</ore-checkbox>\n <ore-checkbox value=\"b\">Option B</ore-checkbox>\n</ore-checkbox-group>\n```"
7906
7871
  }
7907
7872
  ]
7908
7873
  },
7909
7874
  {
7910
7875
  "kind": "variable",
7911
- "name": "CHECKBOX_GROUP_CTX"
7912
- },
7913
- {
7914
- "kind": "variable",
7915
- "name": "CHECKBOX_GROUP_TAG",
7876
+ "name": "CHECKBOX_TAG",
7916
7877
  "type": {
7917
- "text": "'ore-checkbox-group'"
7878
+ "text": "'ore-checkbox'"
7918
7879
  },
7919
- "default": "'ore-checkbox-group'",
7920
- "description": "A fieldset wrapper that groups `ore-checkbox` elements, provides shared\n`color` and `size` via context, and manages multi-value selection state."
7880
+ "default": "'ore-checkbox'",
7881
+ "description": "A customizable checkbox component with theme colors, sizes, and indeterminate state support."
7921
7882
  },
7922
7883
  {
7923
7884
  "kind": "class",
7924
- "name": "OreCheckboxGroupElement",
7925
- "tagName": "ore-checkbox-group",
7885
+ "name": "OreCheckboxElement",
7886
+ "tagName": "ore-checkbox",
7926
7887
  "customElement": true,
7927
- "description": "A fieldset wrapper that groups `ore-checkbox` elements, provides shared\n`color` and `size` via context, and manages multi-value selection state.",
7888
+ "description": "A customizable checkbox component with theme colors, sizes, and indeterminate state support.",
7928
7889
  "summary": "",
7929
7890
  "attributes": [
7930
7891
  {
7931
- "name": "label",
7892
+ "name": "checked",
7932
7893
  "type": {
7933
- "text": "string"
7894
+ "text": "boolean"
7934
7895
  },
7935
- "description": "Legend text (required for a11y)"
7896
+ "description": "Checked state"
7936
7897
  },
7937
7898
  {
7938
- "name": "values",
7899
+ "name": "disabled",
7939
7900
  "type": {
7940
- "text": "string"
7901
+ "text": "boolean"
7941
7902
  },
7942
- "description": "Comma-separated list of checked values"
7903
+ "description": "Disable checkbox interaction"
7943
7904
  },
7944
7905
  {
7945
- "name": "disabled",
7906
+ "name": "indeterminate",
7946
7907
  "type": {
7947
7908
  "text": "boolean"
7948
7909
  },
7949
- "description": "Disable all checkboxes in the group"
7910
+ "description": "Indeterminate (partially checked) state"
7950
7911
  },
7951
7912
  {
7952
- "name": "error",
7913
+ "name": "required",
7953
7914
  "type": {
7954
- "text": "string"
7915
+ "text": "boolean"
7955
7916
  },
7956
- "description": "Error message"
7917
+ "description": "Require this checkbox to be checked for native form validation"
7957
7918
  },
7958
7919
  {
7959
- "name": "helper",
7920
+ "name": "value",
7960
7921
  "type": {
7961
7922
  "text": "string"
7962
7923
  },
7963
- "description": "Helper text"
7924
+ "description": "Field value submitted with forms"
7964
7925
  },
7965
7926
  {
7966
7927
  "name": "name",
@@ -7981,27 +7942,34 @@
7981
7942
  "type": {
7982
7943
  "text": "'sm' | 'md' | 'lg'"
7983
7944
  },
7984
- "description": "Component size: 'sm' | 'md' | 'lg'"
7945
+ "description": "Checkbox size: 'sm' | 'md' | 'lg'"
7985
7946
  },
7986
7947
  {
7987
- "name": "orientation",
7948
+ "name": "error",
7988
7949
  "type": {
7989
- "text": "'vertical' | 'horizontal'"
7950
+ "text": "string"
7990
7951
  },
7991
- "description": "Layout: 'vertical' | 'horizontal'"
7952
+ "description": "Error message (marks field as invalid)"
7992
7953
  },
7993
7954
  {
7994
- "name": "required",
7955
+ "name": "helper",
7995
7956
  "type": {
7996
- "text": "boolean"
7957
+ "text": "string"
7997
7958
  },
7998
- "description": "Required field"
7959
+ "description": "Helper text displayed below the checkbox"
7999
7960
  }
8000
7961
  ],
8001
7962
  "events": [
7963
+ {
7964
+ "name": "input",
7965
+ "description": "Emitted when checkbox is toggled.",
7966
+ "type": {
7967
+ "text": "CustomEvent"
7968
+ }
7969
+ },
8002
7970
  {
8003
7971
  "name": "change",
8004
- "description": "Emitted when selection changes. detail: { value: string, values: string[], labels: string[], originalEvent?: Event }",
7972
+ "description": "Emitted when checkbox is toggled.",
8005
7973
  "type": {
8006
7974
  "text": "CustomEvent"
8007
7975
  }
@@ -8010,29 +7978,61 @@
8010
7978
  "slots": [
8011
7979
  {
8012
7980
  "name": "",
8013
- "description": "Place `ore-checkbox` elements here"
7981
+ "description": "Checkbox label text"
8014
7982
  }
8015
7983
  ],
8016
7984
  "cssParts": [
8017
7985
  {
8018
- "name": "items",
8019
- "description": "Items container."
7986
+ "name": "checkbox",
7987
+ "description": "The checkbox wrapper element"
7988
+ },
7989
+ {
7990
+ "name": "box",
7991
+ "description": "The visual checkbox box"
7992
+ },
7993
+ {
7994
+ "name": "label",
7995
+ "description": "The label element"
7996
+ },
7997
+ {
7998
+ "name": "helper-text",
7999
+ "description": "The helper/error text element"
8020
8000
  }
8021
8001
  ],
8022
8002
  "cssProperties": [
8023
8003
  {
8024
- "name": "--checkbox-group-direction",
8025
- "description": "Flex direction of the items list ('row' | 'column')"
8004
+ "name": "--checkbox-size",
8005
+ "description": "Control size (width and height)"
8026
8006
  },
8027
8007
  {
8028
- "name": "--checkbox-group-gap",
8029
- "description": "Gap between checkbox items"
8008
+ "name": "--checkbox-radius",
8009
+ "description": "Control border radius"
8010
+ },
8011
+ {
8012
+ "name": "--checkbox-bg",
8013
+ "description": "Unchecked background color"
8014
+ },
8015
+ {
8016
+ "name": "--checkbox-border-color",
8017
+ "description": "Unchecked border color"
8018
+ },
8019
+ {
8020
+ "name": "--checkbox-checked-bg",
8021
+ "description": "Checked/indeterminate background color"
8022
+ },
8023
+ {
8024
+ "name": "--checkbox-color",
8025
+ "description": "Checkmark icon color"
8026
+ },
8027
+ {
8028
+ "name": "--checkbox-font-size",
8029
+ "description": "Label font size"
8030
8030
  }
8031
8031
  ],
8032
8032
  "demos": [
8033
8033
  {
8034
8034
  "url": "",
8035
- "description": "```html\n<ore-checkbox-group name=\"fruits\" label=\"Favourite fruits\" required>\n <ore-checkbox value=\"apple\">Apple</ore-checkbox>\n <ore-checkbox value=\"banana\">Banana</ore-checkbox>\n <ore-checkbox value=\"cherry\">Cherry</ore-checkbox>\n</ore-checkbox-group>\n<ore-checkbox-group name=\"options\" orientation=\"horizontal\" color=\"primary\">\n <ore-checkbox value=\"a\">Option A</ore-checkbox>\n <ore-checkbox value=\"b\">Option B</ore-checkbox>\n</ore-checkbox-group>\n```"
8035
+ "description": "```html\n<ore-checkbox name=\"agree\" required>I agree to the terms</ore-checkbox>\n<ore-checkbox checked color=\"primary\" size=\"lg\">Enabled by default</ore-checkbox>\n<ore-checkbox error=\"This field is required\" helper=\"Check to continue\">Accept</ore-checkbox>\n```"
8036
8036
  }
8037
8037
  ]
8038
8038
  },
@@ -0,0 +1,17 @@
1
+ export interface DeclaredPackage {
2
+ /** The semver range (or `link:`/`workspace:` specifier) from the manifest. */
3
+ readonly declared: string;
4
+ /** The exact version from the lockfile, when the lockfile resolved one. */
5
+ readonly installed?: string;
6
+ readonly name: string;
7
+ }
8
+ export interface ConsumerProject {
9
+ readonly packages: readonly DeclaredPackage[];
10
+ readonly projectDir: string;
11
+ }
12
+ /**
13
+ * Finds the nearest directory (walking up from `startDir`) whose package.json
14
+ * declares `@vielzeug/*` dependencies and reads their declared ranges plus any
15
+ * lockfile-resolved versions. Returns undefined outside such a project.
16
+ */
17
+ export declare function detectConsumer(startDir?: string): ConsumerProject | undefined;
@@ -0,0 +1,114 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { dirname, join, resolve } from 'node:path';
3
+ const MANIFEST_FIELDS = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
4
+ const SEARCH_STEPS = 10;
5
+ function isVielzeug(name) {
6
+ return name.startsWith('@vielzeug/');
7
+ }
8
+ function readText(file) {
9
+ try {
10
+ return readFileSync(file, 'utf8');
11
+ }
12
+ catch {
13
+ return '';
14
+ }
15
+ }
16
+ function parseJson(text) {
17
+ if (!text)
18
+ return undefined;
19
+ try {
20
+ return JSON.parse(text);
21
+ }
22
+ catch {
23
+ // bun.lock allows trailing commas; strip them before retrying.
24
+ try {
25
+ return JSON.parse(text.replace(/,\s*([}\]])/g, '$1'));
26
+ }
27
+ catch {
28
+ return undefined;
29
+ }
30
+ }
31
+ }
32
+ /** The version part of a package id such as `@vielzeug/lingua@0.6.0`; undefined for link/workspace ids. */
33
+ function versionFromId(id) {
34
+ const at = id.lastIndexOf('@');
35
+ if (at <= 1)
36
+ return undefined;
37
+ const version = id.slice(at + 1);
38
+ return /^[0-9]/.test(version) ? version : undefined;
39
+ }
40
+ /**
41
+ * Extracts exact resolved versions for `@vielzeug/*` packages from a bun.lock
42
+ * (`"name": ["name@version", {...}]`) or package-lock.json (`node_modules/...`
43
+ * entries). Returns an empty map when no lockfile resolves them.
44
+ */
45
+ function readLockfileVersions(projectDir) {
46
+ const versions = new Map();
47
+ const bunPackages = parseJson(readText(join(projectDir, 'bun.lock')))?.packages;
48
+ if (bunPackages && typeof bunPackages === 'object') {
49
+ for (const [name, entry] of Object.entries(bunPackages)) {
50
+ if (!isVielzeug(name))
51
+ continue;
52
+ const id = Array.isArray(entry) ? entry[0] : entry;
53
+ if (typeof id === 'string') {
54
+ const version = versionFromId(id);
55
+ if (version)
56
+ versions.set(name, version);
57
+ }
58
+ }
59
+ }
60
+ if (versions.size > 0)
61
+ return versions;
62
+ const nodes = parseJson(readText(join(projectDir, 'package-lock.json')))?.packages;
63
+ if (nodes && typeof nodes === 'object') {
64
+ for (const [path, entry] of Object.entries(nodes)) {
65
+ const match = /(?:^|\/)node_modules\/(@vielzeug\/[^/]+)$/.exec(path);
66
+ if (!match || !entry || typeof entry !== 'object')
67
+ continue;
68
+ const { version } = entry;
69
+ if (typeof version === 'string')
70
+ versions.set(match[1], version);
71
+ }
72
+ }
73
+ return versions;
74
+ }
75
+ /**
76
+ * Finds the nearest directory (walking up from `startDir`) whose package.json
77
+ * declares `@vielzeug/*` dependencies and reads their declared ranges plus any
78
+ * lockfile-resolved versions. Returns undefined outside such a project.
79
+ */
80
+ export function detectConsumer(startDir = process.cwd()) {
81
+ let dir = resolve(startDir);
82
+ for (let step = 0; step < SEARCH_STEPS; step++) {
83
+ const manifest = parseJson(readText(join(dir, 'package.json')));
84
+ if (manifest) {
85
+ const declared = new Map();
86
+ for (const field of MANIFEST_FIELDS) {
87
+ const section = manifest[field];
88
+ if (!section || typeof section !== 'object')
89
+ continue;
90
+ for (const [name, range] of Object.entries(section)) {
91
+ if (isVielzeug(name) && typeof range === 'string')
92
+ declared.set(name, range);
93
+ }
94
+ }
95
+ if (declared.size > 0) {
96
+ const installed = readLockfileVersions(dir);
97
+ return {
98
+ packages: [...declared.entries()].map(([name, range]) => ({
99
+ declared: range,
100
+ installed: installed.get(name),
101
+ name,
102
+ })),
103
+ projectDir: dir,
104
+ };
105
+ }
106
+ }
107
+ const parent = dirname(dir);
108
+ if (parent === dir)
109
+ break;
110
+ dir = parent;
111
+ }
112
+ return undefined;
113
+ }
114
+ //# sourceMappingURL=consumer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consumer.js","sourceRoot":"","sources":["../src/consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,eAAe,GAAG,CAAC,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,CAAU,CAAC;AACjH,MAAM,YAAY,GAAG,EAAE,CAAC;AAexB,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC,IAAI;QAAE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AC"}
@@ -1,3 +1,4 @@
1
+ import { detectConsumer } from '../consumer.js';
1
2
  import { DOC_PAGES } from '../types.js';
2
3
  import { EMPTY_SCHEMA, PACKAGE_SLUG_PROPERTY, parseArgs } from './schema.js';
3
4
  const slug = {
@@ -39,6 +40,18 @@ const signature = {
39
40
  required: ['slug', 'symbol'],
40
41
  type: 'object',
41
42
  };
43
+ const drift = {
44
+ additionalProperties: false,
45
+ properties: {
46
+ projectDir: {
47
+ description: 'Project directory to inspect; defaults to the server working directory',
48
+ maxLength: 500,
49
+ minLength: 1,
50
+ type: 'string',
51
+ },
52
+ },
53
+ type: 'object',
54
+ };
42
55
  export const packageTools = [
43
56
  {
44
57
  description: 'List every Vielzeug package. Start here for package discovery.',
@@ -97,5 +110,42 @@ export const packageTools = [
97
110
  inputSchema: signature,
98
111
  name: 'get-type-signature',
99
112
  },
113
+ {
114
+ description: 'Compare the snapshot versions with the @vielzeug/* versions installed in a consumer project. Snapshot docs may lag the install.',
115
+ execute: (args, catalog) => {
116
+ const input = parseArgs(drift, args);
117
+ const consumer = detectConsumer(input.projectDir);
118
+ if (!consumer) {
119
+ return { note: 'No package.json with @vielzeug/* dependencies was found.', packages: [], projectDir: null };
120
+ }
121
+ const snapshot = new Map(catalog.listPackages().map((meta) => [meta.name, meta.version]));
122
+ return {
123
+ packages: consumer.packages.map((entry) => {
124
+ const snapshotVersion = snapshot.get(entry.name);
125
+ // Link/workspace specifiers track a checkout; the snapshot cannot match them.
126
+ const linked = !/^[~^0-9*]/.test(entry.declared);
127
+ let status;
128
+ if (linked)
129
+ status = 'linked';
130
+ else if (!snapshotVersion)
131
+ status = 'not-in-snapshot';
132
+ else if (entry.installed)
133
+ status = entry.installed === snapshotVersion ? 'match' : 'drift';
134
+ else
135
+ status = entry.declared === snapshotVersion ? 'match' : 'unresolved';
136
+ return {
137
+ declared: entry.declared,
138
+ installed: entry.installed ?? null,
139
+ name: entry.name,
140
+ snapshotVersion: snapshotVersion ?? null,
141
+ status,
142
+ };
143
+ }),
144
+ projectDir: consumer.projectDir,
145
+ };
146
+ },
147
+ inputSchema: drift,
148
+ name: 'check-install',
149
+ },
100
150
  ];
101
151
  //# sourceMappingURL=packages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packages.js","sourceRoot":"","sources":["../../src/tools/packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AAG9F,MAAM,IAAI,GAAG;IACX,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;IAClD,QAAQ,EAAE,CAAC,aAAa,CAAC;IACzB,IAAI,EAAE,QAAQ;CACM,CAAC;AACvB,MAAM,IAAI,GAAG;IACX,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/F;IACD,QAAQ,EAAE,CAAC,aAAa,CAAC;IACzB,IAAI,EAAE,QAAQ;CACM,CAAC;AACvB,MAAM,OAAO,GAAG;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9F,WAAW,EAAE,qBAAqB;KACnC;IACD,QAAQ,EAAE,CAAC,aAAa,EAAE,WAAW,CAAC;IACtC,IAAI,EAAE,QAAQ;CACM,CAAC;AACvB,MAAM,KAAK,GAAG;IACZ,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,wBAAwB,EA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BACjD,IAAI,KAAK,CAAC,SAAS;wBAAE,MAAM,GAAG,KAAK,CAAC,SAAS,KAAK,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;;wBACtF,MAAM,GAAG,KAAK,CAAC,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;oBAE1E,OAAO;wBACL,QAAQ,EAAE,KAAK,CAAC,QAAQ;wBACxB,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,IAAI;wBAClC,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,eAAe,EAAE,eAAe,IAAI,IAAI;wBACxC,MAAM;qBACP,CAAC;gBACJ,CAAC,CAAC;gBACF,UAAU,EAAE,QAAQ,CAAC,UAAU;aAChC,CAAC;QACJ,CAAC;QACD,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,eAAe;KACtB;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielzeug/codex",
3
- "version": "26.11.13",
3
+ "version": "26.11.15",
4
4
  "description": "MCP server exposing all Vielzeug docs to AI clients",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^26.6.6",
55
- "@vielzeug/refine": "26.11.13",
55
+ "@vielzeug/refine": "26.11.15",
56
56
  "typescript": "^6.0.3",
57
57
  "vitest": "^5.1.0"
58
58
  }
@@ -34,7 +34,7 @@ Look each thing up once, from the smallest source that answers it: reuse a looku
34
34
 
35
35
  `refine-get-tokens` reads CEM component CSS properties, not the complete global theme. For global tokens such as `--size-*`, search the relevant prefix or exact name in theme CSS; an empty MCP result does not prove a global token is unavailable. `tokens.css` only imports the underlying stylesheets.
36
36
 
37
- Codex serves a versioned snapshot, which may not match the versions installed in the project or include the newest packages. Compare `get-package`'s `version` with the installed version before using its API docs or signatures. If they differ, treat the installed package's declarations, docs, and runtime as authoritative; do not use newer snapshot APIs unless the dependency is deliberately updated. Treat the generated package list as a discovery aid, not proof that no other package exists.
37
+ Codex serves a versioned snapshot, which may not match the versions installed in the project or include the newest packages. Compare `get-package`'s `version` with the installed version before using its API docs or signatures, or call codex's `check-install` tool once per project to compare the snapshot against every `@vielzeug/*` dependency the project declares. If they differ, treat the installed package's declarations, docs, and runtime as authoritative; do not use newer snapshot APIs unless the dependency is deliberately updated. Treat the generated package list as a discovery aid, not proof that no other package exists.
38
38
 
39
39
  `get-docs` reaches only the four standard pages (`index`, `api`, `usage`, `examples`). A package's extra guides (Refine's `frameworks`, `theming`, `accessibility`, per-component references) are not in that set: read them from `https://vielzeug.dev/<pkg>/<page>` or from the checkout's `docs/<pkg>/`, not from `get-docs`.
40
40