@ornncompute/cli 1.0.245 → 1.0.247

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.245",
3
+ "version": "1.0.247",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,14 +2,17 @@
2
2
  async function listModels(request) {
3
3
  return await request("/v1/inference/models");
4
4
  }
5
- function createChatCompletion(fetcher, body2, signal) {
6
- return fetcher("/v1/inference/chat/completions", {
5
+ function postInference(fetcher, path3, body2, signal) {
6
+ return fetcher(path3, {
7
7
  method: "POST",
8
8
  headers: { "Content-Type": "application/json" },
9
9
  body: JSON.stringify(body2),
10
10
  signal
11
11
  });
12
12
  }
13
+ function createChatCompletion(fetcher, body2, signal) {
14
+ return postInference(fetcher, "/v1/inference/chat/completions", body2, signal);
15
+ }
13
16
  function requestQuery(query3) {
14
17
  const params = new URLSearchParams();
15
18
  for (const [key, value] of Object.entries(query3)) {
@@ -765,7 +768,7 @@ function supplierCommand(spec) {
765
768
  description: spec.description,
766
769
  mutation: spec.write ? "immediate" : "read",
767
770
  input: spec.input,
768
- mcp: false,
771
+ mcp: spec.mcp ? {} : false,
769
772
  cli: {
770
773
  command: ["admin", "suppliers", ...spec.command],
771
774
  vnext: {
@@ -826,6 +829,7 @@ var supplierNetworkingCapabilities = [
826
829
  id: "supplier-gateway.register",
827
830
  command: ["gateways", "register"],
828
831
  write: true,
832
+ mcp: true,
829
833
  input: z3.strictObject({
830
834
  organization_id: uuid,
831
835
  name,
@@ -833,7 +837,7 @@ var supplierNetworkingCapabilities = [
833
837
  ssh_port: z3.number().int().min(1).max(65535).default(22),
834
838
  ssh_username: z3.string().trim().min(1).max(32).default("admin")
835
839
  }),
836
- description: "Register an existing Supplier Jump Host and its connection config for enrollment. Does not provision a VM. Then list connections with --gateway using the returned gateway ID to obtain the enrollment connection ID. If a response is lost, inspect saved connections by supplier before retrying.",
840
+ description: "Register an existing Supplier Jump Host and its connection config for enrollment. Use the returned gateway ID to look up the enrollment connection. If a response is lost, inspect saved connections by supplier before retrying.",
837
841
  usage: "--supplier UUID --name NAME --address IP_OR_HOSTNAME [--ssh-port PORT] [--ssh-username USER]",
838
842
  related: [
839
843
  "admin suppliers connections list",