sporades 0.3.0 โ 0.5.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/CHANGES.md +15 -21
- package/Dockerfile.base +2 -2
- package/README.md +31 -13
- package/bin/sporades-host-helper.js +903 -180
- package/bin/sporades.js +14510 -7112
- package/dist/bundle-pipeline.d.ts +35 -4
- package/dist/bundle-pipeline.d.ts.map +1 -1
- package/dist/bundle-pipeline.js +264 -91
- package/dist/bundle-pipeline.js.map +1 -1
- package/dist/cli/cli-help.d.ts +28 -4
- package/dist/cli/cli-help.d.ts.map +1 -1
- package/dist/cli/cli-help.js +10 -2
- package/dist/cli/cli-help.js.map +1 -1
- package/dist/cli/cli-version.d.ts +2 -0
- package/dist/cli/cli-version.d.ts.map +1 -0
- package/dist/cli/cli-version.js +3 -0
- package/dist/cli/cli-version.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +102 -2
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/host-helper-archive.d.ts +17 -2
- package/dist/cli/host-helper-archive.d.ts.map +1 -1
- package/dist/cli/host-helper-archive.js +84 -23
- package/dist/cli/host-helper-archive.js.map +1 -1
- package/dist/cli/host-helper-release-files.d.ts.map +1 -1
- package/dist/cli/host-helper-release-files.js +6 -5
- package/dist/cli/host-helper-release-files.js.map +1 -1
- package/dist/cli/host-helper-requests.d.ts +13 -2
- package/dist/cli/host-helper-requests.d.ts.map +1 -1
- package/dist/cli/host-helper-validation.d.ts +1 -0
- package/dist/cli/host-helper-validation.d.ts.map +1 -1
- package/dist/cli/host-helper-validation.js +18 -0
- package/dist/cli/host-helper-validation.js.map +1 -1
- package/dist/cli/host-request-builders.d.ts.map +1 -1
- package/dist/cli/host-request-builders.js +2 -3
- package/dist/cli/host-request-builders.js.map +1 -1
- package/dist/cli/project-config.d.ts +2 -0
- package/dist/cli/project-config.d.ts.map +1 -1
- package/dist/cli/project-config.js +36 -2
- package/dist/cli/project-config.js.map +1 -1
- package/dist/cli/schedule-inspection-envelope.d.ts +4 -0
- package/dist/cli/schedule-inspection-envelope.d.ts.map +1 -0
- package/dist/cli/schedule-inspection-envelope.js +34 -0
- package/dist/cli/schedule-inspection-envelope.js.map +1 -0
- package/dist/cli/sporades-host-helper.js +439 -30
- package/dist/cli/sporades-host-helper.js.map +1 -1
- package/dist/cli/sporades.js +1218 -97
- package/dist/cli/sporades.js.map +1 -1
- package/dist/client-capabilities.d.ts +61 -0
- package/dist/client-capabilities.d.ts.map +1 -0
- package/dist/client-capabilities.js +67 -0
- package/dist/client-capabilities.js.map +1 -0
- package/dist/client-toolchain.d.ts +40 -0
- package/dist/client-toolchain.d.ts.map +1 -0
- package/dist/client-toolchain.js +407 -0
- package/dist/client-toolchain.js.map +1 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -0
- package/dist/client.js.map +1 -1
- package/dist/public-tree-contract.d.ts +26 -0
- package/dist/public-tree-contract.d.ts.map +1 -0
- package/dist/public-tree-contract.js +75 -0
- package/dist/public-tree-contract.js.map +1 -0
- package/dist/public-tree.d.ts +84 -0
- package/dist/public-tree.d.ts.map +1 -0
- package/dist/public-tree.js +768 -0
- package/dist/public-tree.js.map +1 -0
- package/dist/server-runtime-source.d.ts +106 -4
- package/dist/server-runtime-source.d.ts.map +1 -1
- package/dist/server-runtime-source.js +2730 -175
- package/dist/server-runtime-source.js.map +1 -1
- package/dist/server.d.ts +46 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +25 -0
- package/dist/server.js.map +1 -1
- package/dist/templates/client-runtime-template.d.ts +3 -1
- package/dist/templates/client-runtime-template.d.ts.map +1 -1
- package/dist/templates/client-runtime-template.js +706 -36
- package/dist/templates/client-runtime-template.js.map +1 -1
- package/dist/templates/scaffold-template.d.ts +93 -0
- package/dist/templates/scaffold-template.d.ts.map +1 -1
- package/dist/templates/scaffold-template.js +1522 -18
- package/dist/templates/scaffold-template.js.map +1 -1
- package/dist/templates/server-bundle-template.d.ts.map +1 -1
- package/dist/templates/server-bundle-template.js +105 -27
- package/dist/templates/server-bundle-template.js.map +1 -1
- package/package.json +21 -4
- package/src/types/client.d.ts +200 -0
- package/src/types/server.d.ts +190 -0
package/CHANGES.md
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
-
## Unreleased - 2026-07-
|
|
3
|
+
## Unreleased - 2026-07-28
|
|
4
4
|
|
|
5
|
-
Changes since v0.
|
|
5
|
+
Changes since v0.4.0.
|
|
6
6
|
|
|
7
7
|
### ๐ Features
|
|
8
8
|
|
|
9
|
-
- Add
|
|
10
|
-
- Add doctor local runtime checks (36d1d66).
|
|
11
|
-
- Add doctor capsule authoring checks (3561a09).
|
|
12
|
-
- Add doctor project security checks (a474750).
|
|
13
|
-
- Add doctor command envelope (3786aa2).
|
|
9
|
+
- Add GitHub Pages documentation site (5cf865d).
|
|
14
10
|
|
|
15
11
|
### ๐ Bug Fixes
|
|
16
12
|
|
|
17
|
-
- Fix
|
|
13
|
+
- Fix stale Docker container detection (adafcab).
|
|
14
|
+
- Fix privileged runtime dependencies in generated bundles (bd72d9b).
|
|
15
|
+
- Refine documentation (d99e8a4).
|
|
16
|
+
- Remove superceded/ fixed security issue tracker doc (3befc2d).
|
|
18
17
|
|
|
19
18
|
### ๐ Documentation
|
|
20
19
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
### ๐งช Tests
|
|
30
|
-
|
|
31
|
-
- Audit transaction boundary coverage (f6268ef).
|
|
20
|
+
- Expose privileged file ownership safely (6120904).
|
|
21
|
+
- Link llms manifest from docs home (5d67abe).
|
|
22
|
+
- Separate getting-started tutorial from reference (e75b9ba).
|
|
23
|
+
- Reorder user guide reference topics (8be6380).
|
|
24
|
+
- Restructure published user guide (fc8910e).
|
|
25
|
+
- Document local Postgres usage (e269780).
|
|
26
|
+
- Link package docs to GitHub Pages (d94d998).
|
|
32
27
|
|
|
33
28
|
### ๐ฆ Packaging
|
|
34
29
|
|
|
35
|
-
-
|
|
36
|
-
- Clean up npm package tarballs (6303628).
|
|
30
|
+
- Publish LLM-friendly documentation sources (53d3fdd).
|
package/Dockerfile.base
CHANGED
|
@@ -8,9 +8,9 @@ LABEL com.sporades.base-image.name="sporades-base"
|
|
|
8
8
|
LABEL com.sporades.base-image.version="0.1.0-node22-alpine"
|
|
9
9
|
LABEL com.sporades.base-image.node="22"
|
|
10
10
|
|
|
11
|
-
RUN apk add --no-cache openssh-server \
|
|
11
|
+
RUN apk add --no-cache openssh-server fail2ban \
|
|
12
12
|
&& addgroup -g 10001 -S sporades \
|
|
13
|
-
&& adduser -u 10001 -S sporades -G sporades \
|
|
13
|
+
&& adduser -u 10001 -S sporades -G sporades -s /bin/sh \
|
|
14
14
|
&& mkdir -p /app /app/data /run/sshd \
|
|
15
15
|
&& ssh-keygen -A \
|
|
16
16
|
&& printf '%s\n' \
|
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
Designed as Agents-first, Sporades is a CLI-first platform for building, running, inspecting, and hosting
|
|
16
|
-
small full-stack web Capsules
|
|
16
|
+
small full-stack web Capsules supporting vanilla Typescript, React, Preact, Inferno, Lit, SolidJS, Vue, and Svelte
|
|
17
|
+
for front-end clients.
|
|
17
18
|
|
|
18
19
|
It is intended for developers and coding Agents who want deterministic commands
|
|
19
20
|
instead of dashboards: scaffold a Capsule, run it locally, test the bundled
|
|
@@ -54,17 +55,17 @@ sporades host push --restart
|
|
|
54
55
|
|
|
55
56
|
## Documentation
|
|
56
57
|
|
|
57
|
-
- [User guide](
|
|
58
|
+
- [User guide](https://mgscox.github.io/sporades/user-guide): build, run, inspect, deploy, auth,
|
|
58
59
|
preferences, files, endpoints, messages, and common workflows.
|
|
59
|
-
- [Architecture](
|
|
60
|
+
- [Architecture](https://mgscox.github.io/sporades/architecture): platform model, runtime modes, Host
|
|
60
61
|
server design, and ownership boundaries.
|
|
61
|
-
- [Runtime layout](
|
|
62
|
+
- [Runtime layout](https://mgscox.github.io/sporades/runtime-layout): generated files, mounts, Host
|
|
62
63
|
directories, and persistent data locations.
|
|
63
|
-
- [Host server installation](
|
|
64
|
+
- [Host server installation](https://mgscox.github.io/sporades/server-installation): prepare a Linux Host
|
|
64
65
|
server for Hosted Capsules.
|
|
65
|
-
- [Product requirements](
|
|
66
|
+
- [Product requirements](https://mgscox.github.io/sporades/PRD): implemented scope, deferred scope, and
|
|
66
67
|
core product principles.
|
|
67
|
-
- [Roadmap](
|
|
68
|
+
- [Roadmap](https://mgscox.github.io/sporades/ROADMAP): candidate features and promotion status.
|
|
68
69
|
|
|
69
70
|
## A Tiny Capsule - the entire server code for a real-time 'to-do' app
|
|
70
71
|
|
|
@@ -112,17 +113,32 @@ export default capsule({
|
|
|
112
113
|
});
|
|
113
114
|
```
|
|
114
115
|
|
|
115
|
-
Client scaffolds wire `sporades/client` into React or Preact hooks
|
|
116
|
-
|
|
116
|
+
Client scaffolds wire `sporades/client` into React or Preact hooks, Vue
|
|
117
|
+
composables, Svelte stores, SolidJS signals, Lit reactive controllers, native Inferno lifecycle adapters, or framework-neutral subscriptions
|
|
118
|
+
so the UI can consume queries, mutations, and auth without hand-rolled fetch plumbing.
|
|
117
119
|
|
|
118
120
|
## What You Get
|
|
119
121
|
|
|
120
122
|
Sporades currently includes:
|
|
121
123
|
|
|
122
|
-
- React and
|
|
123
|
-
`photo-library` templates.
|
|
124
|
+
- React, Preact, and Vue project scaffolds with `blank`, `todo`, `guestbook`,
|
|
125
|
+
`photo-library`, and `campfire` templates. Vue uses native Single-File
|
|
126
|
+
Components; Campfire is the complete consented User journey tracker exemplar.
|
|
127
|
+
- Svelte/Vite project scaffolds across the complete template set, with native
|
|
128
|
+
components and lazily observed stores. Campfire preserves identity-safe
|
|
129
|
+
consent, caller-renewed Journey TTL state, and deterministic cleanup.
|
|
130
|
+
- SolidJS/Vite scaffolds across the complete template set, with native JSX,
|
|
131
|
+
signals, identity-safe Campfire consent, and reactive-root cleanup.
|
|
132
|
+
- Lit/Vite Web Component scaffolds across the complete template set, with
|
|
133
|
+
component styles and host-lifecycle reactive controllers. Campfire preserves
|
|
134
|
+
serialized identity-safe consent, explicit Journey TTLs, and cleanup.
|
|
135
|
+
- Inferno scaffolds across the complete template set, using native class-component
|
|
136
|
+
lifecycle and classic Inferno JSX without React compatibility packages. esbuild
|
|
137
|
+
remains the default; Vite is available explicitly with full-page Dev refresh.
|
|
124
138
|
- Local Dev sessions with rebuilds, WebSocket reconnects, SQLite persistence,
|
|
125
|
-
logs, database inspection, auth helpers, and file storage.
|
|
139
|
+
logs, database inspection, auth helpers, and file storage. Every admitted
|
|
140
|
+
esbuild/Vite pair uses the same acknowledged Sporades full-page refresh
|
|
141
|
+
protocol after a successful client rebuild; no pair promises HMR.
|
|
126
142
|
- Local Docker Container sessions for production-like staging tests.
|
|
127
143
|
- Hosted Capsules on SSH-reachable Host servers, routed through Caddy and run in
|
|
128
144
|
hardened Docker containers.
|
|
@@ -153,7 +169,9 @@ npm install --global sporades
|
|
|
153
169
|
sporades --help
|
|
154
170
|
```
|
|
155
171
|
|
|
156
|
-
Sporades depends on `esbuild` for
|
|
172
|
+
Sporades depends on `esbuild` for the Server Bundle and default client builds;
|
|
173
|
+
React and Preact clients can explicitly use the runtime-owned Vite adapter;
|
|
174
|
+
Vue, Svelte, SolidJS, and Lit select Vite. On newer npm versions, you
|
|
157
175
|
may see an `allow-scripts` warning during global install because `esbuild` uses
|
|
158
176
|
a postinstall script to select the native binary for your platform.
|
|
159
177
|
|