@compilr-dev/cli 0.6.6 → 0.7.1
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/commands-v2/handlers/core.js +10 -1
- package/dist/commands-v2/handlers/index.d.ts +1 -0
- package/dist/commands-v2/handlers/index.js +3 -0
- package/dist/commands-v2/handlers/settings.js +21 -5
- package/dist/commands-v2/handlers/skill.d.ts +10 -0
- package/dist/commands-v2/handlers/skill.js +63 -0
- package/dist/commands-v2/index.d.ts +1 -1
- package/dist/commands-v2/index.js +1 -1
- package/dist/commands-v2/registry.d.ts +4 -0
- package/dist/commands-v2/registry.js +19 -0
- package/dist/compilr-diff-companion.vsix +0 -0
- package/dist/index.js +8 -12
- package/dist/repl-helpers.d.ts +29 -1
- package/dist/repl-helpers.js +77 -7
- package/dist/repl-v2.js +29 -3
- package/dist/tools/delegation-status.d.ts +3 -12
- package/dist/tools/delegation-status.js +4 -123
- package/dist/tools/handoff.d.ts +9 -17
- package/dist/tools/handoff.js +28 -48
- package/dist/ui/conversation.js +1 -2
- package/dist/ui/markdown-renderer.d.ts +43 -0
- package/dist/ui/markdown-renderer.js +474 -0
- package/dist/ui/overlay/impl/artifact-detail-overlay-v2.js +1 -2
- package/dist/ui/overlay/impl/document-detail-overlay-v2.js +1 -2
- package/dist/ui/overlay/impl/help-overlay-v2.d.ts +7 -1
- package/dist/ui/overlay/impl/help-overlay-v2.js +19 -2
- package/dist/ui/overlay/impl/skill-detail-overlay-v2.d.ts +91 -0
- package/dist/ui/overlay/impl/skill-detail-overlay-v2.js +863 -0
- package/dist/ui/overlay/impl/skill-editor-overlay.d.ts +56 -0
- package/dist/ui/overlay/impl/skill-editor-overlay.js +493 -0
- package/dist/ui/overlay/impl/skills-overlay-v2.d.ts +83 -0
- package/dist/ui/overlay/impl/skills-overlay-v2.js +1095 -0
- package/dist/utils/skill-paths.d.ts +21 -0
- package/dist/utils/skill-paths.js +44 -0
- package/package.json +9 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill path resolution — thin wrapper over @compilr-dev/sdk.
|
|
3
|
+
*
|
|
4
|
+
* Bridges CLI's `(scope, cwd?)` API with SDK's `(scope, projectDir?)` API
|
|
5
|
+
* by resolving `projectDir` from `getProjectPath(cwd)`.
|
|
6
|
+
*/
|
|
7
|
+
import { isValidSkillName, type SkillScope, type ScopeConfig } from '@compilr-dev/sdk';
|
|
8
|
+
export type { SkillScope, ScopeConfig };
|
|
9
|
+
export { isValidSkillName };
|
|
10
|
+
export declare function getSkillsDir(scope: SkillScope, cwd?: string): string;
|
|
11
|
+
export declare function ensureSkillsDir(scope: SkillScope, cwd?: string): Promise<string>;
|
|
12
|
+
export declare function getSkillFolder(name: string, scope: SkillScope, cwd?: string): string;
|
|
13
|
+
export declare function getSkillFile(name: string, scope: SkillScope, cwd?: string): string;
|
|
14
|
+
export declare function getScopeConfigPath(scope: SkillScope, cwd?: string): string;
|
|
15
|
+
export declare function readScopeConfig(scope: SkillScope, cwd?: string): Promise<ScopeConfig>;
|
|
16
|
+
export declare function readScopeConfigSync(scope: SkillScope, cwd?: string): ScopeConfig;
|
|
17
|
+
export declare function writeScopeConfig(scope: SkillScope, config: ScopeConfig, cwd?: string): Promise<void>;
|
|
18
|
+
export declare function getAllBindings(cwd?: string): Promise<Record<string, {
|
|
19
|
+
skillName: string;
|
|
20
|
+
scope: SkillScope;
|
|
21
|
+
}>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill path resolution — thin wrapper over @compilr-dev/sdk.
|
|
3
|
+
*
|
|
4
|
+
* Bridges CLI's `(scope, cwd?)` API with SDK's `(scope, projectDir?)` API
|
|
5
|
+
* by resolving `projectDir` from `getProjectPath(cwd)`.
|
|
6
|
+
*/
|
|
7
|
+
import { getSkillsDir as sdkGetSkillsDir, getSkillFolder as sdkGetSkillFolder, getSkillFile as sdkGetSkillFile, ensureSkillsDir as sdkEnsureSkillsDir, getScopeConfigPath as sdkGetScopeConfigPath, readSkillScopeConfig, readSkillScopeConfigSync, writeSkillScopeConfig, getSkillBindings, isValidSkillName, } from '@compilr-dev/sdk';
|
|
8
|
+
import { getProjectPath } from './project-status.js';
|
|
9
|
+
export { isValidSkillName };
|
|
10
|
+
function resolveProjectDir(cwd) {
|
|
11
|
+
try {
|
|
12
|
+
return getProjectPath(cwd ?? process.cwd());
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export function getSkillsDir(scope, cwd = process.cwd()) {
|
|
19
|
+
return sdkGetSkillsDir(scope, resolveProjectDir(cwd));
|
|
20
|
+
}
|
|
21
|
+
export async function ensureSkillsDir(scope, cwd = process.cwd()) {
|
|
22
|
+
return sdkEnsureSkillsDir(scope, resolveProjectDir(cwd));
|
|
23
|
+
}
|
|
24
|
+
export function getSkillFolder(name, scope, cwd = process.cwd()) {
|
|
25
|
+
return sdkGetSkillFolder(name, scope, resolveProjectDir(cwd));
|
|
26
|
+
}
|
|
27
|
+
export function getSkillFile(name, scope, cwd = process.cwd()) {
|
|
28
|
+
return sdkGetSkillFile(name, scope, resolveProjectDir(cwd));
|
|
29
|
+
}
|
|
30
|
+
export function getScopeConfigPath(scope, cwd = process.cwd()) {
|
|
31
|
+
return sdkGetScopeConfigPath(scope, resolveProjectDir(cwd));
|
|
32
|
+
}
|
|
33
|
+
export async function readScopeConfig(scope, cwd = process.cwd()) {
|
|
34
|
+
return readSkillScopeConfig(scope, resolveProjectDir(cwd));
|
|
35
|
+
}
|
|
36
|
+
export function readScopeConfigSync(scope, cwd = process.cwd()) {
|
|
37
|
+
return readSkillScopeConfigSync(scope, resolveProjectDir(cwd));
|
|
38
|
+
}
|
|
39
|
+
export async function writeScopeConfig(scope, config, cwd = process.cwd()) {
|
|
40
|
+
return writeSkillScopeConfig(scope, config, resolveProjectDir(cwd));
|
|
41
|
+
}
|
|
42
|
+
export async function getAllBindings(cwd = process.cwd()) {
|
|
43
|
+
return getSkillBindings(resolveProjectDir(cwd));
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilr-dev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "AI-powered coding assistant CLI using @compilr-dev/agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -55,20 +55,24 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@anthropic-ai/sdk": "^0.74.0",
|
|
58
|
-
"@compilr-dev/agents": "^0.5.
|
|
58
|
+
"@compilr-dev/agents": "^0.5.8",
|
|
59
59
|
"@compilr-dev/agents-coding": "^1.0.4",
|
|
60
60
|
"@compilr-dev/editor-core": "^0.0.2",
|
|
61
61
|
"@compilr-dev/factory": "^0.1.30",
|
|
62
62
|
"@compilr-dev/logger": "^0.1.0",
|
|
63
|
-
"@compilr-dev/sdk": "^0.
|
|
63
|
+
"@compilr-dev/sdk": "^0.10.8",
|
|
64
64
|
"@compilr-dev/ui-core": "^0.0.1",
|
|
65
65
|
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
66
|
+
"ansi-escapes": "^7.3.0",
|
|
66
67
|
"better-sqlite3": "^12.5.0",
|
|
67
68
|
"chalk": "^5.6.2",
|
|
69
|
+
"cli-highlight": "^2.1.11",
|
|
70
|
+
"cli-table3": "^0.6.5",
|
|
71
|
+
"highlight.js": "^11.11.1",
|
|
68
72
|
"js-tiktoken": "^1.0.21",
|
|
69
|
-
"marked": "^
|
|
70
|
-
"marked-terminal": "^7.3.0",
|
|
73
|
+
"marked": "^18.0.3",
|
|
71
74
|
"picocolors": "^1.1.1",
|
|
75
|
+
"supports-hyperlinks": "^3.2.0",
|
|
72
76
|
"uuid": "^14.0.0"
|
|
73
77
|
},
|
|
74
78
|
"overrides": {
|
|
@@ -78,7 +82,6 @@
|
|
|
78
82
|
"devDependencies": {
|
|
79
83
|
"@eslint/js": "^9.39.1",
|
|
80
84
|
"@types/better-sqlite3": "^7.6.13",
|
|
81
|
-
"@types/marked-terminal": "^6.1.1",
|
|
82
85
|
"@types/node": "^25.2.3",
|
|
83
86
|
"@types/uuid": "^10.0.0",
|
|
84
87
|
"@vscode/vsce": "^3.2.0",
|