create-caspian-app 1.5.8 → 1.6.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/dist/.github/copilot-instructions.md +261 -260
- package/dist/AGENTS.md +445 -434
- package/dist/index.js +2 -2
- package/dist/postcss.config.js +11 -1
- package/dist/pyproject.toml +47 -47
- package/dist/settings/browser_log.py +536 -505
- package/dist/settings/bs-config.json +6 -6
- package/dist/settings/bs-config.ts +32 -0
- package/dist/settings/check.py +418 -418
- package/dist/settings/check_templates.py +497 -497
- package/dist/settings/dev-hold.ts +223 -0
- package/dist/settings/fix.py +113 -113
- package/dist/settings/format.py +719 -719
- package/dist/settings/run-postcss.ts +13 -9
- package/dist/settings/utils.ts +28 -0
- package/dist/src/app/globals.css +9 -0
- package/dist/src/app/globals.plain.css +502 -0
- package/dist/tests/README.md +250 -250
- package/dist/tests/test_health_route.py +85 -42
- package/package.json +1 -1
- package/dist/public/css/index.css +0 -1
- package/dist/public/css/styles.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"local": "http://localhost:5090",
|
|
3
|
-
"external": "http://192.168.1.
|
|
4
|
-
"ui": "http://localhost:3001",
|
|
5
|
-
"uiExternal": "http://192.168.1.
|
|
6
|
-
"backend": "http://localhost:5200"
|
|
1
|
+
{
|
|
2
|
+
"local": "http://localhost:5090",
|
|
3
|
+
"external": "http://192.168.1.16:5090",
|
|
4
|
+
"ui": "http://localhost:3001",
|
|
5
|
+
"uiExternal": "http://192.168.1.16:3001",
|
|
6
|
+
"backend": "http://localhost:5200"
|
|
7
7
|
}
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
endBrowserLogSession,
|
|
28
28
|
startBrowserLogSession,
|
|
29
29
|
} from "./dev-log-bridge.js";
|
|
30
|
+
import { evaluateDevHold, isDevHoldActive } from "./dev-hold.js";
|
|
30
31
|
|
|
31
32
|
const { __dirname } = getFileMeta();
|
|
32
33
|
const bs: BrowserSyncInstance = browserSync.create();
|
|
@@ -253,6 +254,37 @@ const changeCoordinator = new SettledBatchWorker<string>(
|
|
|
253
254
|
},
|
|
254
255
|
1500,
|
|
255
256
|
"bs-change-coordinator",
|
|
257
|
+
// The 1500 ms quiet period batches a human's burst-save, but an agent's gap
|
|
258
|
+
// between two edits is a tool round-trip and always exceeds it, so every edit
|
|
259
|
+
// would otherwise cost a full restart plus a reload of every open tab. While
|
|
260
|
+
// an agent holds the dev stack, keep queueing and drain the whole run at once.
|
|
261
|
+
() => isDevHoldActive(),
|
|
262
|
+
(deferring, pending) => {
|
|
263
|
+
if (deferring) {
|
|
264
|
+
const status = evaluateDevHold();
|
|
265
|
+
const owner = status.hold ? status.hold.owner : "agent";
|
|
266
|
+
console.log(
|
|
267
|
+
chalk.yellow(
|
|
268
|
+
`-> Dev hold active (${owner} editing); holding ${pending.size} change(s). ` +
|
|
269
|
+
"Run `npm run dev:resume` to reload now.",
|
|
270
|
+
),
|
|
271
|
+
);
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const status = evaluateDevHold();
|
|
276
|
+
if (status.reason === "stale" || status.reason === "expired") {
|
|
277
|
+
console.log(
|
|
278
|
+
chalk.yellow(
|
|
279
|
+
`-> Dev hold ${status.reason === "stale" ? "went stale" : "hit its time cap"}; ` +
|
|
280
|
+
"resuming normal reloads.",
|
|
281
|
+
),
|
|
282
|
+
);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
console.log(chalk.cyan("-> Dev hold released; applying held changes..."));
|
|
287
|
+
},
|
|
256
288
|
);
|
|
257
289
|
|
|
258
290
|
function isIgnoredPublicPath(absPath: string): boolean {
|