@synopackageland/templates 0.38.0 → 0.39.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 +9 -9
- package/package.json +1 -1
- package/templates/_shared/AGENTS.md +6 -5
- package/templates/_shared/CLAUDE.md +2 -0
- package/templates/compose/dsm-package.yaml +1 -1
- package/templates/native-go/README.md +28 -11
- package/templates/native-go/backend/THIRD_PARTY_NOTICES.txt +1 -1
- package/templates/native-go/backend/cmd/app/main.go +9 -2
- package/templates/native-go/backend/go.mod +1 -1
- package/templates/native-go/backend/go.sum +2 -2
- package/templates/native-go/backend/internal/api/operations.json +5 -0
- package/templates/native-go/backend/internal/api/permissions.go +7 -0
- package/templates/native-go/backend/internal/api/permissions.json +3 -1
- package/templates/native-go/backend/internal/app/routes.go +2 -46
- package/templates/native-go/backend/internal/app/routes_test.go +4 -25
- package/templates/native-go/dsm-package.yaml +2 -28
- package/templates/native-go/examples/operations.json +112 -0
- package/templates/native-go/operations.json +27 -0
- package/templates/native-go/ui/app.js +0 -25
- package/templates/native-go-delegate/frontend/test/capability-panels.test.ts +3 -4
- package/templates/native-go-root-ops/frontend/test/executor-gate.test.ts +7 -6
- package/templates/native-go-vue/frontend/package-lock.json +4 -4
- package/templates/native-go-vue/frontend/package.json +1 -1
- package/templates/native-go-vue/frontend/src/App.vue +5 -34
- package/templates/native-go-vue/frontend/test/apps.test.ts +19 -25
- package/templates/native-go-vue/frontend/test/native-controls.test.ts +4 -1
- package/templates/native-go-vue/frontend/test/shell-i18n.test.ts +5 -3
- package/templates/native-node/README.md +27 -7
- package/templates/native-node/backend/app/permissions.json +3 -1
- package/templates/native-node/backend/package-lock.json +1 -1
- package/templates/native-node/backend/src/routes.ts +5 -43
- package/templates/native-node/backend/test/routes.test.ts +3 -23
- package/templates/native-node/dsm-package.yaml +3 -29
- package/templates/native-node/examples/operations.json +112 -0
- package/templates/native-node/operations.json +27 -0
- package/templates/native-node-delegate/operations.patch.json +20 -0
- package/templates/native-node-jobs/operations.patch.json +52 -0
- package/templates/native-node-root-ops/operations.patch.json +20 -0
- package/templates/native-python/README.md +27 -7
- package/templates/native-python/backend/app/permissions.json +3 -1
- package/templates/native-python/backend/app/routes.py +2 -41
- package/templates/native-python/backend/tests/test_routes.py +3 -19
- package/templates/native-python/dsm-package.yaml +3 -29
- package/templates/native-python/examples/operations.json +112 -0
- package/templates/native-python/operations.json +27 -0
- package/templates/native-python-delegate/operations.patch.json +20 -0
- package/templates/native-python-jobs/operations.patch.json +52 -0
- package/templates/native-python-root-ops/operations.patch.json +20 -0
- package/templates/native-rust/README.md +28 -8
- package/templates/native-rust/backend/Cargo.lock +2 -2
- package/templates/native-rust/backend/Cargo.toml +1 -1
- package/templates/native-rust/backend/permissions.json +3 -1
- package/templates/native-rust/backend/src/routes.rs +11 -149
- package/templates/native-rust/dsm-package.yaml +3 -29
- package/templates/native-rust/examples/operations.json +112 -0
- package/templates/native-rust/operations.json +27 -0
- package/templates/native-rust-delegate/backend/Cargo.lock +2 -2
- package/templates/native-rust-delegate/backend/Cargo.toml +1 -1
- package/templates/native-rust-delegate/backend/src/delegate.rs +7 -1
- package/templates/native-rust-delegate/operations.patch.json +20 -0
- package/templates/native-rust-jobs/operations.patch.json +52 -0
- package/templates/native-rust-root-ops/operations.patch.json +20 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"operations": {
|
|
3
|
+
"hash.submit": {
|
|
4
|
+
"summary": "Start a file hash job",
|
|
5
|
+
"ai": "hidden",
|
|
6
|
+
"effect": "write",
|
|
7
|
+
"permission": "administrators",
|
|
8
|
+
"cli": [
|
|
9
|
+
"hash",
|
|
10
|
+
"submit"
|
|
11
|
+
],
|
|
12
|
+
"paramsSchema": {},
|
|
13
|
+
"resultSchema": {},
|
|
14
|
+
"flow": {
|
|
15
|
+
"type": "invoke",
|
|
16
|
+
"method": "hash.submit"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"hash.get": {
|
|
20
|
+
"summary": "Read a file hash job",
|
|
21
|
+
"ai": "hidden",
|
|
22
|
+
"effect": "read",
|
|
23
|
+
"permission": "administrators",
|
|
24
|
+
"cli": [
|
|
25
|
+
"hash",
|
|
26
|
+
"get"
|
|
27
|
+
],
|
|
28
|
+
"paramsSchema": {},
|
|
29
|
+
"resultSchema": {},
|
|
30
|
+
"flow": {
|
|
31
|
+
"type": "invoke",
|
|
32
|
+
"method": "hash.get"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"hash.cancel": {
|
|
36
|
+
"summary": "Cancel a file hash job",
|
|
37
|
+
"ai": "hidden",
|
|
38
|
+
"effect": "write",
|
|
39
|
+
"permission": "administrators",
|
|
40
|
+
"cli": [
|
|
41
|
+
"hash",
|
|
42
|
+
"cancel"
|
|
43
|
+
],
|
|
44
|
+
"paramsSchema": {},
|
|
45
|
+
"resultSchema": {},
|
|
46
|
+
"flow": {
|
|
47
|
+
"type": "invoke",
|
|
48
|
+
"method": "hash.cancel"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"operations": {
|
|
3
|
+
"whoami.run": {
|
|
4
|
+
"summary": "Run the approved identity operation",
|
|
5
|
+
"ai": "hidden",
|
|
6
|
+
"effect": "write",
|
|
7
|
+
"permission": "administrators",
|
|
8
|
+
"cli": [
|
|
9
|
+
"whoami",
|
|
10
|
+
"run"
|
|
11
|
+
],
|
|
12
|
+
"paramsSchema": {},
|
|
13
|
+
"resultSchema": {},
|
|
14
|
+
"flow": {
|
|
15
|
+
"type": "invoke",
|
|
16
|
+
"method": "whoami.run"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|