@llmnative/runner 1.1.1 → 1.2.0
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/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +37 -23
- package/dist/client.mjs.map +1 -1
- package/dist/setup-app/assets/{NetworkCanvasImpl-DIYuzg6x-lxzx4Yw1.js → NetworkCanvasImpl-DIYuzg6x-Cvx1IqQZ.js} +1 -1
- package/dist/setup-app/assets/{index-NBwNtvQf.js → index-Ce40a4eE.js} +3 -3
- package/dist/setup-app/assets/{index.es-CBawZJs8.js → index.es-9Zr7VidY.js} +1 -1
- package/dist/setup-app/assets/{lucide-react-SDJsIK_0.js → lucide-react-2gg5h5-W.js} +1 -1
- package/dist/setup-app/index.html +1 -1
- package/dist/setup.js +1 -1
- package/dist/setup.js.map +1 -1
- package/dist/setup.mjs +1 -1
- package/dist/setup.mjs.map +1 -1
- package/dist/steps.js +1 -1
- package/dist/steps.mjs +2 -2
- package/dist/types/client/index.d.ts +20 -7
- package/dist/types/setup/index.d.ts +2 -1
- package/dist/types/ui/RunnerAccounts.d.ts +4 -2
- package/dist/types/ui/texts.d.ts +36 -0
- package/dist/ui.js +3 -3
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +567 -429
- package/dist/ui.mjs.map +1 -1
- package/install/coolify.yaml +2 -2
- package/install/install.sh +1 -1
- package/openapi/v1.yaml +16 -7
- package/package.json +1 -1
package/openapi/v1.yaml
CHANGED
|
@@ -8,6 +8,8 @@ info:
|
|
|
8
8
|
the admin token of the machine, a platform key (`rk_platform_…`, from pairing) or a project key of a tenant (`rk_…`).
|
|
9
9
|
A platform key (or the admin token) names the tenant with `X-Runner-Tenant`. The person a request is for is
|
|
10
10
|
`X-Runner-User` (with the permission `act-as-user` for a project key). Errors are `{ "error": "<code>" }`.
|
|
11
|
+
A platform key paired with a `project` owns only the tenants `<project>` and `<project>-<tenant>`: any other is
|
|
12
|
+
answered as missing (403 `outside project` when it tries to make one).
|
|
11
13
|
servers:
|
|
12
14
|
- url: https://runner.example.com
|
|
13
15
|
components:
|
|
@@ -26,7 +28,7 @@ components:
|
|
|
26
28
|
Account:
|
|
27
29
|
type: object
|
|
28
30
|
properties:
|
|
29
|
-
provider: { type: string, enum: [claude-code, opencode-go, opencode] }
|
|
31
|
+
provider: { type: string, enum: [claude-code, opencode-go, opencode, anthropic, openai, gemini, mistral, deepseek, openrouter] }
|
|
30
32
|
id: { type: string }
|
|
31
33
|
label: { type: string }
|
|
32
34
|
at: { type: string, format: date-time }
|
|
@@ -42,6 +44,7 @@ components:
|
|
|
42
44
|
id: { type: string }
|
|
43
45
|
kind: { type: string, enum: [platform, project] }
|
|
44
46
|
tenant: { type: string }
|
|
47
|
+
project: { type: string, description: 'Platform keys: the project whose tenants it owns (<project>, <project>-…); none, every tenant' }
|
|
45
48
|
name: { type: string }
|
|
46
49
|
permissions: { type: array, items: { type: string, enum: [complete, chat, 'chat:tools', accounts, 'accounts:tenant', act-as-user, keys] } }
|
|
47
50
|
createdAt: { type: string, format: date-time }
|
|
@@ -68,7 +71,7 @@ paths:
|
|
|
68
71
|
post:
|
|
69
72
|
security: []
|
|
70
73
|
summary: A pairing code (printed by the installer) gives a platform key, shown once
|
|
71
|
-
requestBody: { content: { application/json: { schema: { type: object, properties: { code: { type: string }, name: { type: string } }, required: [code] } } } }
|
|
74
|
+
requestBody: { content: { application/json: { schema: { type: object, properties: { code: { type: string }, name: { type: string }, project: { type: string, pattern: '^[a-z0-9]{1,32}$', description: 'The project the platform key owns the tenants of (<project>, <project>-…); none, every tenant' } }, required: [code] } } } }
|
|
72
75
|
responses:
|
|
73
76
|
'200': { description: The key, content: { application/json: { schema: { type: object, properties: { key: { type: string }, record: { $ref: '#/components/schemas/Key' }, version: { type: string } } } } } }
|
|
74
77
|
'401': { description: bad code }
|
|
@@ -77,7 +80,7 @@ paths:
|
|
|
77
80
|
post:
|
|
78
81
|
security: []
|
|
79
82
|
summary: A platform asks to connect (device flow); the admin approves it in the console at approveUrl
|
|
80
|
-
requestBody: { content: { application/json: { schema: { type: object, properties: { name: { type: string } } } } } }
|
|
83
|
+
requestBody: { content: { application/json: { schema: { type: object, properties: { name: { type: string }, project: { type: string, pattern: '^[a-z0-9]{1,32}$', description: 'The project the platform key owns the tenants of (<project>, <project>-…); none, every tenant' } } } } } }
|
|
81
84
|
responses:
|
|
82
85
|
'201': { description: '{ request (secret of the platform), code (shown on both sides), approveUrl, expiresAt, interval }' }
|
|
83
86
|
'429': { description: busy (too many requests waiting) }
|
|
@@ -91,7 +94,13 @@ paths:
|
|
|
91
94
|
/v1/admin/pairing/requests:
|
|
92
95
|
get:
|
|
93
96
|
summary: (admin token) The pairing requests waiting
|
|
94
|
-
responses: { '200': { description: '{ requests: [{ code, name, from?, createdAt, expiresAt }] }' } }
|
|
97
|
+
responses: { '200': { description: '{ requests: [{ code, name, project?, from?, createdAt, expiresAt }] }' } }
|
|
98
|
+
/v1/admin/keys/{key}/project:
|
|
99
|
+
put:
|
|
100
|
+
summary: (admin token) The project of a platform key; null, every tenant (as keys made before 1.2)
|
|
101
|
+
parameters: [{ name: key, in: path, required: true, schema: { type: string } }]
|
|
102
|
+
requestBody: { content: { application/json: { schema: { type: object, properties: { project: { type: [string, 'null'] } }, required: [project] } } } }
|
|
103
|
+
responses: { '200': { description: '{ record }' }, '400': { description: invalid project }, '404': { description: not found } }
|
|
95
104
|
/v1/admin/pairing/requests/{code}/{answer}:
|
|
96
105
|
post:
|
|
97
106
|
summary: (admin token) Approves or refuses a pairing request
|
|
@@ -157,8 +166,8 @@ paths:
|
|
|
157
166
|
responses: { '200': { description: '{ connected, account }' }, '409': { description: 'refused | no-session | no-token' } }
|
|
158
167
|
/v1/accounts/{provider}:
|
|
159
168
|
post:
|
|
160
|
-
summary: A key (opencode-go, opencode), or a token made with claude setup-token (claude-code)
|
|
161
|
-
parameters: [{ name: provider, in: path, required: true, schema: { enum: [claude-code, opencode-go, opencode] } }, { $ref: '#/components/parameters/tenant' }, { $ref: '#/components/parameters/user' }]
|
|
169
|
+
summary: A key (opencode-go, opencode, or the API key of a provider by use opencode runs), or a token made with claude setup-token (claude-code)
|
|
170
|
+
parameters: [{ name: provider, in: path, required: true, schema: { enum: [claude-code, opencode-go, opencode, anthropic, openai, gemini, mistral, deepseek, openrouter] } }, { $ref: '#/components/parameters/tenant' }, { $ref: '#/components/parameters/user' }]
|
|
162
171
|
requestBody: { content: { application/json: { schema: { type: object, properties: { key: { type: string }, token: { type: string }, label: { type: string } } } } } }
|
|
163
172
|
responses: { '201': { description: '{ account }' } }
|
|
164
173
|
/v1/accounts/{provider}/{id}:
|
|
@@ -180,7 +189,7 @@ paths:
|
|
|
180
189
|
post:
|
|
181
190
|
summary: (complete) One answer, no tools
|
|
182
191
|
parameters: [{ $ref: '#/components/parameters/tenant' }, { $ref: '#/components/parameters/user' }]
|
|
183
|
-
requestBody: { content: { application/json: { schema: { type: object, properties: { provider: { enum: [claude-code, opencode-go] }, model: { type: string }, prompt: { type: string, maxLength: 200000 }, effort: { enum: [low, medium, high, xhigh, max] } }, required: [provider, model, prompt] } } } }
|
|
192
|
+
requestBody: { content: { application/json: { schema: { type: object, properties: { provider: { enum: [claude-code, opencode-go, opencode, anthropic, openai, gemini, mistral, deepseek, openrouter] }, model: { type: string, description: 'For opencode, bare or as opencode names it (gemini → google/<model>)' }, prompt: { type: string, maxLength: 200000 }, effort: { enum: [low, medium, high, xhigh, max] } }, required: [provider, model, prompt] } } } }
|
|
184
193
|
responses:
|
|
185
194
|
'200': { description: '{ text, usage? }' }
|
|
186
195
|
'409': { description: 'no-provider | no-credit (with until)', content: { application/json: { schema: { $ref: '#/components/schemas/Error' } } } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/runner",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "LLMNative Runner: Claude Code and opencode on your own VPS, for many tenants, with subscriptions per person. Client, management UI and installer of the runner.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|