@insmind/cli 2.1.8 → 3.0.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/README.md +6 -2
- package/contracts/operations/tool.call/canvas-input.schema.json +0 -3
- package/contracts/presentations/agent.send.schema.json +280 -0
- package/contracts/presentations/model.get.schema.json +217 -0
- package/contracts/presentations/model.list.schema.json +129 -0
- package/contracts/presentations/task.get.schema.json +135 -0
- package/contracts/presentations/tool.call.schema.json +185 -0
- package/dist/bin/insmind-cli.js +6 -1
- package/dist/src/bootstrap/create-cli.js +7 -4
- package/dist/src/bootstrap/create-runtime.js +7 -32
- package/dist/src/cli/action-binding.js +2 -2
- package/dist/src/cli/agent-commands.js +5 -4
- package/dist/src/cli/auth-commands.js +1 -1
- package/dist/src/cli/dam-commands.js +18 -10
- package/dist/src/cli/errors.js +1 -35
- package/dist/src/cli/host-input.js +0 -11
- package/dist/src/cli/model-commands.js +6 -5
- package/dist/src/cli/skill-output.js +13 -0
- package/dist/src/cli/tool-commands.js +9 -5
- package/dist/src/features/skill/catalog.js +152 -0
- package/dist/src/features/skill/manual.js +71 -0
- package/dist/src/features/tool/archived-ocr-result.js +74 -0
- package/dist/src/features/tool/canvas-copy.js +2 -3
- package/dist/src/features/tool/canvas-models.js +2 -4
- package/dist/src/features/tool/canvas-recovery.js +3 -2
- package/dist/src/features/tool/canvas-results.js +1 -55
- package/dist/src/features/tool/canvas-tool-adapter.js +7 -10
- package/dist/src/features/tool/resource-authorizer.js +1 -1
- package/dist/src/features/tool/scene-catalog-adapter.js +20 -22
- package/dist/src/features/tool/tool-definitions.js +0 -1
- package/dist/src/product/config.js +0 -7
- package/dist/src/telemetry/command-routes.json +1 -1
- package/package.json +4 -4
- package/skills/insmind-cli/SKILL.md +9 -28
- package/contracts/operations/editor.apply/input.schema.json +0 -177
- package/contracts/operations/editor.apply/output.schema.json +0 -15
- package/contracts/operations/editor.connect/input.schema.json +0 -13
- package/contracts/operations/editor.connect/output.schema.json +0 -17
- package/contracts/operations/editor.disconnect/input.schema.json +0 -7
- package/contracts/operations/editor.disconnect/output.schema.json +0 -14
- package/contracts/operations/editor.save/input.schema.json +0 -7
- package/contracts/operations/editor.save/output.schema.json +0 -23
- package/contracts/operations/editor.screenshot/input.schema.json +0 -7
- package/contracts/operations/editor.screenshot/output.schema.json +0 -16
- package/contracts/operations/editor.snapshot/input.schema.json +0 -7
- package/contracts/operations/editor.snapshot/output.schema.json +0 -148
- package/contracts/operations/tool.call/models/image-ocr.schema.json +0 -20
- package/contracts/operations/tool.call/ocr-payload.schema.json +0 -64
- package/dist/src/cli/editor-commands.js +0 -136
- package/skills/insmind-cli/references/agent.md +0 -39
- package/skills/insmind-cli/references/auth.md +0 -8
- package/skills/insmind-cli/references/creation.md +0 -56
- package/skills/insmind-cli/references/dam.md +0 -52
- package/skills/insmind-cli/references/editor.md +0 -62
- package/skills/insmind-cli/references/errors.md +0 -42
- package/skills/insmind-cli/references/generation-constraints.md +0 -40
- package/skills/insmind-cli/references/matting.md +0 -27
- package/skills/insmind-cli/references/media-tools.md +0 -46
- package/skills/insmind-cli/references/tool.md +0 -24
- package/skills/insmind-cli/references/update.md +0 -18
package/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# insMind CLI
|
|
2
2
|
|
|
3
|
+
Version 3.0 removes the `editor` command group and the `image.ocr` tool. Use `insmind-cli task get <id>` to retrieve an existing OCR result. Image text replacement remains available through `image.text_edit`.
|
|
4
|
+
|
|
3
5
|
The official insMind command-line interface for people, agents, and CI.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm install --global --allow-scripts=@insmind/cli @insmind/cli
|
|
7
9
|
insmind-cli auth login
|
|
8
10
|
insmind-cli --help
|
|
9
|
-
insmind-cli
|
|
11
|
+
insmind-cli --skill matting
|
|
10
12
|
insmind-cli credits --json
|
|
11
13
|
insmind-cli credits usage list --help
|
|
12
14
|
insmind-cli credits usage get --schema
|
|
@@ -22,7 +24,9 @@ Requires Node.js 20 or newer. Credentials and local runtime state are stored sep
|
|
|
22
24
|
|
|
23
25
|
`credits` reads the current balance; `credits usage list` returns one page of consumption, restoration, recycling and expiry records. `credits usage get <record-id>` reads source breakdown. Each supports offline `--schema` discovery without login. Records default to the current UTC month. Continue using the returned range and `nextCursor`; a page is not a complete spending total. Member period limits are shown separately from the overview balance.
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
Use `insmind-cli --skill` for basic usage and the remote guide catalog. Read a selected guide with `insmind-cli --skill <chapter>`. The catalog and each guide have separate one-hour caches with ETag revalidation and offline fallback. Filtering models by tool, looking up a model, and submitting a creation include matching guides and their read commands in `relatedSkills` by default. Scripts that validate the original business schema can pass `--json`. Passing `--json --with-skills` includes matching guides. The package ships the default and business JSON schemas under `contracts/presentations/` and `contracts/operations/` respectively.
|
|
28
|
+
|
|
29
|
+
Discover command behavior with `--help`, structured input through supported `--schema` modes, and live model parameters through `model list` and `model get`.
|
|
26
30
|
|
|
27
31
|
After preparing the tarball and pnpm dependency cache, for an offline fixed-version pnpm tarball installation whose lifecycle was skipped, sync and verify the installed version’s Skill without changing the CLI version:
|
|
28
32
|
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "AgentSendOutput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"message",
|
|
8
|
+
"usage"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"message": {
|
|
12
|
+
"$ref": "#/$defs/AgentMessage"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"$ref": "#/$defs/AgentUsage"
|
|
16
|
+
},
|
|
17
|
+
"relatedSkills": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"id",
|
|
25
|
+
"title",
|
|
26
|
+
"description",
|
|
27
|
+
"command"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
33
|
+
},
|
|
34
|
+
"title": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"description": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1
|
|
41
|
+
},
|
|
42
|
+
"command": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^insmind-cli --skill [a-z][a-z0-9-]{0,63}$"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"$defs": {
|
|
51
|
+
"ActualCost": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"unit",
|
|
56
|
+
"amount"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"unit": {
|
|
60
|
+
"const": "credit"
|
|
61
|
+
},
|
|
62
|
+
"amount": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"minimum": 0
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"AgentUsage": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": [
|
|
72
|
+
"cost",
|
|
73
|
+
"items"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"cost": {
|
|
77
|
+
"$ref": "#/$defs/ActualCost"
|
|
78
|
+
},
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": [
|
|
85
|
+
"model",
|
|
86
|
+
"cost"
|
|
87
|
+
],
|
|
88
|
+
"properties": {
|
|
89
|
+
"model": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"pattern": ".*\\S.*"
|
|
93
|
+
},
|
|
94
|
+
"cost": {
|
|
95
|
+
"$ref": "#/$defs/ActualCost"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"AgentMessage": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": [
|
|
106
|
+
"contextId",
|
|
107
|
+
"parts"
|
|
108
|
+
],
|
|
109
|
+
"properties": {
|
|
110
|
+
"messageId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1,
|
|
113
|
+
"pattern": ".*\\S.*"
|
|
114
|
+
},
|
|
115
|
+
"contextId": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"pattern": ".*\\S.*"
|
|
119
|
+
},
|
|
120
|
+
"parts": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"minItems": 1,
|
|
123
|
+
"items": {
|
|
124
|
+
"$ref": "#/$defs/AgentPart"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"allOf": [
|
|
129
|
+
{
|
|
130
|
+
"if": {
|
|
131
|
+
"properties": {
|
|
132
|
+
"parts": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"contains": {
|
|
135
|
+
"$ref": "#/$defs/QuestionPart"
|
|
136
|
+
},
|
|
137
|
+
"minContains": 1
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"parts"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"then": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"messageId": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"messageId"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"else": {
|
|
156
|
+
"properties": {
|
|
157
|
+
"messageId": false
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"AgentPart": {
|
|
164
|
+
"oneOf": [
|
|
165
|
+
{
|
|
166
|
+
"$ref": "#/$defs/TextPart"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"$ref": "#/$defs/OutputAssetPart"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"$ref": "#/$defs/QuestionPart"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"TextPart": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"required": [
|
|
180
|
+
"text"
|
|
181
|
+
],
|
|
182
|
+
"properties": {
|
|
183
|
+
"text": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"minLength": 1,
|
|
186
|
+
"pattern": ".*\\S.*"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"OutputAssetPart": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"required": [
|
|
194
|
+
"url",
|
|
195
|
+
"mediaType"
|
|
196
|
+
],
|
|
197
|
+
"properties": {
|
|
198
|
+
"url": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"format": "uri",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"pattern": ".*\\S.*"
|
|
203
|
+
},
|
|
204
|
+
"mediaType": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"minLength": 1,
|
|
207
|
+
"pattern": ".*\\S.*"
|
|
208
|
+
},
|
|
209
|
+
"filename": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1,
|
|
212
|
+
"pattern": ".*\\S.*"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"QuestionPart": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"additionalProperties": false,
|
|
219
|
+
"required": [
|
|
220
|
+
"data"
|
|
221
|
+
],
|
|
222
|
+
"properties": {
|
|
223
|
+
"data": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"additionalProperties": false,
|
|
226
|
+
"required": [
|
|
227
|
+
"questions"
|
|
228
|
+
],
|
|
229
|
+
"properties": {
|
|
230
|
+
"title": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"minLength": 1,
|
|
233
|
+
"pattern": ".*\\S.*"
|
|
234
|
+
},
|
|
235
|
+
"questions": {
|
|
236
|
+
"type": "array",
|
|
237
|
+
"minItems": 1,
|
|
238
|
+
"items": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"additionalProperties": false,
|
|
241
|
+
"required": [
|
|
242
|
+
"question",
|
|
243
|
+
"options",
|
|
244
|
+
"allowMultiple"
|
|
245
|
+
],
|
|
246
|
+
"properties": {
|
|
247
|
+
"question": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"minLength": 1,
|
|
250
|
+
"pattern": ".*\\S.*"
|
|
251
|
+
},
|
|
252
|
+
"options": {
|
|
253
|
+
"type": "array",
|
|
254
|
+
"items": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"additionalProperties": false,
|
|
257
|
+
"required": [
|
|
258
|
+
"label"
|
|
259
|
+
],
|
|
260
|
+
"properties": {
|
|
261
|
+
"label": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"minLength": 1,
|
|
264
|
+
"pattern": ".*\\S.*"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"allowMultiple": {
|
|
270
|
+
"type": "boolean"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ModelDetail",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"tool",
|
|
8
|
+
"model",
|
|
9
|
+
"title",
|
|
10
|
+
"parameters"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"tool": {
|
|
14
|
+
"$ref": "#/$defs/NonBlankString"
|
|
15
|
+
},
|
|
16
|
+
"model": {
|
|
17
|
+
"$ref": "#/$defs/NonBlankString"
|
|
18
|
+
},
|
|
19
|
+
"title": {
|
|
20
|
+
"$ref": "#/$defs/NonBlankString"
|
|
21
|
+
},
|
|
22
|
+
"description": {
|
|
23
|
+
"$ref": "#/$defs/NonBlankString"
|
|
24
|
+
},
|
|
25
|
+
"usageDescription": {
|
|
26
|
+
"$ref": "#/$defs/NonBlankString"
|
|
27
|
+
},
|
|
28
|
+
"outputMediaTypes": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"$ref": "#/$defs/NonBlankString"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"parameters": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/$defs/ModelParameter"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"cost": {
|
|
41
|
+
"$ref": "#/$defs/CostRange"
|
|
42
|
+
},
|
|
43
|
+
"estimatedTime": {
|
|
44
|
+
"$ref": "#/$defs/EstimatedTimeRange"
|
|
45
|
+
},
|
|
46
|
+
"inputSchema": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": true
|
|
49
|
+
},
|
|
50
|
+
"relatedSkills": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": [
|
|
57
|
+
"id",
|
|
58
|
+
"title",
|
|
59
|
+
"description",
|
|
60
|
+
"command"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"id": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
66
|
+
},
|
|
67
|
+
"title": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1
|
|
70
|
+
},
|
|
71
|
+
"description": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"command": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^insmind-cli --skill [a-z][a-z0-9-]{0,63}$"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"$defs": {
|
|
84
|
+
"NonBlankString": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"pattern": ".*\\S.*"
|
|
88
|
+
},
|
|
89
|
+
"CostRange": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"unit",
|
|
94
|
+
"minimum",
|
|
95
|
+
"maximum"
|
|
96
|
+
],
|
|
97
|
+
"properties": {
|
|
98
|
+
"unit": {
|
|
99
|
+
"const": "credit"
|
|
100
|
+
},
|
|
101
|
+
"minimum": {
|
|
102
|
+
"type": "number",
|
|
103
|
+
"minimum": 0
|
|
104
|
+
},
|
|
105
|
+
"maximum": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"minimum": 0
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"EstimatedTimeRange": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"unit",
|
|
116
|
+
"minimum",
|
|
117
|
+
"maximum"
|
|
118
|
+
],
|
|
119
|
+
"properties": {
|
|
120
|
+
"unit": {
|
|
121
|
+
"const": "second"
|
|
122
|
+
},
|
|
123
|
+
"minimum": {
|
|
124
|
+
"type": "number",
|
|
125
|
+
"minimum": 0
|
|
126
|
+
},
|
|
127
|
+
"maximum": {
|
|
128
|
+
"type": "number",
|
|
129
|
+
"minimum": 0
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"ModelParameter": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": [
|
|
137
|
+
"name",
|
|
138
|
+
"type",
|
|
139
|
+
"required"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"name": {
|
|
143
|
+
"$ref": "#/$defs/NonBlankString"
|
|
144
|
+
},
|
|
145
|
+
"type": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"enum": [
|
|
148
|
+
"string",
|
|
149
|
+
"number",
|
|
150
|
+
"uri",
|
|
151
|
+
"uri[]",
|
|
152
|
+
"integer",
|
|
153
|
+
"boolean",
|
|
154
|
+
"object",
|
|
155
|
+
"array"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"required": {
|
|
159
|
+
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"description": {
|
|
162
|
+
"$ref": "#/$defs/NonBlankString"
|
|
163
|
+
},
|
|
164
|
+
"minimum": {
|
|
165
|
+
"type": "number"
|
|
166
|
+
},
|
|
167
|
+
"maximum": {
|
|
168
|
+
"type": "number"
|
|
169
|
+
},
|
|
170
|
+
"step": {
|
|
171
|
+
"type": "number",
|
|
172
|
+
"exclusiveMinimum": 0
|
|
173
|
+
},
|
|
174
|
+
"default": {
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "object"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "array"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "null"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"options": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": [
|
|
202
|
+
"value"
|
|
203
|
+
],
|
|
204
|
+
"properties": {
|
|
205
|
+
"value": {
|
|
206
|
+
"$ref": "#/$defs/NonBlankString"
|
|
207
|
+
},
|
|
208
|
+
"label": {
|
|
209
|
+
"$ref": "#/$defs/NonBlankString"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ModelListResult",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"models"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"models": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"$ref": "#/$defs/ModelSummary"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"relatedSkills": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": [
|
|
23
|
+
"id",
|
|
24
|
+
"title",
|
|
25
|
+
"description",
|
|
26
|
+
"command"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
32
|
+
},
|
|
33
|
+
"title": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1
|
|
36
|
+
},
|
|
37
|
+
"description": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"command": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^insmind-cli --skill [a-z][a-z0-9-]{0,63}$"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"$defs": {
|
|
50
|
+
"NonBlankString": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"pattern": ".*\\S.*"
|
|
54
|
+
},
|
|
55
|
+
"CostRange": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": [
|
|
59
|
+
"unit",
|
|
60
|
+
"minimum",
|
|
61
|
+
"maximum"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"unit": {
|
|
65
|
+
"const": "credit"
|
|
66
|
+
},
|
|
67
|
+
"minimum": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"minimum": 0
|
|
70
|
+
},
|
|
71
|
+
"maximum": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"minimum": 0
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"EstimatedTimeRange": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"unit",
|
|
82
|
+
"minimum",
|
|
83
|
+
"maximum"
|
|
84
|
+
],
|
|
85
|
+
"properties": {
|
|
86
|
+
"unit": {
|
|
87
|
+
"const": "second"
|
|
88
|
+
},
|
|
89
|
+
"minimum": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"minimum": 0
|
|
92
|
+
},
|
|
93
|
+
"maximum": {
|
|
94
|
+
"type": "number",
|
|
95
|
+
"minimum": 0
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"ModelSummary": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": [
|
|
103
|
+
"tool",
|
|
104
|
+
"model",
|
|
105
|
+
"title"
|
|
106
|
+
],
|
|
107
|
+
"properties": {
|
|
108
|
+
"tool": {
|
|
109
|
+
"$ref": "#/$defs/NonBlankString"
|
|
110
|
+
},
|
|
111
|
+
"model": {
|
|
112
|
+
"$ref": "#/$defs/NonBlankString"
|
|
113
|
+
},
|
|
114
|
+
"title": {
|
|
115
|
+
"$ref": "#/$defs/NonBlankString"
|
|
116
|
+
},
|
|
117
|
+
"description": {
|
|
118
|
+
"$ref": "#/$defs/NonBlankString"
|
|
119
|
+
},
|
|
120
|
+
"cost": {
|
|
121
|
+
"$ref": "#/$defs/CostRange"
|
|
122
|
+
},
|
|
123
|
+
"estimatedTime": {
|
|
124
|
+
"$ref": "#/$defs/EstimatedTimeRange"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|