pleumrouter 0.5.3 → 0.5.4

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 +1 -1
  2. package/src/recipes.mjs +41 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pleumrouter",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Official PleumRouter terminal CLI — launch any coding agent against PleumRouter.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/recipes.mjs CHANGED
@@ -16,6 +16,11 @@ export const RECIPES = {
16
16
  bin: "claude",
17
17
  type: "env",
18
18
  install: "npm i -g @anthropic-ai/claude-code",
19
+ // 앱 랭킹 귀속 메타 — 백엔드 featured_agents / UA fallback과 동기화.
20
+ attribution: {
21
+ title: "Claude Code",
22
+ referer: "https://docs.anthropic.com/en/docs/claude-code",
23
+ },
19
24
  // 함정: ANTHROPIC_BASE_URL은 반드시 루트(/v1 없이) — CLI가 /v1/messages를 스스로 덧붙인다.
20
25
  // /v1을 넣으면 /v1/v1/messages가 되어 실패.
21
26
  env: (key) => ({
@@ -30,6 +35,10 @@ export const RECIPES = {
30
35
  bin: "codex",
31
36
  type: "codex-home",
32
37
  install: "npm i -g @openai/codex",
38
+ attribution: {
39
+ title: "Codex",
40
+ referer: "https://github.com/openai/codex",
41
+ },
33
42
  env: (key) => ({ PLEUM_API_KEY: key }),
34
43
  args: () => [],
35
44
  },
@@ -38,6 +47,10 @@ export const RECIPES = {
38
47
  bin: "aider",
39
48
  type: "env",
40
49
  install: "python -m pip install aider-install && aider-install",
50
+ attribution: {
51
+ title: "Aider",
52
+ referer: "https://aider.chat",
53
+ },
41
54
  env: (key) => ({ OPENAI_API_BASE: V1, OPENAI_API_KEY: key }),
42
55
  args: (m) => (m ? ["--model", `openai/${m}`] : []),
43
56
  },
@@ -47,6 +60,10 @@ export const RECIPES = {
47
60
  type: "env",
48
61
  install: "https://block.github.io/goose/docs/getting-started/installation",
49
62
  note: "Goose sets its model in its own config — use the openai/<id> format in `goose configure`.",
63
+ attribution: {
64
+ title: "Goose",
65
+ referer: "https://block.github.io/goose",
66
+ },
50
67
  env: (key) => ({ OPENAI_API_BASE: V1, OPENAI_API_KEY: key }),
51
68
  args: () => [],
52
69
  },
@@ -56,6 +73,10 @@ export const RECIPES = {
56
73
  type: "env",
57
74
  install: "python -m pip install openhands-ai",
58
75
  note: "For OpenHands, prefix the model name with openai/ in its config.",
76
+ attribution: {
77
+ title: "OpenHands",
78
+ referer: "https://www.all-hands.dev",
79
+ },
59
80
  env: (key) => ({ OPENAI_API_BASE: V1, OPENAI_API_KEY: key }),
60
81
  args: () => [],
61
82
  },
@@ -67,6 +88,10 @@ export const RECIPES = {
67
88
  // opencode는 커스텀 엔드포인트를 opencode.json provider 블록으로만 읽는다 — env var는 없다.
68
89
  // 대신 OPENCODE_CONFIG_CONTENT(파일 대신 JSON 문자열을 그대로 읽는 env var)로 파일 없이 주입한다.
69
90
  note: "Generates a temporary PleumRouter provider config for this run only — your own opencode.json is untouched.",
91
+ attribution: {
92
+ title: "opencode",
93
+ referer: "https://opencode.ai",
94
+ },
70
95
  env: (key, model) => ({
71
96
  PLEUM_API_KEY: key,
72
97
  OPENCODE_CONFIG_CONTENT: JSON.stringify({
@@ -90,6 +115,10 @@ export const RECIPES = {
90
115
  // omp는 커스텀 OpenAI 호환 엔드포인트는 YAML 설정 파일로만 읽지만, 내장 anthropic
91
116
  // provider만은 claude와 동일한 ANTHROPIC_BASE_URL env var로 리디렉션된다.
92
117
  note: "Needs the Bun runtime (bun >= 1.3.14) on PATH. Only Claude-family models are routed via env vars.",
118
+ attribution: {
119
+ title: "omp (Oh My Pi)",
120
+ referer: "https://omp.sh",
121
+ },
93
122
  env: (key) => ({ ANTHROPIC_BASE_URL: ROOT, ANTHROPIC_API_KEY: key }),
94
123
  args: (m) => (m ? ["--model", `anthropic/${m}`] : []),
95
124
  },
@@ -99,6 +128,10 @@ export const RECIPES = {
99
128
  type: "env",
100
129
  install: "curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash",
101
130
  note: "Pick the model after it starts with the `hermes model` command.",
131
+ attribution: {
132
+ title: "Hermes Agent",
133
+ referer: "https://hermes-agent.nousresearch.com",
134
+ },
102
135
  env: (key) => ({ OPENAI_BASE_URL: V1, OPENAI_API_KEY: key }),
103
136
  args: () => [],
104
137
  },
@@ -107,6 +140,10 @@ export const RECIPES = {
107
140
  bin: "qwen",
108
141
  type: "env",
109
142
  install: "npm install -g @qwen-code/qwen-code@latest",
143
+ attribution: {
144
+ title: "Qwen Code",
145
+ referer: "https://github.com/QwenLM/qwen-code",
146
+ },
110
147
  env: (key, model) => ({ OPENAI_BASE_URL: V1, OPENAI_API_KEY: key, OPENAI_MODEL: model || "gpt-5.4-mini" }),
111
148
  args: () => [],
112
149
  },
@@ -116,6 +153,10 @@ export const RECIPES = {
116
153
  type: "env",
117
154
  install: "npm install -g @github/copilot",
118
155
  note: "Needs GitHub Copilot CLI 2026-04 or later for BYOK provider routing support.",
156
+ attribution: {
157
+ title: "GitHub Copilot CLI",
158
+ referer: "https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli",
159
+ },
119
160
  env: (key, model) => ({
120
161
  COPILOT_PROVIDER_BASE_URL: V1,
121
162
  COPILOT_PROVIDER_TYPE: "openai",