@deepraxis/cli 0.2.2-dev.aed5777 → 0.2.2-dev.b4438f4

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/COMMANDS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Generated by `bun run commands`. DO NOT EDIT.
4
4
 
5
- 619 HTTP operations; 621 commands including aliases.
5
+ 620 HTTP operations; 622 commands including aliases.
6
6
 
7
7
  Environment: `PRAXIS_ENV=develop|production` (dev package defaults to `develop`; stable package defaults to `production`). No `--env` option.
8
8
 
@@ -457,6 +457,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
457
457
  | `praxis api ontology changeset create` | `ontology.changesets.create` | POST `/ontology/v1/changesets` | `--at`, `--scope` |
458
458
  | `praxis api ontology node create` | `ontology.nodes.create` | POST `/ontology/v1/nodes` | `--type`, `--ref`, `--name`, `--aliases`, `--description`, `--owner` |
459
459
  | `praxis api ontology node get <node_id>` | `ontology.nodes.retrieve` | GET `/ontology/v1/nodes/{node_id}` | `--expand`, `--as-of` |
460
+ | `praxis api ontology node get-neighborhood <node_id>` | `ontology.nodes.retrieveNeighborhood` | GET `/ontology/v1/nodes/{node_id}/neighborhood` | `--depth`, `--param-limit`, `--direction`, `--as-of`, `--include-invalid` |
460
461
  | `praxis api ontology node list` | `ontology.nodes.list` | GET `/ontology/v1/nodes` | `--type`, `--q`, `--owner`, `--as-of`, `--param-limit`, `--param-cursor` |
461
462
  | `praxis api ontology node merge create` | `ontology.nodes.merge.create` | POST `/ontology/v1/nodes/{node_id}/merge` | `--node`, `--into` |
462
463
  | `praxis api ontology node update <node_id>` | `ontology.nodes.update` | PATCH `/ontology/v1/nodes/{node_id}` | `--name`, `--aliases`, `--description` |
package/dist/praxis.js CHANGED
@@ -24807,6 +24807,60 @@ for more details.`
24807
24807
  ]
24808
24808
  }
24809
24809
  },
24810
+ {
24811
+ resource: "ontology.nodes",
24812
+ method: "retrieveNeighborhood",
24813
+ summary: "Retrieve neighborhood",
24814
+ description: "Load the subgraph around one node instead of the whole graph — the read to use when a screen or an agent needs the context of one entity. Returns the start node, every node within depth hops of it, the relations whose both ends are in that set, and truncated true when the node limit cut the walk short. direction chooses which way relations are followed; as_of and include_invalid read the graph as those parameters do elsewhere. Visibility is exactly nodes.retrieve's — a node you may reach but not read comes back restricted with its name only, and relations touching it are withheld, so this read never reaches further than a node read does. The node id comes from nodes.list, nodes.create or a changeset; an unknown one answers ONTOLOGY_NODE_NOT_FOUND, the same answer nodes.retrieve gives.",
24815
+ http: "GET",
24816
+ path: "/ontology/v1/nodes/{node_id}/neighborhood",
24817
+ streaming: "no",
24818
+ pagination: false,
24819
+ pathParams: [
24820
+ {
24821
+ name: "node_id",
24822
+ sdkName: "node_id",
24823
+ description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
24824
+ }
24825
+ ],
24826
+ query: [
24827
+ {
24828
+ name: "depth",
24829
+ type: "integer",
24830
+ required: false,
24831
+ description: "How many hops from the given node to walk, 1 to 3; defaults to 1. A value outside that range is refused 400 rather than clamped, so the answer is never a smaller graph than the one asked for."
24832
+ },
24833
+ {
24834
+ name: "limit",
24835
+ type: "integer",
24836
+ required: false,
24837
+ description: "Maximum nodes to return, 1 to 500; defaults to 200. When the walk reaches this many nodes it stops and reports truncated true, so treat a truncated answer as a sample of the neighborhood rather than all of it. This bound is not the list routes' page size, and there is no cursor to resume from."
24838
+ },
24839
+ {
24840
+ name: "direction",
24841
+ type: "string",
24842
+ enum: [
24843
+ "out",
24844
+ "in",
24845
+ "both"
24846
+ ],
24847
+ required: false,
24848
+ description: "Which way to follow relations from each node walked; out follows relations the node is the source of, in follows those it is the target of, both follows either. Defaults to both. Relations between two returned nodes are included whichever direction brought the second node in."
24849
+ },
24850
+ {
24851
+ name: "as_of",
24852
+ type: "string",
24853
+ required: false,
24854
+ description: "ISO 8601 timestamp; walk the graph as it was then — a node recorded later is absent and a relation invalidated since still counts. Omit to read current state."
24855
+ },
24856
+ {
24857
+ name: "include_invalid",
24858
+ type: "boolean",
24859
+ required: false,
24860
+ description: "Set true to walk relations whose invalid_at has passed, which is how a fact that stopped being true stays reachable. Omit or false to walk currently valid relations only."
24861
+ }
24862
+ ]
24863
+ },
24810
24864
  {
24811
24865
  resource: "ontology.relations",
24812
24866
  method: "list",
@@ -38965,6 +39019,15 @@ var ontologyUpdateNode = (options) => (options.client ?? client).patch({
38965
39019
  ...options.headers
38966
39020
  }
38967
39021
  });
39022
+ var ontologyNeighborhood = (options) => (options.client ?? client).get({
39023
+ security: [{
39024
+ key: "ontology-bearerAuth",
39025
+ scheme: "bearer",
39026
+ type: "http"
39027
+ }],
39028
+ url: "/ontology/v1/nodes/{node_id}/neighborhood",
39029
+ ...options
39030
+ });
38968
39031
  var ontologyMergeNode = (options) => (options.client ?? client).post({
38969
39032
  security: [{
38970
39033
  key: "ontology-bearerAuth",
@@ -42491,6 +42554,7 @@ function createOntology(transport) {
42491
42554
  create: bind(transport, ontologyMergeNode)
42492
42555
  },
42493
42556
  retrieve: bind(transport, ontologyRetrieveNode),
42557
+ retrieveNeighborhood: bind(transport, ontologyNeighborhood),
42494
42558
  update: bind(transport, ontologyUpdateNode)
42495
42559
  },
42496
42560
  relations: {
@@ -47259,7 +47323,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
47259
47323
  }
47260
47324
 
47261
47325
  // src/main.ts
47262
- var version = "0.2.2-dev.aed5777";
47326
+ var version = "0.2.2-dev.b4438f4";
47263
47327
  var commands = commandTree(operations);
47264
47328
  var manual = [...workflows.map((w) => w.words), [API_WORD]];
47265
47329
  function route(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.2.2-dev.aed5777",
3
+ "version": "0.2.2-dev.b4438f4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"