@llmnative/runner 1.0.2 → 1.1.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/openapi/v1.yaml CHANGED
@@ -73,6 +73,32 @@ paths:
73
73
  '200': { description: The key, content: { application/json: { schema: { type: object, properties: { key: { type: string }, record: { $ref: '#/components/schemas/Key' }, version: { type: string } } } } } }
74
74
  '401': { description: bad code }
75
75
  '429': { description: locked after too many wrong codes }
76
+ /v1/pair/requests:
77
+ post:
78
+ security: []
79
+ 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 } } } } } }
81
+ responses:
82
+ '201': { description: '{ request (secret of the platform), code (shown on both sides), approveUrl, expiresAt, interval }' }
83
+ '429': { description: busy (too many requests waiting) }
84
+ /v1/pair/requests/poll:
85
+ post:
86
+ security: []
87
+ summary: The platform asks again with its secret; approved, its platform key, once
88
+ requestBody: { content: { application/json: { schema: { type: object, properties: { request: { type: string } }, required: [request] } } } }
89
+ responses:
90
+ '200': { description: "{ status: pending | denied | expired } or { status: approved, key, record, version }" }
91
+ /v1/admin/pairing/requests:
92
+ get:
93
+ summary: (admin token) The pairing requests waiting
94
+ responses: { '200': { description: '{ requests: [{ code, name, from?, createdAt, expiresAt }] }' } }
95
+ /v1/admin/pairing/requests/{code}/{answer}:
96
+ post:
97
+ summary: (admin token) Approves or refuses a pairing request
98
+ parameters:
99
+ - { name: code, in: path, required: true, schema: { type: string } }
100
+ - { name: answer, in: path, required: true, schema: { type: string, enum: [approve, deny] } }
101
+ responses: { '200': { description: '{ request }' }, '404': { description: no such request waiting } }
76
102
  /v1/admin/pairing:
77
103
  post:
78
104
  summary: (admin token) A new pairing code, valid 15 minutes and once
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/runner",
3
- "version": "1.0.2",
3
+ "version": "1.1.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": {