@frockbot/applet-sdk 0.3.51 → 0.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/applet-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Authoring SDK for FrockBot Applets: schema-first Durable Object server, TanStack DB client, component kit, linter, and the `applet` CLI.",
|
package/src/lint/rules.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Each one exists because of a way an Applet can look right and be wrong: a
|
|
5
5
|
* hard-coded colour that ignores the user's theme, a network call the loader
|
|
6
6
|
* would block anyway, an import that will not exist at build time, and state
|
|
7
|
-
* or tools declared in a shape the server cannot see.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* or tools declared in a shape the server cannot see. This set grows from
|
|
8
|
+
* observed failures — add a rule and a test here, never a paragraph in a
|
|
9
|
+
* prompt.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/** A syntax node, walked structurally so no parser type leaks into the rules. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The only part of the Cloudflare programming model the SDK names.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* The ceiling is deliberate: an Applet is a Durable Object with alarms and
|
|
5
|
+
* hibernating sockets, and no adapter hides that. What this file does is keep
|
|
6
|
+
* the surface to the handful of members `server/` actually uses, so an Applet
|
|
7
|
+
* author never types a binding name and the SDK type-checks without
|
|
8
|
+
* `@cloudflare/workers-types` in scope. It lives outside `src/` so a
|
|
9
9
|
* consumer that already has the real Workers types cannot see two declarations
|
|
10
10
|
* of the same module.
|
|
11
11
|
*/
|