@synopackageland/sdk 0.10.3 → 0.10.5
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 +1 -1
- package/dist/i18n/authorization/de.json +8 -0
- package/dist/i18n/authorization/en.json +8 -0
- package/dist/i18n/authorization/es.json +8 -0
- package/dist/i18n/authorization/fr.json +8 -0
- package/dist/i18n/authorization/it.json +8 -0
- package/dist/i18n/authorization/ja.json +8 -0
- package/dist/i18n/authorization/ko.json +8 -0
- package/dist/i18n/authorization/zh-CN.json +8 -0
- package/dist/i18n/authorization/zh-TW.json +8 -0
- package/dist/i18n/background/zh-CN.json +1 -1
- package/dist/i18n/bridge/de.json +3 -1
- package/dist/i18n/bridge/en.json +3 -1
- package/dist/i18n/bridge/es.json +3 -1
- package/dist/i18n/bridge/fr.json +3 -1
- package/dist/i18n/bridge/it.json +3 -1
- package/dist/i18n/bridge/ja.json +3 -1
- package/dist/i18n/bridge/ko.json +3 -1
- package/dist/i18n/bridge/zh-CN.json +3 -1
- package/dist/i18n/bridge/zh-TW.json +3 -1
- package/dist/i18n/delegate/de.json +2 -0
- package/dist/i18n/delegate/en.json +2 -0
- package/dist/i18n/delegate/es.json +2 -0
- package/dist/i18n/delegate/fr.json +2 -0
- package/dist/i18n/delegate/it.json +2 -0
- package/dist/i18n/delegate/ja.json +2 -0
- package/dist/i18n/delegate/ko.json +2 -0
- package/dist/i18n/delegate/zh-CN.json +2 -0
- package/dist/i18n/delegate/zh-TW.json +2 -0
- package/dist/i18n/save/de.json +4 -2
- package/dist/i18n/save/en.json +4 -2
- package/dist/i18n/save/es.json +4 -2
- package/dist/i18n/save/fr.json +4 -2
- package/dist/i18n/save/it.json +4 -2
- package/dist/i18n/save/ja.json +4 -2
- package/dist/i18n/save/ko.json +4 -2
- package/dist/i18n/save/zh-CN.json +4 -2
- package/dist/i18n/save/zh-TW.json +4 -2
- package/dist/index.js +2316 -2186
- package/dist/src/delegate/BackgroundSaveSettings.vue.d.ts +14 -1
- package/dist/src/delegate/ExecutorSettings.vue.d.ts +2 -0
- package/dist/src/delegate/SaveOperations.vue.d.ts +24 -0
- package/dist/src/delegate/copy.d.ts +4 -0
- package/dist/src/delegate/lifecycle.d.ts +4 -0
- package/dist/src/delegate/save-copy.d.ts +6 -0
- package/dist/src/delegate/saves-height.d.ts +4 -0
- package/dist/src/delegate/use-scope-approval.d.ts +1 -0
- package/dist/src/protocol/v1.d.ts +13 -1
- package/dist/src/shell/AppShell.vue.d.ts +3 -0
- package/dist/src/shell/slot-content.d.ts +2 -0
- package/dist/src/vue.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +2063 -1830
- package/package.json +2 -2
- package/spec/protocol/v1/README.md +13 -0
- package/spec/protocol/v1/errors.json +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Frontend SDK for DSM packages built with synopkgland: headless client and Vue components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/synopackageland/syno-pkg-land-sdk/tree/main/ts#readme",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@lucide/vue": "1.48.0",
|
|
60
|
-
"@synopackageland/ui": "0.9.
|
|
60
|
+
"@synopackageland/ui": "0.9.7",
|
|
61
61
|
"@types/node": "24.19.2",
|
|
62
62
|
"@vitejs/plugin-vue": "6.0.9",
|
|
63
63
|
"jsdom": "27.4.0",
|
|
@@ -103,6 +103,19 @@ browser waits 2 seconds past the request (`timeouts.json` holds the values).
|
|
|
103
103
|
as `EXECUTOR_PROTOCOL`, and an unreachable socket as
|
|
104
104
|
`EXECUTOR_UNAVAILABLE`. Codes of kind `client` are never sent by the
|
|
105
105
|
executor.
|
|
106
|
+
- A client that knows the package's lifecycle mailbox (`<data
|
|
107
|
+
dir>/executor/control`) answers an unreachable socket with `APP_STOPPED`
|
|
108
|
+
when its last request is `stop`; within 10 seconds of a `start` it waits
|
|
109
|
+
for the socket and ends with `APP_STARTING`. Neither sends a byte, so the
|
|
110
|
+
caller MAY repeat the request.
|
|
111
|
+
- Such a client answers `EXECUTOR_UNAVAILABLE` only for a package that runs
|
|
112
|
+
and was not started in the last 10 seconds, yet whose executor does not
|
|
113
|
+
listen: it is not approved, awaits approval after an upgrade, or failed.
|
|
114
|
+
`retryable` says that nothing was sent, not that waiting helps: a browser
|
|
115
|
+
client repeats `APP_STOPPED`, `APP_STARTING` and `EXECUTOR_STARTING` on its
|
|
116
|
+
own, but shows `EXECUTOR_UNAVAILABLE` as the approval state at once, since
|
|
117
|
+
only an administrator's approval (which also restarts the executor) changes
|
|
118
|
+
it.
|
|
106
119
|
|
|
107
120
|
## Status
|
|
108
121
|
|
|
@@ -474,6 +474,22 @@
|
|
|
474
474
|
"en": "The client could not connect to the executor socket.",
|
|
475
475
|
"zh-TW": "用戶端無法連到 executor socket。"
|
|
476
476
|
},
|
|
477
|
+
{
|
|
478
|
+
"code": "APP_STOPPED",
|
|
479
|
+
"kind": "client",
|
|
480
|
+
"retryable": true,
|
|
481
|
+
"httpStatus": 503,
|
|
482
|
+
"en": "The package is stopped: its lifecycle mailbox asks the executor to stop. The client sent nothing.",
|
|
483
|
+
"zh-TW": "套件已停止:生命週期信箱要求 executor 停止。用戶端沒有送出任何內容。"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"code": "APP_STARTING",
|
|
487
|
+
"kind": "client",
|
|
488
|
+
"retryable": true,
|
|
489
|
+
"httpStatus": 503,
|
|
490
|
+
"en": "The package was just started and its executor is not listening yet. The client sent nothing.",
|
|
491
|
+
"zh-TW": "套件剛啟動,executor 尚未開始接聽。用戶端沒有送出任何內容。"
|
|
492
|
+
},
|
|
477
493
|
{
|
|
478
494
|
"code": "EXECUTOR_TIMEOUT",
|
|
479
495
|
"kind": "client",
|