@synopackageland/sdk 0.10.3 → 0.10.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/sdk",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
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.5",
60
+ "@synopackageland/ui": "0.9.6",
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",