@deepraxis/cli 0.3.0-dev.bf2443c → 0.3.0-dev.c070526

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
- 784 HTTP operations; 786 commands including aliases.
5
+ 787 HTTP operations; 789 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
 
@@ -507,6 +507,8 @@ Handwritten commands: `help [command…] [--json]`, `login`, `logout`, `whoami`,
507
507
  | `praxis api meta health get` | `meta.health.retrieve` | GET `/meta/v1/health` | |
508
508
  | `praxis api meta method get <name>` | `meta.methods.retrieve` | GET `/meta/v1/methods/{name}` | |
509
509
  | `praxis api meta method list` | `meta.methods.list` | GET `/meta/v1/methods` | `--q`, `--param-limit`, `--after-id` |
510
+ | `praxis api model access delete <model>` | `model.models.access.delete` | DELETE `/model/v1/models/{model}/access` | |
511
+ | `praxis api model access update <model>` | `model.models.access.update` | PUT `/model/v1/models/{model}/access` | |
510
512
  | `praxis api model audio speech create` | `model.audio.speech.create` | POST `/model/v1/audio/speech` | `--model`, `--input`, `--instructions`, `--response-format`, `--speed`, `--stream-format`, `--text`, `--prompt`, `--speaker`, `--lang`, `--encoding`, `--container`, `--sample-rate`, `--bit-rate` |
511
513
  | `praxis api model audio transcription create` | `model.audio.transcriptions.create` | POST `/model/v1/audio/transcriptions` | `--model`, `--file`, `--language`, `--prompt`, `--response-format`, `--timestamp-granularities[]`, `--temperature` |
512
514
  | `praxis api model chat completion create` | `model.chat.completions.create` | POST `/model/v1/chat/completions` | `--frequency-penalty`, `--logprobs`, `--max-completion-tokens`, `--max-tokens`, `--min-p`, `--modalities`, `--model`, `--models`, `--parallel-tool-calls`, `--presence-penalty`, `--prompt-cache-key`, `--reasoning-effort`, `--repetition-penalty`, `--route`, `--seed`, `--service-tier`, `--session-id`, `--stream`, `--temperature`, `--top-a`, `--top-k`, `--top-logprobs`, `--top-p`, `--user`, `--store`, `--max-output-tokens`, `--n`, `--prompt`, `--structured-outputs`, `--include-reasoning`, `--safe-prompt`, `--raw-mode` |
@@ -526,6 +528,7 @@ Handwritten commands: `help [command…] [--json]`, `login`, `logout`, `whoami`,
526
528
  | `praxis api model list` | `model.models.list` | GET `/model/v1/models` | `--supported-api`, `--type`, `--output-modalities`, `--param-limit`, `--q` |
527
529
  | `praxis api model message count-tokens` | `model.messages.countTokens` | POST `/model/v1/messages/count_tokens` | `--model` |
528
530
  | `praxis api model message create` | `model.messages.create` | POST `/model/v1/messages` | `--stream`, `--max-tokens`, `--model`, `--inference-geo`, `--service-tier`, `--stop-sequences`, `--temperature`, `--top-k`, `--top-p`, `--speed` |
531
+ | `praxis api model model-access list` | `model.modelAccess.list` | GET `/model/v1/model-access` | |
529
532
  | `praxis api model ocr create` | `model.ocr.create` | POST `/model/v1/ocr` | `--model`, `--pages`, `--include-image-base64`, `--table-format`, `--extract-header`, `--extract-footer`, `--document-annotation-prompt`, `--image-limit`, `--image-min-size`, `--include-blocks`, `--confidence-scores-granularity` |
530
533
  | `praxis api model rerank create` | `model.rerank.create` | POST `/model/v1/rerank` | `--model`, `--query`, `--documents`, `--top-n`, `--return-documents`, `--max-tokens-per-doc`, `--max-chunks-per-doc`, `--user` |
531
534
  | `praxis api model response cancel <response_id>` | `model.responses.cancel` | POST `/model/v1/responses/{response_id}/cancel` | |
package/dist/praxis.js CHANGED
@@ -34734,6 +34734,18 @@ for more details.`
34734
34734
  ]
34735
34735
  }
34736
34736
  },
34737
+ {
34738
+ resource: "model.modelAccess",
34739
+ method: "list",
34740
+ summary: "List Model Access",
34741
+ description: "List the models your organization must enable before use, together with the grants it already has. Read it to check whether a model is enabled before an inference call, or to show which marked models still need enabling; use each item's model as the id for enableModelAccess or disableModelAccess (PUT or DELETE /model/v1/models/{model}/access). Items cover every model the catalog marks access_required, granted or not, so the gated class stays discoverable, plus any other model this organization has enabled, one item per model. access_required says whether the catalog gates the model; granted says whether your organization has a grant; the prices are the model's current sell prices, what the next call costs, not the price recorded when the grant was created.",
34742
+ http: "GET",
34743
+ path: "/model/v1/model-access",
34744
+ streaming: "no",
34745
+ pagination: false,
34746
+ pathParams: [],
34747
+ query: []
34748
+ },
34737
34749
  {
34738
34750
  resource: "model.models",
34739
34751
  method: "list",
@@ -34827,6 +34839,42 @@ for more details.`
34827
34839
  ],
