knodin 0.7.4 → 0.7.6

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 (104) hide show
  1. package/README.md +4 -1
  2. package/dist/bin/cli.js +108 -1859
  3. package/dist/bin/launcher.js +3 -10
  4. package/dist/chunks/chunk-DMQAGX77.js +654 -0
  5. package/dist/chunks/chunk-F4Z3Z766.js +4 -0
  6. package/dist/chunks/chunk-SIJAQVSX.js +3 -0
  7. package/dist/chunks/chunk-X6M4HUUE.js +2 -0
  8. package/dist/chunks/chunk-YPRMY2LP.js +8 -0
  9. package/dist/chunks/pure-compression-cli-4TA2TQD5.js +5 -0
  10. package/dist/chunks/server-7EDF4CBY.js +14 -0
  11. package/dist/chunks/structural-fast-path-KD5KQSPX.js +4 -0
  12. package/dist/src/init-progress-worker.js +2 -106
  13. package/dist/src/repair-progress-worker.js +2 -120
  14. package/docs/INSTALLATION.md +17 -1
  15. package/docs/releases/0.7.6.md +25 -0
  16. package/package.json +1 -110
  17. package/dist/src/agent-integration.js +0 -238
  18. package/dist/src/artifact-refresh.js +0 -81
  19. package/dist/src/cli-args.js +0 -274
  20. package/dist/src/cli-model.js +0 -358
  21. package/dist/src/codeflow-replay.js +0 -80
  22. package/dist/src/compact-structural.js +0 -96
  23. package/dist/src/competitive-cold-mcp.js +0 -40
  24. package/dist/src/competitive-constraints.js +0 -20
  25. package/dist/src/competitive-manifest.js +0 -411
  26. package/dist/src/competitive-measurement.js +0 -183
  27. package/dist/src/competitive-runner.js +0 -487
  28. package/dist/src/competitive-sandbox.js +0 -108
  29. package/dist/src/context-export.js +0 -422
  30. package/dist/src/context.js +0 -102
  31. package/dist/src/diagnostics.js +0 -449
  32. package/dist/src/docs-sections.js +0 -141
  33. package/dist/src/doctor.js +0 -380
  34. package/dist/src/engine/ann-hnsw.js +0 -271
  35. package/dist/src/engine/embeddings.js +0 -193
  36. package/dist/src/engine/file-walker.js +0 -43
  37. package/dist/src/engine/git-history.js +0 -289
  38. package/dist/src/engine/index.js +0 -13377
  39. package/dist/src/engine/perf.js +0 -115
  40. package/dist/src/engine/prune.js +0 -112
  41. package/dist/src/engine/scip-import.js +0 -408
  42. package/dist/src/engine/source-policy.js +0 -69
  43. package/dist/src/engine/sqlite.js +0 -71
  44. package/dist/src/engine/symbol-delete.js +0 -58
  45. package/dist/src/execution-profile.js +0 -203
  46. package/dist/src/failure-diagnosis.js +0 -649
  47. package/dist/src/fleet.js +0 -7
  48. package/dist/src/git-executable.js +0 -31
  49. package/dist/src/graph-query-health.js +0 -115
  50. package/dist/src/hook-manager-integration.js +0 -156
  51. package/dist/src/index-activity.js +0 -125
  52. package/dist/src/init-progress.js +0 -155
  53. package/dist/src/init.js +0 -1254
  54. package/dist/src/lifecycle-health.js +0 -250
  55. package/dist/src/lsp-readonly.js +0 -217
  56. package/dist/src/output-compression.js +0 -629
  57. package/dist/src/output-telemetry.js +0 -363
  58. package/dist/src/pr-triage.js +0 -638
  59. package/dist/src/progressive-evidence.js +0 -473
  60. package/dist/src/pure-compression-cli.js +0 -101
  61. package/dist/src/relationship-adapters.js +0 -370
  62. package/dist/src/release-attestation.js +0 -533
  63. package/dist/src/release-preflight.js +0 -510
  64. package/dist/src/repair-progress.js +0 -262
  65. package/dist/src/repository-init-process.js +0 -173
  66. package/dist/src/repository-management.js +0 -1231
  67. package/dist/src/response-budget.js +0 -194
  68. package/dist/src/server.js +0 -73
  69. package/dist/src/structural-fast-path.js +0 -338
  70. package/dist/src/structural-snapshot.js +0 -33
  71. package/dist/src/system-config.js +0 -615
  72. package/dist/src/terminal-help.js +0 -83
  73. package/dist/src/tools/knodin-tools.js +0 -1529
  74. package/dist/src/update-ceremony.js +0 -158
  75. package/dist/src/update-policy.js +0 -944
  76. package/dist/src/update-trust.js +0 -503
  77. package/dist/src/version.js +0 -13
  78. package/dist/src/visualization.js +0 -162
  79. package/dist/src/wait-for-fresh.js +0 -98
  80. package/dist/src/worktree-lifecycle.js +0 -231
  81. package/docs/CONTAINED-EXECUTION.md +0 -77
  82. package/docs/DIAGNOSTICS.md +0 -45
  83. package/docs/GIT-HISTORY-REVIEW.md +0 -39
  84. package/docs/PROGRESSIVE-EVIDENCE.md +0 -37
  85. package/docs/PT-ACCESS-RECOMMENDATION.md +0 -91
  86. package/docs/RELEASE-0.3-EVIDENCE.md +0 -73
  87. package/docs/SCIP-IMPORT.md +0 -57
  88. package/docs/SIGNED-UPDATES.md +0 -151
  89. package/docs/TELEMETRY.md +0 -46
  90. package/docs/assets/knodin-favicon.svg +0 -4
  91. package/docs/releases/0.3.0.md +0 -46
  92. package/docs/releases/0.4.0.md +0 -68
  93. package/docs/releases/0.4.1.md +0 -28
  94. package/docs/releases/0.4.2.md +0 -27
  95. package/docs/releases/0.4.3.md +0 -23
  96. package/docs/releases/0.5.0.md +0 -29
  97. package/docs/releases/0.5.1.md +0 -17
  98. package/docs/releases/0.6.0.md +0 -18
  99. package/docs/releases/0.7.0.md +0 -24
  100. package/docs/releases/0.7.1.md +0 -21
  101. package/docs/releases/0.7.2.md +0 -21
  102. package/docs/releases/0.7.3.md +0 -23
  103. package/docs/releases/0.7.4.md +0 -17
  104. package/schemas/release-attestation-v1.schema.json +0 -210
