@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.
Files changed (62) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
  3. package/templates/_shared/AGENTS.md +6 -5
  4. package/templates/_shared/CLAUDE.md +2 -0
  5. package/templates/compose/dsm-package.yaml +1 -1
  6. package/templates/native-go/README.md +28 -11
  7. package/templates/native-go/backend/THIRD_PARTY_NOTICES.txt +1 -1
  8. package/templates/native-go/backend/cmd/app/main.go +9 -2
  9. package/templates/native-go/backend/go.mod +1 -1
  10. package/templates/native-go/backend/go.sum +2 -2
  11. package/templates/native-go/backend/internal/api/operations.json +5 -0
  12. package/templates/native-go/backend/internal/api/permissions.go +7 -0
  13. package/templates/native-go/backend/internal/api/permissions.json +3 -1
  14. package/templates/native-go/backend/internal/app/routes.go +2 -46
  15. package/templates/native-go/backend/internal/app/routes_test.go +4 -25
  16. package/templates/native-go/dsm-package.yaml +2 -28
  17. package/templates/native-go/examples/operations.json +112 -0
  18. package/templates/native-go/operations.json +27 -0
  19. package/templates/native-go/ui/app.js +0 -25
  20. package/templates/native-go-delegate/frontend/test/capability-panels.test.ts +3 -4
  21. package/templates/native-go-root-ops/frontend/test/executor-gate.test.ts +7 -6
  22. package/templates/native-go-vue/frontend/package-lock.json +4 -4
  23. package/templates/native-go-vue/frontend/package.json +1 -1
  24. package/templates/native-go-vue/frontend/src/App.vue +5 -34
  25. package/templates/native-go-vue/frontend/test/apps.test.ts +19 -25
  26. package/templates/native-go-vue/frontend/test/native-controls.test.ts +4 -1
  27. package/templates/native-go-vue/frontend/test/shell-i18n.test.ts +5 -3
  28. package/templates/native-node/README.md +27 -7
  29. package/templates/native-node/backend/app/permissions.json +3 -1
  30. package/templates/native-node/backend/package-lock.json +1 -1
  31. package/templates/native-node/backend/src/routes.ts +5 -43
  32. package/templates/native-node/backend/test/routes.test.ts +3 -23
  33. package/templates/native-node/dsm-package.yaml +3 -29
  34. package/templates/native-node/examples/operations.json +112 -0
  35. package/templates/native-node/operations.json +27 -0
  36. package/templates/native-node-delegate/operations.patch.json +20 -0
  37. package/templates/native-node-jobs/operations.patch.json +52 -0
  38. package/templates/native-node-root-ops/operations.patch.json +20 -0
  39. package/templates/native-python/README.md +27 -7
  40. package/templates/native-python/backend/app/permissions.json +3 -1
  41. package/templates/native-python/backend/app/routes.py +2 -41
  42. package/templates/native-python/backend/tests/test_routes.py +3 -19
  43. package/templates/native-python/dsm-package.yaml +3 -29
  44. package/templates/native-python/examples/operations.json +112 -0
  45. package/templates/native-python/operations.json +27 -0
  46. package/templates/native-python-delegate/operations.patch.json +20 -0
  47. package/templates/native-python-jobs/operations.patch.json +52 -0
  48. package/templates/native-python-root-ops/operations.patch.json +20 -0
  49. package/templates/native-rust/README.md +28 -8
  50. package/templates/native-rust/backend/Cargo.lock +2 -2
  51. package/templates/native-rust/backend/Cargo.toml +1 -1
  52. package/templates/native-rust/backend/permissions.json +3 -1
  53. package/templates/native-rust/backend/src/routes.rs +11 -149
  54. package/templates/native-rust/dsm-package.yaml +3 -29
  55. package/templates/native-rust/examples/operations.json +112 -0
  56. package/templates/native-rust/operations.json +27 -0
  57. package/templates/native-rust-delegate/backend/Cargo.lock +2 -2
  58. package/templates/native-rust-delegate/backend/Cargo.toml +1 -1
  59. package/templates/native-rust-delegate/backend/src/delegate.rs +7 -1
  60. package/templates/native-rust-delegate/operations.patch.json +20 -0
  61. package/templates/native-rust-jobs/operations.patch.json +52 -0
  62. 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
+ }