@synopackageland/sdk 0.10.6 → 0.10.8

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.6",
3
+ "version": "0.10.8",
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",
@@ -112,10 +112,11 @@ browser waits 2 seconds past the request (`timeouts.json` holds the values).
112
112
  and was not started in the last 10 seconds, yet whose executor does not
113
113
  listen: it is not approved, awaits approval after an upgrade, or failed.
114
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.
115
+ client repeats `APP_STARTING` and `EXECUTOR_STARTING` on its own for a few
116
+ seconds (the DSM window: 4 s), since a start ends by itself, but shows
117
+ `APP_STOPPED` at once, since only the user starts a stopped package, and
118
+ shows `EXECUTOR_UNAVAILABLE` as the approval state at once, since only an
119
+ administrator's approval (which also restarts the executor) changes it.
119
120
 
120
121
  ## Status
121
122
 
@@ -129,6 +130,19 @@ executor would refuse is never shown as ready. While a due start step runs
129
130
  `"starting"` and both digests. The executor MUST NOT report the SDK version; the binary
130
131
  digest MUST change only when the executor source changes.
131
132
 
133
+ Since 0.10.8, `status` also answers `tasks`, the executor's own readback of
134
+ its approval tasks (`../../scheduler/v1`): `{"state", "checked_at"}`. `state`
135
+ is `checking` until the first readback after the executor started ends, then
136
+ `ready` (both tasks are exactly the canonical ones under this executor's
137
+ policy digest), `stale` (a `ready` readback older than 15 minutes) or `failed`
138
+ (any other verdict, or DSM did not answer within 150 seconds). `checked_at`
139
+ (RFC 3339, UTC, the NAS clock) is when that readback started; `checking` has
140
+ none. The executor reads back at start, every 10 minutes after a pass and
141
+ every minute after a failure; a `stale` status starts a readback. The
142
+ executor judges freshness itself, so a client need not compare `checked_at`
143
+ with its own clock. An older executor answers no `tasks`: a client then reads
144
+ the tasks back itself.
145
+
132
146
  ## Application Portal
133
147
 
134
148
  Since 0.9.6. A policy MAY carry `"portal": {"application": "<display name>",