@synopackageland/cli 0.49.0 → 0.50.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/CHANGELOG.md +17 -0
- package/README.md +10 -0
- package/dist/ctl/ai-tools.d.ts +9 -1
- package/dist/ctl/ai-tools.js +4 -4
- package/dist/ctl/cli.d.ts +8 -1
- package/dist/ctl/cli.js +40 -5
- package/dist/ctl/descriptor.d.ts +15 -2
- package/dist/ctl/descriptor.js +9 -4
- package/dist/ctl/flows.js +2 -0
- package/dist/ctl/input.d.ts +5 -3
- package/dist/ctl/input.js +3 -3
- package/dist/ctl/native-auth-command.d.ts +9 -0
- package/dist/ctl/native-auth-command.js +98 -0
- package/dist/ctl/native-executor.d.ts +16 -0
- package/dist/ctl/native-executor.js +187 -0
- package/dist/ctl/native-file-types.d.ts +16 -0
- package/dist/ctl/native-file-types.js +57 -0
- package/dist/ctl/native-files.d.ts +13 -0
- package/dist/ctl/native-files.js +115 -0
- package/dist/ctl/native-metadata.d.ts +10 -0
- package/dist/ctl/native-metadata.js +50 -0
- package/dist/ctl/native-paths.d.ts +4 -0
- package/dist/ctl/native-paths.js +54 -0
- package/dist/ctl/native-protocol.d.ts +21 -0
- package/dist/ctl/native-protocol.js +150 -0
- package/dist/ctl/native-registry.d.ts +8 -0
- package/dist/ctl/native-registry.js +182 -0
- package/dist/ctl/native-schemas.d.ts +7 -0
- package/dist/ctl/native-schemas.js +25 -0
- package/dist/ctl/native-store.d.ts +61 -0
- package/dist/ctl/native-store.js +348 -0
- package/dist/ctl/native-transfers.d.ts +13 -0
- package/dist/ctl/native-transfers.js +331 -0
- package/dist/ctl/native-transport.d.ts +30 -0
- package/dist/ctl/native-transport.js +148 -0
- package/dist/ctl/native-types.d.ts +15 -0
- package/dist/ctl/native-types.js +1 -0
- package/dist/ctl/registry.d.ts +5 -4
- package/dist/ctl/registry.js +12 -1
- package/dist/ctl/service.d.ts +32 -1
- package/dist/ctl/service.js +122 -1
- package/dist/error-registry.js +15 -0
- package/dist/generated/native-http.d.ts +189 -0
- package/dist/generated/native-http.js +1 -0
- package/dist/nas/store.d.ts +3 -1
- package/dist/nas/store.js +6 -3
- package/dist/nas/transport.d.ts +1 -0
- package/dist/native-http-schema/descriptor.schema.json +242 -0
- package/dist/native-http-schema/inventory.schema.json +121 -0
- package/dist/native-http-schema/registry.schema.json +872 -0
- package/dist/native-http-schema/source.json +1 -0
- package/dist/runtime/sdk-source.d.ts +1 -1
- package/dist/runtime/sdk-source.js +1 -1
- package/dist/standalone/api-description.d.ts +2 -5
- package/dist/standalone/build.js +5 -1
- package/dist/standalone/compose-errors.js +5 -0
- package/dist/standalone/inspect-spk.js +2 -17
- package/dist/standalone/lifecycle.js +9 -2
- package/dist/standalone/manifest.d.ts +1 -0
- package/dist/standalone/manifest.js +22 -5
- package/dist/standalone/mobile.js +4 -4
- package/dist/standalone/native-http-inspect.d.ts +9 -0
- package/dist/standalone/native-http-inspect.js +43 -0
- package/dist/standalone/native-http.d.ts +31 -0
- package/dist/standalone/native-http.js +120 -0
- package/dist/standalone/operation-registry.d.ts +2 -7
- package/dist/standalone/operation-registry.js +3 -0
- package/dist/standalone/spk.d.ts +1 -0
- package/dist/standalone/spk.js +15 -1
- package/package.json +3 -3
- package/schema/dsm-api-contract.json +8 -7
- package/skills/SKILL.md +2 -2
- package/skills/reference/compose.md +21 -0
- package/skills/reference/ctl.md +198 -0
- package/skills/reference/daemon-mode.md +1 -1
- package/skills/reference/mobile.md +7 -3
- package/skills/reference/upstream-fork.md +5 -2
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"properties": {
|
|
5
|
+
"format": {
|
|
6
|
+
"const": "synopkgland.api"
|
|
7
|
+
},
|
|
8
|
+
"version": {
|
|
9
|
+
"const": 3
|
|
10
|
+
},
|
|
11
|
+
"payload": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"package": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_.+-]{0,127}$"
|
|
22
|
+
},
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 128
|
|
27
|
+
},
|
|
28
|
+
"displayName": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"maxLength": 1024
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"id",
|
|
36
|
+
"version",
|
|
37
|
+
"displayName"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"aliases": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"maxItems": 8,
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9-]{0,63}$"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"provenance": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"developedBy": {
|
|
54
|
+
"enum": [
|
|
55
|
+
"synopkgland",
|
|
56
|
+
"third-party",
|
|
57
|
+
"unknown"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"generator": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 1024
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"developedBy",
|
|
68
|
+
"generator"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"entry": {
|
|
72
|
+
"enum": [
|
|
73
|
+
"policy",
|
|
74
|
+
"admin-only",
|
|
75
|
+
"app-privilege"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"transport": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"path": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^/webman/3rdparty/[A-Za-z][A-Za-z0-9_.+-]{0,127}/cgi/api\\.cgi$"
|
|
85
|
+
},
|
|
86
|
+
"auth": {
|
|
87
|
+
"const": "dsm-session"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"path",
|
|
92
|
+
"auth"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"execution": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"properties": {
|
|
99
|
+
"basePath": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^/[^?#%]*/$",
|
|
102
|
+
"maxLength": 512
|
|
103
|
+
},
|
|
104
|
+
"auth": {
|
|
105
|
+
"oneOf": [
|
|
106
|
+
{
|
|
107
|
+
"$ref": "registry.schema.json#/$defs/headerAuth"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"$ref": "registry.schema.json#/$defs/greaderAuth"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"limits": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"properties": {
|
|
118
|
+
"maxResponseBytes": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 1,
|
|
121
|
+
"maximum": 16777216
|
|
122
|
+
},
|
|
123
|
+
"maxTransferBytes": {
|
|
124
|
+
"type": "integer",
|
|
125
|
+
"minimum": 1,
|
|
126
|
+
"maximum": 17179869184
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"maxResponseBytes",
|
|
131
|
+
"maxTransferBytes"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"type": {
|
|
135
|
+
"const": "native-http"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"basePath",
|
|
140
|
+
"auth",
|
|
141
|
+
"limits",
|
|
142
|
+
"type"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"features": {
|
|
146
|
+
"const": [
|
|
147
|
+
"native-http-v1",
|
|
148
|
+
"auth-header-v1",
|
|
149
|
+
"auth-greader-client-login-v1",
|
|
150
|
+
"paginate-http-v1",
|
|
151
|
+
"ndjson-http-v1",
|
|
152
|
+
"upload-http-v1",
|
|
153
|
+
"download-file-v1"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"entryPolicyDigest": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
159
|
+
},
|
|
160
|
+
"registrySha256": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
163
|
+
},
|
|
164
|
+
"inventorySha256": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
167
|
+
},
|
|
168
|
+
"authSha256": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
171
|
+
},
|
|
172
|
+
"bindings": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"minProperties": 1,
|
|
175
|
+
"maxProperties": 1024,
|
|
176
|
+
"propertyNames": {
|
|
177
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
178
|
+
},
|
|
179
|
+
"additionalProperties": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"properties": {
|
|
183
|
+
"effect": {
|
|
184
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/effect"
|
|
185
|
+
},
|
|
186
|
+
"permission": {
|
|
187
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/permission"
|
|
188
|
+
},
|
|
189
|
+
"kind": {
|
|
190
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/kind"
|
|
191
|
+
},
|
|
192
|
+
"flow": {
|
|
193
|
+
"$ref": "registry.schema.json#/$defs/flow"
|
|
194
|
+
},
|
|
195
|
+
"http": {
|
|
196
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/http"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"required": [
|
|
200
|
+
"effect",
|
|
201
|
+
"permission",
|
|
202
|
+
"kind",
|
|
203
|
+
"flow",
|
|
204
|
+
"http"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"commands": {
|
|
209
|
+
"$ref": "registry.schema.json#/properties/operations"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"package",
|
|
214
|
+
"aliases",
|
|
215
|
+
"provenance",
|
|
216
|
+
"entry",
|
|
217
|
+
"transport",
|
|
218
|
+
"execution",
|
|
219
|
+
"features",
|
|
220
|
+
"entryPolicyDigest",
|
|
221
|
+
"registrySha256",
|
|
222
|
+
"inventorySha256",
|
|
223
|
+
"authSha256",
|
|
224
|
+
"bindings",
|
|
225
|
+
"commands"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"sha256": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": [
|
|
234
|
+
"format",
|
|
235
|
+
"version",
|
|
236
|
+
"payload",
|
|
237
|
+
"sha256"
|
|
238
|
+
],
|
|
239
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
240
|
+
"$id": "https://synopkgland.org/schema/api/v3/descriptor.schema.json",
|
|
241
|
+
"title": "Syno Package Land native HTTP descriptor v3"
|
|
242
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"properties": {
|
|
5
|
+
"format": {
|
|
6
|
+
"const": "synopkgland.http-inventory"
|
|
7
|
+
},
|
|
8
|
+
"version": {
|
|
9
|
+
"const": 1
|
|
10
|
+
},
|
|
11
|
+
"package": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_.+-]{0,127}$"
|
|
18
|
+
},
|
|
19
|
+
"version": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"maxLength": 128
|
|
23
|
+
},
|
|
24
|
+
"displayName": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 1024
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"id",
|
|
32
|
+
"version",
|
|
33
|
+
"displayName"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"entry": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"policy",
|
|
39
|
+
"admin-only",
|
|
40
|
+
"app-privilege"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"entryPolicyDigest": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
46
|
+
},
|
|
47
|
+
"basePath": {
|
|
48
|
+
"$ref": "registry.schema.json#/$defs/nativeHttp/properties/basePath"
|
|
49
|
+
},
|
|
50
|
+
"registrySha256": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
53
|
+
},
|
|
54
|
+
"authSha256": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
57
|
+
},
|
|
58
|
+
"bindings": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"minProperties": 1,
|
|
61
|
+
"maxProperties": 1024,
|
|
62
|
+
"propertyNames": {
|
|
63
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"effect": {
|
|
70
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/effect"
|
|
71
|
+
},
|
|
72
|
+
"permission": {
|
|
73
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/permission"
|
|
74
|
+
},
|
|
75
|
+
"kind": {
|
|
76
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/kind"
|
|
77
|
+
},
|
|
78
|
+
"flow": {
|
|
79
|
+
"$ref": "registry.schema.json#/$defs/flow"
|
|
80
|
+
},
|
|
81
|
+
"http": {
|
|
82
|
+
"$ref": "registry.schema.json#/$defs/operation/properties/http"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"effect",
|
|
87
|
+
"permission",
|
|
88
|
+
"kind",
|
|
89
|
+
"flow",
|
|
90
|
+
"http"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"upstreamAuthPaths": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"minItems": 1,
|
|
97
|
+
"maxItems": 16,
|
|
98
|
+
"uniqueItems": true,
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"maxLength": 512,
|
|
102
|
+
"pattern": "^/[A-Za-z0-9_./~-]+$"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"format",
|
|
108
|
+
"version",
|
|
109
|
+
"package",
|
|
110
|
+
"entry",
|
|
111
|
+
"entryPolicyDigest",
|
|
112
|
+
"basePath",
|
|
113
|
+
"registrySha256",
|
|
114
|
+
"authSha256",
|
|
115
|
+
"bindings",
|
|
116
|
+
"upstreamAuthPaths"
|
|
117
|
+
],
|
|
118
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
119
|
+
"$id": "https://synopkgland.org/schema/api/v3/inventory.schema.json",
|
|
120
|
+
"title": "Syno Package Land native HTTP binding inventory"
|
|
121
|
+
}
|