@mizchi/vlmkit-generate 0.9.1 → 0.11.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +12 -0
  2. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -169,6 +169,18 @@ if (isDirectRun()) runGenerateCli(process.argv.slice(2)).then((code) => {
169
169
  console.error(error instanceof Error ? error.stack : error);
170
170
  process.exitCode = 1;
171
171
  });
172
+ /**
173
+ * Deliberately not `isCliEntry` from `@mizchi/vlmkit-core/plugin/cli-entry.ts`: this
174
+ * package does not depend on core, and a ten-line guard is not worth adding one to a
175
+ * published dependency graph. The semantics match — core's version realpaths both sides
176
+ * too, a change this spelling is what prompted — so the two cannot disagree about which
177
+ * module is the entry.
178
+ *
179
+ * The `realpathSync` is load-bearing, not defensive. npm installs this package's `bin`
180
+ * as a symlink, so `argv[1]` is `node_modules/.bin/vlmkit-generate` while `import.meta.url` is the
181
+ * real `dist/cli.mjs`; comparing resolved-but-not-realpathed paths returns false and the
182
+ * CLI silently does nothing.
183
+ */
172
184
  function isDirectRun() {
173
185
  if (!process.argv[1]) return false;
174
186
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mizchi/vlmkit-generate",
3
- "version": "0.9.1",
3
+ "version": "0.11.1",
4
4
  "description": "Generator contract for Playwright tests: turns a Markdown plan and generation rules into a Playwright spec source file.",
5
5
  "license": "MIT",
6
6
  "author": "mizchi",
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "typescript": "^6.0.2",
47
- "@mizchi/vlmkit-ai": "0.9.1"
47
+ "@mizchi/vlmkit-ai": "0.11.1"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "pnpm --dir ../.. exec tsdown --config tsdown.packages.config.ts --filter @mizchi/vlmkit-generate",
51
- "test": "node --test 'src/**/*.test.ts'"
51
+ "test": "pnpm --dir ../.. exec vitest run packages/vlmkit-generate/src"
52
52
  }
53
53
  }