34828
34840
  query: []
34829
34841
  },
34842
+ {
34843
+ resource: "model.models.access",
34844
+ method: "delete",
34845
+ summary: "Disable Model Access",
34846
+ description: "Disable one model for your organization by deleting its grant, so the next call to a model that requires access is refused again with 403 MODEL_ACCESS_REQUIRED. Pass any id enableModelAccess accepts, including creator prefixes; the model may be enabled again later, and the new grant records whoever enabled it then. A model that is not currently enabled is already disabled, so deleting a grant that does not exist also answers 200 with revoked true; only an id no catalog model carries answers 404 MODEL_NOT_FOUND.",
34847
+ http: "DELETE",
34848
+ path: "/model/v1/models/{model}/access",
34849
+ streaming: "no",
34850
+ pagination: false,
34851
+ pathParams: [
34852
+ {
34853
+ name: "model",
34854
+ sdkName: "model",
34855
+ description: "Model ID the organization no longer wants enabled; same ids as enableModelAccess."
34856
+ }
34857
+ ],
34858
+ query: []
34859
+ },
34860
+ {
34861
+ resource: "model.models.access",
34862
+ method: "update",
34863
+ summary: "Enable Model Access",
34864
+ description: "Enable one model for your organization so a call to it is allowed. Call it when an inference request was refused with 403 MODEL_ACCESS_REQUIRED, or ahead of time for a model the catalog marks access_required: true; the refusal message and praxis.model.models.list name the model id to pass here. The id resolves exactly as a chat call resolves it, including any creator prefix such as deepseek/deepseek-v4-pro, and an id no catalog model carries answers 404 MODEL_NOT_FOUND. Enabling is organization-wide and needs no approval, and it is idempotent: a second call returns the first grant unchanged, keeping its author, its timestamp and the USD-per-million-token price snapshot it recorded then. Enabling a model that does not require access is allowed and makes no difference to gating.",
34865
+ http: "PUT",
34866
+ path: "/model/v1/models/{model}/access",
34867
+ streaming: "no",
34868
+ pagination: false,
34869
+ pathParams: [
34870
+ {
34871
+ name: "model",
34872
+ sdkName: "model",
34873
+ description: "Model ID as the catalog lists it, including any creator prefix; primary ids, aliases and prefixed ids resolve the same way a chat call resolves them."
34874
+ }
34875
+ ],
34876
+ query: []
34877
+ },
34830
34878
  {
34831
34879
  resource: "model.ocr",
34832
34880
  method: "create",
@@ -47964,6 +48012,45 @@ var createChatCompletion = (options) => (options.client ?? client).post({
47964
48012
  ...options.headers
47965
48013
  }
47966
48014
  });
