@uniqbit/mate-opencode-plugin 0.15.1-canary.1 → 0.15.1-canary.2

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/companion.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqbit/mate-opencode-plugin",
3
- "version": "0.15.1-canary.1",
3
+ "version": "0.15.1-canary.2",
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.1-canary.1"
31
+ "@uniqbit/mate-core": "0.15.1-canary.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/bun": "^1.3.14",
package/src/companion.ts CHANGED
@@ -119,6 +119,8 @@ export const CompanionPlugin: Plugin = async () => {
119
119
  },
120
120
  "shell.env": async (_input: any, output: { env: Record<string, string> }) => {
121
121
  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";
122
124
  output.env.MATE_VERSION = process.env.MATE_VERSION ?? "unknown";
123
125
  output.env.MATE_ARTIFACT_PATH = context.companionPath;
124
126
  output.env.MATE_WRAPPER_BIN_PATH = wrapperBinPath;