@treasuredata/tdx 2026.8.4 → 2026.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +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/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.d.ts.map +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/cas-segment-command.js.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/codex-command.d.ts +51 -0
- package/dist/commands/codex-command.d.ts.map +1 -0
- package/dist/commands/codex-command.js +1 -0
- package/dist/commands/codex-command.js.map +1 -0
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.d.ts.map +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/p13n-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-move-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/site-mismatch.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.d.ts +3 -3
- package/dist/core/version.d.ts.map +1 -1
- package/dist/core/version.js +1 -1
- package/dist/core/version.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/auth-token.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-schema.d.ts +63 -0
- package/dist/sdk/cas/cas-segment-schema.d.ts.map +1 -0
- package/dist/sdk/cas/cas-segment-schema.js +1 -0
- package/dist/sdk/cas/cas-segment-schema.js.map +1 -0
- package/dist/sdk/cas/cas-segment-validator.d.ts +76 -0
- package/dist/sdk/cas/cas-segment-validator.d.ts.map +1 -0
- package/dist/sdk/cas/cas-segment-validator.js +1 -0
- package/dist/sdk/cas/cas-segment-validator.js.map +1 -0
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/validate-files.d.ts +23 -6
- package/dist/sdk/cas/validate-files.d.ts.map +1 -1
- package/dist/sdk/cas/validate-files.js +1 -1
- package/dist/sdk/cas/validate-files.js.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/p13n-studio-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
- package/dist/sdk/engage/always-on-campaign-push.js +1 -1
- package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.d.ts.map +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.js.map +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js.map +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.d.ts.map +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/template-yaml.js.map +1 -1
- package/dist/sdk/engage/types/always-on-campaign-schema.d.ts +1 -0
- package/dist/sdk/engage/types/always-on-campaign-schema.d.ts.map +1 -1
- package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.d.ts +2 -0
- package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
- package/dist/sdk/engage/types/template-schema.d.ts +1 -0
- package/dist/sdk/engage/types/template-schema.d.ts.map +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/user-settings.js +1 -1
- package/dist/sdk/p13n-studio.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- 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/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js.map +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/engage.d.ts +8 -0
- package/dist/sdk/types/engage.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/util/tree-search.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/claude-code-state.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/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/proxy-fetch.js +1 -1
- package/dist/utils/spinner.js +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 +2 -47
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa094b7,_0x220a9e){const _0xbf9f1a=a260_0x4d0a,_0x287a14=_0xa094b7();while(!![]){try{const _0x212698=-parseInt(_0xbf9f1a(0x1e0))/0x1+-parseInt(_0xbf9f1a(0x1dd))/0x2+parseInt(_0xbf9f1a(0x1e3))/0x3+parseInt(_0xbf9f1a(0x1d4))/0x4*(parseInt(_0xbf9f1a(0x1e2))/0x5)+parseInt(_0xbf9f1a(0x1d0))/0x6*(-parseInt(_0xbf9f1a(0x1d3))/0x7)+parseInt(_0xbf9f1a(0x1d9))/0x8+-parseInt(_0xbf9f1a(0x1cf))/0x9*(parseInt(_0xbf9f1a(0x1e1))/0xa);if(_0x212698===_0x220a9e)break;else _0x287a14['push'](_0x287a14['shift']());}catch(_0x12c84d){_0x287a14['push'](_0x287a14['shift']());}}}(a260_0x2831,0x5dbbd));import a260_0x4baedb from'string-width';export function stringWidth(_0x2e3a6f){return a260_0x4baedb(_0x2e3a6f);}function a260_0x4d0a(_0x4cec1d,_0x66c3f2){_0x4cec1d=_0x4cec1d-0x1cd;const _0x28312c=a260_0x2831();let _0x4d0aa8=_0x28312c[_0x4cec1d];return _0x4d0aa8;}export function padEnd(_0x2ec872,_0x25ac33){const _0x495f20=a260_0x4d0a,_0x41225b=stringWidth(_0x2ec872);if(_0x41225b>=_0x25ac33)return _0x2ec872;return _0x2ec872+'\x20'[_0x495f20(0x1d5)](_0x25ac33-_0x41225b);}function a260_0x2831(){const _0x2af843=['replace','763816gwvkBd','unknown','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','649684leuClv','10JMyxZW','180avuxqP','1606752RRGVHI','test','random','1125513PRzwbB','737202gflVuN','floor','length','14wFZhyZ','79004JdxGTS','repeat','Cannot\x20escape\x20empty\x20string\x20literal','\x5c$&','trim','4317568OMaaPg','padStart','toLowerCase'];a260_0x2831=function(){return _0x2af843;};return a260_0x2831();}export function padStart(_0x5a5587,_0x172d88){const _0x164b4a=a260_0x4d0a,_0x909d81=stringWidth(_0x5a5587);if(_0x909d81>=_0x172d88)return _0x5a5587;return'\x20'[_0x164b4a(0x1d5)](_0x172d88-_0x909d81)+_0x5a5587;}export function centerAlign(_0x4b2996,_0x2cc501){const _0x190bac=a260_0x4d0a,_0x1c8fca=stringWidth(_0x4b2996);if(_0x1c8fca>_0x2cc501){if(_0x2cc501<=0x1)return'…'['substring'](0x0,_0x2cc501);let _0x12db30=_0x4b2996;while(stringWidth(_0x12db30+'…')>_0x2cc501){_0x12db30=_0x12db30['slice'](0x0,-0x1);}return _0x12db30+'…';}if(_0x1c8fca===_0x2cc501)return _0x4b2996;const _0x399ae3=_0x2cc501-_0x1c8fca,_0x375e66=Math[_0x190bac(0x1d1)](_0x399ae3/0x2),_0x1878db=_0x399ae3-_0x375e66;return'\x20'['repeat'](_0x375e66)+_0x4b2996+'\x20'[_0x190bac(0x1d5)](_0x1878db);}export function escapeStringLiteral(_0x806190){const _0x5b3751=a260_0x4d0a;if(!_0x806190||_0x806190[_0x5b3751(0x1d8)]()['length']===0x0)throw new Error(_0x5b3751(0x1d6));const _0x9567fc=_0x806190[_0x5b3751(0x1dc)](/'/g,'\x27\x27');return'\x27'+_0x9567fc+'\x27';}export function globToLike(_0x13525f){const _0x3970a9=a260_0x4d0a;let _0x123038=_0x13525f[_0x3970a9(0x1dc)](/\\/g,'\x5c\x5c')[_0x3970a9(0x1dc)](/%/g,'\x5c%')[_0x3970a9(0x1dc)](/_/g,'\x5c_');return _0x123038=_0x123038['replace'](/\*/g,'%')[_0x3970a9(0x1dc)](/\?/g,'_'),_0x123038;}export function buildLikePattern(_0x2dd62d){const _0x5e2adf=a260_0x4d0a;if(!_0x2dd62d||_0x2dd62d[_0x5e2adf(0x1d8)]()[_0x5e2adf(0x1d2)]===0x0)throw new Error(_0x5e2adf(0x1df));const _0x5b97d1=globToLike(_0x2dd62d),_0x33da0c=_0x5b97d1['replace'](/'/g,'\x27\x27');return'\x27'+_0x33da0c+'\x27';}export function matchGlobPattern(_0x1554a6,_0xa7c8e8){const _0x392aa7=a260_0x4d0a,_0x320be1=_0xa7c8e8[_0x392aa7(0x1dc)](/[.+^${}()|[\]\\]/g,_0x392aa7(0x1d7))[_0x392aa7(0x1dc)](/\*/g,'.*')[_0x392aa7(0x1dc)](/\?/g,'.'),_0x39414b=new RegExp('^'+_0x320be1+'$');return _0x39414b[_0x392aa7(0x1cd)](_0x1554a6);}export function getSanitizedUsername(){const _0x4f9b5b=a260_0x4d0a,_0xa511ec=process.env.USER||process.env.USERNAME||_0x4f9b5b(0x1de);return _0xa511ec[_0x4f9b5b(0x1dc)](/[^a-zA-Z0-9]/g,'')[_0x4f9b5b(0x1db)]();}export function generateRandomHex(){const _0x4bb53c=a260_0x4d0a,_0x21fd74=Math[_0x4bb53c(0x1d1)](Math[_0x4bb53c(0x1ce)]()*0xfffff);return _0x21fd74['toString'](0x10)[_0x4bb53c(0x1da)](0x5,'0');}export function sanitizeFileName(_0x3741e0){const _0x872e1d=a260_0x4d0a;return _0x3741e0['toLowerCase']()['replace'](/[/\\:*?"<>|]/g,'-')[_0x872e1d(0x1dc)](/\s+/g,'-')[_0x872e1d(0x1dc)](/-+/g,'-')[_0x872e1d(0x1dc)](/^-|-$/g,'');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a3d65,_0x22bd1b){const _0x3bb0f4=a261_0x32c5,_0x248875=_0x3a3d65();while(!![]){try{const _0x336756=parseInt(_0x3bb0f4(0x117))/0x1+-parseInt(_0x3bb0f4(0x113))/0x2*(parseInt(_0x3bb0f4(0x122))/0x3)+parseInt(_0x3bb0f4(0x112))/0x4+-parseInt(_0x3bb0f4(0x118))/0x5+-parseInt(_0x3bb0f4(0x11e))/0x6+-parseInt(_0x3bb0f4(0x116))/0x7+parseInt(_0x3bb0f4(0x127))/0x8*(parseInt(_0x3bb0f4(0x128))/0x9);if(_0x336756===_0x22bd1b)break;else _0x248875['push'](_0x248875['shift']());}catch(_0x395db5){_0x248875['push'](_0x248875['shift']());}}}(a261_0x12b1,0x2589c));function a261_0x32c5(_0x590b95,_0xd06cea){_0x590b95=_0x590b95-0x112;const _0x12b12f=a261_0x12b1();let _0x32c549=_0x12b12f[_0x590b95];return _0x32c549;}function hasWildcard(_0x3cec17){const _0x432fb3=a261_0x32c5;return _0x3cec17[_0x432fb3(0x120)]('*')||_0x3cec17[_0x432fb3(0x120)]('?');}export function parseTableReference(_0x37010c){const _0x4c71de=a261_0x32c5;if(!_0x37010c||_0x37010c[_0x4c71de(0x121)]()[_0x4c71de(0x125)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2aba91=_0x37010c[_0x4c71de(0x121)](),_0x1c7029={'original':_0x2aba91},_0xbcb97d=_0x2aba91[_0x4c71de(0x11c)]('.');if(_0xbcb97d[_0x4c71de(0x125)]===0x1){const _0x4392f9=_0xbcb97d[0x0];if(!_0x4392f9)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1c7029[_0x4c71de(0x126)]=_0x4392f9;}else{if(_0xbcb97d[_0x4c71de(0x125)]===0x2){const [_0x3ea5fa,_0x38dc5f]=_0xbcb97d;if(!_0x3ea5fa)throw new Error(_0x4c71de(0x11a));if(!_0x38dc5f)throw new Error(_0x4c71de(0x124));_0x1c7029[_0x4c71de(0x114)]=_0x3ea5fa,_0x1c7029['table']=_0x38dc5f;}else{if(_0xbcb97d[_0x4c71de(0x125)]===0x3){const [_0x421e01,_0xeee143,_0x45e2c4]=_0xbcb97d;if(!_0x421e01||!_0xeee143||!_0x45e2c4)throw new Error(_0x4c71de(0x11d));_0x1c7029[_0x4c71de(0x115)]=_0x421e01,_0x1c7029[_0x4c71de(0x114)]=_0xeee143,_0x1c7029[_0x4c71de(0x126)]=_0x45e2c4;}else throw new Error(_0x4c71de(0x12a));}}return _0x1c7029;}function a261_0x12b1(){const _0x3014b0=['524650MMLqYd','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','join','split','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','519768GSlvDx','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','includes','trim','2418DTAlzj','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','length','table','3792104PmKxwi','9DmfxwA','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','666504SmigNa','396acCpsj','database','catalog','1130899tetnzF','25820wUiFcH'];a261_0x12b1=function(){return _0x3014b0;};return a261_0x12b1();}export function formatTableReference(_0x529520){const _0x46403a=a261_0x32c5,_0x34eeef=[];return _0x529520[_0x46403a(0x115)]&&_0x34eeef[_0x46403a(0x119)](_0x529520[_0x46403a(0x115)]),_0x529520['database']&&_0x34eeef[_0x46403a(0x119)](_0x529520[_0x46403a(0x114)]),_0x529520[_0x46403a(0x126)]&&_0x34eeef[_0x46403a(0x119)](_0x529520[_0x46403a(0x126)]),_0x34eeef[_0x46403a(0x11b)]('.');}export function validateTableListReference(_0x25c588){return undefined;}export function validateTableDescribeReference(_0x3592ca){const _0xe620de=a261_0x32c5;if(!_0x3592ca[_0xe620de(0x126)])return _0xe620de(0x123);if(_0x3592ca[_0xe620de(0x114)]&&hasWildcard(_0x3592ca[_0xe620de(0x114)]))return _0xe620de(0x11f);if(hasWildcard(_0x3592ca[_0xe620de(0x126)]))return _0xe620de(0x129);return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a262_0x1a264c=a262_0x227e;(function(_0x13f63a,_0x23edce){const _0x1a43c1=a262_0x227e,_0x8562c0=_0x13f63a();while(!![]){try{const _0x23f788=-parseInt(_0x1a43c1(0x134))/0x1+-parseInt(_0x1a43c1(0x12b))/0x2+parseInt(_0x1a43c1(0x144))/0x3*(parseInt(_0x1a43c1(0x136))/0x4)+-parseInt(_0x1a43c1(0x137))/0x5+parseInt(_0x1a43c1(0x138))/0x6+-parseInt(_0x1a43c1(0x132))/0x7+parseInt(_0x1a43c1(0x140))/0x8*(parseInt(_0x1a43c1(0x13b))/0x9);if(_0x23f788===_0x23edce)break;else _0x8562c0['push'](_0x8562c0['shift']());}catch(_0x39e3e6){_0x8562c0['push'](_0x8562c0['shift']());}}}(a262_0x14af,0xde7cd));function a262_0x227e(_0x3674ee,_0x2beabb){_0x3674ee=_0x3674ee-0x12b;const _0x14af2e=a262_0x14af();let _0x227ecc=_0x14af2e[_0x3674ee];return _0x227ecc;}function a262_0x14af(){const _0x39d1f9=['logDir','warn','11244016BaJMEU','consoleHandler','1127927qwGAjm','isInitialized','412492RbXLus','3173380oKtUXE','6518196upKinY','init','debug','3897knKYXf','tdx.log','logFileName','error','logLevel','64776pZXrap','addHandler','fileOnly','info','21YOYnsx','2068056VrCzTd','tdx','INFO','fileHandler','logger'];a262_0x14af=function(){return _0x39d1f9;};return a262_0x14af();}import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a262_0x1a264c(0x13f)];[a262_0x1a264c(0x142)];[a262_0x1a264c(0x130)];[a262_0x1a264c(0x13d)];[a262_0x1a264c(0x12f)];[a262_0x1a264c(0x12e)]=null;[a262_0x1a264c(0x133)]=null;constructor(_0x2d19f7=LogLevel[a262_0x1a264c(0x12d)],_0x4f9077=![],_0xf6d1e6,_0x3ce0a4=a262_0x1a264c(0x13c)){const _0x58d53e=a262_0x1a264c;this['logLevel']=_0x2d19f7,this['fileOnly']=_0x4f9077,this['logDir']=_0xf6d1e6||join(getGlobalCacheDir(),'logs'),this['logFileName']=_0x3ce0a4,this[_0x58d53e(0x12f)]=Logger['of'](_0x58d53e(0x12c));}async[a262_0x1a264c(0x139)](){const _0x4de9c3=a262_0x1a264c,_0x5439ae=join(this[_0x4de9c3(0x130)],this[_0x4de9c3(0x13d)]);if(Logger[_0x4de9c3(0x135)]()){!this[_0x4de9c3(0x142)]&&(this[_0x4de9c3(0x133)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0x4de9c3(0x141)](this[_0x4de9c3(0x133)]));return;}this[_0x4de9c3(0x12e)]=new FileHandler({'filePath':_0x5439ae});const _0x57dee9=[this['fileHandler']];!this[_0x4de9c3(0x142)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x4de9c3(0x12d)],'colors':!![]}),_0x57dee9['push'](this[_0x4de9c3(0x133)])),await Logger[_0x4de9c3(0x139)]({'defaultLevel':this[_0x4de9c3(0x13f)],'handlers':_0x57dee9,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a262_0x1a264c(0x13a)](..._0x1ea816){const _0x369f8e=a262_0x1a264c;this['logger'][_0x369f8e(0x13a)](..._0x1ea816);}['trace'](..._0x3d1d60){const _0x228c70=a262_0x1a264c;this[_0x228c70(0x12f)]['trace'](..._0x3d1d60);}['info'](..._0x56dab5){const _0x556f85=a262_0x1a264c;this[_0x556f85(0x12f)][_0x556f85(0x143)](..._0x56dab5);}[a262_0x1a264c(0x131)](..._0x189607){const _0x25125b=a262_0x1a264c;this[_0x25125b(0x12f)][_0x25125b(0x131)](..._0x189607);}[a262_0x1a264c(0x13e)](..._0x5335d5){const _0x474d51=a262_0x1a264c;this['logger'][_0x474d51(0x13e)](..._0x5335d5);}async['close'](){const _0x533edb=a262_0x1a264c;this[_0x533edb(0x12f)][_0x533edb(0x143)]('Session\x20ended'),await Logger['shutdown']();}['getLogPath'](){const _0x5e80d7=a262_0x1a264c;return join(this['logDir'],this[_0x5e80d7(0x13d)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a263_0x156932=a263_0x3d17;(function(_0x38be52,_0x58d9b7){const _0x369da7=a263_0x3d17,_0x2ab060=_0x38be52();while(!![]){try{const _0x2e436c=parseInt(_0x369da7(0x95))/0x1+-parseInt(_0x369da7(0x89))/0x2+parseInt(_0x369da7(0xa7))/0x3*(parseInt(_0x369da7(0x87))/0x4)+-parseInt(_0x369da7(0xa0))/0x5+parseInt(_0x369da7(0x8c))/0x6*(parseInt(_0x369da7(0xad))/0x7)+parseInt(_0x369da7(0x9d))/0x8*(parseInt(_0x369da7(0xa9))/0x9)+-parseInt(_0x369da7(0x94))/0xa;if(_0x2e436c===_0x58d9b7)break;else _0x2ab060['push'](_0x2ab060['shift']());}catch(_0x1139ea){_0x2ab060['push'](_0x2ab060['shift']());}}}(a263_0x3faa,0xdfc2d));function a263_0x3d17(_0x434201,_0x1a6b20){_0x434201=_0x434201-0x86;const _0x3faa0d=a263_0x3faa();let _0x3d1702=_0x3faa0d[_0x434201];return _0x3d1702;}import{get}from'https';function a263_0x3faa(){const _0x57ae26=['\x0aUpdate\x20available:\x20','9BrYMOf','Run:','2187279qDMjCs','latest','version','cyan','138677Mpfkmc','unref','read','1275656OAJMWW','last_version_check','989012RViBwl','HTTP\x20','currentVersion','366IGJpGr','tdx\x20upgrade','Request\x20timeout','isTTY','dim','latestVersion','stderr','statusCode','13148620kcUzLz','804035fvDCzy','socket','write','Update\x20available:','Invalid\x20version\x20format','stable','utils/version-check','next','32OfttNJ','utils/version-check-next','toISOString','6077395eiuCvw','now','channel','tdx\x20upgrade\x20--next','https://registry.npmjs.org/@treasuredata/tdx','updateAvailable'];a263_0x3faa=function(){return _0x57ae26;};return a263_0x3faa();}import{gt,valid}from'semver';import a263_0x1b8c83 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a263_0x156932(0xa4),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a263_0x156932(0x88),a263_0x156932(0x9b)),nextVersionCache=createGlobalCache('last_version_check_next',a263_0x156932(0x9e));function getCacheForChannel(_0x2676c8){return _0x2676c8==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x5d86){const _0x5333c5=a263_0x156932;return getCacheForChannel(_0x5d86)[_0x5333c5(0x86)]()??null;}function writeCache(_0x2e6d59,_0x49b6d9){const _0x3af498=a263_0x156932;try{getCacheForChannel(_0x49b6d9)['write']({'lastCheck':new Date()[_0x3af498(0x9f)](),'latestVersion':_0x2e6d59});}catch{}}function isCacheValid(_0x50c9e0){const _0x3929c8=a263_0x156932;if(!_0x50c9e0)return![];const _0x5447ee=new Date(_0x50c9e0['lastCheck'])['getTime'](),_0x41fd80=Date[_0x3929c8(0xa1)]();return _0x41fd80-_0x5447ee<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x1303f8=a263_0x156932(0x9a),_0xbfbeac){const _0x4f2776=a263_0x156932,_0x1c4a9f=_0xbfbeac?.['background']??![],_0x3372fe=_0x1303f8===_0x4f2776(0x9c)?_0x4f2776(0x9c):_0x4f2776(0xaa),_0x12714f=NPM_REGISTRY_BASE+'/'+_0x3372fe;return new Promise((_0x571e43,_0x45eb66)=>{const _0x5e7b4a=_0x4f2776,_0x468f7f=get(_0x12714f,{'timeout':TIMEOUT_MS},_0x52ac04=>{const _0x4968b1=a263_0x3d17;if(_0x52ac04[_0x4968b1(0x93)]!==0xc8){clearTimeout(_0x4060db),_0x45eb66(new Error(_0x4968b1(0x8a)+_0x52ac04['statusCode']));return;}let _0x22b95f='';_0x52ac04['on']('data',_0x229720=>{_0x22b95f+=_0x229720;}),_0x52ac04['on']('end',()=>{const _0x4670ff=_0x4968b1;clearTimeout(_0x4060db);try{const _0x4cab6c=JSON['parse'](_0x22b95f);if(!valid(_0x4cab6c[_0x4670ff(0xab)])){_0x45eb66(new Error(_0x4670ff(0x99)));return;}_0x571e43(_0x4cab6c[_0x4670ff(0xab)]);}catch(_0x479942){_0x45eb66(_0x479942);}});})['on']('error',_0x4c2d22=>{clearTimeout(_0x4060db),_0x45eb66(_0x4c2d22);}),_0x4060db=setTimeout(()=>{const _0xf42da6=a263_0x3d17;_0x468f7f['destroy'](),_0x45eb66(new Error(_0xf42da6(0x8e)));},TIMEOUT_MS);_0x1c4a9f&&(_0x468f7f['on'](_0x5e7b4a(0x96),_0x4396cf=>{const _0x5de53e=_0x5e7b4a;_0x4396cf[_0x5de53e(0xae)]();}),_0x4060db['unref']());});}export async function checkForUpdate(_0x430017,_0x1a4efc=a263_0x156932(0x9a)){const _0xc5bba4=a263_0x156932;try{const _0x1bb1af=readCache(_0x1a4efc);if(isCacheValid(_0x1bb1af)){const _0x50cffc=gt(_0x1bb1af[_0xc5bba4(0x91)],_0x430017);return{'updateAvailable':_0x50cffc,'currentVersion':_0x430017,'latestVersion':_0x1bb1af[_0xc5bba4(0x91)],'channel':_0x1a4efc};}const _0x27736c=await fetchLatestVersion(_0x1a4efc,{'background':!![]});writeCache(_0x27736c,_0x1a4efc);const _0x48b5b8=gt(_0x27736c,_0x430017);return{'updateAvailable':_0x48b5b8,'currentVersion':_0x430017,'latestVersion':_0x27736c,'channel':_0x1a4efc};}catch{return null;}}export function displayUpdateNotification(_0x216940){const _0x489fdb=a263_0x156932;if(!_0x216940[_0x489fdb(0xa5)])return;const _0x3b07c3=_0x216940[_0x489fdb(0xa2)]==='next'?_0x489fdb(0xa3):_0x489fdb(0x8d),_0x2687e2=process[_0x489fdb(0x92)][_0x489fdb(0x8f)]&&!process.env.NO_COLOR,_0x16ed16=_0x2687e2?a263_0x1b8c83['gray']('→'):'→',_0x39ea6d=_0x2687e2?a263_0x1b8c83[_0x489fdb(0x90)](_0x216940[_0x489fdb(0x8b)]):_0x216940[_0x489fdb(0x8b)],_0x7b5c5b=_0x2687e2?a263_0x1b8c83['green'](_0x216940['latestVersion']):_0x216940[_0x489fdb(0x91)],_0x11e910=_0x2687e2?a263_0x1b8c83[_0x489fdb(0xac)](_0x3b07c3):_0x3b07c3,_0x30150a=_0x2687e2?'\x0a'+a263_0x1b8c83['yellow'](_0x489fdb(0x98))+'\x20'+_0x39ea6d+'\x20'+_0x16ed16+'\x20'+_0x7b5c5b+'\x0a'+a263_0x1b8c83[_0x489fdb(0x90)](_0x489fdb(0xa8))+'\x20'+_0x11e910+'\x0a':_0x489fdb(0xa6)+_0x39ea6d+'\x20'+_0x16ed16+'\x20'+_0x7b5c5b+'\x0aRun:\x20'+_0x11e910+'\x0a';process['stderr'][_0x489fdb(0x97)](_0x30150a);}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasuredata/tdx",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.6",
|
|
4
4
|
"description": "AI-native CLI for Treasure AI - optimized for both human engineers and AI coding assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build:info": "node scripts/generate-build-info.mjs",
|
|
31
31
|
"build:ts": "pnpm run build:info && tsc && chmod +x dist/bin.js && cp src/build-info.json dist/build-info.json && cp -r src/sdk/workspace/builtin-schedules dist/sdk/workspace/builtin-schedules && node -e \"require('fs').copyFileSync('dist/bin.js','dist/tdx')\"",
|
|
32
|
-
"build:install": "pnpm run build:ts &&
|
|
32
|
+
"build:install": "pnpm run build:ts && node scripts/install-dev.mjs",
|
|
33
33
|
"build:obfuscate": "javascript-obfuscator ./dist --output ./dist",
|
|
34
34
|
"build": "pnpm run build:ts && pnpm run build:obfuscate",
|
|
35
35
|
"prepare": "lefthook install || echo 'lefthook not installed, skipping hooks'",
|
|
@@ -112,50 +112,5 @@
|
|
|
112
112
|
"typedoc-vitepress-theme": "^1.1.2",
|
|
113
113
|
"typescript": "^6.0.3",
|
|
114
114
|
"vitest": "^4.0.6"
|
|
115
|
-
},
|
|
116
|
-
"pnpm": {
|
|
117
|
-
"overrides": {
|
|
118
|
-
"dompurify": "^3.4.12",
|
|
119
|
-
"vite-plugin-singlefile>vite": "^8.0.8",
|
|
120
|
-
"vitepress-plugin-mermaid>vitepress": "2.0.0-alpha.17",
|
|
121
|
-
"qs@>=6.11.1 <6.15.2": "^6.15.2",
|
|
122
|
-
"ip-address@<=10.1.0": "^10.1.1",
|
|
123
|
-
"@xmldom/xmldom@<0.8.13": "^0.8.13",
|
|
124
|
-
"fast-uri@<3.1.4": "^3.1.4",
|
|
125
|
-
"hono@<4.12.27": "^4.12.27",
|
|
126
|
-
"@hono/node-server@<2.0.5": "^2.0.5",
|
|
127
|
-
"js-yaml@>=4.0.0 <4.3.0": "^4.3.0",
|
|
128
|
-
"tar@<7.5.21": "^7.5.21",
|
|
129
|
-
"body-parser@>=2.0.0 <2.3.0": "^2.3.0",
|
|
130
|
-
"find-my-way@<9.7.0": "^9.7.0",
|
|
131
|
-
"@babel/core@<=7.29.0": "^7.29.6",
|
|
132
|
-
"app-builder-lib@<26.15.0": "^26.15.0",
|
|
133
|
-
"builder-util-runtime@<9.7.0": "^9.7.0"
|
|
134
|
-
},
|
|
135
|
-
"onlyBuiltDependencies": [
|
|
136
|
-
"@evilmartians/lefthook",
|
|
137
|
-
"@napi-rs/canvas",
|
|
138
|
-
"@napi-rs/keyring",
|
|
139
|
-
"@recallai/desktop-sdk",
|
|
140
|
-
"electron",
|
|
141
|
-
"electron-winstaller",
|
|
142
|
-
"esbuild",
|
|
143
|
-
"javascript-obfuscator"
|
|
144
|
-
],
|
|
145
|
-
"supportedArchitectures": {
|
|
146
|
-
"os": [
|
|
147
|
-
"darwin",
|
|
148
|
-
"linux",
|
|
149
|
-
"win32"
|
|
150
|
-
],
|
|
151
|
-
"cpu": [
|
|
152
|
-
"x64",
|
|
153
|
-
"arm64"
|
|
154
|
-
],
|
|
155
|
-
"libc": [
|
|
156
|
-
"glibc",
|
|
157
|
-
"musl"
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
115
|
}
|
|
161
116
|
}
|