@insmind/cli 1.3.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/LICENSE +21 -0
- package/README.md +11 -0
- package/contracts/operations/agent.send/input.schema.json +335 -0
- package/contracts/operations/agent.send/output.schema.json +248 -0
- package/contracts/operations/auth.status/input.schema.json +7 -0
- package/contracts/operations/auth.status/output.schema.json +119 -0
- package/contracts/operations/dam.copy/input.schema.json +42 -0
- package/contracts/operations/dam.copy/output.schema.json +43 -0
- package/contracts/operations/dam.delete/input.schema.json +24 -0
- package/contracts/operations/dam.delete/output.schema.json +5 -0
- package/contracts/operations/dam.download/input.schema.json +28 -0
- package/contracts/operations/dam.download/output.schema.json +51 -0
- package/contracts/operations/dam.folder.list/input.schema.json +36 -0
- package/contracts/operations/dam.folder.list/output.schema.json +104 -0
- package/contracts/operations/dam.get/input.schema.json +16 -0
- package/contracts/operations/dam.get/output.schema.json +107 -0
- package/contracts/operations/dam.list/input.schema.json +73 -0
- package/contracts/operations/dam.list/output.schema.json +145 -0
- package/contracts/operations/dam.move/input.schema.json +42 -0
- package/contracts/operations/dam.move/output.schema.json +40 -0
- package/contracts/operations/dam.rename/input.schema.json +42 -0
- package/contracts/operations/dam.rename/output.schema.json +43 -0
- package/contracts/operations/dam.repository.list/input.schema.json +7 -0
- package/contracts/operations/dam.repository.list/output.schema.json +65 -0
- package/contracts/operations/dam.search/input.schema.json +79 -0
- package/contracts/operations/dam.search/output.schema.json +145 -0
- package/contracts/operations/dam.tag.list/input.schema.json +21 -0
- package/contracts/operations/dam.tag.list/output.schema.json +52 -0
- package/contracts/operations/dam.upload/input.schema.json +43 -0
- package/contracts/operations/dam.upload/output.schema.json +107 -0
- package/contracts/operations/editor.apply/input.schema.json +177 -0
- package/contracts/operations/editor.apply/output.schema.json +15 -0
- package/contracts/operations/editor.connect/input.schema.json +13 -0
- package/contracts/operations/editor.connect/output.schema.json +17 -0
- package/contracts/operations/editor.disconnect/input.schema.json +7 -0
- package/contracts/operations/editor.disconnect/output.schema.json +14 -0
- package/contracts/operations/editor.save/input.schema.json +7 -0
- package/contracts/operations/editor.save/output.schema.json +23 -0
- package/contracts/operations/editor.screenshot/input.schema.json +7 -0
- package/contracts/operations/editor.screenshot/output.schema.json +16 -0
- package/contracts/operations/editor.snapshot/input.schema.json +7 -0
- package/contracts/operations/editor.snapshot/output.schema.json +148 -0
- package/contracts/operations/model.get/input.schema.json +16 -0
- package/contracts/operations/model.get/output.schema.json +167 -0
- package/contracts/operations/model.list/input.schema.json +13 -0
- package/contracts/operations/model.list/output.schema.json +97 -0
- package/contracts/operations/task.get/input.schema.json +14 -0
- package/contracts/operations/task.get/output.schema.json +103 -0
- package/contracts/operations/task.list/input.schema.json +18 -0
- package/contracts/operations/task.list/output.schema.json +53 -0
- package/contracts/operations/tool.call/input.schema.json +31 -0
- package/contracts/operations/tool.call/output.schema.json +115 -0
- package/contracts/operations/tool.list/input.schema.json +6 -0
- package/contracts/operations/tool.list/output.schema.json +40 -0
- package/dist/bin/agent-worker.js +41 -0
- package/dist/bin/insmind-cli.js +60 -0
- package/dist/bin/postinstall.js +69 -0
- package/dist/src/bootstrap/create-cli.js +124 -0
- package/dist/src/bootstrap/create-runtime.js +451 -0
- package/dist/src/bootstrap/run-agent-worker.js +37 -0
- package/dist/src/bootstrap/validators.js +169 -0
- package/dist/src/cli/action-binding.js +109 -0
- package/dist/src/cli/agent-commands.js +75 -0
- package/dist/src/cli/auth-commands.js +58 -0
- package/dist/src/cli/credits-command.js +23 -0
- package/dist/src/cli/dam-commands.js +470 -0
- package/dist/src/cli/editor-commands.js +74 -0
- package/dist/src/cli/errors.js +208 -0
- package/dist/src/cli/model-commands.js +62 -0
- package/dist/src/cli/org-commands.js +58 -0
- package/dist/src/cli/presenter.js +123 -0
- package/dist/src/cli/prompt.js +30 -0
- package/dist/src/cli/task-commands.js +48 -0
- package/dist/src/cli/tool-commands.js +101 -0
- package/dist/src/cli/update-command.js +15 -0
- package/dist/src/contracts/schema.js +4 -0
- package/dist/src/features/agent/creative-agent-adapter.js +42 -0
- package/dist/src/features/agent/creative-protocol.js +421 -0
- package/dist/src/features/agent/creative-stream.js +138 -0
- package/dist/src/features/agent/filems-resource-auth-key-provider.js +23 -0
- package/dist/src/features/agent/resource-authorizer.js +47 -0
- package/dist/src/features/agent/result-reader.js +30 -0
- package/dist/src/features/agent/use-cases.js +153 -0
- package/dist/src/features/auth/access-policy.js +101 -0
- package/dist/src/features/auth/credential-store.js +62 -0
- package/dist/src/features/auth/sso-service.js +196 -0
- package/dist/src/features/auth/state.js +129 -0
- package/dist/src/features/auth/use-cases.js +162 -0
- package/dist/src/features/credits/use-cases.js +52 -0
- package/dist/src/features/dam/asset-projection.js +278 -0
- package/dist/src/features/dam/dam-api-adapter.js +562 -0
- package/dist/src/features/dam/file-downloader.js +242 -0
- package/dist/src/features/dam/object-storage.js +193 -0
- package/dist/src/features/dam/operation-executor.js +72 -0
- package/dist/src/features/dam/registered-uploader.js +247 -0
- package/dist/src/features/dam/repository-catalog.js +127 -0
- package/dist/src/features/dam/storage-upload.js +141 -0
- package/dist/src/features/dam/transient-uploader.js +17 -0
- package/dist/src/features/dam/use-cases.js +470 -0
- package/dist/src/features/editor/bridge-client.js +109 -0
- package/dist/src/features/editor/bridge-process.js +229 -0
- package/dist/src/features/editor/bridge-server.js +337 -0
- package/dist/src/features/editor/protocol.js +1 -0
- package/dist/src/features/editor/public-url.js +36 -0
- package/dist/src/features/editor/session-state.js +78 -0
- package/dist/src/features/editor/session.js +213 -0
- package/dist/src/features/editor/use-cases.js +88 -0
- package/dist/src/features/org/org-service.js +76 -0
- package/dist/src/features/org/use-cases.js +163 -0
- package/dist/src/features/skill/bundled-skills.js +63 -0
- package/dist/src/features/skill/installer.js +271 -0
- package/dist/src/features/task/agent-background.js +63 -0
- package/dist/src/features/task/store.js +97 -0
- package/dist/src/features/task/types.js +1 -0
- package/dist/src/features/task/use-cases.js +139 -0
- package/dist/src/features/tool/catalog.js +83 -0
- package/dist/src/features/tool/dynamic-schema.js +128 -0
- package/dist/src/features/tool/mns-catalog-adapter.js +265 -0
- package/dist/src/features/tool/tool-api-adapter.js +369 -0
- package/dist/src/features/tool/use-cases.js +180 -0
- package/dist/src/features/update/latest-version.js +37 -0
- package/dist/src/features/update/update-notification.js +271 -0
- package/dist/src/features/update/update-service.js +226 -0
- package/dist/src/platform/installation-owner.js +81 -0
- package/dist/src/platform/json-input.js +67 -0
- package/dist/src/platform/local-json-file.js +59 -0
- package/dist/src/platform/open-browser.js +8 -0
- package/dist/src/platform/redact.js +80 -0
- package/dist/src/platform/remote-error-evidence.js +80 -0
- package/dist/src/platform/remote-protocol.js +10 -0
- package/dist/src/platform/resource-auth-key.js +1 -0
- package/dist/src/platform/safe-upload-file.js +146 -0
- package/dist/src/platform/signature.js +20 -0
- package/dist/src/platform/signed-http-transport.js +144 -0
- package/dist/src/platform/task-observer.js +1 -0
- package/dist/src/platform/url-safety.js +100 -0
- package/dist/src/product/billing.js +47 -0
- package/dist/src/product/config.js +85 -0
- package/dist/src/product/locale.js +38 -0
- package/dist/src/product/text.js +3 -0
- package/dist/src/telemetry/invocation.js +156 -0
- package/dist/src/telemetry/sls-sink.js +30 -0
- package/package.json +53 -0
- package/skills/insmind-cli/SKILL.md +15 -0
- package/skills/insmind-cli/references/agent.md +34 -0
- package/skills/insmind-cli/references/auth.md +8 -0
- package/skills/insmind-cli/references/creation.md +40 -0
- package/skills/insmind-cli/references/dam.md +51 -0
- package/skills/insmind-cli/references/editor.md +184 -0
- package/skills/insmind-cli/references/errors.md +29 -0
- package/skills/insmind-cli/references/generation-constraints.md +36 -0
- package/skills/insmind-cli/references/tool.md +31 -0
- package/skills/insmind-cli/references/update.md +11 -0
|
@@ -0,0 +1,167 @@
|
|
|
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
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"NonBlankString": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"pattern": ".*\\S.*"
|
|
52
|
+
},
|
|
53
|
+
"CostRange": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": [
|
|
57
|
+
"unit",
|
|
58
|
+
"minimum",
|
|
59
|
+
"maximum"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"unit": {
|
|
63
|
+
"const": "credit"
|
|
64
|
+
},
|
|
65
|
+
"minimum": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"minimum": 0
|
|
68
|
+
},
|
|
69
|
+
"maximum": {
|
|
70
|
+
"type": "number",
|
|
71
|
+
"minimum": 0
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"EstimatedTimeRange": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": [
|
|
79
|
+
"unit",
|
|
80
|
+
"minimum",
|
|
81
|
+
"maximum"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"unit": {
|
|
85
|
+
"const": "second"
|
|
86
|
+
},
|
|
87
|
+
"minimum": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"minimum": 0
|
|
90
|
+
},
|
|
91
|
+
"maximum": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"minimum": 0
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"ModelParameter": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": [
|
|
101
|
+
"name",
|
|
102
|
+
"type",
|
|
103
|
+
"required"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"name": {
|
|
107
|
+
"$ref": "#/$defs/NonBlankString"
|
|
108
|
+
},
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"enum": [
|
|
112
|
+
"string",
|
|
113
|
+
"number",
|
|
114
|
+
"uri",
|
|
115
|
+
"uri[]"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"required": {
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"description": {
|
|
122
|
+
"$ref": "#/$defs/NonBlankString"
|
|
123
|
+
},
|
|
124
|
+
"default": {
|
|
125
|
+
"anyOf": [
|
|
126
|
+
{
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "number"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "object"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "array"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "null"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"options": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"items": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"additionalProperties": false,
|
|
151
|
+
"required": [
|
|
152
|
+
"value"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"value": {
|
|
156
|
+
"$ref": "#/$defs/NonBlankString"
|
|
157
|
+
},
|
|
158
|
+
"label": {
|
|
159
|
+
"$ref": "#/$defs/NonBlankString"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
},
|
|
17
|
+
"$defs": {
|
|
18
|
+
"NonBlankString": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"pattern": ".*\\S.*"
|
|
22
|
+
},
|
|
23
|
+
"CostRange": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"unit",
|
|
28
|
+
"minimum",
|
|
29
|
+
"maximum"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"unit": {
|
|
33
|
+
"const": "credit"
|
|
34
|
+
},
|
|
35
|
+
"minimum": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"minimum": 0
|
|
38
|
+
},
|
|
39
|
+
"maximum": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"minimum": 0
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"EstimatedTimeRange": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"unit",
|
|
50
|
+
"minimum",
|
|
51
|
+
"maximum"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"unit": {
|
|
55
|
+
"const": "second"
|
|
56
|
+
},
|
|
57
|
+
"minimum": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"maximum": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"minimum": 0
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"ModelSummary": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": [
|
|
71
|
+
"tool",
|
|
72
|
+
"model",
|
|
73
|
+
"title"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"tool": {
|
|
77
|
+
"$ref": "#/$defs/NonBlankString"
|
|
78
|
+
},
|
|
79
|
+
"model": {
|
|
80
|
+
"$ref": "#/$defs/NonBlankString"
|
|
81
|
+
},
|
|
82
|
+
"title": {
|
|
83
|
+
"$ref": "#/$defs/NonBlankString"
|
|
84
|
+
},
|
|
85
|
+
"description": {
|
|
86
|
+
"$ref": "#/$defs/NonBlankString"
|
|
87
|
+
},
|
|
88
|
+
"cost": {
|
|
89
|
+
"$ref": "#/$defs/CostRange"
|
|
90
|
+
},
|
|
91
|
+
"estimatedTime": {
|
|
92
|
+
"$ref": "#/$defs/EstimatedTimeRange"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gdcli.insmind.com/contracts/operations/task.get/output.schema.json",
|
|
4
|
+
"title": "TaskResult",
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"if": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"state": {
|
|
10
|
+
"const": "completed"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"then": {
|
|
15
|
+
"properties": {
|
|
16
|
+
"result": {}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"result"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"else": {
|
|
23
|
+
"not": {
|
|
24
|
+
"properties": {
|
|
25
|
+
"result": {}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"result"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": [
|
|
37
|
+
"taskId",
|
|
38
|
+
"operation",
|
|
39
|
+
"label",
|
|
40
|
+
"createdAt",
|
|
41
|
+
"updatedAt",
|
|
42
|
+
"state"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"taskId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "uuid"
|
|
48
|
+
},
|
|
49
|
+
"operation": {
|
|
50
|
+
"enum": [
|
|
51
|
+
"agent.send",
|
|
52
|
+
"tool.call"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"label": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"maxLength": 200
|
|
58
|
+
},
|
|
59
|
+
"createdAt": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"format": "date-time"
|
|
62
|
+
},
|
|
63
|
+
"updatedAt": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"format": "date-time"
|
|
66
|
+
},
|
|
67
|
+
"state": {
|
|
68
|
+
"enum": [
|
|
69
|
+
"running",
|
|
70
|
+
"completed",
|
|
71
|
+
"failed",
|
|
72
|
+
"unknown"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"contextId": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1
|
|
78
|
+
},
|
|
79
|
+
"note": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"result": {
|
|
83
|
+
"oneOf": [
|
|
84
|
+
{
|
|
85
|
+
"$ref": "../agent.send/output.schema.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"$ref": "../tool.call/output.schema.json"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"partialResult": {
|
|
93
|
+
"oneOf": [
|
|
94
|
+
{
|
|
95
|
+
"$ref": "../agent.send/output.schema.json"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"$ref": "../tool.call/output.schema.json"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"limit": {
|
|
7
|
+
"type": "integer",
|
|
8
|
+
"minimum": 1,
|
|
9
|
+
"maximum": 100
|
|
10
|
+
},
|
|
11
|
+
"operation": {
|
|
12
|
+
"enum": [
|
|
13
|
+
"agent.send",
|
|
14
|
+
"tool.call"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gdcli.insmind.com/contracts/operations/task.list/output.schema.json",
|
|
4
|
+
"title": "TaskListResult",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"tasks"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"tasks": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": [
|
|
17
|
+
"taskId",
|
|
18
|
+
"operation",
|
|
19
|
+
"label",
|
|
20
|
+
"createdAt",
|
|
21
|
+
"updatedAt",
|
|
22
|
+
"state"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"taskId": {
|
|
26
|
+
"$ref": "../task.get/output.schema.json#/properties/taskId"
|
|
27
|
+
},
|
|
28
|
+
"operation": {
|
|
29
|
+
"$ref": "../task.get/output.schema.json#/properties/operation"
|
|
30
|
+
},
|
|
31
|
+
"label": {
|
|
32
|
+
"$ref": "../task.get/output.schema.json#/properties/label"
|
|
33
|
+
},
|
|
34
|
+
"createdAt": {
|
|
35
|
+
"$ref": "../task.get/output.schema.json#/properties/createdAt"
|
|
36
|
+
},
|
|
37
|
+
"updatedAt": {
|
|
38
|
+
"$ref": "../task.get/output.schema.json#/properties/updatedAt"
|
|
39
|
+
},
|
|
40
|
+
"state": {
|
|
41
|
+
"$ref": "../task.get/output.schema.json#/properties/state"
|
|
42
|
+
},
|
|
43
|
+
"contextId": {
|
|
44
|
+
"$ref": "../task.get/output.schema.json#/properties/contextId"
|
|
45
|
+
},
|
|
46
|
+
"note": {
|
|
47
|
+
"$ref": "../task.get/output.schema.json#/properties/note"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ToolCallInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"name",
|
|
8
|
+
"arguments"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"pattern": ".*\\S.*"
|
|
15
|
+
},
|
|
16
|
+
"arguments": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [
|
|
19
|
+
"model"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"model": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"pattern": ".*\\S.*"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ToolCallOutput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"content",
|
|
8
|
+
"usage"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"content": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"oneOf": [
|
|
15
|
+
{
|
|
16
|
+
"$ref": "#/$defs/TextContent"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "#/$defs/ResourceLink"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"usage": {
|
|
25
|
+
"$ref": "#/$defs/ToolUsage"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"$defs": {
|
|
29
|
+
"CostRange": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"unit",
|
|
34
|
+
"minimum",
|
|
35
|
+
"maximum"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"unit": {
|
|
39
|
+
"const": "credit"
|
|
40
|
+
},
|
|
41
|
+
"minimum": {
|
|
42
|
+
"type": "number",
|
|
43
|
+
"minimum": 0
|
|
44
|
+
},
|
|
45
|
+
"maximum": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"minimum": 0
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"ToolUsage": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"model"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"model": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"pattern": ".*\\S.*"
|
|
62
|
+
},
|
|
63
|
+
"cost": {
|
|
64
|
+
"$ref": "#/$defs/CostRange"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"TextContent": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": [
|
|
72
|
+
"type",
|
|
73
|
+
"text"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"type": {
|
|
77
|
+
"const": "text"
|
|
78
|
+
},
|
|
79
|
+
"text": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"pattern": ".*\\S.*"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"ResourceLink": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": [
|
|
90
|
+
"type",
|
|
91
|
+
"uri",
|
|
92
|
+
"name"
|
|
93
|
+
],
|
|
94
|
+
"properties": {
|
|
95
|
+
"type": {
|
|
96
|
+
"const": "resource_link"
|
|
97
|
+
},
|
|
98
|
+
"uri": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"format": "uri"
|
|
101
|
+
},
|
|
102
|
+
"name": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"pattern": ".*\\S.*"
|
|
106
|
+
},
|
|
107
|
+
"mimeType": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"pattern": ".*\\S.*"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ToolListResult",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"tools"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"tools": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": [
|
|
16
|
+
"name",
|
|
17
|
+
"title",
|
|
18
|
+
"description"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"name": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"pattern": ".*\\S.*"
|
|
25
|
+
},
|
|
26
|
+
"title": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"pattern": ".*\\S.*"
|
|
30
|
+
},
|
|
31
|
+
"description": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1,
|
|
34
|
+
"pattern": ".*\\S.*"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|