@deepraxis/cli 0.2.2-dev.daf2585 → 0.2.2-dev.f2537d2

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.
Files changed (2) hide show
  1. package/dist/praxis.js +28 -6
  2. package/package.json +1 -1
package/dist/praxis.js CHANGED
@@ -24652,7 +24652,7 @@ for more details.`
24652
24652
  resource: "ontology.nodes",
24653
24653
  method: "create",
24654
24654
  summary: "Create node",
24655
- description: "Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
24655
+ description: "Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only; it does not give any agent a memory.",
24656
24656
  http: "POST",
24657
24657
  path: "/ontology/v1/nodes",
24658
24658
  streaming: "no",
@@ -24926,7 +24926,7 @@ for more details.`
24926
24926
  resource: "ontology.relations",
24927
24927
  method: "create",
24928
24928
  summary: "Create relation",
24929
- description: "Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
24929
+ description: "Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only; it does not give any agent a memory.",
24930
24930
  http: "POST",
24931
24931
  path: "/ontology/v1/relations",
24932
24932
  streaming: "no",
@@ -25038,7 +25038,7 @@ for more details.`
25038
25038
  resource: "ontology.search",
25039
25039
  method: "create",
25040
25040
  summary: "Search nodes",
25041
- description: "Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.",
25041
+ description: "Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent's recall, which reads the graph from that agent's own viewpoint inside its sessions.",
25042
25042
  http: "POST",
25043
25043
  path: "/ontology/v1/search",
25044
25044
  streaming: "no",
@@ -46121,6 +46121,13 @@ function workerNameOf(config) {
46121
46121
  const name = config?.name;
46122
46122
  return typeof name === "string" && name !== "" ? name : undefined;
46123
46123
  }
46124
+ function productionBlockOf(config) {
46125
+ const env = config?.env;
46126
+ if (env === null || typeof env !== "object")
46127
+ return;
46128
+ const block = env.production;
46129
+ return block !== null && typeof block === "object" ? block : undefined;
46130
+ }
46124
46131
  function bindingReferences(config) {
46125
46132
  const references = [];
46126
46133
  const own = workerNameOf(config);
@@ -46447,7 +46454,9 @@ function workspaceCloudflareProvider(options = {}) {
46447
46454
  name: workspace.packageName ?? (workspace.dir === "." ? "app" : workspace.dir.split("/").at(-1)),
46448
46455
  destination: "cloudflare",
46449
46456
  ...workspace.workerName === undefined ? {} : { workerName: workspace.workerName },
46450
- ...environments === undefined ? {} : { environments }
46457
+ ...environments === undefined ? {} : { environments },
46458
+ production: productionBlockOf(workspace.config) !== undefined,
46459
+ onTrain: lifecycle?.train !== false
46451
46460
  });
46452
46461
  }
46453
46462
  return { targets: [...partial.targets, ...targets] };
@@ -46503,12 +46512,24 @@ function closePlan(drafts, workspaces) {
46503
46512
  destination: draft.destination,
46504
46513
  dependsOn: edges.get(draft.path) ?? [],
46505
46514
  ...draft.environments === undefined ? {} : { environments: draft.environments },
46515
+ production: draft.production === true,
46516
+ onTrain: draft.onTrain !== false,
46506
46517
  workspaceDeps: workspaceClosureOf(draft.path, byName, dependenciesOf)
46507
46518
  })).sort((a, b) => a.path.localeCompare(b.path));
46508
46519
  }
46509
46520
  function targetsFor(plan, environment2) {
46510
46521
  return plan.targets.filter((target) => target.environments === undefined || target.environments.includes(environment2));
46511
46522
  }
46523
+ var TARGET_EXTERNAL_INPUTS = {
46524
+ "apps/docs": [
46525
+ "apps/api/openapi/openapi.yaml",
46526
+ "packages/praxis/rpc-kit/src/errors.ts",
46527
+ "services/agent/src/domain/error-codes.ts",
46528
+ ...["application", "database", "knowledge"].map((s) => `services/${s}/src/api/error-exit.ts`),
46529
+ ...["router", "vault", "browser", "search"].map((s) => `services/${s}/src/api/rpc-contract.ts`),
46530
+ ...["media", "automation", "sandbox", "file", "billing", "config", "eventbus", "lakehouse", "identity", "notification", "ops", "registry"].map((s) => `services/${s}/src/api/contract.ts`)
46531
+ ]
46532
+ };
46512
46533
  function diffTargets(plan, changedPaths) {
46513
46534
  const changed = new Set(changedPaths);
46514
46535
  const touches = (dir) => {
@@ -46520,7 +46541,8 @@ function diffTargets(plan, changedPaths) {
46520
46541
  return true;
46521
46542
  return false;
46522
46543
  };
46523
- return plan.targets.filter((target) => touches(target.path) || target.workspaceDeps.some(touches)).map((target) => target.path);
46544
+ const readsChangedInput = (dir) => (TARGET_EXTERNAL_INPUTS[dir] ?? []).some((file) => changed.has(file));
46545
+ return plan.targets.filter((target) => touches(target.path) || target.workspaceDeps.some(touches) || readsChangedInput(target.path) || target.workspaceDeps.some(readsChangedInput)).map((target) => target.path);
46524
46546
  }
46525
46547
  function layersOf(plan) {
46526
46548
  const paths = plan.targets.map((target) => target.path);
@@ -47323,7 +47345,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
47323
47345
  }
47324
47346
 
47325
47347
  // src/main.ts
47326
- var version = "0.2.2-dev.daf2585";
47348
+ var version = "0.2.2-dev.f2537d2";
47327
47349
  var commands = commandTree(operations);
47328
47350
  var manual = [...workflows.map((w) => w.words), [API_WORD]];
47329
47351
  function route(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.2.2-dev.daf2585",
3
+ "version": "0.2.2-dev.f2537d2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"