proteum 2.1.9 → 2.2.1
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/.codex/environments/environment.toml +11 -0
- package/AGENTS.md +27 -11
- package/README.md +30 -11
- package/agents/project/AGENTS.md +172 -123
- package/agents/project/CODING_STYLE.md +1 -1
- package/agents/project/app-root/AGENTS.md +16 -0
- package/agents/project/client/AGENTS.md +5 -5
- package/agents/project/client/pages/AGENTS.md +13 -13
- package/agents/project/diagnostics.md +19 -10
- package/agents/project/optimizations.md +5 -6
- package/agents/project/root/AGENTS.md +297 -0
- package/agents/project/server/routes/AGENTS.md +2 -2
- package/agents/project/server/services/AGENTS.md +4 -2
- package/agents/project/tests/AGENTS.md +9 -2
- package/cli/app/index.ts +31 -7
- package/cli/commands/configure.ts +226 -0
- package/cli/commands/dev.ts +0 -2
- package/cli/commands/diagnose.ts +33 -1
- package/cli/commands/explain.ts +1 -1
- package/cli/commands/migrate.ts +51 -0
- package/cli/commands/orient.ts +169 -0
- package/cli/commands/perf.ts +8 -1
- package/cli/commands/verify.ts +1003 -49
- package/cli/compiler/artifacts/manifest.ts +4 -4
- package/cli/compiler/artifacts/routing.ts +2 -2
- package/cli/compiler/artifacts/services.ts +12 -3
- package/cli/compiler/client/index.ts +65 -19
- package/cli/compiler/common/files/style.ts +47 -2
- package/cli/compiler/common/generatedRouteModules.ts +31 -38
- package/cli/compiler/common/index.ts +10 -0
- package/cli/compiler/common/proteumManifest.ts +1 -0
- package/cli/compiler/server/index.ts +34 -9
- package/cli/context.ts +6 -1
- package/cli/index.ts +7 -8
- package/cli/migrate/pageContract.ts +516 -0
- package/cli/paths.ts +47 -6
- package/cli/presentation/commands.ts +100 -10
- package/cli/presentation/devSession.ts +4 -6
- package/cli/presentation/help.ts +2 -2
- package/cli/presentation/ink.ts +10 -5
- package/cli/presentation/welcome.ts +2 -4
- package/cli/runtime/commands.ts +94 -1
- package/cli/scaffold/index.ts +2 -2
- package/cli/scaffold/templates.ts +4 -2
- package/cli/utils/agents.ts +273 -58
- package/client/dev/profiler/index.tsx +3 -2
- package/client/router.ts +10 -2
- package/client/services/router/index.tsx +6 -22
- package/common/dev/connect.ts +20 -4
- package/common/dev/console.ts +7 -0
- package/common/dev/contractsDoctor.ts +354 -0
- package/common/dev/diagnostics.ts +10 -7
- package/common/dev/inspection.ts +830 -38
- package/common/dev/performance.ts +19 -5
- package/common/dev/profiler.ts +1 -0
- package/common/dev/proteumManifest.ts +5 -4
- package/common/dev/requestTrace.ts +78 -1
- package/common/env/proteumEnv.ts +10 -3
- package/common/router/contracts.ts +8 -11
- package/common/router/index.ts +2 -2
- package/common/router/pageData.ts +72 -0
- package/common/router/register.ts +10 -46
- package/common/router/response/page.ts +28 -16
- package/docs/assets/unique-domains-chip.png +0 -0
- package/docs/dev-sessions.md +8 -4
- package/docs/diagnostics.md +77 -11
- package/docs/migrate-from-2.1.3.md +388 -0
- package/docs/request-tracing.md +42 -9
- package/package.json +6 -1
- package/scripts/update-codex-agents.ts +2 -2
- package/server/app/container/console/index.ts +11 -1
- package/server/app/container/trace/index.ts +370 -72
- package/server/app/devDiagnostics.ts +1 -1
- package/server/app/index.ts +5 -1
- package/server/services/auth/index.ts +9 -0
- package/server/services/prisma/index.ts +15 -12
- package/server/services/router/http/index.ts +1 -1
- package/server/services/router/index.ts +105 -23
- package/server/services/router/request/api.ts +7 -1
- package/server/services/router/request/index.ts +2 -1
- package/server/services/router/response/index.ts +8 -28
- package/types/global/vendors.d.ts +12 -0
- package/types/vendors.d.ts +12 -0
- package/common/router/pageSetup.ts +0 -51
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
|
|
8
8
|
// Core
|
|
9
|
-
import {
|
|
9
|
+
import { configureProjectAgentSymlinks } from '../cli/utils/agents';
|
|
10
10
|
|
|
11
11
|
/*----------------------------------
|
|
12
12
|
- TYPES
|
|
@@ -31,5 +31,5 @@ for (const projectRoot of projectRoots) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
console.log(`[update-codex-agents] Syncing project Codex assets in ${projectRoot}`);
|
|
34
|
-
|
|
34
|
+
configureProjectAgentSymlinks({ appRoot: projectRoot, coreRoot: proteumRoot });
|
|
35
35
|
}
|
|
@@ -237,6 +237,12 @@ export default class Console {
|
|
|
237
237
|
...(typeof channel.method === 'string' ? { method: channel.method } : {}),
|
|
238
238
|
...(typeof channel.path === 'string' ? { path: channel.path } : {}),
|
|
239
239
|
...(typeof channel.user === 'string' ? { user: channel.user } : {}),
|
|
240
|
+
...(typeof channel.connectedNamespace === 'string' ? { connectedNamespace: channel.connectedNamespace } : {}),
|
|
241
|
+
...(typeof channel.ownerLabel === 'string' ? { ownerLabel: channel.ownerLabel } : {}),
|
|
242
|
+
...(typeof channel.ownerFilepath === 'string' ? { ownerFilepath: channel.ownerFilepath } : {}),
|
|
243
|
+
...(typeof channel.serviceLabel === 'string' ? { serviceLabel: channel.serviceLabel } : {}),
|
|
244
|
+
...(typeof channel.cacheKey === 'string' ? { cacheKey: channel.cacheKey } : {}),
|
|
245
|
+
...(typeof channel.cachePhase === 'string' ? { cachePhase: channel.cachePhase } : {}),
|
|
240
246
|
...(typeof channel.traceCallId === 'string' ? { traceCallId: channel.traceCallId } : {}),
|
|
241
247
|
...(typeof channel.traceCallOrigin === 'string' ? { traceCallOrigin: channel.traceCallOrigin } : {}),
|
|
242
248
|
...(typeof channel.traceCallLabel === 'string' ? { traceCallLabel: channel.traceCallLabel } : {}),
|
|
@@ -288,7 +294,11 @@ export default class Console {
|
|
|
288
294
|
public async createBugReport(error: TCatchedError, request?: ServerRequest) {
|
|
289
295
|
const application = this.container.application;
|
|
290
296
|
if (application === undefined)
|
|
291
|
-
return console.error(
|
|
297
|
+
return console.error(
|
|
298
|
+
LogPrefix,
|
|
299
|
+
"Can't send bug report because the application is not instanciated",
|
|
300
|
+
error,
|
|
301
|
+
);
|
|
292
302
|
|
|
293
303
|
// Get context
|
|
294
304
|
const now = new Date();
|