@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/README.md +47 -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/index.js +2654 -2617
- package/dist/src/background/i18n.d.ts +1 -1
- package/dist/src/context.d.ts +1 -0
- package/dist/src/delegate/ExecutorApproval.vue.d.ts +4 -1
- package/dist/src/delegate/SaveOperations.vue.d.ts +2 -2
- package/dist/src/delegate/copy.d.ts +4 -0
- package/dist/src/delegate/lifecycle.d.ts +7 -3
- package/dist/src/delegate/save-copy.d.ts +1 -1
- package/dist/src/delegate/use-executor-setup.d.ts +3 -1
- package/dist/src/delegate/use-lifecycle-retry.d.ts +2 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/nas/locale.d.ts +1 -1
- package/dist/src/vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/vue.js +1804 -1728
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +18 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.10.
|
|
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 `
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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>",
|