Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 | 126x 126x 126x 126x 126x | export const APP_NAME = "CHAIN-R";
export const APP_EMAILS = {
help: "help@datachainr.com",
sales: "sales@datachainr.com",
press: "press@datachainr.com",
partnerships: "partnerships@datachainr.com",
};
export const ROUTE_PARAMS = {
DASHBOARD: {
id: ":dashboardId",
},
DECISION: {
id: ":decisionId",
},
STATEMENT: {
// A calendar month, `2026-10` — not an encoded resource id.
month: ":month",
},
RULE: {
id: ":ruleId",
},
MODEL: {
id: ":modelId",
},
EXPERIMENT: {
id: ":experimentId",
},
DATASET: {
id: ":datasetId",
},
SKILL: {
id: ":skillId",
run: ":runId",
},
SKILLSET: {
id: ":skillsetId",
},
SWARM: {
id: ":swarmId",
run: ":runId",
},
TOOLKIT: {
id: ":toolkitId",
},
SERVICE: {
id: ":serviceId",
},
AGENT: {
id: ":agentId",
},
PROJECT: {
id: ":projectId",
},
ORGANISATION: {
id: ":organisationId",
},
KNOWLEDGE: {
id: ":knowledgeId",
},
REPOSITORY: {
id: ":repositoryId",
},
SIMULATION: {
id: ":simulationId",
},
WORLD: {
id: ":worldId",
},
SCENARIO: {
id: ":scenarioId",
},
};
export const APP_PREFIXES = {
USER: "/user",
PROJECT: "/project",
ORGANISATION: "/organisation",
DEVELOPER: "/developer",
LEGAL: "/legal",
};
export const APP_ROUTES = {
// fe-core serves its own copies of these at /legal/*, so a signed-in user
// reading the privacy policy is not bounced out to the marketing site.
// They must be built from APP_PREFIXES.LEGAL, not the absolute app domain:
// MyApp mounts each app by stripping its prefix off every configured route,
// and an absolute URL does not strip to a routable path.
LEGAL: {
legal_docs: `${APP_PREFIXES.LEGAL}/`,
privacy_policy: `${APP_PREFIXES.LEGAL}/privacy-policy`,
terms_of_service: `${APP_PREFIXES.LEGAL}/terms-of-service`,
},
USER: {
overview: `${APP_PREFIXES.USER}/`,
dashboards: `${APP_PREFIXES.USER}/dashboards`,
DASHBOARDS: {
id: `${APP_PREFIXES.USER}/dashboards/id/${ROUTE_PARAMS.DASHBOARD.id}`,
},
// Inference is one page of tabs, and this mirrors it: a tab is a
// `?section=` link, a resource nested inside a tab keeps its own `?section=`
// (it is reached from the tab that owns it), and every detail page of
// anything on the page lives under `/inference/…`. Where a resource sat
// outside that prefix, the old path is in LEGACY below and redirects.
inference: `${APP_PREFIXES.USER}/inference`,
INFERENCE: {
models: `${APP_PREFIXES.USER}/inference?section=models`,
MODELS: {
id: `${APP_PREFIXES.USER}/inference/models/id/${ROUTE_PARAMS.MODEL.id}`,
chat: `${APP_PREFIXES.USER}/inference/models/id/${ROUTE_PARAMS.MODEL.id}/chat`,
},
agents: `${APP_PREFIXES.USER}/inference?section=agents`,
AGENTS: {
new: `${APP_PREFIXES.USER}/inference/agents/new`,
new_manual: `${APP_PREFIXES.USER}/inference/agents/new/manual`,
new_generative: `${APP_PREFIXES.USER}/inference/agents/new/generative`,
id: `${APP_PREFIXES.USER}/inference/agents/id/${ROUTE_PARAMS.AGENT.id}`,
chat: `${APP_PREFIXES.USER}/inference/agents/id/${ROUTE_PARAMS.AGENT.id}/chat`,
},
// Skills is the tab; skillsets (bundles of skills for agents) are its
// subsection. The workers a skill graph is built from have no route of
// their own: they are configured on the node that uses them, inside the
// graph builder.
skillsets: `${APP_PREFIXES.USER}/inference?section=skillsets`,
SKILLSETS: {
id: `${APP_PREFIXES.USER}/inference/skillsets/id/${ROUTE_PARAMS.SKILLSET.id}`,
},
skills: `${APP_PREFIXES.USER}/inference?section=skills`,
SKILLS: {
id: `${APP_PREFIXES.USER}/inference/skills/id/${ROUTE_PARAMS.SKILL.id}`,
run: `${APP_PREFIXES.USER}/inference/skills/id/${ROUTE_PARAMS.SKILL.id}/runs/${ROUTE_PARAMS.SKILL.run}`,
new: `${APP_PREFIXES.USER}/inference/skills/new`,
},
// Teams of agents in a shape, sent on a long task: a tab beside
// Skills. A run has a page of its own, outside its swarm's, because
// the inbox links straight to it.
swarms: `${APP_PREFIXES.USER}/inference?section=swarms`,
SWARMS: {
id: `${APP_PREFIXES.USER}/inference/swarms/id/${ROUTE_PARAMS.SWARM.id}`,
edit: `${APP_PREFIXES.USER}/inference/swarms/id/${ROUTE_PARAMS.SWARM.id}/edit`,
new: `${APP_PREFIXES.USER}/inference/swarms/new`,
run: `${APP_PREFIXES.USER}/inference/swarms/runs/${ROUTE_PARAMS.SWARM.run}`,
},
// MCP Servers is the tab; toolkits (bundles of servers) its subsection.
toolkits: `${APP_PREFIXES.USER}/inference?section=toolkits`,
TOOLKITS: {
id: `${APP_PREFIXES.USER}/inference/toolkits/id/${ROUTE_PARAMS.TOOLKIT.id}`,
},
// Built-in tools have no section and no detail page: svc-ai binds them to
// every agent, so there is nothing to list or open. MCP servers are
// edited inline on their section, so they have no detail page either.
mcp: `${APP_PREFIXES.USER}/inference?section=mcp`,
simulations: `${APP_PREFIXES.USER}/inference?section=simulations`,
SIMULATIONS: {
id: `${APP_PREFIXES.USER}/inference/simulations/id/${ROUTE_PARAMS.SIMULATION.id}`,
WORLDS: {
new: `${APP_PREFIXES.USER}/inference/simulations/worlds/new`,
id: `${APP_PREFIXES.USER}/inference/simulations/worlds/id/${ROUTE_PARAMS.WORLD.id}`,
},
SCENARIOS: {
new: `${APP_PREFIXES.USER}/inference/simulations/scenarios/new`,
id: `${APP_PREFIXES.USER}/inference/simulations/scenarios/id/${ROUTE_PARAMS.SCENARIO.id}`,
},
},
},
knowledge: `${APP_PREFIXES.USER}/knowledge`,
KNOWLEDGE: {
new: `${APP_PREFIXES.USER}/knowledge/new`,
id: `${APP_PREFIXES.USER}/knowledge/id/${ROUTE_PARAMS.KNOWLEDGE.id}`,
edit: `${APP_PREFIXES.USER}/knowledge/id/${ROUTE_PARAMS.KNOWLEDGE.id}/edit`,
// Repositories and Sources are the two tabs of the Knowledge page,
// selected by `?section=`. Everything below Sources is the same list
// narrowed by the grid's own type filter, which lives in `?type=` — so
// a per-type link is a filter, not a page. The old `?section=<type>`
// values still resolve and are rewritten to this form (Knowledge.tsx).
sources: `${APP_PREFIXES.USER}/knowledge?section=sources`,
SOURCES: {
file_storage: `${APP_PREFIXES.USER}/knowledge?section=sources&type=file`,
graphs: `${APP_PREFIXES.USER}/knowledge?section=sources&type=graph`,
web: `${APP_PREFIXES.USER}/knowledge?section=sources&type=web`,
databases: `${APP_PREFIXES.USER}/knowledge?section=sources&type=db`,
apis: `${APP_PREFIXES.USER}/knowledge?section=sources&type=api`,
generated: `${APP_PREFIXES.USER}/knowledge?section=sources&origin=generated`,
},
repositories: `${APP_PREFIXES.USER}/knowledge?section=repositories`,
REPOSITORIES: {
id: `${APP_PREFIXES.USER}/knowledge/repositories/id/${ROUTE_PARAMS.REPOSITORY.id}`,
},
},
// Governance is the control plane's own surface: the rules that are
// enforced, and the queue of things they asked a person to look at.
// Rules used to live twice — once under Inference → Models and once under
// Inference → Agents — which made a rule read as a property of the
// resource page you happened to be on rather than a policy over the whole
// account. There is one list now, and a rule's scope says what it covers.
governance: `${APP_PREFIXES.USER}/governance`,
GOVERNANCE: {
// Sections of the Governance page, selected by `?section=`. These keys
// mirror Governance.tsx's GovernanceSection values: Activity and
// Reviews are subsections of the Rules tab.
rules: `${APP_PREFIXES.USER}/governance?section=rules`,
RULES: {
new: `${APP_PREFIXES.USER}/governance/rules/new`,
id: `${APP_PREFIXES.USER}/governance/rules/id/${ROUTE_PARAMS.RULE.id}`,
edit: `${APP_PREFIXES.USER}/governance/rules/id/${ROUTE_PARAMS.RULE.id}/edit`,
},
activity: `${APP_PREFIXES.USER}/governance?section=activity`,
reviews: `${APP_PREFIXES.USER}/governance?section=reviews`,
// What the workspace has spent, its budgets and where they are
// heading (Governance → Spend).
spend: `${APP_PREFIXES.USER}/governance?section=spend`,
// One month's statement: its spend and what governed it.
STATEMENTS: {
month: `${APP_PREFIXES.USER}/governance/spend/statements/${ROUTE_PARAMS.STATEMENT.month}`,
},
// One governed turn's decision record — what "Why did it do this?"
// opens from an answer, a skill run, a review flag or an activity card.
DECISIONS: {
id: `${APP_PREFIXES.USER}/governance/decisions/id/${ROUTE_PARAMS.DECISION.id}`,
},
// Evaluation is how the platform shows that its models and agents are
// fit for purpose — quality, behaviour, regressions — so it lives with
// the rules and the review queue rather than beside the things it
// measures. It moved here from Inference; every old address redirects.
//
// Assurance, Datasets and Reports are readings of one body of runs, so
// they are `?section=` values of this page. The two resources — a
// dataset and the experiments on it — keep a detail page each.
//
// The tab opens on Assurance (`evaluation` and `assurance` show the
// same page), with Datasets and Reports a link away from it.
evaluation: `${APP_PREFIXES.USER}/governance?section=evaluation`,
EVALUATION: {
// Which version of each agent has evidence behind it.
assurance: `${APP_PREFIXES.USER}/governance?section=assurance`,
// Experiments have no list of their own: each belongs to one dataset
// and is reached from it.
datasets: `${APP_PREFIXES.USER}/governance?section=datasets`,
reports: `${APP_PREFIXES.USER}/governance?section=reports`,
EXPERIMENTS: {
id: `${APP_PREFIXES.USER}/governance/experiments/id/${ROUTE_PARAMS.EXPERIMENT.id}`,
},
DATASETS: {
id: `${APP_PREFIXES.USER}/governance/datasets/id/${ROUTE_PARAMS.DATASET.id}`,
},
},
},
// Aliases for the two pages that moved under Governance. Kept because
// links, bookmarks and the review queue's own deep links point at them.
rules: `${APP_PREFIXES.USER}/governance?section=rules`,
reviews: `${APP_PREFIXES.USER}/governance?section=reviews`,
activity: `${APP_PREFIXES.USER}/activity`,
// Paths that were left outside the page that owns them when the layout
// changed. Registered as redirects (routes/apps/User.tsx) rather than
// deleted, because bookmarks and written-down links point at them.
LEGACY: {
// Kept as a literal: the `Tool` resource and its route param are gone,
// but the path is in bookmarks and still has to redirect.
tool_by_id: `${APP_PREFIXES.USER}/tools/id/:toolId`,
simulations: `${APP_PREFIXES.USER}/inference/simulations`,
// The evaluation section's own vocabulary changed twice. These are the
// paths it had before "experiment" became "evaluation" and "test suite"
// became "dataset" — first outside `/inference`, then under an
// `/inference/evaluation/` group. Each is spelled with the *new* param
// name, because `legacyRedirect` carries params across by name: an old
// path declaring `:testSuiteId` would fill nothing in a template asking
// for `:datasetId`, and the redirect would land on a literal `:datasetId`.
experiments: `${APP_PREFIXES.USER}/evaluation/experiments`,
experiment_by_id: `${APP_PREFIXES.USER}/evaluation/experiments/id/${ROUTE_PARAMS.EXPERIMENT.id}`,
test_suites: `${APP_PREFIXES.USER}/evaluation/test-suites`,
test_suite_by_id: `${APP_PREFIXES.USER}/evaluation/test-suites/id/${ROUTE_PARAMS.DATASET.id}`,
inference_experiment_by_id: `${APP_PREFIXES.USER}/inference/evaluation/experiments/id/${ROUTE_PARAMS.EXPERIMENT.id}`,
// "Evaluation" was the product's word for an experiment from migration
// 61 until experiments became children of their dataset.
inference_evaluation_by_id: `${APP_PREFIXES.USER}/inference/evaluations/id/${ROUTE_PARAMS.EXPERIMENT.id}`,
inference_test_suite_by_id: `${APP_PREFIXES.USER}/inference/evaluation/test-suites/id/${ROUTE_PARAMS.DATASET.id}`,
// Where the two lived while Evaluation was a tab of Inference.
inference_experiment_page: `${APP_PREFIXES.USER}/inference/experiments/id/${ROUTE_PARAMS.EXPERIMENT.id}`,
inference_dataset_page: `${APP_PREFIXES.USER}/inference/datasets/id/${ROUTE_PARAMS.DATASET.id}`,
},
projects: `${APP_PREFIXES.USER}/projects`,
PROJECTS: {
new: `${APP_PREFIXES.USER}/projects/new`,
id: `${APP_PREFIXES.USER}/projects/id/${ROUTE_PARAMS.PROJECT.id}`,
},
organisations: `${APP_PREFIXES.USER}/organisations`,
// An invite link: the token rides in the fragment (#…), which browsers
// never send to a server, so it stays out of every access log.
invite: `${APP_PREFIXES.USER}/invite`,
ORGANISATIONS: {
new: `${APP_PREFIXES.USER}/organisations/new`,
id: `${APP_PREFIXES.USER}/organisations/id/${ROUTE_PARAMS.ORGANISATION.id}`,
},
developer: `${APP_PREFIXES.USER}/developer`,
stats: `${APP_PREFIXES.USER}/stats`,
// An organisation's or project's own pages, mounted under its prefix
// (src/routes/workspace.ts). Personal has neither.
members: `${APP_PREFIXES.USER}/members`,
inheritance: `${APP_PREFIXES.USER}/inheritance`,
settings: `${APP_PREFIXES.USER}/settings`,
/** An organisation's or project's settings tabs (`apps/workspace`).
* Under the same `/settings` as Personal's account tabs, which are
* account routes (`routes/workspace.ts`); these move into the
* workspace like any other page. */
WORKSPACE_SETTINGS: {
general: `${APP_PREFIXES.USER}/settings/general`,
members: `${APP_PREFIXES.USER}/settings/members`,
inheritance: `${APP_PREFIXES.USER}/settings/inheritance`,
policies: `${APP_PREFIXES.USER}/settings/policies`,
},
SETTINGS: {
profile: `${APP_PREFIXES.USER}/settings/profile`,
subscription: `${APP_PREFIXES.USER}/settings/subscription`,
security: `${APP_PREFIXES.USER}/settings/security`,
appearance: `${APP_PREFIXES.USER}/settings/appearance`,
email: `${APP_PREFIXES.USER}/settings/email`,
data: `${APP_PREFIXES.USER}/settings/data`,
privacy: `${APP_PREFIXES.USER}/settings/privacy`,
/** A developer tool, shown to the `developer` platform role only. */
scenarios: `${APP_PREFIXES.USER}/settings/scenario-runs`,
},
help: `${APP_PREFIXES.USER}/help`,
},
PROJECT: {
// projects: `${APP_PREFIXES.PROJECT}/`,
// new: `${APP_PREFIXES.PROJECT}/new`,
home: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/home`,
members: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/members`,
models: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/models`,
MODELS: {
id: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/models/id/${ROUTE_PARAMS.MODEL.id}`,
chat: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/models/id/${ROUTE_PARAMS.MODEL.id}/chat`,
},
agents: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/agents`,
AGENTS: {
new: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/agents/new`,
id: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/agents/id/${ROUTE_PARAMS.AGENT.id}`,
chat: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/agents/id/${ROUTE_PARAMS.AGENT.id}/chat`,
},
settings: `${APP_PREFIXES.PROJECT}/${ROUTE_PARAMS.PROJECT.id}/settings`,
},
ORGANISATION: {
home: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/home`,
models: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/models`,
agents: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/agents`,
projects: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/projects`,
members: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/members`,
settings: `${APP_PREFIXES.ORGANISATION}/${ROUTE_PARAMS.ORGANISATION.id}/settings`,
},
DEVELOPER: {
home: `${APP_PREFIXES.DEVELOPER}/home`,
get_started: `${APP_PREFIXES.DEVELOPER}/getstarted`,
api_keys: `${APP_PREFIXES.DEVELOPER}/apikeys`,
keyvault: `${APP_PREFIXES.DEVELOPER}/keyvault`,
firewall: `${APP_PREFIXES.DEVELOPER}/firewall`,
settings: `${APP_PREFIXES.DEVELOPER}/settings`,
},
_util: {
notfound: "*",
},
};
|