@lovrabet/rabetbase-cli 2.3.7-beta.3 → 2.3.7
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/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/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- 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/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 -0
- package/lib/commands/notification/index.js +1 -0
- 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/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-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/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
|
-
|
|
1
|
+
(function(_0x4c7996,_0xa6b917){const _0x4a4d0d=a200_0x5605,_0x241435=_0x4c7996();while(!![]){try{const _0x1b2684=-parseInt(_0x4a4d0d(0xef))/0x1*(parseInt(_0x4a4d0d(0xf3))/0x2)+-parseInt(_0x4a4d0d(0xec))/0x3*(-parseInt(_0x4a4d0d(0xe8))/0x4)+parseInt(_0x4a4d0d(0xe3))/0x5+parseInt(_0x4a4d0d(0xe0))/0x6+-parseInt(_0x4a4d0d(0xf1))/0x7+parseInt(_0x4a4d0d(0xe2))/0x8*(-parseInt(_0x4a4d0d(0xe6))/0x9)+-parseInt(_0x4a4d0d(0xea))/0xa*(-parseInt(_0x4a4d0d(0xee))/0xb);if(_0x1b2684===_0xa6b917)break;else _0x241435['push'](_0x241435['shift']());}catch(_0x2696b8){_0x241435['push'](_0x241435['shift']());}}}(a200_0x132e,0x82353));function a200_0x132e(){const _0x289d0a=['20pgBqHQ','lastSync','83664VRzDwA','\x22.\x20','5961857fmZYoZ','1373BlrgAP','sqlRoot','3410099kjqhqN','sqls','1526IzrPyy','utf8','3350526tpWQJz','code','82632APKHna','1157585UmTawr',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','parse','657jEiNdW','stringify','136wHdqZK','apps'];a200_0x132e=function(){return _0x289d0a;};return a200_0x132e();}function a200_0x5605(_0x15dc82,_0x2911a5){_0x15dc82=_0x15dc82-0xdf;const _0x132e4b=a200_0x132e();let _0x5605b9=_0x132e4b[_0x15dc82];return _0x5605b9;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4d8764,_0x27b535,_0xb5c8a5,_0x491587){const _0x40757e=a200_0x5605,_0x2cb7c0=_0x4d8764??createEmptySqlLock();let _0x173d7f=_0x2cb7c0['apps'][_0x27b535];if(!_0x173d7f)return _0x173d7f={'sqlRoot':_0xb5c8a5,'lastSync':'','sqls':{}},_0x2cb7c0[_0x40757e(0xe9)][_0x27b535]=_0x173d7f,{'lockData':_0x2cb7c0,'appLock':_0x173d7f};if(!_0x173d7f['sqlRoot'])_0x173d7f[_0x40757e(0xf0)]=_0xb5c8a5;else{if(_0x173d7f[_0x40757e(0xf0)]!==_0xb5c8a5)throw new Error(_0x491587+_0x40757e(0xe4)+_0xb5c8a5+'\x22\x20vs\x20lock\x20\x22'+_0x173d7f[_0x40757e(0xf0)]+_0x40757e(0xed)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x173d7f['sqls']&&(_0x173d7f[_0x40757e(0xf2)]={}),!_0x173d7f['lastSync']&&(_0x173d7f[_0x40757e(0xeb)]=''),{'lockData':_0x2cb7c0,'appLock':_0x173d7f};}export async function readSqlLockFile(_0x12f053){const _0x502605=a200_0x5605;try{const _0x4fdde8=await readFile(_0x12f053,_0x502605(0xdf));return JSON[_0x502605(0xe5)](_0x4fdde8);}catch(_0xc93b4a){if(_0xc93b4a[_0x502605(0xe1)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0xc93b4a));}}export async function writeSqlLockFile(_0x459630,_0x344e6b){const _0x1e9bd3=a200_0x5605;await mkdir(dirname(_0x459630),{'recursive':!![]}),await writeFile(_0x459630,JSON[_0x1e9bd3(0xe7)](_0x344e6b,null,0x2),_0x1e9bd3(0xdf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55ff6e,_0x3da0a3){const _0x49724d=a202_0x2b5f,_0x1f1471=_0x55ff6e();while(!![]){try{const _0x560345=parseInt(_0x49724d(0x1f0))/0x1+-parseInt(_0x49724d(0x1e2))/0x2*(-parseInt(_0x49724d(0x1f3))/0x3)+parseInt(_0x49724d(0x1f4))/0x4*(-parseInt(_0x49724d(0x1ea))/0x5)+-parseInt(_0x49724d(0x1ee))/0x6+parseInt(_0x49724d(0x1f6))/0x7*(parseInt(_0x49724d(0x1ec))/0x8)+parseInt(_0x49724d(0x1e4))/0x9*(parseInt(_0x49724d(0x1ed))/0xa)+parseInt(_0x49724d(0x1e3))/0xb;if(_0x560345===_0x3da0a3)break;else _0x1f1471['push'](_0x1f1471['shift']());}catch(_0x101290){_0x1f1471['push'](_0x1f1471['shift']());}}}(a202_0x4ec4,0x5d689));export function detectSqlMode(_0x4c613e){const _0x391fd5=a202_0x2b5f,_0x38340d=_0x4c613e[_0x391fd5(0x1e9)]();if(/^<(select|insert|update|delete)\b/i[_0x391fd5(0x1e8)](_0x38340d))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0xc4ec4f){const _0x558190=a202_0x2b5f;return _0xc4ec4f===_0x558190(0x1f5)?_0x558190(0x1ef):_0x558190(0x1f2);}export function buildDefaultSqlFileName(_0xbd409c,_0x490527){return''+_0xbd409c+getSqlFileExtension(_0x490527);}export function sanitizeSqlPathSegment(_0x4d87f1,_0x4edf5f){const _0x3c05a2=a202_0x2b5f,_0x5261aa=String(_0x4d87f1??'')[_0x3c05a2(0x1f1)](),_0x5efed5=_0x5261aa[_0x3c05a2(0x1e7)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3c05a2(0x1e7)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x3c05a2(0x1e7)](/\.+$/,'')[_0x3c05a2(0x1e7)](/^-+/,'')[_0x3c05a2(0x1e7)](/-+$/,'');return _0x5efed5||_0x4edf5f;}export function buildDbDirectoryName(_0x345212,_0x59c214){const _0x12d2dc=a202_0x2b5f;return sanitizeSqlPathSegment(_0x345212,_0x59c214!=null?_0x12d2dc(0x1e5)+_0x59c214:_0x12d2dc(0x1eb));}export function buildSqlRelativePath(_0x4c6e0e,_0x4baf6a,_0x54ad83,_0x3e7029,_0x49dbff){const _0x2188a4=a202_0x2b5f,_0x1e8c90=buildDbDirectoryName(_0x54ad83,_0x49dbff),_0x56bde=sanitizeSqlPathSegment(_0x4c6e0e,_0x2188a4(0x1e6)),_0x6fbc49=sanitizeSqlPathSegment(_0x4baf6a,_0x56bde);return _0x1e8c90+'/'+_0x56bde+'_'+_0x6fbc49+getSqlFileExtension(_0x3e7029);}function a202_0x2b5f(_0x4e2064,_0x4d65cb){_0x4e2064=_0x4e2064-0x1e2;const _0x4ec43c=a202_0x4ec4();let _0x2b5f83=_0x4ec43c[_0x4e2064];return _0x2b5f83;}function a202_0x4ec4(){const _0x2161b1=['mybatisXml','77malQwa','1714gBbLOR','1286516YdZvny','119475zdwQjc','db-','unknown-sql','replace','test','trimStart','5joFwos','unknown-db','291896eviUfK','50ZCzhYv','1422978bneGIg','.xml','185094cpSKeJ','trim','.sql','1830FfNxSU','2691152Swmasq'];a202_0x4ec4=function(){return _0x2161b1;};return a202_0x4ec4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc043df,_0x305c53){const _0x53cc89=a203_0x2118,_0x7fd9e7=_0xc043df();while(!![]){try{const _0x22202d=parseInt(_0x53cc89(0x1b5))/0x1*(parseInt(_0x53cc89(0x1cb))/0x2)+-parseInt(_0x53cc89(0x1d7))/0x3+-parseInt(_0x53cc89(0x1d1))/0x4+parseInt(_0x53cc89(0x1c9))/0x5*(parseInt(_0x53cc89(0x1d6))/0x6)+parseInt(_0x53cc89(0x1c5))/0x7*(-parseInt(_0x53cc89(0x1cc))/0x8)+parseInt(_0x53cc89(0x1c7))/0x9+-parseInt(_0x53cc89(0x1ba))/0xa;if(_0x22202d===_0x305c53)break;else _0x7fd9e7['push'](_0x7fd9e7['shift']());}catch(_0x30469d){_0x7fd9e7['push'](_0x7fd9e7['shift']());}}}(a203_0x3a32,0xcc55a));function a203_0x3a32(){const _0x23ebad=['DDL','794545cyDJPz','DELETE','507724CgJDUZ','8Lchrcm','matchAll','UNKNOWN','from','startsWith','4529200ysMQoc','trim','SQL\x20content\x20is\x20empty','\x20with\x20parameters:\x20','add','48pGjGog','432885oTwiTw','SELECT','join','\x20query\x20targeting\x20','5rzKylh','replace','test','type','unknown\x20table(s)','5740820fNbbdf','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UPDATE','push','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','reason','match','split','includes','toUpperCase','8056153Ajchws','INSERT','11681352BffpAP'];a203_0x3a32=function(){return _0x23ebad;};return a203_0x3a32();}export function detectSqlType(_0x29aefb){const _0x4bd286=a203_0x2118;if(!_0x29aefb?.[_0x4bd286(0x1d2)]())return{'type':_0x4bd286(0x1ce),'isSelectOnly':![],'isDangerous':![],'reason':_0x4bd286(0x1d3)};const _0xc2b173=_0x29aefb['replace'](/#\{[^}]*\}/g,'?')[_0x4bd286(0x1b6)](/\$\{[^}]*\}/g,'?')[_0x4bd286(0x1b6)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x477bec=_0xc2b173[_0x4bd286(0x1c2)]('\x0a');let _0x438bcd='';for(const _0x233552 of _0x477bec){const _0x402842=_0x233552[_0x4bd286(0x1d2)]();if(!_0x402842||_0x402842[_0x4bd286(0x1d0)]('--')||_0x402842['startsWith']('/*'))continue;_0x438bcd=_0x402842;break;}const _0x265c47=_0x438bcd[_0x4bd286(0x1c4)]();if(_0x265c47[_0x4bd286(0x1d0)](_0x4bd286(0x1d8))||_0x265c47['startsWith']('WITH')){const _0x423075=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0xc2b173);return{'type':_0x4bd286(0x1d8),'isSelectOnly':!_0x423075,'isDangerous':_0x423075,'reason':_0x423075?_0x4bd286(0x1bb):undefined};}if(_0x265c47[_0x4bd286(0x1d0)](_0x4bd286(0x1c6)))return{'type':_0x4bd286(0x1c6),'isSelectOnly':![],'isDangerous':![]};if(_0x265c47[_0x4bd286(0x1d0)](_0x4bd286(0x1bd)))return{'type':_0x4bd286(0x1bd),'isSelectOnly':![],'isDangerous':![]};if(_0x265c47[_0x4bd286(0x1d0)]('DELETE'))return{'type':_0x4bd286(0x1ca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4bd286(0x1bf)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4bd286(0x1b7)](_0x265c47))return{'type':_0x4bd286(0x1c8),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x4bd286(0x1ce),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x23baee){const _0xd0db3b=a203_0x2118,_0x9d9a35=_0x23baee[_0xd0db3b(0x1b6)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0xd0db3b(0x1b6)](/'[^']*'/g,'\x27\x27')[_0xd0db3b(0x1b6)](/--.*$/gm,'')[_0xd0db3b(0x1b6)](/\/\*[\s\S]*?\*\//g,''),_0x394e12=[],_0x289078=_0x9d9a35[_0xd0db3b(0x1c1)](/FROM\s+([^\s,)(]+)/i);if(_0x289078?.[0x1])_0x394e12['push'](_0x289078[0x1][_0xd0db3b(0x1b6)](/[`"]/g,''));for(const _0x64ae4b of _0x9d9a35[_0xd0db3b(0x1cd)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x282e6f=_0x64ae4b[0x1]?.[_0xd0db3b(0x1b6)](/[`"]/g,'');if(_0x282e6f&&!_0x394e12['includes'](_0x282e6f))_0x394e12[_0xd0db3b(0x1be)](_0x282e6f);}const _0x236951=_0x9d9a35[_0xd0db3b(0x1c1)](/INTO\s+([^\s(]+)/i);if(_0x236951?.[0x1]){const _0x247d2d=_0x236951[0x1][_0xd0db3b(0x1b6)](/[`"]/g,'');if(!_0x394e12['includes'](_0x247d2d))_0x394e12[_0xd0db3b(0x1be)](_0x247d2d);}const _0x160f35=_0x9d9a35['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x160f35?.[0x1]){const _0x38e574=_0x160f35[0x1][_0xd0db3b(0x1b6)](/[`"]/g,'');if(!_0x394e12[_0xd0db3b(0x1c3)](_0x38e574))_0x394e12[_0xd0db3b(0x1be)](_0x38e574);}return _0x394e12;}function extractParameters(_0x1713e9){const _0x4450f5=a203_0x2118,_0x3bc80c=new Set();for(const _0x4d446c of _0x1713e9[_0x4450f5(0x1cd)](/#\{(\w+)\}/g))if(_0x4d446c[0x1])_0x3bc80c['add'](_0x4d446c[0x1]);for(const _0x1e6a1c of _0x1713e9[_0x4450f5(0x1cd)](/\$\{(\w+)\}/g))if(_0x1e6a1c[0x1])_0x3bc80c[_0x4450f5(0x1d5)](_0x1e6a1c[0x1]);return Array[_0x4450f5(0x1cf)](_0x3bc80c);}function a203_0x2118(_0x8bb18d,_0x244a3d){_0x8bb18d=_0x8bb18d-0x1b3;const _0x3a320b=a203_0x3a32();let _0x211846=_0x3a320b[_0x8bb18d];return _0x211846;}export function validateSql(_0x3a69be){const _0x3b6a37=a203_0x2118,_0x45b875=detectSqlType(_0x3a69be),_0x32025e=extractTables(_0x3a69be),_0x54f6c5=extractParameters(_0x3a69be);if(_0x45b875['isDangerous'])return{'valid':![],'sqlType':_0x45b875,'tables':_0x32025e,'parameters':_0x54f6c5,'message':_0x45b875[_0x3b6a37(0x1c0)]||_0x45b875[_0x3b6a37(0x1b8)]+_0x3b6a37(0x1bc)};if(_0x45b875[_0x3b6a37(0x1b8)]===_0x3b6a37(0x1ce))return{'valid':![],'sqlType':_0x45b875,'tables':_0x32025e,'parameters':_0x54f6c5,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x45b875,'tables':_0x32025e,'parameters':_0x54f6c5,'message':_0x45b875[_0x3b6a37(0x1b8)]+_0x3b6a37(0x1b4)+(_0x32025e['length']?_0x32025e[_0x3b6a37(0x1b3)](',\x20'):_0x3b6a37(0x1b9))+(_0x54f6c5['length']?_0x3b6a37(0x1d4)+_0x54f6c5[_0x3b6a37(0x1b3)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a204_0x41391b=a204_0x1ba7;(function(_0x3be87c,_0x365f8e){const _0x5a55f6=a204_0x1ba7,_0x1046d0=_0x3be87c();while(!![]){try{const _0x248a10=parseInt(_0x5a55f6(0xe8))/0x1+-parseInt(_0x5a55f6(0xed))/0x2+parseInt(_0x5a55f6(0xef))/0x3*(parseInt(_0x5a55f6(0xf4))/0x4)+parseInt(_0x5a55f6(0xe7))/0x5*(parseInt(_0x5a55f6(0xf2))/0x6)+-parseInt(_0x5a55f6(0xe4))/0x7*(parseInt(_0x5a55f6(0xf1))/0x8)+-parseInt(_0x5a55f6(0xf0))/0x9*(parseInt(_0x5a55f6(0xe9))/0xa)+parseInt(_0x5a55f6(0xf3))/0xb;if(_0x248a10===_0x365f8e)break;else _0x1046d0['push'](_0x1046d0['shift']());}catch(_0x47aa19){_0x1046d0['push'](_0x1046d0['shift']());}}}(a204_0x28d1,0xb4e75));function a204_0x1ba7(_0x3b0636,_0x5e3ad4){_0x3b0636=_0x3b0636-0xe2;const _0x28d177=a204_0x28d1();let _0x1ba70b=_0x28d177[_0x3b0636];return _0x1ba70b;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a204_0x41391b(0xe6)+CLI_BIN_NAME+a204_0x41391b(0xeb),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a204_0x41391b(0xe5),a204_0x41391b(0xec)+CLI_BIN_NAME+a204_0x41391b(0xe3)][a204_0x41391b(0xee)](a204_0x41391b(0xe2)),'notInProjectHint':a204_0x41391b(0xea)});function a204_0x28d1(){const _0x4fafb8=['286242YBSTYd','join','2384259GLusSN','66843PgJcUA','176oKmRqK','6bTKllZ','6558233VewkAZ','4oKKBhh','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','221382rFSYnE','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20`','230995KJBMUC','1316185OQrtSb','1580TTbELK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','Tip:\x20`'];a204_0x28d1=function(){return _0x4fafb8;};return a204_0x28d1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x1ce1(_0x37eb12,_0x2e9570){_0x37eb12=_0x37eb12-0x1a0;var _0x2bb908=a205_0x2bb9();var _0x1ce199=_0x2bb908[_0x37eb12];return _0x1ce199;}(function(_0x3215d4,_0x5acf1f){var _0x145944=a205_0x1ce1,_0x281c4a=_0x3215d4();while(!![]){try{var _0x263a85=-parseInt(_0x145944(0x1a6))/0x1*(parseInt(_0x145944(0x1a2))/0x2)+-parseInt(_0x145944(0x1aa))/0x3*(parseInt(_0x145944(0x1ab))/0x4)+-parseInt(_0x145944(0x1a5))/0x5+parseInt(_0x145944(0x1a0))/0x6*(parseInt(_0x145944(0x1a8))/0x7)+parseInt(_0x145944(0x1a7))/0x8+parseInt(_0x145944(0x1a9))/0x9*(parseInt(_0x145944(0x1a1))/0xa)+-parseInt(_0x145944(0x1a3))/0xb*(-parseInt(_0x145944(0x1a4))/0xc);if(_0x263a85===_0x5acf1f)break;else _0x281c4a['push'](_0x281c4a['shift']());}catch(_0x518457){_0x281c4a['push'](_0x281c4a['shift']());}}}(a205_0x2bb9,0x2e656));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a205_0x4f2aed}from'@lovrabet/cli-framework';function a205_0x2bb9(){var _0x4c84b7=['1012310HCsJDt','67793RSPSas','1319664RmJpgA','1888621HzmbAL','9LBDyDx','3yCKETT','1353252qDleXZ','6WgeooP','3334250jcJLfk','2NbdZkQ','9295MRSdes','432CRNGey'];a205_0x2bb9=function(){return _0x4c84b7;};return a205_0x2bb9();}export function buildAllFlags(_0x5e9a27){return a205_0x4f2aed(_0x5e9a27,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a206_0x361d(){const _0x482c71=['11NRHMEY','52398810YnScRO','12zjdiJx','6641306cQOcpV','64NtBMyO','3735372jKapHf','564561tVWyTP','validateFlags','596112tgtZpk','865480AemMzt','parseFlags','41BHXlqd','75238EzqtLZ'];a206_0x361d=function(){return _0x482c71;};return a206_0x361d();}function a206_0x5245(_0x46e5f1,_0x3a8c04){_0x46e5f1=_0x46e5f1-0x144;const _0x361de8=a206_0x361d();let _0x524577=_0x361de8[_0x46e5f1];return _0x524577;}const a206_0x6d3f75=a206_0x5245;(function(_0x4f61eb,_0x349a82){const _0x145292=a206_0x5245,_0x348b07=_0x4f61eb();while(!![]){try{const _0x1cfb61=parseInt(_0x145292(0x146))/0x1*(-parseInt(_0x145292(0x147))/0x2)+parseInt(_0x145292(0x14a))/0x3*(-parseInt(_0x145292(0x150))/0x4)+-parseInt(_0x145292(0x144))/0x5+-parseInt(_0x145292(0x14d))/0x6+-parseInt(_0x145292(0x14b))/0x7+-parseInt(_0x145292(0x14c))/0x8*(parseInt(_0x145292(0x14e))/0x9)+parseInt(_0x145292(0x149))/0xa*(parseInt(_0x145292(0x148))/0xb);if(_0x1cfb61===_0x349a82)break;else _0x348b07['push'](_0x348b07['shift']());}catch(_0x58e093){_0x348b07['push'](_0x348b07['shift']());}}}(a206_0x361d,0xd0c66));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a206_0x6d3f75(0x145)];export const validateFlags=helpers[a206_0x6d3f75(0x14f)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x353273=a207_0x1396;function a207_0x38cc(){const _0x20f3ea=['generateCommandHelp','6202122UFzJLY','84FmaxVU','get','12992752YAtBHJ','3218742iyIWwg','generateFullHelp','10666740XOpaQr','\x20[args]\x20[flags]','2878268XMuMsX','1249615XRshga','305205CtClBM'];a207_0x38cc=function(){return _0x20f3ea;};return a207_0x38cc();}(function(_0x349c3f,_0x5b54b6){const _0x1060e3=a207_0x1396,_0x14756d=_0x349c3f();while(!![]){try{const _0x25274b=parseInt(_0x1060e3(0xfc))/0x1+parseInt(_0x1060e3(0xfb))/0x2+-parseInt(_0x1060e3(0xf7))/0x3+-parseInt(_0x1060e3(0x100))/0x4*(-parseInt(_0x1060e3(0xfd))/0x5)+parseInt(_0x1060e3(0xff))/0x6+-parseInt(_0x1060e3(0xf9))/0x7+-parseInt(_0x1060e3(0x102))/0x8;if(_0x25274b===_0x5b54b6)break;else _0x14756d['push'](_0x14756d['shift']());}catch(_0x20b380){_0x14756d['push'](_0x14756d['shift']());}}}(a207_0x38cc,0xbf46d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a207_0x1396(_0xf55f35,_0x2d04f2){_0xf55f35=_0xf55f35-0xf7;const _0x38cc16=a207_0x38cc();let _0x139627=_0x38cc16[_0xf55f35];return _0x139627;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x13f194=>serviceGroups[a207_0x353273(0x101)](_0x13f194),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a207_0x353273(0xfa)});export function generateCommandHelp(_0x55de57){const _0x5dada9=a207_0x353273;return generators[_0x5dada9(0xfe)](_0x55de57);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a207_0x353273(0xf8)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34f232,_0x4c81b5){var _0x23c595=a208_0x4a11,_0x11cea8=_0x34f232();while(!![]){try{var _0x99bbc8=parseInt(_0x23c595(0xa8))/0x1+-parseInt(_0x23c595(0xa9))/0x2+-parseInt(_0x23c595(0xab))/0x3*(parseInt(_0x23c595(0xa5))/0x4)+parseInt(_0x23c595(0xaa))/0x5*(-parseInt(_0x23c595(0xa7))/0x6)+-parseInt(_0x23c595(0xad))/0x7+-parseInt(_0x23c595(0xa6))/0x8+parseInt(_0x23c595(0xac))/0x9;if(_0x99bbc8===_0x4c81b5)break;else _0x11cea8['push'](_0x11cea8['shift']());}catch(_0x1d8f3c){_0x11cea8['push'](_0x11cea8['shift']());}}}(a208_0x5220,0x3f2b7));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a208_0x4a11(_0x3084c7,_0x1c18fc){_0x3084c7=_0x3084c7-0xa5;var _0x52202d=a208_0x5220();var _0x4a1116=_0x52202d[_0x3084c7];return _0x4a1116;}export{formatOutput}from'../framework/output.js';function a208_0x5220(){var _0x4de284=['39iLSsfG','14110335jBwodk','1802087SHmdVb','154104vgGQoU','75528cJgSLj','6MjNlEC','57476adEDdF','206068auXNLa','2478970HhNPel'];a208_0x5220=function(){return _0x4de284;};return a208_0x5220();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x177dd8,_0x17e6f1){const _0x5a0ea6=a209_0x55b3,_0x3a57ab=_0x177dd8();while(!![]){try{const _0x65ef6d=parseInt(_0x5a0ea6(0x1fd))/0x1+-parseInt(_0x5a0ea6(0x1f7))/0x2*(parseInt(_0x5a0ea6(0x1ee))/0x3)+parseInt(_0x5a0ea6(0x1f3))/0x4*(parseInt(_0x5a0ea6(0x1f9))/0x5)+parseInt(_0x5a0ea6(0x1f6))/0x6*(-parseInt(_0x5a0ea6(0x1ec))/0x7)+-parseInt(_0x5a0ea6(0x1fa))/0x8*(parseInt(_0x5a0ea6(0x1ed))/0x9)+-parseInt(_0x5a0ea6(0x1f5))/0xa+parseInt(_0x5a0ea6(0x1f0))/0xb*(parseInt(_0x5a0ea6(0x1f2))/0xc);if(_0x65ef6d===_0x17e6f1)break;else _0x3a57ab['push'](_0x3a57ab['shift']());}catch(_0x21eb12){_0x3a57ab['push'](_0x3a57ab['shift']());}}}(a209_0x2bc5,0xe3725));function a209_0x55b3(_0x47e753,_0x2fd316){_0x47e753=_0x47e753-0x1ec;const _0x2bc541=a209_0x2bc5();let _0x55b3a7=_0x2bc541[_0x47e753];return _0x55b3a7;}function a209_0x2bc5(){const _0x53ecce=['pretty','997492UQchwJ','14eUhsry','4771233yyKyQG','558XgJrVT','message','2522509PktYZX','error','180PgrGaT','4vcCRMR','url','17619360RFhfjU','4701276JfKJzE','632uyAniP','format','2061425BQedPD','8fKjwdD','update'];a209_0x2bc5=function(){return _0x53ecce;};return a209_0x2bc5();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2e27d1,_0x2055e5){const _0x319f78=a209_0x55b3,_0xdb58bc=_0x2e27d1['_notice'],{_notice:_0x2c1810,..._0x515453}=_0x2e27d1;void _0x2c1810,baseFormatOutput(_0x515453,_0x2055e5),_0x2055e5[_0x319f78(0x1f8)]===_0x319f78(0x1fc)&&printPrettyNotice(_0xdb58bc);}function printPrettyNotice(_0x5c7c3e){const _0x556b32=a209_0x55b3;if(!_0x5c7c3e?.[_0x556b32(0x1fb)])return;console[_0x556b32(0x1f1)](_0x5c7c3e['update'][_0x556b32(0x1ef)]+'\x20('+_0x5c7c3e[_0x556b32(0x1fb)][_0x556b32(0x1f4)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x220d3e,_0x1b2903){var _0xdff7ae=a210_0x3cf2,_0x5440ac=_0x220d3e();while(!![]){try{var _0x2bf33c=parseInt(_0xdff7ae(0xad))/0x1+-parseInt(_0xdff7ae(0xaf))/0x2+parseInt(_0xdff7ae(0xa9))/0x3+-parseInt(_0xdff7ae(0xb0))/0x4+-parseInt(_0xdff7ae(0xaa))/0x5+-parseInt(_0xdff7ae(0xac))/0x6+-parseInt(_0xdff7ae(0xab))/0x7*(-parseInt(_0xdff7ae(0xae))/0x8);if(_0x2bf33c===_0x1b2903)break;else _0x5440ac['push'](_0x5440ac['shift']());}catch(_0x199209){_0x5440ac['push'](_0x5440ac['shift']());}}}(a210_0x581f,0x945a6));function a210_0x3cf2(_0x2e47ff,_0x30ab93){_0x2e47ff=_0x2e47ff-0xa9;var _0x581fd0=a210_0x581f();var _0x3cf2c6=_0x581fd0[_0x2e47ff];return _0x3cf2c6;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a210_0x581f(){var _0x46691f=['392fnLCUz','1030778zQtlUh','3895336tOvxLG','812469fkGsFE','4583590tBdSob','510258flSnvO','6217350FiKAxs','207191gdRAPy'];a210_0x581f=function(){return _0x46691f;};return a210_0x581f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x55e7b3,_0x5d5937){const _0x43401b=a211_0x38f9,_0x3d378c=_0x55e7b3();while(!![]){try{const _0x310598=parseInt(_0x43401b(0xde))/0x1*(parseInt(_0x43401b(0xdf))/0x2)+parseInt(_0x43401b(0xdc))/0x3*(parseInt(_0x43401b(0xdb))/0x4)+parseInt(_0x43401b(0xe4))/0x5*(parseInt(_0x43401b(0xe7))/0x6)+-parseInt(_0x43401b(0xd8))/0x7+parseInt(_0x43401b(0xd9))/0x8+parseInt(_0x43401b(0xe8))/0x9*(-parseInt(_0x43401b(0xd4))/0xa)+-parseInt(_0x43401b(0xd6))/0xb;if(_0x310598===_0x5d5937)break;else _0x3d378c['push'](_0x3d378c['shift']());}catch(_0x1df2c8){_0x3d378c['push'](_0x3d378c['shift']());}}}(a211_0x43b9,0x5ac26));import{CliErrors}from'../errors.js';function a211_0x43b9(){const _0x6f76ac=['4zwzvlI','1352046zpvaDB','string','1odaqIL','321682ujPjWw','\x20api\x20pull`\x20first.','map','flags','No\x20api.ts\x20found\x20in\x20','191020KczneR','type','Unknown\x20alias\x20\x22','60fWDiZL','6534CVcBCb','`\x20requires\x20either\x20--code\x20or\x20--alias.','.\x20Run\x20`','name','code','alias','9960BEFcIB','some','316844jSfNIP','validation','252434rZrOJo','1329192sVFien','Available\x20aliases:\x20'];a211_0x43b9=function(){return _0x6f76ac;};return a211_0x43b9();}function a211_0x38f9(_0x9c5d4d,_0x2b1b8d){_0x9c5d4d=_0x9c5d4d-0xd0;const _0x43b91d=a211_0x43b9();let _0x38f940=_0x43b91d[_0x9c5d4d];return _0x38f940;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xe718d1,_0x408d35,_0xd14cbd,_0x47a07f){const _0x46bb95=a211_0x38f9,_0xac84bd=_0xe718d1[_0x46bb95(0xe2)][_0x46bb95(0xd5)](_0x2c4ae2=>_0x2c4ae2['name']===_0x46bb95(0xd2)&&_0x2c4ae2[_0x46bb95(0xe5)]===_0x46bb95(0xdd)),_0x1acc6a=_0xe718d1['flags'][_0x46bb95(0xd5)](_0x46ea0c=>_0x46ea0c[_0x46bb95(0xd1)]==='alias'&&_0x46ea0c['type']===_0x46bb95(0xdd));if(!_0xac84bd||!_0x1acc6a)return;const _0x18c0c3=_0x408d35[_0x46bb95(0xd2)]?String(_0x408d35[_0x46bb95(0xd2)]):'',_0x6c5fdc=_0x408d35[_0x46bb95(0xd3)]?String(_0x408d35[_0x46bb95(0xd3)]):'';if(!_0x18c0c3&&!_0x6c5fdc)throw CliErrors[_0x46bb95(0xd7)]('`'+_0x47a07f+_0x46bb95(0xe9));if(_0x6c5fdc&&!_0x18c0c3){const _0xbc039=resolveAlias(_0xd14cbd,_0x6c5fdc);if(!_0xbc039){const _0x186d74=listAliases(_0xd14cbd)[_0x46bb95(0xe1)](_0x581e6a=>_0x581e6a[_0x46bb95(0xd3)]),_0x4f7875=_0x186d74['length']?_0x46bb95(0xda)+_0x186d74['join'](',\x20'):_0x46bb95(0xe3)+_0xd14cbd+_0x46bb95(0xd0)+CLI_BIN_NAME+_0x46bb95(0xe0);throw CliErrors[_0x46bb95(0xd7)](_0x46bb95(0xe6)+_0x6c5fdc+'\x22.\x20'+_0x4f7875);}_0x408d35[_0x46bb95(0xd2)]=_0xbc039;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a212_0x522ed3=a212_0x3a15;(function(_0x1126cd,_0x26cabb){const _0x15f39e=a212_0x3a15,_0x400607=_0x1126cd();while(!![]){try{const _0x2f51e8=-parseInt(_0x15f39e(0x9b))/0x1+-parseInt(_0x15f39e(0x71))/0x2*(parseInt(_0x15f39e(0x74))/0x3)+parseInt(_0x15f39e(0x97))/0x4+parseInt(_0x15f39e(0x90))/0x5*(-parseInt(_0x15f39e(0x7e))/0x6)+-parseInt(_0x15f39e(0x76))/0x7*(parseInt(_0x15f39e(0x9e))/0x8)+parseInt(_0x15f39e(0x98))/0x9*(parseInt(_0x15f39e(0x8f))/0xa)+-parseInt(_0x15f39e(0x8b))/0xb*(-parseInt(_0x15f39e(0x77))/0xc);if(_0x2f51e8===_0x26cabb)break;else _0x400607['push'](_0x400607['shift']());}catch(_0x440c49){_0x400607['push'](_0x400607['shift']());}}}(a212_0x38c1,0xc5704));function a212_0x3a15(_0x37110f,_0x260724){_0x37110f=_0x37110f-0x6d;const _0x38c18e=a212_0x38c1();let _0x3a15f2=_0x38c18e[_0x37110f];return _0x3a15f2;}import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a212_0x47b052}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a212_0x38c1(){const _0x5a3797=['\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','5699800SOwYuG','180LKUXUW','command','appCode','1311653DnvGnw','rawFlags','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','3734200jtjfUA','update','resolve','Current\x20resolved\x20appcode\x20is\x20\x22','service','isNonInteractive','defaultPageSize','resolveCookie','pageSize','map','cookie','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','LOVRABET_APPCODE','Set\x20appcode\x20via\x20`','mergedCli','28FEYzxj','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','object','154551uNjIpE','format','7ZjHDIY','684XCUNhk','apiDir','has','required','resolveApiDomain','authRequired','trim','6zoBNoH','hasFormat','_notice','value','⚠\x20\x20High-risk\x20operation:\x20','none','verbose','schema','cancelled','resolveAppCode','defaultVerbose','defaultApp','name','546667JblexZ','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','catch','302330caswNe','7769825WqxQle','appcode','validation','pretty','RABETBASE_APPCODE','currentApp'];a212_0x38c1=function(){return _0x5a3797;};return a212_0x38c1();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x367b8f){const _0x4b6c7d=a212_0x3a15;return typeof _0x367b8f==='string'&&_0x367b8f[_0x4b6c7d(0x7d)]()?_0x367b8f[_0x4b6c7d(0x7d)]():undefined;}function resolveEnvAppCode(){const _0x1f8830=a212_0x3a15,_0x2e7d29=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2e7d29)return{'name':_0x1f8830(0x94),'value':_0x2e7d29};const _0x382628=stringFlag(process.env.LOVRABET_APPCODE);if(_0x382628)return{'name':_0x1f8830(0x6e),'value':_0x382628};return undefined;}function hasExplicitAppCode(_0x427794,_0x4db0fd){const _0x3d980d=a212_0x3a15;return!!(stringFlag(_0x427794[_0x3d980d(0x91)])||stringFlag(_0x4db0fd[_0x3d980d(0x91)]));}function assertEnvAppCodeNotIgnored(_0xc133af,_0x1d3b87,_0x454f76){const _0x1b1c26=a212_0x3a15;if(!_0x1d3b87||_0x454f76||_0xc133af===_0x1d3b87[_0x1b1c26(0x81)])return;const _0x55b2e1=_0xc133af?_0x1b1c26(0xa1)+_0xc133af+'\x22.':_0x1b1c26(0x72);throw CliErrors['validation'](_0x1d3b87['name']+'='+_0x1d3b87[_0x1b1c26(0x81)]+_0x1b1c26(0x96)+_0x55b2e1+'\x20'+(_0x1b1c26(0x6d)+_0x1d3b87[_0x1b1c26(0x8a)]+'\x22.'));}export function createPipelineEnv(_0x90e683,_0x4dae2c,_0x4719e2=[]){const _0x20ab96=a212_0x3a15;return{'rawFlags':_0x4dae2c,'args':_0x4719e2,'resolveAppCode':()=>_0x90e683[_0x20ab96(0x9a)],'resolveCookie':()=>_0x90e683[_0x20ab96(0xa8)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a212_0x47b052(_0x4dae2c),'defaultFormat':_0x90e683[_0x20ab96(0x75)],'defaultPageSize':_0x90e683[_0x20ab96(0xa6)],'defaultVerbose':_0x90e683[_0x20ab96(0x84)],'apiDir':_0x90e683[_0x20ab96(0x78)],'riskLevel':_0x90e683['riskLevel'],'selectedAppName':_0x90e683['explicitAppName'],'mergedCli':{'defaultApp':_0x90e683[_0x20ab96(0x89)],'currentApp':_0x90e683[_0x20ab96(0x95)],'appCode':_0x90e683[_0x20ab96(0x9a)],'apps':_0x90e683['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4e7918=>PIPELINE_FLAG_NAMES[a212_0x522ed3(0x79)](_0x4e7918[a212_0x522ed3(0x8a)]))[a212_0x522ed3(0xa7)](({name:_0x265701,type:_0x24dff1,description:_0x55b404})=>({'name':_0x265701,'type':_0x24dff1,'description':_0x55b404})),'formatOutput':formatOutput,'getCommandLabel'(_0x105d49){const _0x2bf252=a212_0x522ed3;return CLI_BIN_NAME+'\x20'+_0x105d49['service']+'\x20'+_0x105d49[_0x2bf252(0x99)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4b9e25){const _0x1e797e=a212_0x522ed3;return CliErrors[_0x1e797e(0x92)](_0x4b9e25);}},async 'prepare'(_0x39777c,_0x42dff7,_0x5c0ef9,_0x1c7edc){const _0x22ba4f=a212_0x522ed3,_0x424e27=_0x42dff7['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x39777c,_0x5c0ef9,_0x424e27,_0x1c7edc);const _0x227ba7=resolveCommandAuthMode(_0x39777c);let _0x4a4137='';if(_0x227ba7!==_0x22ba4f(0x83)){_0x4a4137=_0x42dff7[_0x22ba4f(0xa5)]()||'';if(!_0x4a4137){if(_0x227ba7===_0x22ba4f(0x7a))throw CliErrors[_0x22ba4f(0x7c)]();}else{const {setActiveCookie:_0x305f52}=await import('../core/api-client.js');_0x305f52(_0x4a4137);}}const _0x257075=_0x42dff7[_0x22ba4f(0x87)]()??'';if(_0x39777c['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x257075,resolveEnvAppCode(),hasExplicitAppCode(_0x5c0ef9,_0x42dff7[_0x22ba4f(0x9c)]));if(!_0x257075)throw CliErrors[_0x22ba4f(0x8c)](_0x22ba4f(0x6f)+CLI_BIN_NAME+_0x22ba4f(0x9d));}return{'defaults':{'booleans':{'verbose':_0x42dff7[_0x22ba4f(0x88)]},'numbers':{'pagesize':_0x42dff7[_0x22ba4f(0xa4)]}},'extras':{'appCode':_0x257075,'cookie':_0x4a4137,'apiDomain':_0x42dff7[_0x22ba4f(0x7b)](),'apiDir':_0x424e27,'selectedAppName':_0x42dff7['selectedAppName'],'mergedCli':_0x42dff7[_0x22ba4f(0x70)]}};},async 'confirmHighRisk'({env:_0x5c595f,commandLabel:_0x586bf6}){const _0x22b5d6=a212_0x522ed3;if(_0x5c595f[_0x22b5d6(0xa3)])throw CliErrors[_0x22b5d6(0x92)]('High-risk\x20operation\x20`'+_0x586bf6+_0x22b5d6(0x8d));await requireConfirmationPrompt({'lines':[_0x22b5d6(0x82)+_0x586bf6,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x41f867=>CliErrors[_0x22b5d6(0x86)](_0x41f867)});},async 'finalize'(){const {clearActiveCookie:_0x5af5c7}=await import('../core/api-client.js');_0x5af5c7();}};export async function runCommand(_0x244f4d,_0x3c3eb6){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x244f4d)?withUpdateNotice(_0x244f4d):_0x244f4d,_0x3c3eb6,runnerAdapter);}function shouldAttachUpdateNotice(_0x3d2e20){const _0x2cd348=a212_0x522ed3;if(_0x3d2e20[_0x2cd348(0x7f)]===![])return![];return![_0x2cd348(0x9f),_0x2cd348(0x85),'doctor']['includes'](_0x3d2e20[_0x2cd348(0xa2)]);}function withUpdateNotice(_0x2145dd){return{..._0x2145dd,async 'execute'(_0x3a6dac){const _0x1a2eaf=a212_0x3a15,_0xa532c4=shouldResolveUpdateNotice(_0x3a6dac)?resolveLatestUpdateNotice()[_0x1a2eaf(0x8e)](()=>null):Promise[_0x1a2eaf(0xa0)](null),_0x568f92=await _0x2145dd['execute'](_0x3a6dac);return attachUpdateNotice(_0x568f92,await _0xa532c4);}};}function shouldResolveUpdateNotice(_0x408f00){const _0x487a2e=a212_0x522ed3;return _0x408f00[_0x487a2e(0x75)]===_0x487a2e(0x93)&&!_0x408f00['nonInteractive'];}function attachUpdateNotice(_0x34f26,_0x302ab1){const _0x4ae9d4=a212_0x522ed3;if(!_0x302ab1||!_0x34f26||typeof _0x34f26!==_0x4ae9d4(0x73))return _0x34f26;const _0x8c77f8=_0x34f26,_0x4f73f9=typeof _0x8c77f8[_0x4ae9d4(0x80)]===_0x4ae9d4(0x73)&&_0x8c77f8[_0x4ae9d4(0x80)]!==null?_0x8c77f8[_0x4ae9d4(0x80)]:{};return{..._0x8c77f8,'_notice':{..._0x4f73f9,'update':_0x302ab1}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25159a,_0x4bb0ff){const _0x325ff3=a213_0x3081,_0x191f5a=_0x25159a();while(!![]){try{const _0x45b6c=-parseInt(_0x325ff3(0x16c))/0x1+parseInt(_0x325ff3(0x169))/0x2*(-parseInt(_0x325ff3(0x166))/0x3)+-parseInt(_0x325ff3(0x165))/0x4+parseInt(_0x325ff3(0x16b))/0x5+-parseInt(_0x325ff3(0x16a))/0x6+-parseInt(_0x325ff3(0x167))/0x7*(parseInt(_0x325ff3(0x16d))/0x8)+parseInt(_0x325ff3(0x16e))/0x9;if(_0x45b6c===_0x4bb0ff)break;else _0x191f5a['push'](_0x191f5a['shift']());}catch(_0x5d9ba4){_0x191f5a['push'](_0x191f5a['shift']());}}}(a213_0x1005,0x87244));function a213_0x1005(){const _0xfdee86=['22564269zMRqqu','3050896dLbrlY','481872khKTzA','147WvFgPl','../commands/registry.js','2wrISBt','701226kcfzIc','101320TVSoSL','221977oYtUkf','271112DzZBNp'];a213_0x1005=function(){return _0xfdee86;};return a213_0x1005();}import{buildSchemaPayload as a213_0x36b90d}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a213_0x3081(_0x349698,_0x2dba90){_0x349698=_0x349698-0x165;const _0x1005e0=a213_0x1005();let _0x30814c=_0x1005e0[_0x349698];return _0x30814c;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x520e64=a213_0x3081,{serviceRegistry:_0xe94f2f,findDefinition:_0x351459}=await import(_0x520e64(0x168));return a213_0x36b90d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xe94f2f,'buildAllFlags':buildAllFlags,'findDefinition':_0x351459});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x2bd3(_0x54fc31,_0x386bb9){_0x54fc31=_0x54fc31-0x1cb;var _0x4ce3f9=a214_0x4ce3();var _0x2bd30d=_0x4ce3f9[_0x54fc31];return _0x2bd30d;}(function(_0x5442d9,_0x47202a){var _0x48c4d2=a214_0x2bd3,_0x11da1f=_0x5442d9();while(!![]){try{var _0x5aa712=parseInt(_0x48c4d2(0x1d2))/0x1*(parseInt(_0x48c4d2(0x1d1))/0x2)+-parseInt(_0x48c4d2(0x1d3))/0x3+-parseInt(_0x48c4d2(0x1cf))/0x4+-parseInt(_0x48c4d2(0x1cc))/0x5+parseInt(_0x48c4d2(0x1cd))/0x6*(-parseInt(_0x48c4d2(0x1ce))/0x7)+parseInt(_0x48c4d2(0x1cb))/0x8+parseInt(_0x48c4d2(0x1d0))/0x9;if(_0x5aa712===_0x47202a)break;else _0x11da1f['push'](_0x11da1f['shift']());}catch(_0x22a66d){_0x11da1f['push'](_0x11da1f['shift']());}}}(a214_0x4ce3,0xd9384));function a214_0x4ce3(){var _0x3d4fc6=['3360288iJhLzn','42607773COLjPe','262LsJwMe','1382ThsZCQ','5101389pxtMzO','280992YSVULg','6332045yBMSJJ','42nxflZZ','253687HCJnso'];a214_0x4ce3=function(){return _0x3d4fc6;};return a214_0x4ce3();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a215_0x4959(){const _0x31e137=['22pECGOh','149307WWFMBw','2026-07-23T12:55:37.265Z','8973meUzWh','27614fyEfwk','377170fcogRm','199744QUTxBT','93527MmGFIA','487368HAFdeR','10TsXwgj','6c25c11','30RtZuca','9aFgPUJ','440UaORpd'];a215_0x4959=function(){return _0x31e137;};return a215_0x4959();}const a215_0x4474d2=a215_0xa9be;(function(_0x43eb64,_0x1b9ce5){const _0x5d44a0=a215_0xa9be,_0x48ded4=_0x43eb64();while(!![]){try{const _0xecff24=-parseInt(_0x5d44a0(0xaf))/0x1*(-parseInt(_0x5d44a0(0xb5))/0x2)+parseInt(_0x5d44a0(0xb2))/0x3+parseInt(_0x5d44a0(0xb7))/0x4*(parseInt(_0x5d44a0(0xac))/0x5)+parseInt(_0x5d44a0(0xae))/0x6*(-parseInt(_0x5d44a0(0xb8))/0x7)+-parseInt(_0x5d44a0(0xb0))/0x8*(parseInt(_0x5d44a0(0xb4))/0x9)+parseInt(_0x5d44a0(0xb6))/0xa+parseInt(_0x5d44a0(0xb1))/0xb*(-parseInt(_0x5d44a0(0xb9))/0xc);if(_0xecff24===_0x1b9ce5)break;else _0x48ded4['push'](_0x48ded4['shift']());}catch(_0x45a420){_0x48ded4['push'](_0x48ded4['shift']());}}}(a215_0x4959,0x1a8d1));export const VERSION='2.3.7';export const GIT_TAG='v2.3.7-beta.4';function a215_0xa9be(_0x5b4dca,_0x20020b){_0x5b4dca=_0x5b4dca-0xac;const _0x495981=a215_0x4959();let _0xa9be78=_0x495981[_0x5b4dca];return _0xa9be78;}export const GIT_COMMIT=a215_0x4474d2(0xad);export const BUILD_TIME=a215_0x4474d2(0xb3);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a216_0x4b3a(_0x145e86,_0x1b9792){_0x145e86=_0x145e86-0x14e;var _0x39302d=a216_0x3930();var _0x4b3a85=_0x39302d[_0x145e86];return _0x4b3a85;}(function(_0x5224e6,_0x1d7a67){var _0x5cfff9=a216_0x4b3a,_0x257ee0=_0x5224e6();while(!![]){try{var _0x3cee00=-parseInt(_0x5cfff9(0x155))/0x1*(parseInt(_0x5cfff9(0x151))/0x2)+-parseInt(_0x5cfff9(0x15a))/0x3+parseInt(_0x5cfff9(0x152))/0x4+-parseInt(_0x5cfff9(0x159))/0x5+parseInt(_0x5cfff9(0x150))/0x6*(-parseInt(_0x5cfff9(0x154))/0x7)+parseInt(_0x5cfff9(0x15b))/0x8*(parseInt(_0x5cfff9(0x14e))/0x9)+parseInt(_0x5cfff9(0x156))/0xa;if(_0x3cee00===_0x1d7a67)break;else _0x257ee0['push'](_0x257ee0['shift']());}catch(_0x54daac){_0x257ee0['push'](_0x257ee0['shift']());}}}(a216_0x3930,0x4b8c1));import a216_0x3c8f24 from'chalk';function a216_0x3930(){var _0x4e16e9=['30902TNyNba','1539376zEkEch','bold','21JlxpDa','33IBKVqB','2525300lgTuXS','green','log','685390vNGFpl','188631aIgDzW','8bygisL','\x20\x20Use\x20','\x20--help','4300389xSFSCP','\x20to\x20view\x20available\x20commands.','191832ySKuUD'];a216_0x3930=function(){return _0x4e16e9;};return a216_0x3930();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x771eed=a216_0x4b3a;console[_0x771eed(0x158)](),console[_0x771eed(0x158)](a216_0x3c8f24[_0x771eed(0x157)][_0x771eed(0x153)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x771eed(0x158)](),console['log'](_0x771eed(0x15c)+a216_0x3c8f24[_0x771eed(0x157)][_0x771eed(0x153)](CLI_BIN_NAME+_0x771eed(0x15d))+_0x771eed(0x14f)),console[_0x771eed(0x158)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1f37ca,_0x1b2377){const _0x4a8c62=a217_0x3b84,_0x558aa4=_0x1f37ca();while(!![]){try{const _0x4ec0ee=-parseInt(_0x4a8c62(0x159))/0x1*(parseInt(_0x4a8c62(0x15e))/0x2)+parseInt(_0x4a8c62(0x151))/0x3*(-parseInt(_0x4a8c62(0x14c))/0x4)+parseInt(_0x4a8c62(0x154))/0x5+-parseInt(_0x4a8c62(0x156))/0x6*(-parseInt(_0x4a8c62(0x149))/0x7)+parseInt(_0x4a8c62(0x143))/0x8*(parseInt(_0x4a8c62(0x15d))/0x9)+parseInt(_0x4a8c62(0x165))/0xa+parseInt(_0x4a8c62(0x15b))/0xb*(-parseInt(_0x4a8c62(0x166))/0xc);if(_0x4ec0ee===_0x1b2377)break;else _0x558aa4['push'](_0x558aa4['shift']());}catch(_0x1ce21c){_0x558aa4['push'](_0x558aa4['shift']());}}}(a217_0x439b,0xe0805));import{logger}from'../utils/logger.js';function a217_0x439b(){const _0x246a6b=['from','\x0aAvailable\x20commands:','Error:\x20Unsupported\x20command:\x20','30wAPJgk','has','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','3425880gEJVfD','toLowerCase','9485886MBrOlR','error','(empty)','227937OCqWYy','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','584441BkgCan','skill','783nvwehK','4unccmV','setLogPath','includes','startsWith','Equivalent\x20command:\x20','push','-$1','14685970DQmGFW','228YLvQLt','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','28464KQrUVu','slice','enable-bff-save','add','length','argv','7rPoLmC','不支持的命令:\x20','entries','663752wrbOBN','log'];a217_0x439b=function(){return _0x246a6b;};return a217_0x439b();}function a217_0x3b84(_0x13f0b6,_0x34ccf8){_0x13f0b6=_0x13f0b6-0x143;const _0x439bb1=a217_0x439b();let _0x3b8423=_0x439bb1[_0x13f0b6];return _0x3b8423;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x56bcd4){const _0xbe72a9=a217_0x3b84,_0x53e66b=[];for(const [_0xcc09fd,_0x1283d2]of Object[_0xbe72a9(0x14b)](_0x56bcd4)){if(_0x1283d2===!![]){const _0xd565fe=_0xcc09fd['replace'](/([A-Z])/g,_0xbe72a9(0x164))[_0xbe72a9(0x155)]();_0x53e66b['push'](_0xd565fe);}}return _0x53e66b;}export function parseDynamicFlags(){const _0x55a07c=a217_0x3b84,_0x4e3b1a=[];for(let _0x2cd62b=0x3;_0x2cd62b<process['argv'][_0x55a07c(0x147)];_0x2cd62b++){const _0x5a9b48=process[_0x55a07c(0x148)][_0x2cd62b];if(_0x5a9b48&&_0x5a9b48[_0x55a07c(0x161)]('--')){const _0x555815=_0x5a9b48[_0x55a07c(0x144)](0x2);_0x555815&&!_0x555815[_0x55a07c(0x160)]('=')&&_0x4e3b1a[_0x55a07c(0x163)](_0x555815);}}return _0x4e3b1a;}export function getAllProvidedFlags(_0x3e771f){const _0x3a6ef0=camelCaseFlagsToKebab(_0x3e771f),_0x1e950d=parseDynamicFlags(),_0x3506dd=new Set([..._0x3a6ef0,..._0x1e950d]);return Array['from'](_0x3506dd);}export function normalizeLegacyBffSaveFlags(_0x1c4a90){const _0x5af6c1=a217_0x3b84,_0x513389=new Set(_0x1c4a90);return _0x513389[_0x5af6c1(0x152)]('dangerously-bff-save')&&_0x513389[_0x5af6c1(0x146)](_0x5af6c1(0x145)),Array[_0x5af6c1(0x14e)](_0x513389);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4db6cd,_0x3e08b2,_0x22758e){const _0x583d5c=a217_0x3b84;logger[_0x583d5c(0x15f)](process['cwd']());if(_0x22758e?.['help']||_0x4db6cd==='--help'){showHelp();return;}console[_0x583d5c(0x157)](_0x583d5c(0x150)+(_0x4db6cd||_0x583d5c(0x158))),console[_0x583d5c(0x14d)](_0x583d5c(0x14f)),console[_0x583d5c(0x14d)]('\x20\x20'+CLI_BIN_NAME+_0x583d5c(0x167)),console[_0x583d5c(0x14d)](''),console[_0x583d5c(0x14d)](_0x583d5c(0x162)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x583d5c(0x157)](_0x583d5c(0x15c),_0x583d5c(0x14a)+_0x4db6cd),process['exit'](0x1);}function showHelp(){const _0x40e977=a217_0x3b84;console[_0x40e977(0x14d)](_0x40e977(0x15a)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x40e977(0x153));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x1c3548=a218_0x5dd1;(function(_0x249eef,_0xf58fdd){const _0x365b56=a218_0x5dd1,_0x38954e=_0x249eef();while(!![]){try{const _0x2d79a4=-parseInt(_0x365b56(0x97))/0x1+parseInt(_0x365b56(0xa3))/0x2*(parseInt(_0x365b56(0x96))/0x3)+parseInt(_0x365b56(0xa8))/0x4+parseInt(_0x365b56(0xa7))/0x5+parseInt(_0x365b56(0x91))/0x6+-parseInt(_0x365b56(0x98))/0x7+-parseInt(_0x365b56(0x9c))/0x8*(-parseInt(_0x365b56(0x9d))/0x9);if(_0x2d79a4===_0xf58fdd)break;else _0x38954e['push'](_0x38954e['shift']());}catch(_0x345ae7){_0x38954e['push'](_0x38954e['shift']());}}}(a218_0x284a,0xbcbe5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a218_0x1c3548(0x94);export const NPX_SKILLS_SUBCOMMAND_ADD=a218_0x1c3548(0x9f);export const NPX_SKILLS_FLAG_SKILL=a218_0x1c3548(0xab);export const RABETBASE_SKILL_SOURCE=a218_0x1c3548(0xa2);export const LEGACY_RABETBASE_SKILL_SOURCE=a218_0x1c3548(0x95);export const DEFAULT_RABETBASE_SKILL_NAME=a218_0x1c3548(0xa9);export function buildNpxSkillsAddArgv(_0x73a36f){const _0x33a98c=a218_0x1c3548,_0x2b9224=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x73a36f&&_0x2b9224[_0x33a98c(0xaf)](NPX_SKILLS_FLAG_SKILL,_0x73a36f),_0x2b9224;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a218_0x1c3548(0xa6),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a218_0x1c3548(0xa6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a218_0x1c3548(0x99)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x46e97e,_0x25d144){const _0x5af0be=a218_0x1c3548;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4abb32=_0x25d144?.[_0x5af0be(0xa5)]??'inherit',_0x50f0b6=resolveNpmBin(_0x5af0be(0xa6)),_0x3045eb=buildNpxSkillsAddArgv(_0x25d144?.[_0x5af0be(0xa1)]),_0x34b7ba=[_0x5af0be(0xa6),..._0x3045eb][_0x5af0be(0x99)]('\x20');console[_0x5af0be(0xa4)]('*\x20'+_0x34b7ba);const _0xd9860a=spawnSync(_0x50f0b6,_0x3045eb,{'cwd':_0x46e97e,'stdio':_0x4abb32,'env':process.env,'shell':![]}),_0x14c309=_0xd9860a[_0x5af0be(0x92)];if(_0x14c309===0x0)return{'ok':!![],'status':0x0};let _0x49728c='exit\x20'+(_0x14c309??_0x5af0be(0xae));if(_0x4abb32===_0x5af0be(0x9e)){const _0x1c13b9=_0xd9860a['stderr']?_0xd9860a[_0x5af0be(0xac)][_0x5af0be(0x9b)]()[_0x5af0be(0xaa)]():'',_0x1d3bcc=_0xd9860a[_0x5af0be(0x90)]?_0xd9860a[_0x5af0be(0x90)][_0x5af0be(0x9b)]()['trim']():'';if(_0x1c13b9)_0x49728c=_0x1c13b9;else{if(_0x1d3bcc)_0x49728c=_0x1d3bcc;}}return{'ok':![],'status':_0x14c309??null,'error':_0x49728c};}export function runNpxSkillsRemove(_0x3d5e71,_0x5d5449,_0x268267=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3e0297=a218_0x1c3548;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x270e40=_0x5d5449?.['stdio']??'inherit',_0x405aaf=resolveNpmBin(_0x3e0297(0xa6)),_0x3f0acb=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3e0297(0x9a),_0x268267,NPX_SKILLS_FLAG_SKILL,_0x5d5449?.[_0x3e0297(0xa1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5d5449?.[_0x3e0297(0xa0)]?['-y']:[]],_0x1d183d=[_0x405aaf,..._0x3f0acb]['join']('\x20');console[_0x3e0297(0xa4)]('*\x20'+_0x1d183d);const _0x19fbaf=spawnSync(_0x405aaf,_0x3f0acb,{'cwd':_0x3d5e71,'stdio':_0x270e40,'env':process.env,'shell':![]}),_0x5c926e=_0x19fbaf[_0x3e0297(0x92)];if(_0x5c926e===0x0)return{'ok':!![],'status':0x0};let _0x361051=_0x3e0297(0xad)+(_0x5c926e??_0x3e0297(0xae));if(_0x270e40===_0x3e0297(0x9e)){const _0x107879=_0x19fbaf[_0x3e0297(0xac)]?_0x19fbaf[_0x3e0297(0xac)][_0x3e0297(0x9b)]()['trim']():'',_0x4282b9=_0x19fbaf[_0x3e0297(0x90)]?_0x19fbaf['stdout'][_0x3e0297(0x9b)]()['trim']():'';if(_0x107879)_0x361051=_0x107879;else{if(_0x4282b9)_0x361051=_0x4282b9;}}return{'ok':![],'status':_0x5c926e??null,'error':_0x361051};}function a218_0x5dd1(_0x174c88,_0x4931d9){_0x174c88=_0x174c88-0x90;const _0x284ac3=a218_0x284a();let _0x5dd1fe=_0x284ac3[_0x174c88];return _0x5dd1fe;}export function runNpxSkillsAddGlobal(_0x4c7ae2,_0x3bbccf,_0x1f3bdf){const _0x47af5c=a218_0x1c3548;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x43e0f5=_0x1f3bdf?.[_0x47af5c(0xa5)]??_0x47af5c(0x93),_0x2432bb=resolveNpmBin('npx'),_0x230aec=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3bbccf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2f45d4=[_0x47af5c(0xa6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3bbccf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x47af5c(0x99)]('\x20');console[_0x47af5c(0xa4)]('*\x20'+_0x2f45d4);const _0x59d857=spawnSync(_0x2432bb,_0x230aec,{'cwd':_0x4c7ae2,'stdio':_0x43e0f5,'env':process.env,'shell':![]}),_0x145430=_0x59d857[_0x47af5c(0x92)];if(_0x145430===0x0)return{'ok':!![],'status':0x0};let _0x59d9e7='exit\x20'+(_0x145430??_0x47af5c(0xae));if(_0x43e0f5===_0x47af5c(0x9e)){const _0x41046d=_0x59d857['stderr']?_0x59d857[_0x47af5c(0xac)][_0x47af5c(0x9b)]()[_0x47af5c(0xaa)]():'',_0x275dd7=_0x59d857[_0x47af5c(0x90)]?_0x59d857[_0x47af5c(0x90)][_0x47af5c(0x9b)]()[_0x47af5c(0xaa)]():'';if(_0x41046d)_0x59d9e7=_0x41046d;else{if(_0x275dd7)_0x59d9e7=_0x275dd7;}}return{'ok':![],'status':_0x145430??null,'error':_0x59d9e7};}function a218_0x284a(){const _0x3b47db=['exit\x20','unknown','push','stdout','5751264LQrswP','status','inherit','skills','lovrabet/lovrabet-skill','33cExmto','589141zgwbkh','10001054ROEGEF','join','remove','toString','263120icUOzd','117uHfLDQ','pipe','add','yes','skill','lovrabet/rabetbase','144060CeGNTB','log','stdio','npx','2878185UXkAKz','147500rBJPZw','Lovrabet','trim','--skill','stderr'];a218_0x284a=function(){return _0x3b47db;};return a218_0x284a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x15b0c7,_0x1a106e){const _0x28ffa4=a219_0x1018,_0x474e14=_0x15b0c7();while(!![]){try{const _0x50334e=parseInt(_0x28ffa4(0xd3))/0x1+parseInt(_0x28ffa4(0xde))/0x2*(-parseInt(_0x28ffa4(0xd4))/0x3)+-parseInt(_0x28ffa4(0xe2))/0x4+parseInt(_0x28ffa4(0xd7))/0x5+parseInt(_0x28ffa4(0xdf))/0x6*(-parseInt(_0x28ffa4(0xd9))/0x7)+parseInt(_0x28ffa4(0xd6))/0x8+parseInt(_0x28ffa4(0xdb))/0x9*(parseInt(_0x28ffa4(0xd8))/0xa);if(_0x50334e===_0x1a106e)break;else _0x474e14['push'](_0x474e14['shift']());}catch(_0x3088c1){_0x474e14['push'](_0x474e14['shift']());}}}(a219_0x1740,0xab5b8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x263b3b){const _0x5a5a2b=a219_0x1018;return SENSITIVE_PATTERNS['some'](_0x32717f=>_0x32717f[_0x5a5a2b(0xe1)](_0x263b3b));}function a219_0x1018(_0x4d14ad,_0x486bd7){_0x4d14ad=_0x4d14ad-0xd0;const _0x174092=a219_0x1740();let _0x1018d5=_0x174092[_0x4d14ad];return _0x1018d5;}function a219_0x1740(){const _0x4f7d2b=['[REDACTED]','entries','flags','945407PkYRnF','27IDfGdc','error','5613712cdZqAH','2871305ClmZNJ','250pKeyRV','98749ZPbCez','command','353583MXlsUg','durationMs','stringify','296230CmDHwg','372ofGEBy','message','test','1176032xaRnzI'];a219_0x1740=function(){return _0x4f7d2b;};return a219_0x1740();}function sanitizeFlags(_0x90977){const _0x209f89=a219_0x1018,_0x5599c9={};for(const [_0x388db0,_0x38dacc]of Object[_0x209f89(0xd1)](_0x90977)){isSensitiveKey(_0x388db0)?_0x5599c9[_0x388db0]=_0x38dacc!=null&&_0x38dacc!==''?_0x209f89(0xd0):_0x38dacc:_0x5599c9[_0x388db0]=_0x38dacc;}return _0x5599c9;}export async function reportCommandTrace(_0x107ef0){const _0x32bd3c=a219_0x1018;try{const _0x55c470=sanitizeFlags(_0x107ef0[_0x32bd3c(0xd2)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x107ef0['service'],'command.name':_0x107ef0[_0x32bd3c(0xda)],'command.flags':JSON[_0x32bd3c(0xdd)](_0x55c470),..._0x107ef0[_0x32bd3c(0xdc)]!=null?{'command.duration_ms':_0x107ef0[_0x32bd3c(0xdc)]}:{},..._0x107ef0['error']?{'command.error':_0x107ef0[_0x32bd3c(0xd5)]instanceof Error?_0x107ef0[_0x32bd3c(0xd5)][_0x32bd3c(0xe0)]:String(_0x107ef0[_0x32bd3c(0xd5)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3915ac,_0x2a59f0){var _0x1ad0bf=a220_0x4177,_0x3e0ac3=_0x3915ac();while(!![]){try{var _0x53111e=parseInt(_0x1ad0bf(0x14d))/0x1*(parseInt(_0x1ad0bf(0x155))/0x2)+parseInt(_0x1ad0bf(0x14b))/0x3*(parseInt(_0x1ad0bf(0x14f))/0x4)+parseInt(_0x1ad0bf(0x156))/0x5+parseInt(_0x1ad0bf(0x154))/0x6*(-parseInt(_0x1ad0bf(0x14a))/0x7)+-parseInt(_0x1ad0bf(0x151))/0x8+-parseInt(_0x1ad0bf(0x152))/0x9+-parseInt(_0x1ad0bf(0x14c))/0xa*(-parseInt(_0x1ad0bf(0x149))/0xb);if(_0x53111e===_0x2a59f0)break;else _0x3e0ac3['push'](_0x3e0ac3['shift']());}catch(_0x11a494){_0x3e0ac3['push'](_0x3e0ac3['shift']());}}}(a220_0x1f10,0x88917));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x84b92,_0x1fbc31){var _0x2adc19=a220_0x4177;try{await sendCliTraceLog({'spanName':_0x2adc19(0x14e),'logData':{'rabetbase.help.kind':_0x84b92,..._0x1fbc31?.[_0x2adc19(0x153)]&&{'rabetbase.help.service':_0x1fbc31[_0x2adc19(0x153)]}}});}catch(_0xd2a54c){console[_0x2adc19(0x157)](_0x2adc19(0x150),_0xd2a54c);}}function a220_0x4177(_0x5da2f4,_0x330685){_0x5da2f4=_0x5da2f4-0x149;var _0x1f1009=a220_0x1f10();var _0x4177c1=_0x1f1009[_0x5da2f4];return _0x4177c1;}function a220_0x1f10(){var _0x22bd78=['175pzkXYP','3fexkpa','2378210sqTrju','73DVyDva','cli.help','1084856FElyZt','Failed\x20to\x20report\x20CLI\x20help\x20trace:','7731384lhrCyY','5411592SnUIly','service','63438imXDQj','646EYdppe','4537605ZWWKQj','error','55hWmxEK'];a220_0x1f10=function(){return _0x22bd78;};return a220_0x1f10();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0xca80(_0x5c0383,_0x5e4b78){_0x5c0383=_0x5c0383-0xb4;const _0x585739=a221_0x5857();let _0xca800=_0x585739[_0x5c0383];return _0xca800;}(function(_0x5ec718,_0x8d1303){const _0x105f68=a221_0xca80,_0x523d0c=_0x5ec718();while(!![]){try{const _0xaf7f77=-parseInt(_0x105f68(0xba))/0x1+parseInt(_0x105f68(0xb7))/0x2*(-parseInt(_0x105f68(0xc2))/0x3)+-parseInt(_0x105f68(0xc0))/0x4*(-parseInt(_0x105f68(0xbc))/0x5)+-parseInt(_0x105f68(0xb6))/0x6*(parseInt(_0x105f68(0xbb))/0x7)+parseInt(_0x105f68(0xb8))/0x8+-parseInt(_0x105f68(0xbf))/0x9*(parseInt(_0x105f68(0xc1))/0xa)+parseInt(_0x105f68(0xbd))/0xb*(parseInt(_0x105f68(0xb4))/0xc);if(_0xaf7f77===_0x8d1303)break;else _0x523d0c['push'](_0x523d0c['shift']());}catch(_0x45f243){_0x523d0c['push'](_0x523d0c['shift']());}}}(a221_0x5857,0xbf492));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a221_0x5857(){const _0x5ce7b5=['966HOBJva','14NguhkY','2811328UEZnVQ','tenant','1034788NrMEyN','45066VuuNIB','9245BVIiiC','938322tgKeBv','tenant_code','981GLcWxF','1916vOKRbZ','59910hTcjCK','525702ISsNnV','user','unknown','production','492qBnNAF','username'];a221_0x5857=function(){return _0x5ce7b5;};return a221_0x5857();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4d4237=a221_0xca80,_0x3d2831=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x55b69b=_0x3d2831?.[_0x4d4237(0xc3)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4d4237(0xc4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x4d4237(0xc5))}),setUserContext({'id':_0x55b69b?.['id'],'username':_0x55b69b?.[_0x4d4237(0xb5)],'nickname':_0x55b69b?.['nickname'],'email':_0x55b69b?.['email'],'tenantCode':_0x55b69b?.[_0x4d4237(0xb9)][_0x4d4237(0xbe)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3d2831;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35bcd3,_0x31a7d8){const _0x4cea2b=a222_0xf9c8,_0x5b354b=_0x35bcd3();while(!![]){try{const _0x444664=-parseInt(_0x4cea2b(0x15e))/0x1*(parseInt(_0x4cea2b(0x15a))/0x2)+-parseInt(_0x4cea2b(0x159))/0x3+parseInt(_0x4cea2b(0x158))/0x4*(parseInt(_0x4cea2b(0x153))/0x5)+-parseInt(_0x4cea2b(0x157))/0x6+-parseInt(_0x4cea2b(0x15b))/0x7+-parseInt(_0x4cea2b(0x156))/0x8+parseInt(_0x4cea2b(0x155))/0x9*(parseInt(_0x4cea2b(0x161))/0xa);if(_0x444664===_0x31a7d8)break;else _0x5b354b['push'](_0x5b354b['shift']());}catch(_0x3d51a2){_0x5b354b['push'](_0x5b354b['shift']());}}}(a222_0x47c3,0x5e4a2));function a222_0x47c3(){const _0x36feb0=['exit','SIGTERM','471751ZPxjSX','SIGINT','once','20tCYUFE','245WlZfcj','then','10462833wBmLLk','3239512Wtrcte','2304102TZPtnV','25436QCqIZh','713673nWRoxg','2ZFkAgo','5262999mfqkVu'];a222_0x47c3=function(){return _0x36feb0;};return a222_0x47c3();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x51916b=a222_0xf9c8;process[_0x51916b(0x160)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x2f8a23=()=>{const _0x13f937=_0x51916b;void flushOtelNodeIfUsed()[_0x13f937(0x154)](()=>process[_0x13f937(0x15c)](0x0));};process[_0x51916b(0x160)](_0x51916b(0x15f),_0x2f8a23),process[_0x51916b(0x160)](_0x51916b(0x15d),_0x2f8a23);}function a222_0xf9c8(_0x58050d,_0x5bc37b){_0x58050d=_0x58050d-0x153;const _0x47c3fc=a222_0x47c3();let _0xf9c893=_0x47c3fc[_0x58050d];return _0xf9c893;}export async function exitWithOtelShutdown(_0x80f7bb){await flushOtelNodeIfUsed(),process['exit'](_0x80f7bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a223_0x515700=a223_0x1506;(function(_0x575906,_0x1a86c7){const _0x59755a=a223_0x1506,_0x1f8f4a=_0x575906();while(!![]){try{const _0x5af3c1=parseInt(_0x59755a(0x1a0))/0x1*(-parseInt(_0x59755a(0x196))/0x2)+parseInt(_0x59755a(0x19c))/0x3+parseInt(_0x59755a(0x19d))/0x4*(parseInt(_0x59755a(0x19e))/0x5)+parseInt(_0x59755a(0x1a2))/0x6+-parseInt(_0x59755a(0x198))/0x7*(-parseInt(_0x59755a(0x19f))/0x8)+parseInt(_0x59755a(0x195))/0x9*(parseInt(_0x59755a(0x194))/0xa)+parseInt(_0x59755a(0x19b))/0xb*(-parseInt(_0x59755a(0x1a1))/0xc);if(_0x5af3c1===_0x1a86c7)break;else _0x1f8f4a['push'](_0x1f8f4a['shift']());}catch(_0x11bf99){_0x1f8f4a['push'](_0x1f8f4a['shift']());}}}(a223_0x49f1,0xbc233));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a223_0x1506(_0x2f7493,_0x1ae2f4){_0x2f7493=_0x2f7493-0x194;const _0x49f118=a223_0x49f1();let _0x1506c7=_0x49f118[_0x2f7493];return _0x1506c7;}function a223_0x49f1(){const _0x323895=['91zYFXAY','traceparent','logData','14267EJVBxq','478578iBtnvv','1692956ONoZAR','10aNkliu','709624bpHkIU','101Aitoub','18192hcrlta','709422RrsLfP','1610cxCicp','33426egyjEW','2742aAUJMa','rabetbase-cli'];a223_0x49f1=function(){return _0x323895;};return a223_0x49f1();}const DEFAULT_TRACE_NAME=a223_0x515700(0x197);export async function sendCliTraceLog(_0x567cb6){const _0x470897=a223_0x515700;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x567cb6['traceName']??DEFAULT_TRACE_NAME,'version':_0x567cb6['version']??getCliVersion(),'spanName':_0x567cb6['spanName'],'eventType':'manual','logData':_0x567cb6[_0x470897(0x19a)],..._0x567cb6['traceparent']&&{'traceparent':_0x567cb6[_0x470897(0x199)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x322b7c=a224_0x5ee7;(function(_0xcb4c11,_0x2d4981){const _0x3c8003=a224_0x5ee7,_0x2d1153=_0xcb4c11();while(!![]){try{const _0x5e88aa=-parseInt(_0x3c8003(0x135))/0x1+-parseInt(_0x3c8003(0x137))/0x2*(parseInt(_0x3c8003(0x13f))/0x3)+parseInt(_0x3c8003(0x136))/0x4+parseInt(_0x3c8003(0x138))/0x5*(-parseInt(_0x3c8003(0x12f))/0x6)+parseInt(_0x3c8003(0x141))/0x7*(-parseInt(_0x3c8003(0x13e))/0x8)+parseInt(_0x3c8003(0x13b))/0x9*(-parseInt(_0x3c8003(0x12e))/0xa)+parseInt(_0x3c8003(0x13c))/0xb;if(_0x5e88aa===_0x2d4981)break;else _0x2d1153['push'](_0x2d1153['shift']());}catch(_0x5a2a41){_0x2d1153['push'](_0x2d1153['shift']());}}}(a224_0x2b79,0xaa14d));function a224_0x2b79(){const _0x1834c3=['title','issue.log.collect','description','truncated','sanitize','1161817aCWTkv','958820nySdND','250058BFQBJm','75350NbWwYm','redactionCount','platform-issue-log-collect','1170rfhtlq','49046426LoktYT','originalBytes','2418384pFZife','9iPWbpK','join','21YsYezh','101300ZxLVNU','96lmrcqZ'];a224_0x2b79=function(){return _0x1834c3;};return a224_0x2b79();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a224_0x5ee7(_0x3ce65e,_0x5ad6fc){_0x3ce65e=_0x3ce65e-0x12e;const _0x2b79df=a224_0x2b79();let _0x5ee75e=_0x2b79df[_0x3ce65e];return _0x5ee75e;}export const PLATFORM_ISSUE_TRACE_NAME=a224_0x322b7c(0x13a);export const PLATFORM_ISSUE_SPAN_NAME=a224_0x322b7c(0x131);export async function sendPlatformIssueCollectLog(_0x37e3e9){const _0x35fa98=a224_0x322b7c;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37e3e9[_0x35fa98(0x130)],'issue.description':_0x37e3e9[_0x35fa98(0x132)],..._0x37e3e9[_0x35fa98(0x134)]?{'issue.description_original_bytes':_0x37e3e9[_0x35fa98(0x134)][_0x35fa98(0x13d)],'issue.description_truncated':_0x37e3e9[_0x35fa98(0x134)][_0x35fa98(0x133)],'issue.description_redactions':_0x37e3e9[_0x35fa98(0x134)][_0x35fa98(0x139)],'issue.description_redaction_kinds':_0x37e3e9[_0x35fa98(0x134)]['redactionKinds'][_0x35fa98(0x140)](',')}:{}}});}
|