48015
+ var disableModelAccess = (options) => (options.client ?? client).delete({
48016
+ security: [{
48017
+ key: "BearerAuth",
48018
+ scheme: "bearer",
48019
+ type: "http"
48020
+ }, {
48021
+ key: "ApiKeyAuth",
48022
+ name: "X-API-Key",
48023
+ type: "apiKey"
48024
+ }],
48025
+ url: "/model/v1/models/{model}/access",
48026
+ ...options
48027
+ });
48028
+ var enableModelAccess = (options) => (options.client ?? client).put({
48029
+ security: [{
48030
+ key: "BearerAuth",
48031
+ scheme: "bearer",
48032
+ type: "http"
48033
+ }, {
48034
+ key: "ApiKeyAuth",
48035
+ name: "X-API-Key",
48036
+ type: "apiKey"
48037
+ }],
48038
+ url: "/model/v1/models/{model}/access",
48039
+ ...options
48040
+ });
48041
+ var listModelAccess = (options) => (options?.client ?? client).get({
48042
+ security: [{
48043
+ key: "BearerAuth",
48044
+ scheme: "bearer",
48045
+ type: "http"
48046
+ }, {
48047
+ key: "ApiKeyAuth",
48048
+ name: "X-API-Key",
48049
+ type: "apiKey"
48050
+ }],
48051
+ url: "/model/v1/model-access",
48052
+ ...options
48053
+ });
47967
48054
  var getGeneration = (options) => (options.client ?? client).get({
47968
48055
  security: [{
47969
48056
  key: "BearerAuth",
@@ -58484,7 +58571,14 @@ function createModel(transport) {
58484
58571
  countTokens: bind(transport, countTokens),
58485
58572
  create: bindMixed(transport, createMessage)
58486
58573
  },
58574
+ modelAccess: {
58575
+ list: bind(transport, listModelAccess)
58576
+ },
58487
58577
  models: {
58578
+ access: {
58579
+ delete: bind(transport, disableModelAccess),
58580
+ update: bind(transport, enableModelAccess)
58581
+ },
58488
58582
  list: bind(transport, listModels),
58489
58583
  retrieve: bind(transport, retrieveModel)
58490
58584
  },
@@ -61234,7 +61328,7 @@ var workflows = [
61234
61328
  ],
61235
61329
  group: "local",
61236
61330
  network: "offline",
61237
- platform: "the `@mise/code` engine's own `mise code refactor rename|check|apply`: this is their thin shell, one for one (ADR-125 §3).",
61331
+ platform: "the `@deepractice-ai/devops-refactor` engine's own `mise code refactor rename|check|apply`: this is their thin shell, one for one (ADR-125 §3).",
61238
61332
  docs: "https://docs.deepraxis.com/docs/cli"
61239
61333
  },
61240
61334
  {
@@ -63112,13 +63206,21 @@ function matchesPattern(pattern, path) {
63112
63206
  }
63113
63207
  async function workspaceIndexOf(facts, options = {}) {
63114
63208
  const tree = new Set(facts.tree);
63115
- const declared = workspacePatternsOf({
63209
+ return workspaceIndexOfSync({
63210
+ tree: facts.tree,
63116
63211
  packageJson: tree.has("package.json") ? await facts.read("package.json") : null,
63117
63212
  pnpmWorkspace: tree.has("pnpm-workspace.yaml") ? await facts.read("pnpm-workspace.yaml") : null
63213
+ }, options);
63214
+ }
63215
+ function workspaceIndexOfSync(input, options = {}) {
63216
+ const tree = new Set(input.tree);
63217
+ const declared = workspacePatternsOf({
63218
+ packageJson: input.packageJson,
63219
+ pnpmWorkspace: input.pnpmWorkspace
63118
63220
  });
63119
63221
  const patterns = declared.length > 0 ? declared : options.defaultPatterns ?? [];
63120
63222
  const candidates2 = new Set;
63121
- for (const path of facts.tree) {
63223
+ for (const path of input.tree) {
63122
63224
  const dir = dirOfPackageJson(path) ?? dirOfManifest(path);
63123
63225
  if (dir === undefined || dir === ".")
63124
63226
  continue;
@@ -63347,10 +63449,10 @@ function closePlan(drafts, workspaces) {
63347
63449
  }
63348
63450
  function isDeployToolDependency(name, path) {
63349
63451
  const directory = path.replace(/^(\.\/)+/, "").replace(/^\/+/, "").replace(/\/+$/, "");
63350
- if (directory === "packages/mise" || directory.startsWith("packages/mise/"))
63351
- return true;
63352
- if (directory === "packages/testing" || directory.startsWith("packages/testing/"))
63353
- return true;
63452
+ for (const root of ["packages/mise", "packages/devops", "packages/testing", "packages/bdd"]) {
63453
+ if (directory === root || directory.startsWith(`${root}/`))
63454
+ return true;
63455
+ }
63354
63456
  return name.startsWith("@mise/");
63355
63457
  }
63356
63458
  function targetsFor(plan, environment2) {
@@ -65099,7 +65201,7 @@ function planTest(flags, paths) {
65099
65201
  }
65100
65202
  function requireSingleCtrfTarget(targets) {
65101
65203
  if (targets > 1)
65102
- throw new UsageError("--ctrf names one report file but this selection covers several packages", "Run one package at a time with --ctrf, or drop --ctrf and read each run's own .mise/ctrf/<run>.json.");
65204
+ throw new UsageError("--ctrf names one report file but this selection covers several packages", "Run one package at a time with --ctrf, or drop --ctrf and read each run's own .praxis/ctrf/<run>.json.");
65103
65205
  }
65104
65206
  var FAILURE_LIMIT2 = 20;
65105
65207
  var member3 = (value, key) => typeof value === "object" && value !== null ? value[key] : undefined;
@@ -65458,7 +65560,7 @@ async function devopsTestReportUpload(args, ports) {
65458
65560
  if (id === undefined || id === "")
65459
65561
  throw new UsageError("--upload needs --id", "Run `praxis devops test report` first to list this machine's runs, then pass one with --id.");
65460
65562
  const root = await ports.root();
65461
- const file = join6(root, ".mise", "ctrf", `${id}.json`);
65563
+ const file = join6(root, ".praxis", "ctrf", `${id}.json`);
65462
65564
  let report;
65463
65565
  try {
65464
65566
  report = await ports.readFile(file);
@@ -65534,8 +65636,8 @@ async function devopsTestInspect(args, ports) {
65534
65636
  return 0;
65535
65637
  }
65536
65638
  async function localEngine(cwd) {
65537
- const { testCommand } = await import("@mise/bdd/test-command");
65538
- const { mise } = await import("@mise/bdd");
65639
+ const { testCommand } = await import("@deepractice-ai/devops-test-engine/test-command");
65640
+ const { mise } = await import("@deepractice-ai/devops-test-engine");
65539
65641
  const { createLocalPlatform } = await import("@deepractice-ai/bdd-local");
65540
65642
  const { _scanPackages } = await import("@deepractice-ai/bdd-service/shared/bdd-config");
65541
65643
  const platform = createLocalPlatform({ cwd });
@@ -65641,7 +65743,7 @@ async function localCheckout(cwd, spawn4) {
65641
65743
  const files = new Map;
65642
65744
  const walk = async (dir) => {
65643
65745
  for (const entry of await readdir2(dir, { withFileTypes: true })) {
65644
- if (["node_modules", ".git", "dist", ".mise"].includes(entry.name))
65746
+ if (["node_modules", ".git", "dist", ".praxis"].includes(entry.name))
65645
65747
  continue;
65646
65748
  const full = join6(dir, entry.name);
65647
65749
  if (entry.isDirectory()) {
@@ -65693,7 +65795,7 @@ async function runEngineCall(call, ports) {
65693
65795
  return exitCode;
65694
65796
  }
65695
65797
  async function miseEngine(cwd) {
65696
- const { mise } = await import("@mise/bdd");
65798
+ const { mise } = await import("@deepractice-ai/devops-test-engine");
65697
65799
  const { createLocalPlatform } = await import("@deepractice-ai/bdd-local");
65698
65800
  const platform = createLocalPlatform({ cwd });
65699
65801
  return {
@@ -66167,9 +66269,9 @@ function refactorRoot(fileRelToCheckout, hasTsconfig) {
66167
66269
  // src/commands/devops-refactor.ts
66168
66270
  function codeRefactorEngine() {
66169
66271
  return {
66170
- rename: async (input) => (await repositoryEngine("devops refactor rename", () => import("@mise/code/rename"))).planSemanticRename(input),
66171
- check: async (input) => (await repositoryEngine("devops refactor check", () => import("@mise/code/rename"))).inspectRenamePlan(input),
66172
- apply: async (input) => (await repositoryEngine("devops refactor apply", () => import("@mise/code/rename"))).applyRenamePlan(input)
66272
+ rename: async (input) => (await repositoryEngine("devops refactor rename", () => import("@deepractice-ai/devops-refactor/rename"))).planSemanticRename(input),
66273
+ check: async (input) => (await repositoryEngine("devops refactor check", () => import("@deepractice-ai/devops-refactor/rename"))).inspectRenamePlan(input),
66274
+ apply: async (input) => (await repositoryEngine("devops refactor apply", () => import("@deepractice-ai/devops-refactor/rename"))).applyRenamePlan(input)
66173
66275
  };
66174
66276
  }
66175
66277
  function required(value, argument, use) {
@@ -69513,7 +69615,7 @@ function startProgress(ctx, write = (text2) => writeOutput({ stderr: text2 })) {
69513
69615
  }
69514
69616
 
69515
69617
  // src/main.ts
69516
- var version = "0.3.0-dev.bf2443c";
69618
+ var version = "0.3.0-dev.c070526";
69517
69619
  var commands = commandTree(operations);
69518
69620
  var manual = [...workflows.map((w) => w.words), [API_WORD]];
69519
69621
  function route(argv) {
@@ -69668,7 +69770,7 @@ var appOptions = {
69668
69770
  { name: "case", type: "string", description: "Scenario title substring; the engine's `scenario` (case ids are a later slice)." },
69669
69771
  { name: "e2e", type: "boolean", description: "The large end-to-end tests; exactly --size large, so the two cannot be combined." },
69670
69772
  { name: "retries", type: "string", description: "Retries after a failing scenario (default: 0)." },
69671
- { name: "ctrf", type: "string", description: "Write the CTRF report here (default: <cwd>/.mise/ctrf/<run>.json)." }
69773
+ { name: "ctrf", type: "string", description: "Write the CTRF report here (default: <cwd>/.praxis/ctrf/<run>.json)." }
69672
69774
  ],
69673
69775
  "devops test report": [
69674
69776
  { name: "id", type: "string", description: "Show one run's detail instead of the recent list." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.3.0-dev.bf2443c",
3
+ "version": "0.3.0-dev.c070526",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"