Lines 1-34javascript
1var __defProp = Object.defineProperty;
2var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4import { makeJayQuery, makeJayStream, makeJayStackComponent, phaseOutput, RenderPipeline } from "@jay-framework/fullstack-component";
5import { DEV_SERVER_SERVICE } from "@jay-framework/dev-server";
6import fs, { readFile, readdir } from "fs/promises";
7import path, { extname } from "path";
8import { query } from "@anthropic-ai/claude-agent-sdk";
10import crypto from "crypto";
11import yaml, { load } from "js-yaml";
12import { validateAddMenuCatalogFile, lintAddMenuCatalog } from "@jay-framework/plugin-validator";
13import { getLogger } from "@jay-framework/logger";
14import { fileURLToPath } from "url";
15import { spawn } from "child_process";
16import { scanRoutes } from "@jay-framework/stack-route-scanner";
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L14 17import { parseContract, ContractTagType } from "@jay-framework/compiler-jay-html";
18import { checkValidationErrors } from "@jay-framework/compiler-shared";
19import { setActionCallerOptions } from "@jay-framework/stack-client-runtime";
20const getAiditorBootstrap = makeJayQuery(
21 "aiditor.getAiditorBootstrap"
22).withHandler(async (input) => {
24 projectDir: process.cwd(),
25 httpBaseUrl: input.origin.trim()
28const getProjectInfoAction = makeJayQuery("aditor.getProjectInfo").withServices(DEV_SERVER_SERVICE).withHandler(async (input, devServer) => {
29 const routes = await devServer.refreshRoutes();
30 return { routes, httpBaseUrl: input.jayDevUrl };
32const getPageParamsAction = makeJayStream("aditor.getPageParams").withServices(DEV_SERVER_SERVICE).withHandler(async function* (input, devServer) {
33 for await (const batch of devServer.loadRouteParams(input.route)) {