@oxygen-agent/cli 1.134.0 → 1.138.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 CHANGED
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation and support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.134.0
37
+ Version: 1.138.0
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { basename, dirname, extname, resolve } from "node:path";
8
8
  import { createInterface } from "node:readline/promises";
9
9
  import { stdin as input, stdout as output } from "node:process";
10
10
  import { fileURLToPath, pathToFileURL } from "node:url";
11
- import { Command } from "commander";
11
+ import { Command, Option } from "commander";
12
12
  import { formatCellForDisplay, OXYGEN_VERSION, OxygenError, success, toFailure } from "@oxygen/shared";
13
13
  import { inferRowsFileFormat, normalizeRowsForNewTable, normalizeRowsFormat, parseRowsFileBuffer, } from "@oxygen/shared/file-import";
14
14
  import { assertRecipeBundleSafe, assertWorkflowManifest, buildRecipeManifest, compileWorkflowDefinition, isAnyWorkflowManifest, isRecipeManifest, isWorkflowDefinition, isWorkflowManifest, } from "@oxygen/workflows";
@@ -725,11 +725,12 @@ export function createProgram() {
725
725
  .argument("<table>", "Table id or slug.")
726
726
  .option("--limit <n>", "Maximum preview rows to return. Defaults to 25; hard cap is 1000.")
727
727
  .option("--fields <columns>", "Comma-separated column keys or ids to include.")
728
+ .option("--include-system-fields", "Include _row_id, _created_at, and _updated_at in preview rows.")
728
729
  .option("--include-cell-states", "Include per-cell run state in the preview response.")
729
730
  .option("--summary-only", "Return table metadata and stats without row JSON.")
730
731
  .option("--json", "Print a JSON envelope.")
731
732
  .action(async (table, options) => {
732
- await handleAsyncAction("tables preview", options, async () => {
733
+ await handleAsyncAction("tables preview", options, () => {
733
734
  const limit = readPositiveInt(options.limit);
734
735
  return requestOxygen("/api/cli/tables/preview", {
735
736
  method: "POST",
@@ -737,6 +738,7 @@ export function createProgram() {
737
738
  table,
738
739
  ...(limit ? { limit } : {}),
739
740
  ...(readOption(options.fields) ? { fields: readCsvOption(options.fields) } : {}),
741
+ ...(options.includeSystemFields ? { include_system_fields: true } : {}),
740
742
  ...(options.includeCellStates ? { include_cell_states: true } : {}),
741
743
  ...(options.summaryOnly ? { summary_only: true } : {}),
742
744
  },
@@ -832,18 +834,18 @@ export function createProgram() {
832
834
  .argument("<table>", "Table id or slug.")
833
835
  .option("--name <name>", "Display name for the webhook.")
834
836
  .option("--mode <mode>", "insert or upsert. Defaults to upsert when --upsert-key is set, otherwise insert.")
835
- .option("--auth-mode <mode>", "secret or none. Defaults to secret; use none only for public provider webhooks that cannot send auth headers.")
837
+ .option("--auth-mode <mode>", "none or secret. Defaults to none; use secret when the sender can include an Oxygen webhook secret.")
836
838
  .option("--upsert-key <key>", "Column key used to upsert rows. Required for upsert mode.")
837
839
  .option("--items-path <path>", "Dot path to an array of row objects in the webhook payload.")
838
840
  .option("--event-id-path <path>", "Dot path to the event id. Defaults to event_id, eventId, id, or payload hash.")
839
841
  .option("--event-type-path <path>", "Dot path to the event type. Defaults to type or event.")
840
842
  .option("--occurred-at-path <path>", "Dot path to the event timestamp.")
841
843
  .option("--auto-run-columns <csv>", "Comma-separated enrichment, tool, AI, or formula columns to queue for webhook-written rows.")
842
- .option("--auto-run-max-credits <n>", "Approved credit safety ceiling for webhook-triggered paid auto-runs.")
844
+ .addOption(new Option("--auto-run-max-credits <n>", "Deprecated optional safety ceiling for webhook-triggered auto-runs.").hideHelp())
843
845
  .option("--auto-run-max-concurrency <n>", "Maximum concurrent row items for webhook-triggered auto-runs.")
844
846
  .option("--auto-run-force", "Run auto-run columns even when the target cell already has a value.")
845
847
  .option("--auto-run-connection-id <connection_id>", "Optional provider integration connection id for auto-runs.")
846
- .option("--auto-run-approved", "Approve this webhook to queue the configured auto-run columns for rows it writes.")
848
+ .addOption(new Option("--auto-run-approved", "Deprecated no-op. Auto-run is enabled by --auto-run-columns.").hideHelp())
847
849
  .option("--json", "Print a JSON envelope.")
848
850
  .action((table, options) => {
849
851
  const autoRun = readTableWebhookAutoRunOptions(options);
@@ -868,13 +870,13 @@ export function createProgram() {
868
870
  .argument("<endpoint_id>", "Webhook endpoint id, such as tw_...")
869
871
  .option("--name <name>", "Update the webhook display name.")
870
872
  .option("--status <status>", "active or disabled.")
871
- .option("--auth-mode <mode>", "secret or none. Setting secret rotates and returns a new webhook secret.")
873
+ .option("--auth-mode <mode>", "none or secret. Setting secret rotates and returns a new webhook secret.")
872
874
  .option("--auto-run-columns <csv>", "Comma-separated enrichment, tool, AI, or formula columns to queue for webhook-written rows.")
873
- .option("--auto-run-max-credits <n>", "Approved credit safety ceiling for webhook-triggered paid auto-runs.")
875
+ .addOption(new Option("--auto-run-max-credits <n>", "Deprecated optional safety ceiling for webhook-triggered auto-runs.").hideHelp())
874
876
  .option("--auto-run-max-concurrency <n>", "Maximum concurrent row items for webhook-triggered auto-runs.")
875
877
  .option("--auto-run-force", "Run auto-run columns even when the target cell already has a value.")
876
878
  .option("--auto-run-connection-id <connection_id>", "Optional provider integration connection id for auto-runs.")
877
- .option("--auto-run-approved", "Approve this webhook to queue the configured auto-run columns for rows it writes.")
879
+ .addOption(new Option("--auto-run-approved", "Deprecated no-op. Auto-run is enabled by --auto-run-columns.").hideHelp())
878
880
  .option("--clear-auto-run", "Remove the webhook auto-run configuration.")
879
881
  .option("--json", "Print a JSON envelope.")
880
882
  .action((endpointId, options) => {
@@ -3730,7 +3732,6 @@ function readTableWebhookAutoRunOptions(options) {
3730
3732
  const maxConcurrency = readPositiveInt(options.autoRunMaxConcurrency);
3731
3733
  return {
3732
3734
  columns,
3733
- approved: Boolean(options.autoRunApproved),
3734
3735
  ...(maxCredits !== undefined ? { max_credits: maxCredits } : {}),
3735
3736
  ...(maxConcurrency ? { max_concurrency: maxConcurrency } : {}),
3736
3737
  ...(options.autoRunForce ? { force: true } : {}),
@@ -1,2 +1,2 @@
1
- export declare const OXYGEN_VERSION = "1.134.0";
2
- export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.0.0";
1
+ export declare const OXYGEN_VERSION = "1.138.0";
2
+ export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.135.0";
@@ -1,3 +1,3 @@
1
- export const OXYGEN_VERSION = "1.134.0";
1
+ export const OXYGEN_VERSION = "1.138.0";
2
2
  // Bump this only when deployed CLI/API contracts require a newer CLI.
3
- export const OXYGEN_MINIMUM_CLI_VERSION = "1.0.0";
3
+ export const OXYGEN_MINIMUM_CLI_VERSION = "1.135.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.134.0",
3
+ "version": "1.138.0",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",