@treasuredata/tdx 0.9.8 → 0.10.1
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/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/activations.js.map +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-command.js.map +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/api-command.js.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/chat-command.js.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-statusline-command.js.map +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/claude-usage-command.js.map +1 -1
- package/dist/commands/command.d.ts +2 -2
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/connection-command.js.map +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/databases.js.map +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/job-command.js.map +1 -1
- package/dist/commands/journey-command.d.ts.map +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-command.js.map +1 -1
- package/dist/commands/journey-validate-command.d.ts +18 -0
- package/dist/commands/journey-validate-command.d.ts.map +1 -0
- package/dist/commands/journey-validate-command.js +1 -0
- package/dist/commands/journey-validate-command.js.map +1 -0
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-command.js.map +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/parent-segment-command.js.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/profiles-command.js.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-create-command.js.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-fields-command.js.map +1 -1
- package/dist/commands/segment-pull-command.d.ts +1 -6
- package/dist/commands/segment-pull-command.d.ts.map +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-pull-command.js.map +1 -1
- package/dist/commands/segment-push-command.d.ts +2 -0
- package/dist/commands/segment-push-command.d.ts.map +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-push-command.js.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-update-command.js.map +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-use-command.js.map +1 -1
- package/dist/commands/segment-validate-command.d.ts +18 -0
- package/dist/commands/segment-validate-command.d.ts.map +1 -0
- package/dist/commands/segment-validate-command.js +1 -0
- package/dist/commands/segment-validate-command.js.map +1 -0
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/show.js.map +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/tables.js.map +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/use-command.js.map +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/user-command.js.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.d.ts +1 -1
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/{utils → core}/command-output.d.ts +1 -1
- package/dist/core/command-output.d.ts.map +1 -0
- package/dist/core/command-output.js +1 -0
- package/dist/core/command-output.js.map +1 -0
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/connection-cache.d.ts +1 -1
- package/dist/core/connection-cache.d.ts.map +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/constants.js +1 -0
- package/dist/core/constants.js.map +1 -0
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.d.ts +2 -2
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.d.ts +1 -1
- package/dist/core/profile.d.ts.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.d.ts +1 -1
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -1
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.d.ts +1 -1
- package/dist/core/user-cache.d.ts.map +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/proxy/anthropic-adapter.d.ts +2 -2
- package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/claude-usage-tracker.js.map +1 -1
- package/dist/proxy/context-signature.d.ts +1 -1
- package/dist/proxy/context-signature.d.ts.map +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/context-signature.js.map +1 -1
- package/dist/proxy/conversation-utils.d.ts +1 -1
- package/dist/proxy/conversation-utils.d.ts.map +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/server.js.map +1 -1
- package/dist/proxy/session-cache.d.ts +1 -1
- package/dist/proxy/session-cache.d.ts.map +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/agent/agent-config.d.ts.map +1 -0
- package/dist/sdk/agent/agent-config.js +1 -0
- package/dist/sdk/agent/agent-config.js.map +1 -0
- package/dist/sdk/agent/agent-ref-parser.d.ts.map +1 -0
- package/dist/sdk/agent/agent-ref-parser.js +1 -0
- package/dist/sdk/agent/agent-ref-parser.js.map +1 -0
- package/dist/sdk/agent/agent-yaml.d.ts +71 -176
- package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/agent-yaml.js.map +1 -1
- package/dist/sdk/agent/types/agent-def.d.ts +182 -0
- package/dist/sdk/agent/types/agent-def.d.ts.map +1 -0
- package/dist/sdk/agent/types/agent-def.js.map +1 -0
- package/dist/sdk/api.d.ts +2 -2
- package/dist/sdk/api.d.ts.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/api.js.map +1 -1
- package/dist/{client → sdk/client}/cdp-api-client.d.ts +24 -9
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -0
- package/dist/sdk/client/cdp-api-client.js +1 -0
- package/dist/sdk/client/cdp-api-client.js.map +1 -0
- package/dist/{types → sdk/client}/endpoints.d.ts +1 -1
- package/dist/sdk/client/endpoints.d.ts.map +1 -0
- package/dist/sdk/client/endpoints.js +1 -0
- package/dist/sdk/client/endpoints.js.map +1 -0
- package/dist/{client → sdk/client}/engage-api-client.d.ts +1 -1
- package/dist/sdk/client/engage-api-client.d.ts.map +1 -0
- package/dist/sdk/client/engage-api-client.js +1 -0
- package/dist/sdk/client/engage-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/http-client.d.ts +2 -2
- package/dist/sdk/client/http-client.d.ts.map +1 -0
- package/dist/sdk/client/http-client.js +1 -0
- package/dist/sdk/client/http-client.js.map +1 -0
- package/dist/{client → sdk/client}/llm-api-client.d.ts +8 -8
- package/dist/sdk/client/llm-api-client.d.ts.map +1 -0
- package/dist/sdk/client/llm-api-client.js +1 -0
- package/dist/sdk/client/llm-api-client.js.map +1 -0
- package/dist/sdk/client/rate-limiter.d.ts.map +1 -0
- package/dist/sdk/client/rate-limiter.js +1 -0
- package/dist/sdk/client/rate-limiter.js.map +1 -0
- package/dist/{client → sdk/client}/td-api-client.d.ts +2 -2
- package/dist/sdk/client/td-api-client.d.ts.map +1 -0
- package/dist/sdk/client/td-api-client.js +1 -0
- package/dist/sdk/client/td-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/trino-api-client.d.ts +2 -2
- package/dist/sdk/client/trino-api-client.d.ts.map +1 -0
- package/dist/sdk/client/trino-api-client.js +1 -0
- package/dist/sdk/client/trino-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/workflow-client.d.ts +2 -2
- package/dist/sdk/client/workflow-client.d.ts.map +1 -0
- package/dist/sdk/client/workflow-client.js +1 -0
- package/dist/sdk/client/workflow-client.js.map +1 -0
- package/dist/sdk/connection-validator.d.ts +1 -1
- package/dist/sdk/connection-validator.d.ts.map +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.d.ts +1 -1
- package/dist/sdk/connection.d.ts.map +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/connection.js.map +1 -1
- package/dist/sdk/engage.d.ts +1 -1
- package/dist/sdk/engage.d.ts.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/engage.js.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +18 -18
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/io/index.d.ts +9 -0
- package/dist/sdk/io/index.d.ts.map +1 -0
- package/dist/sdk/io/index.js +1 -0
- package/dist/sdk/io/index.js.map +1 -0
- package/dist/sdk/io/node-filesystem.d.ts +13 -0
- package/dist/sdk/io/node-filesystem.d.ts.map +1 -0
- package/dist/sdk/io/node-filesystem.js +1 -0
- package/dist/sdk/io/node-filesystem.js.map +1 -0
- package/dist/sdk/io/types.d.ts +39 -0
- package/dist/sdk/io/types.d.ts.map +1 -0
- package/dist/sdk/io/types.js.map +1 -0
- package/dist/sdk/job.d.ts +1 -1
- package/dist/sdk/job.d.ts.map +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/job.js.map +1 -1
- package/dist/sdk/journey.d.ts +23 -1
- package/dist/sdk/journey.d.ts.map +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/journey.js.map +1 -1
- package/dist/sdk/llm/chat-cache.d.ts.map +1 -0
- package/dist/sdk/llm/chat-cache.js +1 -0
- package/dist/sdk/llm/chat-cache.js.map +1 -0
- package/dist/sdk/{llm.d.ts → llm/index.d.ts} +2 -2
- package/dist/sdk/llm/index.d.ts.map +1 -0
- package/dist/sdk/llm/index.js +1 -0
- package/dist/sdk/llm/index.js.map +1 -0
- package/dist/{utils → sdk/llm}/llm-backup-utils.d.ts +2 -2
- package/dist/sdk/llm/llm-backup-utils.d.ts.map +1 -0
- package/dist/sdk/llm/llm-backup-utils.js +1 -0
- package/dist/sdk/llm/llm-backup-utils.js.map +1 -0
- package/dist/sdk/llm/model-aliases.d.ts.map +1 -0
- package/dist/sdk/llm/model-aliases.js +1 -0
- package/dist/sdk/llm/model-aliases.js.map +1 -0
- package/dist/sdk/llm/model-factors.d.ts.map +1 -0
- package/dist/sdk/llm/model-factors.js +1 -0
- package/dist/sdk/llm/model-factors.js.map +1 -0
- package/dist/sdk/{query.d.ts → query/index.d.ts} +2 -2
- package/dist/sdk/query/index.d.ts.map +1 -0
- package/dist/sdk/query/index.js +1 -0
- package/dist/sdk/query/index.js.map +1 -0
- package/dist/sdk/query/sql-parser.d.ts.map +1 -0
- package/dist/sdk/query/sql-parser.js +1 -0
- package/dist/sdk/query/sql-parser.js.map +1 -0
- package/dist/sdk/segment/child-segment-yaml.d.ts +84 -257
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/{utils → sdk/segment}/fields-display.d.ts +1 -1
- package/dist/sdk/segment/fields-display.d.ts.map +1 -0
- package/dist/sdk/segment/fields-display.js +1 -0
- package/dist/sdk/segment/fields-display.js.map +1 -0
- package/dist/sdk/segment/file-discovery.d.ts +39 -0
- package/dist/sdk/segment/file-discovery.d.ts.map +1 -0
- package/dist/sdk/segment/file-discovery.js +1 -0
- package/dist/sdk/segment/file-discovery.js.map +1 -0
- package/dist/{utils → sdk/segment}/journey-utils.d.ts +62 -9
- package/dist/sdk/segment/journey-utils.d.ts.map +1 -0
- package/dist/sdk/segment/journey-utils.js +1 -0
- package/dist/sdk/segment/journey-utils.js.map +1 -0
- package/dist/sdk/segment/journey-yaml.d.ts +62 -475
- package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.d.ts +14 -14
- package/dist/sdk/segment/parent-segment-preview.d.ts.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js.map +1 -1
- package/dist/sdk/segment/parent-segment-yaml.d.ts +16 -158
- package/dist/sdk/segment/parent-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/pull-workflow.d.ts +91 -0
- package/dist/sdk/segment/pull-workflow.d.ts.map +1 -0
- package/dist/sdk/segment/pull-workflow.js +1 -0
- package/dist/sdk/segment/pull-workflow.js.map +1 -0
- package/dist/sdk/segment/push-workflow.d.ts +953 -0
- package/dist/sdk/segment/push-workflow.d.ts.map +1 -0
- package/dist/sdk/segment/push-workflow.js +1 -0
- package/dist/sdk/segment/push-workflow.js.map +1 -0
- package/dist/sdk/segment/resolution-context.d.ts +43 -0
- package/dist/sdk/segment/resolution-context.d.ts.map +1 -0
- package/dist/sdk/segment/resolution-context.js +1 -0
- package/dist/sdk/segment/resolution-context.js.map +1 -0
- package/dist/{utils → sdk/segment}/segment-path-parser.d.ts +2 -1
- package/dist/sdk/segment/segment-path-parser.d.ts.map +1 -0
- package/dist/sdk/segment/segment-path-parser.js +1 -0
- package/dist/sdk/segment/segment-path-parser.js.map +1 -0
- package/dist/sdk/segment/segment-ref-parser.d.ts.map +1 -0
- package/dist/sdk/segment/segment-ref-parser.js +1 -0
- package/dist/sdk/segment/segment-ref-parser.js.map +1 -0
- package/dist/sdk/segment/target-resolution.d.ts +162 -0
- package/dist/sdk/segment/target-resolution.d.ts.map +1 -0
- package/dist/sdk/segment/target-resolution.js +1 -0
- package/dist/sdk/segment/target-resolution.js.map +1 -0
- package/dist/{utils → sdk/segment}/tdx-config.d.ts +8 -0
- package/dist/sdk/segment/tdx-config.d.ts.map +1 -0
- package/dist/sdk/segment/tdx-config.js +1 -0
- package/dist/sdk/segment/tdx-config.js.map +1 -0
- package/dist/sdk/segment/types/journey-def.d.ts +323 -0
- package/dist/sdk/segment/types/journey-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/journey-def.js.map +1 -0
- package/dist/sdk/segment/types/parent-segment-def.d.ts +157 -0
- package/dist/sdk/segment/types/parent-segment-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/parent-segment-def.js.map +1 -0
- package/dist/sdk/segment/types/segment-def.d.ts +284 -0
- package/dist/sdk/segment/types/segment-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/segment-def.js.map +1 -0
- package/dist/sdk/segment/validate-files.d.ts +94 -0
- package/dist/sdk/segment/validate-files.d.ts.map +1 -0
- package/dist/sdk/segment/validate-files.js +1 -0
- package/dist/sdk/segment/validate-files.js.map +1 -0
- package/dist/sdk/segment/yaml-validator.d.ts +101 -0
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -0
- package/dist/sdk/segment/yaml-validator.js +1 -0
- package/dist/sdk/segment/yaml-validator.js.map +1 -0
- package/dist/sdk/segment.d.ts +59 -15
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/types/anthropic.d.ts.map +1 -0
- package/dist/sdk/types/anthropic.js.map +1 -0
- package/dist/{types → sdk/types}/cdp.d.ts +7 -4
- package/dist/sdk/types/cdp.d.ts.map +1 -0
- package/dist/sdk/types/cdp.js.map +1 -0
- package/dist/sdk/types/connection.d.ts.map +1 -0
- package/dist/sdk/types/connection.js.map +1 -0
- package/dist/sdk/types/connector-schema.d.ts.map +1 -0
- package/dist/sdk/types/connector-schema.js.map +1 -0
- package/dist/sdk/types/database.d.ts.map +1 -0
- package/dist/sdk/types/database.js.map +1 -0
- package/dist/sdk/types/engage.d.ts.map +1 -0
- package/dist/sdk/types/engage.js +1 -0
- package/dist/sdk/types/engage.js.map +1 -0
- package/dist/{types → sdk/types}/index.d.ts +6 -4
- package/dist/sdk/types/index.d.ts.map +1 -0
- package/dist/sdk/types/index.js +1 -0
- package/dist/sdk/types/index.js.map +1 -0
- package/dist/sdk/types/job.d.ts.map +1 -0
- package/dist/sdk/types/job.js +1 -0
- package/dist/sdk/types/job.js.map +1 -0
- package/dist/{types → sdk/types}/llm.d.ts +2 -2
- package/dist/sdk/types/llm.d.ts.map +1 -0
- package/dist/sdk/types/llm.js +1 -0
- package/dist/sdk/types/llm.js.map +1 -0
- package/dist/sdk/types/progress.d.ts +42 -0
- package/dist/sdk/types/progress.d.ts.map +1 -0
- package/dist/sdk/types/progress.js +1 -0
- package/dist/sdk/types/progress.js.map +1 -0
- package/dist/sdk/types/resolution-context.d.ts +85 -0
- package/dist/sdk/types/resolution-context.d.ts.map +1 -0
- package/dist/sdk/types/resolution-context.js +1 -0
- package/dist/sdk/types/resolution-context.js.map +1 -0
- package/dist/sdk/types/trino.d.ts.map +1 -0
- package/dist/sdk/types/trino.js +1 -0
- package/dist/sdk/types/trino.js.map +1 -0
- package/dist/sdk/types/workflow.d.ts.map +1 -0
- package/dist/sdk/types/workflow.js +1 -0
- package/dist/sdk/types/workflow.js.map +1 -0
- package/dist/sdk/user.d.ts +1 -1
- package/dist/sdk/user.d.ts.map +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/user.js.map +1 -1
- package/dist/sdk/util/format-detector.d.ts.map +1 -0
- package/dist/sdk/util/format-detector.js +1 -0
- package/dist/sdk/util/format-detector.js.map +1 -0
- package/dist/{utils → sdk/util}/formatters.d.ts +1 -1
- package/dist/sdk/util/formatters.d.ts.map +1 -0
- package/dist/sdk/util/formatters.js +1 -0
- package/dist/sdk/util/formatters.js.map +1 -0
- package/dist/sdk/util/index.d.ts +9 -0
- package/dist/sdk/util/index.d.ts.map +1 -0
- package/dist/sdk/util/index.js +1 -0
- package/dist/sdk/util/index.js.map +1 -0
- package/dist/sdk/util/tree-formatter.d.ts.map +1 -0
- package/dist/sdk/util/tree-formatter.js +1 -0
- package/dist/sdk/util/tree-formatter.js.map +1 -0
- package/dist/sdk/{workflow.d.ts → workflow/index.d.ts} +2 -2
- package/dist/sdk/workflow/index.d.ts.map +1 -0
- package/dist/sdk/workflow/index.js +1 -0
- package/dist/sdk/workflow/index.js.map +1 -0
- package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -0
- package/dist/sdk/workflow/workflow-utils.js +1 -0
- package/dist/sdk/workflow/workflow-utils.js.map +1 -0
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.d.ts +12 -12
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/sse-parser.d.ts +1 -1
- package/dist/utils/sse-parser.d.ts.map +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
- package/dist/client/cdp-api-client.d.ts.map +0 -1
- package/dist/client/cdp-api-client.js +0 -1
- package/dist/client/cdp-api-client.js.map +0 -1
- package/dist/client/engage-api-client.d.ts.map +0 -1
- package/dist/client/engage-api-client.js +0 -1
- package/dist/client/engage-api-client.js.map +0 -1
- package/dist/client/http-client.d.ts.map +0 -1
- package/dist/client/http-client.js +0 -1
- package/dist/client/http-client.js.map +0 -1
- package/dist/client/llm-api-client.d.ts.map +0 -1
- package/dist/client/llm-api-client.js +0 -1
- package/dist/client/llm-api-client.js.map +0 -1
- package/dist/client/rate-limiter.d.ts.map +0 -1
- package/dist/client/rate-limiter.js +0 -1
- package/dist/client/rate-limiter.js.map +0 -1
- package/dist/client/td-api-client.d.ts.map +0 -1
- package/dist/client/td-api-client.js +0 -1
- package/dist/client/td-api-client.js.map +0 -1
- package/dist/client/trino-api-client.d.ts.map +0 -1
- package/dist/client/trino-api-client.js +0 -1
- package/dist/client/trino-api-client.js.map +0 -1
- package/dist/client/workflow-client.d.ts.map +0 -1
- package/dist/client/workflow-client.js +0 -1
- package/dist/client/workflow-client.js.map +0 -1
- package/dist/sdk/llm.d.ts.map +0 -1
- package/dist/sdk/llm.js +0 -1
- package/dist/sdk/llm.js.map +0 -1
- package/dist/sdk/query.d.ts.map +0 -1
- package/dist/sdk/query.js +0 -1
- package/dist/sdk/query.js.map +0 -1
- package/dist/sdk/workflow.d.ts.map +0 -1
- package/dist/sdk/workflow.js +0 -1
- package/dist/sdk/workflow.js.map +0 -1
- package/dist/types/anthropic.d.ts.map +0 -1
- package/dist/types/anthropic.js.map +0 -1
- package/dist/types/cdp.d.ts.map +0 -1
- package/dist/types/cdp.js.map +0 -1
- package/dist/types/connection.d.ts.map +0 -1
- package/dist/types/connection.js.map +0 -1
- package/dist/types/connector-schema.d.ts.map +0 -1
- package/dist/types/connector-schema.js.map +0 -1
- package/dist/types/database.d.ts.map +0 -1
- package/dist/types/database.js.map +0 -1
- package/dist/types/endpoints.d.ts.map +0 -1
- package/dist/types/endpoints.js +0 -1
- package/dist/types/endpoints.js.map +0 -1
- package/dist/types/engage.d.ts.map +0 -1
- package/dist/types/engage.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/job.d.ts.map +0 -1
- package/dist/types/job.js.map +0 -1
- package/dist/types/llm.d.ts.map +0 -1
- package/dist/types/llm.js.map +0 -1
- package/dist/types/trino.d.ts.map +0 -1
- package/dist/types/trino.js.map +0 -1
- package/dist/types/workflow.d.ts.map +0 -1
- package/dist/types/workflow.js.map +0 -1
- package/dist/utils/agent-config.d.ts.map +0 -1
- package/dist/utils/agent-config.js +0 -1
- package/dist/utils/agent-config.js.map +0 -1
- package/dist/utils/agent-ref-parser.d.ts.map +0 -1
- package/dist/utils/agent-ref-parser.js +0 -1
- package/dist/utils/agent-ref-parser.js.map +0 -1
- package/dist/utils/chat-cache.d.ts.map +0 -1
- package/dist/utils/chat-cache.js +0 -1
- package/dist/utils/chat-cache.js.map +0 -1
- package/dist/utils/command-output.d.ts.map +0 -1
- package/dist/utils/command-output.js +0 -1
- package/dist/utils/command-output.js.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/fields-display.d.ts.map +0 -1
- package/dist/utils/fields-display.js +0 -1
- package/dist/utils/fields-display.js.map +0 -1
- package/dist/utils/format-detector.d.ts.map +0 -1
- package/dist/utils/format-detector.js +0 -1
- package/dist/utils/format-detector.js.map +0 -1
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -1
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/journey-utils.d.ts.map +0 -1
- package/dist/utils/journey-utils.js +0 -1
- package/dist/utils/journey-utils.js.map +0 -1
- package/dist/utils/llm-backup-utils.d.ts.map +0 -1
- package/dist/utils/llm-backup-utils.js +0 -1
- package/dist/utils/llm-backup-utils.js.map +0 -1
- package/dist/utils/model-aliases.d.ts.map +0 -1
- package/dist/utils/model-aliases.js +0 -1
- package/dist/utils/model-aliases.js.map +0 -1
- package/dist/utils/model-factors.d.ts.map +0 -1
- package/dist/utils/model-factors.js +0 -1
- package/dist/utils/model-factors.js.map +0 -1
- package/dist/utils/segment-path-parser.d.ts.map +0 -1
- package/dist/utils/segment-path-parser.js +0 -1
- package/dist/utils/segment-path-parser.js.map +0 -1
- package/dist/utils/segment-ref-parser.d.ts.map +0 -1
- package/dist/utils/segment-ref-parser.js +0 -1
- package/dist/utils/segment-ref-parser.js.map +0 -1
- package/dist/utils/sql-parser.d.ts.map +0 -1
- package/dist/utils/sql-parser.js +0 -1
- package/dist/utils/sql-parser.js.map +0 -1
- package/dist/utils/tdx-config.d.ts.map +0 -1
- package/dist/utils/tdx-config.js +0 -1
- package/dist/utils/tdx-config.js.map +0 -1
- package/dist/utils/tree-formatter.d.ts.map +0 -1
- package/dist/utils/tree-formatter.js +0 -1
- package/dist/utils/tree-formatter.js.map +0 -1
- package/dist/utils/workflow-utils.d.ts.map +0 -1
- package/dist/utils/workflow-utils.js +0 -1
- package/dist/utils/workflow-utils.js.map +0 -1
- /package/dist/{utils → core}/constants.d.ts +0 -0
- /package/dist/{utils → sdk/agent}/agent-config.d.ts +0 -0
- /package/dist/{utils → sdk/agent}/agent-ref-parser.d.ts +0 -0
- /package/dist/{types/anthropic.js → sdk/agent/types/agent-def.js} +0 -0
- /package/dist/{client → sdk/client}/rate-limiter.d.ts +0 -0
- /package/dist/{types/cdp.js → sdk/io/types.js} +0 -0
- /package/dist/{utils → sdk/llm}/chat-cache.d.ts +0 -0
- /package/dist/{utils → sdk/llm}/model-aliases.d.ts +0 -0
- /package/dist/{utils → sdk/llm}/model-factors.d.ts +0 -0
- /package/dist/{utils → sdk/query}/sql-parser.d.ts +0 -0
- /package/dist/{utils → sdk/segment}/segment-ref-parser.d.ts +0 -0
- /package/dist/{types/connection.js → sdk/segment/types/journey-def.js} +0 -0
- /package/dist/{types/connector-schema.js → sdk/segment/types/parent-segment-def.js} +0 -0
- /package/dist/{types/database.js → sdk/segment/types/segment-def.js} +0 -0
- /package/dist/{types → sdk/types}/anthropic.d.ts +0 -0
- /package/dist/{types/engage.js → sdk/types/anthropic.js} +0 -0
- /package/dist/{types/job.js → sdk/types/cdp.js} +0 -0
- /package/dist/{types → sdk/types}/connection.d.ts +0 -0
- /package/dist/{types/llm.js → sdk/types/connection.js} +0 -0
- /package/dist/{types → sdk/types}/connector-schema.d.ts +0 -0
- /package/dist/{types/trino.js → sdk/types/connector-schema.js} +0 -0
- /package/dist/{types → sdk/types}/database.d.ts +0 -0
- /package/dist/{types/workflow.js → sdk/types/database.js} +0 -0
- /package/dist/{types → sdk/types}/engage.d.ts +0 -0
- /package/dist/{types → sdk/types}/job.d.ts +0 -0
- /package/dist/{types → sdk/types}/trino.d.ts +0 -0
- /package/dist/{types → sdk/types}/workflow.d.ts +0 -0
- /package/dist/{utils → sdk/util}/format-detector.d.ts +0 -0
- /package/dist/{utils → sdk/util}/tree-formatter.d.ts +0 -0
- /package/dist/{utils → sdk/workflow}/workflow-utils.d.ts +0 -0
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5f1ae4=a2_0x151b;(function(_0x736cc9,_0x3accd4){const _0x162fea=a2_0x151b,_0x41109e=_0x736cc9();while(!![]){try{const _0x428baa=parseInt(_0x162fea(0x25b))/0x1*(parseInt(_0x162fea(0x2b5))/0x2)+-parseInt(_0x162fea(0x18f))/0x3*(parseInt(_0x162fea(0x2ad))/0x4)+parseInt(_0x162fea(0x2a4))/0x5+-parseInt(_0x162fea(0x23b))/0x6*(parseInt(_0x162fea(0x1c4))/0x7)+parseInt(_0x162fea(0x1ac))/0x8+-parseInt(_0x162fea(0x25f))/0x9+parseInt(_0x162fea(0x284))/0xa*(parseInt(_0x162fea(0x256))/0xb);if(_0x428baa===_0x3accd4)break;else _0x41109e['push'](_0x41109e['shift']());}catch(_0x4cbceb){_0x41109e['push'](_0x41109e['shift']());}}}(a2_0xe2e8,0xdce50));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';function a2_0xe2e8(){const _0x316ccd=['Set\x20or\x20show\x20parent\x20segment\x20context','Show\x20web\x20console\x20URLs\x20for\x20segments','--include-retried','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','description','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','template','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','tdx','Update\x20an\x20email\x20template','--limit\x20<rows>','padEnd','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Skip\x20confirmation\x20prompt','Data\x20connection\x20management\x20(for\x20activations/exports)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','forEach','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','command','argument','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','show\x20[table]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','-d,\x20--database\x20<name>','-d,\x20--database\x20<database>','flatMap','padWidth','Add\x20attributes\x20from\x20JSON\x20file','--description\x20<desc>','--data\x20<data>','Show\x20email\x20template\x20details','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','engage','describe\x20[table]','repeat','Usage:\x20','Set\x20operation\x20timeout\x20in\x20seconds','kill\x20<job-id>','--editor-type\x20<type>','commandDescription','-u,\x20--use','Filtering\x20rule\x20as\x20JSON\x20string','commands','update\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','gitRevision','catch','stats\x20<name-or-path>','Campaign\x20management','Updated\x20schedule\x20option','Workflow\x20parameter\x20(repeatable)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','apiKey','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','jsonl','--timeout\x20<seconds>','LLM\x20project\x20management','List\x20all\x20users\x20in\x20the\x20account','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','buildTime','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--database\x20<db>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','DEBUG','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--port\x20<number>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--params\x20<json>','--customer-group\x20<json>','session','Task\x20name\x20for\x20logs\x20action','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--in\x20<name>','use\x20<project-name>','--schedule-option\x20<value>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','project','-H,\x20--header\x20<header>','User\x20management\x20commands','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','configureHelp','settings\x20<type>','users','--skip-validation','list','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','subcommandTerm','use\x20<name>','--model\x20<name>','agents\x20[pattern]','Attributes\x20from\x20JSON\x20file','Database\x20to\x20use\x20(overrides\x20context)','--parent-segment\x20<name>','addHelpText','--jsonl','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','tdx\x20','--customer-group-file\x20<file>','create','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','desc\x20[name]','directory','Workspace\x20name','length','Skip\x20confirmation\x20prompts','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','fields\x20[name]','Workflow\x20project\x20management','tasks','attempt','campaign','logLevel','LLM\x20agent\x20management','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--site\x20<site>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20segment\x20details\x20(alias\x20for\x20view)','1094151rapied','Update\x20an\x20existing\x20agent','--status\x20<status>','-c,\x20--continue','resume\x20<name-or-path>','claude\x20[args...]','--version','--workspace\x20<name>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','preview\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','campaigns\x20[pattern]','delete\x20<project-name-or-id>','parent','Resume\x20from\x20specific\x20task','Resume\x20from\x20specific\x20task\x20(retry)','--new','chats','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Create\x20a\x20new\x20campaign','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--from\x20<timestamp>','Create\x20segment\x20folder','show\x20<name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','optionDescription','6423216RlHTxH','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--segment\x20<path>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Options:','Clear\x20session\x20context','--json','New\x20campaign\x20name','--job-type\x20<type>','desc\x20[segment_name]','option','Include\x20subtasks\x20in\x20tasks\x20output','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','resume\x20<name-or-id>','required','Show\x20workspace\x20details','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','activations\x20<segment_name>','run\x20[name]','New\x20workspace\x20name','trace','kill','Interactive\x20chat\x20selector','filter','8834462jDfyHH','update\x20<name-or-id>','optionTerm','clear','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Include\x20retried\x20attempts','Path\x20is\x20not\x20a\x20directory:\x20','Editor\x20type','site','-y,\x20--yes','get','validate\x20[file]','delete\x20<name-or-id>','--llm-project\x20<name>','Agent\x20reference\x20(project-name/agent-name)','--name\x20<text>','database','--revision\x20<revision>','--interval\x20<range>','CDP\x20Journey\x20Orchestration\x20commands','Updated\x20description','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Output\x20as\x20JSON\x20Lines','Create\x20an\x20email\x20template','stdout','--agent\x20<name>','--timezone\x20<tz>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Duplicate\x20a\x20campaign','Overwrite\x20local\x20changes\x20without\x20confirmation','push\x20[project-name-or-dir]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Add\x20behaviors\x20from\x20JSON\x20file','Show\x20only\x20master\x20table\x20validation','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-v,\x20--verbose','argumentTerm','attempts\x20[project]','--behavior\x20[name]','Export\x20journey(s)\x20as\x20YAML\x20files','Pause\x20a\x20campaign','-w,\x20--web','version','fields\x20[parent_name]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Make\x20segment\x20invisible\x20(default:\x20visible)','Attempt\x20ID','format','Update\x20a\x20workspace','Show\x20master\x20table\x20sample\x20data','List\x20jobs','--yes','List\x20available\x20LLM\x20models','push\x20[file]','--delete','push','commandUsage','Job\x20management\x20commands','types','allowExcessArguments','--enriched','--attributes\x20<json>','Request\x20body\x20as\x20JSON\x20string','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','pull\x20[name]','--force','Show\x20agent\x20details','utf-8','download\x20<project-name>\x20[output-dir]','Table\x20management\x20commands','--include-subtasks','--resume-from\x20<task>','Database\x20to\x20query\x20(default:\x20information_schema)','INVALID_ARGUMENT','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','stderr','Parent\x20segment\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','-p,\x20--profile\x20<name>','Move\x20to\x20folder','folder','createAsync','0.7','Workflow\x20session\x20management','Show\x20the\x20most\x20recent\x20chat','--agent\x20<ref>','--reason\x20<text>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','replace','Behaviors\x20as\x20JSON\x20string','use\x20[resource]\x20[value]','Alias\x20for\x20--database\x20(natural\x20language\x20style)','usage','--email-sender-id\x20<id>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Enable\x20verbose\x20logging','-o,\x20--output\x20<folder>','--add-attributes-file\x20<file>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--param\x20<key=value>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','run','create\x20<parent_name>\x20<folder_name>','INFO','requiredOption','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Output\x20as\x20JSON','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Open\x20segment\x20in\x20web\x20browser','[action]','6BEbNag','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--max-tool-iterations\x20<n>','registeredArguments','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','history\x20[chat-id]','List\x20all\x20available\x20profiles','Read\x20SQL\x20query\x20from\x20file','colorFn','action','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','GET','use\x20<path>','retry','Pause\x20a\x20running\x20journey','argumentDescription','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--html\x20<html>','-o,\x20--output\x20<file>','tsv','--max-depth\x20<depth>','--name\x20<name>','Campaign\x20name','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','28338299xagRwW','Delete\x20an\x20LLM\x20project','list\x20[project]','-r,\x20--recursive','exit','15098gnvpwR','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','projects\x20[pattern]','Launch\x20a\x20campaign','6996294tZSmEY','parse','show\x20<name-or-id>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','create\x20<name>','result\x20<job-id>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','job','--type\x20<type>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--tsv','desc','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Override\x20project\x20name','--project\x20<name>','jobs','Revision\x20name\x20(default:\x20timestamp)','Kill\x20a\x20job','allowUnknownOption','--no-proxy','hook','Describe\x20table\x20schema','Workspace\x20management','--name\x20<new_name>','--full','AI-native\x20CLI\x20for\x20Treasure\x20Data','log','isTTY','info\x20[segment_name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--behaviors-file\x20<file>','chat\x20[message...]','journey','-f,\x20--file\x20<path>','--kind\x20<type>','10jCSKNU','--in\x20<database>','Delete\x20an\x20email\x20template','--table','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','summary','Start\x20a\x20new\x20chat\x20session','Force\x20retry\x20even\x20if\x20not\x20failed','view\x20[segment_name]','Agent\x20description','Create\x20a\x20workspace','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','New\x20template\x20name','workspaces\x20[pattern]','Master\x20table\x20name','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','after','delete\x20<name>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','context','--invisible','trino','Remove\x20API\x20key\x20from\x20system\x20keychain','Starter\x20message','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Show\x20journey\x20statistics','update\x20<agent-name>','--attribute\x20[name]','Resume\x20a\x20paused\x20journey','Add\x20attributes\x20as\x20JSON\x20string','Workspace\x20description','1182560hsPkDT','error','argv','proxy','parent_segment','create\x20<segment_name>','Output\x20file\x20path','--parent-folder\x20<name>','--add-attributes\x20<json>','12bjsEBd','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','databases\x20[pattern]','HTML\x20template\x20content','Arguments:','preview\x20[file]','duplicate\x20<name-or-id>','56BoNper','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','opts','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','sonnet','Updated\x20timezone','profile','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','slice','aliases','--dry-run','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--type\x20<api_type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','logs','--limit\x20<n>','--master','Show\x20campaign\x20details','pull\x20[project]\x20[agent-name]','--include-stats','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','-C,\x20--directory\x20<path>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--color','Show\x20journey\x20details','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','.dev','--start-at\x20<datetime>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Setup\x20API\x20key\x20authentication\x20interactively','\x20-\x20built\x20','Read\x20query\x20from\x20file','Segment\x20description','parent-segment','Parent\x20folder\x20name\x20for\x20nested\x20folders','retry\x20<session-id>','workspace','schema\x20<type>','Skip\x20population\x20counting','Behaviors\x20from\x20JSON\x20file','table','workflow','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','[DEPRECATED]\x20Segment\x20folder\x20management','--name\x20<new-name>','--last','--behaviors\x20<json>','port','Maximum\x20recursion\x20depth\x20(default:\x2010)','--add-behaviors-file\x20<file>','sql\x20[name]','Attributes\x20as\x20JSON\x20string','List\x20all\x20data\x20connections','Open\x20journey\x20in\x20web\x20browser','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Workspace\x20name\x20(required)','pause\x20<name-or-path>','chdir','run\x20<workflow>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','segment','Plaintext\x20template\x20content','view\x20<name-or-path>','use\x20[name]','parents\x20[pattern]','_hidden','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','alias','Directory\x20does\x20not\x20exist:\x20','Show\x20agent\x20chat\x20URLs','--catalog\x20<catalog>','preAction','pause\x20<name-or-id>','Folder\x20name\x20for\x20organization','Timezone\x20(e.g.,\x20America/Los_Angeles)','delete\x20<agent-name>','[task-name]','Show\x20web\x20console\x20URLs\x20for\x20journeys','-n,\x20--name\x20<name>','debug','--subject\x20<subject>','isArray','templates\x20[pattern]','--description\x20<text>','backup\x20<name>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--rule-file\x20<file>','Agent\x20prompt/instructions','connections','Filtering\x20rule\x20from\x20JSON\x20file','workflows\x20[project]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','join','then','-1d','Email\x20sender\x20ID\x20for\x20delivery','validate\x20[name]','status','subcommandDescription','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20agents\x20in\x20current\x20project','[attempt-id]','--table\x20<table>','--no-count-population','--clear','Show\x20console\x20URLs','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Maximum\x20tool\x20iterations\x20(default:\x204)','information_schema','Customer\x20group\x20from\x20JSON\x20file','End\x20time\x20filter\x20(ISO\x208601\x20format)','--to\x20<timestamp>','--starter-message\x20<text>','--schedule-type\x20<type>','-f,\x20--force','Update\x20a\x20campaign','Create\x20a\x20new\x20agent\x20in\x20current\x20project','clone\x20[source]','show\x20<folder_ref>','map','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','list\x20[pattern]','Campaign\x20type\x20(email\x20or\x20push)','--no-color','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--plaintext\x20<text>','isDirectory','Pull\x20child\x20segments\x20to\x20YAML\x20files','pull\x20[parent_or_file]','--debug',',\x20version\x20','Email\x20template\x20management','name','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','json','push\x20[parent_or_file]','sessions\x20[project]','Authentication\x20management'];a2_0xe2e8=function(){return _0x316ccd;};return a2_0xe2e8();}import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x5f1ae4(0x260)](readFileSync(join(__dirname,'../package.json'),a2_0x5f1ae4(0x209)));let buildInfo={};try{buildInfo=JSON[a2_0x5f1ae4(0x260)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x5f1ae4(0x2a6)]['includes'](a2_0x5f1ae4(0x195))){let versionOutput=a2_0x5f1ae4(0x17a)+packageJson[a2_0x5f1ae4(0x1f0)];buildInfo[a2_0x5f1ae4(0x374)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x5f1ae4(0x382)]&&(versionOutput+=a2_0x5f1ae4(0x2d4)+buildInfo[a2_0x5f1ae4(0x382)]),console[a2_0x5f1ae4(0x27b)](versionOutput),process[a2_0x5f1ae4(0x25a)](0x0);}const program=new Command();let description=a2_0x5f1ae4(0x27a);buildInfo[a2_0x5f1ae4(0x374)]?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x5f1ae4(0x374)]+')':description+=a2_0x5f1ae4(0x33b)+packageJson[a2_0x5f1ae4(0x1f0)];program[a2_0x5f1ae4(0x33d)](a2_0x5f1ae4(0x34d))[a2_0x5f1ae4(0x348)](description),program[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ca),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x216),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x18c),a2_0x5f1ae4(0x39f),'us01')[a2_0x5f1ae4(0x1b6)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x287),a2_0x5f1ae4(0x237))['option'](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x293))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),a2_0x5f1ae4(0x390))['option'](a2_0x5f1ae4(0x26a),a2_0x5f1ae4(0x294))[a2_0x5f1ae4(0x1b6)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x5f1ae4(0x1b6)]('--limit\x20<number>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2cd),a2_0x5f1ae4(0x37c),![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x334),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1e9),a2_0x5f1ae4(0x227),![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x33a),a2_0x5f1ae4(0x183))['option']('--trace',a2_0x5f1ae4(0x323))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x37e),a2_0x5f1ae4(0x36a),'30')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Preview\x20operation\x20without\x20executing',![])[a2_0x5f1ae4(0x1b6)]('-y,\x20--yes',a2_0x5f1ae4(0x182),![])[a2_0x5f1ae4(0x1b6)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35d),a2_0x5f1ae4(0x3a6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x392),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a7),a2_0x5f1ae4(0x235))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d2),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x5f1ae4(0x39a)]({'formatHelp':(_0x21765b,_0x2fc845)=>{const _0x4f063d=a2_0x5f1ae4,_0x42c319=_0x2fc845[_0x4f063d(0x360)](_0x21765b,_0x2fc845),_0x61b6da=0x2,_0x3315b3=0x2;function _0x181a76(_0x207f1f){const _0x49c8f6=_0x4f063d,_0x5e3c8c=_0x207f1f;return!!(_0x5e3c8c[_0x49c8f6(0x2f9)]||_0x5e3c8c['hidden']);}function _0x357f08(_0x3e94e0,_0x5486ed){const _0x1a7b21=_0x4f063d;if(_0x5486ed){const _0xa1439c=''+_0x3e94e0[_0x1a7b21(0x350)](_0x42c319+_0x3315b3)+_0x5486ed;return _0xa1439c;}return _0x3e94e0;}function _0x1c052e(_0x447ad6){const _0x21302e=_0x4f063d;return _0x447ad6[_0x21302e(0x315)]('\x0a')[_0x21302e(0x220)](/^/gm,'\x20'[_0x21302e(0x368)](_0x61b6da));}const _0x4913e9=[];_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x369)+_0x2fc845[_0x4f063d(0x1fe)](_0x21765b));const _0xadf2f4=_0x2fc845[_0x4f063d(0x36d)](_0x21765b);_0xadf2f4&&(_0x4913e9['push'](''),_0x4913e9['push'](_0xadf2f4));const _0x16f951=_0x21765b[_0x4f063d(0x370)][_0x4f063d(0x1c3)](_0x26e7e0=>!_0x181a76(_0x26e7e0));if(_0x16f951[_0x4f063d(0x181)]>0x0){if(_0x21765b[_0x4f063d(0x33d)]()===_0x4f063d(0x34d)){const _0x422edd=_0x21765b[_0x4f063d(0x2b7)](),_0x2811e9=!_0x422edd['noColor']&&process[_0x4f063d(0x1dd)][_0x4f063d(0x27c)],_0x47ff26=COMMAND_CATEGORIES,_0x42ddc0=(_0x475c9a,_0x2609b7)=>_0x2811e9?_0x2609b7(_0x475c9a):_0x475c9a,_0x227775=new Map();_0x16f951['forEach'](_0x3e0652=>{const _0x5e5daf=_0x4f063d;_0x227775['set'](_0x3e0652[_0x5e5daf(0x33d)](),_0x3e0652);}),_0x47ff26[_0x4f063d(0x355)](_0x19becf=>{const _0x3e1539=_0x4f063d,_0x64cd56=_0x19becf[_0x3e1539(0x370)][_0x3e1539(0x35f)](_0x3ba074=>_0x227775[_0x3e1539(0x1cf)](_0x3ba074)??[]);if(_0x64cd56[_0x3e1539(0x181)]>0x0){_0x4913e9[_0x3e1539(0x1fd)](''),_0x4913e9[_0x3e1539(0x1fd)](_0x42ddc0(_0x19becf[_0x3e1539(0x33d)]+':',_0x19becf[_0x3e1539(0x243)]));const _0x3218d5=_0x64cd56[_0x3e1539(0x330)](_0x1029ca=>{const _0x2d7641=_0x3e1539,_0x1ed259=_0x2fc845[_0x2d7641(0x3a1)](_0x1029ca),_0x4594d8=_0x2fc845[_0x2d7641(0x31b)](_0x1029ca);return _0x357f08(_0x1ed259,_0x4594d8);});_0x4913e9[_0x3e1539(0x1fd)](_0x1c052e(_0x3218d5));}}),_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9['push'](_0x4f063d(0x232));}else{const _0x5cb448=_0x16f951[_0x4f063d(0x330)](_0x5476a7=>{const _0x1dfe94=_0x4f063d,_0x43f6d7=_0x2fc845['subcommandTerm'](_0x5476a7),_0x197893=_0x2fc845[_0x1dfe94(0x31b)](_0x5476a7);return _0x357f08(_0x43f6d7,_0x197893);});_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9['push']('Commands:'),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x5cb448));}}const _0x4a9c3d=_0x21765b['options'][_0x4f063d(0x1c3)](_0x25d62f=>!_0x181a76(_0x25d62f));if(_0x4a9c3d['length']>0x0){const _0x33e3d1=_0x4a9c3d[_0x4f063d(0x330)](_0xd881b8=>{const _0x43409c=_0x4f063d,_0x11d620=_0x2fc845[_0x43409c(0x1c6)](_0xd881b8),_0x9988cf=_0x2fc845[_0x43409c(0x1ab)](_0xd881b8);return _0x357f08(_0x11d620,_0x9988cf);});_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x1b0)),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x33e3d1));}const _0x2a4341=(_0x21765b['registeredArguments']||[])[_0x4f063d(0x1c3)](_0x1ce14f=>!_0x181a76(_0x1ce14f));if(_0x2a4341[_0x4f063d(0x181)]>0x0){const _0x38a129=_0x2a4341[_0x4f063d(0x330)](_0x587ffb=>{const _0x1c9d04=_0x4f063d,_0x333563=_0x2fc845[_0x1c9d04(0x1ea)](_0x587ffb),_0x4e7afe=_0x2fc845[_0x1c9d04(0x24a)](_0x587ffb);return _0x357f08(_0x333563,_0x4e7afe);});_0x4913e9['push'](''),_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x2b2)),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x38a129));}return _0x4913e9['join']('\x0a');},'subcommandTerm':_0x2cb2c6=>{const _0x53b057=a2_0x5f1ae4,_0x24cb9c=(_0x2cb2c6[_0x53b057(0x23e)]||[])[_0x53b057(0x330)](_0x2036c7=>_0x2036c7[_0x53b057(0x1ba)]?'<'+_0x2036c7['name']()+'>':'['+_0x2036c7[_0x53b057(0x33d)]()+']')[_0x53b057(0x315)]('\x20'),_0x382e7c=_0x2cb2c6[_0x53b057(0x2be)](),_0x1870be=_0x382e7c['length']>0x0?_0x2cb2c6['name']()+',\x20'+_0x382e7c['join'](',\x20'):_0x2cb2c6[_0x53b057(0x33d)]();return _0x24cb9c?_0x1870be+'\x20'+_0x24cb9c:_0x1870be;}}),program[a2_0x5f1ae4(0x275)](a2_0x5f1ae4(0x2ff),_0x53619c=>{const _0x563e8c=a2_0x5f1ae4,_0xce3f7e=_0x53619c[_0x563e8c(0x2b7)]();if(_0xce3f7e[_0x563e8c(0x17f)]){const _0x7a2afe=resolve(_0xce3f7e['directory']),_0x149dc7=_0x7a2afe!==_0xce3f7e[_0x563e8c(0x17f)]?'\x20(resolved\x20to\x20'+_0x7a2afe+')':'';if(!existsSync(_0x7a2afe))throw new SDKError(ErrorCode[_0x563e8c(0x20f)],_0x563e8c(0x2fc)+_0xce3f7e[_0x563e8c(0x17f)]+_0x149dc7,undefined,{'helpText':_0x563e8c(0x255)});const _0x4a7e0b=statSync(_0x7a2afe);if(!_0x4a7e0b[_0x563e8c(0x337)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x563e8c(0x1cb)+_0xce3f7e[_0x563e8c(0x17f)]+_0x149dc7,undefined,{'helpText':_0x563e8c(0x238)});process[_0x563e8c(0x2f1)](_0x7a2afe);}if(!_0xce3f7e[_0x563e8c(0x1f5)]){if(_0xce3f7e[_0x563e8c(0x2de)])_0xce3f7e[_0x563e8c(0x1f5)]=_0x563e8c(0x2de);else{if(_0xce3f7e[_0x563e8c(0x340)])_0xce3f7e[_0x563e8c(0x1f5)]=_0x563e8c(0x340);else{if(_0xce3f7e[_0x563e8c(0x37d)])_0xce3f7e['format']=_0x563e8c(0x37d);else _0xce3f7e[_0x563e8c(0x24f)]&&(_0xce3f7e['format']=_0x563e8c(0x24f));}}}_0xce3f7e['in']&&!_0xce3f7e[_0x563e8c(0x1d5)]&&(_0xce3f7e[_0x563e8c(0x1d5)]=_0xce3f7e['in']);if(_0xce3f7e[_0x563e8c(0x1c0)])_0xce3f7e[_0x563e8c(0x189)]=LogLevel['TRACE'];else{if(_0xce3f7e[_0x563e8c(0x307)])_0xce3f7e['logLevel']=LogLevel[_0x563e8c(0x387)];else _0xce3f7e[_0x563e8c(0x189)]===undefined&&(_0xce3f7e[_0x563e8c(0x189)]=LogLevel[_0x563e8c(0x230)]);}});async function createTDXInstance(_0x2e4c67){const _0x553038=a2_0x5f1ae4,_0x45c637=await GlobalContext[_0x553038(0x219)](_0x2e4c67);return _0x45c637['injectIntoOptions'](_0x2e4c67),TDX[_0x553038(0x17c)]({'site':_0x45c637[_0x553038(0x1cd)],'apiKey':_0x45c637[_0x553038(0x37b)],'logLevel':_0x45c637[_0x553038(0x189)],'profile':_0x45c637[_0x553038(0x2bb)]});}const databaseCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d5))[a2_0x5f1ae4(0x2fb)]('db')[a2_0x5f1ae4(0x348)]('Database\x20management\x20commands'),databaseListAction=async(_0x214667,_0x402c2f)=>{const _0x3efb86=a2_0x5f1ae4,_0x2b3de7=new DatabasesCommand(),_0xcd77be=program[_0x3efb86(0x2b7)](),_0x1a784f=await createTDXInstance(_0xcd77be),_0x4ff916=await _0x2b3de7[_0x3efb86(0x22e)]({'options':{..._0xcd77be,..._0x402c2f},'args':_0x214667?[_0x214667]:[],'tdx':_0x1a784f});process['exit'](_0x4ff916);};databaseCmd['command'](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e5))[a2_0x5f1ae4(0x244)](databaseListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2b0),{'hidden':!![]})['description'](a2_0x5f1ae4(0x383))[a2_0x5f1ae4(0x244)](databaseListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x280))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x25c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x21d),a2_0x5f1ae4(0x1d3))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1a0),a2_0x5f1ae4(0x28a))['action'](async(_0x3ae817,_0x15eaef)=>{const _0x573b0c=a2_0x5f1ae4,_0x30b858=new ChatCommand(),_0x5636b4=program[_0x573b0c(0x2b7)](),_0x10ccb6=await createTDXInstance(_0x5636b4),_0x12d179=await _0x30b858['run']({'options':{..._0x5636b4,..._0x15eaef},'args':_0x3ae817,'tdx':_0x10ccb6});process['exit'](_0x12d179);});const apiCmd=program[a2_0x5f1ae4(0x357)]('api\x20[endpoint]')[a2_0x5f1ae4(0x289)](a2_0x5f1ae4(0x385))['addHelpText'](a2_0x5f1ae4(0x295),a2_0x5f1ae4(0x21f))[a2_0x5f1ae4(0x1b6)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x5f1ae4(0x246))['option'](a2_0x5f1ae4(0x363),a2_0x5f1ae4(0x204))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),'Read\x20request\x20body\x20from\x20file')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x397),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5525a8,_0x48a17f)=>{return _0x48a17f?[..._0x48a17f,_0x5525a8]:[_0x5525a8];})[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c1),a2_0x5f1ae4(0x391),'td')['action'](async(_0x296f32,_0x5c1a98)=>{const _0x25a09b=a2_0x5f1ae4;if(!_0x296f32){apiCmd['help']();return;}const _0x5cc830=new ApiCommand(),_0x435c8a=program[_0x25a09b(0x2b7)](),_0x2a97e2=await createTDXInstance(_0x435c8a),_0x590e05=await _0x5cc830[_0x25a09b(0x22e)]({'options':{..._0x435c8a,..._0x5c1a98},'args':[_0x296f32],'tdx':_0x2a97e2});process[_0x25a09b(0x25a)](_0x590e05);}),tableCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2de))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x20b)),tableListAction=async(_0x59a4b7,_0x1fae92)=>{const _0x3c6772=a2_0x5f1ae4,_0xf43a14=new TablesCommand(),_0x50a65d=program['opts'](),_0x1e9d62=await createTDXInstance(_0x50a65d);_0x1fae92['in']&&(_0x1fae92[_0x3c6772(0x1d5)]=_0x1fae92['in']);const _0x132885=await _0xf43a14[_0x3c6772(0x22e)]({'options':{..._0x50a65d,..._0x1fae92},'args':_0x59a4b7?[_0x59a4b7]:[],'tdx':_0x1e9d62});process[_0x3c6772(0x25a)](_0x132885);};tableCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x386))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x5f1ae4(0x285),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5f1ae4(0x244)](tableListAction),program[a2_0x5f1ae4(0x357)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x244)](tableListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x35b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x331))['option'](a2_0x5f1ae4(0x35e),a2_0x5f1ae4(0x205))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x244)](async(_0x2a33c0,_0x36de74)=>{const _0x8a357=a2_0x5f1ae4,_0x225d03=new ShowCommand(),_0x4f3634=program['opts'](),_0x575215=await createTDXInstance(_0x4f3634);_0x36de74['in']&&(_0x36de74[_0x8a357(0x1d5)]=_0x36de74['in']);const _0x5f5150=await _0x225d03[_0x8a357(0x22e)]({'options':{..._0x4f3634,..._0x36de74},'args':_0x2a33c0?[_0x2a33c0]:[],'tdx':_0x575215});process[_0x8a357(0x25a)](_0x5f5150);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x367))[a2_0x5f1ae4(0x2fb)](a2_0x5f1ae4(0x26b))['description'](a2_0x5f1ae4(0x276))['option'](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5f1ae4(0x244)](async(_0x5e1e71,_0x5e57e2)=>{const _0x4a1c27=a2_0x5f1ae4,_0x224907=new DescribeCommand(),_0x1c1a41=program[_0x4a1c27(0x2b7)](),_0x4ad310=await createTDXInstance(_0x1c1a41);_0x5e57e2['in']&&(_0x5e57e2['database']=_0x5e57e2['in']);const _0x2a20e2=await _0x224907[_0x4a1c27(0x22e)]({'options':{..._0x1c1a41,..._0x5e57e2},'args':_0x5e1e71?[_0x5e1e71]:[],'tdx':_0x4ad310});process['exit'](_0x2a20e2);}),program[a2_0x5f1ae4(0x357)]('query\x20[sql]')['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x5f1ae4(0x1b6)]('-d,\x20--database\x20<database>',a2_0x5f1ae4(0x20e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))['option'](a2_0x5f1ae4(0x2fe),'Trino\x20catalog\x20(default:\x20td)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),a2_0x5f1ae4(0x242))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x34f),a2_0x5f1ae4(0x18b),'40')['action'](async(_0x189754,_0x2387bd)=>{const _0xb9ba46=a2_0x5f1ae4,_0x3be561=new QueryCommand(),_0x4ce665=program[_0xb9ba46(0x2b7)](),_0x5c0dc6=await createTDXInstance(_0x4ce665);_0x2387bd['in']&&(_0x2387bd[_0xb9ba46(0x1d5)]=_0x2387bd['in']);const _0x42adc1=await _0x3be561[_0xb9ba46(0x22e)]({'options':{..._0x4ce665,..._0x2387bd},'args':_0x189754?[_0x189754]:[],'tdx':_0x5c0dc6});process['exit'](_0x42adc1);});const segmentCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f4))[a2_0x5f1ae4(0x2fb)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x4313e2,_0x5b9e0a)=>{const _0x24c183=a2_0x5f1ae4,_0x16d036=new SegmentsCommand(),_0x15dcce=program[_0x24c183(0x2b7)](),_0xc54df0=await createTDXInstance(_0x15dcce),_0x4f5afd=await _0x16d036[_0x24c183(0x22e)]({'options':{..._0x15dcce,..._0x5b9e0a},'args':_0x4313e2?[_0x4313e2]:[],'tdx':_0xc54df0});process[_0x24c183(0x25a)](_0x4f5afd);};segmentCmd['command']('list\x20[path]')['description'](a2_0x5f1ae4(0x1a2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x259),a2_0x5f1ae4(0x226))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x250),a2_0x5f1ae4(0x2e6),'10')[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x345))[a2_0x5f1ae4(0x244)](segmentListAction),program[a2_0x5f1ae4(0x357)]('segments\x20[path]',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x395))['option'](a2_0x5f1ae4(0x259),a2_0x5f1ae4(0x226))[a2_0x5f1ae4(0x1b6)]('--max-depth\x20<depth>',a2_0x5f1ae4(0x2e6),'10')[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x345))[a2_0x5f1ae4(0x244)](segmentListAction),segmentCmd['command'](a2_0x5f1ae4(0x247),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x22a))[a2_0x5f1ae4(0x244)](async(_0x57521d,_0xfb930)=>{const _0x3bb40b=a2_0x5f1ae4,_0x52861a=new SegmentUseCommand(),_0x5f1681=program[_0x3bb40b(0x2b7)](),_0x50b3eb=await createTDXInstance(_0x5f1681),_0x3c59fe=await _0x52861a['run']({'options':{..._0x5f1681,..._0xfb930},'args':[_0x57521d],'tdx':_0x50b3eb});process[_0x3bb40b(0x25a)](_0x3c59fe);});const segmentViewAction=async(_0x250f64,_0x46c82d)=>{const _0x56e5ff=a2_0x5f1ae4,_0x5334e0=new SegmentViewCommand(),_0x5d0d6b=program[_0x56e5ff(0x2b7)](),_0x45e54d=await createTDXInstance(_0x5d0d6b),_0x56db9f=await _0x5334e0[_0x56e5ff(0x22e)]({'options':{..._0x5d0d6b,..._0x46c82d},'args':_0x250f64?[_0x250f64]:[],'tdx':_0x45e54d});process['exit'](_0x56db9f);};segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x28c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c0))['option'](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x239))[a2_0x5f1ae4(0x244)](segmentViewAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x27d),{'hidden':!![]})[a2_0x5f1ae4(0x2fb)]('describe')['option'](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x239))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x18e))['action'](segmentViewAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1b5))[a2_0x5f1ae4(0x348)]('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x1d48fd,_0x548b55)=>{const _0x2568b1=a2_0x5f1ae4,_0x3451f9=new SegmentDescCommand(),_0x57ee86=program[_0x2568b1(0x2b7)](),_0xd07409=await createTDXInstance(_0x57ee86),_0x14f355=await _0x3451f9['run']({'options':{..._0x57ee86,..._0x548b55},'args':_0x1d48fd?[_0x1d48fd]:[],'tdx':_0xd07409});process[_0x2568b1(0x25a)](_0x14f355);}),segmentCmd[a2_0x5f1ae4(0x357)]('show\x20[segment_name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x197))[a2_0x5f1ae4(0x244)](async(_0x59669a,_0x46c11e)=>{const _0x1ae98d=a2_0x5f1ae4,_0x46e2d2=new SegmentShowCommand(),_0x574795=program['opts'](),_0x3d7b2c=await createTDXInstance(_0x574795),_0x2f9ebd=await _0x46e2d2[_0x1ae98d(0x22e)]({'options':{..._0x574795,..._0x46c11e},'args':_0x59669a?[_0x59669a]:[],'tdx':_0x3d7b2c});process[_0x1ae98d(0x25a)](_0x2f9ebd);}),segmentCmd[a2_0x5f1ae4(0x357)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x17d))[a2_0x5f1ae4(0x244)](async(_0x317f9c,_0x5273c0)=>{const _0x121b8a=a2_0x5f1ae4,_0x45bf36=new SegmentFolderListCommand(),_0x1eea78=program['opts'](),_0x4f3bcb=await createTDXInstance(_0x1eea78),_0x2b96e3=await _0x45bf36[_0x121b8a(0x22e)]({'options':{..._0x1eea78,..._0x5273c0},'args':[_0x317f9c],'tdx':_0x4f3bcb});process['exit'](_0x2b96e3);});const folderCmd=segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x218),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2e1));folderCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x32f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2b6))[a2_0x5f1ae4(0x244)](async(_0x347a35,_0x3152f3)=>{const _0x1c10cd=a2_0x5f1ae4,_0x48be1b=new SegmentFolderShowCommand(),_0x4f309b=program[_0x1c10cd(0x2b7)](),_0x4b5488=await createTDXInstance(_0x4f309b),_0x3936ff=await _0x48be1b[_0x1c10cd(0x22e)]({'options':{..._0x4f309b,..._0x3152f3},'args':[_0x347a35],'tdx':_0x4b5488});process[_0x1c10cd(0x25a)](_0x3936ff);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x23c))['action'](async(_0x1b7ca9,_0x138e55)=>{const _0x26713b=a2_0x5f1ae4,_0x1086bf=new SegmentSQLCommand(),_0x38e38f=program[_0x26713b(0x2b7)](),_0x10a5c5=await createTDXInstance(_0x38e38f),_0xb100f3=await _0x1086bf[_0x26713b(0x22e)]({'options':{..._0x38e38f,..._0x138e55},'args':_0x1b7ca9?[_0x1b7ca9]:[],'tdx':_0x10a5c5});process[_0x26713b(0x25a)](_0xb100f3);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1f1))[a2_0x5f1ae4(0x348)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x4ca64b,_0x12d1ca)=>{const _0x3ad895=a2_0x5f1ae4,_0x4afc20=new SegmentFieldsCommand(),_0x348475=program['opts'](),_0x54c7fd=await createTDXInstance(_0x348475),_0x113ced=await _0x4afc20[_0x3ad895(0x22e)]({'options':{..._0x348475,..._0x12d1ca},'args':_0x4ca64b?[_0x4ca64b]:[],'tdx':_0x54c7fd});process[_0x3ad895(0x25a)](_0x113ced);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x339))['description'](a2_0x5f1ae4(0x338))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),'Skip\x20confirmation\x20prompts')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),a2_0x5f1ae4(0x179))['action'](async(_0xaca3a3,_0x291ef3)=>{const _0x392486=a2_0x5f1ae4,_0x509e32=new SegmentPullCommand(),_0x44c11a=program['opts'](),_0x5baceb=await createTDXInstance(_0x44c11a),_0x24c35c=await _0x509e32[_0x392486(0x22e)]({'options':{..._0x44c11a,..._0x291ef3},'args':_0xaca3a3?[_0xaca3a3]:[],'tdx':_0x5baceb});process[_0x392486(0x25a)](_0x24c35c);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x341))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2e0))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x182))[a2_0x5f1ae4(0x1b6)]('--dry-run',a2_0x5f1ae4(0x179))['option'](a2_0x5f1ae4(0x1fc),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x5f1ae4(0x244)](async(_0x3fcae8,_0x4ba8c9)=>{const _0x42405a=a2_0x5f1ae4,_0x42ccf8=new SegmentPushCommand(),_0x3a96d1=program[_0x42405a(0x2b7)](),_0xd66006=await createTDXInstance(_0x3a96d1),_0x7bd20a=await _0x42ccf8[_0x42405a(0x22e)]({'options':{..._0x3a96d1,..._0x4ba8c9},'args':_0x3fcae8?[_0x3fcae8]:[],'tdx':_0xd66006});process[_0x42405a(0x25a)](_0x7bd20a);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2a9),{'hidden':!![]})['description'](a2_0x5f1ae4(0x35a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x2d6))[a2_0x5f1ae4(0x1b6)]('--rule\x20<json>',a2_0x5f1ae4(0x36f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30f),a2_0x5f1ae4(0x312))[a2_0x5f1ae4(0x1b6)]('--folder\x20<name>',a2_0x5f1ae4(0x301))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x283),a2_0x5f1ae4(0x2c2))['option'](a2_0x5f1ae4(0x299),a2_0x5f1ae4(0x1f3))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x320),a2_0x5f1ae4(0x2dc))[a2_0x5f1ae4(0x244)](async(_0x81a085,_0x3adb51)=>{const _0x767f40=a2_0x5f1ae4,_0x5cc832=new SegmentCreateCommand(),_0xbf571b=program[_0x767f40(0x2b7)](),_0x197187=await createTDXInstance(_0xbf571b),_0x12efa9=await _0x5cc832['run']({'options':{..._0xbf571b,..._0x3adb51},'args':[_0x81a085],'tdx':_0x197187});process[_0x767f40(0x25a)](_0x12efa9);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x278),'New\x20segment\x20name')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x1d9))[a2_0x5f1ae4(0x1b6)]('--rule\x20<json>',a2_0x5f1ae4(0x245))['option'](a2_0x5f1ae4(0x30f),a2_0x5f1ae4(0x2bc))[a2_0x5f1ae4(0x1b6)]('--folder\x20<name>',a2_0x5f1ae4(0x217))['option'](a2_0x5f1ae4(0x283),a2_0x5f1ae4(0x2c2))[a2_0x5f1ae4(0x244)](async(_0x59f75d,_0x399a1c)=>{const _0x5ac5e5=a2_0x5f1ae4,_0x1c9f66=new SegmentUpdateCommand(),_0x36b26d=program['opts'](),_0x1f88d8=await createTDXInstance(_0x36b26d),_0x4cee82=await _0x1c9f66[_0x5ac5e5(0x22e)]({'options':{..._0x36b26d,..._0x399a1c},'args':[_0x59f75d],'tdx':_0x1f88d8});process[_0x5ac5e5(0x25a)](_0x4cee82);});const parentCmd=segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19d),{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x12eb73,_0x1a3c0b)=>{const _0x1cd708=a2_0x5f1ae4,_0x11930a=new ParentSegmentListCommand(),_0x217118=program[_0x1cd708(0x2b7)](),_0x325113=await createTDXInstance(_0x217118),_0x573490=await _0x11930a['run']({'options':{..._0x217118,..._0x1a3c0b},'args':_0x12eb73?[_0x12eb73]:[],'tdx':_0x325113});process[_0x1cd708(0x25a)](_0x573490);};parentCmd['command']('list\x20[pattern]')['description'](a2_0x5f1ae4(0x38b))[a2_0x5f1ae4(0x244)](parentListAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f8),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x35c))[a2_0x5f1ae4(0x244)](parentListAction),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x206))['description'](a2_0x5f1ae4(0x2ae))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24e),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x23e2d0,_0x1b1cee)=>{const _0x368fac=a2_0x5f1ae4,_0x372948=new ParentSegmentPullCommand(),_0x1ded2c=program[_0x368fac(0x2b7)](),_0x53d8d2=await createTDXInstance(_0x1ded2c),_0x1b18a8=await _0x372948[_0x368fac(0x22e)]({'options':{..._0x1ded2c,..._0x1b1cee},'args':_0x23e2d0?[_0x23e2d0]:[],'tdx':_0x53d8d2});process[_0x368fac(0x25a)](_0x1b18a8);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1fb))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ad))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),'Skip\x20confirmation\x20prompt')[a2_0x5f1ae4(0x244)](async(_0x41f103,_0x348b62)=>{const _0x174a52=a2_0x5f1ae4,_0x231865=new ParentSegmentPushCommand(),_0x2d0ad8=program[_0x174a52(0x2b7)](),_0x3c659a=await createTDXInstance(_0x2d0ad8),_0x34bb8c=await _0x231865['run']({'options':{..._0x2d0ad8,..._0x348b62},'args':_0x41f103?[_0x41f103]:[],'tdx':_0x3c659a});process['exit'](_0x34bb8c);}),parentCmd['command'](a2_0x5f1ae4(0x1d0))[a2_0x5f1ae4(0x348)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1e7))['option'](a2_0x5f1ae4(0x2a0),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x268))['option'](a2_0x5f1ae4(0x202),a2_0x5f1ae4(0x19a))[a2_0x5f1ae4(0x1b6)]('--interval\x20<range>',a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x4432ae,_0x76282a)=>{const _0x49f8ea=a2_0x5f1ae4,_0x420af0=new ParentSegmentValidateCommand(),_0x3c9da3=program[_0x49f8ea(0x2b7)](),_0x484352=await createTDXInstance(_0x3c9da3),_0x33f26d=await _0x420af0[_0x49f8ea(0x22e)]({'options':{..._0x3c9da3,..._0x76282a},'args':_0x4432ae?[_0x4432ae]:[],'tdx':_0x484352});process[_0x49f8ea(0x25a)](_0x33f26d);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2b3))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1f7))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x30e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x1af))['option']('--enriched',a2_0x5f1ae4(0x24b))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d7),a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x2696ad,_0x3d31fc)=>{const _0x39f1a5=a2_0x5f1ae4,_0x22e5c0=new ParentSegmentPreviewCommand(),_0x1d7720=program[_0x39f1a5(0x2b7)](),_0x21f040=await createTDXInstance(_0x1d7720),_0xd9161=await _0x22e5c0[_0x39f1a5(0x22e)]({'options':{..._0x1d7720,..._0x3d31fc},'args':_0x2696ad?[_0x2696ad]:[],'tdx':_0x21f040});process[_0x39f1a5(0x25a)](_0xd9161);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1be))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e4))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x385330,_0x5879ce)=>{const _0x1de62a=a2_0x5f1ae4,_0x5050ba=new ParentSegmentRunCommand(),_0x4a3b9a=program[_0x1de62a(0x2b7)](),_0x3ed135=await createTDXInstance(_0x4a3b9a),_0x4427d2=await _0x5050ba[_0x1de62a(0x22e)]({'options':{..._0x4a3b9a,..._0x5879ce},'args':_0x385330?[_0x385330]:[],'tdx':_0x3ed135});process[_0x1de62a(0x25a)](_0x4427d2);});const parentSegmentCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2d7))[a2_0x5f1ae4(0x2fb)]('ps')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x212));parentSegmentCmd['command'](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x365))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24e),a2_0x5f1ae4(0x2aa))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x36e),a2_0x5f1ae4(0x1e8))[a2_0x5f1ae4(0x244)](async(_0x2cec96,_0x1edc71)=>{const _0x28050a=a2_0x5f1ae4,_0x2df243=new ParentSegmentPullCommand(),_0x2009a0=program[_0x28050a(0x2b7)](),_0x5d4fba=await createTDXInstance(_0x2009a0),_0x59157e=await _0x2df243[_0x28050a(0x22e)]({'options':{..._0x2009a0,..._0x1edc71},'args':_0x2cec96?[_0x2cec96]:[],'tdx':_0x5d4fba});process[_0x28050a(0x25a)](_0x59157e);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('push\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x27e))['option'](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](async(_0x443769,_0x561e5a)=>{const _0x5dd796=a2_0x5f1ae4,_0x191c3b=new ParentSegmentPushCommand(),_0x51f746=program[_0x5dd796(0x2b7)](),_0x2a920b=await createTDXInstance(_0x51f746),_0x89b952=await _0x191c3b[_0x5dd796(0x22e)]({'options':{..._0x51f746,..._0x561e5a},'args':_0x443769?[_0x443769]:[],'tdx':_0x2a920b});process[_0x5dd796(0x25a)](_0x89b952);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x319))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2f3))['option'](a2_0x5f1ae4(0x2c5),'Show\x20only\x20master\x20table\x20validation')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x388))['option'](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x268))[a2_0x5f1ae4(0x1b6)]('--enriched',a2_0x5f1ae4(0x19a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d7),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0xadb49c,_0xd3ab6b)=>{const _0x629b0c=a2_0x5f1ae4,_0x55811b=new ParentSegmentValidateCommand(),_0x34fbc9=program[_0x629b0c(0x2b7)](),_0xf3ad47=await createTDXInstance(_0x34fbc9),_0x20934b=await _0x55811b[_0x629b0c(0x22e)]({'options':{..._0x34fbc9,..._0xd3ab6b},'args':_0xadb49c?[_0xadb49c]:[],'tdx':_0xf3ad47});process[_0x629b0c(0x25a)](_0x20934b);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x199))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1f7))['option'](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x30e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ec),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x202),a2_0x5f1ae4(0x24b))['option'](a2_0x5f1ae4(0x1d7),a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x570a5a,_0x936c37)=>{const _0x165df7=a2_0x5f1ae4,_0x586c51=new ParentSegmentPreviewCommand(),_0x5e5c5a=program['opts'](),_0x362626=await createTDXInstance(_0x5e5c5a),_0x4b9136=await _0x586c51[_0x165df7(0x22e)]({'options':{..._0x5e5c5a,..._0x936c37},'args':_0x570a5a?[_0x570a5a]:[],'tdx':_0x362626});process['exit'](_0x4b9136);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x1be))[a2_0x5f1ae4(0x348)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x5f0517,_0x554684)=>{const _0x494c50=a2_0x5f1ae4,_0x58ecad=new ParentSegmentRunCommand(),_0x84f8aa=program[_0x494c50(0x2b7)](),_0x3733b1=await createTDXInstance(_0x84f8aa),_0x484a3f=await _0x58ecad['run']({'options':{..._0x84f8aa,..._0x554684},'args':_0x5f0517?[_0x5f0517]:[],'tdx':_0x3733b1});process[_0x494c50(0x25a)](_0x484a3f);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x184))[a2_0x5f1ae4(0x348)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5f1ae4(0x1b6)]('--json',a2_0x5f1ae4(0x236))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),'Output\x20as\x20JSON\x20Lines')[a2_0x5f1ae4(0x244)](async(_0x1d06fd,_0x4c5a8a)=>{const _0x109bf4=a2_0x5f1ae4,_0x47f733=new ParentSegmentFieldsCommand(),_0x253ed8=program[_0x109bf4(0x2b7)](),_0x5ca35b=await createTDXInstance(_0x253ed8),_0x3f724c=await _0x47f733['run']({'options':{..._0x253ed8,..._0x4c5a8a},'args':_0x1d06fd?[_0x1d06fd]:[],'tdx':_0x5ca35b});process['exit'](_0x3f724c);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('view\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x236))['option'](a2_0x5f1ae4(0x3a9),'Output\x20as\x20JSON\x20Lines')[a2_0x5f1ae4(0x244)](async(_0x354cba,_0x382618)=>{const _0x4626e0=new ParentSegmentViewCommand(),_0x55c29b=program['opts'](),_0x44d19c=await createTDXInstance(_0x55c29b),_0x392fc7=await _0x4626e0['run']({'options':{..._0x55c29b,..._0x382618},'args':_0x354cba?[_0x354cba]:[],'tdx':_0x44d19c});process['exit'](_0x392fc7);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17e))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x5f1ae4(0x1b2),'Output\x20as\x20JSON')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),a2_0x5f1ae4(0x1db))[a2_0x5f1ae4(0x244)](async(_0xaf65a6,_0x281aa0)=>{const _0x161224=a2_0x5f1ae4,_0x41a2b9=new ParentSegmentDescCommand(),_0x420c5b=program[_0x161224(0x2b7)](),_0x37ecf8=await createTDXInstance(_0x420c5b),_0x1e209f=await _0x41a2b9['run']({'options':{..._0x420c5b,..._0x281aa0},'args':_0xaf65a6?[_0xaf65a6]:[],'tdx':_0x37ecf8});process[_0x161224(0x25a)](_0x1e209f);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2e8))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2b8))[a2_0x5f1ae4(0x1b6)]('--json','Output\x20as\x20JSON')[a2_0x5f1ae4(0x1b6)]('--jsonl',a2_0x5f1ae4(0x1db))['action'](async(_0x3b9930,_0x3f25f1)=>{const _0x4082c8=a2_0x5f1ae4,_0x531249=new ParentSegmentSQLCommand(),_0x148545=program[_0x4082c8(0x2b7)](),_0x391a24=await createTDXInstance(_0x148545),_0x3665b0=await _0x531249[_0x4082c8(0x22e)]({'options':{..._0x148545,..._0x3f25f1},'args':_0x3b9930?[_0x3b9930]:[],'tdx':_0x391a24});process['exit'](_0x3665b0);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('show\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x31c))['option'](a2_0x5f1ae4(0x2c4),'Limit\x20number\x20of\x20rows')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x236))['option']('--jsonl',a2_0x5f1ae4(0x1db))[a2_0x5f1ae4(0x244)](async(_0x258eb1,_0x2fa0da)=>{const _0xe87532=a2_0x5f1ae4,_0x1075e0=new ParentSegmentShowCommand(),_0x4af295=program[_0xe87532(0x2b7)](),_0x323008=await createTDXInstance(_0x4af295),_0x3c5e54=await _0x1075e0['run']({'options':{..._0x4af295,..._0x2fa0da},'args':_0x258eb1?[_0x258eb1]:[],'tdx':_0x323008});process[_0xe87532(0x25a)](_0x3c5e54);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f7))['description'](a2_0x5f1ae4(0x344))[a2_0x5f1ae4(0x244)](async(_0x1ef510,_0x3f2649)=>{const _0x10c8a0=a2_0x5f1ae4,_0x2c3716=new UseCommand(),_0xb151db=program[_0x10c8a0(0x2b7)](),_0x4e2489=_0x1ef510?[_0x10c8a0(0x2a8),_0x1ef510]:[],_0x4e931a=await _0x2c3716[_0x10c8a0(0x22e)]({'options':{..._0xb151db,..._0x3f2649},'args':_0x4e2489,'tdx':null});process['exit'](_0x4e931a);}),parentCmd['command'](a2_0x5f1ae4(0x263))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34a))['requiredOption'](a2_0x5f1ae4(0x384),'Master\x20database\x20name')[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x31f),a2_0x5f1ae4(0x292))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Parent\x20segment\x20description')['option'](a2_0x5f1ae4(0x32a),a2_0x5f1ae4(0x288))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x394),a2_0x5f1ae4(0x1a5))[a2_0x5f1ae4(0x1b6)]('--timezone\x20<tz>',a2_0x5f1ae4(0x302))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x203),a2_0x5f1ae4(0x2e9))[a2_0x5f1ae4(0x1b6)]('--attributes-file\x20<file>',a2_0x5f1ae4(0x3a5))['option'](a2_0x5f1ae4(0x2e4),a2_0x5f1ae4(0x221))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x27f),a2_0x5f1ae4(0x2dd))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x38d),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x5f1ae4(0x17b),a2_0x5f1ae4(0x326))[a2_0x5f1ae4(0x244)](async(_0x27d660,_0x14de47)=>{const _0x26a483=a2_0x5f1ae4,_0x4ce4e5=new ParentSegmentCreateCommand(),_0xb92155=program[_0x26a483(0x2b7)](),_0x3c5921=await createTDXInstance(_0xb92155),_0x19326a=await _0x4ce4e5[_0x26a483(0x22e)]({'options':{..._0xb92155,..._0x14de47},'args':[_0x27d660],'tdx':_0x3c5921});process[_0x26a483(0x25a)](_0x19326a);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x371))[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x5f1ae4(0x1b6)]('--description\x20<text>','Updated\x20description')['option'](a2_0x5f1ae4(0x32a),a2_0x5f1ae4(0x1a3))['option']('--schedule-option\x20<value>',a2_0x5f1ae4(0x378))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),a2_0x5f1ae4(0x2ba))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ac),a2_0x5f1ae4(0x2a2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x229),a2_0x5f1ae4(0x361))[a2_0x5f1ae4(0x1b6)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')['option'](a2_0x5f1ae4(0x2e7),a2_0x5f1ae4(0x1e6))[a2_0x5f1ae4(0x244)](async(_0x26ad58,_0x58b5f4)=>{const _0x4b47cb=a2_0x5f1ae4,_0x1f0d1d=new ParentSegmentUpdateCommand(),_0x34cd35=program[_0x4b47cb(0x2b7)](),_0x516abd=await createTDXInstance(_0x34cd35),_0x5e4aac=await _0x1f0d1d[_0x4b47cb(0x22e)]({'options':{..._0x34cd35,..._0x58b5f4},'args':[_0x26ad58],'tdx':_0x516abd});process[_0x4b47cb(0x25a)](_0x5e4aac);}),folderCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x22f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1a8))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Folder\x20description')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ab),a2_0x5f1ae4(0x2d8))[a2_0x5f1ae4(0x244)](async(_0x123710,_0x2c6ed0,_0x118fe8)=>{const _0x2a462a=a2_0x5f1ae4,_0x34b175=new SegmentFolderCreateCommand(),_0x3d1f0a=program[_0x2a462a(0x2b7)](),_0x2d0d59=await createTDXInstance(_0x3d1f0a),_0x236523=await _0x34b175[_0x2a462a(0x22e)]({'options':{..._0x3d1f0a,..._0x118fe8},'args':[_0x123710,_0x2c6ed0],'tdx':_0x2d0d59});process[_0x2a462a(0x25a)](_0x236523);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1bd))['description'](a2_0x5f1ae4(0x373))[a2_0x5f1ae4(0x244)](async(_0x1335ee,_0x3f1403)=>{const _0x5c98fb=a2_0x5f1ae4,_0x266be1=new ActivationsCommand(),_0x40b38b=program['opts'](),_0x51473b=await createTDXInstance(_0x40b38b),_0x2babf8=await _0x266be1['run']({'options':{..._0x40b38b,..._0x3f1403},'args':[_0x1335ee],'tdx':_0x51473b});process[_0x5c98fb(0x25a)](_0x2babf8);});const workflowCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2df))[a2_0x5f1ae4(0x2fb)]('wf')[a2_0x5f1ae4(0x348)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x396))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x185)),wfProjectListAction=async(_0x1cd089,_0x4440ea)=>{const _0x435855=a2_0x5f1ae4,_0x232362=new WorkflowProjectsCommand(),_0x5afb2a=program[_0x435855(0x2b7)](),_0x3e946a=await createTDXInstance(_0x5afb2a),_0x52af7c=await _0x232362['run']({'options':{..._0x5afb2a,..._0x4440ea},'args':_0x1cd089?[_0x1cd089]:[],'tdx':_0x3e946a});process[_0x435855(0x25a)](_0x52af7c);};wfProjectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x198))[a2_0x5f1ae4(0x244)](wfProjectListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x25d))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x215))[a2_0x5f1ae4(0x244)](wfProjectListAction);const wfWorkflowListAction=async(_0x544b2c,_0x340647)=>{const _0x4586c3=a2_0x5f1ae4,_0x2b5f1a=new WorkflowWorkflowsCommand(),_0x4e1c51=program[_0x4586c3(0x2b7)](),_0x377140=await createTDXInstance(_0x4e1c51),_0x32c4a5=await _0x2b5f1a['run']({'options':{..._0x4e1c51,..._0x340647},'args':_0x544b2c?[_0x544b2c]:[],'tdx':_0x377140});process[_0x4586c3(0x25a)](_0x32c4a5);};function a2_0x151b(_0x34dbe5,_0xab6784){_0x34dbe5=_0x34dbe5-0x179;const _0xe2e85f=a2_0xe2e8();let _0x151b20=_0xe2e85f[_0x34dbe5];return _0x151b20;}workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x313))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x234))[a2_0x5f1ae4(0x244)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x38e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x21b)),wfSessionListAction=async(_0x39cc69,_0x362ea9)=>{const _0x15c241=a2_0x5f1ae4,_0x5a803a=new WorkflowSessionsCommand(),_0x155cb8=program[_0x15c241(0x2b7)](),_0xeef1cc=await createTDXInstance(_0x155cb8),_0x35f352=await _0x5a803a['run']({'options':{..._0x155cb8,..._0x362ea9},'args':_0x39cc69?[_0x39cc69]:[],'tdx':_0xeef1cc});process[_0x15c241(0x25a)](_0x35f352);};wfSessionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x258))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2af))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x335))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1a7),a2_0x5f1ae4(0x354))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x328),a2_0x5f1ae4(0x327))['action'](wfSessionListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x342))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x335))[a2_0x5f1ae4(0x1b6)]('--from\x20<timestamp>',a2_0x5f1ae4(0x354))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x328),a2_0x5f1ae4(0x327))[a2_0x5f1ae4(0x244)](wfSessionListAction);const wfAttemptListAction=async(_0x417183,_0x1c91f0)=>{const _0x518070=a2_0x5f1ae4,_0x3bf10a=new WorkflowAttemptsCommand(),_0x208c9a=program['opts'](),_0x49632b=await createTDXInstance(_0x208c9a),_0x6ce0b1=await _0x3bf10a[_0x518070(0x22e)]({'options':{..._0x208c9a,..._0x1c91f0},'args':_0x417183?[_0x417183]:[],'tdx':_0x49632b});process[_0x518070(0x25a)](_0x6ce0b1);},attemptCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x187))[a2_0x5f1ae4(0x348)]('Workflow\x20attempt\x20management')['argument'](a2_0x5f1ae4(0x31e),a2_0x5f1ae4(0x1f4))[a2_0x5f1ae4(0x358)](a2_0x5f1ae4(0x23a),a2_0x5f1ae4(0x2ee))[a2_0x5f1ae4(0x358)](a2_0x5f1ae4(0x304),a2_0x5f1ae4(0x38f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x20c),a2_0x5f1ae4(0x1b7))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x21e),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x20d),a2_0x5f1ae4(0x19f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x38c),a2_0x5f1ae4(0x314))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x207),a2_0x5f1ae4(0x28b))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x346),'Include\x20retried\x20attempts\x20(for\x20list)')['action'](async(_0x8d31f1,_0x125b40,_0x2725a5,_0xe8fcbc)=>{const _0x4c9969=a2_0x5f1ae4;if(_0x8d31f1===_0x4c9969(0x39e)){await wfAttemptListAction(_0x125b40,_0xe8fcbc);return;}if(!_0x8d31f1){attemptCmd['help']();return;}const _0x208b94=program['opts'](),_0x2ce9ac=await createTDXInstance(_0x208b94);let _0x54f363=0x0;if(!_0x125b40){const _0x197230=new WorkflowAttemptCommand();_0x54f363=await _0x197230['run']({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x2c3)){const _0x49d1fa=new WorkflowLogsCommand();_0x54f363=await _0x49d1fa['run']({'options':{..._0x208b94,..._0xe8fcbc},'args':_0x2725a5?[_0x8d31f1,_0x2725a5]:[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x186)){const _0x14ff2d=new WorkflowTasksCommand();_0x54f363=await _0x14ff2d[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x1c1)){const _0x131309=new WorkflowKillCommand();_0x54f363=await _0x131309[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x248)){const _0x8997b7=new WorkflowRetryCommand();_0x54f363=await _0x8997b7[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':['attempt:'+_0x8d31f1],'tdx':_0x2ce9ac});}else console[_0x4c9969(0x2a5)]('Unknown\x20action:\x20'+_0x125b40),console[_0x4c9969(0x2a5)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x54f363=0x1;}}}}process[_0x4c9969(0x25a)](_0x54f363);});attemptCmd['command'](a2_0x5f1ae4(0x258))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x5f1ae4(0x1b6)]('--include-retried','Include\x20retried\x20attempts')[a2_0x5f1ae4(0x244)](wfAttemptListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1eb))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x26d))['option']('--include-retried',a2_0x5f1ae4(0x1ca))[a2_0x5f1ae4(0x244)](wfAttemptListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2d9))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x28f))[a2_0x5f1ae4(0x1b6)]('--from-task\x20<task>',a2_0x5f1ae4(0x19e))['option'](a2_0x5f1ae4(0x38c),a2_0x5f1ae4(0x2fa))[a2_0x5f1ae4(0x244)](async(_0x1349a7,_0x2db8f5)=>{const _0xe3b033=a2_0x5f1ae4,_0x1ecca9=new WorkflowRetryCommand(),_0x2be854=program[_0xe3b033(0x2b7)](),_0x393060=await createTDXInstance(_0x2be854),_0x2dd1a2=await _0x1ecca9['run']({'options':{..._0x2be854,..._0x2db8f5},'args':[_0x1349a7],'tdx':_0x393060});process['exit'](_0x2dd1a2);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f2))['description'](a2_0x5f1ae4(0x399))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x22b),a2_0x5f1ae4(0x379),(_0x372b6b,_0x266503=[])=>[..._0x266503,_0x372b6b],[])[a2_0x5f1ae4(0x1b6)]('--session-time\x20<time>',a2_0x5f1ae4(0x2ec))[a2_0x5f1ae4(0x244)](async(_0x52b69d,_0x4e1e2a)=>{const _0x34871c=a2_0x5f1ae4,_0x38a422=new WorkflowRunCommand(),_0x567c38=program['opts'](),_0x18e705=await createTDXInstance(_0x567c38),_0x2c7d62=await _0x38a422[_0x34871c(0x22e)]({'options':{..._0x567c38,..._0x4e1e2a},'args':[_0x52b69d],'tdx':_0x18e705});process[_0x34871c(0x25a)](_0x2c7d62);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x20a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c9))[a2_0x5f1ae4(0x1b6)]('--revision\x20<revision>',a2_0x5f1ae4(0x38a))['action'](async(_0x2d4157,_0x14d639,_0x30098d)=>{const _0x391450=a2_0x5f1ae4,_0x4b334b=new WorkflowDownloadCommand(),_0x51930a=program['opts'](),_0x3ef2b9=await createTDXInstance(_0x51930a),_0x48239a=await _0x4b334b[_0x391450(0x22e)]({'options':{..._0x51930a,..._0x30098d},'args':[_0x2d4157,_0x14d639||'.'],'tdx':_0x3ef2b9});process[_0x391450(0x25a)](_0x48239a);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1e3))[a2_0x5f1ae4(0x348)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x5f1ae4(0x1b6)]('--name\x20<name>',a2_0x5f1ae4(0x26e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d6),a2_0x5f1ae4(0x271))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x39d),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x5f1ae4(0x244)](async(_0x2db5ca,_0x5ab4d3)=>{const _0x56fb76=a2_0x5f1ae4,_0xb8786b=new WorkflowPushCommand(),_0x304a3d=program[_0x56fb76(0x2b7)](),_0x4914ad=await createTDXInstance(_0x304a3d),_0xacfb91=await _0xb8786b['run']({'options':{..._0x304a3d,..._0x5ab4d3},'args':_0x2db5ca?[_0x2db5ca]:[],'tdx':_0x4914ad});process[_0x56fb76(0x25a)](_0xacfb91);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x372))[a2_0x5f1ae4(0x244)](async(_0x122469,_0x46aa8e)=>{const _0x184d0e=a2_0x5f1ae4,_0x13a81e=new WorkflowDeleteCommand(),_0x1a38c2=program[_0x184d0e(0x2b7)](),_0x1c81ad=await createTDXInstance(_0x1a38c2),_0x558238=await _0x13a81e[_0x184d0e(0x22e)]({'options':{..._0x1a38c2,..._0x46aa8e},'args':[_0x122469],'tdx':_0x1c81ad});process[_0x184d0e(0x25a)](_0x558238);});const jobCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x266))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ff)),jobListAction=async _0x5317c7=>{const _0x36245b=a2_0x5f1ae4,_0x439077=new JobListCommand(),_0x532804=program[_0x36245b(0x2b7)](),_0x2613d9=await createTDXInstance(_0x532804),_0x3d496e=await _0x439077['run']({'options':{..._0x532804,..._0x5317c7},'args':[],'tdx':_0x2613d9});process[_0x36245b(0x25a)](_0x3d496e);};jobCmd['command'](a2_0x5f1ae4(0x39e))['description'](a2_0x5f1ae4(0x1f8))[a2_0x5f1ae4(0x1b6)]('--status\x20<status>',a2_0x5f1ae4(0x2cf))[a2_0x5f1ae4(0x244)](jobListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x270),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x359))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x2cf))[a2_0x5f1ae4(0x244)](jobListAction),jobCmd[a2_0x5f1ae4(0x357)]('show\x20<job-id>')['description']('Show\x20job\x20details')[a2_0x5f1ae4(0x244)](async(_0x2913c6,_0x2746b1)=>{const _0x2e3b75=a2_0x5f1ae4,_0x4fb707=new JobShowCommand(),_0x1ca4cc=program[_0x2e3b75(0x2b7)](),_0x135301=await createTDXInstance(_0x1ca4cc),_0x26c414=await _0x4fb707['run']({'options':{..._0x1ca4cc,..._0x2746b1},'args':[_0x2913c6],'tdx':_0x135301});process[_0x2e3b75(0x25a)](_0x26c414);}),jobCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x36b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x272))[a2_0x5f1ae4(0x244)](async(_0x355c14,_0x34f9ee)=>{const _0x209c5e=a2_0x5f1ae4,_0x4e729d=new JobKillCommand(),_0x5e4ba4=program[_0x209c5e(0x2b7)](),_0x175738=await createTDXInstance(_0x5e4ba4),_0x17035f=await _0x4e729d[_0x209c5e(0x22e)]({'options':{..._0x5e4ba4,..._0x34f9ee},'args':[_0x355c14],'tdx':_0x175738});process['exit'](_0x17035f);}),jobCmd[a2_0x5f1ae4(0x357)]('submit\x20[query]')['description']('Submit\x20a\x20job')['option'](a2_0x5f1ae4(0x1b4),a2_0x5f1ae4(0x351),a2_0x5f1ae4(0x29a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),a2_0x5f1ae4(0x2d5))[a2_0x5f1ae4(0x1b6)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x5f1ae4(0x325))[a2_0x5f1ae4(0x244)](async(_0x4c4483,_0x14f82e)=>{const _0x2d4a22=a2_0x5f1ae4,_0x2ef0e8=new JobSubmitCommand(),_0x1181a3=program[_0x2d4a22(0x2b7)](),_0x21d6d7=await createTDXInstance(_0x1181a3),_0x183e4f=await _0x2ef0e8[_0x2d4a22(0x22e)]({'options':{..._0x1181a3,..._0x14f82e},'args':_0x4c4483?[_0x4c4483]:[],'tdx':_0x21d6d7});process[_0x2d4a22(0x25a)](_0x183e4f);}),jobCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x264))[a2_0x5f1ae4(0x348)]('Get\x20job\x20results')[a2_0x5f1ae4(0x244)](async(_0xddec36,_0x43d8cd)=>{const _0x431e9c=a2_0x5f1ae4,_0x4e796a=new JobResultCommand(),_0x107f26=program['opts'](),_0x530b23=await createTDXInstance(_0x107f26),_0x79d1f1=await _0x4e796a[_0x431e9c(0x22e)]({'options':{..._0x107f26,..._0x43d8cd},'args':[_0xddec36],'tdx':_0x530b23});process[_0x431e9c(0x25a)](_0x79d1f1);});const llmCmd=program[a2_0x5f1ae4(0x357)]('llm')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2cc));llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x393))['description'](a2_0x5f1ae4(0x269))[a2_0x5f1ae4(0x244)](async(_0x530700,_0x48ef88)=>{const _0x2d862b=a2_0x5f1ae4,_0x49962f=new LLMUseCommand(),_0x3dfa56=program[_0x2d862b(0x2b7)](),_0x407bc4=await createTDXInstance(_0x3dfa56),_0x343a55=await _0x49962f[_0x2d862b(0x22e)]({'options':{..._0x3dfa56,..._0x48ef88},'args':[_0x530700],'tdx':_0x407bc4});process[_0x2d862b(0x25a)](_0x343a55);}),llmCmd[a2_0x5f1ae4(0x357)]('models')['description'](a2_0x5f1ae4(0x1fa))['action'](async _0x1b01ea=>{const _0x1b6c02=a2_0x5f1ae4,_0xb78145=new LLMModelsCommand(),_0x3c0f18=program[_0x1b6c02(0x2b7)](),_0x862387=await createTDXInstance(_0x3c0f18),_0x3d5ca9=await _0xb78145[_0x1b6c02(0x22e)]({'options':{..._0x3c0f18,..._0x1b01ea},'args':[],'tdx':_0x862387});process['exit'](_0x3d5ca9);});const projectCmd=llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x396))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x37f)),llmProjectListAction=async(_0xc3e081,_0x5595b7)=>{const _0x3e4679=a2_0x5f1ae4,_0x5b4cab=new LLMProjectsCommand(),_0x45ae33=program[_0x3e4679(0x2b7)](),_0x6d7a6=await createTDXInstance(_0x45ae33),_0x353278=await _0x5b4cab[_0x3e4679(0x22e)]({'options':{..._0x45ae33,..._0x5595b7},'args':_0xc3e081?[_0xc3e081]:[],'tdx':_0x6d7a6});process[_0x3e4679(0x25a)](_0x353278);};projectCmd['command'](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x356))['option']('-w,\x20--web',a2_0x5f1ae4(0x322))[a2_0x5f1ae4(0x244)](llmProjectListAction),llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x25d))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x22d))[a2_0x5f1ae4(0x1b6)]('-w,\x20--web','Show\x20console\x20URLs')[a2_0x5f1ae4(0x244)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x5f1ae4(0x348)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Project\x20description')[a2_0x5f1ae4(0x244)](async(_0x19e9c8,_0xa11ce4)=>{const _0x26909a=a2_0x5f1ae4,_0x32f976=new LLMProjectCreateCommand(),_0x4abc9c=program[_0x26909a(0x2b7)](),_0x331564=await createTDXInstance(_0x4abc9c),_0x4d02f9=await _0x32f976['run']({'options':{..._0x4abc9c,..._0xa11ce4},'args':[_0x19e9c8],'tdx':_0x331564});process[_0x26909a(0x25a)](_0x4d02f9);}),projectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x296))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x257))[a2_0x5f1ae4(0x244)](async(_0x44d271,_0x353b66)=>{const _0x5c4adf=a2_0x5f1ae4,_0x11797c=new LLMProjectDeleteCommand(),_0x2005bf=program['opts'](),_0xe7f66b=await createTDXInstance(_0x2005bf),_0x5c9c50=await _0x11797c[_0x5c4adf(0x22e)]({'options':{..._0x2005bf,..._0x353b66},'args':[_0x44d271],'tdx':_0xe7f66b});process[_0x5c4adf(0x25a)](_0x5c9c50);}),projectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x30c))['description']('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x228),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x5f1ae4(0x244)](async(_0xd2282a,_0x1f088d)=>{const _0x260388=a2_0x5f1ae4,_0x2662cd=new LLMProjectBackupCommand(),_0x5ce682=program['opts'](),_0x2023da=await createTDXInstance(_0x5ce682),_0x41bd60=await _0x2662cd[_0x260388(0x22e)]({'options':{..._0x5ce682,..._0x1f088d},'args':[_0xd2282a],'tdx':_0x2023da});process[_0x260388(0x25a)](_0x41bd60);}),projectCmd['command']('restore\x20<folder>')[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option'](a2_0x5f1ae4(0x2e2),a2_0x5f1ae4(0x24c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x5f1ae4(0x244)](async(_0x43c2b6,_0x441b85)=>{const _0x4390ab=a2_0x5f1ae4,_0x305aa7=new LLMProjectRestoreCommand(),_0x2b4400=program['opts'](),_0x18955f=await createTDXInstance(_0x2b4400),_0x2e1ae5=await _0x305aa7[_0x4390ab(0x22e)]({'options':{..._0x2b4400,..._0x441b85},'args':[_0x43c2b6],'tdx':_0x18955f});process[_0x4390ab(0x25a)](_0x2e1ae5);});const llmAgentListAction=async(_0x3ac4c9,_0x1e8635)=>{const _0x4173ce=new LLMAgentsCommand(),_0x5683ff=program['opts'](),_0x5e380b=await createTDXInstance(_0x5683ff),_0x451248=await _0x4173ce['run']({'options':{..._0x5683ff,..._0x1e8635},'args':_0x3ac4c9?[_0x3ac4c9]:[],'tdx':_0x5e380b});process['exit'](_0x451248);};llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1aa))[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x2fd))['action'](llmAgentListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1aa))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),'Show\x20agent\x20chat\x20URLs')[a2_0x5f1ae4(0x244)](llmAgentListAction),llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x240))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x233))[a2_0x5f1ae4(0x1b6)]('--last',a2_0x5f1ae4(0x22c))[a2_0x5f1ae4(0x244)](async(_0x2dda62,_0x1241f1)=>{const _0x234ad9=a2_0x5f1ae4,_0x5881f2=new LLMHistoryCommand(),_0xcfc217=program[_0x234ad9(0x2b7)](),_0x2c7b5a=await createTDXInstance(_0xcfc217),_0x4b73df=await _0x5881f2['run']({'options':{..._0xcfc217,..._0x1241f1},'args':_0x2dda62?[_0x2dda62]:[],'tdx':_0x2c7b5a});process[_0x234ad9(0x25a)](_0x4b73df);}),llmCmd['command'](a2_0x5f1ae4(0x2a7))[a2_0x5f1ae4(0x348)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x389),a2_0x5f1ae4(0x265),'4000')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x26f),a2_0x5f1ae4(0x18d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1de),a2_0x5f1ae4(0x1c8))[a2_0x5f1ae4(0x244)](async _0x16daea=>{const _0x19ace9=a2_0x5f1ae4,_0x55b793=new LLMProxyCommand(),_0x4e57e4=program[_0x19ace9(0x2b7)](),_0x26eaba=await createTDXInstance(_0x4e57e4),_0x5570a5={..._0x16daea,'port':_0x16daea[_0x19ace9(0x2e5)]?parseInt(_0x16daea['port'],0xa):undefined},_0x40de41=await _0x55b793[_0x19ace9(0x22e)]({'options':{..._0x4e57e4,..._0x5570a5},'args':[],'tdx':_0x26eaba});process['exit'](_0x40de41);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x194))[a2_0x5f1ae4(0x224)]('[options]\x20--\x20[claude-code-args...]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33f))['option']('--model\x20<name>',a2_0x5f1ae4(0x2ed),a2_0x5f1ae4(0x2b9))['option'](a2_0x5f1ae4(0x192),'Continue\x20most\x20recent\x20conversation')['option']('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x274),a2_0x5f1ae4(0x1a6))[a2_0x5f1ae4(0x273)]()[a2_0x5f1ae4(0x201)](!![])['addHelpText']('after',a2_0x5f1ae4(0x214))[a2_0x5f1ae4(0x244)](async(_0x18b891,_0xcabd24)=>{const _0x2b7dc6=a2_0x5f1ae4,_0x432625=program[_0x2b7dc6(0x2b7)](),_0x50b306=Array[_0x2b7dc6(0x309)](_0x18b891)?_0x18b891:[];if(_0x50b306[0x0]==='statusline'){const _0x502af2=new ClaudeStatuslineCommand(),_0xe3bb7e=await _0x502af2['run']({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306[_0x2b7dc6(0x2bd)](0x1),'tdx':null});process[_0x2b7dc6(0x25a)](_0xe3bb7e);}if(_0x50b306[0x0]==='usage'){const _0x30739a=new ClaudeUsageCommand(),_0xa92793=await _0x30739a[_0x2b7dc6(0x22e)]({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306['slice'](0x1),'tdx':null});process[_0x2b7dc6(0x25a)](_0xa92793);}const _0x5d4986=new ClaudeCommand(),_0x4a1ae8=await createTDXInstance(_0x432625),_0x41dbf2=await _0x5d4986['run']({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306,'tdx':_0x4a1ae8});process['exit'](_0x41dbf2);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x298))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x297))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x321),'Clear\x20session\x20context')['action'](async _0x47a294=>{const _0x3af1de=a2_0x5f1ae4,_0x317d54=new ContextCommand(),_0x7f1d2a=program['opts'](),_0x5f4814=await _0x317d54['run']({'options':{..._0x7f1d2a,..._0x47a294},'args':[],'tdx':null});process[_0x3af1de(0x25a)](_0x5f4814);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x222))[a2_0x5f1ae4(0x348)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x5f1ae4(0x1b6)]('--clear',a2_0x5f1ae4(0x1b1))[a2_0x5f1ae4(0x244)](async(_0x38541f,_0x2d45a1,_0x4a51cb)=>{const _0xcc72cd=a2_0x5f1ae4,_0x547c4d=new UseCommand(),_0x2f210b=program['opts'](),_0xa55859=[];if(_0x38541f)_0xa55859[_0xcc72cd(0x1fd)](_0x38541f);if(_0x2d45a1)_0xa55859[_0xcc72cd(0x1fd)](_0x2d45a1);const _0x11683c=await _0x547c4d['run']({'options':{..._0x2f210b,..._0x4a51cb},'args':_0xa55859,'tdx':null});process['exit'](_0x11683c);}),program['command'](a2_0x5f1ae4(0x1a1))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1c2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2e3),a2_0x5f1ae4(0x21c))[a2_0x5f1ae4(0x244)](async _0x5c0709=>{const _0x656038=a2_0x5f1ae4,_0x2c067b=new ChatsCommand(),_0x9d0592=program[_0x656038(0x2b7)](),_0x2c3acd=await createTDXInstance(_0x9d0592),_0x932879=await _0x2c067b[_0x656038(0x22e)]({'options':{..._0x9d0592,..._0x5c0709},'args':[],'tdx':_0x2c3acd});process[_0x656038(0x25a)](_0x932879);});const authCmd=program[a2_0x5f1ae4(0x357)]('auth')['description'](a2_0x5f1ae4(0x343));async function runAuthStatusCommand(_0x321110){const _0x51436c=a2_0x5f1ae4,_0x48dbe6=new AuthStatusCommand(),_0x55b4d7=program[_0x51436c(0x2b7)](),_0x2b388c=await createTDXInstance(_0x55b4d7),_0x4f51d0=await _0x48dbe6[_0x51436c(0x22e)]({'options':{..._0x55b4d7,..._0x321110},'args':[],'tdx':_0x2b388c});process[_0x51436c(0x25a)](_0x4f51d0);}authCmd[a2_0x5f1ae4(0x244)](runAuthStatusCommand),authCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x31a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1b8))[a2_0x5f1ae4(0x244)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2d3))['addHelpText'](a2_0x5f1ae4(0x295),a2_0x5f1ae4(0x26c))[a2_0x5f1ae4(0x244)](async _0x12d0ac=>{const _0x486dc0=a2_0x5f1ae4,_0x4271c2=new AuthSetupCommand(),_0x18a133=program['opts'](),_0x23fdd2=await createTDXInstance(_0x18a133),_0x11a10c=await _0x4271c2[_0x486dc0(0x22e)]({'options':{..._0x18a133,..._0x12d0ac},'args':[],'tdx':_0x23fdd2});process[_0x486dc0(0x25a)](_0x11a10c);}),authCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1c7))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29b))[a2_0x5f1ae4(0x3a8)](a2_0x5f1ae4(0x295),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x5f1ae4(0x244)](async _0x2a4a12=>{const _0x27c8ae=a2_0x5f1ae4,_0x572653=new AuthClearCommand(),_0x5c6a38=program['opts'](),_0x32947e=await _0x572653['run']({'options':{..._0x5c6a38,..._0x2a4a12},'args':[],'tdx':null});process[_0x27c8ae(0x25a)](_0x32947e);});const userCmd=program['command']('user')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x398)),userListAction=async _0x548825=>{const _0xe4b3f8=a2_0x5f1ae4,_0x41dd36=new UserListCommand(),_0x326219=program['opts'](),_0xce6508=await createTDXInstance(_0x326219),_0x10657c=await _0x41dd36['run']({'options':{..._0x326219,..._0x548825},'args':[],'tdx':_0xce6508});process[_0xe4b3f8(0x25a)](_0x10657c);};userCmd['action'](async _0x56930f=>{const _0x5cf304=a2_0x5f1ae4,_0x17f0ac=new UserCommand(),_0x4ea0b8=program[_0x5cf304(0x2b7)](),_0x1d3add=await createTDXInstance(_0x4ea0b8),_0x200dc6=await _0x17f0ac[_0x5cf304(0x22e)]({'options':{..._0x4ea0b8,..._0x56930f},'args':[],'tdx':_0x1d3add});process[_0x5cf304(0x25a)](_0x200dc6);}),userCmd[a2_0x5f1ae4(0x357)]('list')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x380))[a2_0x5f1ae4(0x244)](userListAction),program['command'](a2_0x5f1ae4(0x39c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x349))['action'](userListAction),program[a2_0x5f1ae4(0x357)]('profiles')['description'](a2_0x5f1ae4(0x241))['action'](async _0x39ae05=>{const _0x126fde=a2_0x5f1ae4,_0x1c83da=new ProfilesCommand(),_0x29564a=program[_0x126fde(0x2b7)](),_0x3c4411=await _0x1c83da['run']({'options':{..._0x29564a,..._0x39ae05},'args':[],'tdx':null});process[_0x126fde(0x25a)](_0x3c4411);});const engageCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x366))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x30d)),createEngageAction=_0xb9ec81=>{return async(_0x1a7d86,_0x4d10ca)=>{const _0x42341b=a2_0x151b,_0x41120b=new _0xb9ec81(),_0x991be4=program[_0x42341b(0x2b7)](),_0x44d78b=await createTDXInstance(_0x991be4),_0x4a2aa0=await _0x41120b[_0x42341b(0x22e)]({'options':{..._0x991be4,..._0x4d10ca},'args':[_0x1a7d86],'tdx':_0x44d78b});process['exit'](_0x4a2aa0);};},createEngageNoArgAction=_0x14602f=>{return async _0x578854=>{const _0x50f599=a2_0x151b,_0x3e9fad=new _0x14602f(),_0x2d7f23=program[_0x50f599(0x2b7)](),_0x4bc3b2=await createTDXInstance(_0x2d7f23),_0x13be30=await _0x3e9fad[_0x50f599(0x22e)]({'options':{..._0x2d7f23,..._0x578854},'args':[],'tdx':_0x4bc3b2});process[_0x50f599(0x25a)](_0x13be30);};},campaignCmd=engageCmd['command'](a2_0x5f1ae4(0x188))['description'](a2_0x5f1ae4(0x377)),campaignListAction=async(_0x1cd2b5,_0x1b081e)=>{const _0x58189f=a2_0x5f1ae4,_0x475819=new EngageCampaignsCommand(),_0x3f9ce1=program[_0x58189f(0x2b7)](),_0x9cad79=await createTDXInstance(_0x3f9ce1),_0x4454ba=await _0x475819[_0x58189f(0x22e)]({'options':{..._0x3f9ce1,..._0x1b081e},'args':_0x1cd2b5?[_0x1cd2b5]:[],'tdx':_0x9cad79});process[_0x58189f(0x25a)](_0x4454ba);};campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x254))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x267),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](campaignListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x347))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x267),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x213))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](campaignListAction),campaignCmd[a2_0x5f1ae4(0x357)]('show\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['option'](a2_0x5f1ae4(0x279),a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17c))['description'](a2_0x5f1ae4(0x1a4))['requiredOption'](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x252))[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x267),a2_0x5f1ae4(0x333))['option']('--workspace\x20<name>',a2_0x5f1ae4(0x2ef))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x362),'Campaign\x20description')['option']('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x225),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x5f1ae4(0x1b6)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5f1ae4(0x2d1),a2_0x5f1ae4(0x1e0))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1c5))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x32c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x1b3))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>','Campaign\x20description')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ae),a2_0x5f1ae4(0x210))['option'](a2_0x5f1ae4(0x225),a2_0x5f1ae4(0x318))[a2_0x5f1ae4(0x1b6)]('--json-columns\x20<cols>',a2_0x5f1ae4(0x37a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2d1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),a2_0x5f1ae4(0x262))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d1))['description']('Delete\x20a\x20campaign')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['option'](a2_0x5f1ae4(0x1f9),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5f1ae4(0x357)]('launch\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x25e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x300))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ee))['option'](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1b9))[a2_0x5f1ae4(0x348)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x5f1ae4(0x196),'Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x5f1ae4(0x2b4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e1))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x34b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33c)),templateListAction=async(_0x2188e0,_0x12c46f)=>{const _0x460b4a=a2_0x5f1ae4,_0x542ef3=new EngageTemplatesCommand(),_0x3fbe2e=program['opts'](),_0xd79c1=await createTDXInstance(_0x3fbe2e),_0x264541=await _0x542ef3[_0x460b4a(0x22e)]({'options':{..._0x3fbe2e,..._0x12c46f},'args':_0x2188e0?[_0x2188e0]:[],'tdx':_0xd79c1});process['exit'](_0x264541);};templateCmd[a2_0x5f1ae4(0x357)]('list\x20[pattern]')['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option']('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](templateListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x30a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1da))['option']('--workspace\x20<name>','Workspace\x20name')['action'](templateListAction),templateCmd['command']('show\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x364))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)]('--full',a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1dc))['requiredOption']('--name\x20<name>','Template\x20name')[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x308),'Email\x20subject\x20template')['requiredOption'](a2_0x5f1ae4(0x24d),a2_0x5f1ae4(0x2b1))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x2ef))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x336),a2_0x5f1ae4(0x2f5))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x36c),a2_0x5f1ae4(0x1cc))[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34e))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x290))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x308),'Email\x20subject\x20template')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24d),a2_0x5f1ae4(0x2b1))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x336),a2_0x5f1ae4(0x2f5))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x5f1ae4(0x1d1))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x286))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1f9),'Skip\x20confirmation\x20prompt')[a2_0x5f1ae4(0x244)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x5f1ae4(0x2da))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x277)),workspaceListAction=async(_0x251cb9,_0x38839f)=>{const _0x4eae7b=a2_0x5f1ae4,_0x3d6581=new EngageWorkspacesCommand(),_0x4de155=program['opts'](),_0x4f1d98=await createTDXInstance(_0x4de155),_0x39b914=await _0x3d6581[_0x4eae7b(0x22e)]({'options':{..._0x4de155,..._0x38839f},'args':_0x251cb9?[_0x251cb9]:[],'tdx':_0x4f1d98});process[_0x4eae7b(0x25a)](_0x39b914);};workspaceCmd[a2_0x5f1ae4(0x357)]('list\x20[pattern]')[a2_0x5f1ae4(0x348)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5f1ae4(0x244)](workspaceListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x291))['description'](a2_0x5f1ae4(0x381))['action'](workspaceListAction),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x261))['description'](a2_0x5f1ae4(0x1bb))[a2_0x5f1ae4(0x1b6)]('--full',a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x5f1ae4(0x17c))['description'](a2_0x5f1ae4(0x28e))[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>',a2_0x5f1ae4(0x2a3))[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command']('update\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x1bf))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>',a2_0x5f1ae4(0x2a3))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d1))[a2_0x5f1ae4(0x348)]('Delete\x20a\x20workspace')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1f9),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a2))['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x5f1ae4(0x357)]('connection')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x353)),connectionListAction=async _0x2043e0=>{const _0x1aa81a=a2_0x5f1ae4,_0x1f8eb6=new ConnectionListCommand(),_0x4fc351=program['opts'](),_0xd2eafe=await createTDXInstance(_0x4fc351),_0x6b0b5e=await _0x1f8eb6['run']({'options':{..._0x4fc351,..._0x2043e0},'args':[],'tdx':_0xd2eafe});process[_0x1aa81a(0x25a)](_0x6b0b5e);};connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x39e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2ea))[a2_0x5f1ae4(0x244)](connectionListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x311),{'hidden':!![]})[a2_0x5f1ae4(0x348)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x5f1ae4(0x244)](connectionListAction),connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1a9))['description']('Show\x20connection\x20details\x20by\x20name')['action'](async(_0x224612,_0x18bbf2)=>{const _0x2a25bc=a2_0x5f1ae4,_0x47109b=new ConnectionShowCommand(),_0xeb429f=program[_0x2a25bc(0x2b7)](),_0x380a9d=await createTDXInstance(_0xeb429f),_0x20df2f=await _0x47109b[_0x2a25bc(0x22e)]({'options':{..._0xeb429f,..._0x18bbf2},'args':[_0x224612],'tdx':_0x380a9d});process[_0x2a25bc(0x25a)](_0x20df2f);}),connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2db))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2d2))[a2_0x5f1ae4(0x244)](async(_0x505239,_0x1f1bb4)=>{const _0x4db623=a2_0x5f1ae4,_0x2702bc=new ConnectionSchemaCommand(),_0x3c21bd=program[_0x4db623(0x2b7)](),_0x2416ef=await createTDXInstance(_0x3c21bd),_0x2100df=await _0x2702bc[_0x4db623(0x22e)]({'options':{..._0x3c21bd,..._0x1f1bb4},'args':[_0x505239],'tdx':_0x2416ef});process[_0x4db623(0x25a)](_0x2100df);}),connectionCmd['command'](a2_0x5f1ae4(0x200))[a2_0x5f1ae4(0x348)]('List\x20available\x20connector\x20types')[a2_0x5f1ae4(0x244)](async _0x28817f=>{const _0x33f7c7=a2_0x5f1ae4,_0x42c149=new ConnectionTypesCommand(),_0x53562e=program[_0x33f7c7(0x2b7)](),_0x3dfc31=await createTDXInstance(_0x53562e),_0x50468f=await _0x42c149[_0x33f7c7(0x22e)]({'options':{..._0x53562e,..._0x28817f},'args':[],'tdx':_0x3dfc31});process[_0x33f7c7(0x25a)](_0x50468f);}),connectionCmd['command'](a2_0x5f1ae4(0x39b))['description'](a2_0x5f1ae4(0x3a0))[a2_0x5f1ae4(0x244)](async(_0x1d449f,_0x19f719)=>{const _0x63f59c=a2_0x5f1ae4,_0x34cfe7=new ConnectionSettingsCommand(),_0x2d9e5f=program[_0x63f59c(0x2b7)](),_0x44a6e7=await createTDXInstance(_0x2d9e5f),_0x274a50=await _0x34cfe7[_0x63f59c(0x22e)]({'options':{..._0x2d9e5f,..._0x19f719},'args':[_0x1d449f],'tdx':_0x44a6e7});process[_0x63f59c(0x25a)](_0x274a50);});const journeyCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x281))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1d8));journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)]('List\x20journeys\x20in\x20current\x20context')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x305))[a2_0x5f1ae4(0x244)](async(_0x343afa,_0x25a874)=>{const _0x39bb92=a2_0x5f1ae4,_0x123de0=new JourneyListCommand(),_0x344d6f=program[_0x39bb92(0x2b7)](),_0x50d5ad=await createTDXInstance(_0x344d6f),_0x3a4022=await _0x123de0[_0x39bb92(0x22e)]({'options':{..._0x344d6f,..._0x25a874},'args':_0x343afa?[_0x343afa]:[],'tdx':_0x50d5ad});process['exit'](_0x3a4022);}),journeyCmd['command'](a2_0x5f1ae4(0x2f6))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2ce))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x2eb))['option'](a2_0x5f1ae4(0x2c8),'Include\x20execution\x20statistics')[a2_0x5f1ae4(0x244)](async(_0x481139,_0x23f0a5)=>{const _0x5a35c3=a2_0x5f1ae4,_0xe5a8e3=new JourneyViewCommand(),_0xc5660d=program[_0x5a35c3(0x2b7)](),_0x332def=await createTDXInstance(_0xc5660d),_0x3d24e9=await _0xe5a8e3['run']({'options':{..._0xc5660d,..._0x23f0a5},'args':[_0x481139],'tdx':_0x332def});process[_0x5a35c3(0x25a)](_0x3d24e9);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x376))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29e))[a2_0x5f1ae4(0x1b6)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x5f1ae4(0x244)](async(_0x341525,_0x24e63f)=>{const _0x5b2983=a2_0x5f1ae4,_0x3dcdb0=new JourneyStatsCommand(),_0xb7ab51=program[_0x5b2983(0x2b7)](),_0x33e992=await createTDXInstance(_0xb7ab51),_0x2a0d2a=await _0x3dcdb0[_0x5b2983(0x22e)]({'options':{..._0xb7ab51,..._0x24e63f},'args':[_0x341525],'tdx':_0x33e992});process['exit'](_0x2a0d2a);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f0))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x249))[a2_0x5f1ae4(0x244)](async(_0x29825c,_0x3d943c)=>{const _0x115ca6=a2_0x5f1ae4,_0x46ac65=new JourneyPauseCommand(),_0x32a9a3=program[_0x115ca6(0x2b7)](),_0x12e41c=await createTDXInstance(_0x32a9a3),_0x2734af=await _0x46ac65[_0x115ca6(0x22e)]({'options':{..._0x32a9a3,..._0x3d943c},'args':[_0x29825c],'tdx':_0x12e41c});process[_0x115ca6(0x25a)](_0x2734af);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x193))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2a1))[a2_0x5f1ae4(0x244)](async(_0x36b024,_0x30b23a)=>{const _0x415006=a2_0x5f1ae4,_0xfae331=new JourneyResumeCommand(),_0x363ba8=program[_0x415006(0x2b7)](),_0x2004db=await createTDXInstance(_0x363ba8),_0x7d532b=await _0xfae331[_0x415006(0x22e)]({'options':{..._0x363ba8,..._0x30b23a},'args':[_0x36b024],'tdx':_0x2004db});process[_0x415006(0x25a)](_0x7d532b);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x206))['description'](a2_0x5f1ae4(0x1ed))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['option'](a2_0x5f1ae4(0x2bf),a2_0x5f1ae4(0x1c9))[a2_0x5f1ae4(0x244)](async(_0x564194,_0x2cf38f)=>{const _0x5dc3a2=a2_0x5f1ae4,_0x44cee9=new JourneyPullCommand(),_0x78a00e=program['opts'](),_0x3f0d54=await createTDXInstance(_0x78a00e),_0x53ece0=await _0x44cee9[_0x5dc3a2(0x22e)]({'options':{..._0x78a00e,..._0x2cf38f},'args':_0x564194?[_0x564194]:[],'tdx':_0x3f0d54});process['exit'](_0x53ece0);}),journeyCmd['command']('push\x20[target]')[a2_0x5f1ae4(0x348)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x5f1ae4(0x244)](async(_0x4d0efb,_0x299dc1)=>{const _0x5ae8e4=a2_0x5f1ae4,_0x26f5ca=new JourneyPushCommand(),_0x4a2214=program[_0x5ae8e4(0x2b7)](),_0x581d17=await createTDXInstance(_0x4a2214),_0x4eb637=await _0x26f5ca[_0x5ae8e4(0x22e)]({'options':{..._0x4a2214,..._0x299dc1},'args':_0x4d0efb?[_0x4d0efb]:[],'tdx':_0x581d17});process[_0x5ae8e4(0x25a)](_0x4eb637);});const agentSyncCmd=program[a2_0x5f1ae4(0x357)]('agent')['description'](a2_0x5f1ae4(0x18a));agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2c7))['description'](a2_0x5f1ae4(0x253))[a2_0x5f1ae4(0x1b6)]('-o,\x20--output\x20<dir>','Output\x20directory')['option']('-f,\x20--force',a2_0x5f1ae4(0x1e2))[a2_0x5f1ae4(0x244)](async(_0x1ffadb,_0x5e752d,_0x3a07e0)=>{const _0x3a08be=a2_0x5f1ae4,_0x1062da=new AgentPullCommand(),_0x3d99b5=program['opts'](),_0x126125=await createTDXInstance(_0x3d99b5),_0x2bcbd1=[];if(_0x1ffadb)_0x2bcbd1['push'](_0x1ffadb);if(_0x5e752d)_0x2bcbd1[_0x3a08be(0x1fd)](_0x5e752d);const _0x1f1be4=await _0x1062da[_0x3a08be(0x22e)]({'options':{..._0x3d99b5,..._0x3a07e0},'args':_0x2bcbd1,'tdx':_0x126125});process[_0x3a08be(0x25a)](_0x1f1be4);}),agentSyncCmd[a2_0x5f1ae4(0x357)]('push\x20[path]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x23f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x32b),'Push\x20without\x20confirmation')[a2_0x5f1ae4(0x244)](async(_0x5ddcae,_0x1e9205)=>{const _0x5bc0ce=a2_0x5f1ae4,_0x57f772=new AgentPushCommand(),_0x4da38a=program['opts'](),_0x4eaf9d=await createTDXInstance(_0x4da38a),_0x487ebe=await _0x57f772['run']({'options':{..._0x4da38a,..._0x1e9205},'args':_0x5ddcae?[_0x5ddcae]:[],'tdx':_0x4eaf9d});process[_0x5bc0ce(0x25a)](_0x487ebe);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x32e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x306),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x5f1ae4(0x244)](async(_0x4bad7d,_0x29d304)=>{const _0x467449=a2_0x5f1ae4,_0x22e834=new AgentCloneCommand(),_0x3a2636=program[_0x467449(0x2b7)](),_0x1798db=await createTDXInstance(_0x3a2636),_0x570ccf=await _0x22e834['run']({'options':{..._0x3a2636,..._0x29d304},'args':_0x4bad7d?[_0x4bad7d]:[],'tdx':_0x1798db});process['exit'](_0x570ccf);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x31d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x2fd))[a2_0x5f1ae4(0x244)](llmAgentListAction),agentSyncCmd[a2_0x5f1ae4(0x357)]('show\x20<agent-name>')['description'](a2_0x5f1ae4(0x208))[a2_0x5f1ae4(0x244)](async(_0x2ade6e,_0x2e3f04)=>{const _0x54425b=a2_0x5f1ae4,_0x3e54d8=new LLMAgentShowCommand(),_0x43c879=program['opts'](),_0x4b3791=await createTDXInstance(_0x43c879),_0x4b6cd9=await _0x3e54d8[_0x54425b(0x22e)]({'options':{..._0x43c879,..._0x2e3f04},'args':[_0x2ade6e],'tdx':_0x4b3791});process['exit'](_0x4b6cd9);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x263))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x32d))['option']('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x5f1ae4(0x3a3),'Model\x20type\x20(default:\x20claude-4.5-sonnet)','claude-4.5-sonnet')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x329),a2_0x5f1ae4(0x29c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x23d),a2_0x5f1ae4(0x324),'4')['option']('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x5f1ae4(0x21a))[a2_0x5f1ae4(0x244)](async(_0x1e9bf3,_0x37ed84)=>{const _0xbd94e5=a2_0x5f1ae4,_0x4574a4=new LLMAgentCreateCommand(),_0x34bd07=program[_0xbd94e5(0x2b7)](),_0x4f7f1e=await createTDXInstance(_0x34bd07),_0x207317=await _0x4574a4[_0xbd94e5(0x22e)]({'options':{..._0x34bd07,..._0x37ed84},'args':[_0x1e9bf3],'tdx':_0x4f7f1e});process[_0xbd94e5(0x25a)](_0x207317);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x29f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x190))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d4),'Agent\x20name')[a2_0x5f1ae4(0x1b6)]('--prompt\x20<text>',a2_0x5f1ae4(0x310))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x28d))['option'](a2_0x5f1ae4(0x329),a2_0x5f1ae4(0x29c))[a2_0x5f1ae4(0x244)](async(_0xa77ce3,_0x189433)=>{const _0x32db20=a2_0x5f1ae4,_0xabb5e3=new LLMAgentUpdateCommand(),_0x2d6a5c=program[_0x32db20(0x2b7)](),_0x3140fd=await createTDXInstance(_0x2d6a5c),_0x5d793a=await _0xabb5e3[_0x32db20(0x22e)]({'options':{..._0x2d6a5c,..._0x189433},'args':[_0xa77ce3],'tdx':_0x3140fd});process[_0x32db20(0x25a)](_0x5d793a);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x303))[a2_0x5f1ae4(0x348)]('Delete\x20an\x20agent')['action'](async(_0x445008,_0x2271a9)=>{const _0x3347ea=a2_0x5f1ae4,_0x57bbf7=new LLMAgentDeleteCommand(),_0x4ce208=program[_0x3347ea(0x2b7)](),_0x5a990f=await createTDXInstance(_0x4ce208),_0x3582b3=await _0x57bbf7['run']({'options':{..._0x4ce208,..._0x2271a9},'args':[_0x445008],'tdx':_0x5a990f});process[_0x3347ea(0x25a)](_0x3582b3);});export{program};export function runCLI(){const _0x47d279=a2_0x5f1ae4;program[_0x47d279(0x260)](process[_0x47d279(0x2a6)]);!process[_0x47d279(0x2a6)][_0x47d279(0x2bd)](0x2)[_0x47d279(0x181)]&&program['outputHelp']();const _0x36f84c=packageJson['version'];process[_0x47d279(0x211)][_0x47d279(0x27c)]&&process[_0x47d279(0x2a6)][_0x47d279(0x181)]>0x2&&!_0x36f84c['includes'](_0x47d279(0x2d0))&&checkForUpdate(_0x36f84c)[_0x47d279(0x316)](_0x11ccc0=>{_0x11ccc0&&displayUpdateNotification(_0x11ccc0);})[_0x47d279(0x375)](()=>{});}
|
|
1
|
+
const a2_0x4b0863=a2_0x2509;(function(_0x5c910b,_0x353fbb){const _0x108804=a2_0x2509,_0x574ca0=_0x5c910b();while(!![]){try{const _0x412f25=parseInt(_0x108804(0x1f1))/0x1*(parseInt(_0x108804(0x2c2))/0x2)+-parseInt(_0x108804(0x2b7))/0x3+parseInt(_0x108804(0x291))/0x4+-parseInt(_0x108804(0x2df))/0x5+-parseInt(_0x108804(0x1cb))/0x6+-parseInt(_0x108804(0x25c))/0x7*(parseInt(_0x108804(0x256))/0x8)+-parseInt(_0x108804(0x27f))/0x9*(-parseInt(_0x108804(0x362))/0xa);if(_0x412f25===_0x353fbb)break;else _0x574ca0['push'](_0x574ca0['shift']());}catch(_0x4447ef){_0x574ca0['push'](_0x574ca0['shift']());}}}(a2_0x5373,0x72457));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x4b0863(0x2e0)](readFileSync(join(__dirname,a2_0x4b0863(0x368)),a2_0x4b0863(0x35f)));let buildInfo={};try{buildInfo=JSON[a2_0x4b0863(0x2e0)](readFileSync(join(__dirname,a2_0x4b0863(0x19e)),'utf-8'));}catch{}if(process[a2_0x4b0863(0x34c)]['includes'](a2_0x4b0863(0x298))){let versionOutput='tdx\x20'+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x4b0863(0x293)]+')'),buildInfo['buildTime']&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x4b0863(0x206)]),console[a2_0x4b0863(0x255)](versionOutput),process[a2_0x4b0863(0x2b6)](0x0);}const program=new Command();let description=a2_0x4b0863(0x348);buildInfo[a2_0x4b0863(0x293)]?description+=',\x20version\x20'+packageJson[a2_0x4b0863(0x2bf)]+'\x20('+buildInfo[a2_0x4b0863(0x293)]+')':description+=a2_0x4b0863(0x1dc)+packageJson[a2_0x4b0863(0x2bf)];program[a2_0x4b0863(0x1c1)](a2_0x4b0863(0x3ca))[a2_0x4b0863(0x328)](description),program['option'](a2_0x4b0863(0x1f6),a2_0x4b0863(0x20d))['option']('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2d0),a2_0x4b0863(0x3c0),a2_0x4b0863(0x364))['option'](a2_0x4b0863(0x381),a2_0x4b0863(0x300))['option']('--table',a2_0x4b0863(0x2ba))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x34b),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x4b0863(0x1e3)]('--jsonl',a2_0x4b0863(0x316))['option'](a2_0x4b0863(0x286),a2_0x4b0863(0x215))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cf),a2_0x4b0863(0x335))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1c4),a2_0x4b0863(0x341))[a2_0x4b0863(0x1e3)]('--color',a2_0x4b0863(0x1ab),![])[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x313),a2_0x4b0863(0x31b),![])['option']('-v,\x20--verbose',a2_0x4b0863(0x30e),![])[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x320),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option']('--trace',a2_0x4b0863(0x312))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2a2),a2_0x4b0863(0x33f),'30')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x363),a2_0x4b0863(0x3d5),![])[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2a0),a2_0x4b0863(0x207),![])[a2_0x4b0863(0x1e3)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2dc),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x4b0863(0x1e3)]('--in\x20<name>',a2_0x4b0863(0x1ac))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2c5),a2_0x4b0863(0x38f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x3d7),a2_0x4b0863(0x32c)),program['configureHelp']({'formatHelp':(_0x1b1637,_0x19cfc9)=>{const _0x2186f0=a2_0x4b0863,_0x5c433a=_0x19cfc9['padWidth'](_0x1b1637,_0x19cfc9),_0x386ce4=0x2,_0x3fbe41=0x2;function _0x343004(_0x10d8f7){const _0x413599=a2_0x2509,_0xa285ba=_0x10d8f7;return!!(_0xa285ba['_hidden']||_0xa285ba[_0x413599(0x340)]);}function _0x5c5312(_0x592f55,_0x31d851){const _0x1bc884=a2_0x2509;if(_0x31d851){const _0x260eaf=''+_0x592f55[_0x1bc884(0x197)](_0x5c433a+_0x3fbe41)+_0x31d851;return _0x260eaf;}return _0x592f55;}function _0x8a7a25(_0x3417b1){const _0x52860e=a2_0x2509;return _0x3417b1[_0x52860e(0x1a6)]('\x0a')[_0x52860e(0x354)](/^/gm,'\x20'[_0x52860e(0x366)](_0x386ce4));}const _0x1eb517=[];_0x1eb517['push']('Usage:\x20'+_0x19cfc9['commandUsage'](_0x1b1637));const _0x14af5c=_0x19cfc9['commandDescription'](_0x1b1637);_0x14af5c&&(_0x1eb517['push'](''),_0x1eb517[_0x2186f0(0x2bc)](_0x14af5c));const _0x5160fa=_0x1b1637['commands'][_0x2186f0(0x390)](_0x17c408=>!_0x343004(_0x17c408));if(_0x5160fa[_0x2186f0(0x2f0)]>0x0){if(_0x1b1637['name']()==='tdx'){const _0x3511bb=_0x1b1637['opts'](),_0xdc3f94=!_0x3511bb[_0x2186f0(0x307)]&&process['stdout'][_0x2186f0(0x212)],_0x2d805d=COMMAND_CATEGORIES,_0x2aecf1=(_0x562736,_0x590405)=>_0xdc3f94?_0x590405(_0x562736):_0x562736,_0x4b448b=new Map();_0x5160fa[_0x2186f0(0x325)](_0x3e1612=>{const _0xf0c0e=_0x2186f0;_0x4b448b['set'](_0x3e1612[_0xf0c0e(0x1c1)](),_0x3e1612);}),_0x2d805d[_0x2186f0(0x325)](_0x517db5=>{const _0x1da759=_0x2186f0,_0x3c887c=_0x517db5[_0x1da759(0x39a)][_0x1da759(0x2e3)](_0x3f6b56=>_0x4b448b['get'](_0x3f6b56)??[]);if(_0x3c887c[_0x1da759(0x2f0)]>0x0){_0x1eb517[_0x1da759(0x2bc)](''),_0x1eb517[_0x1da759(0x2bc)](_0x2aecf1(_0x517db5[_0x1da759(0x1c1)]+':',_0x517db5[_0x1da759(0x1dd)]));const _0x2fa9b7=_0x3c887c[_0x1da759(0x37d)](_0x28cc36=>{const _0xc22bfa=_0x1da759,_0x26ba56=_0x19cfc9[_0xc22bfa(0x253)](_0x28cc36),_0x2ec4bb=_0x19cfc9['subcommandDescription'](_0x28cc36);return _0x5c5312(_0x26ba56,_0x2ec4bb);});_0x1eb517[_0x1da759(0x2bc)](_0x8a7a25(_0x2fa9b7));}}),_0x1eb517[_0x2186f0(0x2bc)](''),_0x1eb517['push'](_0x2186f0(0x267));}else{const _0x3cda44=_0x5160fa[_0x2186f0(0x37d)](_0x4763c8=>{const _0x40261b=_0x2186f0,_0xecfb15=_0x19cfc9['subcommandTerm'](_0x4763c8),_0x292d60=_0x19cfc9[_0x40261b(0x338)](_0x4763c8);return _0x5c5312(_0xecfb15,_0x292d60);});_0x1eb517[_0x2186f0(0x2bc)](''),_0x1eb517[_0x2186f0(0x2bc)]('Commands:'),_0x1eb517[_0x2186f0(0x2bc)](_0x8a7a25(_0x3cda44));}}const _0x36c0a2=_0x1b1637[_0x2186f0(0x1ec)][_0x2186f0(0x390)](_0x536464=>!_0x343004(_0x536464));if(_0x36c0a2[_0x2186f0(0x2f0)]>0x0){const _0x128e4d=_0x36c0a2['map'](_0x45d6af=>{const _0x730483=_0x2186f0,_0x19dcf0=_0x19cfc9[_0x730483(0x303)](_0x45d6af),_0x1159f5=_0x19cfc9['optionDescription'](_0x45d6af);return _0x5c5312(_0x19dcf0,_0x1159f5);});_0x1eb517[_0x2186f0(0x2bc)](''),_0x1eb517[_0x2186f0(0x2bc)](_0x2186f0(0x1fd)),_0x1eb517['push'](_0x8a7a25(_0x128e4d));}const _0x36b428=(_0x1b1637[_0x2186f0(0x1af)]||[])[_0x2186f0(0x390)](_0x424333=>!_0x343004(_0x424333));if(_0x36b428[_0x2186f0(0x2f0)]>0x0){const _0x200364=_0x36b428[_0x2186f0(0x37d)](_0x4f46a9=>{const _0x59846f=_0x2186f0,_0x4651f6=_0x19cfc9[_0x59846f(0x32e)](_0x4f46a9),_0x17a7d8=_0x19cfc9[_0x59846f(0x2b4)](_0x4f46a9);return _0x5c5312(_0x4651f6,_0x17a7d8);});_0x1eb517[_0x2186f0(0x2bc)](''),_0x1eb517['push'](_0x2186f0(0x3a3)),_0x1eb517[_0x2186f0(0x2bc)](_0x8a7a25(_0x200364));}return _0x1eb517[_0x2186f0(0x1a6)]('\x0a');},'subcommandTerm':_0x121606=>{const _0x5f4a1d=a2_0x4b0863,_0x18c963=(_0x121606[_0x5f4a1d(0x1af)]||[])['map'](_0x5ad030=>_0x5ad030['required']?'<'+_0x5ad030[_0x5f4a1d(0x1c1)]()+'>':'['+_0x5ad030[_0x5f4a1d(0x1c1)]()+']')['join']('\x20'),_0x256770=_0x121606['aliases'](),_0x3f1af6=_0x256770['length']>0x0?_0x121606[_0x5f4a1d(0x1c1)]()+',\x20'+_0x256770[_0x5f4a1d(0x1a6)](',\x20'):_0x121606[_0x5f4a1d(0x1c1)]();return _0x18c963?_0x3f1af6+'\x20'+_0x18c963:_0x3f1af6;}}),program['hook'](a2_0x4b0863(0x210),_0x36dcf3=>{const _0x25c9e3=a2_0x4b0863,_0x32906f=_0x36dcf3[_0x25c9e3(0x3c6)]();if(_0x32906f[_0x25c9e3(0x260)]){const _0x42a81d=resolve(_0x32906f['directory']),_0x491e84=_0x42a81d!==_0x32906f[_0x25c9e3(0x260)]?_0x25c9e3(0x1e4)+_0x42a81d+')':'';if(!existsSync(_0x42a81d))throw new SDKError(ErrorCode[_0x25c9e3(0x1d8)],_0x25c9e3(0x391)+_0x32906f[_0x25c9e3(0x260)]+_0x491e84,undefined,{'helpText':_0x25c9e3(0x2b1)});const _0x55d44e=statSync(_0x42a81d);if(!_0x55d44e[_0x25c9e3(0x204)]())throw new SDKError(ErrorCode[_0x25c9e3(0x1d8)],_0x25c9e3(0x36b)+_0x32906f[_0x25c9e3(0x260)]+_0x491e84,undefined,{'helpText':_0x25c9e3(0x35c)});process[_0x25c9e3(0x1f9)](_0x42a81d);}if(!_0x32906f[_0x25c9e3(0x242)]){if(_0x32906f[_0x25c9e3(0x305)])_0x32906f[_0x25c9e3(0x242)]=_0x25c9e3(0x305);else{if(_0x32906f[_0x25c9e3(0x1a8)])_0x32906f[_0x25c9e3(0x242)]=_0x25c9e3(0x1a8);else{if(_0x32906f[_0x25c9e3(0x282)])_0x32906f['format']=_0x25c9e3(0x282);else _0x32906f[_0x25c9e3(0x265)]&&(_0x32906f[_0x25c9e3(0x242)]=_0x25c9e3(0x265));}}}_0x32906f['in']&&!_0x32906f[_0x25c9e3(0x382)]&&(_0x32906f[_0x25c9e3(0x382)]=_0x32906f['in']);if(_0x32906f[_0x25c9e3(0x23f)])_0x32906f[_0x25c9e3(0x301)]=LogLevel[_0x25c9e3(0x2fe)];else{if(_0x32906f[_0x25c9e3(0x1e1)])_0x32906f[_0x25c9e3(0x301)]=LogLevel[_0x25c9e3(0x237)];else _0x32906f[_0x25c9e3(0x301)]===undefined&&(_0x32906f[_0x25c9e3(0x301)]=LogLevel['INFO']);}});async function createTDXInstance(_0x2a6cd3){const _0x1c7207=a2_0x4b0863,_0x7cfc88=await GlobalContext[_0x1c7207(0x349)](_0x2a6cd3);return _0x7cfc88[_0x1c7207(0x1a9)](_0x2a6cd3),TDX[_0x1c7207(0x3b6)]({'site':_0x7cfc88[_0x1c7207(0x37f)],'apiKey':_0x7cfc88[_0x1c7207(0x21d)],'logLevel':_0x7cfc88[_0x1c7207(0x301)],'profile':_0x7cfc88['profile']});}const databaseCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x382))[a2_0x4b0863(0x3a5)]('db')['description'](a2_0x4b0863(0x317)),databaseListAction=async(_0x4b0f07,_0x2f6091)=>{const _0x15c04d=a2_0x4b0863,_0x2187ac=new DatabasesCommand(),_0x5152fc=program[_0x15c04d(0x3c6)](),_0x4fe6f3=await createTDXInstance(_0x5152fc),_0x12d744=await _0x2187ac[_0x15c04d(0x1a2)]({'options':{..._0x5152fc,..._0x2f6091},'args':_0x4b0f07?[_0x4b0f07]:[],'tdx':_0x4fe6f3});process['exit'](_0x12d744);};databaseCmd['command'](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program['command'](a2_0x4b0863(0x392),{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x3a6))[a2_0x4b0863(0x252)](databaseListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2a6))['description'](a2_0x4b0863(0x399))['option'](a2_0x4b0863(0x383),a2_0x4b0863(0x38d))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x3c3),a2_0x4b0863(0x2de))[a2_0x4b0863(0x252)](async(_0x3973f3,_0x3287dd)=>{const _0x4e8e94=a2_0x4b0863,_0x320a81=new ChatCommand(),_0x532461=program['opts'](),_0x3e3eb8=await createTDXInstance(_0x532461),_0xd628b9=await _0x320a81[_0x4e8e94(0x1a2)]({'options':{..._0x532461,..._0x3287dd},'args':_0x3973f3,'tdx':_0x3e3eb8});process[_0x4e8e94(0x2b6)](_0xd628b9);});const apiCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x30a))[a2_0x4b0863(0x33d)](a2_0x4b0863(0x270))['addHelpText']('after',a2_0x4b0863(0x378))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x389),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x4b0863(0x3bd))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x31c),a2_0x4b0863(0x355))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x238),a2_0x4b0863(0x385))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x227),a2_0x4b0863(0x1a3),(_0x518777,_0x5d2c13)=>{return _0x5d2c13?[..._0x5d2c13,_0x518777]:[_0x518777];})['option'](a2_0x4b0863(0x311),a2_0x4b0863(0x1b3),'td')[a2_0x4b0863(0x252)](async(_0xbdcfd,_0x8f7c34)=>{const _0x39c5ad=a2_0x4b0863;if(!_0xbdcfd){apiCmd[_0x39c5ad(0x331)]();return;}const _0x2918bc=new ApiCommand(),_0x999f94=program[_0x39c5ad(0x3c6)](),_0x459485=await createTDXInstance(_0x999f94),_0x399a90=await _0x2918bc[_0x39c5ad(0x1a2)]({'options':{..._0x999f94,..._0x8f7c34},'args':[_0xbdcfd],'tdx':_0x459485});process[_0x39c5ad(0x2b6)](_0x399a90);}),tableCmd=program[a2_0x4b0863(0x30d)]('table')['description'](a2_0x4b0863(0x20b)),tableListAction=async(_0x279053,_0x58822a)=>{const _0x34c91b=a2_0x4b0863,_0x525427=new TablesCommand(),_0x9ac280=program['opts'](),_0x356063=await createTDXInstance(_0x9ac280);_0x58822a['in']&&(_0x58822a[_0x34c91b(0x382)]=_0x58822a['in']);const _0x53bab9=await _0x525427[_0x34c91b(0x1a2)]({'options':{..._0x9ac280,..._0x58822a},'args':_0x279053?[_0x279053]:[],'tdx':_0x356063});process[_0x34c91b(0x2b6)](_0x53bab9);};tableCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a2_0x4b0863(0x1e2),a2_0x4b0863(0x2e7))['option']('--in\x20<database>',a2_0x4b0863(0x1ac))['action'](tableListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2bb),{'hidden':!![]})['description'](a2_0x4b0863(0x3a2))['option'](a2_0x4b0863(0x1e2),a2_0x4b0863(0x2e7))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x262),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4b0863(0x252)](tableListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1c2))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2aa))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1e2),a2_0x4b0863(0x3d3))['option'](a2_0x4b0863(0x262),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4b0863(0x252)](async(_0x35b985,_0x553f71)=>{const _0x40654e=a2_0x4b0863,_0x1ed924=new ShowCommand(),_0x445681=program['opts'](),_0x1a069d=await createTDXInstance(_0x445681);_0x553f71['in']&&(_0x553f71[_0x40654e(0x382)]=_0x553f71['in']);const _0x1b1cc6=await _0x1ed924[_0x40654e(0x1a2)]({'options':{..._0x445681,..._0x553f71},'args':_0x35b985?[_0x35b985]:[],'tdx':_0x1a069d});process[_0x40654e(0x2b6)](_0x1b1cc6);}),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2cc))[a2_0x4b0863(0x3a5)](a2_0x4b0863(0x208))['description'](a2_0x4b0863(0x384))['option'](a2_0x4b0863(0x1e2),a2_0x4b0863(0x3d3))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x262),a2_0x4b0863(0x1ac))[a2_0x4b0863(0x252)](async(_0x59c45e,_0x3da2ff)=>{const _0x322531=a2_0x4b0863,_0x44661c=new DescribeCommand(),_0x36b45e=program[_0x322531(0x3c6)](),_0x30fe38=await createTDXInstance(_0x36b45e);_0x3da2ff['in']&&(_0x3da2ff['database']=_0x3da2ff['in']);const _0x212655=await _0x44661c['run']({'options':{..._0x36b45e,..._0x3da2ff},'args':_0x59c45e?[_0x59c45e]:[],'tdx':_0x30fe38});process[_0x322531(0x2b6)](_0x212655);}),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2fd))['description'](a2_0x4b0863(0x1ad))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1e2),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x262),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x4b0863(0x1f4))['option'](a2_0x4b0863(0x238),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x4b0863(0x2c3),a2_0x4b0863(0x3b7),'40')[a2_0x4b0863(0x252)](async(_0x529fdf,_0x5e3726)=>{const _0x4f7de2=a2_0x4b0863,_0x469e68=new QueryCommand(),_0x253634=program['opts'](),_0x58ad14=await createTDXInstance(_0x253634);_0x5e3726['in']&&(_0x5e3726[_0x4f7de2(0x382)]=_0x5e3726['in']);const _0x1ac7ee=await _0x469e68[_0x4f7de2(0x1a2)]({'options':{..._0x253634,..._0x5e3726},'args':_0x529fdf?[_0x529fdf]:[],'tdx':_0x58ad14});process[_0x4f7de2(0x2b6)](_0x1ac7ee);});const segmentCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3d8))['alias']('sg')[a2_0x4b0863(0x328)](a2_0x4b0863(0x3ce)),segmentListAction=async(_0x37994b,_0x4e4b4a)=>{const _0x274c80=a2_0x4b0863,_0x305ecc=new SegmentsCommand(),_0xe0de6f=program['opts'](),_0x1dbe41=await createTDXInstance(_0xe0de6f),_0x19b04b=await _0x305ecc[_0x274c80(0x1a2)]({'options':{..._0xe0de6f,..._0x4e4b4a},'args':_0x37994b?[_0x37994b]:[],'tdx':_0x1dbe41});process[_0x274c80(0x2b6)](_0x19b04b);};segmentCmd['command'](a2_0x4b0863(0x198))[a2_0x4b0863(0x328)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x4b0863(0x1e3)]('-r,\x20--recursive',a2_0x4b0863(0x32b))[a2_0x4b0863(0x1e3)]('--max-depth\x20<depth>',a2_0x4b0863(0x36c),'10')[a2_0x4b0863(0x1e3)]('-w,\x20--web',a2_0x4b0863(0x2d1))['action'](segmentListAction),program['command'](a2_0x4b0863(0x369),{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x339))[a2_0x4b0863(0x1e3)]('-r,\x20--recursive',a2_0x4b0863(0x32b))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x202),a2_0x4b0863(0x36c),'10')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x2d1))['action'](segmentListAction),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x19c),{'hidden':!![]})['description'](a2_0x4b0863(0x218))[a2_0x4b0863(0x252)](async(_0x30a2a5,_0x4d9657)=>{const _0x3db45b=a2_0x4b0863,_0x1f795b=new SegmentUseCommand(),_0x1f8821=program[_0x3db45b(0x3c6)](),_0x54afdb=await createTDXInstance(_0x1f8821),_0xae1149=await _0x1f795b[_0x3db45b(0x1a2)]({'options':{..._0x1f8821,..._0x4d9657},'args':[_0x30a2a5],'tdx':_0x54afdb});process[_0x3db45b(0x2b6)](_0xae1149);});const segmentViewAction=async(_0x212768,_0x4c696e)=>{const _0x4b3037=a2_0x4b0863,_0x568d58=new SegmentViewCommand(),_0x2b02bb=program['opts'](),_0x540f30=await createTDXInstance(_0x2b02bb),_0x15b7f7=await _0x568d58[_0x4b3037(0x1a2)]({'options':{..._0x2b02bb,..._0x4c696e},'args':_0x212768?[_0x212768]:[],'tdx':_0x540f30});process[_0x4b3037(0x2b6)](_0x15b7f7);};segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1fe))[a2_0x4b0863(0x328)](a2_0x4b0863(0x224))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x3c9))[a2_0x4b0863(0x252)](segmentViewAction),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1f2),{'hidden':!![]})['alias'](a2_0x4b0863(0x315))['option'](a2_0x4b0863(0x37c),'Open\x20segment\x20in\x20web\x20browser')[a2_0x4b0863(0x328)](a2_0x4b0863(0x1ee))[a2_0x4b0863(0x252)](segmentViewAction),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x23b))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2eb))[a2_0x4b0863(0x252)](async(_0x3efc77,_0x3a4490)=>{const _0x3b1bba=a2_0x4b0863,_0x7a8cd8=new SegmentDescCommand(),_0x4c5cd0=program[_0x3b1bba(0x3c6)](),_0x1399bf=await createTDXInstance(_0x4c5cd0),_0x13f168=await _0x7a8cd8[_0x3b1bba(0x1a2)]({'options':{..._0x4c5cd0,..._0x3a4490},'args':_0x3efc77?[_0x3efc77]:[],'tdx':_0x1399bf});process[_0x3b1bba(0x2b6)](_0x13f168);}),segmentCmd[a2_0x4b0863(0x30d)]('show\x20[segment_name]')[a2_0x4b0863(0x328)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x4b0863(0x252)](async(_0x30b6ee,_0x3352f1)=>{const _0x1a5e90=a2_0x4b0863,_0x38158c=new SegmentShowCommand(),_0x258c34=program[_0x1a5e90(0x3c6)](),_0xb4e270=await createTDXInstance(_0x258c34),_0x5dc67c=await _0x38158c[_0x1a5e90(0x1a2)]({'options':{..._0x258c34,..._0x3352f1},'args':_0x30b6ee?[_0x30b6ee]:[],'tdx':_0xb4e270});process[_0x1a5e90(0x2b6)](_0x5dc67c);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1e9),{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x2e5))[a2_0x4b0863(0x252)](async(_0x4bceb2,_0x5f385d)=>{const _0x2bb0d0=a2_0x4b0863,_0x24addc=new SegmentFolderListCommand(),_0x5b8fb9=program[_0x2bb0d0(0x3c6)](),_0x36a31f=await createTDXInstance(_0x5b8fb9),_0x5b0de9=await _0x24addc[_0x2bb0d0(0x1a2)]({'options':{..._0x5b8fb9,..._0x5f385d},'args':[_0x4bceb2],'tdx':_0x36a31f});process['exit'](_0x5b0de9);});const folderCmd=segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1f3),{'hidden':!![]})[a2_0x4b0863(0x328)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x289))[a2_0x4b0863(0x328)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4b0863(0x252)](async(_0x56503f,_0x3384ce)=>{const _0x13e8c9=a2_0x4b0863,_0x218cc0=new SegmentFolderShowCommand(),_0x437840=program[_0x13e8c9(0x3c6)](),_0x4fa510=await createTDXInstance(_0x437840),_0x55cb68=await _0x218cc0[_0x13e8c9(0x1a2)]({'options':{..._0x437840,..._0x3384ce},'args':[_0x56503f],'tdx':_0x4fa510});process[_0x13e8c9(0x2b6)](_0x55cb68);}),segmentCmd['command']('sql\x20[segment_name]')['description'](a2_0x4b0863(0x217))[a2_0x4b0863(0x252)](async(_0x27bbf6,_0x137c30)=>{const _0x17a857=a2_0x4b0863,_0x22fd2d=new SegmentSQLCommand(),_0x50fcc9=program[_0x17a857(0x3c6)](),_0xc7ed2=await createTDXInstance(_0x50fcc9),_0x3a0e56=await _0x22fd2d[_0x17a857(0x1a2)]({'options':{..._0x50fcc9,..._0x137c30},'args':_0x27bbf6?[_0x27bbf6]:[],'tdx':_0xc7ed2});process[_0x17a857(0x2b6)](_0x3a0e56);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x27c))[a2_0x4b0863(0x328)](a2_0x4b0863(0x3c8))[a2_0x4b0863(0x252)](async(_0x3e01c6,_0x524e26)=>{const _0x22850a=a2_0x4b0863,_0x4663a9=new SegmentFieldsCommand(),_0x29d2d7=program[_0x22850a(0x3c6)](),_0x31f7c6=await createTDXInstance(_0x29d2d7),_0x4c48ec=await _0x4663a9['run']({'options':{..._0x29d2d7,..._0x524e26},'args':_0x3e01c6?[_0x3e01c6]:[],'tdx':_0x31f7c6});process[_0x22850a(0x2b6)](_0x4c48ec);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x287))[a2_0x4b0863(0x328)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x363),a2_0x4b0863(0x28f))[a2_0x4b0863(0x252)](async(_0x40e7aa,_0xde0273)=>{const _0x60bef=a2_0x4b0863,_0x3fd5d9=new SegmentPullCommand(),_0x21da5b=program['opts'](),_0x26c6c8=await createTDXInstance(_0x21da5b),_0x1e4211=await _0x3fd5d9[_0x60bef(0x1a2)]({'options':{..._0x21da5b,..._0xde0273},'args':_0x40e7aa?[_0x40e7aa]:[],'tdx':_0x26c6c8});process[_0x60bef(0x2b6)](_0x1e4211);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1e0))[a2_0x4b0863(0x328)](a2_0x4b0863(0x248))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2a0),a2_0x4b0863(0x207))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x363),a2_0x4b0863(0x28f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x236),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x4b0863(0x252)](async(_0x585bb4,_0x474a9c)=>{const _0x21554e=a2_0x4b0863,_0x1a176d=new SegmentPushCommand(),_0x3667c4=program['opts'](),_0x22427e=await createTDXInstance(_0x3667c4),_0x87a4e6=await _0x1a176d[_0x21554e(0x1a2)]({'options':{..._0x3667c4,..._0x474a9c},'args':_0x585bb4?[_0x585bb4]:[],'tdx':_0x22427e});process[_0x21554e(0x2b6)](_0x87a4e6);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3c5))['description'](a2_0x4b0863(0x2c7))['action'](async(_0x1ee1ca,_0x3d7aca)=>{const _0x6d563=a2_0x4b0863,_0x23fe14=new SegmentValidateCommand(),_0xa2d3f6=program[_0x6d563(0x3c6)](),_0xafa788=await createTDXInstance(_0xa2d3f6),_0x297a3c=await _0x23fe14[_0x6d563(0x1a2)]({'options':{..._0xa2d3f6,..._0x3d7aca},'args':_0x1ee1ca?[_0x1ee1ca]:[],'tdx':_0xafa788});process[_0x6d563(0x2b6)](_0x297a3c);}),segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3b4),{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x2d3))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e8),a2_0x4b0863(0x28d))['option'](a2_0x4b0863(0x34a),a2_0x4b0863(0x21c))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x33a),a2_0x4b0863(0x3a4))['option']('--folder\x20<name>',a2_0x4b0863(0x1d6))['option'](a2_0x4b0863(0x2a9),a2_0x4b0863(0x20a))['option'](a2_0x4b0863(0x226),a2_0x4b0863(0x330))['option'](a2_0x4b0863(0x374),a2_0x4b0863(0x245))[a2_0x4b0863(0x252)](async(_0x1e51af,_0x31e544)=>{const _0x3e3336=a2_0x4b0863,_0x847f3c=new SegmentCreateCommand(),_0x5c0fe5=program[_0x3e3336(0x3c6)](),_0x121c9f=await createTDXInstance(_0x5c0fe5),_0x3f6ecd=await _0x847f3c[_0x3e3336(0x1a2)]({'options':{..._0x5c0fe5,..._0x31e544},'args':[_0x1e51af],'tdx':_0x121c9f});process[_0x3e3336(0x2b6)](_0x3f6ecd);}),segmentCmd['command'](a2_0x4b0863(0x21b),{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x356))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1b0),'New\x20segment\x20name')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e8),a2_0x4b0863(0x201))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x34a),a2_0x4b0863(0x2b9))['option'](a2_0x4b0863(0x33a),a2_0x4b0863(0x269))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x203),a2_0x4b0863(0x280))['option'](a2_0x4b0863(0x2a9),a2_0x4b0863(0x20a))[a2_0x4b0863(0x252)](async(_0x4a740d,_0x277d55)=>{const _0x4ebe62=a2_0x4b0863,_0x2b3311=new SegmentUpdateCommand(),_0x433e5b=program[_0x4ebe62(0x3c6)](),_0x446127=await createTDXInstance(_0x433e5b),_0x3945db=await _0x2b3311[_0x4ebe62(0x1a2)]({'options':{..._0x433e5b,..._0x277d55},'args':[_0x4a740d],'tdx':_0x446127});process[_0x4ebe62(0x2b6)](_0x3945db);});const parentCmd=segmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x27a),{'hidden':!![]})[a2_0x4b0863(0x328)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x5e1333,_0x2d7b46)=>{const _0xb368a7=a2_0x4b0863,_0x5d3207=new ParentSegmentListCommand(),_0x5df08c=program['opts'](),_0x44ee55=await createTDXInstance(_0x5df08c),_0x40d57e=await _0x5d3207[_0xb368a7(0x1a2)]({'options':{..._0x5df08c,..._0x2d7b46},'args':_0x5e1333?[_0x5e1333]:[],'tdx':_0x44ee55});process[_0xb368a7(0x2b6)](_0x40d57e);};parentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2f8))[a2_0x4b0863(0x252)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x4b0863(0x328)](a2_0x4b0863(0x29a))[a2_0x4b0863(0x252)](parentListAction),parentCmd[a2_0x4b0863(0x30d)]('pull\x20[name]')[a2_0x4b0863(0x328)](a2_0x4b0863(0x229))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x28c),a2_0x4b0863(0x27d))['option'](a2_0x4b0863(0x2a0),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](async(_0x25efbc,_0x26cacd)=>{const _0x2efd8e=a2_0x4b0863,_0x42c833=new ParentSegmentPullCommand(),_0x2c42ff=program[_0x2efd8e(0x3c6)](),_0x312d87=await createTDXInstance(_0x2c42ff),_0x5d2dfa=await _0x42c833['run']({'options':{..._0x2c42ff,..._0x26cacd},'args':_0x25efbc?[_0x25efbc]:[],'tdx':_0x312d87});process['exit'](_0x5d2dfa);}),parentCmd[a2_0x4b0863(0x30d)]('push\x20[file]')[a2_0x4b0863(0x328)](a2_0x4b0863(0x2f1))[a2_0x4b0863(0x1e3)]('-y,\x20--yes',a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](async(_0x4e6a7d,_0x25e5d8)=>{const _0x43632c=a2_0x4b0863,_0x3d352e=new ParentSegmentPushCommand(),_0x35883f=program[_0x43632c(0x3c6)](),_0x176527=await createTDXInstance(_0x35883f),_0x194e2c=await _0x3d352e['run']({'options':{..._0x35883f,..._0x25e5d8},'args':_0x4e6a7d?[_0x4e6a7d]:[],'tdx':_0x176527});process[_0x43632c(0x2b6)](_0x194e2c);}),parentCmd[a2_0x4b0863(0x30d)]('validate\x20[file]')[a2_0x4b0863(0x328)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x292),a2_0x4b0863(0x2e9))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x221),a2_0x4b0863(0x2ef))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x371),a2_0x4b0863(0x21e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x244),a2_0x4b0863(0x19a))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x3be),a2_0x4b0863(0x20e),a2_0x4b0863(0x1ca))[a2_0x4b0863(0x252)](async(_0xe5a250,_0x225e28)=>{const _0x3512fb=a2_0x4b0863,_0x5b6cdf=new ParentSegmentValidateCommand(),_0x2e0456=program[_0x3512fb(0x3c6)](),_0x4f07f7=await createTDXInstance(_0x2e0456),_0x137f9d=await _0x5b6cdf[_0x3512fb(0x1a2)]({'options':{..._0x2e0456,..._0x225e28},'args':_0xe5a250?[_0xe5a250]:[],'tdx':_0x4f07f7});process['exit'](_0x137f9d);}),parentCmd['command']('preview\x20[file]')[a2_0x4b0863(0x328)](a2_0x4b0863(0x28e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x292),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x4b0863(0x25f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x371),a2_0x4b0863(0x3b5))['option'](a2_0x4b0863(0x244),a2_0x4b0863(0x3a8))[a2_0x4b0863(0x1e3)]('--interval\x20<range>',a2_0x4b0863(0x20e),a2_0x4b0863(0x1ca))[a2_0x4b0863(0x252)](async(_0x21ad95,_0x5871fe)=>{const _0x4b92a8=a2_0x4b0863,_0x3765d8=new ParentSegmentPreviewCommand(),_0x5ba74c=program[_0x4b92a8(0x3c6)](),_0x42425e=await createTDXInstance(_0x5ba74c),_0x12ef7b=await _0x3765d8[_0x4b92a8(0x1a2)]({'options':{..._0x5ba74c,..._0x5871fe},'args':_0x21ad95?[_0x21ad95]:[],'tdx':_0x42425e});process[_0x4b92a8(0x2b6)](_0x12ef7b);}),parentCmd[a2_0x4b0863(0x30d)]('run\x20[name]')[a2_0x4b0863(0x328)](a2_0x4b0863(0x2c0))[a2_0x4b0863(0x1e3)]('-y,\x20--yes',a2_0x4b0863(0x2ea))['action'](async(_0x1c0640,_0x3c2a4a)=>{const _0x2e76bd=a2_0x4b0863,_0x438e9a=new ParentSegmentRunCommand(),_0x195242=program[_0x2e76bd(0x3c6)](),_0x590525=await createTDXInstance(_0x195242),_0x2b9004=await _0x438e9a['run']({'options':{..._0x195242,..._0x3c2a4a},'args':_0x1c0640?[_0x1c0640]:[],'tdx':_0x590525});process[_0x2e76bd(0x2b6)](_0x2b9004);});const parentSegmentCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x235))['alias']('ps')['description']('Parent\x20segment\x20management');parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2f8))[a2_0x4b0863(0x252)](parentListAction),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x222))['description'](a2_0x4b0863(0x231))[a2_0x4b0863(0x1e3)]('-o,\x20--output\x20<file>',a2_0x4b0863(0x32a))['option'](a2_0x4b0863(0x2a0),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2f2),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')['action'](async(_0x259ae6,_0x3f00d2)=>{const _0x44b6b5=a2_0x4b0863,_0x3f252e=new ParentSegmentPullCommand(),_0x2d263b=program[_0x44b6b5(0x3c6)](),_0x15b3c4=await createTDXInstance(_0x2d263b),_0x17dc91=await _0x3f252e[_0x44b6b5(0x1a2)]({'options':{..._0x2d263b,..._0x3f00d2},'args':_0x259ae6?[_0x259ae6]:[],'tdx':_0x15b3c4});process['exit'](_0x17dc91);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x281))[a2_0x4b0863(0x328)](a2_0x4b0863(0x321))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2a0),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](async(_0x47971b,_0x374b12)=>{const _0x1bd9e7=a2_0x4b0863,_0x1a6319=new ParentSegmentPushCommand(),_0x5d2d94=program[_0x1bd9e7(0x3c6)](),_0x363671=await createTDXInstance(_0x5d2d94),_0x403508=await _0x1a6319[_0x1bd9e7(0x1a2)]({'options':{..._0x5d2d94,..._0x374b12},'args':_0x47971b?[_0x47971b]:[],'tdx':_0x363671});process['exit'](_0x403508);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x261))['description'](a2_0x4b0863(0x2ca))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x292),a2_0x4b0863(0x2e9))['option'](a2_0x4b0863(0x221),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x371),a2_0x4b0863(0x21e))[a2_0x4b0863(0x1e3)]('--enriched',a2_0x4b0863(0x19a))[a2_0x4b0863(0x1e3)]('--interval\x20<range>',a2_0x4b0863(0x20e),a2_0x4b0863(0x1ca))['action'](async(_0x312321,_0x128401)=>{const _0x376adf=a2_0x4b0863,_0x4353cf=new ParentSegmentValidateCommand(),_0x5a4466=program[_0x376adf(0x3c6)](),_0x5460dc=await createTDXInstance(_0x5a4466),_0xa882f9=await _0x4353cf[_0x376adf(0x1a2)]({'options':{..._0x5a4466,..._0x128401},'args':_0x312321?[_0x312321]:[],'tdx':_0x5460dc});process[_0x376adf(0x2b6)](_0xa882f9);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2f3))[a2_0x4b0863(0x328)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x292),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x4b0863(0x221),a2_0x4b0863(0x25f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x371),a2_0x4b0863(0x3b5))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x244),a2_0x4b0863(0x3a8))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x3be),a2_0x4b0863(0x20e),a2_0x4b0863(0x1ca))[a2_0x4b0863(0x252)](async(_0x2db032,_0x5d2689)=>{const _0x2d2a16=a2_0x4b0863,_0x10f986=new ParentSegmentPreviewCommand(),_0x1f4a5f=program[_0x2d2a16(0x3c6)](),_0x14eb53=await createTDXInstance(_0x1f4a5f),_0x1c2738=await _0x10f986[_0x2d2a16(0x1a2)]({'options':{..._0x1f4a5f,..._0x5d2689},'args':_0x2db032?[_0x2db032]:[],'tdx':_0x14eb53});process[_0x2d2a16(0x2b6)](_0x1c2738);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x342))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2c0))['option'](a2_0x4b0863(0x2a0),a2_0x4b0863(0x2ea))['action'](async(_0x548099,_0x3db7c4)=>{const _0x440ba5=a2_0x4b0863,_0x579c9c=new ParentSegmentRunCommand(),_0x3a5e4d=program[_0x440ba5(0x3c6)](),_0x4b1af1=await createTDXInstance(_0x3a5e4d),_0x1dbae8=await _0x579c9c['run']({'options':{..._0x3a5e4d,..._0x3db7c4},'args':_0x548099?[_0x548099]:[],'tdx':_0x4b1af1});process['exit'](_0x1dbae8);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x296))[a2_0x4b0863(0x328)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x34b),'Output\x20as\x20JSON')['option'](a2_0x4b0863(0x274),'Output\x20as\x20JSON\x20Lines')[a2_0x4b0863(0x252)](async(_0x10bb70,_0xc9a8b3)=>{const _0x4917da=a2_0x4b0863,_0x336b04=new ParentSegmentFieldsCommand(),_0x5adc50=program[_0x4917da(0x3c6)](),_0x396f38=await createTDXInstance(_0x5adc50),_0x546349=await _0x336b04[_0x4917da(0x1a2)]({'options':{..._0x5adc50,..._0xc9a8b3},'args':_0x10bb70?[_0x10bb70]:[],'tdx':_0x396f38});process[_0x4917da(0x2b6)](_0x546349);}),parentSegmentCmd['command'](a2_0x4b0863(0x1e8))[a2_0x4b0863(0x328)](a2_0x4b0863(0x34f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x21f))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x34b),a2_0x4b0863(0x25e))['option'](a2_0x4b0863(0x274),a2_0x4b0863(0x1aa))[a2_0x4b0863(0x252)](async(_0x529aae,_0x11972e)=>{const _0x543e7d=a2_0x4b0863,_0x21b0e3=new ParentSegmentViewCommand(),_0x5d298a=program['opts'](),_0x5f44fd=await createTDXInstance(_0x5d298a),_0xebaf50=await _0x21b0e3[_0x543e7d(0x1a2)]({'options':{..._0x5d298a,..._0x11972e},'args':_0x529aae?[_0x529aae]:[],'tdx':_0x5f44fd});process[_0x543e7d(0x2b6)](_0xebaf50);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2dd))['description'](a2_0x4b0863(0x393))[a2_0x4b0863(0x1e3)]('--json','Output\x20as\x20JSON')['option'](a2_0x4b0863(0x274),a2_0x4b0863(0x1aa))[a2_0x4b0863(0x252)](async(_0xabe843,_0x32126e)=>{const _0x15a1a0=a2_0x4b0863,_0x3b655f=new ParentSegmentDescCommand(),_0x16bb52=program['opts'](),_0x4bfe7c=await createTDXInstance(_0x16bb52),_0x3f5436=await _0x3b655f['run']({'options':{..._0x16bb52,..._0x32126e},'args':_0xabe843?[_0xabe843]:[],'tdx':_0x4bfe7c});process[_0x15a1a0(0x2b6)](_0x3f5436);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x297))['description'](a2_0x4b0863(0x2f7))[a2_0x4b0863(0x1e3)]('--json',a2_0x4b0863(0x25e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x274),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x21168d,_0x25c59a)=>{const _0x51bc28=a2_0x4b0863,_0x270b3b=new ParentSegmentSQLCommand(),_0x421742=program[_0x51bc28(0x3c6)](),_0x5ad979=await createTDXInstance(_0x421742),_0x53d751=await _0x270b3b[_0x51bc28(0x1a2)]({'options':{..._0x421742,..._0x25c59a},'args':_0x21168d?[_0x21168d]:[],'tdx':_0x5ad979});process[_0x51bc28(0x2b6)](_0x53d751);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x377))[a2_0x4b0863(0x328)](a2_0x4b0863(0x337))['option'](a2_0x4b0863(0x2b3),a2_0x4b0863(0x29e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x34b),a2_0x4b0863(0x25e))['option']('--jsonl',a2_0x4b0863(0x1aa))[a2_0x4b0863(0x252)](async(_0x5f55c3,_0x3313b4)=>{const _0x1ec5d0=a2_0x4b0863,_0x233e5e=new ParentSegmentShowCommand(),_0x34dc95=program[_0x1ec5d0(0x3c6)](),_0x1e0c03=await createTDXInstance(_0x34dc95),_0x21d774=await _0x233e5e['run']({'options':{..._0x34dc95,..._0x3313b4},'args':_0x5f55c3?[_0x5f55c3]:[],'tdx':_0x1e0c03});process[_0x1ec5d0(0x2b6)](_0x21d774);}),parentSegmentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x376))[a2_0x4b0863(0x328)]('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x1f20bc,_0x55add1)=>{const _0xfdb13d=a2_0x4b0863,_0x35b835=new UseCommand(),_0x403aef=program[_0xfdb13d(0x3c6)](),_0x447648=_0x1f20bc?['parent_segment',_0x1f20bc]:[],_0x4b927b=await _0x35b835[_0xfdb13d(0x1a2)]({'options':{..._0x403aef,..._0x55add1},'args':_0x447648,'tdx':null});process[_0xfdb13d(0x2b6)](_0x4b927b);}),parentCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x370))[a2_0x4b0863(0x328)](a2_0x4b0863(0x3cb))[a2_0x4b0863(0x39b)]('--database\x20<db>','Master\x20database\x20name')[a2_0x4b0863(0x39b)](a2_0x4b0863(0x2bd),a2_0x4b0863(0x386))['option'](a2_0x4b0863(0x2e8),'Parent\x20segment\x20description')[a2_0x4b0863(0x1e3)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x31e),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1d4),a2_0x4b0863(0x26a))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x19d),'Attributes\x20as\x20JSON\x20string')['option'](a2_0x4b0863(0x1eb),'Attributes\x20from\x20JSON\x20file')['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x4b0863(0x1e3)]('--behaviors-file\x20<file>',a2_0x4b0863(0x1a7))['option'](a2_0x4b0863(0x228),a2_0x4b0863(0x3a1))['option'](a2_0x4b0863(0x3ae),a2_0x4b0863(0x308))[a2_0x4b0863(0x252)](async(_0x5c0ace,_0x2650ad)=>{const _0x2250ce=a2_0x4b0863,_0x2395fb=new ParentSegmentCreateCommand(),_0x41258c=program[_0x2250ce(0x3c6)](),_0x102832=await createTDXInstance(_0x41258c),_0x5b40a3=await _0x2395fb[_0x2250ce(0x1a2)]({'options':{..._0x41258c,..._0x2650ad},'args':[_0x5c0ace],'tdx':_0x102832});process[_0x2250ce(0x2b6)](_0x5b40a3);}),parentCmd['command'](a2_0x4b0863(0x27e))[a2_0x4b0863(0x328)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e8),a2_0x4b0863(0x201))[a2_0x4b0863(0x1e3)]('--schedule-type\x20<type>',a2_0x4b0863(0x323))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x31e),a2_0x4b0863(0x1ea))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1d4),a2_0x4b0863(0x3b8))['option'](a2_0x4b0863(0x1c9),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x347),a2_0x4b0863(0x3ac))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x24a),a2_0x4b0863(0x1d0))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x294),a2_0x4b0863(0x387))[a2_0x4b0863(0x252)](async(_0x4c9d57,_0x1c4179)=>{const _0x11edd1=a2_0x4b0863,_0x2dd242=new ParentSegmentUpdateCommand(),_0x54f307=program[_0x11edd1(0x3c6)](),_0x2a4cc6=await createTDXInstance(_0x54f307),_0x1e547d=await _0x2dd242[_0x11edd1(0x1a2)]({'options':{..._0x54f307,..._0x1c4179},'args':[_0x4c9d57],'tdx':_0x2a4cc6});process[_0x11edd1(0x2b6)](_0x1e547d);}),folderCmd[a2_0x4b0863(0x30d)]('create\x20<parent_name>\x20<folder_name>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x30b))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e8),a2_0x4b0863(0x30f))['option'](a2_0x4b0863(0x3c1),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x4b0863(0x252)](async(_0x331db3,_0x55f0d4,_0x4b5fbb)=>{const _0x519eb9=a2_0x4b0863,_0x58975d=new SegmentFolderCreateCommand(),_0x4e02fc=program[_0x519eb9(0x3c6)](),_0x2f4481=await createTDXInstance(_0x4e02fc),_0xfb692=await _0x58975d[_0x519eb9(0x1a2)]({'options':{..._0x4e02fc,..._0x4b5fbb},'args':[_0x331db3,_0x55f0d4],'tdx':_0x2f4481});process[_0x519eb9(0x2b6)](_0xfb692);}),program[a2_0x4b0863(0x30d)]('activations\x20<segment_name>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x26c))['action'](async(_0x51f6fd,_0x46e59d)=>{const _0x4b563f=a2_0x4b0863,_0x238658=new ActivationsCommand(),_0x2957b5=program[_0x4b563f(0x3c6)](),_0x2f774b=await createTDXInstance(_0x2957b5),_0x5863a4=await _0x238658['run']({'options':{..._0x2957b5,..._0x46e59d},'args':[_0x51f6fd],'tdx':_0x2f774b});process[_0x4b563f(0x2b6)](_0x5863a4);});const workflowCmd=program['command']('workflow')['alias']('wf')[a2_0x4b0863(0x328)](a2_0x4b0863(0x1da)),wfProjectCmd=workflowCmd['command']('project')['description'](a2_0x4b0863(0x2a5)),wfProjectListAction=async(_0x5b4903,_0x500ee1)=>{const _0x4d6531=a2_0x4b0863,_0x4c0364=new WorkflowProjectsCommand(),_0x3f5839=program['opts'](),_0x4254e9=await createTDXInstance(_0x3f5839),_0x2b7645=await _0x4c0364['run']({'options':{..._0x3f5839,..._0x500ee1},'args':_0x5b4903?[_0x5b4903]:[],'tdx':_0x4254e9});process[_0x4d6531(0x2b6)](_0x2b7645);};wfProjectCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd['command'](a2_0x4b0863(0x3ab))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1f5))[a2_0x4b0863(0x252)](wfProjectListAction);const wfWorkflowListAction=async(_0x37d6b1,_0x4399a9)=>{const _0x4e5265=a2_0x4b0863,_0x35ef26=new WorkflowWorkflowsCommand(),_0x22bffe=program[_0x4e5265(0x3c6)](),_0x531a08=await createTDXInstance(_0x22bffe),_0x546ed6=await _0x35ef26[_0x4e5265(0x1a2)]({'options':{..._0x22bffe,..._0x4399a9},'args':_0x37d6b1?[_0x37d6b1]:[],'tdx':_0x531a08});process[_0x4e5265(0x2b6)](_0x546ed6);};workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2c1))[a2_0x4b0863(0x328)](a2_0x4b0863(0x3ba))[a2_0x4b0863(0x252)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x20f))[a2_0x4b0863(0x328)](a2_0x4b0863(0x24c)),wfSessionListAction=async(_0x38f622,_0x10c4b7)=>{const _0x5beabb=a2_0x4b0863,_0x1a1b62=new WorkflowSessionsCommand(),_0x1c463b=program['opts'](),_0x385b1c=await createTDXInstance(_0x1c463b),_0x4faebf=await _0x1a1b62[_0x5beabb(0x1a2)]({'options':{..._0x1c463b,..._0x10c4b7},'args':_0x38f622?[_0x38f622]:[],'tdx':_0x385b1c});process[_0x5beabb(0x2b6)](_0x4faebf);};wfSessionCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x29c))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1c3))[a2_0x4b0863(0x1e3)]('--status\x20<status>',a2_0x4b0863(0x35b))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1b1),a2_0x4b0863(0x33e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x31d),a2_0x4b0863(0x2d7))['action'](wfSessionListAction),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x32f))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cc),a2_0x4b0863(0x35b))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1b1),a2_0x4b0863(0x33e))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x31d),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x43d2fc,_0x16560e)=>{const _0x352c0a=a2_0x4b0863,_0x3d9b95=new WorkflowAttemptsCommand(),_0x44c594=program[_0x352c0a(0x3c6)](),_0x33bb6b=await createTDXInstance(_0x44c594),_0x3b6b7e=await _0x3d9b95[_0x352c0a(0x1a2)]({'options':{..._0x44c594,..._0x16560e},'args':_0x43d2fc?[_0x43d2fc]:[],'tdx':_0x33bb6b});process[_0x352c0a(0x2b6)](_0x3b6b7e);},attemptCmd=workflowCmd['command'](a2_0x4b0863(0x3b0))[a2_0x4b0863(0x328)](a2_0x4b0863(0x26f))[a2_0x4b0863(0x372)](a2_0x4b0863(0x249),a2_0x4b0863(0x3d0))[a2_0x4b0863(0x372)](a2_0x4b0863(0x344),a2_0x4b0863(0x2db))[a2_0x4b0863(0x372)](a2_0x4b0863(0x3b2),'Task\x20name\x20for\x20logs\x20action')['option'](a2_0x4b0863(0x29f),a2_0x4b0863(0x2a1))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2c9),a2_0x4b0863(0x1ef))['option'](a2_0x4b0863(0x2ee),a2_0x4b0863(0x22b))['option']('--params\x20<json>',a2_0x4b0863(0x22f))['option']('--force',a2_0x4b0863(0x367))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x25d),a2_0x4b0863(0x230))[a2_0x4b0863(0x252)](async(_0x121d78,_0x39916c,_0x5a2dea,_0x39992b)=>{const _0x474ebc=a2_0x4b0863;if(_0x121d78===_0x474ebc(0x3d2)){await wfAttemptListAction(_0x39916c,_0x39992b);return;}if(!_0x121d78){attemptCmd['help']();return;}const _0x531611=program[_0x474ebc(0x3c6)](),_0x32fcba=await createTDXInstance(_0x531611);let _0x38909d=0x0;if(!_0x39916c){const _0x27567b=new WorkflowAttemptCommand();_0x38909d=await _0x27567b[_0x474ebc(0x1a2)]({'options':{..._0x531611,..._0x39992b},'args':[_0x121d78],'tdx':_0x32fcba});}else{if(_0x39916c===_0x474ebc(0x1bd)){const _0xd3fd18=new WorkflowLogsCommand();_0x38909d=await _0xd3fd18[_0x474ebc(0x1a2)]({'options':{..._0x531611,..._0x39992b},'args':_0x5a2dea?[_0x121d78,_0x5a2dea]:[_0x121d78],'tdx':_0x32fcba});}else{if(_0x39916c===_0x474ebc(0x3d1)){const _0x3f446b=new WorkflowTasksCommand();_0x38909d=await _0x3f446b[_0x474ebc(0x1a2)]({'options':{..._0x531611,..._0x39992b},'args':[_0x121d78],'tdx':_0x32fcba});}else{if(_0x39916c===_0x474ebc(0x29b)){const _0x186e59=new WorkflowKillCommand();_0x38909d=await _0x186e59[_0x474ebc(0x1a2)]({'options':{..._0x531611,..._0x39992b},'args':[_0x121d78],'tdx':_0x32fcba});}else{if(_0x39916c===_0x474ebc(0x2cf)){const _0x29733d=new WorkflowRetryCommand();_0x38909d=await _0x29733d[_0x474ebc(0x1a2)]({'options':{..._0x531611,..._0x39992b},'args':[_0x474ebc(0x1c0)+_0x121d78],'tdx':_0x32fcba});}else console[_0x474ebc(0x19f)](_0x474ebc(0x223)+_0x39916c),console[_0x474ebc(0x19f)](_0x474ebc(0x20c)),_0x38909d=0x1;}}}}process['exit'](_0x38909d);});attemptCmd['command'](a2_0x4b0863(0x29c))['description'](a2_0x4b0863(0x310))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x25d),'Include\x20retried\x20attempts')[a2_0x4b0863(0x252)](wfAttemptListAction),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x33c))[a2_0x4b0863(0x328)](a2_0x4b0863(0x33b))['option'](a2_0x4b0863(0x25d),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x4b0863(0x30d)]('retry\x20<session-id>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x32d))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x334),'Resume\x20from\x20specific\x20task')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37a),a2_0x4b0863(0x3cd))[a2_0x4b0863(0x252)](async(_0x45d62d,_0xbbcd50)=>{const _0xa76a41=a2_0x4b0863,_0xae7ff4=new WorkflowRetryCommand(),_0x26fa33=program[_0xa76a41(0x3c6)](),_0xac4acd=await createTDXInstance(_0x26fa33),_0x2ddb19=await _0xae7ff4[_0xa76a41(0x1a2)]({'options':{..._0x26fa33,..._0xbbcd50},'args':[_0x45d62d],'tdx':_0xac4acd});process[_0xa76a41(0x2b6)](_0x2ddb19);}),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1e5))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2da))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e6),a2_0x4b0863(0x1df),(_0x456b12,_0x5ede18=[])=>[..._0x5ede18,_0x456b12],[])['option'](a2_0x4b0863(0x23d),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x4b0863(0x252)](async(_0x18c69c,_0x3c9f09)=>{const _0x5db168=a2_0x4b0863,_0x5cf961=new WorkflowRunCommand(),_0x570f6a=program[_0x5db168(0x3c6)](),_0x5764c3=await createTDXInstance(_0x570f6a),_0x33b7b1=await _0x5cf961[_0x5db168(0x1a2)]({'options':{..._0x570f6a,..._0x3c9f09},'args':[_0x18c69c],'tdx':_0x5764c3});process[_0x5db168(0x2b6)](_0x33b7b1);}),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2be))[a2_0x4b0863(0x328)](a2_0x4b0863(0x288))[a2_0x4b0863(0x1e3)]('--revision\x20<revision>',a2_0x4b0863(0x1ff))['action'](async(_0x1b55cb,_0x44cf5e,_0x5e7960)=>{const _0x53ffad=a2_0x4b0863,_0x31f8b8=new WorkflowDownloadCommand(),_0x2f21cf=program[_0x53ffad(0x3c6)](),_0xb0ec97=await createTDXInstance(_0x2f21cf),_0xb4ef64=await _0x31f8b8[_0x53ffad(0x1a2)]({'options':{..._0x2f21cf,..._0x5e7960},'args':[_0x1b55cb,_0x44cf5e||'.'],'tdx':_0xb0ec97});process[_0x53ffad(0x2b6)](_0xb4ef64);}),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x28b))['description'](a2_0x4b0863(0x26d))['option'](a2_0x4b0863(0x279),a2_0x4b0863(0x1bf))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1fc),a2_0x4b0863(0x326))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x22c),a2_0x4b0863(0x299))[a2_0x4b0863(0x252)](async(_0x1641c9,_0x4fb42a)=>{const _0x4de349=a2_0x4b0863,_0x168fa6=new WorkflowPushCommand(),_0x12a3f1=program[_0x4de349(0x3c6)](),_0xbadb8b=await createTDXInstance(_0x12a3f1),_0x14beb1=await _0x168fa6['run']({'options':{..._0x12a3f1,..._0x4fb42a},'args':_0x1641c9?[_0x1641c9]:[],'tdx':_0xbadb8b});process['exit'](_0x14beb1);}),workflowCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x394))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2d5))[a2_0x4b0863(0x252)](async(_0x4a78d7,_0xd22519)=>{const _0x26a38e=a2_0x4b0863,_0x357f21=new WorkflowDeleteCommand(),_0x31c160=program[_0x26a38e(0x3c6)](),_0x95564c=await createTDXInstance(_0x31c160),_0x89ec88=await _0x357f21[_0x26a38e(0x1a2)]({'options':{..._0x31c160,..._0xd22519},'args':[_0x4a78d7],'tdx':_0x95564c});process['exit'](_0x89ec88);});const jobCmd=program['command']('job')[a2_0x4b0863(0x328)](a2_0x4b0863(0x2f6)),jobListAction=async _0x32e616=>{const _0x4c5fec=a2_0x4b0863,_0x440a3d=new JobListCommand(),_0x4b4f86=program['opts'](),_0x880ed7=await createTDXInstance(_0x4b4f86),_0x3fd928=await _0x440a3d[_0x4c5fec(0x1a2)]({'options':{..._0x4b4f86,..._0x32e616},'args':[],'tdx':_0x880ed7});process['exit'](_0x3fd928);};jobCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3d2))['description']('List\x20jobs')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cc),a2_0x4b0863(0x39c))[a2_0x4b0863(0x252)](jobListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2a8),{'hidden':!![]})[a2_0x4b0863(0x328)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cc),a2_0x4b0863(0x39c))[a2_0x4b0863(0x252)](jobListAction),jobCmd['command'](a2_0x4b0863(0x3d6))[a2_0x4b0863(0x328)](a2_0x4b0863(0x268))['action'](async(_0x25da20,_0x4d9565)=>{const _0x28534e=a2_0x4b0863,_0x9843d4=new JobShowCommand(),_0x1a9908=program[_0x28534e(0x3c6)](),_0x28fb58=await createTDXInstance(_0x1a9908),_0x11ea50=await _0x9843d4['run']({'options':{..._0x1a9908,..._0x4d9565},'args':[_0x25da20],'tdx':_0x28fb58});process[_0x28534e(0x2b6)](_0x11ea50);}),jobCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x276))[a2_0x4b0863(0x328)](a2_0x4b0863(0x200))[a2_0x4b0863(0x252)](async(_0x2c7c86,_0x298114)=>{const _0x18c1d0=a2_0x4b0863,_0x1d094f=new JobKillCommand(),_0x2d6bd2=program[_0x18c1d0(0x3c6)](),_0xed4d63=await createTDXInstance(_0x2d6bd2),_0x319136=await _0x1d094f[_0x18c1d0(0x1a2)]({'options':{..._0x2d6bd2,..._0x298114},'args':[_0x2c7c86],'tdx':_0xed4d63});process[_0x18c1d0(0x2b6)](_0x319136);}),jobCmd[a2_0x4b0863(0x30d)]('submit\x20[query]')[a2_0x4b0863(0x328)]('Submit\x20a\x20job')['option'](a2_0x4b0863(0x2e2),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x4b0863(0x225))['option'](a2_0x4b0863(0x238),'Read\x20query\x20from\x20file')['option'](a2_0x4b0863(0x2b0),a2_0x4b0863(0x1b5),a2_0x4b0863(0x209))[a2_0x4b0863(0x252)](async(_0x230750,_0x32b7e4)=>{const _0x5ced23=a2_0x4b0863,_0x556229=new JobSubmitCommand(),_0x2d788c=program[_0x5ced23(0x3c6)](),_0xc36b71=await createTDXInstance(_0x2d788c),_0x5a0845=await _0x556229[_0x5ced23(0x1a2)]({'options':{..._0x2d788c,..._0x32b7e4},'args':_0x230750?[_0x230750]:[],'tdx':_0xc36b71});process[_0x5ced23(0x2b6)](_0x5a0845);}),jobCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1e6))[a2_0x4b0863(0x328)]('Get\x20job\x20results')[a2_0x4b0863(0x252)](async(_0x256ba1,_0x56f493)=>{const _0x5102aa=a2_0x4b0863,_0x50cec5=new JobResultCommand(),_0x48b0f9=program[_0x5102aa(0x3c6)](),_0x20c453=await createTDXInstance(_0x48b0f9),_0x3e74f7=await _0x50cec5['run']({'options':{..._0x48b0f9,..._0x56f493},'args':[_0x256ba1],'tdx':_0x20c453});process[_0x5102aa(0x2b6)](_0x3e74f7);});const llmCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x234))[a2_0x4b0863(0x328)](a2_0x4b0863(0x3bc));llmCmd[a2_0x4b0863(0x30d)]('use\x20<project-name>')['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x4b0863(0x252)](async(_0x5a798a,_0x562938)=>{const _0x195449=a2_0x4b0863,_0x383064=new LLMUseCommand(),_0x24b8b8=program[_0x195449(0x3c6)](),_0x5cbd06=await createTDXInstance(_0x24b8b8),_0x428b64=await _0x383064[_0x195449(0x1a2)]({'options':{..._0x24b8b8,..._0x562938},'args':[_0x5a798a],'tdx':_0x5cbd06});process['exit'](_0x428b64);}),llmCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x266))[a2_0x4b0863(0x328)]('List\x20available\x20LLM\x20models')[a2_0x4b0863(0x252)](async _0x26975a=>{const _0x254b0f=a2_0x4b0863,_0x23d235=new LLMModelsCommand(),_0x12d86b=program[_0x254b0f(0x3c6)](),_0x5c364b=await createTDXInstance(_0x12d86b),_0x7798eb=await _0x23d235['run']({'options':{..._0x12d86b,..._0x26975a},'args':[],'tdx':_0x5c364b});process[_0x254b0f(0x2b6)](_0x7798eb);});const projectCmd=llmCmd['command'](a2_0x4b0863(0x3cf))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1ed)),llmProjectListAction=async(_0x42634b,_0x56b79d)=>{const _0x38d15f=a2_0x4b0863,_0x439bc8=new LLMProjectsCommand(),_0x6c5d94=program[_0x38d15f(0x3c6)](),_0x5e72ea=await createTDXInstance(_0x6c5d94),_0x269b02=await _0x439bc8[_0x38d15f(0x1a2)]({'options':{..._0x6c5d94,..._0x56b79d},'args':_0x42634b?[_0x42634b]:[],'tdx':_0x5e72ea});process[_0x38d15f(0x2b6)](_0x269b02);};projectCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1ce))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x39e))[a2_0x4b0863(0x252)](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),'Show\x20console\x20URLs')['action'](llmProjectListAction),projectCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x370))[a2_0x4b0863(0x328)](a2_0x4b0863(0x283))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2e8),'Project\x20description')[a2_0x4b0863(0x252)](async(_0x3ae26b,_0x4cbf31)=>{const _0x7636bf=a2_0x4b0863,_0x2d48a3=new LLMProjectCreateCommand(),_0x165a74=program[_0x7636bf(0x3c6)](),_0x216d68=await createTDXInstance(_0x165a74),_0x23cdf8=await _0x2d48a3[_0x7636bf(0x1a2)]({'options':{..._0x165a74,..._0x4cbf31},'args':[_0x3ae26b],'tdx':_0x216d68});process[_0x7636bf(0x2b6)](_0x23cdf8);}),projectCmd[a2_0x4b0863(0x30d)]('delete\x20<name>')['description'](a2_0x4b0863(0x3ad))['action'](async(_0x2ce2b7,_0x1ae5bb)=>{const _0x26f003=a2_0x4b0863,_0x4a9a4f=new LLMProjectDeleteCommand(),_0x1c6106=program['opts'](),_0x4430b2=await createTDXInstance(_0x1c6106),_0x250545=await _0x4a9a4f[_0x26f003(0x1a2)]({'options':{..._0x1c6106,..._0x1ae5bb},'args':[_0x2ce2b7],'tdx':_0x4430b2});process[_0x26f003(0x2b6)](_0x250545);}),projectCmd[a2_0x4b0863(0x30d)]('backup\x20<name>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x2d4))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x346),a2_0x4b0863(0x350))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x363),a2_0x4b0863(0x216))[a2_0x4b0863(0x252)](async(_0x495fc1,_0x4c39f3)=>{const _0x382649=a2_0x4b0863,_0x4156ef=new LLMProjectBackupCommand(),_0x201c56=program['opts'](),_0x1a5a77=await createTDXInstance(_0x201c56),_0x17a4ee=await _0x4156ef[_0x382649(0x1a2)]({'options':{..._0x201c56,..._0x4c39f3},'args':[_0x495fc1],'tdx':_0x1a5a77});process[_0x382649(0x2b6)](_0x17a4ee);}),projectCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x388))['description'](a2_0x4b0863(0x2d6))['option'](a2_0x4b0863(0x220),a2_0x4b0863(0x1f0))['option']('--dry-run',a2_0x4b0863(0x345))[a2_0x4b0863(0x252)](async(_0x157495,_0x1947ec)=>{const _0x2a4a9a=a2_0x4b0863,_0x5a1c82=new LLMProjectRestoreCommand(),_0x158924=program['opts'](),_0x589717=await createTDXInstance(_0x158924),_0x44914a=await _0x5a1c82[_0x2a4a9a(0x1a2)]({'options':{..._0x158924,..._0x1947ec},'args':[_0x157495],'tdx':_0x589717});process[_0x2a4a9a(0x2b6)](_0x44914a);});const llmAgentListAction=async(_0x10608a,_0x34ebac)=>{const _0x2f09d8=a2_0x4b0863,_0x2bfedc=new LLMAgentsCommand(),_0x58902e=program['opts'](),_0xbabae2=await createTDXInstance(_0x58902e),_0x385085=await _0x2bfedc['run']({'options':{..._0x58902e,..._0x34ebac},'args':_0x10608a?[_0x10608a]:[],'tdx':_0xbabae2});process[_0x2f09d8(0x2b6)](_0x385085);};llmCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x34e))[a2_0x4b0863(0x328)](a2_0x4b0863(0x254))[a2_0x4b0863(0x1e3)]('-w,\x20--web',a2_0x4b0863(0x1d1))[a2_0x4b0863(0x252)](llmAgentListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x34e))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x1d1))['action'](llmAgentListAction),llmCmd['command'](a2_0x4b0863(0x324))['description'](a2_0x4b0863(0x36e))[a2_0x4b0863(0x1e3)]('--last',a2_0x4b0863(0x329))[a2_0x4b0863(0x252)](async(_0x5e35e9,_0x488088)=>{const _0x57e0db=a2_0x4b0863,_0x266bae=new LLMHistoryCommand(),_0x68e8dc=program[_0x57e0db(0x3c6)](),_0x2f5e71=await createTDXInstance(_0x68e8dc),_0x25e78a=await _0x266bae[_0x57e0db(0x1a2)]({'options':{..._0x68e8dc,..._0x488088},'args':_0x5e35e9?[_0x5e35e9]:[],'tdx':_0x2f5e71});process[_0x57e0db(0x2b6)](_0x25e78a);}),llmCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x34d))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2cb))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x241),a2_0x4b0863(0x3a7),a2_0x4b0863(0x3aa))[a2_0x4b0863(0x1e3)]('--project\x20<name>',a2_0x4b0863(0x38c))['option'](a2_0x4b0863(0x1fa),a2_0x4b0863(0x1a0))[a2_0x4b0863(0x252)](async _0x3b385c=>{const _0x4cab83=a2_0x4b0863,_0x22b6e0=new LLMProxyCommand(),_0x24c49c=program['opts'](),_0x3accb1=await createTDXInstance(_0x24c49c),_0x15134e={..._0x3b385c,'port':_0x3b385c[_0x4cab83(0x219)]?parseInt(_0x3b385c['port'],0xa):undefined},_0x5b655f=await _0x22b6e0[_0x4cab83(0x1a2)]({'options':{..._0x24c49c,..._0x15134e},'args':[],'tdx':_0x3accb1});process[_0x4cab83(0x2b6)](_0x5b655f);}),program[a2_0x4b0863(0x30d)]('claude\x20[args...]')['usage'](a2_0x4b0863(0x3b3))['description'](a2_0x4b0863(0x2b5))['option']('--model\x20<name>',a2_0x4b0863(0x1d7),a2_0x4b0863(0x1be))['option'](a2_0x4b0863(0x22d),a2_0x4b0863(0x395))[a2_0x4b0863(0x1e3)]('-r,\x20--resume',a2_0x4b0863(0x396))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1ae),a2_0x4b0863(0x239))[a2_0x4b0863(0x275)]()[a2_0x4b0863(0x2ce)](!![])[a2_0x4b0863(0x2ad)](a2_0x4b0863(0x365),a2_0x4b0863(0x29d))['action'](async(_0x5bfbd8,_0x2802dc)=>{const _0x568843=a2_0x4b0863,_0x2e9b57=program[_0x568843(0x3c6)](),_0x537528=Array[_0x568843(0x240)](_0x5bfbd8)?_0x5bfbd8:[];if(_0x537528[0x0]===_0x568843(0x1f8)){const _0x230e3a=new ClaudeStatuslineCommand(),_0x225ff5=await _0x230e3a[_0x568843(0x1a2)]({'options':{..._0x2e9b57,..._0x2802dc},'args':_0x537528[_0x568843(0x2c4)](0x1),'tdx':null});process[_0x568843(0x2b6)](_0x225ff5);}if(_0x537528[0x0]===_0x568843(0x24f)){const _0x27e03c=new ClaudeUsageCommand(),_0x569c03=await _0x27e03c[_0x568843(0x1a2)]({'options':{..._0x2e9b57,..._0x2802dc},'args':_0x537528[_0x568843(0x2c4)](0x1),'tdx':null});process[_0x568843(0x2b6)](_0x569c03);}const _0x3a1516=new ClaudeCommand(),_0x32797c=await createTDXInstance(_0x2e9b57),_0x168554=await _0x3a1516[_0x568843(0x1a2)]({'options':{..._0x2e9b57,..._0x2802dc},'args':_0x537528,'tdx':_0x32797c});process[_0x568843(0x2b6)](_0x168554);}),program['command'](a2_0x4b0863(0x23a))['description'](a2_0x4b0863(0x2d8))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1c6),a2_0x4b0863(0x39f))[a2_0x4b0863(0x252)](async _0xe61b8b=>{const _0x317fff=a2_0x4b0863,_0x594958=new ContextCommand(),_0x5912dd=program[_0x317fff(0x3c6)](),_0x2a35c4=await _0x594958[_0x317fff(0x1a2)]({'options':{..._0x5912dd,..._0xe61b8b},'args':[],'tdx':null});process[_0x317fff(0x2b6)](_0x2a35c4);}),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x327))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1b8))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1c6),a2_0x4b0863(0x39f))[a2_0x4b0863(0x252)](async(_0x16e35e,_0x174e39,_0x2a3a61)=>{const _0x1f6cc4=a2_0x4b0863,_0x4bc4b9=new UseCommand(),_0x257a8d=program[_0x1f6cc4(0x3c6)](),_0x4b0fce=[];if(_0x16e35e)_0x4b0fce[_0x1f6cc4(0x2bc)](_0x16e35e);if(_0x174e39)_0x4b0fce[_0x1f6cc4(0x2bc)](_0x174e39);const _0x5c2b92=await _0x4bc4b9[_0x1f6cc4(0x1a2)]({'options':{..._0x257a8d,..._0x2a3a61},'args':_0x4b0fce,'tdx':null});process[_0x1f6cc4(0x2b6)](_0x5c2b92);}),program[a2_0x4b0863(0x30d)]('chats')[a2_0x4b0863(0x328)]('Interactive\x20chat\x20selector')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x398),a2_0x4b0863(0x2fa))[a2_0x4b0863(0x252)](async _0x1be3c4=>{const _0x38a8b2=a2_0x4b0863,_0x1f3fb5=new ChatsCommand(),_0x27dc5e=program[_0x38a8b2(0x3c6)](),_0x4aa7d9=await createTDXInstance(_0x27dc5e),_0x2599b7=await _0x1f3fb5['run']({'options':{..._0x27dc5e,..._0x1be3c4},'args':[],'tdx':_0x4aa7d9});process[_0x38a8b2(0x2b6)](_0x2599b7);});const authCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3bf))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1a4));async function runAuthStatusCommand(_0x1d2191){const _0x353e99=a2_0x4b0863,_0x1d71f1=new AuthStatusCommand(),_0x2fef2f=program[_0x353e99(0x3c6)](),_0x2f208e=await createTDXInstance(_0x2fef2f),_0x9cda10=await _0x1d71f1[_0x353e99(0x1a2)]({'options':{..._0x2fef2f,..._0x1d2191},'args':[],'tdx':_0x2f208e});process['exit'](_0x9cda10);}authCmd[a2_0x4b0863(0x252)](runAuthStatusCommand),authCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3b1))[a2_0x4b0863(0x328)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x4b0863(0x252)](runAuthStatusCommand),authCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x24b))[a2_0x4b0863(0x328)](a2_0x4b0863(0x35e))[a2_0x4b0863(0x2ad)](a2_0x4b0863(0x365),a2_0x4b0863(0x2c6))[a2_0x4b0863(0x252)](async _0xf16cb8=>{const _0x4a654d=a2_0x4b0863,_0x2da0c6=new AuthSetupCommand(),_0x105fb8=program['opts'](),_0xb6587=await createTDXInstance(_0x105fb8),_0x361650=await _0x2da0c6['run']({'options':{..._0x105fb8,..._0xf16cb8},'args':[],'tdx':_0xb6587});process[_0x4a654d(0x2b6)](_0x361650);}),authCmd['command'](a2_0x4b0863(0x24e))['description'](a2_0x4b0863(0x285))[a2_0x4b0863(0x2ad)](a2_0x4b0863(0x365),a2_0x4b0863(0x271))[a2_0x4b0863(0x252)](async _0x577469=>{const _0x13418f=a2_0x4b0863,_0x48e900=new AuthClearCommand(),_0x2f0d47=program[_0x13418f(0x3c6)](),_0x35a05a=await _0x48e900['run']({'options':{..._0x2f0d47,..._0x577469},'args':[],'tdx':null});process['exit'](_0x35a05a);});const userCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3af))['description'](a2_0x4b0863(0x1f7)),userListAction=async _0x5aba69=>{const _0x25f4fa=a2_0x4b0863,_0x4e2f31=new UserListCommand(),_0xaaa2e3=program[_0x25f4fa(0x3c6)](),_0x256038=await createTDXInstance(_0xaaa2e3),_0x222942=await _0x4e2f31[_0x25f4fa(0x1a2)]({'options':{..._0xaaa2e3,..._0x5aba69},'args':[],'tdx':_0x256038});process[_0x25f4fa(0x2b6)](_0x222942);};userCmd['action'](async _0x186ef4=>{const _0x59ff90=a2_0x4b0863,_0x10cf17=new UserCommand(),_0x55df0c=program[_0x59ff90(0x3c6)](),_0x2dcfe3=await createTDXInstance(_0x55df0c),_0x4f60a7=await _0x10cf17[_0x59ff90(0x1a2)]({'options':{..._0x55df0c,..._0x186ef4},'args':[],'tdx':_0x2dcfe3});process[_0x59ff90(0x2b6)](_0x4f60a7);}),userCmd[a2_0x4b0863(0x30d)]('list')[a2_0x4b0863(0x328)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x4b0863(0x252)](userListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2ac))[a2_0x4b0863(0x328)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x4b0863(0x252)](userListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x35a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2fb))['action'](async _0x21533a=>{const _0x3f3587=a2_0x4b0863,_0x37f382=new ProfilesCommand(),_0x5983dc=program[_0x3f3587(0x3c6)](),_0x2ef8d9=await _0x37f382[_0x3f3587(0x1a2)]({'options':{..._0x5983dc,..._0x21533a},'args':[],'tdx':null});process[_0x3f3587(0x2b6)](_0x2ef8d9);});const engageCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2b2))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x50e963=>{return async(_0x25cc7a,_0x40baf4)=>{const _0x30d433=a2_0x2509,_0x1155ab=new _0x50e963(),_0x57c1e6=program[_0x30d433(0x3c6)](),_0x4bfcf7=await createTDXInstance(_0x57c1e6),_0x32f0e9=await _0x1155ab[_0x30d433(0x1a2)]({'options':{..._0x57c1e6,..._0x40baf4},'args':[_0x25cc7a],'tdx':_0x4bfcf7});process['exit'](_0x32f0e9);};},createEngageNoArgAction=_0x2d9010=>{return async _0x16a075=>{const _0x2f8a5c=a2_0x2509,_0x2f9b54=new _0x2d9010(),_0x167282=program[_0x2f8a5c(0x3c6)](),_0x3b0623=await createTDXInstance(_0x167282),_0x12f6d3=await _0x2f9b54[_0x2f8a5c(0x1a2)]({'options':{..._0x167282,..._0x16a075},'args':[],'tdx':_0x3b0623});process['exit'](_0x12f6d3);};},campaignCmd=engageCmd[a2_0x4b0863(0x30d)]('campaign')[a2_0x4b0863(0x328)](a2_0x4b0863(0x2d9)),campaignListAction=async(_0x116151,_0x43ee40)=>{const _0x2723b4=a2_0x4b0863,_0x140887=new EngageCampaignsCommand(),_0x25a0a3=program[_0x2723b4(0x3c6)](),_0x36eda6=await createTDXInstance(_0x25a0a3),_0x4ca9ea=await _0x140887[_0x2723b4(0x1a2)]({'options':{..._0x25a0a3,..._0x43ee40},'args':_0x116151?[_0x116151]:[],'tdx':_0x36eda6});process[_0x2723b4(0x2b6)](_0x4ca9ea);};campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1b6))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1bc),a2_0x4b0863(0x379))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cc),a2_0x4b0863(0x2c8))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))['action'](campaignListAction),engageCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3c2))['description'](a2_0x4b0863(0x3b9))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1bc),a2_0x4b0863(0x379))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1cc),a2_0x4b0863(0x2c8))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),'Workspace\x20name')[a2_0x4b0863(0x252)](campaignListAction),campaignCmd['command'](a2_0x4b0863(0x2ed))['description'](a2_0x4b0863(0x353))[a2_0x4b0863(0x1e3)]('--workspace\x20<name>',a2_0x4b0863(0x380))['option'](a2_0x4b0863(0x26e),a2_0x4b0863(0x211))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3b6))[a2_0x4b0863(0x328)]('Create\x20a\x20new\x20campaign')[a2_0x4b0863(0x39b)](a2_0x4b0863(0x279),a2_0x4b0863(0x205))[a2_0x4b0863(0x39b)](a2_0x4b0863(0x1bc),a2_0x4b0863(0x24d))['option'](a2_0x4b0863(0x273),a2_0x4b0863(0x243))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x233),'Campaign\x20description')[a2_0x4b0863(0x1e3)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2f9),a2_0x4b0863(0x264))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x336),a2_0x4b0863(0x2f4))['option'](a2_0x4b0863(0x23e),a2_0x4b0863(0x258))[a2_0x4b0863(0x1e3)]('--timezone\x20<tz>',a2_0x4b0863(0x277))[a2_0x4b0863(0x252)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2ec))['description'](a2_0x4b0863(0x1b9))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x279),a2_0x4b0863(0x3cc))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x233),a2_0x4b0863(0x199))['option'](a2_0x4b0863(0x36d),a2_0x4b0863(0x28a))[a2_0x4b0863(0x1e3)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x4b0863(0x1e3)]('--json-columns\x20<cols>',a2_0x4b0863(0x2f4))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x23e),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x4b0863(0x1e3)]('--timezone\x20<tz>',a2_0x4b0863(0x277))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x304))['description'](a2_0x4b0863(0x2fc))[a2_0x4b0863(0x1e3)]('--workspace\x20<name>',a2_0x4b0863(0x380))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1c8),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x19b))['description'](a2_0x4b0863(0x247))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x246))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1b4))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x4b0863(0x1d3))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1d5))['option'](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x259))[a2_0x4b0863(0x328)](a2_0x4b0863(0x302))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x252)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4b0863(0x30d)]('template')[a2_0x4b0863(0x328)](a2_0x4b0863(0x375)),templateListAction=async(_0x4766bc,_0x1b8cff)=>{const _0x1fa014=a2_0x4b0863,_0x47af32=new EngageTemplatesCommand(),_0x4b0d2d=program[_0x1fa014(0x3c6)](),_0x1be7f5=await createTDXInstance(_0x4b0d2d),_0x3e85f5=await _0x47af32[_0x1fa014(0x1a2)]({'options':{..._0x4b0d2d,..._0x1b8cff},'args':_0x4766bc?[_0x4766bc]:[],'tdx':_0x1be7f5});process['exit'](_0x3e85f5);};templateCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1d2))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))['action'](templateListAction),engageCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x284))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1db))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x252)](templateListAction),templateCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2ed))[a2_0x4b0863(0x328)](a2_0x4b0863(0x351))['option'](a2_0x4b0863(0x273),a2_0x4b0863(0x380))[a2_0x4b0863(0x1e3)]('--full',a2_0x4b0863(0x211))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3b6))[a2_0x4b0863(0x328)](a2_0x4b0863(0x318))[a2_0x4b0863(0x39b)](a2_0x4b0863(0x279),a2_0x4b0863(0x319))[a2_0x4b0863(0x39b)](a2_0x4b0863(0x23c),'Email\x20subject\x20template')['requiredOption'](a2_0x4b0863(0x2a3),a2_0x4b0863(0x1bb))['option'](a2_0x4b0863(0x273),a2_0x4b0863(0x243))['option'](a2_0x4b0863(0x2a4),'Plaintext\x20template\x20content')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x314),'Editor\x20type')[a2_0x4b0863(0x252)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2ec))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1a5))['option']('--workspace\x20<name>',a2_0x4b0863(0x380))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x279),a2_0x4b0863(0x37b))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x23c),a2_0x4b0863(0x2cd))[a2_0x4b0863(0x1e3)]('--html\x20<html>','HTML\x20template\x20content')['option'](a2_0x4b0863(0x2a4),a2_0x4b0863(0x3d9))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x4b0863(0x304))[a2_0x4b0863(0x328)]('Delete\x20an\x20email\x20template')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x273),a2_0x4b0863(0x380))['option'](a2_0x4b0863(0x1c8),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x4b0863(0x306))[a2_0x4b0863(0x328)]('Workspace\x20management'),workspaceListAction=async(_0x105885,_0x2f811e)=>{const _0x1673bd=a2_0x4b0863,_0x593258=new EngageWorkspacesCommand(),_0x2ed3a2=program[_0x1673bd(0x3c6)](),_0x2ab75a=await createTDXInstance(_0x2ed3a2),_0x2199fa=await _0x593258['run']({'options':{..._0x2ed3a2,..._0x2f811e},'args':_0x105885?[_0x105885]:[],'tdx':_0x2ab75a});process['exit'](_0x2199fa);};workspaceCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4b0863(0x252)](workspaceListAction),engageCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x22a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x25a))[a2_0x4b0863(0x252)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x333))['option'](a2_0x4b0863(0x26e),a2_0x4b0863(0x211))[a2_0x4b0863(0x252)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3b6))[a2_0x4b0863(0x328)](a2_0x4b0863(0x332))['requiredOption']('--name\x20<name>','Workspace\x20name')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x233),a2_0x4b0863(0x1c5))[a2_0x4b0863(0x252)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x2ec))[a2_0x4b0863(0x328)](a2_0x4b0863(0x35d))['option'](a2_0x4b0863(0x279),'New\x20workspace\x20name')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x233),a2_0x4b0863(0x1c5))[a2_0x4b0863(0x252)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x304))[a2_0x4b0863(0x328)]('Delete\x20a\x20workspace')['option'](a2_0x4b0863(0x1c8),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x252)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4b0863(0x30d)]('use\x20<name>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x26b))[a2_0x4b0863(0x252)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x1e7))['description'](a2_0x4b0863(0x251)),connectionListAction=async _0x341c9f=>{const _0x4122a5=a2_0x4b0863,_0x528a8a=new ConnectionListCommand(),_0x328ab5=program[_0x4122a5(0x3c6)](),_0x244380=await createTDXInstance(_0x328ab5),_0x51be30=await _0x528a8a['run']({'options':{..._0x328ab5,..._0x341c9f},'args':[],'tdx':_0x244380});process[_0x4122a5(0x2b6)](_0x51be30);};connectionCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3d2))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1a1))[a2_0x4b0863(0x252)](connectionListAction),program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36f),{'hidden':!![]})['description'](a2_0x4b0863(0x309))[a2_0x4b0863(0x252)](connectionListAction),connectionCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x21a))['description'](a2_0x4b0863(0x31f))[a2_0x4b0863(0x252)](async(_0x1d56b0,_0x33776e)=>{const _0x4c3823=a2_0x4b0863,_0x439be1=new ConnectionShowCommand(),_0x55f378=program[_0x4c3823(0x3c6)](),_0x36b762=await createTDXInstance(_0x55f378),_0x26ef96=await _0x439be1[_0x4c3823(0x1a2)]({'options':{..._0x55f378,..._0x33776e},'args':[_0x1d56b0],'tdx':_0x36b762});process['exit'](_0x26ef96);}),connectionCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x39d))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2e1))[a2_0x4b0863(0x252)](async(_0x38be36,_0x13424c)=>{const _0x626db9=a2_0x4b0863,_0x147683=new ConnectionSchemaCommand(),_0x3927f9=program[_0x626db9(0x3c6)](),_0x574489=await createTDXInstance(_0x3927f9),_0x52cec0=await _0x147683['run']({'options':{..._0x3927f9,..._0x13424c},'args':[_0x38be36],'tdx':_0x574489});process[_0x626db9(0x2b6)](_0x52cec0);}),connectionCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x38b))[a2_0x4b0863(0x328)](a2_0x4b0863(0x27b))[a2_0x4b0863(0x252)](async _0x806f9d=>{const _0x5ddaf6=a2_0x4b0863,_0x443b22=new ConnectionTypesCommand(),_0x55bb73=program['opts'](),_0x47ff14=await createTDXInstance(_0x55bb73),_0x319f5e=await _0x443b22['run']({'options':{..._0x55bb73,..._0x806f9d},'args':[],'tdx':_0x47ff14});process[_0x5ddaf6(0x2b6)](_0x319f5e);}),connectionCmd['command'](a2_0x4b0863(0x38a))[a2_0x4b0863(0x328)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')['action'](async(_0x1badc1,_0x4f4b6c)=>{const _0x547b93=a2_0x4b0863,_0x24728c=new ConnectionSettingsCommand(),_0x3339eb=program[_0x547b93(0x3c6)](),_0xabde3a=await createTDXInstance(_0x3339eb),_0x364a3b=await _0x24728c[_0x547b93(0x1a2)]({'options':{..._0x3339eb,..._0x4f4b6c},'args':[_0x1badc1],'tdx':_0xabde3a});process[_0x547b93(0x2b6)](_0x364a3b);});const journeyCmd=program[a2_0x4b0863(0x30d)]('journey')[a2_0x4b0863(0x328)]('CDP\x20Journey\x20Orchestration\x20commands');journeyCmd['command']('list\x20[pattern]')[a2_0x4b0863(0x328)]('List\x20journeys\x20in\x20current\x20context')[a2_0x4b0863(0x1e3)]('-w,\x20--web',a2_0x4b0863(0x1c7))[a2_0x4b0863(0x252)](async(_0x5ec9c4,_0x427283)=>{const _0x281615=a2_0x4b0863,_0x1dd8bb=new JourneyListCommand(),_0x42f43f=program[_0x281615(0x3c6)](),_0x1eba2b=await createTDXInstance(_0x42f43f),_0x165829=await _0x1dd8bb[_0x281615(0x1a2)]({'options':{..._0x42f43f,..._0x427283},'args':_0x5ec9c4?[_0x5ec9c4]:[],'tdx':_0x1eba2b});process[_0x281615(0x2b6)](_0x165829);}),journeyCmd['command']('view\x20<name-or-path>')[a2_0x4b0863(0x328)]('Show\x20journey\x20details')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x3a0))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2af),a2_0x4b0863(0x278))['action'](async(_0x48681d,_0x41f76d)=>{const _0x610bf4=a2_0x4b0863,_0x18b9b9=new JourneyViewCommand(),_0x7315fd=program[_0x610bf4(0x3c6)](),_0x16db43=await createTDXInstance(_0x7315fd),_0x41a1c3=await _0x18b9b9[_0x610bf4(0x1a2)]({'options':{..._0x7315fd,..._0x41f76d},'args':[_0x48681d],'tdx':_0x16db43});process[_0x610bf4(0x2b6)](_0x41a1c3);}),journeyCmd[a2_0x4b0863(0x30d)]('stats\x20<name-or-path>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x322))[a2_0x4b0863(0x1e3)]('--stage\x20<name>',a2_0x4b0863(0x37e))[a2_0x4b0863(0x252)](async(_0x5915b2,_0x3457f5)=>{const _0x1cc10a=a2_0x4b0863,_0x5b3c89=new JourneyStatsCommand(),_0x1ab0b=program[_0x1cc10a(0x3c6)](),_0x5cef42=await createTDXInstance(_0x1ab0b),_0xe916ca=await _0x5b3c89[_0x1cc10a(0x1a2)]({'options':{..._0x1ab0b,..._0x3457f5},'args':[_0x5915b2],'tdx':_0x5cef42});process[_0x1cc10a(0x2b6)](_0xe916ca);}),journeyCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x290))[a2_0x4b0863(0x328)]('Pause\x20a\x20running\x20journey')['action'](async(_0x5e1dda,_0x26adaf)=>{const _0x5a1d95=a2_0x4b0863,_0x2e93e0=new JourneyPauseCommand(),_0x1d97cd=program['opts'](),_0x5915c1=await createTDXInstance(_0x1d97cd),_0x199b7d=await _0x2e93e0[_0x5a1d95(0x1a2)]({'options':{..._0x1d97cd,..._0x26adaf},'args':[_0x5e1dda],'tdx':_0x5915c1});process['exit'](_0x199b7d);}),journeyCmd[a2_0x4b0863(0x30d)]('resume\x20<name-or-path>')[a2_0x4b0863(0x328)](a2_0x4b0863(0x263))[a2_0x4b0863(0x252)](async(_0x246595,_0x54ed29)=>{const _0x397223=a2_0x4b0863,_0x53f2da=new JourneyResumeCommand(),_0x4fb180=program['opts'](),_0x5af0d9=await createTDXInstance(_0x4fb180),_0x2cf8fd=await _0x53f2da[_0x397223(0x1a2)]({'options':{..._0x4fb180,..._0x54ed29},'args':[_0x246595],'tdx':_0x5af0d9});process[_0x397223(0x2b6)](_0x2cf8fd);}),journeyCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x222))[a2_0x4b0863(0x328)](a2_0x4b0863(0x25b))['option'](a2_0x4b0863(0x2a0),a2_0x4b0863(0x2ea))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x363),a2_0x4b0863(0x2b8))[a2_0x4b0863(0x252)](async(_0x51fbd6,_0x4c6509)=>{const _0x4820ae=a2_0x4b0863,_0x37453e=new JourneyPullCommand(),_0x5ea7ef=program[_0x4820ae(0x3c6)](),_0x281335=await createTDXInstance(_0x5ea7ef),_0x29b2cb=await _0x37453e[_0x4820ae(0x1a2)]({'options':{..._0x5ea7ef,..._0x4c6509},'args':_0x51fbd6?[_0x51fbd6]:[],'tdx':_0x281335});process[_0x4820ae(0x2b6)](_0x29b2cb);}),journeyCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x358))[a2_0x4b0863(0x328)](a2_0x4b0863(0x357))[a2_0x4b0863(0x252)](async(_0x37383d,_0x37e39a)=>{const _0x361786=a2_0x4b0863,_0x2b63f9=new JourneyPushCommand(),_0x5bc284=program[_0x361786(0x3c6)](),_0x1fa61f=await createTDXInstance(_0x5bc284),_0x5a617e=await _0x2b63f9[_0x361786(0x1a2)]({'options':{..._0x5bc284,..._0x37e39a},'args':_0x37383d?[_0x37383d]:[],'tdx':_0x1fa61f});process[_0x361786(0x2b6)](_0x5a617e);}),journeyCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3c5))[a2_0x4b0863(0x328)](a2_0x4b0863(0x232))[a2_0x4b0863(0x252)](async(_0x179279,_0x368528)=>{const _0x6262b2=a2_0x4b0863,_0x1ea28e=new JourneyValidateCommand(),_0x19b569=program[_0x6262b2(0x3c6)](),_0x2f854b=await createTDXInstance(_0x19b569),_0x363b56=await _0x1ea28e['run']({'options':{..._0x19b569,..._0x368528},'args':_0x179279?[_0x179279]:[],'tdx':_0x2f854b});process[_0x6262b2(0x2b6)](_0x363b56);});const agentSyncCmd=program[a2_0x4b0863(0x30d)](a2_0x4b0863(0x360))['description'](a2_0x4b0863(0x213));agentSyncCmd[a2_0x4b0863(0x30d)]('pull\x20[project]\x20[agent-name]')[a2_0x4b0863(0x328)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x295),a2_0x4b0863(0x38e))['option'](a2_0x4b0863(0x359),a2_0x4b0863(0x3c7))[a2_0x4b0863(0x252)](async(_0x3c5249,_0x359229,_0x164c31)=>{const _0x4e849d=a2_0x4b0863,_0x5c7e56=new AgentPullCommand(),_0x5d5fc5=program[_0x4e849d(0x3c6)](),_0x175ced=await createTDXInstance(_0x5d5fc5),_0x11df53=[];if(_0x3c5249)_0x11df53[_0x4e849d(0x2bc)](_0x3c5249);if(_0x359229)_0x11df53[_0x4e849d(0x2bc)](_0x359229);const _0x2d343d=await _0x5c7e56[_0x4e849d(0x1a2)]({'options':{..._0x5d5fc5,..._0x164c31},'args':_0x11df53,'tdx':_0x175ced});process[_0x4e849d(0x2b6)](_0x2d343d);}),agentSyncCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x3a9))['description'](a2_0x4b0863(0x1de))[a2_0x4b0863(0x1e3)]('-f,\x20--force','Push\x20without\x20confirmation')[a2_0x4b0863(0x252)](async(_0x575a2e,_0x5ab115)=>{const _0x2ca223=a2_0x4b0863,_0x55f22f=new AgentPushCommand(),_0x43f551=program[_0x2ca223(0x3c6)](),_0x3d0fe7=await createTDXInstance(_0x43f551),_0x4efa42=await _0x55f22f[_0x2ca223(0x1a2)]({'options':{..._0x43f551,..._0x5ab115},'args':_0x575a2e?[_0x575a2e]:[],'tdx':_0x3d0fe7});process[_0x2ca223(0x2b6)](_0x4efa42);}),agentSyncCmd['command']('clone\x20[source]')[a2_0x4b0863(0x328)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1b7),a2_0x4b0863(0x2f5))[a2_0x4b0863(0x252)](async(_0x40bff8,_0x213eb8)=>{const _0x4a05c3=a2_0x4b0863,_0x4600d7=new AgentCloneCommand(),_0x2148b3=program['opts'](),_0x179683=await createTDXInstance(_0x2148b3),_0x35bc18=await _0x4600d7[_0x4a05c3(0x1a2)]({'options':{..._0x2148b3,..._0x213eb8},'args':_0x40bff8?[_0x40bff8]:[],'tdx':_0x179683});process[_0x4a05c3(0x2b6)](_0x35bc18);}),agentSyncCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x36a))['description'](a2_0x4b0863(0x30c))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x37c),a2_0x4b0863(0x1d1))['action'](llmAgentListAction),agentSyncCmd['command'](a2_0x4b0863(0x31a))[a2_0x4b0863(0x328)](a2_0x4b0863(0x1b2))[a2_0x4b0863(0x252)](async(_0x26fe4a,_0x2b3599)=>{const _0x5e9960=a2_0x4b0863,_0x4c72dc=new LLMAgentShowCommand(),_0x526857=program['opts'](),_0x8c4f7e=await createTDXInstance(_0x526857),_0x55deb5=await _0x4c72dc[_0x5e9960(0x1a2)]({'options':{..._0x526857,..._0x2b3599},'args':[_0x26fe4a],'tdx':_0x8c4f7e});process['exit'](_0x55deb5);}),agentSyncCmd[a2_0x4b0863(0x30d)](a2_0x4b0863(0x370))[a2_0x4b0863(0x328)](a2_0x4b0863(0x2ae))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x1d9),a2_0x4b0863(0x1cd))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2a7),a2_0x4b0863(0x272),a2_0x4b0863(0x397))[a2_0x4b0863(0x1e3)]('--starter-message\x20<text>',a2_0x4b0863(0x1fb))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x214),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x2ff),a2_0x4b0863(0x2d2),a2_0x4b0863(0x1ba))['action'](async(_0x287bec,_0x44c6a2)=>{const _0x8ef721=new LLMAgentCreateCommand(),_0x5be1bd=program['opts'](),_0xd0ada3=await createTDXInstance(_0x5be1bd),_0x18e655=await _0x8ef721['run']({'options':{..._0x5be1bd,..._0x44c6a2},'args':[_0x287bec],'tdx':_0xd0ada3});process['exit'](_0x18e655);}),agentSyncCmd[a2_0x4b0863(0x30d)]('update\x20<agent-name>')[a2_0x4b0863(0x328)]('Update\x20an\x20existing\x20agent')[a2_0x4b0863(0x1e3)]('--name\x20<text>',a2_0x4b0863(0x3c4))[a2_0x4b0863(0x1e3)](a2_0x4b0863(0x3d4),a2_0x4b0863(0x373))['option'](a2_0x4b0863(0x2e8),a2_0x4b0863(0x22e))['option'](a2_0x4b0863(0x343),a2_0x4b0863(0x1fb))[a2_0x4b0863(0x252)](async(_0x44590a,_0x351c7a)=>{const _0x5b6e39=a2_0x4b0863,_0x459929=new LLMAgentUpdateCommand(),_0xadb996=program['opts'](),_0x440510=await createTDXInstance(_0xadb996),_0x585f77=await _0x459929[_0x5b6e39(0x1a2)]({'options':{..._0xadb996,..._0x351c7a},'args':[_0x44590a],'tdx':_0x440510});process['exit'](_0x585f77);}),agentSyncCmd['command'](a2_0x4b0863(0x352))[a2_0x4b0863(0x328)](a2_0x4b0863(0x361))['action'](async(_0x413e4d,_0x49e217)=>{const _0x52d2ff=a2_0x4b0863,_0x2e7c03=new LLMAgentDeleteCommand(),_0x4dd92c=program[_0x52d2ff(0x3c6)](),_0x2e70ba=await createTDXInstance(_0x4dd92c),_0x371137=await _0x2e7c03[_0x52d2ff(0x1a2)]({'options':{..._0x4dd92c,..._0x49e217},'args':[_0x413e4d],'tdx':_0x2e70ba});process[_0x52d2ff(0x2b6)](_0x371137);});export{program};function a2_0x2509(_0x3deb04,_0x31d051){_0x3deb04=_0x3deb04-0x197;const _0x537383=a2_0x5373();let _0x2509aa=_0x537383[_0x3deb04];return _0x2509aa;}function a2_0x5373(){const _0x88be5f=['--timeout\x20<seconds>','--html\x20<html>','--plaintext\x20<text>','Workflow\x20project\x20management','chat\x20[message...]','--model\x20<name>','jobs','--kind\x20<type>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','then','users','addHelpText','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--include-stats','--database\x20<name>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','engage','--limit\x20<n>','argumentDescription','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','exit','1673556hoglih','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','tables\x20[pattern]','push','--table\x20<table>','download\x20<project-name>\x20[output-dir]','version','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','workflows\x20[project]','2mtTIgW','--limit\x20<rows>','slice','--parent-segment\x20<name>','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--reason\x20<text>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','describe\x20[table]','Email\x20subject\x20template','allowExcessArguments','retry','--site\x20<site>','Show\x20web\x20console\x20URLs\x20for\x20segments','Temperature\x20(0.0-2.0,\x20default:\x200.7)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Campaign\x20management','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','-d,\x20--database\x20<name>','desc\x20[name]','Start\x20a\x20new\x20chat\x20session','461890JfYvMH','parse','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','--job-type\x20<type>','flatMap','stderr','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--param\x20<key=value>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--description\x20<text>','Show\x20only\x20master\x20table\x20validation','Skip\x20confirmation\x20prompt','Show\x20segment\x20schema\x20(column\x20types)','update\x20<name-or-id>','show\x20<name-or-id>','--resume-from\x20<task>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','length','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','-u,\x20--use','preview\x20[name]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Name\x20for\x20the\x20new\x20project\x20(required)','Job\x20management\x20commands','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--email-sender-id\x20<id>','Show\x20the\x20most\x20recent\x20chat','List\x20all\x20available\x20profiles','Delete\x20a\x20campaign','query\x20[sql]','TRACE','--temperature\x20<n>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','logLevel','Duplicate\x20a\x20campaign','optionTerm','delete\x20<name-or-id>','table','workspace','noColor','Customer\x20group\x20from\x20JSON\x20file','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','api\x20[endpoint]','Create\x20segment\x20folder','List\x20agents\x20in\x20current\x20project','command','Enable\x20verbose\x20logging','Folder\x20description','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--type\x20<api_type>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--no-color','--editor-type\x20<type>','describe','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Database\x20management\x20commands','Create\x20an\x20email\x20template','Template\x20name','show\x20<agent-name>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--data\x20<data>','--to\x20<timestamp>','--schedule-option\x20<value>','Show\x20connection\x20details\x20by\x20name','--debug','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20journey\x20statistics','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','history\x20[chat-id]','forEach','Revision\x20name\x20(default:\x20timestamp)','use\x20[resource]\x20[value]','description','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Output\x20file\x20path','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','argumentTerm','sessions\x20[project]','Make\x20segment\x20invisible\x20(default:\x20visible)','help','Create\x20a\x20workspace','Show\x20workspace\x20details','--from-task\x20<task>','Save\x20output\x20to\x20file','--json-columns\x20<cols>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','subcommandDescription','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--rule-file\x20<file>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','attempts\x20[project]','summary','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20operation\x20timeout\x20in\x20seconds','hidden','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','run\x20[name]','--starter-message\x20<text>','[action]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','-o,\x20--output\x20<folder>','--add-attributes-file\x20<file>','AI-native\x20CLI\x20for\x20Treasure\x20Data','createAsync','--rule\x20<json>','--json','argv','proxy','agents\x20[pattern]','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Output\x20folder\x20(default:\x20{project_name}.llm)','Show\x20email\x20template\x20details','delete\x20<agent-name>','Show\x20campaign\x20details','replace','Request\x20body\x20as\x20JSON\x20string','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','push\x20[target]','-f,\x20--force','profiles','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Update\x20a\x20workspace','Setup\x20API\x20key\x20authentication\x20interactively','utf-8','agent','Delete\x20an\x20agent','130KnYVrX','--dry-run','us01','after','repeat','Force\x20retry\x20even\x20if\x20not\x20failed','../package.json','segments\x20[path]','list\x20[pattern]','Path\x20is\x20not\x20a\x20directory:\x20','Maximum\x20recursion\x20depth\x20(default:\x2010)','--segment\x20<path>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','connections','create\x20<name>','--behavior\x20[name]','argument','Agent\x20prompt/instructions','--no-count-population','Email\x20template\x20management','use\x20[name]','show\x20[name]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--params\x20<json>','New\x20template\x20name','-w,\x20--web','map','Show\x20stats\x20for\x20specific\x20stage','site','Workspace\x20name','--format\x20<format>','database','--agent\x20<ref>','Describe\x20table\x20schema','Read\x20request\x20body\x20from\x20file','Master\x20table\x20name','Add\x20behaviors\x20from\x20JSON\x20file','restore\x20<folder>','-X,\x20--method\x20<method>','settings\x20<type>','types','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Agent\x20reference\x20(project-name/agent-name)','Output\x20directory','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','filter','Directory\x20does\x20not\x20exist:\x20','databases\x20[pattern]','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<project-name-or-id>','Continue\x20most\x20recent\x20conversation','Resume\x20a\x20conversation\x20(shows\x20selector)','claude-4.5-sonnet','--last','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','commands','requiredOption','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','schema\x20<type>','Show\x20console\x20URLs','Clear\x20session\x20context','Open\x20journey\x20in\x20web\x20browser','Customer\x20group\x20as\x20JSON\x20string','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Arguments:','Filtering\x20rule\x20from\x20JSON\x20file','alias','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','push\x20[path]','4000','projects\x20[pattern]','Add\x20attributes\x20from\x20JSON\x20file','Delete\x20an\x20LLM\x20project','--customer-group-file\x20<file>','user','attempt','status','[task-name]','[options]\x20--\x20[claude-code-args...]','create\x20<segment_name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','create','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Updated\x20timezone','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','outputHelp','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','GET','--interval\x20<range>','auth','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--parent-folder\x20<name>','campaigns\x20[pattern]','--new','Agent\x20name','validate\x20[target]','opts','Overwrite\x20local\x20changes\x20without\x20confirmation','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Open\x20segment\x20in\x20web\x20browser','tdx','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','New\x20campaign\x20name','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','CDP\x20segment\x20management\x20commands','project','Attempt\x20ID','tasks','list','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--prompt\x20<text>','Preview\x20operation\x20without\x20executing','show\x20<job-id>','--llm-project\x20<name>','segment','Plaintext\x20template\x20content','padEnd','list\x20[path]','Campaign\x20description','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','launch\x20<name-or-id>','use\x20<path>','--attributes\x20<json>','build-info.json','error','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','List\x20all\x20data\x20connections','run','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Authentication\x20management','Update\x20an\x20email\x20template','join','Behaviors\x20from\x20JSON\x20file','json','injectIntoOptions','Output\x20as\x20JSON\x20Lines','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Run\x20Trino\x20query\x20with\x20streaming\x20results','--no-proxy','registeredArguments','--name\x20<new_name>','--from\x20<timestamp>','Show\x20agent\x20details','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Pause\x20a\x20campaign','Database\x20name\x20(default:\x20information_schema)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','-n,\x20--name\x20<name>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Update\x20a\x20campaign','0.7','HTML\x20template\x20content','--type\x20<type>','logs','sonnet','Override\x20project\x20name','attempt:','name','show\x20[table]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--limit\x20<number>','Workspace\x20description','--clear','Show\x20web\x20console\x20URLs\x20for\x20journeys','--yes','--add-attributes\x20<json>','-1d','5548302XGmTWX','--status\x20<status>','System\x20prompt/instructions\x20(default:\x20empty)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--output\x20<file>','Add\x20behaviors\x20as\x20JSON\x20string','Show\x20agent\x20chat\x20URLs','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','resume\x20<name-or-id>','--timezone\x20<tz>','Resume\x20a\x20paused\x20campaign','Folder\x20name\x20for\x20organization','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','INVALID_ARGUMENT','--system-prompt\x20<text>','Workflow\x20(Digdag)\x20management\x20commands','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)',',\x20version\x20','colorFn','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Workflow\x20parameter\x20(repeatable)','push\x20[parent_or_file]','debug','-d,\x20--database\x20<database>','option','\x20(resolved\x20to\x20','run\x20<workflow>','result\x20<job-id>','connection','view\x20[name]','folders\x20<parent_name>','Updated\x20schedule\x20option','--attributes-file\x20<file>','options','LLM\x20project\x20management','Show\x20segment\x20details\x20(alias\x20for\x20view)','Reason\x20for\x20killing\x20the\x20attempt','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','66218MwzcRk','info\x20[segment_name]','folder','Trino\x20catalog\x20(default:\x20td)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','-C,\x20--directory\x20<path>','User\x20management\x20commands','statusline','chdir','--agent\x20<name>','Starter\x20message','--revision\x20<revision>','Options:','view\x20[segment_name]','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Kill\x20a\x20job','Updated\x20description','--max-depth\x20<depth>','--folder\x20<name>','isDirectory','Campaign\x20name','buildTime','Skip\x20confirmation\x20prompts','desc','information_schema','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Table\x20management\x20commands','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Change\x20to\x20directory\x20before\x20executing\x20command','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','session','preAction','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','isTTY','LLM\x20agent\x20management','--max-tool-iterations\x20<n>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','port','show\x20<name>','update\x20<segment_name>','Filtering\x20rule\x20as\x20JSON\x20string','apiKey','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Open\x20parent\x20segment\x20in\x20web\x20browser','--name\x20<new-name>','--attribute\x20[name]','pull\x20[name]','Unknown\x20action:\x20','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','trino','--invisible','-H,\x20--header\x20<header>','--customer-group\x20<json>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','workspaces\x20[pattern]','Resume\x20from\x20specific\x20task\x20(retry)','--skip-validation','-c,\x20--continue','Agent\x20description','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Include\x20retried\x20attempts\x20(for\x20list)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Validate\x20journey\x20YAML\x20files\x20locally','--description\x20<desc>','llm','parent-segment','--delete','DEBUG','-f,\x20--file\x20<path>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','context','desc\x20[segment_name]','--subject\x20<subject>','--session-time\x20<time>','--start-at\x20<datetime>','trace','isArray','--port\x20<number>','format','Workspace\x20name\x20(required)','--enriched','Skip\x20population\x20counting','pause\x20<name-or-id>','Launch\x20a\x20campaign','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','[attempt-id]','--add-behaviors\x20<json>','setup','Workflow\x20session\x20management','Campaign\x20type\x20(email\x20or\x20push)','clear','usage','.dev','Data\x20connection\x20management\x20(for\x20activations/exports)','action','subcommandTerm','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','log','3266408iGLYxn','includes','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','duplicate\x20<name-or-id>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Export\x20journey(s)\x20as\x20YAML\x20files','14aQgfkk','--include-retried','Output\x20as\x20JSON','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','directory','validate\x20[name]','--in\x20<database>','Resume\x20a\x20paused\x20journey','Email\x20sender\x20ID\x20for\x20delivery','tsv','models','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20job\x20details','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Timezone\x20(e.g.,\x20America/Los_Angeles)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','--full','Workflow\x20attempt\x20management','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--workspace\x20<name>','--jsonl','allowUnknownOption','kill\x20<job-id>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Include\x20execution\x20statistics','--name\x20<name>','parent','List\x20available\x20connector\x20types','fields\x20[parent_name]','Output\x20file\x20path\x20(default:\x20<name>.yml)','update\x20<name>','1439568UfGCCS','Move\x20to\x20folder','push\x20[name]','jsonl','Create\x20a\x20new\x20LLM\x20project','templates\x20[pattern]','Remove\x20API\x20key\x20from\x20system\x20keychain','--tsv','pull\x20[parent_or_file]','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','show\x20<folder_ref>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','push\x20[project-name-or-dir]','-o,\x20--output\x20<file>','Segment\x20description','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','pause\x20<name-or-path>','2856040HyIeHt','--master','gitRevision','--add-behaviors-file\x20<file>','-o,\x20--output\x20<dir>','fields\x20[name]','sql\x20[name]','--version','Skip\x20validation\x20of\x20.dig\x20files','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','kill','list\x20[project]','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Limit\x20number\x20of\x20rows','--include-subtasks','-y,\x20--yes','Include\x20subtasks\x20in\x20tasks\x20output'];a2_0x5373=function(){return _0x88be5f;};return a2_0x5373();}export function runCLI(){const _0x402c14=a2_0x4b0863;program[_0x402c14(0x2e0)](process['argv']);!process[_0x402c14(0x34c)]['slice'](0x2)[_0x402c14(0x2f0)]&&program[_0x402c14(0x3bb)]();const _0x5f17dc=packageJson[_0x402c14(0x2bf)];process[_0x402c14(0x2e4)][_0x402c14(0x212)]&&process['argv'][_0x402c14(0x2f0)]>0x2&&!_0x5f17dc[_0x402c14(0x257)](_0x402c14(0x250))&&checkForUpdate(_0x5f17dc)[_0x402c14(0x2ab)](_0x241c51=>{_0x241c51&&displayUpdateNotification(_0x241c51);})['catch'](()=>{});}
|