docks-kit 0.16.4 → 0.16.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.
- package/AGENTS.md +2 -1
- package/cli/docs/omp-models.md +34 -1
- package/cli/src/argv.ts +2 -1
- package/cli/src/commands/model.ts +2 -1
- package/cli/src/commands/models.ts +2 -1
- package/cli/src/commands/status.ts +2 -11
- package/cli/src/efforts.ts +0 -4
- package/cli/src/engine-native/bun.ts +1 -1
- package/cli/src/engine-native/claudePlugins.ts +390 -0
- package/cli/src/engine-native/claudeSync.ts +2 -387
- package/cli/src/engine-native/codexSync.ts +6 -146
- package/cli/src/engine-native/codexToml.ts +144 -3
- package/cli/src/engine-native/exec.ts +1 -5
- package/cli/src/engine-native/jq.ts +7 -0
- package/cli/src/engine-native/models.ts +31 -9
- package/cli/src/engine-native/ompSync.ts +3 -3
- package/cli/src/engine-native/os/darwin.ts +8 -56
- package/cli/src/engine-native/os/linux.ts +8 -56
- package/cli/src/engine-native/os/posix.ts +67 -0
- package/cli/src/engine-native/os/targets.ts +1 -1
- package/cli/src/engine-native/skillsSync.ts +3 -3
- package/cli/src/engine-native/toolchain.ts +7 -7
- package/cli/src/generated/sotPayload.ts +3 -3
- package/cli/src/manifests.ts +1 -18
- package/package.json +1 -1
package/cli/src/manifests.ts
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
1
|
import { existsSync, lstatSync, readFileSync, readdirSync, readlinkSync } from "node:fs"
|
|
2
2
|
import { homedir } from "node:os"
|
|
3
3
|
import { dirname, join, resolve } from "node:path"
|
|
4
|
-
import { pluginUserScopeInstalled } from "./engine-native/
|
|
4
|
+
import { pluginUserScopeInstalled } from "./engine-native/claudePlugins"
|
|
5
5
|
import { COPY_MARKER } from "./engine-native/skillsSync"
|
|
6
6
|
import { payloadText } from "./payload"
|
|
7
7
|
|
|
8
8
|
export { homedir }
|
|
9
9
|
|
|
10
|
-
export interface ModelEntry {
|
|
11
|
-
readonly id: string
|
|
12
|
-
readonly kind: "alias" | "id"
|
|
13
|
-
readonly note?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ModelCatalog {
|
|
17
|
-
readonly verified: string
|
|
18
|
-
readonly models: ReadonlyArray<ModelEntry>
|
|
19
|
-
}
|
|
20
|
-
|
|
21
10
|
export type Tool = "claude" | "codex"
|
|
22
11
|
|
|
23
12
|
const readJson = (path: string): any => JSON.parse(readFileSync(path, "utf8"))
|
|
24
13
|
const readJsonText = (text: string): any => JSON.parse(text)
|
|
25
14
|
|
|
26
|
-
export const modelCatalog = (tool: Tool): ModelCatalog =>
|
|
27
|
-
readJsonText(payloadText("SoT/models.json"))[tool]
|
|
28
|
-
|
|
29
|
-
export const toolchainManifest = (): Record<string, any> =>
|
|
30
|
-
readJsonText(payloadText("SoT/toolchain.json")).tools
|
|
31
|
-
|
|
32
15
|
/** SoT settings (claude) — model/effort/env for drift display. */
|
|
33
16
|
export const sotClaudeSettings = (): any =>
|
|
34
17
|
readJsonText(payloadText("SoT/.claude/settings.json"))
|
package/package.json
CHANGED