@abide/abide 0.108.0 → 0.110.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/CHANGELOG.md +12 -0
- package/docs/REGISTRY.md +6 -5
- package/docs/RULEBOOK.md +21 -13
- package/docs/abide.md +165 -159
- package/package.json +1 -1
- package/scaffold/AGENTS.md +12 -6
- package/scaffold/src/{tests/getGreeting.test.ts → getGreeting.test.ts} +1 -1
- package/scaffold/src/{tests/index.test.ts → index.test.ts} +1 -1
- package/src/compiler/appLayout.ts +5 -15
- package/src/compiler/compileApp.ts +0 -2
- package/src/compiler/handlersUnder.ts +1 -1
- package/src/compiler/scaffold.ts +5 -5
- package/src/server/abideModules.ts +0 -5
- package/src/server/appTree.ts +38 -34
- package/src/server/claudeCode.ts +17 -5
- package/src/server/clientBundle.ts +2 -2
- package/src/server/fenceServer.ts +25 -31
- package/src/server/placement.ts +27 -51
- package/src/server/serveDev.ts +0 -1
- package/src/shared/RESERVED_DIRECTORIES.ts +7 -20
package/src/server/serveDev.ts
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
// THE FENCES: the
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// the
|
|
5
|
-
|
|
6
|
-
/** A module under one only the server loads. */
|
|
7
|
-
export const SERVER_DIRECTORY = 'server'
|
|
1
|
+
// THE FENCES: the two directory names that are never an address (23.15). `public` is answered as
|
|
2
|
+
// authored (36.11), and `lib` holds what is neither an address nor that. Every other directory under
|
|
3
|
+
// the root is a segment of the routes of the files directly in it (23.14), and holds nothing else
|
|
4
|
+
// (23.22). What only the server loads is a file's NAME rather than a directory's (16.29), and so is a
|
|
5
|
+
// test — `placement.ts` reads both.
|
|
8
6
|
|
|
9
7
|
/** A file under one is answered as authored, at the path above it. */
|
|
10
8
|
export const PUBLIC_DIRECTORY = 'public'
|
|
11
9
|
|
|
12
|
-
/** The app's own code that is no address: components
|
|
10
|
+
/** The app's own code that is no address: components and modules, both sides. */
|
|
13
11
|
export const LIB_DIRECTORY = 'lib'
|
|
14
12
|
|
|
15
|
-
/**
|
|
16
|
-
export const TESTS_DIRECTORY = 'tests'
|
|
17
|
-
|
|
18
|
-
/** All four, as the walk of the app tests a directory against them. */
|
|
13
|
+
/** Both, as the walk of the app tests a directory against them. */
|
|
19
14
|
export const RESERVED_DIRECTORIES: ReadonlySet<string> = new Set([
|
|
20
|
-
SERVER_DIRECTORY,
|
|
21
15
|
PUBLIC_DIRECTORY,
|
|
22
16
|
LIB_DIRECTORY,
|
|
23
|
-
TESTS_DIRECTORY,
|
|
24
|
-
])
|
|
25
|
-
|
|
26
|
-
/** 23.16 — the fences a `server` directory nests in: it fences a graph rather than an address. */
|
|
27
|
-
export const HOLDS_SERVER: ReadonlySet<string> = new Set([
|
|
28
|
-
LIB_DIRECTORY,
|
|
29
|
-
TESTS_DIRECTORY,
|
|
30
17
|
])
|