@intentic/constants
v1.317.0
Published
Shared constants for the intentic packages, ports, paths, and image references the daemon, CLIs and desktop app all agree on
Readme
constants
The values several packages must agree on (ports, workspace paths, origins, install-script URLs, the sign-in client id, the hosted price ladder), defined once so no copy drifts.
flowchart LR
c(["constants"])
c -->|"index: browser-safe values"| web["Web app · public site"]
c -->|"index"| daemon["Daemon · platform api · CLIs"]
c -->|"./node: repoRoot"| scripts["Scripts, configs,<br/>dev servers"]
c -->|"plain .mjs tables"| gates["_tools/checks · verify scripts<br/>daemon's own checks"]- The index has no Node imports, so the web app and the public site bundle the same values the daemon reads.
It also carries the provider logos, the arrival profiles (
profile.ts) and the hosted machine ladder (hosted-tiers.ts), whose prices the site, the Billing page and the platform config all state. ./nodeholdsrepoRootandpackageRoot, which find the monorepo by walking up topnpm-workspace.yamlinstead of counting../... Thepathscheck refuses counted roots.- The
.mjsmodules (control-bytes,contract-shrink,assertion-measure,mirror-roots,test-suites,vocabulary,ci-infra-steps,memory-room,allow,heavy-rules) are plain JavaScript with.d.mtstypes, so the checks and the verify scripts import them by path before any install or build, and the daemon applies the same rule from the same file. heavy-rules.cjsis the one heavy-command table (which programs queue, their pools, max-holds and deadlines, and the owner's overrides merged on top);heavy-hook.cjs(anode --requirepreload) andheavy-exec.cjs(behind the sandbox's wrappers for native programs) judge a program by what it is as it starts. CommonJS, so the hook loads on any Node an agent's project pins.memory-roomis the one formula for whether the sandbox has room (limit, used, free, stall, and what each workload class costs). The daemon's resource budget judges by it, and it is also thememory-roomcommandqueue-runasks: it asks the daemon's room socket, and applies the formula itself where no daemon answers../allowreads the two exception forms every check and guard suite honours: the site pragma// allow(<check>): <reason>and the commit trailerAllow: <check> — <reason>.WORKSPACE_ROOTandHISTORY_ROOTare defaults only: a running daemon reads its real roots from config.
Key files
- src/index.ts — ports, workspace paths, origins, install scripts and the Google client id.
- src/node.mjs —
repoRootandpackageRoot, the found-not-counted roots. - src/hosted-tiers.ts — every hosted machine rung, what it costs to run and what it sells for.
- src/profile.ts — the named arrival profiles the site, the app and the platform share.
- src/vocabulary.mjs — the words this repository retired and what each became.
Commands
pnpm --filter @intentic/constants test