docks-kit 0.22.28 → 0.24.0

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 (93) hide show
  1. package/AGENTS.md +42 -89
  2. package/README.md +35 -72
  3. package/cli/docs/command-guards.md +233 -197
  4. package/cli/docs/flags.md +17 -65
  5. package/cli/docs/install.md +2 -3
  6. package/cli/docs/omp-context.md +79 -7
  7. package/cli/docs/omp-models.md +27 -12
  8. package/cli/docs/overview.md +7 -18
  9. package/cli/docs/platforms.md +2 -2
  10. package/cli/docs/sync-layers.md +14 -60
  11. package/cli/docs/toolchain.md +12 -81
  12. package/cli/src/argv.ts +0 -12
  13. package/cli/src/argvValidate.ts +3 -54
  14. package/cli/src/commands/docs.ts +3 -15
  15. package/cli/src/commands/omp.ts +1 -1
  16. package/cli/src/commands/scratch.ts +1 -1
  17. package/cli/src/commands/sync.ts +5 -120
  18. package/cli/src/commands/tidy.ts +1 -1
  19. package/cli/src/commands/toolchain.ts +4 -12
  20. package/cli/src/engine-native/DESIGN.md +69 -100
  21. package/cli/src/engine-native/deps.ts +7 -92
  22. package/cli/src/engine-native/engineCtx.ts +9 -103
  23. package/cli/src/engine-native/exec.ts +1 -18
  24. package/cli/src/engine-native/index.ts +6 -8
  25. package/cli/src/engine-native/jq.ts +4 -37
  26. package/cli/src/engine-native/kitDb.ts +21 -37
  27. package/cli/src/engine-native/modes.ts +3 -132
  28. package/cli/src/engine-native/ompFastMode.ts +1 -1
  29. package/cli/src/engine-native/ompOverlay.ts +1 -1
  30. package/cli/src/engine-native/ompRemovals.ts +24 -3
  31. package/cli/src/engine-native/ompSession.ts +67 -0
  32. package/cli/src/engine-native/ompSync.ts +1 -1
  33. package/cli/src/engine-native/os/darwin.ts +0 -4
  34. package/cli/src/engine-native/os/index.ts +1 -2
  35. package/cli/src/engine-native/os/linux.ts +0 -3
  36. package/cli/src/engine-native/os/posix.ts +2 -47
  37. package/cli/src/engine-native/os/types.ts +1 -36
  38. package/cli/src/engine-native/os/windows.ts +0 -50
  39. package/cli/src/engine-native/parseArgs.ts +7 -180
  40. package/cli/src/engine-native/parseHelp.ts +4 -44
  41. package/cli/src/engine-native/scratch.ts +1 -1
  42. package/cli/src/engine-native/services.ts +1 -2
  43. package/cli/src/engine-native/sharedTypes.d.ts +1 -41
  44. package/cli/src/engine-native/syncConcurrency.ts +3 -15
  45. package/cli/src/engine-native/syncDispatch.ts +30 -143
  46. package/cli/src/engine-native/toolchain.ts +6 -45
  47. package/cli/src/engine.ts +0 -75
  48. package/cli/src/generated/sotPayload.ts +14 -43
  49. package/cli/src/main.ts +8 -24
  50. package/cli/src/payload.ts +2 -8
  51. package/cli/tsconfig.json +1 -3
  52. package/package.json +3 -5
  53. package/cli/docs/models.md +0 -58
  54. package/cli/docs/modifiers.md +0 -52
  55. package/cli/docs/plugins.md +0 -70
  56. package/cli/src/checklistPrompt.ts +0 -464
  57. package/cli/src/commands/harnesses.ts +0 -80
  58. package/cli/src/commands/model.ts +0 -68
  59. package/cli/src/commands/models.ts +0 -75
  60. package/cli/src/commands/plugins.ts +0 -35
  61. package/cli/src/commands/skills.ts +0 -40
  62. package/cli/src/commands/status.ts +0 -206
  63. package/cli/src/efforts.ts +0 -89
  64. package/cli/src/engine-native/claudeLsp.ts +0 -301
  65. package/cli/src/engine-native/claudeOptionalPlugins.ts +0 -126
  66. package/cli/src/engine-native/claudePluginPasses.ts +0 -426
  67. package/cli/src/engine-native/claudeRemovals.ts +0 -383
  68. package/cli/src/engine-native/claudeRetired.ts +0 -165
  69. package/cli/src/engine-native/claudeRuntime.ts +0 -157
  70. package/cli/src/engine-native/claudeSettings.ts +0 -201
  71. package/cli/src/engine-native/claudeSettingsModifiers.ts +0 -115
  72. package/cli/src/engine-native/claudeSync.ts +0 -312
  73. package/cli/src/engine-native/codexConfig.ts +0 -214
  74. package/cli/src/engine-native/codexHooks.ts +0 -91
  75. package/cli/src/engine-native/codexPaths.ts +0 -14
  76. package/cli/src/engine-native/codexPlugins.ts +0 -315
  77. package/cli/src/engine-native/codexStatus.ts +0 -25
  78. package/cli/src/engine-native/codexSync.ts +0 -314
  79. package/cli/src/engine-native/codexToml.ts +0 -303
  80. package/cli/src/engine-native/harnesses.ts +0 -138
  81. package/cli/src/engine-native/liveModels.ts +0 -264
  82. package/cli/src/engine-native/models.ts +0 -101
  83. package/cli/src/engine-native/parseModifiers.ts +0 -225
  84. package/cli/src/engine-native/settings.ts +0 -42
  85. package/cli/src/engine-native/skillsInstall.ts +0 -135
  86. package/cli/src/engine-native/skillsLinks.ts +0 -216
  87. package/cli/src/engine-native/skillsManifest.ts +0 -36
  88. package/cli/src/engine-native/skillsPrune.ts +0 -117
  89. package/cli/src/engine-native/skillsRecords.ts +0 -138
  90. package/cli/src/engine-native/skillsSync.ts +0 -57
  91. package/cli/src/engine-native/tomlLines.ts +0 -92
  92. package/cli/src/manifests.ts +0 -145
  93. package/cli/src/terminalCells.ts +0 -191
