opencode-muse 0.0.0-stage → 0.1.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 +121 -2
- package/dist/catalog.d.ts +47 -0
- package/dist/catalog.js +159 -0
- package/dist/errors.d.ts +92 -0
- package/dist/errors.js +181 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +17 -0
- package/dist/model/agent-context.d.ts +10 -0
- package/dist/model/agent-context.js +35 -0
- package/dist/model/context.d.ts +26 -0
- package/dist/model/context.js +87 -0
- package/dist/model/language-model.d.ts +48 -0
- package/dist/model/language-model.js +540 -0
- package/dist/model/meta.d.ts +16 -0
- package/dist/model/meta.js +171 -0
- package/dist/model/prompt.d.ts +68 -0
- package/dist/model/prompt.js +175 -0
- package/dist/model/stream.d.ts +46 -0
- package/dist/model/stream.js +235 -0
- package/dist/msp/client.d.ts +49 -0
- package/dist/msp/client.js +229 -0
- package/dist/msp/host.d.ts +55 -0
- package/dist/msp/host.js +173 -0
- package/dist/provider.d.ts +18 -0
- package/dist/provider.js +112 -0
- package/dist/session/fingerprint.d.ts +9 -0
- package/dist/session/fingerprint.js +83 -0
- package/dist/session/manager.d.ts +40 -0
- package/dist/session/manager.js +353 -0
- package/dist/session/registry.d.ts +55 -0
- package/dist/session/registry.js +383 -0
- package/dist/session/workspace-lock.d.ts +26 -0
- package/dist/session/workspace-lock.js +288 -0
- package/dist/types.d.ts +27 -0
- package/dist/types.js +1 -0
- package/package.json +58 -4
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type MuseRequestKind = "primary" | "title" | "compaction" | "generate";
|
|
2
|
+
export interface MuseModelSelection {
|
|
3
|
+
providerId: string;
|
|
4
|
+
modelId: string;
|
|
5
|
+
profileId: string | null;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
isDefault: boolean;
|
|
8
|
+
defaultReasoningEffort?: string;
|
|
9
|
+
variantsKnown: boolean;
|
|
10
|
+
variants: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface RequestContext {
|
|
13
|
+
sessionID: string;
|
|
14
|
+
directory: string;
|
|
15
|
+
kind: MuseRequestKind;
|
|
16
|
+
modelID: string;
|
|
17
|
+
providerID: string;
|
|
18
|
+
variant?: string;
|
|
19
|
+
effort?: string;
|
|
20
|
+
museSelection: MuseModelSelection;
|
|
21
|
+
}
|
|
22
|
+
export interface ContextError {
|
|
23
|
+
type: "context-error";
|
|
24
|
+
code: "missing" | "invalid" | "unknown-model" | "unsupported-variant";
|
|
25
|
+
field: string;
|
|
26
|
+
}
|
|
27
|
+
export type MuseErrorKind = "credentials" | "billing" | "unsupported" | "protocol" | "unknown";
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-muse",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "OpenCode plugin backed by the official Muse Code CLI and MSP",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.json",
|
|
24
|
+
"test": "bun test ./test/run.ts",
|
|
25
|
+
"prepublishOnly": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/pgquiles/opencode-muse.git"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/pgquiles/opencode-muse/issues"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"opencode",
|
|
36
|
+
"opencode-plugin",
|
|
37
|
+
"muse-code",
|
|
38
|
+
"msp",
|
|
39
|
+
"ai",
|
|
40
|
+
"llm",
|
|
41
|
+
"agent"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@muse-code/sdk": "1.4.12"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@ai-sdk/provider": "3.0.8",
|
|
54
|
+
"@opencode/plugin": "2.0.16",
|
|
55
|
+
"@types/bun": "1.3.11",
|
|
56
|
+
"@types/node": "22.15.0",
|
|
57
|
+
"bun": "1.4.3",
|
|
58
|
+
"typescript": "5.9.3"
|
|
59
|
+
}
|
|
60
|
+
}
|