hyntx 4.1.0 → 4.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/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
package/dist/cli.js CHANGED
@@ -412,7 +412,10 @@ function redactBearerTokens(text) {
412
412
  );
413
413
  }
414
414
  function redactProviderTokens(text) {
415
- return text.replace(/\bgh[pousr]_[A-Za-z0-9]{36,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bgithub_pat_[A-Za-z0-9_]{22,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bhf_[A-Za-z0-9]{30,}\b/g, "[REDACTED_HF_TOKEN]").replace(/\bnpm_[A-Za-z0-9]{30,}\b/g, "[REDACTED_NPM_TOKEN]").replace(/\bglpat-[A-Za-z0-9_-]{20,}/g, "[REDACTED_GITLAB_TOKEN]").replace(/\bxox[abprs]-[A-Za-z0-9-]{10,}/g, "[REDACTED_SLACK_TOKEN]").replace(/\bAIza[0-9A-Za-z_-]{35}\b/g, "[REDACTED_GOOGLE_KEY]").replace(
415
+ return text.replace(/\bgh[pousr]_[A-Za-z0-9]{36,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bgithub_pat_[A-Za-z0-9_]{22,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bhf_[A-Za-z0-9]{30,}\b/g, "[REDACTED_HF_TOKEN]").replace(/\bnpm_[A-Za-z0-9]{30,}\b/g, "[REDACTED_NPM_TOKEN]").replace(/\bglpat-[A-Za-z0-9_-]{20,}/g, "[REDACTED_GITLAB_TOKEN]").replace(/\bxox[abprs]-[A-Za-z0-9-]{10,}/g, "[REDACTED_SLACK_TOKEN]").replace(
416
+ /\bAIza[0-9A-Za-z_-]{35}(?![0-9A-Za-z_-])/g,
417
+ "[REDACTED_GOOGLE_KEY]"
418
+ ).replace(
416
419
  /\b[sr]k_(?:live|test)_[A-Za-z0-9]{16,}\b/g,
417
420
  "[REDACTED_STRIPE_KEY]"
418
421
  ).replace(
@@ -3827,17 +3830,15 @@ function foldSession(acc) {
3827
3830
  messages: (previousModel?.messages ?? 0) + 1,
3828
3831
  tokens: addTokens(previousModel?.tokens ?? EMPTY_TOKENS, event.usage)
3829
3832
  });
3830
- const calls = event.toolUses.filter((use) => !seenCallIds.has(use.id)).map(
3831
- (use) => ({
3832
- id: use.id,
3833
- name: use.name,
3834
- timestamp: event.ts,
3835
- sidechain: event.sidechain,
3836
- target: use.target,
3837
- command: use.command,
3838
- result: resultsById.get(use.id) ?? null
3839
- })
3840
- );
3833
+ const calls = event.toolUses.filter((use) => !seenCallIds.has(use.id)).map((use) => ({
3834
+ id: use.id,
3835
+ name: use.name,
3836
+ timestamp: event.ts,
3837
+ sidechain: event.sidechain,
3838
+ target: use.target,
3839
+ command: use.command,
3840
+ result: resultsById.get(use.id) ?? null
3841
+ }));
3841
3842
  for (const call of calls) {
3842
3843
  seenCallIds.add(call.id);
3843
3844
  allCalls.push(call);
package/dist/index.d.ts CHANGED
@@ -745,4 +745,5 @@ type TerminalOptions = {
745
745
  };
746
746
  declare function renderTerminal(report: Report, options?: TerminalOptions): string;
747
747
 
748
- export { type AggregateMetrics, type Compaction, CorrectionCause, type DailyPoint, type DataQuality, DenialKind, type Distribution, type Episode, type EpisodeContext, type EpisodeRef, EpisodeType, type EvidenceExample, type Insight, type InsightAction, type InsightEvidence, InsightKind, type InsightReview, type InsightState, type InterpretOptions, type Interpretation, InterpretationEngine, type InterpretationVerdict, type Interruption, type Metrics, type ModelMix, type ModelUsage, OutputFormat, type Prompt, PromptSource, type PromptTraitFinding, REPORT_SCHEMA_VERSION, type ReadSessionsOptions, type ReadSessionsResult, type ReadStats, type Report, type ReportPeriod, type Session, type SessionMetrics, Severity, type SlashCommandUse, type SubagentActivity, type TokenTotals, type TokenUsage, type ToolCall, type ToolResult, type ToolStat, type Turn, TurnKind, buildReport, computeMetrics, detectFriction, generateInsights, interpretReport, loadDailyHistory, mergeDaily, readSessions, renderHtml, renderMarkdown, renderTerminal, sanitize, sanitizeReport, saveDailyHistory };
748
+ export { CorrectionCause, DenialKind, EpisodeType, InsightKind, InterpretationEngine, OutputFormat, PromptSource, REPORT_SCHEMA_VERSION, Severity, TurnKind, buildReport, computeMetrics, detectFriction, generateInsights, interpretReport, loadDailyHistory, mergeDaily, readSessions, renderHtml, renderMarkdown, renderTerminal, sanitize, sanitizeReport, saveDailyHistory };
749
+ export type { AggregateMetrics, Compaction, DailyPoint, DataQuality, Distribution, Episode, EpisodeContext, EpisodeRef, EvidenceExample, Insight, InsightAction, InsightEvidence, InsightReview, InsightState, InterpretOptions, Interpretation, InterpretationVerdict, Interruption, Metrics, ModelMix, ModelUsage, Prompt, PromptTraitFinding, ReadSessionsOptions, ReadSessionsResult, ReadStats, Report, ReportPeriod, Session, SessionMetrics, SlashCommandUse, SubagentActivity, TokenTotals, TokenUsage, ToolCall, ToolResult, ToolStat, Turn };
package/dist/index.js CHANGED
@@ -132,7 +132,10 @@ function redactBearerTokens(text) {
132
132
  );
133
133
  }
134
134
  function redactProviderTokens(text) {
135
- return text.replace(/\bgh[pousr]_[A-Za-z0-9]{36,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bgithub_pat_[A-Za-z0-9_]{22,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bhf_[A-Za-z0-9]{30,}\b/g, "[REDACTED_HF_TOKEN]").replace(/\bnpm_[A-Za-z0-9]{30,}\b/g, "[REDACTED_NPM_TOKEN]").replace(/\bglpat-[A-Za-z0-9_-]{20,}/g, "[REDACTED_GITLAB_TOKEN]").replace(/\bxox[abprs]-[A-Za-z0-9-]{10,}/g, "[REDACTED_SLACK_TOKEN]").replace(/\bAIza[0-9A-Za-z_-]{35}\b/g, "[REDACTED_GOOGLE_KEY]").replace(
135
+ return text.replace(/\bgh[pousr]_[A-Za-z0-9]{36,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bgithub_pat_[A-Za-z0-9_]{22,}\b/g, "[REDACTED_GITHUB_TOKEN]").replace(/\bhf_[A-Za-z0-9]{30,}\b/g, "[REDACTED_HF_TOKEN]").replace(/\bnpm_[A-Za-z0-9]{30,}\b/g, "[REDACTED_NPM_TOKEN]").replace(/\bglpat-[A-Za-z0-9_-]{20,}/g, "[REDACTED_GITLAB_TOKEN]").replace(/\bxox[abprs]-[A-Za-z0-9-]{10,}/g, "[REDACTED_SLACK_TOKEN]").replace(
136
+ /\bAIza[0-9A-Za-z_-]{35}(?![0-9A-Za-z_-])/g,
137
+ "[REDACTED_GOOGLE_KEY]"
138
+ ).replace(
136
139
  /\b[sr]k_(?:live|test)_[A-Za-z0-9]{16,}\b/g,
137
140
  "[REDACTED_STRIPE_KEY]"
138
141
  ).replace(
@@ -3677,17 +3680,15 @@ function foldSession(acc) {
3677
3680
  messages: (previousModel?.messages ?? 0) + 1,
3678
3681
  tokens: addTokens(previousModel?.tokens ?? EMPTY_TOKENS, event.usage)
3679
3682
  });
3680
- const calls = event.toolUses.filter((use) => !seenCallIds.has(use.id)).map(
3681
- (use) => ({
3682
- id: use.id,
3683
- name: use.name,
3684
- timestamp: event.ts,
3685
- sidechain: event.sidechain,
3686
- target: use.target,
3687
- command: use.command,
3688
- result: resultsById.get(use.id) ?? null
3689
- })
3690
- );
3683
+ const calls = event.toolUses.filter((use) => !seenCallIds.has(use.id)).map((use) => ({
3684
+ id: use.id,
3685
+ name: use.name,
3686
+ timestamp: event.ts,
3687
+ sidechain: event.sidechain,
3688
+ target: use.target,
3689
+ command: use.command,
3690
+ result: resultsById.get(use.id) ?? null
3691
+ }));
3691
3692
  for (const call of calls) {
3692
3693
  seenCallIds.add(call.id);
3693
3694
  allCalls.push(call);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyntx",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "CLI that turns Claude Code session logs into evidence-backed insights and apply-ready actions",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.15.4",
@@ -41,32 +41,32 @@
41
41
  "url": "https://github.com/jmlweb/hyntx"
42
42
  },
43
43
  "devDependencies": {
44
- "@commitlint/cli": "^20.3.0",
45
- "@commitlint/config-conventional": "^20.3.0",
46
- "@eslint/js": "^9.39.2",
47
- "@jmlweb/commitlint-config": "^3.0.1",
48
- "@jmlweb/eslint-config-base": "^2.0.8",
49
- "@jmlweb/prettier-config-base": "^1.0.6",
50
- "@jmlweb/tsconfig-base": "^1.0.5",
51
- "@jmlweb/tsup-config-base": "^1.1.4",
52
- "@jmlweb/vitest-config": "^2.0.0",
53
- "@semantic-release/changelog": "^6.0.3",
44
+ "@commitlint/cli": "^21.2.4",
45
+ "@commitlint/config-conventional": "^21.2.4",
46
+ "@eslint/js": "^10.0.1",
47
+ "@jmlweb/commitlint-config": "^4.1.1",
48
+ "@jmlweb/eslint-config-base": "^3.0.4",
49
+ "@jmlweb/prettier-config-base": "^2.0.2",
50
+ "@jmlweb/tsconfig-base": "^2.0.1",
51
+ "@jmlweb/tsup-config-base": "^2.0.3",
52
+ "@jmlweb/vitest-config": "^3.0.2",
53
+ "@semantic-release/changelog": "^7.0.0",
54
54
  "@semantic-release/exec": "^7.1.0",
55
- "@semantic-release/git": "^10.0.1",
56
- "@types/node": "^25.0.3",
57
- "@vitest/coverage-v8": "^4.0.16",
58
- "conventional-changelog-conventionalcommits": "^9.1.0",
59
- "eslint": "^9.39.2",
55
+ "@semantic-release/git": "^11.0.1",
56
+ "@types/node": "^22.20.5",
57
+ "@vitest/coverage-v8": "^5.0.5",
58
+ "conventional-changelog-conventionalcommits": "^9.3.1",
59
+ "eslint": "^10.13.0",
60
60
  "eslint-config-prettier": "^10.1.8",
61
- "eslint-plugin-simple-import-sort": "^12.1.1",
61
+ "eslint-plugin-simple-import-sort": "^14.0.0",
62
62
  "husky": "^9.1.7",
63
- "lint-staged": "^16.2.7",
64
- "prettier": "^3.7.4",
65
- "semantic-release": "^25.0.3",
66
- "tsup": "^8.5.1",
67
- "typescript": "^5.9.3",
68
- "typescript-eslint": "^8.51.0",
69
- "vitest": "^4.0.16"
63
+ "lint-staged": "^17.6.0",
64
+ "prettier": "^3.9.10",
65
+ "semantic-release": "^25.0.9",
66
+ "tsup": "^9.0.0",
67
+ "typescript": "^6.0.3",
68
+ "typescript-eslint": "^8.72.0",
69
+ "vitest": "^5.0.5"
70
70
  },
71
71
  "bin": {
72
72
  "hyntx": "dist/cli.js"
@@ -100,14 +100,14 @@
100
100
  ]
101
101
  },
102
102
  "dependencies": {
103
- "chalk": "^5.6.2",
104
- "ora": "^9.0.0"
103
+ "chalk": "^6.0.1",
104
+ "ora": "^9.4.1"
105
105
  },
106
106
  "pnpm": {
107
107
  "overrides": {
108
108
  "lodash": ">=4.18.0",
109
109
  "lodash-es": ">=4.18.0",
110
- "undici": ">=7.24.0",
110
+ "undici": "^7.24.0",
111
111
  "@isaacs/brace-expansion": ">=5.0.1",
112
112
  "minimatch": ">=10.2.3",
113
113
  "rollup": ">=4.59.0",