@uniqbit/mate-opencode-plugin 0.15.3 → 0.15.4-canary.10
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/package.json +2 -2
- package/src/companion.ts +1 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniqbit/mate-opencode-plugin",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4-canary.10",
|
|
4
4
|
"description": "OpenCode plugin integration for Mate.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@opentui/core": "^0.4.5",
|
|
29
29
|
"@opentui/keymap": "^0.4.5",
|
|
30
30
|
"@opentui/solid": "^0.4.5",
|
|
31
|
-
"@uniqbit/mate-core": "0.15.
|
|
31
|
+
"@uniqbit/mate-core": "0.15.4-canary.10"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/bun": "^1.3.14",
|
package/src/companion.ts
CHANGED
|
@@ -41,8 +41,7 @@ function materializeCompanionGuidance(guidance: string, context: CompanionContex
|
|
|
41
41
|
.replaceAll("$MATE_REPO_PATH", context.repositoryPath)
|
|
42
42
|
.replaceAll("$MATE_ARTIFACT_PATH", context.companionPath)
|
|
43
43
|
.replaceAll("$MATE_WRAPPER_BIN_PATH", wrapperBinPath)
|
|
44
|
-
.replaceAll("$MATE_REPO_ID", context.repositoryId)
|
|
45
|
-
.replaceAll("$MATE_REPO_PROFILE", context.repositoryProfile);
|
|
44
|
+
.replaceAll("$MATE_REPO_ID", context.repositoryId);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
function buildSystemPrompt(context: CompanionContext, guidance: MateGuidanceFile): string[] {
|
|
@@ -82,7 +81,6 @@ export const CompanionPlugin: Plugin = async () => {
|
|
|
82
81
|
wrapperBinPath,
|
|
83
82
|
repositoryPath: context.repositoryPath,
|
|
84
83
|
repositoryId: context.repositoryId,
|
|
85
|
-
repositoryProfile: context.repositoryProfile,
|
|
86
84
|
policy: JSON.parse(context.policyJson || "{}"),
|
|
87
85
|
},
|
|
88
86
|
null,
|
|
@@ -119,14 +117,11 @@ export const CompanionPlugin: Plugin = async () => {
|
|
|
119
117
|
},
|
|
120
118
|
"shell.env": async (_input: any, output: { env: Record<string, string> }) => {
|
|
121
119
|
output.env.MATE_NAME = context.frameworkName;
|
|
122
|
-
// Invocation name from the launch environment; identity stays MATE_NAME.
|
|
123
|
-
output.env[MATE_ENV.commandName] = process.env[MATE_ENV.commandName] ?? "mate";
|
|
124
120
|
output.env.MATE_VERSION = process.env.MATE_VERSION ?? "unknown";
|
|
125
121
|
output.env.MATE_ARTIFACT_PATH = context.companionPath;
|
|
126
122
|
output.env.MATE_WRAPPER_BIN_PATH = wrapperBinPath;
|
|
127
123
|
output.env.MATE_REPO_PATH = context.repositoryPath;
|
|
128
124
|
output.env.MATE_REPO_ID = context.repositoryId;
|
|
129
|
-
output.env.MATE_REPO_PROFILE = context.repositoryProfile;
|
|
130
125
|
output.env.MATE_POLICY_JSON = context.policyJson;
|
|
131
126
|
output.env.MATE_GRAPHIFY_ENABLED = context.graphifyEnabled ? "1" : "0";
|
|
132
127
|
output.env.MATE_GIT_AUTO_MODE = context.gitAutoModeEnabled ? "1" : "0";
|