@@ -1,83 +0,0 @@
1
- const DEFAULT_HELP_WIDTH = 100;
2
- const MIN_HELP_WIDTH = 60;
3
- function leadingWidth(line) {
4
- return line.length - line.trimStart().length;
5
- }
6
- function logicalLines(template) {
7
- const logical = [];
8
- let current = null;
9
- for (const raw of template.replaceAll("\t", " ").split("\n")) {
10
- if (raw.trim() === "") {
11
- if (current)
12
- logical.push(current);
13
- current = null;
14
- logical.push(null);
15
- continue;
16
- }
17
- if (current && leadingWidth(raw) >= 4) {
18
- current.continuations.push(raw);
19
- continue;
20
- }
21
- if (current)
22
- logical.push(current);
23
- current = { first: raw.trimEnd(), continuations: [] };
24
- }
25
- if (current)
26
- logical.push(current);
27
- return logical;
28
- }
29
- function wrapWords(text, firstPrefix, continuationPrefix, width) {
30
- const words = text.trim().split(/\s+/);
31
- const lines = [];
32
- let line = firstPrefix;
33
- for (const word of words) {
34
- const separator = line.trim().length > 0 ? " " : "";
35
- if (line.length + separator.length + word.length > width && line.trim().length > 0) {
36
- lines.push(line.trimEnd());
37
- line = `${continuationPrefix}${word}`;
38
- }
39
- else {
40
- line += `${separator}${word}`;
41
- }
42
- }
43
- if (line.trim().length > 0)
44
- lines.push(line.trimEnd());
45
- return lines;
46
- }
47
- function renderLogicalLine(line, width) {
48
- const firstIndent = " ".repeat(leadingWidth(line.first));
49
- const firstText = line.first.trim();
50
- if (line.continuations.length === 0 && line.first.length <= width)
51
- return [line.first];
52
- const continuationColumn = line.continuations.length > 0
53
- ? Math.min(...line.continuations.map(leadingWidth))
54
- : leadingWidth(line.first);
55
- const joined = [firstText, ...line.continuations.map((value) => value.trim())].join(" ");
56
- if (line.continuations.length > 0 && firstIndent.length + firstText.length > width * 0.55) {
57
- return wrapWords(joined, firstIndent, `${firstIndent} `, width);
58
- }
59
- const separator = /\s{2,}/.exec(firstText);
60
- if (separator?.index !== undefined) {
61
- const left = firstText.slice(0, separator.index).trimEnd();
62
- const description = joined.slice(separator.index + separator[0].length).trim();
63
- const descriptionColumn = Math.max(firstIndent.length + left.length + 2, continuationColumn);
64
- return wrapWords(description, `${firstIndent}${left}${" ".repeat(Math.max(2, descriptionColumn - firstIndent.length - left.length))}`, " ".repeat(descriptionColumn), width);
65
- }
66
- if (line.continuations.length > 0) {
67
- const commandWidth = firstIndent.length + firstText.length;
68
- const descriptionColumn = Math.max(commandWidth + 2, continuationColumn);
69
- const description = line.continuations.map((value) => value.trim()).join(" ");
70
- return wrapWords(description, `${firstIndent}${firstText}${" ".repeat(Math.max(2, descriptionColumn - commandWidth))}`, " ".repeat(descriptionColumn), width);
71
- }
72
- return wrapWords(firstText, firstIndent, firstIndent, width);
73
- }
74
- /** Reflow authored help to the active TTY, with a deterministic width for piped output. */
75
- export function formatTerminalHelp(template, columns) {
76
- const width = columns === undefined || !Number.isFinite(columns)
77
- ? DEFAULT_HELP_WIDTH
78
- : Math.max(MIN_HELP_WIDTH, Math.floor(columns) - 1);
79
- const rendered = logicalLines(template).flatMap((line) => line === null ? [""] : renderLogicalLine(line, width));
80
- while (rendered.at(-1) === "")
81
- rendered.pop();
82
- return `${rendered.join("\n")}\n`;
83
- }