@synopackageland/templates 0.27.1 → 0.29.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/README.md +7 -7
- package/package.json +1 -1
- package/templates/compose/dsm-package.yaml +1 -1
- package/templates/native-go/backend/THIRD_PARTY_NOTICES.txt +1 -1
- package/templates/native-go/backend/go.mod +1 -1
- package/templates/native-go/backend/go.sum +2 -2
- package/templates/native-go-delegate/frontend/src/CapabilityPanels.vue +4 -1
- package/templates/native-go-delegate/frontend/test/capability-panels.test.ts +24 -0
- package/templates/native-go-vue/frontend/package-lock.json +8 -8
- package/templates/native-go-vue/frontend/package.json +2 -2
- package/templates/native-node/dsm-package.yaml +1 -1
- package/templates/native-python/dsm-package.yaml +1 -1
- package/templates/native-rust/backend/Cargo.lock +2 -2
- package/templates/native-rust/backend/Cargo.toml +1 -1
package/README.md
CHANGED
|
@@ -22,8 +22,8 @@ daemon:
|
|
|
22
22
|
window_seconds: 300
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Templates
|
|
26
|
-
Use CLI 0.
|
|
25
|
+
Templates pin UI 0.14.10 and SDK 0.29.0 in native and Compose projects.
|
|
26
|
+
Use CLI 0.29.0 or later. Go Apps select
|
|
27
27
|
their controller from their Go SDK requirement; an identity gateway selects it
|
|
28
28
|
from `identity_gateway.sdk`. The CLI rejects older selected versions, even for
|
|
29
29
|
an explicit `mode: off`, rather than dropping the declaration. A local SDK source
|
|
@@ -39,7 +39,7 @@ for declaration bounds, SDK selection, build/inspect checks and diagnostics.
|
|
|
39
39
|
|
|
40
40
|
An opt-in [Shared Folder permission example](examples/shared-folder-permission/README.md)
|
|
41
41
|
shows the Go status-handler registration and a Vue notice for startup checks and
|
|
42
|
-
storage failures. It uses the same SDK 0.
|
|
42
|
+
storage failures. It uses the same SDK 0.29.0 release pinned by the default scaffolds.
|
|
43
43
|
|
|
44
44
|
An opt-in [native UI plus DSM console example](examples/dual-entry-console/README.md)
|
|
45
45
|
shows the `console` declaration for an App that wraps a web service behind the
|
|
@@ -79,18 +79,18 @@ calls each one from the generated script of the same name (`synopkgland skill sh
|
|
|
79
79
|
The placeholders `__PACKAGE__` (also the Go module path), `__DISPLAY_NAME__` and
|
|
80
80
|
`__BACKGROUND_ENABLED__` are substituted by `init`.
|
|
81
81
|
|
|
82
|
-
`backend/go.mod` requires `github.com/synopackageland/syno-pkg-land-sdk v0.
|
|
82
|
+
`backend/go.mod` requires `github.com/synopackageland/syno-pkg-land-sdk v0.29.0`; that line is
|
|
83
83
|
the single source of the SDK version and `frontend/package.json` pins
|
|
84
84
|
`@synopackageland/sdk` to the same version. Python and Node.js name it in
|
|
85
85
|
`backend.sdk`, Rust in the `syno-pkg-land-app` tag of `backend/Cargo.toml`
|
|
86
|
-
(and `Cargo.lock`); all of them pin 0.
|
|
87
|
-
`@synopackageland/ui` 0.14.
|
|
86
|
+
(and `Cargo.lock`); all of them pin 0.29.0. The Vue frontend pins
|
|
87
|
+
`@synopackageland/ui` 0.14.10. SDK 0.29.0 accepts UI `>=0.10.1 <0.15.0`,
|
|
88
88
|
so no UI peer override is needed. Tests use jsdom 30 for UI floating-layer styles.
|
|
89
89
|
|
|
90
90
|
SDK 0.27.0 moves interactive NAS file operations to same-origin browser calls.
|
|
91
91
|
Custom file handlers use the SDK's
|
|
92
92
|
[session transport migration](https://github.com/synopackageland/syno-pkg-land-sdk/blob/v0.27.0/docs/dsm-session-transport.md).
|
|
93
|
-
Use CLI 0.
|
|
93
|
+
Use CLI 0.29.0 for the matching SDK 0.29.0 executor/lifecycle digests. Rebuilt
|
|
94
94
|
protected executors follow normal administrator approval. No NAS acceptance is claimed.
|
|
95
95
|
|
|
96
96
|
UI and i18n text, including the DSM glossary, omit terminal sentence periods.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Project templates for synopkgland init: native-go, native-python, native-node and native-rust (plain or Vue, with jobs, delegate and root-ops overlays), binary and compose.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@ compose:
|
|
|
14
14
|
web: {service: web, port: 8080, health: {path: /, status: 200}}
|
|
15
15
|
network: {egress: isolated}
|
|
16
16
|
identity_gateway:
|
|
17
|
-
sdk: 0.
|
|
17
|
+
sdk: 0.29.0
|
|
18
18
|
mode: none
|
|
19
19
|
listen: {http: 28000}
|
|
20
20
|
# Web Apps default to new-page through the shared app-launch resolver.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
github.com/synopackageland/syno-pkg-land-sdk v0.
|
|
2
|
-
github.com/synopackageland/syno-pkg-land-sdk v0.
|
|
1
|
+
github.com/synopackageland/syno-pkg-land-sdk v0.29.0 h1:xVEhzG8eutm0Le5nS3EJ1Fh8DXpYiQ9VyOWtQWNKRnM=
|
|
2
|
+
github.com/synopackageland/syno-pkg-land-sdk v0.29.0/go.mod h1:8GwREGbczc8mAk4Gv8FUHaukXXCUstjzkovQrNV59Cc=
|
|
3
3
|
golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ=
|
|
4
4
|
golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
|
@@ -30,5 +30,8 @@ onBeforeUnmount(()=>{disposed=true;provider.dispose()})
|
|
|
30
30
|
<BackgroundSavePanel v-if="mode==='long'" ref="panel" :key="revision" :sdk="sdk" :admin="admin" :locale="ctx.locale" :picker="{provider,keys}" sample-save />
|
|
31
31
|
<DelegatePanel v-else-if="mode==='legacy'" ref="panel" :ctx="ctx" />
|
|
32
32
|
<SectionSkeleton v-else-if="mode==='loading'" />
|
|
33
|
-
<Callout v-else tone="danger" role="alert">
|
|
33
|
+
<Callout v-else tone="danger" role="alert">
|
|
34
|
+
{{ copy.error }}
|
|
35
|
+
<template #actions><Button variant="secondary" @click="detect">{{ copy.retry }}</Button></template>
|
|
36
|
+
</Callout>
|
|
34
37
|
</template>
|
|
@@ -120,6 +120,30 @@ test('the panels show a skeleton while the delegate status loads',async()=>{
|
|
|
120
120
|
const root=render({call,locale:'en'});await settle()
|
|
121
121
|
expect(root.querySelector('[data-ui-skeleton-line]')).not.toBeNull()
|
|
122
122
|
})
|
|
123
|
+
test('a failed status check offers Retry as a Callout action and recovers',async()=>{
|
|
124
|
+
let attempts=0,resolveStatus!:(value:unknown)=>void
|
|
125
|
+
const call=vi.fn(async(method:string)=>{
|
|
126
|
+
if(method==='delegate.status'){
|
|
127
|
+
if(++attempts===1)throw {code:'EXECUTOR_UNAVAILABLE'}
|
|
128
|
+
return new Promise(resolve=>{resolveStatus=resolve})
|
|
129
|
+
}
|
|
130
|
+
if(method==='delegate.destination')return {key:'save',selection:{scope:'home',root:'/home',generation:0},destination:null,status:'missing'}
|
|
131
|
+
throw {code:'unexpected'}
|
|
132
|
+
})
|
|
133
|
+
const root=render({call,locale:'en'});await settle()
|
|
134
|
+
const alert=root.querySelector('[role="alert"]')!
|
|
135
|
+
expect(alert).not.toBeNull()
|
|
136
|
+
const retry=button(root,'Retry')
|
|
137
|
+
expect(alert.querySelector('[data-ui-callout-actions]')?.contains(retry)).toBe(true)
|
|
138
|
+
expect(alert.querySelector('[data-ui-callout-body]')?.querySelector('button')).toBeNull()
|
|
139
|
+
retry.click();await settle()
|
|
140
|
+
expect(attempts).toBe(2)
|
|
141
|
+
expect(root.querySelector('[role="alert"]')).toBeNull()
|
|
142
|
+
expect(root.querySelector('[data-ui-skeleton-line]')).not.toBeNull()
|
|
143
|
+
resolveStatus({lifetime:'until-revoked',destinations:['save']});await settle()
|
|
144
|
+
expect(root.textContent).toContain('Background saves')
|
|
145
|
+
expect(root.querySelector('[data-ui-callout-actions]')).toBeNull()
|
|
146
|
+
})
|
|
123
147
|
// AppShell's ExecutorNotice: a delegate App's pages stay while the executor waits for approval.
|
|
124
148
|
// With root-ops, ExecutorGate holds the pages instead (its own test).
|
|
125
149
|
test.skipIf(holdsPages)('an executor awaiting approval adds a notice above the pages and holds none of them back',async()=>{
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"name": "native-dsm-vue-app",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@lucide/vue": "1.48.0",
|
|
10
|
-
"@synopackageland/sdk": "0.
|
|
11
|
-
"@synopackageland/ui": "0.14.
|
|
10
|
+
"@synopackageland/sdk": "0.29.0",
|
|
11
|
+
"@synopackageland/ui": "0.14.10",
|
|
12
12
|
"vue": "3.5.43"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
@@ -1152,9 +1152,9 @@
|
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
1154
|
"node_modules/@synopackageland/sdk": {
|
|
1155
|
-
"version": "0.
|
|
1156
|
-
"resolved": "https://registry.npmjs.org/@synopackageland/sdk/-/sdk-0.
|
|
1157
|
-
"integrity": "sha512-
|
|
1155
|
+
"version": "0.29.0",
|
|
1156
|
+
"resolved": "https://registry.npmjs.org/@synopackageland/sdk/-/sdk-0.29.0.tgz",
|
|
1157
|
+
"integrity": "sha512-Q80e/aR1J/+M0r6/UY+L55UTHYIbsOAk12SzZ1eoX4hlg60ici0SThkO1cYrjZ6qZ0BRVs3ZPe0h321VOKkMnA==",
|
|
1158
1158
|
"license": "MIT",
|
|
1159
1159
|
"peerDependencies": {
|
|
1160
1160
|
"@lucide/vue": "^1.48.0",
|
|
@@ -1171,9 +1171,9 @@
|
|
|
1171
1171
|
}
|
|
1172
1172
|
},
|
|
1173
1173
|
"node_modules/@synopackageland/ui": {
|
|
1174
|
-
"version": "0.14.
|
|
1175
|
-
"resolved": "https://registry.npmjs.org/@synopackageland/ui/-/ui-0.14.
|
|
1176
|
-
"integrity": "sha512-
|
|
1174
|
+
"version": "0.14.10",
|
|
1175
|
+
"resolved": "https://registry.npmjs.org/@synopackageland/ui/-/ui-0.14.10.tgz",
|
|
1176
|
+
"integrity": "sha512-4xq1LvbBaM6HdDY2jcaQUe+nMfBdFb9GGq6ds/fsozfTrLnrZm0ZqUlmbosJuPqO8655ven2/FB0bKTnHj16mA==",
|
|
1177
1177
|
"license": "MIT",
|
|
1178
1178
|
"dependencies": {
|
|
1179
1179
|
"@internationalized/date": "3.12.4",
|
|
@@ -104,8 +104,8 @@ dependencies = [
|
|
|
104
104
|
|
|
105
105
|
[[package]]
|
|
106
106
|
name = "syno-pkg-land-app"
|
|
107
|
-
version = "0.
|
|
108
|
-
source = "git+https://github.com/synopackageland/syno-pkg-land-sdk?tag=v0.
|
|
107
|
+
version = "0.29.0"
|
|
108
|
+
source = "git+https://github.com/synopackageland/syno-pkg-land-sdk?tag=v0.29.0#6fb579d3f2b0b4a2ab5022a258e5c037cd39e52d"
|
|
109
109
|
dependencies = [
|
|
110
110
|
"libc",
|
|
111
111
|
"serde",
|
|
@@ -9,7 +9,7 @@ libc = "0.2"
|
|
|
9
9
|
serde = { version = "1", features = ["derive"] }
|
|
10
10
|
serde_json = "1"
|
|
11
11
|
# The SDK version is the tag; `synopkgland check` reads it from Cargo.lock.
|
|
12
|
-
syno-pkg-land-app = { git = "https://github.com/synopackageland/syno-pkg-land-sdk", tag = "v0.
|
|
12
|
+
syno-pkg-land-app = { git = "https://github.com/synopackageland/syno-pkg-land-sdk", tag = "v0.29.0" }
|
|
13
13
|
|
|
14
14
|
[profile.release]
|
|
15
15
|
# A handler panic becomes an "internal" reply; abort would end the App without one.
|