tolkira 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -6,14 +6,15 @@ Tolkira turns test results into a single HTML file you can open offline, attach
6
6
  to a ticket, or keep as a CI artifact. Screenshots, logs and other attachments
7
7
  stay inside the file. There is no server, no CDN and no telemetry.
8
8
 
9
- Current release: **v0.1.1** · [npm](https://www.npmjs.com/package/tolkira) · [Changelog](https://github.com/Silasoa/tolkira/blob/main/docs/CHANGELOG.md)
9
+ Current release: **v0.1.2** · [npm](https://www.npmjs.com/package/tolkira) · [Changelog](https://github.com/Silasoa/tolkira/blob/main/docs/CHANGELOG.md)
10
10
 
11
11
  > **How this is built:** Tolkira is human-directed and largely AI-generated.
12
- > The maintainer sets the product direction, reviews changes, runs the release
13
- > gate and makes release decisions. Most code, tests and documentation are
14
- > drafted with large language models, then reviewed and tested by humans.
15
- > AI output can be wrong; please check the report against your own results and
16
- > open an issue if something looks off. [Read more](#how-this-project-is-built).
12
+ > The maintainer sets the product direction and approves releases. Most code,
13
+ > tests and documentation are drafted with large language models, then checked
14
+ > by automated tests and AI-assisted review passes. The maintainer reviews the
15
+ > release gate and tests the report from time to time. AI output can be wrong;
16
+ > please check the report against your own results and open an issue if
17
+ > something looks off. [Read more](#how-this-project-is-built).
17
18
 
18
19
  ## Install
19
20
 
@@ -212,8 +213,9 @@ notes live in [`docs/PRODUCT.md`](https://github.com/Silasoa/tolkira/blob/main/d
212
213
 
213
214
  Tolkira is an experiment in AI-assisted open source. The maintainer defines the
214
215
  problem, the scope and the design direction; large language models draft most of
215
- the code, tests and documentation; the maintainer reviews, runs the test and
216
- release gates, and makes the final release decision.
216
+ the code, tests and documentation; automated tests and AI-assisted review passes
217
+ check changes; the maintainer reviews the release gate, approves versions and
218
+ tests the report from time to time.
217
219
 
218
220
  The project does not name specific models in its files on purpose. The
219
221
  maintainer configures the models and tooling. This keeps the project
@@ -229,6 +231,8 @@ version you use.
229
231
 
230
232
  MIT. See [`LICENSE`](https://github.com/Silasoa/tolkira/blob/main/LICENSE).
231
233
 
232
- Tolkira is not affiliated with Cucumber, SmartBear, Seed-Test or any
233
- test-framework vendor. Cucumber and Gherkin are used descriptively; the project
234
- uses the MIT-licensed Cucumber Messages format and package.
234
+ Tolkira is an independent project, not an official Cucumber, SmartBear or
235
+ Seed-Test product. The maintainer also contributes to Seed-Test; the visual
236
+ comparison uses Seed-Test's report setup. Cucumber and Gherkin are used
237
+ descriptively; the project uses the MIT-licensed Cucumber Messages format and
238
+ package.
package/dist/cli.js CHANGED
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
+ import { realpathSync } from "node:fs";
4
5
  import { readFile as readFile2, stat as stat2 } from "node:fs/promises";
5
6
  import path4 from "node:path";
6
- import { pathToFileURL } from "node:url";
7
+ import { fileURLToPath } from "node:url";
7
8
  import { parseArgs } from "node:util";
8
9
 
9
10
  // src/input/load.ts
@@ -908,6 +909,7 @@ async function parseJUnitXml(content, source) {
908
909
  attributeNamePrefix: "",
909
910
  parseTagValue: false,
910
911
  parseAttributeValue: false,
912
+ htmlEntities: true,
911
913
  isArray: (name) => ARRAY_TAGS.has(name)
912
914
  });
913
915
  let parsed;
@@ -2211,7 +2213,7 @@ img, video { max-width: 100%; height: auto; }
2211
2213
  .search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
2212
2214
  .tagFilter { display: flex; align-items: center; gap: 0.375rem; min-height: 2.125rem; max-width: 100%; }
2213
2215
  .tagFilter > span { color: var(--muted); font-size: 0.75rem; }
2214
- .tagFilter select { max-width: 100%; min-height: 1.875rem; padding: 0 1.5rem 0 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--paper); color: var(--ink-2); font-size: 0.75rem; }
2216
+ .tagFilter select { max-width: 100%; min-width: 0; min-height: 1.875rem; padding: 0 1.5rem 0 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--paper); color: var(--ink-2); font-size: 0.75rem; }
2215
2217
  .tagFilter select:hover { color: var(--ink); }
2216
2218
  .filters { display: flex; gap: 0.375rem; flex-wrap: wrap; }
2217
2219
  .filter { min-height: 1.875rem; padding: 0 0.5625rem; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--paper); color: var(--ink-2); font-size: 0.75rem; }
@@ -2855,7 +2857,7 @@ ${csp(hashes)}
2855
2857
  }
2856
2858
 
2857
2859
  // src/index.ts
2858
- var version = "0.1.1";
2860
+ var version = "0.1.2";
2859
2861
  async function generateReport(inputs, options = {}) {
2860
2862
  const envelopes = await loadEnvelopes(inputs);
2861
2863
  const summary = summarizeEnvelopes(envelopes);
@@ -3085,8 +3087,16 @@ ${USAGE}`);
3085
3087
  return 1;
3086
3088
  }
3087
3089
  }
3088
- var isMain = process.argv[1] !== void 0 && import.meta.url === pathToFileURL(process.argv[1]).href;
3089
- if (isMain) {
3090
+ function isMainModule() {
3091
+ const entry = process.argv[1];
3092
+ if (!entry) return false;
3093
+ try {
3094
+ return realpathSync(fileURLToPath(import.meta.url)) === realpathSync(entry);
3095
+ } catch {
3096
+ return false;
3097
+ }
3098
+ }
3099
+ if (isMainModule()) {
3090
3100
  runCli(process.argv.slice(2)).then((code) => {
3091
3101
  process.exitCode = code;
3092
3102
  });