dataiku-sdk 4.0.0 → 4.1.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.
Files changed (38) hide show
  1. package/README.md +1 -0
  2. package/dist/build-metadata.json +1 -1
  3. package/dist/packages/types/src/index.d.ts +3 -1
  4. package/dist/packages/types/src/index.js +3 -1
  5. package/dist/src/cli/command-syntax.json +216 -0
  6. package/dist/src/cli/commands/code-env.js +5 -3
  7. package/dist/src/cli/commands/dataset.js +6 -4
  8. package/dist/src/cli/commands/job.js +12 -9
  9. package/dist/src/cli/commands/recipe.js +23 -2
  10. package/dist/src/cli/commands/scenario.js +76 -8
  11. package/dist/src/cli/contract.js +3 -2
  12. package/dist/src/cli/env.d.ts +6 -0
  13. package/dist/src/cli/env.js +8 -0
  14. package/dist/src/cli/output.d.ts +2 -0
  15. package/dist/src/cli/output.js +24 -4
  16. package/dist/src/cli/read-shapes.js +90 -0
  17. package/dist/src/cli/result-shapes.d.ts +19 -1
  18. package/dist/src/cli/result-shapes.js +227 -4
  19. package/dist/src/cli/selector-suggestions.d.ts +14 -0
  20. package/dist/src/cli/selector-suggestions.js +56 -0
  21. package/dist/src/cli/usage.d.ts +1 -1
  22. package/dist/src/cli/usage.js +29 -4
  23. package/dist/src/cli/version.d.ts +2 -2
  24. package/dist/src/cli/version.js +2 -2
  25. package/dist/src/cli.js +62 -13
  26. package/dist/src/client.d.ts +5 -4
  27. package/dist/src/client.js +24 -7
  28. package/dist/src/errors.d.ts +2 -0
  29. package/dist/src/errors.js +12 -2
  30. package/dist/src/generated/action-output-schemas.json +214 -0
  31. package/dist/src/resources/recipe-create.d.ts +4 -1
  32. package/dist/src/resources/recipe-create.js +11 -2
  33. package/dist/src/resources/sql.js +3 -3
  34. package/package.json +2 -1
  35. package/plugin.json +1 -1
  36. package/skills/dataiku-dss/SKILL.md +14 -16
  37. package/skills/dataiku-dss/references/discovery.md +2 -2
  38. package/skills/dataiku-dss/references/troubleshooting.md +1 -0
@@ -8,7 +8,7 @@
8
8
  - Exits: 0 success, 1 usage/configuration, 2 DSS/internal/permission-or-environment, 3 transient/retryable DSS error, 4 failed long-running result/assertion.
9
9
  - Recipe payload stdout: JSON string. With `--output PATH`: exact bytes to file, JSON string equal to `PATH` on stdout.
10
10
  - General `--fields a,b,c`: object projection, element-wise for object arrays. Dotted paths traverse nested objects; missing fields become `null`; strings/scalars pass through.
11
- - Compact by default: `*.list` (ids, kind, next-step fields such as recipe `inputs`/`outputs`), `job get` (no log tail), `dataset get`/`info`, `project get`; `--full`/`--fields` use DSS objects. Lists: `--contains TEXT` filters ids; `--limit N` caps (`list_truncated` warning).
11
+ - Compact by default: `*.list` (ids, kind, next-step fields such as recipe `inputs`/`outputs`), `job get` (no log tail), `dataset get`/`info`, `project get`, `scenario get-run`/`last-runs`; `--full`/`--fields` use DSS objects. Lists: `--contains TEXT` filters ids; `--limit N` caps (`list_truncated` warning).
12
12
 
13
13
  ## Discovery
14
14
 
@@ -25,4 +25,4 @@ dss agent contract --fields commands.actions
25
25
 
26
26
  `commands run`: resource→action summary (~1.6k tokens). Unknown name: `--contains TEXT` gives the top 5 actions with usage. Known resource: `agent contract --fields commands.actions.RESOURCE`. Bootstrap once with the six-field projection (~250 tokens). Global flags (`--fields`, `--verbose`, connection/TLS) appear once in `commands.globalFlags`, not per entry.
27
27
 
28
- Look up syntax before invoking: `RESOURCE.ACTION` is one entry, `.FIELD` nests, commas batch, keys echo selectors. Reads: `usage,description,flags,examples`. Writes: the full entry once (flags, side effects, idempotency, dry-run, payload schemas, cleanup, exits). Unknown flags, resources, and actions exit 1 with the usage line or valid options. Full registry: `commands run --output PATH` only; stdout is `{"path":"PATH"}`.
28
+ Look up syntax before invoking: `RESOURCE.ACTION` is one entry, `.FIELD` nests, commas batch, keys echo selectors. Unknown selectors among known ones are skipped (`unknown_fields` warning with `suggestions`). Reads: `usage,description,flags,examples`. Writes: the full entry once (flags, side effects, idempotency, dry-run, payload schemas, cleanup, exits). Unknown flags, resources, and actions exit 1 with the usage line or valid options. Full registry: `commands run --output PATH` only; stdout is `{"path":"PATH"}`.
@@ -4,6 +4,7 @@
4
4
 
5
5
  - Code/SQL: use `--file`/`--sql-file`; shells, especially PowerShell, mangle quotes, `$`, and multiline text. Non-UTF-8 consoles (e.g. Windows cp1252): write non-ASCII results to UTF-8 files or `--output PATH`, not the console.
6
6
  - Build errors: `dss job log <id> --errors-only` selects errors/tracebacks. Plain `job log` prints the last 100 lines (`log_truncated`); for full logs, use `--output PATH` without `--errors-only`. Logs may arrive as one JVM-noisy line; `Error in Python process: At line <N>` identifies the payload source line.
7
+ - Failed scenario: `dss scenario get-run ID RUNID` gives `failure` {stepId, jobId, dataset, message} and `next` argv (`job log JOBID --errors-only`); `run-and-wait` failures carry both.
7
8
  - Schemas: code recipes set output schemas at run time. Visual/SQL query recipes: `recipe create` fills created or empty outputs (`outputSchemaUpdated`); `recipe set-payload` updates empty or DSS-derived ones, warns `recipe_output_schema_outdated` for hand-edited ones. Apply with `dss recipe update-schema NAME` (one recipe), `dss flow propagate-schema DATASET --wait` (every downstream recipe), or build `--auto-update-schema`. `built_dataset_has_no_columns`: the DONE build wrote nothing. `nothing_to_build` (exit 4): no recipe writes the managed target. Manual columns: `dss dataset refresh-schema NAME --data-file columns.json`. `dss dataset validate-build` catches file-backed misconfiguration.
8
9
  - `Inline` (editable) datasets: the public API cannot write rows, so `dataset create` rejects them; use `UploadedFiles` + `dataset upload-file`, or a python recipe output. `code run` is a scenario step; some DSS versions refuse dataset writes there.
9
10
  - `dss dataset download`: default 100k rows; result `{ path, rows, truncated, limit }`. If truncated, raise `--limit`. Specify `--output` or read the `dataset_download_default_location` path warning. CSV is spreadsheet-safe; `--raw-data` retains formula prefixes. For large tables, aggregate in SQL or use a recipe.