create-foldkit-app 0.4.2 → 0.4.3
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/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const example = Options.choice('example', [
|
|
|
33
33
|
' query-sync - URL-driven filtering, sorting, and search with query parameters\n' +
|
|
34
34
|
' shopping-cart - Complex state management with nested models and routing\n' +
|
|
35
35
|
' websocket-chat - Managed resources with WebSocket integration\n' +
|
|
36
|
-
' auth - Authentication with
|
|
36
|
+
' auth - Authentication with Submodels, OutMessage, and protected routes'));
|
|
37
37
|
const packageManager = Options.choice('package-manager', [
|
|
38
38
|
'pnpm',
|
|
39
39
|
'npm',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-foldkit-app",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Create Foldkit applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"templates"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@effect/cli": "^0.73.
|
|
16
|
-
"@effect/platform": "^0.94.
|
|
17
|
-
"@effect/platform-node": "^0.104.
|
|
15
|
+
"@effect/cli": "^0.73.2",
|
|
16
|
+
"@effect/platform": "^0.94.5",
|
|
17
|
+
"@effect/platform-node": "^0.104.1",
|
|
18
18
|
"@types/prompts": "^2.4.9",
|
|
19
19
|
"chalk": "^5.6.2",
|
|
20
|
-
"effect": "^3.19.
|
|
20
|
+
"effect": "^3.19.19",
|
|
21
21
|
"prompts": "^2.4.2",
|
|
22
22
|
"rimraf": "^6.1.2",
|
|
23
23
|
"typescript": "^5.9.3"
|
package/templates/base/AGENTS.md
CHANGED
|
@@ -71,7 +71,11 @@ const fetchWeather = (
|
|
|
71
71
|
Effect.gen(function* () {
|
|
72
72
|
// ...
|
|
73
73
|
return SucceededWeatherFetch({ data })
|
|
74
|
-
}).pipe(
|
|
74
|
+
}).pipe(
|
|
75
|
+
Effect.catchAll(error =>
|
|
76
|
+
Effect.succeed(FailedWeatherFetch({ error: String(error) })),
|
|
77
|
+
),
|
|
78
|
+
)
|
|
75
79
|
```
|
|
76
80
|
|
|
77
81
|
Commands return specific schema types (e.g. `Command<typeof SucceededMsg | typeof FailedMsg>`) rather than the full Message type.
|
|
@@ -20,7 +20,10 @@ export default [
|
|
|
20
20
|
'no-redeclare': 'off',
|
|
21
21
|
'no-undef': 'off',
|
|
22
22
|
'no-unused-vars': 'off',
|
|
23
|
-
'@typescript-eslint/consistent-type-assertions': [
|
|
23
|
+
'@typescript-eslint/consistent-type-assertions': [
|
|
24
|
+
'error',
|
|
25
|
+
{ assertionStyle: 'never' },
|
|
26
|
+
],
|
|
24
27
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
25
28
|
'@typescript-eslint/no-unused-vars': [
|
|
26
29
|
'error',
|