@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9-beta.3
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/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/delete.js +1 -0
- package/lib/commands/menu/group-create.js +1 -0
- package/lib/commands/menu/group-update.js +1 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -0
- package/lib/commands/menu/shared/facts.js +1 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -0
- package/lib/commands/task/status.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -0
- package/lib/framework/explicit-yes.js +1 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x1a0452=a174_0x19b5;(function(_0x4a7689,_0x3c27bc){const _0x141f9b=a174_0x19b5,_0x29caf6=_0x4a7689();while(!![]){try{const _0x9a3702=parseInt(_0x141f9b(0xb9))/0x1*(parseInt(_0x141f9b(0xb4))/0x2)+-parseInt(_0x141f9b(0xae))/0x3*(-parseInt(_0x141f9b(0xb3))/0x4)+parseInt(_0x141f9b(0xad))/0x5*(parseInt(_0x141f9b(0xb0))/0x6)+parseInt(_0x141f9b(0xb8))/0x7+parseInt(_0x141f9b(0xb7))/0x8*(parseInt(_0x141f9b(0xb6))/0x9)+-parseInt(_0x141f9b(0x95))/0xa+-parseInt(_0x141f9b(0xa2))/0xb;if(_0x9a3702===_0x3c27bc)break;else _0x29caf6['push'](_0x29caf6['shift']());}catch(_0x406109){_0x29caf6['push'](_0x29caf6['shift']());}}}(a174_0x34e1,0x432cf));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a174_0x19b5(_0x359cbe,_0x31f4a1){_0x359cbe=_0x359cbe-0x94;const _0x34e18c=a174_0x34e1();let _0x19b563=_0x34e18c[_0x359cbe];return _0x19b563;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x14b0a5){const _0x1100d3=a174_0x19b5,_0xaa07b7=[];let _0x417c50=0x1;while(!![]){const _0x16d9f1=await listSqlQueries(_0x14b0a5,{'currentPage':_0x417c50,'pageSize':PAGE_SIZE}),_0x21086c=_0x16d9f1[_0x1100d3(0x9f)]??[];_0xaa07b7['push'](..._0x21086c['map'](_0x24b095=>_0x24b095['sqlCode']));if(_0x21086c[_0x1100d3(0x9a)]===0x0)break;const _0x39e37e=_0x16d9f1[_0x1100d3(0xb5)]?.[_0x1100d3(0xa8)];if(_0x39e37e!=null?_0xaa07b7[_0x1100d3(0x9a)]>=_0x39e37e:_0x21086c[_0x1100d3(0x9a)]<PAGE_SIZE)break;_0x417c50++;}return _0xaa07b7;}function a174_0x34e1(){const _0x3073d7=['boolean','bool','length','appCode','\x20modified,\x20','status','read','tableData','lockFilePath','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','11404602UDUdCm','has','relativePath','remote','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','totalCount','sqls','sqlRoot','All\x20SQL\x20queries\x20are\x20in\x20sync.','keys','14225uKVOmQ','99VttrPK','push','978cQGHnr','sql','\x20missing,\x20','62728QEBQme','2308CEAViO','paging','153324dEBHnv','8DtnzaG','316687zwzuTX','392iKWdCP','\x20remote-only','1839530fBFERw','sqlName','path'];a174_0x34e1=function(){return _0x3073d7;};return a174_0x34e1();}export const sqlStatus={'service':a174_0x1a0452(0xb1),'command':'status','description':a174_0x1a0452(0xa1),'risk':a174_0x1a0452(0x9e),'flags':[{'name':a174_0x1a0452(0xa5),'type':a174_0x1a0452(0x98),'description':a174_0x1a0452(0xa7)}],async 'execute'(_0x4e5934){const _0x1d759a=a174_0x1a0452,_0x55ab6e=loadSqlProjectConfig(_0x4e5934['appCode']),_0x46d2ce=await readSqlLockFile(_0x55ab6e[_0x1d759a(0xa0)]),{appLock:_0x303ef5}=ensureSqlLockScope(_0x46d2ce??createEmptySqlLock(),_0x55ab6e['appCode'],_0x55ab6e[_0x1d759a(0xaa)],_0x1d759a(0x9d)),_0x7d22e8=await scanLocalSqlQueries(_0x55ab6e),_0x445a50=[],_0x1df85f=[],_0x33e07d=[],_0x34cea0=[],_0x38927c=new Set(_0x7d22e8['map'](_0x522d91=>_0x522d91['lockKey']));for(const _0x567f12 of _0x7d22e8){const _0x29ccef=await computeSqlFileHash(_0x567f12['filePath']),_0x24bc7b=_0x303ef5[_0x1d759a(0xa9)][_0x567f12[_0x1d759a(0xa6)]],_0x32fd72=!!_0x24bc7b&&_0x24bc7b[_0x1d759a(0x97)]!==_0x567f12[_0x1d759a(0xa4)],_0x2e66c5=!!_0x24bc7b&&!!_0x567f12[_0x1d759a(0x96)]&&_0x24bc7b['sqlName']!==_0x567f12[_0x1d759a(0x96)];if(!_0x24bc7b)_0x445a50[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]);else _0x24bc7b['hash']!==_0x29ccef||_0x32fd72||_0x2e66c5?_0x1df85f[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]):_0x33e07d[_0x1d759a(0xaf)](_0x567f12['lockKey']);}for(const _0x4847a8 of Object[_0x1d759a(0xac)](_0x303ef5[_0x1d759a(0xa9)])){!_0x38927c[_0x1d759a(0xa3)](_0x4847a8)&&_0x34cea0['push'](_0x4847a8);}const _0x128982=[];if(_0x4e5934[_0x1d759a(0x99)]('remote')){const _0x29d390=await fetchAllSqlCodes(_0x4e5934[_0x1d759a(0x9b)]);for(const _0x1fb91c of _0x29d390){!_0x38927c[_0x1d759a(0xa3)](_0x1fb91c)&&!_0x303ef5[_0x1d759a(0xa9)][_0x1fb91c]&&_0x128982[_0x1d759a(0xaf)](_0x1fb91c);}}const _0x1dd46d=_0x445a50[_0x1d759a(0x9a)]===0x0&&_0x1df85f['length']===0x0&&_0x34cea0[_0x1d759a(0x9a)]===0x0&&_0x128982['length']===0x0;return{'ok':!![],'data':{'added':_0x445a50,'modified':_0x1df85f,'missing':_0x34cea0,'unchanged':_0x33e07d,'remoteOnly':_0x128982},'message':_0x1dd46d?_0x1d759a(0xab):_0x445a50[_0x1d759a(0x9a)]+'\x20added,\x20'+_0x1df85f[_0x1d759a(0x9a)]+_0x1d759a(0x9c)+_0x34cea0['length']+_0x1d759a(0xb2)+_0x33e07d[_0x1d759a(0x9a)]+'\x20unchanged'+(_0x128982[_0x1d759a(0x9a)]>0x0?',\x20'+_0x128982[_0x1d759a(0x9a)]+_0x1d759a(0x94):'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x2b9a68=a175_0x56a2;(function(_0xe3c1a2,_0x4a1c21){const _0x59a658=a175_0x56a2,_0x1cf283=_0xe3c1a2();while(!![]){try{const _0x1f13c2=parseInt(_0x59a658(0x9f))/0x1+parseInt(_0x59a658(0x96))/0x2*(-parseInt(_0x59a658(0x95))/0x3)+parseInt(_0x59a658(0x88))/0x4+-parseInt(_0x59a658(0x81))/0x5+parseInt(_0x59a658(0x7e))/0x6*(-parseInt(_0x59a658(0x9c))/0x7)+-parseInt(_0x59a658(0x8c))/0x8+parseInt(_0x59a658(0xac))/0x9*(parseInt(_0x59a658(0x94))/0xa);if(_0x1f13c2===_0x4a1c21)break;else _0x1cf283['push'](_0x1cf283['shift']());}catch(_0x42d431){_0x1cf283['push'](_0x1cf283['shift']());}}}(a175_0x26b7,0x2079a));function a175_0x26b7(){const _0x44d6f0=['parameters','str','index_columns','Provide\x20--file\x20or\x20--sql','fields','string','451204RfHkzo','pkField','toLowerCase','length','798584qUIRhK','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','push','File\x20not\x20found:\x20','dbtableConfig','isArray','reason','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','5295660HSPTwC','14865kNOiQK','76jvxKOO','check-indexes','\x22\x20not\x20found\x20or\x20not\x20accessible','Dataset\x20\x22','appCode','schemaWarnings','91FmrwAL','primary','filter','13649OQYiqQ','indexes','file','flatMap','cwd','from','type','utf-8','message','split','columns','valid','bool','9XEgYLT','tables','sql','map','indexName','--check-indexes\x20requires\x20--schemas.','\x22\x20not\x20found\x20in\x20any\x20dataset','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','trim','validation','get','tableName','find','columnNames','schemas','index_type','unshift','isSelectOnly','dataset','sqlType','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','77844aRJYGT','read','isDangerous','331115pyuGeN'];a175_0x26b7=function(){return _0x44d6f0;};return a175_0x26b7();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a175_0x56a2(_0x8fc920,_0x2d13c0){_0x8fc920=_0x8fc920-0x76;const _0x26b7c6=a175_0x26b7();let _0x56a258=_0x26b7c6[_0x8fc920];return _0x56a258;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a175_0x2b9a68(0xae),'command':'validate','description':a175_0x2b9a68(0x8d),'risk':a175_0x2b9a68(0x7f),'flags':[{'name':'file','type':a175_0x2b9a68(0x87),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a175_0x2b9a68(0xae),'type':a175_0x2b9a68(0x87),'description':a175_0x2b9a68(0x7d)},{'name':a175_0x2b9a68(0x77),'type':'string','description':a175_0x2b9a68(0xb3)},{'name':a175_0x2b9a68(0x97),'type':'boolean','description':a175_0x2b9a68(0x93)}],async 'execute'(_0x24f578){const _0x4bd617=a175_0x2b9a68,_0x44666c=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xa1)),_0x561b3a=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xae)),_0x58970a=_0x24f578['str'](_0x4bd617(0x77)),_0x5db4c2=_0x24f578[_0x4bd617(0xab)](_0x4bd617(0x97));if(!_0x44666c&&!_0x561b3a)throw CliErrors['flagMissing'](_0x4bd617(0xa1),_0x4bd617(0x85));if(_0x5db4c2&&!_0x58970a)throw CliErrors['validation'](_0x4bd617(0xb1));let _0x50d860;if(_0x44666c){const _0xafdd8=resolve(process[_0x4bd617(0xa3)](),_0x44666c);if(!existsSync(_0xafdd8))throw CliErrors[_0x4bd617(0xb5)](_0x4bd617(0x8f)+_0xafdd8);_0x50d860=readFileSync(_0xafdd8,_0x4bd617(0xa6));}else _0x50d860=_0x561b3a;const _0x44cf22=validateSql(_0x50d860),_0xf2d7bf={'valid':_0x44cf22['valid'],'sqlType':_0x44cf22['sqlType'][_0x4bd617(0xa5)],'isSelectOnly':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x7a)],'isDangerous':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x80)],'tables':_0x44cf22[_0x4bd617(0xad)],'parameters':_0x44cf22[_0x4bd617(0x82)],'message':_0x44cf22['message']};_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]&&(_0xf2d7bf[_0x4bd617(0x92)]=_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]);if(_0x58970a&&_0x44cf22[_0x4bd617(0xaa)]){const _0x5c0edf=_0x58970a[_0x4bd617(0xa8)](',')[_0x4bd617(0xaf)](_0x22087b=>_0x22087b[_0x4bd617(0xb4)]())[_0x4bd617(0x9e)](Boolean),_0x3a6aaf=[],_0x4a77e8=[],_0x1e1d33=filterDbTableBackedDatasets(await listDatasets(_0x24f578[_0x4bd617(0x9a)])),_0x1edfa3=new Map(_0x1e1d33[_0x4bd617(0xaf)](_0x2d7986=>[_0x2d7986[_0x4bd617(0x90)]?.['tableName']?.[_0x4bd617(0x8a)](),_0x2d7986]));for(const _0x3a6202 of _0x44cf22['tables']){const _0x2caa6f=_0x1edfa3[_0x4bd617(0xb6)](_0x3a6202[_0x4bd617(0x8a)]());!_0x2caa6f&&_0x3a6aaf[_0x4bd617(0x8e)]('Table\x20\x22'+_0x3a6202+_0x4bd617(0xb2));}for(const _0x15363e of _0x5c0edf){let _0xe657ef;try{_0xe657ef=await getDatasetDetail(_0x15363e);}catch{_0x3a6aaf[_0x4bd617(0x8e)](_0x4bd617(0x99)+_0x15363e+_0x4bd617(0x98));continue;}assertDatasetIsDbTableBacked(_0xe657ef,'SQL\x20schema\x20validation');const _0x583e07=Array[_0x4bd617(0x91)](_0xe657ef[_0x4bd617(0x86)])?_0xe657ef[_0x4bd617(0x86)]:[],_0x3725b6=new Set(_0x583e07[_0x4bd617(0xaf)](_0x677cfa=>_0x677cfa['name']?.[_0x4bd617(0x8a)]())),_0x253e0a=_0xe657ef[_0x4bd617(0x90)]?.['tableName']||_0xe657ef[_0x4bd617(0xb7)]||_0x15363e;_0xf2d7bf['schema:'+_0x253e0a]={'code':_0x15363e,'tableName':_0x253e0a,'fieldCount':_0x3725b6['size'],'fields':Array[_0x4bd617(0xa4)](_0x3725b6)};if(_0x5db4c2){const _0x10a3e1=normalizeDatasetIndexes(_0xe657ef);_0x4a77e8[_0x4bd617(0x8e)]({'tableName':_0x253e0a,..._0x10a3e1});}}_0x3a6aaf[_0x4bd617(0x8b)]>0x0&&(_0xf2d7bf[_0x4bd617(0x9b)]=_0x3a6aaf),_0x5db4c2&&(_0xf2d7bf['joinAudit']=auditSqlJoinIndexes(_0x50d860,_0x4a77e8));}return{'ok':_0x44cf22[_0x4bd617(0xaa)],'data':_0xf2d7bf,'message':_0x44cf22[_0x4bd617(0xa7)]};}};function normalizeDatasetIndexes(_0x307604){const _0x1b5d93=a175_0x2b9a68,_0x5d2229=Array[_0x1b5d93(0x91)](_0x307604?.['dataset']?.['indexes'])?_0x307604[_0x1b5d93(0x7b)][_0x1b5d93(0xa0)]:Array['isArray'](_0x307604?.[_0x1b5d93(0xa0)])?_0x307604[_0x1b5d93(0xa0)]:[],_0x5ac51b=_0x5d2229[_0x1b5d93(0xa2)](_0x4be4ef=>{const _0x56ded7=_0x1b5d93,_0x68dacd=Array['isArray'](_0x4be4ef?.['index_columns'])?_0x4be4ef[_0x56ded7(0x84)]:Array[_0x56ded7(0x91)](_0x4be4ef?.[_0x56ded7(0x76)])?_0x4be4ef[_0x56ded7(0x76)]:Array['isArray'](_0x4be4ef?.[_0x56ded7(0xa9)])?_0x4be4ef['columns']:[],_0x1e5b05=_0x68dacd[_0x56ded7(0x9e)](_0x4369ae=>typeof _0x4369ae==='string')[_0x56ded7(0xaf)](_0x297e47=>_0x297e47[_0x56ded7(0xb4)]())[_0x56ded7(0x9e)](Boolean);if(_0x1e5b05['length']===0x0)return[];const _0x4c505a=[_0x4be4ef?.[_0x56ded7(0xb0)],_0x4be4ef?.['index_name'],_0x4be4ef?.['name']]['find'](_0x5890e5=>typeof _0x5890e5===_0x56ded7(0x87)&&_0x5890e5[_0x56ded7(0xb4)]()),_0x4bd902=[_0x4be4ef?.[_0x56ded7(0x78)],_0x4be4ef?.[_0x56ded7(0xa5)]][_0x56ded7(0xb8)](_0x41dc27=>typeof _0x41dc27===_0x56ded7(0x87)&&_0x41dc27['trim']());return[{..._0x4c505a?{'name':_0x4c505a['trim']()}:{},..._0x4bd902?{'type':_0x4bd902[_0x56ded7(0xb4)]()}:{},'columns':_0x1e5b05}];}),_0x3789de=[..._0x5ac51b],_0x4bb526=typeof _0x307604?.['dbtableConfig']?.[_0x1b5d93(0x89)]===_0x1b5d93(0x87)?_0x307604[_0x1b5d93(0x90)]['pkField'][_0x1b5d93(0xa8)](',')[_0x1b5d93(0xaf)](_0x52e433=>_0x52e433[_0x1b5d93(0xb4)]())[_0x1b5d93(0x9e)](Boolean):[];return _0x4bb526['length']>0x0&&_0x3789de[_0x1b5d93(0x79)]({'type':_0x1b5d93(0x9d),'columns':_0x4bb526}),{'indexes':_0x3789de,'metadataAvailable':_0x5ac51b[_0x1b5d93(0x8b)]>0x0};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a176_0x293f(_0x36214e,_0x414f13){_0x36214e=_0x36214e-0x18b;const _0x4c27e2=a176_0x4c27();let _0x293f16=_0x4c27e2[_0x36214e];return _0x293f16;}(function(_0x2558f1,_0x38a689){const _0xecd40=a176_0x293f,_0x29be2d=_0x2558f1();while(!![]){try{const _0x214bb8=-parseInt(_0xecd40(0x18d))/0x1+parseInt(_0xecd40(0x18f))/0x2+-parseInt(_0xecd40(0x190))/0x3+-parseInt(_0xecd40(0x18e))/0x4*(parseInt(_0xecd40(0x191))/0x5)+-parseInt(_0xecd40(0x18b))/0x6+parseInt(_0xecd40(0x18c))/0x7+parseInt(_0xecd40(0x192))/0x8;if(_0x214bb8===_0x38a689)break;else _0x29be2d['push'](_0x29be2d['shift']());}catch(_0x4aae07){_0x29be2d['push'](_0x29be2d['shift']());}}}(a176_0x4c27,0xa4ec2));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a176_0x4c27(){const _0x1d60f2=['1106734pFmkFG','297728xXuxEh','2388628tXGJxg','145146GgvdzO','25UaueKG','9696392WaAutw','7440024QnZYJa','7255073WSViwH'];a176_0x4c27=function(){return _0x1d60f2;};return a176_0x4c27();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a177_0x1c468c=a177_0x13a3;function a177_0x1834(){const _0x321c3e=['appCode','cookie','task','status','flagMissing','apiError','13905yAYplB','trim','1bIrvit','3yoaJjo','str','2898552SywYoV','7563507WMxxML','2401895nFoGsW','667742hOucDp','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id','16310wMIabQ','3928fNEIgu','8624XGUYTl','taskId','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','string','3136376GyqIhd','isTerminal'];a177_0x1834=function(){return _0x321c3e;};return a177_0x1834();}(function(_0x54ff53,_0x189c8e){const _0x2f6a85=a177_0x13a3,_0x5be21a=_0x54ff53();while(!![]){try{const _0x40bd31=-parseInt(_0x2f6a85(0x1ee))/0x1*(-parseInt(_0x2f6a85(0x1f4))/0x2)+-parseInt(_0x2f6a85(0x1ef))/0x3*(-parseInt(_0x2f6a85(0x1e4))/0x4)+-parseInt(_0x2f6a85(0x1f3))/0x5+parseInt(_0x2f6a85(0x1f1))/0x6+-parseInt(_0x2f6a85(0x1f2))/0x7+-parseInt(_0x2f6a85(0x1df))/0x8*(parseInt(_0x2f6a85(0x1ec))/0x9)+-parseInt(_0x2f6a85(0x1de))/0xa*(-parseInt(_0x2f6a85(0x1e0))/0xb);if(_0x40bd31===_0x189c8e)break;else _0x5be21a['push'](_0x5be21a['shift']());}catch(_0x29c295){_0x5be21a['push'](_0x5be21a['shift']());}}}(a177_0x1834,0x88c9e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';function a177_0x13a3(_0x5ab5b3,_0x20a669){_0x5ab5b3=_0x5ab5b3-0x1de;const _0x18346a=a177_0x1834();let _0x13a3e9=_0x18346a[_0x5ab5b3];return _0x13a3e9;}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a177_0x1c468c(0x1e8),'command':a177_0x1c468c(0x1e9),'description':a177_0x1c468c(0x1f6),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a177_0x1c468c(0x1f7),'type':a177_0x1c468c(0x1e3),'required':!![],'description':a177_0x1c468c(0x1f5)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x391a90){const _0x1cbd0e=a177_0x1c468c;if(!_0x391a90['str']('task-id')[_0x1cbd0e(0x1ed)]())throw CliErrors[_0x1cbd0e(0x1ea)](_0x1cbd0e(0x1f7));},async 'execute'(_0xdd8f66){const _0x3415d2=a177_0x1c468c,_0x1a93a7=_0xdd8f66[_0x3415d2(0x1f0)]('task-id')[_0x3415d2(0x1ed)](),_0x23eace=normalizeAsyncTask(await getAsyncTaskStatus(_0x1a93a7,_0xdd8f66[_0x3415d2(0x1e6)],_0xdd8f66[_0x3415d2(0x1e7)]));if(_0x23eace[_0x3415d2(0x1e1)]!==_0x1a93a7)throw CliErrors[_0x3415d2(0x1eb)](_0x3415d2(0x1e2)+_0x1a93a7+',\x20received\x20'+_0x23eace['taskId']+'.');const _0x4d6582=buildAsyncTaskStatusCommand(_0x23eace[_0x3415d2(0x1e1)],_0xdd8f66[_0x3415d2(0x1e6)]);return{'ok':!![],'message':asyncTaskMessage(_0x23eace),'data':{'appCode':_0xdd8f66[_0x3415d2(0x1e6)],..._0x23eace,'query':_0x23eace[_0x3415d2(0x1e5)]?null:{'command':_0x4d6582}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a178_0x3aff6d=a178_0x37fa;(function(_0x1bc236,_0x150947){const _0x546e38=a178_0x37fa,_0x5652ee=_0x1bc236();while(!![]){try{const _0x55abb7=-parseInt(_0x546e38(0x200))/0x1*(-parseInt(_0x546e38(0x1f4))/0x2)+parseInt(_0x546e38(0x1f3))/0x3*(-parseInt(_0x546e38(0x1fc))/0x4)+-parseInt(_0x546e38(0x1f8))/0x5+-parseInt(_0x546e38(0x1f7))/0x6+parseInt(_0x546e38(0x1f5))/0x7+-parseInt(_0x546e38(0x1fd))/0x8+parseInt(_0x546e38(0x1ff))/0x9*(parseInt(_0x546e38(0x1fe))/0xa);if(_0x55abb7===_0x150947)break;else _0x5652ee['push'](_0x5652ee['shift']());}catch(_0x8ce78d){_0x5652ee['push'](_0x5652ee['shift']());}}}(a178_0x6e9a,0xdfc60));function a178_0x37fa(_0x1de460,_0x229560){_0x1de460=_0x1de460-0x1f3;const _0x6e9af1=a178_0x6e9a();let _0x37fa53=_0x6e9af1[_0x1de460];return _0x37fa53;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a178_0x6e9a(){const _0x1147a9=['630HCaZhi','497439UBBHvu','2zlTrwN','name','2930763sOfFps','1196156hMBWdw','2599149DfwTwr','write','8428890FTuIul','5428220ALUHTk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20add','add','4ItzvGY','5324640mzqTgK'];a178_0x6e9a=function(){return _0x1147a9;};return a178_0x6e9a();}export const workspaceAddDefinition={'service':'workspace','command':a178_0x3aff6d(0x1fb),'description':a178_0x3aff6d(0x1f9),'risk':a178_0x3aff6d(0x1f6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a178_0x3aff6d(0x201),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0xc562a6=>validateAppName(_0xc562a6,a178_0x3aff6d(0x1fa)),'execute':_0x2da0f0=>runAppAdd(_0x2da0f0,a178_0x3aff6d(0x1fa))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x1409e7=a179_0x2450;function a179_0x2450(_0x4a3f47,_0xfdc825){_0x4a3f47=_0x4a3f47-0x1aa;const _0x41be72=a179_0x41be();let _0x24501a=_0x41be72[_0x4a3f47];return _0x24501a;}(function(_0xed35f5,_0x5ee148){const _0x28a7d7=a179_0x2450,_0x296fb5=_0xed35f5();while(!![]){try{const _0x485a44=-parseInt(_0x28a7d7(0x1b6))/0x1*(-parseInt(_0x28a7d7(0x1da))/0x2)+parseInt(_0x28a7d7(0x1e0))/0x3*(-parseInt(_0x28a7d7(0x1aa))/0x4)+-parseInt(_0x28a7d7(0x1c1))/0x5+parseInt(_0x28a7d7(0x1ae))/0x6*(-parseInt(_0x28a7d7(0x1e7))/0x7)+parseInt(_0x28a7d7(0x1b7))/0x8+parseInt(_0x28a7d7(0x1e2))/0x9*(parseInt(_0x28a7d7(0x1db))/0xa)+parseInt(_0x28a7d7(0x1bc))/0xb*(parseInt(_0x28a7d7(0x1d7))/0xc);if(_0x485a44===_0x5ee148)break;else _0x296fb5['push'](_0x296fb5['shift']());}catch(_0x23713b){_0x296fb5['push'](_0x296fb5['shift']());}}}(a179_0x41be,0xec878));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';function a179_0x41be(){const _0x2fa4f7=['use','App\x20\x22','Missing\x20workspace\x20app\x20selector.','workspace','str','join','env','501453bCIevk','146432dmppNz','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--app\x20','\x20workspace\x20','locale','44Twbqmm','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','app','globalConfig','2800595BBoRUs','Use\x20`','workspace.','apiDir','pageSize','Locale\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','number','updated',').\x20Config:\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','trim','format','Switch\x20the\x20current\x20workspace\x20app\x20binding','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','Invalid\x20appcode:\x20','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','\x20--appcode\x20<code>`.','defaultApp','4568856qzegcS','apps','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6HVxRja','46780XiGyym','object','write','\x22\x20not\x20found.','appcode','3974862UPxrbY','length','1602EFlKOo','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','string','27902LkOUcx','4KcwcaU','init','\x20workspace\x20use\x20--app\x20<name>`.','project','1542xpHsna'];a179_0x41be=function(){return _0x2fa4f7;};return a179_0x41be();}import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a179_0x1409e7(0x1cc),SAFE_PROFILE_KEYS=[a179_0x1409e7(0x1df),a179_0x1409e7(0x1b5),a179_0x1409e7(0x1c4),'format','pageSize',a179_0x1409e7(0x1e5),a179_0x1409e7(0x1bb)],workspaceFlags=[{'name':a179_0x1409e7(0x1bf),'type':'string','description':a179_0x1409e7(0x1d3)},{'name':a179_0x1409e7(0x1df),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1b8)},{'name':a179_0x1409e7(0x1b5),'type':a179_0x1409e7(0x1e6),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e3),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1cb),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a179_0x1409e7(0x1c8),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e5),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1e4),'enum':[...RISK_LEVEL_VALUES]},{'name':a179_0x1409e7(0x1bb),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1c6)}];function isRecord(_0x43122a){const _0x5ddc77=a179_0x1409e7;return!!_0x43122a&&typeof _0x43122a===_0x5ddc77(0x1dc)&&!Array[_0x5ddc77(0x1d1)](_0x43122a);}function assertValidAppcode(_0x8c233f){const _0x46cca7=a179_0x1409e7,{valid:_0x1fe1ab,message:_0x1de9aa}=validateAppcode(_0x8c233f);if(!_0x1fe1ab)throw CliErrors[_0x46cca7(0x1bd)](_0x46cca7(0x1d2)+_0x8c233f,_0x1de9aa);}function sanitizeProfile(_0x504632){if(!isRecord(_0x504632))return{};const _0xc4fdd1={};for(const _0x4cb0ac of SAFE_PROFILE_KEYS){if(_0x504632[_0x4cb0ac]!==undefined)_0xc4fdd1[_0x4cb0ac]=_0x504632[_0x4cb0ac];}return _0xc4fdd1;}function cloneProfile(_0x192046){return isRecord(_0x192046)?{..._0x192046}:{};}function collectWorkspaceProfileOverrides(_0x23fce8){const _0x298707=a179_0x1409e7,_0x3fe2fb={},_0x387867=_0x23fce8[_0x298707(0x1b3)]('env'),_0x501312=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1c4)),_0x1135b3=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1e3)),_0x3c1547=_0x23fce8['flag'](_0x298707(0x1c5)),_0x13bfaf=_0x23fce8[_0x298707(0x1b3)]('riskLevel'),_0x5345b3=_0x23fce8[_0x298707(0x1b3)]('locale');if(_0x387867)_0x3fe2fb[_0x298707(0x1b5)]=_0x387867;if(_0x501312)_0x3fe2fb['apiDir']=_0x501312;if(_0x1135b3)_0x3fe2fb[_0x298707(0x1ce)]=_0x1135b3;if(_0x3c1547!==undefined&&_0x3c1547!=='')_0x3fe2fb[_0x298707(0x1c5)]=Number(_0x3c1547);if(_0x13bfaf)_0x3fe2fb[_0x298707(0x1e5)]=_0x13bfaf;if(_0x5345b3)_0x3fe2fb[_0x298707(0x1bb)]=_0x5345b3;return _0x3fe2fb;}async function validateWorkspaceArgs(_0x475c61){const _0x4cc98f=a179_0x1409e7,_0x3b685c=_0x475c61[_0x4cc98f(0x1b3)](_0x4cc98f(0x1bf))['trim'](),_0x43263a=_0x475c61['str']('appcode')[_0x4cc98f(0x1cd)]();if(!_0x3b685c&&!_0x43263a)throw CliErrors[_0x4cc98f(0x1bd)](_0x4cc98f(0x1b1),'Use\x20`'+CLI_BIN_NAME+_0x4cc98f(0x1be)+CLI_BIN_NAME+_0x4cc98f(0x1ac));if(_0x43263a)assertValidAppcode(_0x43263a);}function resolveKnownApps(){const _0x39fc39=a179_0x1409e7,{config:_0x2046d8,layers:_0x8f81ee}=readRawConfigWithLayers(),_0x5cdd76=isRecord(_0x2046d8[_0x39fc39(0x1d8)])?_0x2046d8[_0x39fc39(0x1d8)]:{},_0x46740d=isRecord(_0x8f81ee['globalConfig'][_0x39fc39(0x1d8)])?_0x8f81ee[_0x39fc39(0x1c0)][_0x39fc39(0x1d8)]:{};return{..._0x46740d,..._0x5cdd76};}async function configureWorkspace(_0x3c64bb,_0x1dd61e){const _0x3ef7d1=a179_0x1409e7,_0x4ca6b8=_0x3c64bb['str'](_0x3ef7d1(0x1bf))[_0x3ef7d1(0x1cd)](),_0x5c8003=_0x3c64bb[_0x3ef7d1(0x1b3)](_0x3ef7d1(0x1df))[_0x3ef7d1(0x1cd)](),_0x174706=_0x4ca6b8||_0x5c8003;if(!_0x174706)throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b1),_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1be)+CLI_BIN_NAME+_0x3ef7d1(0x1ac));if(_0x5c8003)assertValidAppcode(_0x5c8003);const _0x393af6=resolveWriteConfigPath(_0x3ef7d1(0x1ad)),_0x5a3f98=readConfigFile(_0x393af6),_0x5eab12=resolveKnownApps(),_0x3d2311=isRecord(_0x5a3f98[_0x3ef7d1(0x1d8)])?{..._0x5a3f98[_0x3ef7d1(0x1d8)]}:{},_0x8f2415=cloneProfile(_0x3d2311[_0x174706]),_0xfd7b99=sanitizeProfile(_0x5eab12[_0x174706]),_0x57c697=_0x5c8003?{}:_0xfd7b99,_0x1a1dc8=_0x5c8003||_0x57c697[_0x3ef7d1(0x1df)];if(!_0x1a1dc8){const _0x170528=Object['keys'](_0x5eab12),_0x40d55f=_0x170528[_0x3ef7d1(0x1e1)]===0x0?_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1ba)+_0x1dd61e+_0x3ef7d1(0x1b9)+_0x174706+_0x3ef7d1(0x1d5):_0x3ef7d1(0x1d9)+_0x170528[_0x3ef7d1(0x1b4)](',\x20');throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b0)+_0x174706+_0x3ef7d1(0x1de),_0x40d55f);}assertValidAppcode(String(_0x1a1dc8));const _0x10f12d={..._0x57c697,..._0x8f2415,'appcode':String(_0x1a1dc8),...collectWorkspaceProfileOverrides(_0x3c64bb)};return _0x3d2311[_0x174706]=_0x10f12d,_0x5a3f98[_0x3ef7d1(0x1d8)]=_0x3d2311,_0x5a3f98[_0x3ef7d1(0x1d6)]=_0x174706,delete _0x5a3f98['appcode'],delete _0x5a3f98[_0x3ef7d1(0x1bf)],_0x10f12d['env']&&(_0x5a3f98[_0x3ef7d1(0x1b5)]=_0x10f12d[_0x3ef7d1(0x1b5)]),writeConfigFile(_0x393af6,_0x5a3f98),{'ok':!![],'message':_0x3ef7d1(0x1c7)+(_0x1dd61e===_0x3ef7d1(0x1ab)?_0x3ef7d1(0x1d4):_0x3ef7d1(0x1c9))+':\x20'+_0x174706+'\x20(appcode:\x20'+_0x10f12d[_0x3ef7d1(0x1df)]+_0x3ef7d1(0x1ca)+_0x393af6+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3ef7d1(0x1c3)+_0x1dd61e,'configPath':_0x393af6,'app':_0x174706,'appcode':_0x10f12d[_0x3ef7d1(0x1df)],'env':_0x10f12d[_0x3ef7d1(0x1b5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a179_0x1409e7(0x1b2),'command':'init','description':a179_0x1409e7(0x1d0),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4a37a2=>configureWorkspace(_0x4a37a2,a179_0x1409e7(0x1ab))},workspaceUseDefinition={'service':a179_0x1409e7(0x1b2),'command':a179_0x1409e7(0x1af),'description':a179_0x1409e7(0x1cf),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3a05bb=>configureWorkspace(_0x3a05bb,a179_0x1409e7(0x1af))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a180_0x5f074=a180_0x566e;(function(_0x5521bd,_0x1f89a9){const _0x5a044b=a180_0x566e,_0x112f74=_0x5521bd();while(!![]){try{const _0x3f42c1=parseInt(_0x5a044b(0x97))/0x1+parseInt(_0x5a044b(0x9a))/0x2*(parseInt(_0x5a044b(0x95))/0x3)+parseInt(_0x5a044b(0x98))/0x4+-parseInt(_0x5a044b(0x9f))/0x5+-parseInt(_0x5a044b(0x96))/0x6+-parseInt(_0x5a044b(0x9c))/0x7+parseInt(_0x5a044b(0xa1))/0x8;if(_0x3f42c1===_0x1f89a9)break;else _0x112f74['push'](_0x112f74['shift']());}catch(_0x1e7842){_0x112f74['push'](_0x112f74['shift']());}}}(a180_0x5070,0x8bffe));function a180_0x566e(_0x97a0e6,_0x3c16bb){_0x97a0e6=_0x97a0e6-0x94;const _0x5070f2=a180_0x5070();let _0x566ee7=_0x5070f2[_0x97a0e6];return _0x566ee7;}function a180_0x5070(){const _0x9429e2=['remove','9712080sqCBti','high-risk-write','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','3MDbVmt','5011074aNtuXo','301702MIYoQJ','37228Zixrgr','name','617402SybjoW','workspace\x20remove','730877jycsiq','workspace','App\x20profile\x20name\x20to\x20remove','1603460ESCIVL'];a180_0x5070=function(){return _0x9429e2;};return a180_0x5070();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a180_0x5f074(0x9d),'command':a180_0x5f074(0xa0),'description':a180_0x5f074(0x94),'risk':a180_0x5f074(0xa2),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x5f074(0x99),'description':a180_0x5f074(0x9e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4489e4=>validateAppName(_0x4489e4,a180_0x5f074(0x9b)),'execute':_0xa492a4=>runAppRemove(_0xa492a4,a180_0x5f074(0x9b))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a181_0x2e18a6=a181_0x397d;(function(_0x25a918,_0x103b15){const _0x2e7823=a181_0x397d,_0x2995a1=_0x25a918();while(!![]){try{const _0xb11d60=parseInt(_0x2e7823(0x156))/0x1*(-parseInt(_0x2e7823(0x132))/0x2)+parseInt(_0x2e7823(0x13c))/0x3*(parseInt(_0x2e7823(0x150))/0x4)+-parseInt(_0x2e7823(0x154))/0x5+parseInt(_0x2e7823(0x14c))/0x6+-parseInt(_0x2e7823(0x137))/0x7+parseInt(_0x2e7823(0x155))/0x8*(-parseInt(_0x2e7823(0x130))/0x9)+parseInt(_0x2e7823(0x15a))/0xa*(parseInt(_0x2e7823(0x141))/0xb);if(_0xb11d60===_0x103b15)break;else _0x2995a1['push'](_0x2995a1['shift']());}catch(_0x2d000e){_0x2995a1['push'](_0x2995a1['shift']());}}}(a181_0x2c52,0x83e0b));function a181_0x397d(_0x5a50f4,_0x571f87){_0x5a50f4=_0x5a50f4-0x12f;const _0x2c5205=a181_0x2c52();let _0x397dbe=_0x2c5205[_0x5a50f4];return _0x397dbe;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),'locale','format',a181_0x2e18a6(0x14d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a181_0x2e18a6(0x135),a181_0x2e18a6(0x143),'locale',a181_0x2e18a6(0x142),a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),a181_0x2e18a6(0x14f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2b4108){const _0x737b1f=a181_0x2e18a6;return[..._0x2b4108][_0x737b1f(0x134)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x54e4b2){const _0x171891=a181_0x2e18a6;return TOP_LEVEL_CONFIG_KEYS[_0x171891(0x14b)](_0x54e4b2);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3ab037=a181_0x2e18a6;return _0x3ab037(0x151)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a181_0x2e18a6(0x143),'apiDir':a181_0x2e18a6(0x14f),'cookie':a181_0x2e18a6(0x158),'accessKey':a181_0x2e18a6(0x138),'defaultFormat':a181_0x2e18a6(0x142),'pageSize':a181_0x2e18a6(0x12f),'riskLevel':a181_0x2e18a6(0x14d),'locale':a181_0x2e18a6(0x148)};export function getAppProfileFlagDefs(){const _0x322c58=a181_0x2e18a6;return[{'name':_0x322c58(0x143),'type':_0x322c58(0x14a),'description':_0x322c58(0x13f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x322c58(0x14f),'type':'string','description':_0x322c58(0x136)},{'name':_0x322c58(0x158),'type':_0x322c58(0x14a),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x322c58(0x14a),'description':_0x322c58(0x13b),'hidden':!![]},{'name':_0x322c58(0x144),'type':_0x322c58(0x14a),'description':_0x322c58(0x147),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x322c58(0x12f),'type':_0x322c58(0x145),'description':_0x322c58(0x133)},{'name':_0x322c58(0x14d),'type':_0x322c58(0x14a),'description':_0x322c58(0x139),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x322c58(0x14a),'description':'Locale'}];}export function collectAppProfileOverrides(_0x2490c7){const _0x3a1575=a181_0x2e18a6,_0x308307={};for(const [_0x5d384b,_0x304e8d]of Object[_0x3a1575(0x13e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21f2a8=_0x2490c7(_0x5d384b);if(!_0x21f2a8)continue;_0x308307[_0x304e8d]=_0x304e8d===_0x3a1575(0x12f)?Number(_0x21f2a8):_0x21f2a8;}return _0x308307;}export function buildAppProfileListFields(_0x42952a){const _0x14cce1=a181_0x2e18a6;return{'env':_0x42952a[_0x14cce1(0x143)]??null,'apiDir':_0x42952a['apiDir']??null,'hasCookie':!!_0x42952a[_0x14cce1(0x158)],'hasAccessKey':!!_0x42952a[_0x14cce1(0x138)],'format':_0x42952a[_0x14cce1(0x142)]??null,'pageSize':_0x42952a[_0x14cce1(0x12f)]??null,'riskLevel':_0x42952a[_0x14cce1(0x14d)]??null,'locale':_0x42952a[_0x14cce1(0x148)]??null};}export function buildAppDoctorFields(_0x1e0919,_0x10347d){const _0x139251=a181_0x2e18a6;return{'env':{'value':_0x1e0919[_0x139251(0x143)]||_0x10347d[_0x139251(0x143)],'source':_0x1e0919['env']?_0x139251(0x140):_0x139251(0x159)},'apiDir':{'value':_0x1e0919[_0x139251(0x14f)]||_0x10347d[_0x139251(0x14f)],'source':_0x1e0919[_0x139251(0x14f)]?_0x139251(0x140):_0x139251(0x159)},'cookie':{'value':_0x1e0919[_0x139251(0x158)]||_0x10347d[_0x139251(0x158)],'source':_0x1e0919[_0x139251(0x158)]?_0x139251(0x140):_0x139251(0x159)},'accessKey':{'value':_0x1e0919[_0x139251(0x138)]||_0x10347d[_0x139251(0x138)],'source':_0x1e0919[_0x139251(0x138)]?_0x139251(0x140):_0x139251(0x159)}};}export function buildCanonicalAppConfig(_0x2f1ce7,_0xa2f38e){const _0x57e95c=a181_0x2e18a6,_0x2d9f13=_0x2f1ce7['map'](_0x19ffc3=>String(_0x19ffc3||'')[_0x57e95c(0x157)]())[_0x57e95c(0x13a)](Boolean);if(_0x2d9f13[_0x57e95c(0x149)]===0x0)return{};const _0x39887e={};for(const _0x166842 of _0x2d9f13){_0x39887e[_0x166842]=_0xa2f38e?{'appcode':_0x166842,'env':_0xa2f38e}:{'appcode':_0x166842};}return{'apps':_0x39887e,'defaultApp':_0x2d9f13[0x0]};}function a181_0x2c52(){const _0x2a126e=['11eiOsZs','format','env','defaultFormat','number','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','locale','length','string','has','5107848CPMMKN','riskLevel','zh-CN','apiDir','140332BEqmnW','Config\x20key\x20(','apps','en-US','4870420xaUAwX','24gCfKBP','375915OgLbgT','trim','cookie','inherit','17840530xXOcDn','pageSize','3192363SfMyFd','toLowerCase','2TgVITy','Default\x20page\x20size','join','appcode','API\x20directory\x20path','1205624SrHApZ','accessKey','Risk\x20level','filter','Access\x20key','42FpMOkk','keys','entries','Target\x20environment','app'];a181_0x2c52=function(){return _0x2a126e;};return a181_0x2c52();}export function buildCanonicalProjectConfig(_0x4d2570,_0x32031d){const _0x1b254c=a181_0x2e18a6,{appCodes:appCodes=[],env:_0x570d0f,metadata:_0x57124e}=_0x32031d,_0x48fe47={..._0x4d2570,..._0x57124e||{}};delete _0x48fe47['appcode'],delete _0x48fe47['app'];if(_0x570d0f)_0x48fe47[_0x1b254c(0x143)]=_0x570d0f;else!_0x48fe47[_0x1b254c(0x143)]&&(_0x48fe47[_0x1b254c(0x143)]=DEFAULT_CONFIG_VALUES['env']);const _0x353a4d=buildCanonicalAppConfig(appCodes,_0x48fe47[_0x1b254c(0x143)]);return Object[_0x1b254c(0x13d)](_0x353a4d)[_0x1b254c(0x149)]>0x0&&(_0x48fe47[_0x1b254c(0x152)]=_0x353a4d[_0x1b254c(0x152)],_0x48fe47[_0x1b254c(0x146)]=_0x353a4d[_0x1b254c(0x146)]),_0x48fe47;}const LOCALE_MAP={'zh':a181_0x2e18a6(0x14e),'zh-cn':a181_0x2e18a6(0x14e),'zh_cn':'zh-CN','en':a181_0x2e18a6(0x153),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x246710){const _0x41c5f8=a181_0x2e18a6;if(!_0x246710)return null;return LOCALE_MAP[_0x246710[_0x41c5f8(0x131)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a182_0x78385c=a182_0x280f;function a182_0x280f(_0x11d503,_0x3cb8dc){_0x11d503=_0x11d503-0x126;const _0x225022=a182_0x2250();let _0x280f6d=_0x225022[_0x11d503];return _0x280f6d;}function a182_0x2250(){const _0x595c37=['54GOulWx','5501144MwDmRC','5121110tYGdmp','3xqRgFz','528196VpgIcU','2640750TNWRfI','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1935856BOtEmP','495044qqmEbH','15uWOZPR','3063046xHPFTO'];a182_0x2250=function(){return _0x595c37;};return a182_0x2250();}(function(_0x307ce7,_0x39c9a1){const _0x4b7c39=a182_0x280f,_0x198c2e=_0x307ce7();while(!![]){try{const _0x3d1d8d=parseInt(_0x4b7c39(0x129))/0x1+parseInt(_0x4b7c39(0x12d))/0x2+parseInt(_0x4b7c39(0x128))/0x3*(-parseInt(_0x4b7c39(0x126))/0x4)+parseInt(_0x4b7c39(0x12e))/0x5*(-parseInt(_0x4b7c39(0x12a))/0x6)+-parseInt(_0x4b7c39(0x12f))/0x7+parseInt(_0x4b7c39(0x12c))/0x8+parseInt(_0x4b7c39(0x130))/0x9*(parseInt(_0x4b7c39(0x127))/0xa);if(_0x3d1d8d===_0x39c9a1)break;else _0x198c2e['push'](_0x198c2e['shift']());}catch(_0x15908e){_0x198c2e['push'](_0x198c2e['shift']());}}}(a182_0x2250,0xe9ac7));export const CLI_VERSION_POLICY_URL=a182_0x78385c(0x12b);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a173_0x1e99a9=a173_0x23c4;(function(_0x1fb75a,_0x15b489){const _0x42673b=a173_0x23c4,_0x3f0fa8=_0x1fb75a();while(!![]){try{const _0x41e04b=parseInt(_0x42673b(0x172))/0x1+-parseInt(_0x42673b(0x164))/0x2*(-parseInt(_0x42673b(0x18a))/0x3)+-parseInt(_0x42673b(0x159))/0x4+-parseInt(_0x42673b(0x1a4))/0x5+-parseInt(_0x42673b(0x1a6))/0x6*(parseInt(_0x42673b(0x15f))/0x7)+parseInt(_0x42673b(0x14e))/0x8*(parseInt(_0x42673b(0x13f))/0x9)+-parseInt(_0x42673b(0x1aa))/0xa*(-parseInt(_0x42673b(0x18b))/0xb);if(_0x41e04b===_0x15b489)break;else _0x3f0fa8['push'](_0x3f0fa8['shift']());}catch(_0x4478a8){_0x3f0fa8['push'](_0x3f0fa8['shift']());}}}(a173_0x1ae3,0x7e651));export const CLI_BIN_NAME=a173_0x1e99a9(0x1a5);export const CLI_DISPLAY_NAME=a173_0x1e99a9(0x17e);function a173_0x23c4(_0x47bf78,_0x3974e0){_0x47bf78=_0x47bf78-0x13a;const _0x1ae324=a173_0x1ae3();let _0x23c42e=_0x1ae324[_0x47bf78];return _0x23c42e;}export const NPM_PACKAGE_NAME=a173_0x1e99a9(0x151);function a173_0x1ae3(){const _0x1fcad8=['Page\x20number','dbid','functionNode','force','description-file','Keyword\x20filter','Force\x20non-interactive\x20mode\x20(CI)','Alias\x20for\x20--non-interactive','enable-bff-save','output','Read\x20value\x20from\x20environment\x20variable','stdin','3036720UcUPVr','rabetbase','379554VaBzES','Expected\x20affected\x20count','descriptionFile','watch','3527380SZPZQM','params','expectedCount','keyword','Dataset\x20code','DB\x20ID','18fAAcOh','dbId','Page\x20size','sql','non-interactive','Description\x20file','appcode','target','Watch\x20mode','datasetcode','Use\x20global\x20config\x20scope','tags','page','Output\x20format','boolean','3151424ziYgNI','verbose','SQL\x20string','@lovrabet/rabetbase-cli','name','Select\x20app\x20profile\x20by\x20name','File\x20path','JSON\x20params','app','Title','project','2321448UePDNv','json\x20|\x20pretty\x20|\x20compress','value','Confirm\x20destructive\x20action','remote','sqlname','49VDTAVm','skip-imports','description','key','env','1653854QJTUXD','sql-name','Output\x20path','nonInteractive','operation','title','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Environment','Use\x20remote','sqlcode','Preview\x20operation\x20without\x20executing','Config\x20value','Enable\x20BFF\x20save','180711mCLBHK','Verbose\x20output','yes','Type\x20filter','all','dryRun','reveal','string','clear','<code>','pagesize','Reveal\x20sensitive\x20value','Rabetbase\x20CLI','Operation\x20type','Schemas','<expr>','SQL\x20name','Override\x20appcode','file','Read\x20value\x20from\x20stdin','Skip\x20import\x20generation','map','Use\x20project\x20config\x20scope','Description','3zNYzqI','11QAYwsA','Record\x20ID','sqlName','Force\x20overwrite','Target\x20path','db-id','type','dry-run','function-node','operationType','schemas','code','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a173_0x1ae3=function(){return _0x1fcad8;};return a173_0x1ae3();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a173_0x1e99a9(0x145),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x183),'hint':a173_0x1e99a9(0x17b)},{'name':a173_0x1e99a9(0x156),'meowKey':a173_0x1e99a9(0x156),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x153),'hint':'<name>'},{'name':a173_0x1e99a9(0x163),'meowKey':a173_0x1e99a9(0x163),'type':'string','description':a173_0x1e99a9(0x16c),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':'format','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x14c),'hint':a173_0x1e99a9(0x15a)},{'name':'jq','meowKey':'jq','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x16b),'hint':a173_0x1e99a9(0x181)},{'name':a173_0x1e99a9(0x192),'meowKey':a173_0x1e99a9(0x177),'type':'boolean','description':a173_0x1e99a9(0x16f)},{'name':'yes','meowKey':a173_0x1e99a9(0x174),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x197)},{'name':a173_0x1e99a9(0x143),'meowKey':a173_0x1e99a9(0x167),'type':'boolean','description':a173_0x1e99a9(0x19e)},{'name':a173_0x1e99a9(0x16a),'meowKey':a173_0x1e99a9(0x16a),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x149)},{'name':'project','meowKey':a173_0x1e99a9(0x158),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x188)},{'name':'ci','meowKey':'ci','type':'boolean','description':a173_0x1e99a9(0x19f),'hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a173_0x1e99a9(0x152),'meowKey':a173_0x1e99a9(0x152),'type':a173_0x1e99a9(0x179),'description':'Name','hidden':!![]},{'name':a173_0x1e99a9(0x169),'meowKey':a173_0x1e99a9(0x169),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x157),'hidden':!![]},{'name':a173_0x1e99a9(0x17a),'meowKey':'clear','type':'boolean','description':'Clear','hidden':!![]},{'name':a173_0x1e99a9(0x1a9),'meowKey':a173_0x1e99a9(0x1a9),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x147),'hidden':!![]},{'name':a173_0x1e99a9(0x1a1),'meowKey':'output','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x166),'hidden':!![]},{'name':'params','meowKey':a173_0x1e99a9(0x13a),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x155),'hidden':!![]},{'name':a173_0x1e99a9(0x148),'meowKey':a173_0x1e99a9(0x148),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13d),'hidden':!![]},{'name':a173_0x1e99a9(0x176),'meowKey':a173_0x1e99a9(0x176),'type':a173_0x1e99a9(0x14d),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a173_0x1e99a9(0x1a0),'meowKey':'enableBffSave','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x171),'hidden':!![]},{'name':'id','meowKey':'id','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18c),'hidden':!![]},{'name':'type','meowKey':'type','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x175),'hidden':!![]},{'name':a173_0x1e99a9(0x184),'meowKey':'file','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x154),'hidden':!![]},{'name':a173_0x1e99a9(0x16e),'meowKey':'sqlcode','type':'string','description':'SQL\x20code','hidden':!![]},{'name':a173_0x1e99a9(0x165),'meowKey':a173_0x1e99a9(0x18d),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x182),'hidden':!![]},{'name':'sqlname','meowKey':a173_0x1e99a9(0x15e),'type':a173_0x1e99a9(0x179),'description':'SQL\x20name','hidden':!![]},{'name':a173_0x1e99a9(0x190),'meowKey':a173_0x1e99a9(0x140),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x199),'meowKey':a173_0x1e99a9(0x199),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x161),'meowKey':a173_0x1e99a9(0x161),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x189),'hidden':!![]},{'name':a173_0x1e99a9(0x19c),'meowKey':a173_0x1e99a9(0x1a8),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x144),'hidden':!![]},{'name':a173_0x1e99a9(0x14b),'meowKey':'page','type':'string','description':a173_0x1e99a9(0x198),'hidden':!![]},{'name':a173_0x1e99a9(0x17c),'meowKey':'pagesize','type':'string','description':a173_0x1e99a9(0x141),'hidden':!![]},{'name':a173_0x1e99a9(0x13c),'meowKey':a173_0x1e99a9(0x13c),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x19d),'hidden':!![]},{'name':a173_0x1e99a9(0x196),'meowKey':'code','type':'string','description':'Code\x20filter','hidden':!![]},{'name':a173_0x1e99a9(0x142),'meowKey':a173_0x1e99a9(0x142),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x150),'hidden':!![]},{'name':a173_0x1e99a9(0x195),'meowKey':a173_0x1e99a9(0x195),'type':'string','description':a173_0x1e99a9(0x180),'hidden':!![]},{'name':'operation','meowKey':a173_0x1e99a9(0x168),'type':a173_0x1e99a9(0x179),'description':'Operation\x20type','hidden':!![]},{'name':a173_0x1e99a9(0x146),'meowKey':'target','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18f),'hidden':!![]},{'name':a173_0x1e99a9(0x160),'meowKey':'skipImports','type':'boolean','description':a173_0x1e99a9(0x186),'hidden':!![]},{'name':a173_0x1e99a9(0x162),'meowKey':a173_0x1e99a9(0x162),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a173_0x1e99a9(0x15b),'meowKey':a173_0x1e99a9(0x15b),'type':'string','description':a173_0x1e99a9(0x170),'hidden':!![]},{'name':a173_0x1e99a9(0x14a),'meowKey':'tags','type':a173_0x1e99a9(0x179),'description':'Tags','hidden':!![]},{'name':a173_0x1e99a9(0x1a3),'meowKey':a173_0x1e99a9(0x1a3),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x185),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':'string','description':a173_0x1e99a9(0x1a2),'hidden':!![]},{'name':a173_0x1e99a9(0x178),'meowKey':'reveal','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x17d),'hidden':!![]},{'name':a173_0x1e99a9(0x19b),'meowKey':a173_0x1e99a9(0x19b),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x18e),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':'boolean','description':a173_0x1e99a9(0x15c),'hidden':!![]},{'name':a173_0x1e99a9(0x15d),'meowKey':'remote','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x16d),'hidden':!![]},{'name':'verbose','meowKey':a173_0x1e99a9(0x14f),'type':'boolean','description':a173_0x1e99a9(0x173),'hidden':!![]},{'name':'expected-count','meowKey':a173_0x1e99a9(0x13b),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x1a7),'hidden':!![]},{'name':'operation-type','meowKey':a173_0x1e99a9(0x194),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x17f),'hidden':!![]},{'name':a173_0x1e99a9(0x193),'meowKey':a173_0x1e99a9(0x19a),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a173_0x1e99a9(0x145),'app',a173_0x1e99a9(0x163),'format','jq',a173_0x1e99a9(0x192),'yes',a173_0x1e99a9(0x143),'ci']);export function buildMeowFlags(){const _0x5dec7d=a173_0x1e99a9;return Object['fromEntries'](GLOBAL_FLAGS[_0x5dec7d(0x187)](_0x41769a=>[_0x41769a['meowKey'],{'type':_0x41769a[_0x5dec7d(0x191)]}]));}
|
|
1
|
+
const a183_0xd42986=a183_0x25a8;(function(_0x4a02b4,_0x245ee5){const _0x1ff4b4=a183_0x25a8,_0x38aebf=_0x4a02b4();while(!![]){try{const _0xb31a06=parseInt(_0x1ff4b4(0x209))/0x1*(parseInt(_0x1ff4b4(0x1d3))/0x2)+-parseInt(_0x1ff4b4(0x1e6))/0x3+-parseInt(_0x1ff4b4(0x1e7))/0x4+parseInt(_0x1ff4b4(0x1d1))/0x5+-parseInt(_0x1ff4b4(0x1bc))/0x6*(parseInt(_0x1ff4b4(0x1c6))/0x7)+parseInt(_0x1ff4b4(0x220))/0x8+-parseInt(_0x1ff4b4(0x1c2))/0x9*(-parseInt(_0x1ff4b4(0x1d2))/0xa);if(_0xb31a06===_0x245ee5)break;else _0x38aebf['push'](_0x38aebf['shift']());}catch(_0x2495a4){_0x38aebf['push'](_0x38aebf['shift']());}}}(a183_0x5dcb,0x9a13e));export const CLI_BIN_NAME=a183_0xd42986(0x21c);export const CLI_DISPLAY_NAME=a183_0xd42986(0x232);export const NPM_PACKAGE_NAME=a183_0xd42986(0x1f1);function a183_0x5dcb(){const _0x37123c=['343727jZPxsc','env','keyword','datasetcode','Menu\x20label','all','Type\x20filter','code','Skip\x20import\x20generation','fromEntries','skip-imports','Function\x20node','sql','page','help','target','key','skipImports','Config\x20key','rabetbase','SQL\x20name','tags','title','2700888RpeZlj','map','Watch\x20mode','operation-type','functionNode','Description','enableBffSave','JSON\x20params','fromEnv','from-env','output','sort','Target\x20path','dryRun','boolean','Expected\x20current\x20child\x20count','Enable\x20BFF\x20save','Clear','Rabetbase\x20CLI','task-id','expected-count','Use\x20global\x20config\x20scope','string','json\x20|\x20pretty\x20|\x20compress','file','dry-run','Menu\x20sort\x20value','expectedCount','appcode','enable-bff-save','114ySPEjX','Parent\x20menu\x20id','sqlcode','Asynchronous\x20task\x20ID','Output\x20path','Expected\x20affected\x20count','2868714ONHlYO','Verbose\x20output','clear','name','105665NiQcFB','pagesize','app','non-interactive','Expected\x20current\x20parent\x20menu\x20id','operationType','Description\x20file','remote','expected-children-count','sql-name','Skip\x20confirmation\x20for\x20high-risk\x20writes','4936805YJzvEw','20oNrtiJ','6ZWxxoY','db-id','yes','File\x20path','Title','verbose','nonInteractive','menu-ids','Read\x20value\x20from\x20stdin','expectPath','global','Output\x20format','Operation\x20type','Alias\x20for\x20--non-interactive','params','value','<expr>','Select\x20app\x20profile\x20by\x20name','operation','3281325hCEjnG','3927852uSkjUd','project','Override\x20appcode','stdin','Name','expect-path','Schemas','Config\x20value','Force\x20non-interactive\x20mode\x20(CI)','Code\x20filter','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','dbId','function-node','confirm','DB\x20ID','Page\x20number','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','sqlname','Confirm\x20destructive\x20action','Apply\x20to\x20all','Force\x20overwrite','sqlName','watch','label','Record\x20ID','meowKey','Dataset\x20code','format','force','Read\x20value\x20from\x20environment\x20variable','type','schemas'];a183_0x5dcb=function(){return _0x37123c;};return a183_0x5dcb();}export const GLOBAL_FLAGS=[{'name':a183_0xd42986(0x23c),'meowKey':'appcode','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1e9),'hint':'<code>'},{'name':a183_0xd42986(0x1c8),'meowKey':a183_0xd42986(0x1c8),'type':'string','description':a183_0xd42986(0x1e4),'hint':'<name>'},{'name':a183_0xd42986(0x20a),'meowKey':a183_0xd42986(0x20a),'type':a183_0xd42986(0x236),'description':'Environment','hint':'production\x20|\x20daily'},{'name':'format','meowKey':a183_0xd42986(0x204),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1de),'hint':a183_0xd42986(0x237)},{'name':'jq','meowKey':'jq','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f8),'hint':a183_0xd42986(0x1e3)},{'name':a183_0xd42986(0x239),'meowKey':a183_0xd42986(0x22d),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1f2)},{'name':'yes','meowKey':a183_0xd42986(0x1d5),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1d0)},{'name':a183_0xd42986(0x1c9),'meowKey':a183_0xd42986(0x1d9),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1ef)},{'name':a183_0xd42986(0x1dd),'meowKey':a183_0xd42986(0x1dd),'type':'boolean','description':a183_0xd42986(0x235)},{'name':a183_0xd42986(0x1e8),'meowKey':a183_0xd42986(0x1e8),'type':a183_0xd42986(0x22e),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a183_0xd42986(0x1e0),'hidden':!![]},{'name':a183_0xd42986(0x217),'meowKey':'help','type':a183_0xd42986(0x22e),'description':'Show\x20help'},{'name':a183_0xd42986(0x1c5),'meowKey':a183_0xd42986(0x1c5),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1eb),'hidden':!![]},{'name':a183_0xd42986(0x21f),'meowKey':a183_0xd42986(0x21f),'type':'string','description':a183_0xd42986(0x1d7),'hidden':!![]},{'name':'clear','meowKey':a183_0xd42986(0x1c4),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x231),'hidden':!![]},{'name':a183_0xd42986(0x1ff),'meowKey':a183_0xd42986(0x1ff),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x222),'hidden':!![]},{'name':'output','meowKey':a183_0xd42986(0x22a),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c0),'hidden':!![]},{'name':a183_0xd42986(0x1e1),'meowKey':a183_0xd42986(0x1e1),'type':'string','description':a183_0xd42986(0x227),'hidden':!![]},{'name':'datasetcode','meowKey':a183_0xd42986(0x20c),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x203),'hidden':!![]},{'name':'all','meowKey':a183_0xd42986(0x20e),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fc),'hidden':!![]},{'name':a183_0xd42986(0x23d),'meowKey':a183_0xd42986(0x226),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x230),'hidden':!![]},{'name':'id','meowKey':'id','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x201),'hidden':!![]},{'name':a183_0xd42986(0x207),'meowKey':a183_0xd42986(0x207),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x20f),'hidden':!![]},{'name':'file','meowKey':a183_0xd42986(0x238),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1d6),'hidden':!![]},{'name':a183_0xd42986(0x1be),'meowKey':a183_0xd42986(0x1be),'type':a183_0xd42986(0x236),'description':'SQL\x20code','hidden':!![]},{'name':a183_0xd42986(0x1cf),'meowKey':a183_0xd42986(0x1fe),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1fa),'meowKey':a183_0xd42986(0x1fa),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1d4),'meowKey':a183_0xd42986(0x1f3),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'description','meowKey':'description','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x225),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1cc),'hidden':!![]},{'name':a183_0xd42986(0x216),'meowKey':a183_0xd42986(0x216),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f7),'hidden':!![]},{'name':a183_0xd42986(0x1c7),'meowKey':a183_0xd42986(0x1c7),'type':a183_0xd42986(0x236),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a183_0xd42986(0x20b),'type':a183_0xd42986(0x236),'description':'Keyword\x20filter','hidden':!![]},{'name':a183_0xd42986(0x210),'meowKey':'code','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f0),'hidden':!![]},{'name':a183_0xd42986(0x215),'meowKey':'sql','type':a183_0xd42986(0x236),'description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a183_0xd42986(0x208),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ed),'hidden':!![]},{'name':a183_0xd42986(0x1e5),'meowKey':a183_0xd42986(0x1e5),'type':'string','description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x218),'meowKey':a183_0xd42986(0x218),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x22c),'hidden':!![]},{'name':a183_0xd42986(0x213),'meowKey':a183_0xd42986(0x21a),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x211),'hidden':!![]},{'name':a183_0xd42986(0x219),'meowKey':a183_0xd42986(0x219),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21b),'hidden':!![]},{'name':'value','meowKey':a183_0xd42986(0x1e2),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ee),'hidden':!![]},{'name':a183_0xd42986(0x21e),'meowKey':a183_0xd42986(0x21e),'type':'string','description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a183_0xd42986(0x1ea),'type':'boolean','description':a183_0xd42986(0x1db),'hidden':!![]},{'name':a183_0xd42986(0x229),'meowKey':a183_0xd42986(0x228),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x206),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a183_0xd42986(0x22e),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a183_0xd42986(0x205),'meowKey':'force','type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fd),'hidden':!![]},{'name':a183_0xd42986(0x1f5),'meowKey':a183_0xd42986(0x1f5),'type':'boolean','description':a183_0xd42986(0x1fb),'hidden':!![]},{'name':a183_0xd42986(0x1cd),'meowKey':a183_0xd42986(0x1cd),'type':a183_0xd42986(0x22e),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a183_0xd42986(0x1d8),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1c3),'hidden':!![]},{'name':a183_0xd42986(0x234),'meowKey':a183_0xd42986(0x23b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c1),'hidden':!![]},{'name':a183_0xd42986(0x200),'meowKey':'label','type':'string','description':a183_0xd42986(0x20d),'hidden':!![]},{'name':'parent-id','meowKey':'parentId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bd),'hidden':!![]},{'name':a183_0xd42986(0x22b),'meowKey':a183_0xd42986(0x22b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x23a),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':a183_0xd42986(0x1ca),'hidden':!![]},{'name':a183_0xd42986(0x1ec),'meowKey':a183_0xd42986(0x1dc),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f9),'hidden':!![]},{'name':a183_0xd42986(0x1ce),'meowKey':'expectedChildrenCount','type':'string','description':a183_0xd42986(0x22f),'hidden':!![]},{'name':a183_0xd42986(0x1da),'meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a183_0xd42986(0x233),'meowKey':'taskId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bf),'hidden':!![]},{'name':a183_0xd42986(0x223),'meowKey':a183_0xd42986(0x1cb),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x1f4),'meowKey':a183_0xd42986(0x224),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x214),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a183_0xd42986(0x23c),a183_0xd42986(0x1c8),'env',a183_0xd42986(0x204),'jq',a183_0xd42986(0x239),a183_0xd42986(0x1d5),a183_0xd42986(0x1c9),'ci']);function a183_0x25a8(_0x3a33dd,_0x323c61){_0x3a33dd=_0x3a33dd-0x1bc;const _0x5dcb89=a183_0x5dcb();let _0x25a863=_0x5dcb89[_0x3a33dd];return _0x25a863;}export function buildMeowFlags(){const _0x144dfc=a183_0xd42986;return Object[_0x144dfc(0x212)](GLOBAL_FLAGS[_0x144dfc(0x221)](_0xcb3933=>[_0xcb3933[_0x144dfc(0x202)],{'type':_0xcb3933[_0x144dfc(0x207)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a184_0x3d20d9=a184_0x402c;(function(_0x2dd113,_0xc01246){const _0x3db24f=a184_0x402c,_0x310167=_0x2dd113();while(!![]){try{const _0x26d3a9=-parseInt(_0x3db24f(0x1b5))/0x1*(-parseInt(_0x3db24f(0x1b1))/0x2)+-parseInt(_0x3db24f(0x1b4))/0x3+parseInt(_0x3db24f(0x1b0))/0x4*(-parseInt(_0x3db24f(0x1ab))/0x5)+-parseInt(_0x3db24f(0x1ac))/0x6*(parseInt(_0x3db24f(0x1b7))/0x7)+parseInt(_0x3db24f(0x1b3))/0x8*(-parseInt(_0x3db24f(0x1aa))/0x9)+-parseInt(_0x3db24f(0x1ae))/0xa+parseInt(_0x3db24f(0x1b6))/0xb;if(_0x26d3a9===_0xc01246)break;else _0x310167['push'](_0x310167['shift']());}catch(_0x2325bb){_0x310167['push'](_0x310167['shift']());}}}(a184_0x351f,0xd9f65));function a184_0x351f(){const _0x5c8ba3=['production','8cStwHn','3847512wfEjIA','18586ujnmsd','62806469nzlfSA','14jfsdHs','en-US','13404987AcmNmk','10uLNMGO','670854Vgeujh','high-risk-write','13275130iLttmr','compress','1433720ghMSpL','24MzgXiV'];a184_0x351f=function(){return _0x5c8ba3;};return a184_0x351f();}function a184_0x402c(_0x290b4c,_0x411b0e){_0x290b4c=_0x290b4c-0x1a9;const _0x351f0b=a184_0x351f();let _0x402cc0=_0x351f0b[_0x290b4c];return _0x402cc0;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a184_0x3d20d9(0x1b2),'format':a184_0x3d20d9(0x1af),'locale':a184_0x3d20d9(0x1a9),'riskLevel':a184_0x3d20d9(0x1ad),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a184_0x3d20d9(0x1af);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a185_0x1c17f2=a185_0x576c;(function(_0x5d7b16,_0x3f81c3){const _0x3eb6e8=a185_0x576c,_0x12f08e=_0x5d7b16();while(!![]){try{const _0x4cbf82=-parseInt(_0x3eb6e8(0xdb))/0x1+-parseInt(_0x3eb6e8(0xd1))/0x2+parseInt(_0x3eb6e8(0xd5))/0x3+-parseInt(_0x3eb6e8(0xda))/0x4+parseInt(_0x3eb6e8(0xcf))/0x5+parseInt(_0x3eb6e8(0xc9))/0x6+parseInt(_0x3eb6e8(0xce))/0x7;if(_0x4cbf82===_0x3f81c3)break;else _0x12f08e['push'](_0x12f08e['shift']());}catch(_0x35b94c){_0x12f08e['push'](_0x12f08e['shift']());}}}(a185_0x51df,0x7827f));import{getEnv,isProduction}from'../constant/env.js';function a185_0x51df(){const _0x57fa5d=['https://daily-api.lovrabet.com','https://user.lovrabet.com','1160369zzRQil','3435850RIyZdo','/app/','1883400GBKkuf','runtimeDomain','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','2456253QobFCr','https://app.lovrabet.com','https://daily.lovrabet.com','/web-app/app/','userDomain','50656hTvbPg','247633ziZEeC','apiDomain','https://user-daily.lovrabet.com','134808BSznln','https://api.lovrabet.com','trim'];a185_0x51df=function(){return _0x57fa5d;};return a185_0x51df();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x27ed16){const _0x333349=a185_0x576c;customApiDomain=_0x27ed16?.[_0x333349(0xdc)],customUserDomain=_0x27ed16?.[_0x333349(0xd9)],customRuntimeDomain=_0x27ed16?.[_0x333349(0xd2)];}function a185_0x576c(_0x8bf73e,_0x43df77){_0x8bf73e=_0x8bf73e-0xc9;const _0x51df2e=a185_0x51df();let _0x576c5f=_0x51df2e[_0x8bf73e];return _0x576c5f;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a185_0x1c17f2(0xcd):a185_0x1c17f2(0xdd));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a185_0x1c17f2(0xca):a185_0x1c17f2(0xcc));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a185_0x1c17f2(0xd4):a185_0x1c17f2(0xd3));export const getAppDomain=()=>isProduction(getEnv())?a185_0x1c17f2(0xd6):a185_0x1c17f2(0xd7);export const getAppBaseUrl=_0x44c16d=>{const _0x2fa3be=a185_0x1c17f2,_0x7ecd60=encodeURIComponent(_0x44c16d[_0x2fa3be(0xcb)]());return isProduction(getEnv())?getAppDomain()+_0x2fa3be(0xd0)+_0x7ecd60:getAppDomain()+_0x2fa3be(0xd8)+_0x7ecd60;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x303a8d=a186_0x2361;(function(_0x2d0ac9,_0x24a6b6){const _0xace009=a186_0x2361,_0x5546ad=_0x2d0ac9();while(!![]){try{const _0x3d89d2=parseInt(_0xace009(0x13a))/0x1+-parseInt(_0xace009(0x134))/0x2+-parseInt(_0xace009(0x138))/0x3+-parseInt(_0xace009(0x132))/0x4*(-parseInt(_0xace009(0x12e))/0x5)+parseInt(_0xace009(0x131))/0x6*(-parseInt(_0xace009(0x135))/0x7)+parseInt(_0xace009(0x12f))/0x8+parseInt(_0xace009(0x133))/0x9;if(_0x3d89d2===_0x24a6b6)break;else _0x5546ad['push'](_0x5546ad['shift']());}catch(_0x44e753){_0x5546ad['push'](_0x5546ad['shift']());}}}(a186_0x58f1,0x47550));export const RABETBASE_ENV_VALUES=[a186_0x303a8d(0x139),a186_0x303a8d(0x137)];export function normalizeEnv(_0x5f1c64){const _0x48e8af=a186_0x303a8d;return _0x5f1c64===_0x48e8af(0x136)?_0x48e8af(0x139):_0x5f1c64;}export function isProduction(_0x5159f2){const _0x1ed232=a186_0x303a8d;return normalizeEnv(_0x5159f2)===_0x1ed232(0x139);}export function isDaily(_0x19afe4){const _0x5d7059=a186_0x303a8d;return normalizeEnv(_0x19afe4)===_0x5d7059(0x137);}export function isDev(_0x1b659c){const _0x30b493=a186_0x303a8d,_0x4e2b12=normalizeEnv(_0x1b659c);return _0x4e2b12==='development'||_0x4e2b12===_0x30b493(0x130);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a186_0x303a8d(0x139));function a186_0x2361(_0x597c60,_0x1e6e8c){_0x597c60=_0x597c60-0x12e;const _0x58f138=a186_0x58f1();let _0x236182=_0x58f138[_0x597c60];return _0x236182;}function a186_0x58f1(){const _0x3a479d=['1095242fpTVfn','6678kFiypj','online','daily','706200ATyoPo','production','146778sayWQO','1292435EfuLlY','4237776WBnBpS','dev','2064wyfbOl','4usclbQ','4215474PYgXJu'];a186_0x58f1=function(){return _0x3a479d;};return a186_0x58f1();}export function getEnv(){return env;}export function initEnv(_0xf7368b){env=normalizeEnv(_0xf7368b);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x4ddedb=a187_0x6c53;(function(_0x4a5cf0,_0x5ea7a8){const _0x593376=a187_0x6c53,_0x47615a=_0x4a5cf0();while(!![]){try{const _0x466f6d=parseInt(_0x593376(0x97))/0x1+-parseInt(_0x593376(0x9f))/0x2+parseInt(_0x593376(0x94))/0x3*(parseInt(_0x593376(0x9e))/0x4)+parseInt(_0x593376(0x9b))/0x5*(-parseInt(_0x593376(0x96))/0x6)+-parseInt(_0x593376(0x93))/0x7+parseInt(_0x593376(0x9d))/0x8+parseInt(_0x593376(0x9a))/0x9*(-parseInt(_0x593376(0x98))/0xa);if(_0x466f6d===_0x5ea7a8)break;else _0x47615a['push'](_0x47615a['shift']());}catch(_0xb5ffa4){_0x47615a['push'](_0x47615a['shift']());}}}(a187_0x5bf9,0x64adc));function a187_0x6c53(_0x32bbf8,_0x253d57){_0x32bbf8=_0x32bbf8-0x93;const _0x5bf92c=a187_0x5bf9();let _0x6c530b=_0x5bf92c[_0x32bbf8];return _0x6c530b;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a187_0x4ddedb(0x95),a187_0x4ddedb(0x9c),a187_0x4ddedb(0x99)];function a187_0x5bf9(){const _0x240a4f=['817375aMpnQq','10SoRyrk','compress','5139999JQyHor','5LszVoC','pretty','4926136yIWfwW','252DNRxqz','315896AWdlgO','4181653NTQBRg','36417xpxrIL','json','2754486GCLFRD'];a187_0x5bf9=function(){return _0x240a4f;};return a187_0x5bf9();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x15bafb=a188_0x28e5;(function(_0x2f04f6,_0x14e763){const _0x5cf622=a188_0x28e5,_0x97ca13=_0x2f04f6();while(!![]){try{const _0x436b5e=-parseInt(_0x5cf622(0x76))/0x1+parseInt(_0x5cf622(0x78))/0x2*(parseInt(_0x5cf622(0x7a))/0x3)+-parseInt(_0x5cf622(0x71))/0x4*(-parseInt(_0x5cf622(0x7b))/0x5)+-parseInt(_0x5cf622(0x74))/0x6*(parseInt(_0x5cf622(0x73))/0x7)+parseInt(_0x5cf622(0x72))/0x8*(parseInt(_0x5cf622(0x7c))/0x9)+-parseInt(_0x5cf622(0x77))/0xa*(-parseInt(_0x5cf622(0x7d))/0xb)+parseInt(_0x5cf622(0x79))/0xc*(parseInt(_0x5cf622(0x70))/0xd);if(_0x436b5e===_0x14e763)break;else _0x97ca13['push'](_0x97ca13['shift']());}catch(_0x243c0e){_0x97ca13['push'](_0x97ca13['shift']());}}}(a188_0x1260,0xa145f));function a188_0x28e5(_0x56ff1e,_0x542b1c){_0x56ff1e=_0x56ff1e-0x70;const _0x1260c6=a188_0x1260();let _0x28e5f9=_0x1260c6[_0x56ff1e];return _0x28e5f9;}function a188_0x1260(){const _0x389642=['28GZPUBI','1007328InmtAa','./src/api','656284EINGhj','10ngaKNZ','1025762OxMkpO','1004544PBABcT','3Qkipgq','55uejXyk','171423LkzJmn','6465195POljDR','13kFySWr','285464oTnAdO','8HiLEJq'];a188_0x1260=function(){return _0x389642;};return a188_0x1260();}export const DEFAULT_API_DIR=a188_0x15bafb(0x75);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a189_0x2466(_0x3b039b,_0x5a038d){_0x3b039b=_0x3b039b-0x119;const _0x36d8ed=a189_0x36d8();let _0x24664a=_0x36d8ed[_0x3b039b];return _0x24664a;}function a189_0x36d8(){const _0x1d6634=['621162xbZmaX','1344928VCoyPg','72984lpvHmU','273EtsVMo','762242cUwlzN','4813179EKsuqm','read','7226160lkhdyI','2586730qDnHMm'];a189_0x36d8=function(){return _0x1d6634;};return a189_0x36d8();}const a189_0x3cff38=a189_0x2466;(function(_0x425cb1,_0x9de8ae){const _0x2fe11f=a189_0x2466,_0x7e9841=_0x425cb1();while(!![]){try{const _0x214bd7=parseInt(_0x2fe11f(0x11f))/0x1+parseInt(_0x2fe11f(0x11b))/0x2+parseInt(_0x2fe11f(0x120))/0x3+parseInt(_0x2fe11f(0x11c))/0x4+-parseInt(_0x2fe11f(0x11a))/0x5+-parseInt(_0x2fe11f(0x119))/0x6+parseInt(_0x2fe11f(0x11e))/0x7*(-parseInt(_0x2fe11f(0x11d))/0x8);if(_0x214bd7===_0x9de8ae)break;else _0x7e9841['push'](_0x7e9841['shift']());}catch(_0x377c92){_0x7e9841['push'](_0x7e9841['shift']());}}}(a189_0x36d8,0xe4809));export const RISK_LEVEL_VALUES=[a189_0x3cff38(0x121),'write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x286058,_0x23380c){const _0x1fef22=a190_0x4dd8,_0x70988d=_0x286058();while(!![]){try{const _0x20a5c2=-parseInt(_0x1fef22(0x139))/0x1+parseInt(_0x1fef22(0x15e))/0x2+-parseInt(_0x1fef22(0x145))/0x3*(parseInt(_0x1fef22(0x152))/0x4)+parseInt(_0x1fef22(0x15b))/0x5+-parseInt(_0x1fef22(0x157))/0x6*(-parseInt(_0x1fef22(0x147))/0x7)+-parseInt(_0x1fef22(0x15d))/0x8*(parseInt(_0x1fef22(0x13e))/0x9)+-parseInt(_0x1fef22(0x153))/0xa;if(_0x20a5c2===_0x23380c)break;else _0x70988d['push'](_0x70988d['shift']());}catch(_0x50ba0d){_0x70988d['push'](_0x70988d['shift']());}}}(a190_0x1992,0x9d4dc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function a190_0x4dd8(_0x3eaef4,_0x341137){_0x3eaef4=_0x3eaef4-0x139;const _0x199287=a190_0x1992();let _0x4dd880=_0x199287[_0x3eaef4];return _0x4dd880;}function a190_0x1992(){const _0x7e84d5=['riskLevel','pageSize','apiDir','globalConfig','201KbKNHi','FORMAT','136430OkwsJR','VERBOSE','app','appcode','apps','string','env','PAGE_SIZE','defaultApp','cookie','accessKey','31672DNkEuv','682060uelUgT','keys','format','entries','168sZCBub','locale','object','length','4128280GdDYtT','COOKIE','8nKbWjc','2032650lXUybc','701117saaJqI','find','maxRisk','production','daily','3992004ujCmBB','trim','MAX_RISK'];a190_0x1992=function(){return _0x7e84d5;};return a190_0x1992();}function stringConfigValue(_0x2b01b9){const _0x100921=a190_0x4dd8;return typeof _0x2b01b9===_0x100921(0x14c)&&_0x2b01b9[_0x100921(0x13f)]()?_0x2b01b9[_0x100921(0x13f)]():undefined;}function appProfiles(_0x662e60){const _0x2fdfd3=a190_0x4dd8;return _0x662e60[_0x2fdfd3(0x14b)]&&typeof _0x662e60[_0x2fdfd3(0x14b)]===_0x2fdfd3(0x159)?_0x662e60[_0x2fdfd3(0x14b)]:{};}function resolveDefaultAppName(_0x393568){const _0x2c5c4c=a190_0x4dd8,_0x5ec269=stringConfigValue(_0x393568[_0x2c5c4c(0x14f)]);if(_0x5ec269)return _0x5ec269;return Object[_0x2c5c4c(0x154)](appProfiles(_0x393568))[0x0];}function resolveTopLevelAppCode(_0x179a51){const _0x1fb653=a190_0x4dd8;return stringConfigValue(_0x179a51[_0x1fb653(0x14a)])||stringConfigValue(_0x179a51[_0x1fb653(0x149)]);}export function resolveAppConfig({raw:_0x4ec418,flags:_0x48a810,layers:_0x25ad27,readEnv:_0x32a61d}){const _0x5d72e1=a190_0x4dd8,_0x39cbdf=_0x25ad27?.['projectConfig']??{},_0x587cda=_0x25ad27?.[_0x5d72e1(0x144)]??{},_0x3c02f9=Object[_0x5d72e1(0x154)](_0x39cbdf)[_0x5d72e1(0x15a)]>0x0,_0x386b58=!_0x3c02f9||_0x39cbdf['inherit']===!![],_0x348662=_0x3c02f9?resolveDefaultAppName(_0x39cbdf):undefined,_0x5a1001=_0x386b58?resolveDefaultAppName(_0x587cda):undefined,_0x130a20=stringConfigValue(_0x48a810[_0x5d72e1(0x149)]),_0x2d61da=_0x32a61d('APP'),_0x197e83={};if(_0x4ec418[_0x5d72e1(0x14b)]&&typeof _0x4ec418[_0x5d72e1(0x14b)]===_0x5d72e1(0x159))for(const [_0x84996b,_0x3f3656]of Object[_0x5d72e1(0x156)](_0x4ec418[_0x5d72e1(0x14b)])){_0x3f3656&&typeof _0x3f3656==='object'&&_0x3f3656['appcode']&&(_0x197e83[_0x84996b]=_0x3f3656);}const _0x3ad647=_0x4ec418['defaultApp']||undefined,_0x84fe1=Object['keys'](_0x197e83)[_0x5d72e1(0x15a)]>0x0,_0x5f1ed0=_0x130a20||_0x348662||_0x2d61da||_0x5a1001||_0x3ad647||undefined,_0x1a7b53=stringConfigValue(_0x48a810[_0x5d72e1(0x14a)]),_0x398819=_0x1a7b53?Object[_0x5d72e1(0x156)](_0x197e83)[_0x5d72e1(0x13a)](([,_0x5baa14])=>_0x5baa14?.[_0x5d72e1(0x14a)]===_0x1a7b53):undefined,_0x46a0a8=_0x398819?.[0x0],_0x4971eb=_0x398819?.[0x1],_0x1d2f12=_0x1a7b53?_0x46a0a8:_0x5f1ed0;let _0x5d501c=_0x1d2f12&&_0x197e83[_0x1d2f12]?_0x197e83[_0x1d2f12]:undefined;_0x1a7b53&&_0x4971eb&&(_0x5d501c=_0x4971eb);const _0x279d6b=_0x1a7b53?_0x4971eb??_0x5d501c:_0x5d501c,_0x2fd64a=!_0x130a20&&!_0x348662&&_0x2d61da&&_0x1d2f12===_0x2d61da,_0x4cf930=_0x130a20||(_0x2fd64a?_0x2d61da:undefined)||(_0x1a7b53?_0x46a0a8:undefined),_0x59902e=_0x279d6b?.['appcode'],_0x106f46=_0x3c02f9?resolveTopLevelAppCode(_0x39cbdf):undefined,_0x4f4dca=_0x386b58?resolveTopLevelAppCode(_0x587cda):undefined,_0x492e38=_0x130a20||_0x348662?_0x59902e:undefined,_0x111c82=!_0x130a20&&!_0x348662?_0x59902e:undefined,_0x201476=_0x1a7b53||_0x492e38||_0x106f46||_0x111c82||_0x4f4dca||undefined,_0x16a4b7=_0x3c02f9?stringConfigValue(_0x39cbdf[_0x5d72e1(0x14d)]):undefined,_0x17b91f=_0x386b58?stringConfigValue(_0x587cda['env']):undefined,_0x3630a8=_0x48a810[_0x5d72e1(0x14d)]||_0x279d6b?.[_0x5d72e1(0x14d)]||_0x16a4b7||_0x32a61d('ENV')||_0x17b91f||_0x4ec418['env']||DEFAULT_CONFIG_VALUES[_0x5d72e1(0x14d)],_0x43389b=_0x279d6b?.[_0x5d72e1(0x158)]||_0x4ec418[_0x5d72e1(0x158)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e1af6=_0x32a61d(_0x5d72e1(0x15c))||_0x279d6b?.[_0x5d72e1(0x150)]||_0x4ec418[_0x5d72e1(0x150)]||undefined,_0x2e6faf=_0x32a61d('ACCESS_KEY')||_0x279d6b?.['accessKey']||_0x4ec418[_0x5d72e1(0x151)]||undefined,_0x2a72c1=_0x48a810['format']||_0x32a61d(_0x5d72e1(0x146))||_0x279d6b?.[_0x5d72e1(0x155)]||_0x4ec418[_0x5d72e1(0x155)],_0x57d15c=normalizeLegacyOutputFormat(_0x2a72c1),_0x121a06=_0x32a61d(_0x5d72e1(0x14e))||_0x279d6b?.[_0x5d72e1(0x142)]||_0x4ec418[_0x5d72e1(0x142)],_0x5e92f1=_0x121a06?Number(_0x121a06)||undefined:undefined,_0xbef37c=_0x32a61d('RISK_LEVEL')||_0x32a61d(_0x5d72e1(0x140))||_0x279d6b?.[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x13b)],_0x4df1ae=_0xbef37c==='read'||_0xbef37c==='write'?_0xbef37c:DEFAULT_CONFIG_VALUES[_0x5d72e1(0x141)],_0x46ee5e=_0x32a61d(_0x5d72e1(0x148)),_0x29d0a8=_0x46ee5e==='1'||_0x46ee5e==='true',_0x4cf5e7=_0x279d6b?.[_0x5d72e1(0x143)]||_0x4ec418[_0x5d72e1(0x143)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4819fd=isDaily(normalizeEnv(String(_0x3630a8)))?_0x5d72e1(0x13d):_0x5d72e1(0x13c);return{'appCode':typeof _0x201476===_0x5d72e1(0x14c)&&_0x201476[_0x5d72e1(0x13f)]()?_0x201476[_0x5d72e1(0x13f)]():undefined,'env':_0x4819fd,'locale':_0x43389b,'cookie':_0x4e1af6,'accessKey':_0x2e6faf,'format':_0x57d15c,'pageSize':_0x5e92f1,'riskLevel':_0x4df1ae,'verbose':_0x29d0a8,'apiDir':_0x4cf5e7,'apps':_0x197e83,'defaultApp':_0x3ad647,'currentApp':_0x84fe1?_0x1d2f12:undefined,'explicitAppName':_0x4cf930};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x114f6f,_0xc6dae0){const _0x4324e2=a191_0xb65d,_0x11a538=_0x114f6f();while(!![]){try{const _0xa6a1fa=parseInt(_0x4324e2(0x1b2))/0x1+parseInt(_0x4324e2(0x1ae))/0x2*(parseInt(_0x4324e2(0x1b0))/0x3)+-parseInt(_0x4324e2(0x1ad))/0x4+-parseInt(_0x4324e2(0x1b7))/0x5+parseInt(_0x4324e2(0x1b5))/0x6+-parseInt(_0x4324e2(0x1b3))/0x7*(parseInt(_0x4324e2(0x1af))/0x8)+-parseInt(_0x4324e2(0x1b1))/0x9;if(_0xa6a1fa===_0xc6dae0)break;else _0x11a538['push'](_0x11a538['shift']());}catch(_0xfa9633){_0x11a538['push'](_0x11a538['shift']());}}}(a191_0x4778,0x2e5e9));import{getIsSessionValid}from'../auth/is-session-valid.js';function a191_0xb65d(_0x21fd47,_0x1e726c){_0x21fd47=_0x21fd47-0x1ac;const _0x47788e=a191_0x4778();let _0xb65d9a=_0x47788e[_0x21fd47];return _0xb65d9a;}import{CliErrors}from'../errors.js';function a191_0x4778(){const _0x2c84d4=['490096lQiNil','114XJsmjV','13232NxvmdV','16314EbLmfU','2029464dAjfXj','271475ZNaskt','1267QvGWgc','../auth/get-cookie.js','1693632vZunMb','cookie','131950AHmUtG','authRequired'];a191_0x4778=function(){return _0x2c84d4;};return a191_0x4778();}export async function buildAuth(_0x5b184b){const _0x2706e1=a191_0xb65d,{getCookie:_0xeba6e2}=await import(_0x2706e1(0x1b4)),_0x443fe4=_0x5b184b[_0x2706e1(0x1b6)]||_0xeba6e2(),_0x1b2d5e=_0x443fe4?await getIsSessionValid():![];return{'cookie':_0x443fe4,'isLoggedIn':_0x1b2d5e,async 'getOrLogin'(){const _0x50cfdf=_0x2706e1;if(_0x443fe4&&_0x1b2d5e)return _0x443fe4;throw CliErrors[_0x50cfdf(0x1ac)]();}};}
|