docks-kit 0.22.28 → 0.23.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.
- package/AGENTS.md +31 -77
- package/README.md +31 -58
- package/cli/docs/command-guards.md +231 -197
- package/cli/docs/flags.md +25 -55
- package/cli/docs/install.md +2 -3
- package/cli/docs/omp-models.md +9 -0
- package/cli/docs/overview.md +4 -12
- package/cli/docs/platforms.md +2 -2
- package/cli/docs/sync-layers.md +10 -57
- package/cli/docs/toolchain.md +9 -78
- package/cli/src/argv.ts +0 -8
- package/cli/src/argvValidate.ts +2 -46
- package/cli/src/commands/docs.ts +2 -14
- package/cli/src/commands/harnesses.ts +6 -9
- package/cli/src/commands/sync.ts +5 -99
- package/cli/src/commands/toolchain.ts +4 -12
- package/cli/src/engine-native/DESIGN.md +67 -88
- package/cli/src/engine-native/deps.ts +6 -86
- package/cli/src/engine-native/engineCtx.ts +7 -76
- package/cli/src/engine-native/exec.ts +1 -18
- package/cli/src/engine-native/harnesses.ts +6 -6
- package/cli/src/engine-native/index.ts +4 -6
- package/cli/src/engine-native/jq.ts +4 -37
- package/cli/src/engine-native/modes.ts +3 -132
- package/cli/src/engine-native/os/darwin.ts +0 -4
- package/cli/src/engine-native/os/index.ts +1 -2
- package/cli/src/engine-native/os/linux.ts +0 -3
- package/cli/src/engine-native/os/posix.ts +2 -46
- package/cli/src/engine-native/os/types.ts +1 -32
- package/cli/src/engine-native/os/windows.ts +0 -49
- package/cli/src/engine-native/parseArgs.ts +11 -124
- package/cli/src/engine-native/parseHelp.ts +5 -40
- package/cli/src/engine-native/scratch.ts +1 -1
- package/cli/src/engine-native/services.ts +1 -2
- package/cli/src/engine-native/sharedTypes.d.ts +0 -40
- package/cli/src/engine-native/skillsSync.ts +1 -1
- package/cli/src/engine-native/syncConcurrency.ts +3 -15
- package/cli/src/engine-native/syncDispatch.ts +10 -57
- package/cli/src/engine-native/toolchain.ts +5 -40
- package/cli/src/engine.ts +0 -75
- package/cli/src/generated/sotPayload.ts +12 -39
- package/cli/src/main.ts +7 -19
- package/cli/src/manifests.ts +1 -93
- package/cli/src/payload.ts +2 -8
- package/cli/tsconfig.json +1 -3
- package/package.json +3 -5
- package/cli/docs/models.md +0 -58
- package/cli/docs/modifiers.md +0 -52
- package/cli/docs/plugins.md +0 -70
- package/cli/src/commands/model.ts +0 -68
- package/cli/src/commands/models.ts +0 -75
- package/cli/src/commands/plugins.ts +0 -35
- package/cli/src/commands/status.ts +0 -206
- package/cli/src/efforts.ts +0 -89
- package/cli/src/engine-native/claudeLsp.ts +0 -301
- package/cli/src/engine-native/claudeOptionalPlugins.ts +0 -126
- package/cli/src/engine-native/claudePluginPasses.ts +0 -426
- package/cli/src/engine-native/claudeRemovals.ts +0 -383
- package/cli/src/engine-native/claudeRetired.ts +0 -165
- package/cli/src/engine-native/claudeRuntime.ts +0 -157
- package/cli/src/engine-native/claudeSettings.ts +0 -201
- package/cli/src/engine-native/claudeSettingsModifiers.ts +0 -115
- package/cli/src/engine-native/claudeSync.ts +0 -312
- package/cli/src/engine-native/codexConfig.ts +0 -214
- package/cli/src/engine-native/codexHooks.ts +0 -91
- package/cli/src/engine-native/codexPaths.ts +0 -14
- package/cli/src/engine-native/codexPlugins.ts +0 -315
- package/cli/src/engine-native/codexStatus.ts +0 -25
- package/cli/src/engine-native/codexSync.ts +0 -314
- package/cli/src/engine-native/codexToml.ts +0 -303
- package/cli/src/engine-native/liveModels.ts +0 -264
- package/cli/src/engine-native/models.ts +0 -101
- package/cli/src/engine-native/parseModifiers.ts +0 -225
- package/cli/src/engine-native/settings.ts +0 -42
- package/cli/src/engine-native/tomlLines.ts +0 -92
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The line grammar of the line-based TOML passes: table header lines, key
|
|
3
|
-
* lines, and the lines that continue a value from an earlier line. The module
|
|
4
|
-
* imports nothing, so `manifests.ts` can read a Codex config without a runtime
|
|
5
|
-
* cycle through `codexToml.ts` and `efforts.ts`.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export function isTomlHeaderLine(line: string): boolean {
|
|
9
|
-
return /^[ \t]*\[/.test(line);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** Offset just past the quoted string that starts at `start`, or the line end when it stays open. */
|
|
13
|
-
function skipQuoted(line: string, start: number): number {
|
|
14
|
-
const quote = line[start];
|
|
15
|
-
let offset = start + 1;
|
|
16
|
-
while (offset < line.length) {
|
|
17
|
-
if (quote === '"' && line[offset] === "\\") {
|
|
18
|
-
offset += 2;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
if (line[offset] === quote) return offset + 1;
|
|
22
|
-
offset++;
|
|
23
|
-
}
|
|
24
|
-
return offset;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** Offset of the `=` that ends the key on a key line, or undefined for other lines. */
|
|
28
|
-
export function keyValueSeparator(line: string): number | undefined {
|
|
29
|
-
if (/^[ \t]*($|#|\[)/.test(line)) return undefined;
|
|
30
|
-
let offset = 0;
|
|
31
|
-
while (offset < line.length) {
|
|
32
|
-
const char = line[offset]!;
|
|
33
|
-
if (char === "=") return offset;
|
|
34
|
-
offset = char === '"' || char === "'" ? skipQuoted(line, offset) : offset + 1;
|
|
35
|
-
}
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Mark each line that continues a value opened on an earlier line: the body of
|
|
41
|
-
* a `"""` or `'''` string, or the rest of an array or inline table that spans
|
|
42
|
-
* lines. A marked line is never a table header or a key line.
|
|
43
|
-
*/
|
|
44
|
-
export function tomlContinuationLines(lines: ReadonlyArray<string>): Array<boolean> {
|
|
45
|
-
const continuation: Array<boolean> = [];
|
|
46
|
-
let openString: string | undefined;
|
|
47
|
-
let depth = 0;
|
|
48
|
-
const scanValue = (line: string, start: number): void => {
|
|
49
|
-
let offset = start;
|
|
50
|
-
while (offset < line.length) {
|
|
51
|
-
if (openString !== undefined) {
|
|
52
|
-
if (openString === '"""' && line[offset] === "\\") {
|
|
53
|
-
offset += 2;
|
|
54
|
-
} else if (line.startsWith(openString, offset)) {
|
|
55
|
-
// A closing delimiter can carry up to two extra quotes of string content.
|
|
56
|
-
let end = offset + 3;
|
|
57
|
-
while (end < offset + 5 && line[end] === openString[0]) end++;
|
|
58
|
-
offset = end;
|
|
59
|
-
openString = undefined;
|
|
60
|
-
} else {
|
|
61
|
-
offset++;
|
|
62
|
-
}
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
const char = line[offset]!;
|
|
66
|
-
if (char === "#") return;
|
|
67
|
-
if (line.startsWith('"""', offset) || line.startsWith("'''", offset)) {
|
|
68
|
-
openString = line.slice(offset, offset + 3);
|
|
69
|
-
offset += 3;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
if (char === '"' || char === "'") {
|
|
73
|
-
offset = skipQuoted(line, offset);
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (char === "[" || char === "{") depth++;
|
|
77
|
-
else if ((char === "]" || char === "}") && depth > 0) depth--;
|
|
78
|
-
offset++;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
for (const line of lines) {
|
|
82
|
-
if (openString !== undefined || depth > 0) {
|
|
83
|
-
continuation.push(true);
|
|
84
|
-
scanValue(line, 0);
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
continuation.push(false);
|
|
88
|
-
const separator = keyValueSeparator(line);
|
|
89
|
-
if (separator !== undefined) scanValue(line, separator + 1);
|
|
90
|
-
}
|
|
91
|
-
return continuation;
|
|
92
|
-
}
|