@earntori/cli 0.2.19 → 0.2.20

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/index.js +4 -7
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -162,8 +162,7 @@ function writeJson(p, o) { mkdirSync(dirname(resolve(p)), { recursive: true });
162
162
  // (Claude Code and Cursor: always; Codex: when it is installed or present in the repo, or --codex);
163
163
  // `install` writes that harness's files and returns their paths. Add a harness = add a row.
164
164
  // Pinned package versions written into agent config (B1b). CLI version = this package's own;
165
- // MCP version is a constant: bump it in the same commit as a @earntori/mcp release. Spec rev 97:
166
- // scripts/check-pins.mjs fails `test` and `prepublishOnly` when it differs from packages/mcp's version.
165
+ // MCP version is a constant: bump it in the same commit as a @earntori/mcp release.
167
166
  const TORI_MCP_VERSION = "0.1.12";
168
167
  function cliVersion(cliBin) {
169
168
  try {
@@ -304,15 +303,13 @@ function repoIndex() { try {
304
303
  catch {
305
304
  return undefined;
306
305
  } }
307
- /** Spec rev 97 (amends rev 86): `.env.example` is skipped when it matches an ignore pattern, and when it is
308
- * read only variable names leave the machine, never values. Names are taken with the same pattern the one
309
- * rule that uses them applies, so the check is unchanged. */
306
+ /** Spec rev 97, corrected by rev 99 (amends rev 86): `.env.example` is skipped when it matches an ignore
307
+ * pattern; otherwise it is sent as before (up to 20,000 characters). */
310
308
  function envExample() {
311
309
  try {
312
310
  if (!existsSync(".env.example") || isIgnored(".env.example", ignorePatterns(process.cwd())))
313
311
  return undefined;
314
- const names = readFileSync(".env.example", "utf8").match(/^\s*[A-Z][A-Z0-9_]+\s*=/gm) ?? [];
315
- return names.map((l) => l.replace(/\s*=.*$/, "").trim() + "=").join("\n").slice(0, 20000);
312
+ return readFileSync(".env.example", "utf8").slice(0, 20000);
316
313
  }
317
314
  catch {
318
315
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earntori/cli",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Tori CLI — holds your coding agent to a standard: checks before it calls a task done, each finding with its fix, on a signed record you can verify offline.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,8 +17,7 @@
17
17
  "scripts": {
18
18
  "build": "tsc -p tsconfig.json && chmod +x dist/index.js",
19
19
  "typecheck": "tsc --noEmit -p tsconfig.json",
20
- "test": "node scripts/check-pins.mjs",
21
- "prepublishOnly": "node scripts/check-pins.mjs"
20
+ "test": "echo no tests"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@types/node": "^20.19.43",