databricks-axi 0.2.0 → 0.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEjD,uEAAuE;AACvE,0EAA0E;AAC1E,0DAA0D;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAC5B,uEAAuE;IACvE,uEAAuE;IACvE,+DAA+D;IAC/D,sEAAsE,CAAC;AAEzE,MAAM,CAAC,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAEvD,qEAAqE;AACrE,yEAAyE;AACzE,0EAA0E;AAC1E,kDAAkD;AAClD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACpE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AAC5B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO;;eAEM,eAAe,CAAC,iBAAiB,CAAC;;UAEvC,YAAY;;;aAGT,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;gBACnB,eAAe;;;;;EAK7B,WAAW;;;;;;;;;;;;;;EAcX,oBAAoB,EAAE;;;;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
2
2
  "name": "databricks-axi",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "packageManager": "pnpm@11.1.1",
5
5
  "description": "AXI-compliant Databricks CLI wrapper — token-efficient TOON output, contextual suggestions, idempotent mutations",
6
6
  "type": "module",
@@ -54,7 +54,7 @@
54
54
  "globals": "^17.4.0",
55
55
  "prettier": "^3.8.1",
56
56
  "tsx": "^4.0.0",
57
- "typescript": "^5.7.0",
57
+ "typescript": "^6.0.3",
58
58
  "typescript-eslint": "^8.58.0",
59
59
  "vitest": "^3.0.0"
60
60
  }
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: databricks-axi
3
- description: "Agent-ergonomic wrapper around the Databricks CLI. Implemented: jobs (list, view, run, runs, logs, cancel). Other domains (clusters, SQL, catalog, workspace, fs, pipelines, serving, api, setup) land incrementally - run `databricks-axi --help` for the current surface."
3
+ description: "Agent-ergonomic wrapper around the Databricks CLI. Implemented: jobs (list, view, run, runs, logs, cancel), sql (warehouses, exec, statement view), catalog (catalogs, schemas, tables, table view), api (raw REST passthrough). Other domains (clusters, workspace, fs, pipelines, serving, setup) land incrementally - run `databricks-axi --help` for the current surface."
4
4
  user-invocable: false
5
5
  author: Vignesh Perumal (p33ves)
6
6
  metadata:
7
7
  hermes:
8
- tags: [databricks, spark, jobs]
8
+ tags: [databricks, spark, jobs, sql, warehouse, query, catalog, schema, table, unity]
9
9
  category: data
10
10
  ---
11
11
 
@@ -13,19 +13,22 @@ metadata:
13
13
 
14
14
  Agent ergonomic wrapper around the Databricks CLI. Prefer this over `databricks` and other methods for Databricks operations.
15
15
 
16
- You do not need databricks-axi installed globally - invoke it with `npx -y databricks-axi <command>`.
17
- If databricks-axi output shows a follow-up command starting with `databricks-axi`, run it as `npx -y databricks-axi ...` instead.
16
+ If `databricks-axi` already resolves on PATH, invoke it directly - a local
17
+ install may be newer than what's published to npm. Only fall back to
18
+ `npx -y databricks-axi <command>` if it does not resolve. Follow-up commands
19
+ in a response's output are written as bare `databricks-axi ...` - invoke
20
+ those the same way you invoked the command that produced them.
18
21
 
19
22
  databricks-axi requires the official [`databricks` CLI](https://docs.databricks.com/dev-tools/cli/) (version 0.298 or newer) installed and authenticated. If a command fails with an authentication error, ask the user to run `databricks auth login --host <workspace-url>` themselves.
20
23
 
21
24
  ## Status
22
25
 
23
- Pre-release scaffold: command domains are landing incrementally. Run `npx -y databricks-axi --help` for the currently available commands.
26
+ Pre-release scaffold: command domains are landing incrementally. Run `databricks-axi --help` (per the invocation note above) for the currently available commands.
24
27
 
25
28
  ## Commands
26
29
 
27
30
  ```
28
- commands[8]:
31
+ commands[17]:
29
32
  (none)=home
30
33
  jobs list [--limit N] [--fields a,b]
31
34
  jobs view <job_id>
@@ -34,9 +37,18 @@ commands[8]:
34
37
  jobs runs view <run_id>
35
38
  jobs logs <run_id> [--full]
36
39
  jobs cancel <run_id>
40
+ sql warehouses [--fields a,b]
41
+ sql warehouses view|start|stop <id>
42
+ sql exec "<query>" [--warehouse <id>] [--limit N] [--timeout S] [--full]
43
+ sql statement view <statement_id>
44
+ catalog catalogs [--limit N] [--fields a,b]
45
+ catalog schemas <catalog> [--limit N] [--fields a,b]
46
+ catalog tables <catalog>.<schema> [--limit N] [--fields a,b]
47
+ catalog table view <catalog>.<schema>.<table>
48
+ api <method> <path> [--body <json>]
37
49
  ```
38
50
 
39
- Run `npx -y databricks-axi --help` for global flags, or `npx -y databricks-axi <command> --help` for per-command usage.
51
+ Run `databricks-axi --help` for global flags, or `databricks-axi <command> --help` for per-command usage (per the invocation note above).
40
52
 
41
53
  ## Tips
42
54