@bitfun-vsl/plugin 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +62 -3
- package/assets/bitfun/command/vsl/cr-health.md +5 -0
- package/assets/bitfun/command/vsl/review.md +5 -0
- package/assets/bitfun/command/vsl/trajectory.md +8 -0
- package/assets/build.json +4 -0
- package/assets/claude-code/.claude-plugin/plugin.json +5 -0
- package/assets/claude-code/.mcp.json +10 -0
- package/assets/claude-code/agents/vsl-trajectory.md +6 -0
- package/assets/claude-code/commands/cr-health.md +7 -0
- package/assets/claude-code/commands/review.md +7 -0
- package/assets/claude-code/commands/trajectory.md +10 -0
- package/assets/claude-code/scripts/mcp-server.js +741 -0
- package/assets/claude-code/skills/vsl-trajectory-analysis/SKILL.md +7 -0
- package/assets/deveco/skills/vsl-trajectory-analysis/SKILL.md +7 -0
- package/assets/install-manifest.json +58 -0
- package/assets/skills/vsl-trajectory-analysis/SKILL.md +7 -0
- package/dist/cli/index.d.ts +17 -0
- package/dist/cli/index.js +4576 -0
- package/dist/hosts/bitfun-kernel/commands.d.ts +26 -0
- package/dist/hosts/bitfun-kernel/plugin.d.ts +2 -0
- package/dist/hosts/bitfun-kernel/plugin.js +661 -0
- package/dist/hosts/claude-code/index.d.ts +1 -0
- package/dist/hosts/claude-code/index.js +680 -0
- package/dist/hosts/claude-code/mcp-server.d.ts +45 -0
- package/dist/hosts/deveco/plugin.d.ts +2 -0
- package/dist/hosts/deveco/plugin.js +659 -0
- package/dist/hosts/shared/opencode.d.ts +12 -0
- package/dist/hosts/shared/schema.d.ts +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +663 -0
- package/dist/install/config.d.ts +50 -0
- package/dist/install/index.d.ts +182 -0
- package/dist/install/resources.d.ts +7 -0
- package/dist/install/resources.js +590 -0
- package/dist/plugin/contracts.d.ts +63 -0
- package/dist/plugin/index.d.ts +19 -0
- package/dist/plugin/index.js +539 -0
- package/dist/plugin/modules/code-review/index.d.ts +4 -0
- package/dist/plugin/modules/code-review/runtime.d.ts +42 -0
- package/dist/plugin/modules/trajectory-analysis.d.ts +2 -0
- package/dist/plugin/registry.d.ts +16 -0
- package/dist/plugin/schema.d.ts +2 -0
- package/dist/runtime.d.ts +22 -0
- package/docs/code-review-integration.md +182 -0
- package/docs/init-installation.md +97 -0
- package/docs/plugin-design.md +391 -0
- package/package.json +74 -6
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type Host = "deveco" | "claude-code" | "bitfun";
|
|
2
|
+
export type InstallOptions = {
|
|
3
|
+
host: Host;
|
|
4
|
+
home?: string;
|
|
5
|
+
configDirectory?: string;
|
|
6
|
+
stateDirectory?: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
modules?: string[];
|
|
9
|
+
crBinary?: string;
|
|
10
|
+
commandDirectory?: string;
|
|
11
|
+
};
|
|
12
|
+
export type Receipt = {
|
|
13
|
+
schemaVersion: 1;
|
|
14
|
+
installationId: string;
|
|
15
|
+
host: Host;
|
|
16
|
+
configDirectory: string;
|
|
17
|
+
packageRoot: string;
|
|
18
|
+
releaseRoot: string;
|
|
19
|
+
version: string;
|
|
20
|
+
buildId: string;
|
|
21
|
+
modules: string[];
|
|
22
|
+
crBinary?: string;
|
|
23
|
+
files: Record<string, string>;
|
|
24
|
+
configPath: string;
|
|
25
|
+
entry: string;
|
|
26
|
+
marketplace?: string;
|
|
27
|
+
marketplacePath?: string;
|
|
28
|
+
pluginVersion?: string;
|
|
29
|
+
commandDirectory?: string;
|
|
30
|
+
commandFiles?: Record<string, string>;
|
|
31
|
+
originalCommandFiles?: Record<string, string | null>;
|
|
32
|
+
originalPluginEntries: unknown[];
|
|
33
|
+
originalDependency?: string;
|
|
34
|
+
originalRuntime?: string;
|
|
35
|
+
dependency?: string;
|
|
36
|
+
sourceFiles: Record<string, string>;
|
|
37
|
+
installedAt: string;
|
|
38
|
+
status: "configured";
|
|
39
|
+
restartRequired: true;
|
|
40
|
+
};
|
|
41
|
+
export declare function installationPaths(options: InstallOptions): {
|
|
42
|
+
commandDirectory: string;
|
|
43
|
+
configDirectory: string;
|
|
44
|
+
stateDirectory: string;
|
|
45
|
+
installationId: string;
|
|
46
|
+
instance: string;
|
|
47
|
+
receiptPath: string;
|
|
48
|
+
journalPath: string;
|
|
49
|
+
lockPath: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { type InstallOptions } from "./config.js";
|
|
2
|
+
type Manifest = {
|
|
3
|
+
schemaVersion: number;
|
|
4
|
+
version: string;
|
|
5
|
+
buildId: string;
|
|
6
|
+
files: Record<string, string>;
|
|
7
|
+
modules: {
|
|
8
|
+
id: string;
|
|
9
|
+
version: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
export declare function planInstallation(options: InstallOptions): Promise<{
|
|
13
|
+
action: string;
|
|
14
|
+
host: import("./config.js").Host;
|
|
15
|
+
source: string;
|
|
16
|
+
modules: string[];
|
|
17
|
+
configDirectory: string;
|
|
18
|
+
sourceIdentity: {
|
|
19
|
+
sha256: string;
|
|
20
|
+
} | {
|
|
21
|
+
version: string;
|
|
22
|
+
buildId: string;
|
|
23
|
+
};
|
|
24
|
+
commandDirectory: string | undefined;
|
|
25
|
+
configPath: string;
|
|
26
|
+
installationId: string;
|
|
27
|
+
receiptPath: string;
|
|
28
|
+
previousVersion: string | undefined;
|
|
29
|
+
operations: string[];
|
|
30
|
+
restartRequired: boolean;
|
|
31
|
+
loaded: string;
|
|
32
|
+
verified: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function install(options: InstallOptions): Promise<{
|
|
35
|
+
recoveryRequired: boolean;
|
|
36
|
+
unchanged: boolean;
|
|
37
|
+
installed: boolean;
|
|
38
|
+
configured: boolean;
|
|
39
|
+
loaded: string;
|
|
40
|
+
verified: boolean;
|
|
41
|
+
configDirectory: string;
|
|
42
|
+
host?: undefined;
|
|
43
|
+
version?: undefined;
|
|
44
|
+
buildId?: undefined;
|
|
45
|
+
modules?: undefined;
|
|
46
|
+
installationId?: undefined;
|
|
47
|
+
crBinary?: undefined;
|
|
48
|
+
packageRoot?: undefined;
|
|
49
|
+
changedFiles?: undefined;
|
|
50
|
+
restartRequired?: undefined;
|
|
51
|
+
runtimeProof?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
recoveryRequired: boolean;
|
|
54
|
+
unchanged: boolean;
|
|
55
|
+
host: import("./config.js").Host;
|
|
56
|
+
version: string;
|
|
57
|
+
buildId: string;
|
|
58
|
+
modules: string[];
|
|
59
|
+
installationId: string;
|
|
60
|
+
crBinary: string | undefined;
|
|
61
|
+
packageRoot: string;
|
|
62
|
+
configDirectory: string;
|
|
63
|
+
changedFiles: string[];
|
|
64
|
+
installed: boolean;
|
|
65
|
+
configured: boolean;
|
|
66
|
+
restartRequired: boolean;
|
|
67
|
+
loaded: string;
|
|
68
|
+
verified: boolean;
|
|
69
|
+
runtimeProof: string;
|
|
70
|
+
} | {
|
|
71
|
+
recoveryRequired: boolean;
|
|
72
|
+
installed: boolean;
|
|
73
|
+
configured: boolean;
|
|
74
|
+
loaded: string;
|
|
75
|
+
verified: boolean;
|
|
76
|
+
configDirectory: string;
|
|
77
|
+
host?: undefined;
|
|
78
|
+
version?: undefined;
|
|
79
|
+
buildId?: undefined;
|
|
80
|
+
modules?: undefined;
|
|
81
|
+
installationId?: undefined;
|
|
82
|
+
crBinary?: undefined;
|
|
83
|
+
packageRoot?: undefined;
|
|
84
|
+
changedFiles?: undefined;
|
|
85
|
+
restartRequired?: undefined;
|
|
86
|
+
runtimeProof?: undefined;
|
|
87
|
+
} | {
|
|
88
|
+
recoveryRequired: boolean;
|
|
89
|
+
host: import("./config.js").Host;
|
|
90
|
+
version: string;
|
|
91
|
+
buildId: string;
|
|
92
|
+
modules: string[];
|
|
93
|
+
installationId: string;
|
|
94
|
+
crBinary: string | undefined;
|
|
95
|
+
packageRoot: string;
|
|
96
|
+
configDirectory: string;
|
|
97
|
+
changedFiles: string[];
|
|
98
|
+
installed: boolean;
|
|
99
|
+
configured: boolean;
|
|
100
|
+
restartRequired: boolean;
|
|
101
|
+
loaded: string;
|
|
102
|
+
verified: boolean;
|
|
103
|
+
runtimeProof: string;
|
|
104
|
+
}>;
|
|
105
|
+
export declare function doctor(options: InstallOptions): Promise<{
|
|
106
|
+
installed: boolean;
|
|
107
|
+
configured: boolean;
|
|
108
|
+
loaded: string;
|
|
109
|
+
verified: boolean;
|
|
110
|
+
configDirectory: string;
|
|
111
|
+
recoveryRequired: boolean;
|
|
112
|
+
host?: undefined;
|
|
113
|
+
version?: undefined;
|
|
114
|
+
buildId?: undefined;
|
|
115
|
+
modules?: undefined;
|
|
116
|
+
installationId?: undefined;
|
|
117
|
+
crBinary?: undefined;
|
|
118
|
+
packageRoot?: undefined;
|
|
119
|
+
changedFiles?: undefined;
|
|
120
|
+
restartRequired?: undefined;
|
|
121
|
+
runtimeProof?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
host: import("./config.js").Host;
|
|
124
|
+
version: string;
|
|
125
|
+
buildId: string;
|
|
126
|
+
modules: string[];
|
|
127
|
+
installationId: string;
|
|
128
|
+
crBinary: string | undefined;
|
|
129
|
+
packageRoot: string;
|
|
130
|
+
configDirectory: string;
|
|
131
|
+
changedFiles: string[];
|
|
132
|
+
installed: boolean;
|
|
133
|
+
configured: boolean;
|
|
134
|
+
recoveryRequired: boolean;
|
|
135
|
+
restartRequired: boolean;
|
|
136
|
+
loaded: string;
|
|
137
|
+
verified: boolean;
|
|
138
|
+
runtimeProof: string;
|
|
139
|
+
}>;
|
|
140
|
+
export declare function uninstall(options: InstallOptions, dryRun?: boolean): Promise<{
|
|
141
|
+
host?: undefined;
|
|
142
|
+
restartRequired?: undefined;
|
|
143
|
+
removed: boolean;
|
|
144
|
+
reason: string;
|
|
145
|
+
action?: undefined;
|
|
146
|
+
entry?: undefined;
|
|
147
|
+
restoreDependency?: undefined;
|
|
148
|
+
preserve?: undefined;
|
|
149
|
+
dryRun?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
restartRequired?: undefined;
|
|
152
|
+
reason?: undefined;
|
|
153
|
+
host: import("./config.js").Host;
|
|
154
|
+
action: string;
|
|
155
|
+
entry: string;
|
|
156
|
+
restoreDependency: string | undefined;
|
|
157
|
+
preserve: string[];
|
|
158
|
+
dryRun: boolean;
|
|
159
|
+
removed?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
reason?: undefined;
|
|
162
|
+
action?: undefined;
|
|
163
|
+
entry?: undefined;
|
|
164
|
+
restoreDependency?: undefined;
|
|
165
|
+
preserve?: undefined;
|
|
166
|
+
dryRun?: undefined;
|
|
167
|
+
removed: boolean;
|
|
168
|
+
host: import("./config.js").Host;
|
|
169
|
+
restartRequired: boolean;
|
|
170
|
+
}>;
|
|
171
|
+
export declare function recover(options: InstallOptions): Promise<{
|
|
172
|
+
recovered: boolean;
|
|
173
|
+
reason: string;
|
|
174
|
+
retainedRelease?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
reason?: undefined;
|
|
177
|
+
recovered: boolean;
|
|
178
|
+
retainedRelease: unknown;
|
|
179
|
+
}>;
|
|
180
|
+
export declare function verifyPackage(root: string): Promise<Manifest>;
|
|
181
|
+
export declare function command(args: string[], env?: Record<string, string | undefined>): Promise<string>;
|
|
182
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PluginResources } from "../plugin/registry.js";
|
|
2
|
+
export declare const digest: (content: string | Uint8Array<ArrayBufferLike>) => string;
|
|
3
|
+
export declare function inside(root: string, path: string): string;
|
|
4
|
+
export declare function filesUnder(root: string): Promise<string[]>;
|
|
5
|
+
export declare function selectResources(names?: string[]): PluginResources;
|
|
6
|
+
export declare function renderResources(resources: PluginResources, version: string): Record<string, string | Uint8Array>;
|
|
7
|
+
export declare function writeResources(root: string, resources: Record<string, string | Uint8Array>): Promise<void>;
|