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.
- package/README.md +36 -6
- package/dist/src/cli.d.ts +7 -1
- package/dist/src/cli.js +28 -3
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/api.d.ts +3 -0
- package/dist/src/commands/api.js +60 -0
- package/dist/src/commands/api.js.map +1 -0
- package/dist/src/commands/catalog.d.ts +3 -0
- package/dist/src/commands/catalog.js +175 -0
- package/dist/src/commands/catalog.js.map +1 -0
- package/dist/src/commands/home.js +2 -2
- package/dist/src/commands/home.js.map +1 -1
- package/dist/src/commands/jobs.d.ts +1 -3
- package/dist/src/commands/jobs.js +7 -100
- package/dist/src/commands/jobs.js.map +1 -1
- package/dist/src/commands/shared.d.ts +28 -0
- package/dist/src/commands/shared.js +105 -0
- package/dist/src/commands/shared.js.map +1 -0
- package/dist/src/commands/sql.d.ts +6 -0
- package/dist/src/commands/sql.js +268 -0
- package/dist/src/commands/sql.js.map +1 -0
- package/dist/src/databricks.d.ts +6 -0
- package/dist/src/databricks.js +8 -0
- package/dist/src/databricks.js.map +1 -1
- package/dist/src/skill.js +26 -13
- package/dist/src/skill.js.map +1 -1
- package/package.json +2 -2
- package/skills/databricks-axi/SKILL.md +19 -7
package/dist/src/skill.js.map
CHANGED
|
@@ -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,
|
|
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,gEAAgE;IAChE,wEAAwE;IACxE,kEAAkE;IAClE,sDAAsD;IACtD,kDAAkD,CAAC;AAErD,MAAM,CAAC,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAEvD,qEAAqE;AACrE,yEAAyE;AACzE,0EAA0E;AAC1E,oCAAoC;AACpC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,YAAY;IACZ,OAAO;IACP,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;CACR,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC;;;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,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC;;UAEtC,YAAY;;;aAGT,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;gBACnB,eAAe;;;;;EAK7B,WAAW;;;;;;;;;;;;;;;;;EAiBX,oBAAoB,EAAE;;;;;;;;CAQvB,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "databricks-axi",
|
|
3
|
-
"version": "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": "^
|
|
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,
|
|
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
|
-
|
|
17
|
-
|
|
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 `
|
|
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[
|
|
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 `
|
|
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
|
|