@devlitusp/opencode-agent 0.0.5 → 0.0.6

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/README.md CHANGED
@@ -1,27 +1,18 @@
1
1
  # @devlitusp/opencode-agent
2
2
 
3
- Multi-agent development team for [OpenCode CLI](https://opencode.ai). One command sets up a full team of AI agents in your project — orchestrator, investigator, planner, builder, QA, security, docs, debugger, performance, devops, and refactorer.
3
+ Multi-agent development team for [OpenCode CLI](https://opencode.ai). Sets up a full team of AI agents in your project — orchestrator, investigator, planner, builder, QA, security, docs, debugger, performance, devops, and refactorer.
4
4
 
5
5
  ## Installation
6
6
 
7
- ### pnpm (recommended)
8
-
9
- ```bash
10
- pnpm dlx @devlitusp/opencode-agent init
11
- ```
12
-
13
- This is the only command needed. It handles the pnpm security restriction that blocks postinstall scripts by default, adds the package to `devDependencies`, and injects all agents automatically.
14
-
15
- > **Why `dlx init` and not `pnpm add`?**
16
- > pnpm v8+ blocks postinstall scripts from dependencies unless explicitly allowed. Running `pnpm add --save-dev @devlitusp/opencode-agent` installs the package but **nothing gets injected**. The `init` command adds `@devlitusp/opencode-agent` to `pnpm.onlyBuiltDependencies` in your `package.json` before installing, which allows the postinstall to run.
17
-
18
7
  ### npm
19
8
 
20
9
  ```bash
21
10
  npm install --save-dev @devlitusp/opencode-agent
22
11
  ```
23
12
 
24
- npm runs postinstall scripts automatically agents are injected immediately after install.
13
+ npm runs postinstall scripts automatically. Agents are injected immediately no extra steps needed.
14
+
15
+ ---
25
16
 
26
17
  ### yarn
27
18
 
@@ -29,7 +20,9 @@ npm runs postinstall scripts automatically — agents are injected immediately a
29
20
  yarn add --dev @devlitusp/opencode-agent
30
21
  ```
31
22
 
32
- yarn runs postinstall scripts automatically agents are injected immediately after install.
23
+ yarn runs postinstall scripts automatically. Agents are injected immediately no extra steps needed.
24
+
25
+ ---
33
26
 
34
27
  ### bun
35
28
 
@@ -37,11 +30,67 @@ yarn runs postinstall scripts automatically — agents are injected immediately
37
30
  bun add --dev @devlitusp/opencode-agent
38
31
  ```
39
32
 
40
- bun runs postinstall scripts automatically agents are injected immediately after install.
33
+ bun runs postinstall scripts automatically. Agents are injected immediately no extra steps needed.
34
+
35
+ ---
36
+
37
+ ### pnpm
38
+
39
+ pnpm v10+ **blocks all postinstall scripts by default** for security. You must explicitly allow this package to run its script before installing.
40
+
41
+ **Option A — use `init` (recommended, handles everything automatically):**
42
+
43
+ ```bash
44
+ pnpm dlx @devlitusp/opencode-agent init
45
+ ```
46
+
47
+ This adds the package to the allowlist, installs it, and injects the agents in one step.
48
+
49
+ **Option B — `pnpm-workspace.yaml` (pnpm v10.26.0+):**
50
+
51
+ Add to your `pnpm-workspace.yaml`:
52
+
53
+ ```yaml
54
+ allowBuilds:
55
+ - "@devlitusp/opencode-agent"
56
+ ```
57
+
58
+ Then install:
59
+
60
+ ```bash
61
+ pnpm add --save-dev @devlitusp/opencode-agent
62
+ ```
63
+
64
+ **Option C — `package.json`:**
65
+
66
+ Add to your `package.json`:
67
+
68
+ ```json
69
+ {
70
+ "pnpm": {
71
+ "onlyBuiltDependencies": ["@devlitusp/opencode-agent"]
72
+ }
73
+ }
74
+ ```
75
+
76
+ Then install:
77
+
78
+ ```bash
79
+ pnpm add --save-dev @devlitusp/opencode-agent
80
+ ```
81
+
82
+ **Option D — allow all builds (not recommended):**
83
+
84
+ ```bash
85
+ pnpm config set dangerouslyAllowAllBuilds true --global
86
+ pnpm add --save-dev @devlitusp/opencode-agent
87
+ ```
88
+
89
+ > If you skip the allowlist and install directly with `pnpm add`, the package is added to `devDependencies` but the postinstall is silently skipped — no agents are created. Run `opencode-agent inject` manually afterwards to fix this.
41
90
 
42
91
  ---
43
92
 
44
- Then set your API key and open OpenCode:
93
+ After installation, set your API key and open OpenCode:
45
94
 
46
95
  ```bash
47
96
  export MINIMAX_API_KEY=your_key_here # MiniMax (default)
@@ -7,7 +7,7 @@ import { join } from "path";
7
7
  var orchestrator = {
8
8
  name: "orchestrator",
9
9
  frontmatter: {
10
- model: "minimax/MiniMax-M2.7",
10
+ model: "MiniMax-M2.7",
11
11
  description: "Lead coordinator that orchestrates the full development workflow",
12
12
  mode: "primary",
13
13
  temperature: 0.2,
@@ -685,10 +685,9 @@ var ALL_AGENTS = [
685
685
  var MINIMAX_PROVIDER_KEY = "minimax";
686
686
  var MINIMAX_PROVIDER = {
687
687
  npm: "@ai-sdk/openai-compatible",
688
- name: "MiniMax",
688
+ name: "minimax",
689
689
  options: {
690
- baseURL: "https://api.minimax.io/v1",
691
- apiKey: "{env:MINIMAX_API_KEY}"
690
+ baseURL: "https://minimax.io"
692
691
  },
693
692
  models: {
694
693
  "MiniMax-M2.7": { name: "MiniMax-M2.7" }
@@ -6,7 +6,7 @@ import { join } from "path";
6
6
  var orchestrator = {
7
7
  name: "orchestrator",
8
8
  frontmatter: {
9
- model: "minimax/MiniMax-M2.7",
9
+ model: "MiniMax-M2.7",
10
10
  description: "Lead coordinator that orchestrates the full development workflow",
11
11
  mode: "primary",
12
12
  temperature: 0.2,
@@ -684,10 +684,9 @@ var ALL_AGENTS = [
684
684
  var MINIMAX_PROVIDER_KEY = "minimax";
685
685
  var MINIMAX_PROVIDER = {
686
686
  npm: "@ai-sdk/openai-compatible",
687
- name: "MiniMax",
687
+ name: "minimax",
688
688
  options: {
689
- baseURL: "https://api.minimax.io/v1",
690
- apiKey: "{env:MINIMAX_API_KEY}"
689
+ baseURL: "https://minimax.io"
691
690
  },
692
691
  models: {
693
692
  "MiniMax-M2.7": { name: "MiniMax-M2.7" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlitusp/opencode-agent",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Multi-agent development team for OpenCode CLI — orchestrator, investigator, planner, builder, QA, security & docs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,7 +3,7 @@ import type { AgentDefinition } from "../types.js";
3
3
  export const orchestrator: AgentDefinition = {
4
4
  name: "orchestrator",
5
5
  frontmatter: {
6
- model: "minimax/MiniMax-M2.7",
6
+ model: "MiniMax-M2.7",
7
7
  description: "Lead coordinator that orchestrates the full development workflow",
8
8
  mode: "primary",
9
9
  temperature: 0.2,
package/src/inject.ts CHANGED
@@ -8,10 +8,9 @@ import type { AgentDefinition, AgentFrontmatter, InjectOptions, OpenCodeConfig,
8
8
  const MINIMAX_PROVIDER_KEY = "minimax";
9
9
  const MINIMAX_PROVIDER: OpenCodeProvider = {
10
10
  npm: "@ai-sdk/openai-compatible",
11
- name: "MiniMax",
11
+ name: "minimax",
12
12
  options: {
13
- baseURL: "https://api.minimax.io/v1",
14
- apiKey: "{env:MINIMAX_API_KEY}",
13
+ baseURL: "https://minimax.io",
15
14
  },
16
15
  models: {
17
16
  "MiniMax-M2.7": { name: "MiniMax-M2.7" },
package/src/types.ts CHANGED
@@ -27,8 +27,8 @@ export interface AgentDefinition {
27
27
  }
28
28
 
29
29
  export interface ProviderApiOptions {
30
- baseURL: string;
31
- apiKey: string;
30
+ baseURL?: string;
31
+ apiKey?: string;
32
32
  }
33
33
 
34
34
  export interface OpenCodeProvider {