@@ -1,191 +0,0 @@
1
- // Marks (variation selectors included), controls, and format characters such
2
- // as the zero-width joiner use no cell.
3
- const ZERO_WIDTH = /[\p{Mark}\p{Cc}\p{Cf}]/u;
4
-
5
- // The code points with East Asian Width W or F, after UAX #11
6
- // (https://www.unicode.org/reports/tr11/). The W data also holds the emoji
7
- // presentation characters, so emoji need no separate rule.
8
- // Source: https://www.unicode.org/Public/18.0.0/ucd/EastAsianWidth.txt
9
- // (Unicode 18.0.0, sha256
10
- // a0cf29eacd00cfcaec4381c6b7c281685f18dbb4e7ff82b4076ccb342ca839aa).
11
- // Derivation: take every code point with East_Asian_Width W or F, then merge
12
- // adjacent ranges. The ranges are sorted and do not overlap. To update the
13
- // table, derive it again the same way from a newer EastAsianWidth.txt.
14
- const WIDE_RANGES: ReadonlyArray<readonly [number, number]> = [
15
- [0x1100, 0x115f],
16
- [0x231a, 0x231b],
17
- [0x2329, 0x232a],
18
- [0x23e9, 0x23ec],
19
- [0x23f0, 0x23f0],
20
- [0x23f3, 0x23f3],
21
- [0x25fd, 0x25fe],
22
- [0x2614, 0x2615],
23
- [0x2630, 0x2637],
24
- [0x2648, 0x2653],
25
- [0x267f, 0x267f],
26
- [0x268a, 0x268f],
27
- [0x2693, 0x2693],
28
- [0x26a1, 0x26a1],
29
- [0x26aa, 0x26ab],
30
- [0x26bd, 0x26be],
31
- [0x26c4, 0x26c5],
32
- [0x26ce, 0x26ce],
33
- [0x26d4, 0x26d4],
34
- [0x26ea, 0x26ea],
35
- [0x26f2, 0x26f3],
36
- [0x26f5, 0x26f5],
37
- [0x26fa, 0x26fa],
38
- [0x26fd, 0x26fd],
39
- [0x2705, 0x2705],
40
- [0x270a, 0x270b],
41
- [0x2728, 0x2728],
42
- [0x274c, 0x274c],
43
- [0x274e, 0x274e],
44
- [0x2753, 0x2755],
45
- [0x2757, 0x2757],
46
- [0x2795, 0x2797],
47
- [0x27b0, 0x27b0],
48
- [0x27bf, 0x27bf],
49
- [0x2b1b, 0x2b1c],
50
- [0x2b50, 0x2b50],
51
- [0x2b55, 0x2b55],
52
- [0x2e80, 0x2e99],
53
- [0x2e9b, 0x2ef3],
54
- [0x2f00, 0x2fd5],
55
- [0x2ff0, 0x303e],
56
- [0x3041, 0x3096],
57
- [0x3099, 0x30ff],
58
- [0x3105, 0x312f],
59
- [0x3131, 0x318e],
60
- [0x3190, 0x31e5],
61
- [0x31ef, 0x321e],
62
- [0x3220, 0x3247],
63
- [0x3250, 0xa48c],
64
- [0xa490, 0xa4c6],
65
- [0xa960, 0xa97c],
66
- [0xac00, 0xd7a3],
67
- [0xf900, 0xfaff],
68
- [0xfe10, 0xfe19],
69
- [0xfe30, 0xfe52],
70
- [0xfe54, 0xfe66],
71
- [0xfe68, 0xfe6b],
72
- [0xff01, 0xff60],
73
- [0xffe0, 0xffe6],
74
- [0x16fe0, 0x16fe4],
75
- [0x16ff0, 0x16ff6],
76
- [0x17000, 0x18cda],
77
- [0x18cff, 0x18d20],
78
- [0x18d80, 0x18df2],
79
- [0x18e00, 0x19191],
80
- [0x191a0, 0x191d2],
81
- [0x1aff0, 0x1aff3],
82
- [0x1aff5, 0x1affb],
83
- [0x1affd, 0x1affe],
84
- [0x1b000, 0x1b128],
85
- [0x1b132, 0x1b132],
86
- [0x1b150, 0x1b152],
87
- [0x1b155, 0x1b155],
88
- [0x1b164, 0x1b168],
89
- [0x1b170, 0x1b2fb],
90
- [0x1d300, 0x1d356],
91
- [0x1d360, 0x1d376],
92
- [0x1f004, 0x1f004],
93
- [0x1f0cf, 0x1f0cf],
94
- [0x1f18e, 0x1f18e],
95
- [0x1f191, 0x1f19a],
96
- [0x1f1ae, 0x1f1ae],
97
- [0x1f200, 0x1f202],
98
- [0x1f210, 0x1f23b],
99
- [0x1f240, 0x1f248],
100
- [0x1f250, 0x1f251],
101
- [0x1f260, 0x1f265],
102
- [0x1f300, 0x1f320],
103
- [0x1f32d, 0x1f335],
104
- [0x1f337, 0x1f37c],
105
- [0x1f37e, 0x1f393],
106
- [0x1f3a0, 0x1f3ca],
107
- [0x1f3cf, 0x1f3d3],
108
- [0x1f3e0, 0x1f3f0],
109
- [0x1f3f4, 0x1f3f4],
110
- [0x1f3f8, 0x1f43e],
111
- [0x1f440, 0x1f440],
112
- [0x1f442, 0x1f4fc],
113
- [0x1f4ff, 0x1f53d],
114
- [0x1f54b, 0x1f54e],
115
- [0x1f550, 0x1f567],
116
- [0x1f57a, 0x1f57a],
117
- [0x1f595, 0x1f596],
118
- [0x1f5a4, 0x1f5a4],
119
- [0x1f5fb, 0x1f64f],
120
- [0x1f680, 0x1f6c5],
121
- [0x1f6cc, 0x1f6cc],
122
- [0x1f6d0, 0x1f6d2],
123
- [0x1f6d5, 0x1f6d9],
124
- [0x1f6dc, 0x1f6df],
125
- [0x1f6eb, 0x1f6ec],
126
- [0x1f6f4, 0x1f6fc],
127
- [0x1f7da, 0x1f7da],
128
- [0x1f7e0, 0x1f7eb],
129
- [0x1f7f0, 0x1f7f0],
130
- [0x1f90c, 0x1f93a],
131
- [0x1f93c, 0x1f945],
132
- [0x1f947, 0x1f9ff],
133
- [0x1fa70, 0x1fa7c],
134
- [0x1fa80, 0x1fac6],
135
- [0x1fac8, 0x1fac8],
136
- [0x1facc, 0x1fadd],
137
- [0x1fadf, 0x1faeb],
138
- [0x1faef, 0x1fafa],
139
- [0x20000, 0x2fffd],
140
- [0x30000, 0x3fffd],
141
- ];
142
-
143
- function isWide(point: number): boolean {
144
- let low = 0;
145
- let high = WIDE_RANGES.length - 1;
146
- while (low <= high) {
147
- const middle = (low + high) >> 1;
148
- const [first, last] = WIDE_RANGES[middle] ?? [0, -1];
149
- if (point < first) high = middle - 1;
150
- else if (point > last) low = middle + 1;
151
- else return true;
152
- }
153
- return false;
154
- }
155
-
156
- function charCells(char: string): number {
157
- if (ZERO_WIDTH.test(char)) return 0;
158
- return isWide(char.codePointAt(0) ?? 0) ? 2 : 1;
159
- }
160
-
161
- /**
162
- * The terminal cells of `text`: 0 for each mark, control, or format
163
- * character; 2 for each character with East Asian Width W or F; else 1.
164
- */
165
- export function terminalCells(text: string): number {
166
- let cells = 0;
167
- for (const char of text) cells += charCells(char);
168
- return cells;
169
- }
170
-
171
- /**
172
- * The rows that `text` uses on a terminal `columns` wide (a value below 1
173
- * counts as 1). A terminal never splits a character: a wide character that
174
- * does not fit in the rest of a row moves to the next row and leaves the last
175
- * cell of the row empty. An empty text uses 1 row.
176
- */
177
- export function terminalRows(text: string, columns: number): number {
178
- const width = Math.max(1, columns);
179
- let rows = 1;
180
- let column = 0;
181
- for (const char of text) {
182
- const cells = charCells(char);
183
- if (cells === 0) continue;
184
- if (column !== 0 && column + cells > width) {
185
- rows += 1;
186
- column = 0;
187
- }
188
- column += cells;
189
- }
190
- return rows;
191
- }