@lovrabet/rabetbase-cli 2.1.2-beta.2 → 2.1.2

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.
Files changed (161) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -1
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +1 -1
@@ -1 +1 @@
1
- const a114_0x3c064c=a114_0x1fea;function a114_0x80ed(){const _0x2a11c1=['7UveFvr','140250rcQrGl','8ytoPgB','32cJxNuG','390929aNNkRJ','/bff','14052kxeNCr','555219rPmCXi','735400sfwKcv','62709wHytxz','.rabetbase','1178bLOpGm','398oBTFRf'];a114_0x80ed=function(){return _0x2a11c1;};return a114_0x80ed();}(function(_0xb13891,_0xcadc51){const _0x14b68b=a114_0x1fea,_0x18b9b5=_0xb13891();while(!![]){try{const _0x195b9d=-parseInt(_0x14b68b(0xa7))/0x1*(parseInt(_0x14b68b(0xa8))/0x2)+-parseInt(_0x14b68b(0xa5))/0x3*(-parseInt(_0x14b68b(0xab))/0x4)+-parseInt(_0x14b68b(0xaa))/0x5+-parseInt(_0x14b68b(0xaf))/0x6*(-parseInt(_0x14b68b(0xa9))/0x7)+parseInt(_0x14b68b(0xac))/0x8*(parseInt(_0x14b68b(0xb0))/0x9)+parseInt(_0x14b68b(0xb1))/0xa+parseInt(_0x14b68b(0xad))/0xb;if(_0x195b9d===_0xcadc51)break;else _0x18b9b5['push'](_0x18b9b5['shift']());}catch(_0x45b61a){_0x18b9b5['push'](_0x18b9b5['shift']());}}}(a114_0x80ed,0x2192f));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a114_0x1fea(_0x56b31a,_0x57a087){_0x56b31a=_0x56b31a-0xa5;const _0x80ede1=a114_0x80ed();let _0x1fea42=_0x80ede1[_0x56b31a];return _0x1fea42;}const DOT_DIR=a114_0x3c064c(0xa6),LOCK_FILE_NAME='bff.lock.json',TRASH_DIR_NAME='bff-trash';export function loadBffProjectConfig(_0x597648,_0x1d0b90){const _0x26c969=a114_0x3c064c,_0x4e1711=resolve(_0x1d0b90??findProjectRootDirectory()),_0x26c7ab=DOT_DIR+_0x26c969(0xae),_0x17003d=_0x26c7ab+'/'+_0x597648;return{'projectRoot':_0x4e1711,'appCode':_0x597648,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x26c7ab,'scriptsRoot':_0x17003d,'scriptsRootDir':resolve(_0x4e1711,DOT_DIR,'bff',_0x597648),'lockFilePath':resolve(_0x4e1711,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x4e1711,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a154_0xd27c(_0x1ed6d4,_0x3ac00e){_0x1ed6d4=_0x1ed6d4-0x194;const _0x42d5ca=a154_0x42d5();let _0xd27c09=_0x42d5ca[_0x1ed6d4];return _0xd27c09;}const a154_0x35564e=a154_0xd27c;(function(_0x3b87b4,_0x1c19e6){const _0x535c0d=a154_0xd27c,_0x1e1d11=_0x3b87b4();while(!![]){try{const _0xd449f5=-parseInt(_0x535c0d(0x1a1))/0x1*(-parseInt(_0x535c0d(0x196))/0x2)+-parseInt(_0x535c0d(0x19c))/0x3+-parseInt(_0x535c0d(0x199))/0x4+-parseInt(_0x535c0d(0x19d))/0x5+parseInt(_0x535c0d(0x198))/0x6*(parseInt(_0x535c0d(0x19e))/0x7)+parseInt(_0x535c0d(0x19f))/0x8+parseInt(_0x535c0d(0x197))/0x9*(parseInt(_0x535c0d(0x1a2))/0xa);if(_0xd449f5===_0x1c19e6)break;else _0x1e1d11['push'](_0x1e1d11['shift']());}catch(_0x19e35e){_0x1e1d11['push'](_0x1e1d11['shift']());}}}(a154_0x42d5,0x3474c));import{resolve}from'node:path';function a154_0x42d5(){const _0x5d1f3c=['bff-trash','/bff','305673talOOU','1321535pspEgU','56ViscUg','2651664RuyNMx','.rabetbase','118283IAqjQT','1831610DNJMWa','bff','bff.lock.json','6wLCaTf','9SAhXHu','90966eHgxTu','1638792ACNvzX'];a154_0x42d5=function(){return _0x5d1f3c;};return a154_0x42d5();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a154_0x35564e(0x1a0),LOCK_FILE_NAME=a154_0x35564e(0x195),TRASH_DIR_NAME=a154_0x35564e(0x19a);export function loadBffProjectConfig(_0x5ee9a0,_0xa73c14){const _0x3d301b=a154_0x35564e,_0x366bb2=resolve(_0xa73c14??findProjectRootDirectory()),_0x613821=DOT_DIR+_0x3d301b(0x19b),_0xfba4d7=_0x613821+'/'+_0x5ee9a0;return{'projectRoot':_0x366bb2,'appCode':_0x5ee9a0,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x613821,'scriptsRoot':_0xfba4d7,'scriptsRootDir':resolve(_0x366bb2,DOT_DIR,_0x3d301b(0x194),_0x5ee9a0),'lockFilePath':resolve(_0x366bb2,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x366bb2,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- const a115_0x12ac5a=a115_0x1274;(function(_0x159001,_0x32d667){const _0x35fad1=a115_0x1274,_0x291434=_0x159001();while(!![]){try{const _0x2eec36=-parseInt(_0x35fad1(0x97))/0x1*(-parseInt(_0x35fad1(0xae))/0x2)+parseInt(_0x35fad1(0xa3))/0x3+parseInt(_0x35fad1(0x95))/0x4+-parseInt(_0x35fad1(0xb0))/0x5+-parseInt(_0x35fad1(0xb4))/0x6+parseInt(_0x35fad1(0xa2))/0x7*(-parseInt(_0x35fad1(0xa5))/0x8)+-parseInt(_0x35fad1(0xa9))/0x9*(-parseInt(_0x35fad1(0xa8))/0xa);if(_0x2eec36===_0x32d667)break;else _0x291434['push'](_0x291434['shift']());}catch(_0x33f1c8){_0x291434['push'](_0x291434['shift']());}}}(a115_0x1587,0xa7472));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';function a115_0x1587(){const _0xc721=['.js','64aLTrsg','scriptsRootDir','set','10TfUNSY','5876820DCYKmS','push','toUpperCase','beforeScriptId','functionNode','122IWfasP','functionName','6494420PopFyA','get','replace','afterScriptId','1128258RcGrfm','scriptType','split','name','F_OK','isFile','1239476eVMzfO','COMMON','19402wKNNAn','ENDPOINT','code','HOOK','operationType','datasetCode','trim','isDirectory','endsWith','includes','map','869673OiGXBn','3058914KzRHir'];a115_0x1587=function(){return _0xc721;};return a115_0x1587();}import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a115_0x1274(_0x33546c,_0x3898ed){_0x33546c=_0x33546c-0x94;const _0x158706=a115_0x1587();let _0x1274fc=_0x158706[_0x33546c];return _0x1274fc;}export const SUPPORTED_BFF_TYPES=[a115_0x12ac5a(0x96),a115_0x12ac5a(0x98),a115_0x12ac5a(0x9a)];export function normalizeBffType(_0x417e27){const _0x327198=a115_0x12ac5a;if(!_0x417e27)return undefined;const _0x49da94=_0x417e27[_0x327198(0x9d)]()[_0x327198(0xab)]();return SUPPORTED_BFF_TYPES[_0x327198(0xa0)](_0x49da94)?_0x49da94:undefined;}async function scanJsFilesRecursively(_0x2e48d9,_0x460ad0){const _0x1450eb=a115_0x12ac5a,_0x5ca854=[];try{const _0x50e3d3=await readdir(_0x2e48d9,{'withFileTypes':!![]});for(const _0x32b11f of _0x50e3d3){const _0x427185=join(_0x2e48d9,_0x32b11f[_0x1450eb(0xb7)]);if(_0x32b11f[_0x1450eb(0x9e)]())_0x5ca854[_0x1450eb(0xaa)](...await scanJsFilesRecursively(_0x427185,_0x460ad0+'/'+_0x32b11f[_0x1450eb(0xb7)]));else _0x32b11f[_0x1450eb(0x94)]()&&_0x32b11f['name'][_0x1450eb(0x9f)]('.js')&&_0x5ca854['push']({'lockKey':_0x460ad0+'/'+_0x32b11f['name']['replace'](/\.js$/,''),'filePath':_0x427185});}}catch(_0x4af45c){if(_0x4af45c[_0x1450eb(0x99)]!=='ENOENT')throw _0x4af45c;}return _0x5ca854;}async function scanFlatFunctions(_0x49e2d3,_0x1df4be){const _0x579b27=a115_0x12ac5a,_0x235a69=join(_0x49e2d3[_0x579b27(0xa6)],_0x1df4be),_0x1e2f9b=await scanJsFilesRecursively(_0x235a69,_0x1df4be);return _0x1e2f9b[_0x579b27(0xa1)](({lockKey:_0x3c8a8b,filePath:_0xaee0c9})=>({'type':_0x1df4be,'name':_0x3c8a8b[_0x579b27(0xb6)]('/')['at'](-0x1)??'','filePath':_0xaee0c9,'lockKey':_0x3c8a8b}));}async function scanHookFunctions(_0x3f0c7d){const _0x570ce9=a115_0x12ac5a,_0x52d708=join(_0x3f0c7d['scriptsRootDir'],_0x570ce9(0x9a)),_0x3d901a=[];try{const _0xbd096e=await readdir(_0x52d708,{'withFileTypes':!![]});for(const _0x53cb37 of _0xbd096e){if(!_0x53cb37['isDirectory']())continue;const _0x2c438c=_0x53cb37[_0x570ce9(0xb7)],_0x586f32=join(_0x52d708,_0x2c438c),_0x489958=await readdir(_0x586f32,{'withFileTypes':!![]});for(const _0x2be4f1 of _0x489958){if(!_0x2be4f1[_0x570ce9(0x9e)]())continue;const _0x34a223=_0x2be4f1[_0x570ce9(0xb7)],_0x24a968=join(_0x586f32,_0x34a223),_0x314f5b=await readdir(_0x24a968,{'withFileTypes':!![]});for(const _0x4354ca of _0x314f5b){if(!_0x4354ca[_0x570ce9(0x9e)]())continue;const _0x436787=_0x4354ca[_0x570ce9(0xb7)],_0x769690=join(_0x24a968,_0x436787),_0x3d9415=await readdir(_0x769690,{'withFileTypes':!![]});for(const _0x5c49cc of _0x3d9415){if(!_0x5c49cc['isFile']()||!_0x5c49cc[_0x570ce9(0xb7)]['endsWith'](_0x570ce9(0xa4)))continue;const _0x208277=_0x5c49cc[_0x570ce9(0xb7)][_0x570ce9(0xb2)](/\.js$/,'');_0x3d901a['push']({'type':'HOOK','name':_0x208277,'filePath':join(_0x769690,_0x5c49cc[_0x570ce9(0xb7)]),'lockKey':'HOOK/'+_0x2c438c+'/'+_0x34a223+'/'+_0x436787+'/'+_0x208277,'alias':_0x2c438c,'operationType':_0x34a223,'functionNode':_0x436787});}}}}}catch(_0x5eafc4){if(_0x5eafc4['code']!=='ENOENT')throw _0x5eafc4;}return _0x3d901a;}export async function scanLocalBffFunctions(_0x523061,_0x51fa0c){const _0x18ca29=a115_0x12ac5a;if(_0x51fa0c===_0x18ca29(0x96)||_0x51fa0c===_0x18ca29(0x98))return scanFlatFunctions(_0x523061,_0x51fa0c);if(_0x51fa0c==='HOOK')return scanHookFunctions(_0x523061);const [_0x2d4f0a,_0x78f533,_0x22ebe4]=await Promise['all']([scanFlatFunctions(_0x523061,'COMMON'),scanFlatFunctions(_0x523061,_0x18ca29(0x98)),scanHookFunctions(_0x523061)]);return[..._0x2d4f0a,..._0x78f533,..._0x22ebe4];}export function resolveLocalFilePathFromLockKey(_0x56c039,_0x5b77f7){const _0x5d9aad=a115_0x12ac5a;return join(_0x56c039[_0x5d9aad(0xa6)],..._0x5b77f7[_0x5d9aad(0xb6)]('/'))+_0x5d9aad(0xa4);}export function createHookLocationMap(_0x5b2f0a){const _0x5359dc=a115_0x12ac5a,_0x233bfc=new Map();for(const _0x462350 of _0x5b2f0a){_0x462350[_0x5359dc(0xac)]&&_0x233bfc['set'](_0x462350[_0x5359dc(0xac)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350[_0x5359dc(0x9b)]),'functionNode':'before'}),_0x462350[_0x5359dc(0xb3)]&&_0x233bfc[_0x5359dc(0xa7)](_0x462350[_0x5359dc(0xb3)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350['operationType']),'functionNode':'after'});}return _0x233bfc;}export function resolveRemoteScriptTarget(_0x48c249,_0x5eb17b,_0x4f9708,_0x29bfeb,_0x37a70c){const _0x520146=a115_0x12ac5a,_0x51d0e5=normalizeBffType(_0x5eb17b[_0x520146(0xb5)]);if(!_0x51d0e5||!_0x5eb17b[_0x520146(0xaf)])return null;if(_0x51d0e5==='HOOK'){const _0x62910f=(_0x5eb17b['id']?_0x4f9708[_0x520146(0xb1)](_0x5eb17b['id']):undefined)??findHookLocationByRemoteId(_0x29bfeb,_0x5eb17b['id']);if(!_0x62910f)return null;const _0x262022=_0x62910f['alias']||_0x37a70c[_0x520146(0xb1)](_0x62910f[_0x520146(0x9c)]),_0x49c9d1=_0x262022??_0x62910f[_0x520146(0x9c)],_0x1ea95b={..._0x62910f,'alias':_0x262022},_0x3ecd28='HOOK/'+_0x49c9d1+'/'+_0x1ea95b[_0x520146(0x9b)]+'/'+_0x1ea95b[_0x520146(0xad)]+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x3ecd28,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x3ecd28),'type':_0x520146(0x9a),'hookLocation':_0x1ea95b};}const _0x2bc8a6=_0x51d0e5+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x2bc8a6,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x2bc8a6),'type':_0x51d0e5};}export async function ensureParentDirectory(_0x11dc2f){await mkdir(dirname(_0x11dc2f),{'recursive':!![]});}export async function fileExists(_0x58d4a4){const _0x4dc1f6=a115_0x12ac5a;try{return await access(_0x58d4a4,constants[_0x4dc1f6(0xb8)]),!![];}catch{return![];}}export async function directoryExists(_0x20eb10){const _0x28a8ec=a115_0x12ac5a;try{const _0x5ae4d2=await stat(_0x20eb10);return _0x5ae4d2[_0x28a8ec(0x9e)]();}catch{return![];}}
1
+ const a150_0x4ce7c6=a150_0x2e69;(function(_0x26ff05,_0x1cc28f){const _0x2f4b1e=a150_0x2e69,_0x1a4dfd=_0x26ff05();while(!![]){try{const _0xca67dd=-parseInt(_0x2f4b1e(0x16f))/0x1+-parseInt(_0x2f4b1e(0x17f))/0x2+-parseInt(_0x2f4b1e(0x169))/0x3*(-parseInt(_0x2f4b1e(0x182))/0x4)+-parseInt(_0x2f4b1e(0x17a))/0x5+-parseInt(_0x2f4b1e(0x181))/0x6+-parseInt(_0x2f4b1e(0x186))/0x7+parseInt(_0x2f4b1e(0x16a))/0x8;if(_0xca67dd===_0x1cc28f)break;else _0x1a4dfd['push'](_0x1a4dfd['shift']());}catch(_0x44c266){_0x1a4dfd['push'](_0x1a4dfd['shift']());}}}(a150_0x467e,0xe7b90));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a150_0x467e(){const _0x365ae3=['all','name','1418554EiEFDH','.js','replace','alias','toUpperCase','isDirectory','split','ENOENT','beforeScriptId','HOOK','COMMON','3856685AjHcFw','get','operationType','map','F_OK','1173052pDEYng','datasetCode','10366020fzafWq','156JABNdg','HOOK/','scriptsRootDir','includes','12445328xMCbQl','isFile','ENDPOINT','afterScriptId','endsWith','functionNode','set','push','22179ZbgytF','55542400yrQEvO','code','trim'];a150_0x467e=function(){return _0x365ae3;};return a150_0x467e();}export const SUPPORTED_BFF_TYPES=['COMMON',a150_0x4ce7c6(0x188),a150_0x4ce7c6(0x178)];export function normalizeBffType(_0x14bf3c){const _0x185ba0=a150_0x4ce7c6;if(!_0x14bf3c)return undefined;const _0x4d998e=_0x14bf3c[_0x185ba0(0x16c)]()[_0x185ba0(0x173)]();return SUPPORTED_BFF_TYPES[_0x185ba0(0x185)](_0x4d998e)?_0x4d998e:undefined;}async function scanJsFilesRecursively(_0x23091d,_0x435374){const _0x17e6e9=a150_0x4ce7c6,_0x2579ac=[];try{const _0xe0b034=await readdir(_0x23091d,{'withFileTypes':!![]});for(const _0x41826d of _0xe0b034){const _0xacf063=join(_0x23091d,_0x41826d['name']);if(_0x41826d[_0x17e6e9(0x174)]())_0x2579ac[_0x17e6e9(0x168)](...await scanJsFilesRecursively(_0xacf063,_0x435374+'/'+_0x41826d['name']));else _0x41826d[_0x17e6e9(0x187)]()&&_0x41826d[_0x17e6e9(0x16e)][_0x17e6e9(0x165)](_0x17e6e9(0x170))&&_0x2579ac['push']({'lockKey':_0x435374+'/'+_0x41826d[_0x17e6e9(0x16e)][_0x17e6e9(0x171)](/\.js$/,''),'filePath':_0xacf063});}}catch(_0x297b51){if(_0x297b51['code']!==_0x17e6e9(0x176))throw _0x297b51;}return _0x2579ac;}function a150_0x2e69(_0x187c6b,_0x1085fb){_0x187c6b=_0x187c6b-0x164;const _0x467e13=a150_0x467e();let _0x2e694b=_0x467e13[_0x187c6b];return _0x2e694b;}async function scanFlatFunctions(_0x531ca6,_0x2ea753){const _0x404c75=a150_0x4ce7c6,_0xd2fa64=join(_0x531ca6[_0x404c75(0x184)],_0x2ea753),_0x2dee23=await scanJsFilesRecursively(_0xd2fa64,_0x2ea753);return _0x2dee23[_0x404c75(0x17d)](({lockKey:_0x22c919,filePath:_0x1a1fb8})=>({'type':_0x2ea753,'name':_0x22c919[_0x404c75(0x175)]('/')['at'](-0x1)??'','filePath':_0x1a1fb8,'lockKey':_0x22c919}));}async function scanHookFunctions(_0x875ceb){const _0x5d6ce2=a150_0x4ce7c6,_0x3ed5e1=join(_0x875ceb[_0x5d6ce2(0x184)],_0x5d6ce2(0x178)),_0x244534=[];try{const _0x4decbc=await readdir(_0x3ed5e1,{'withFileTypes':!![]});for(const _0x5dd2ac of _0x4decbc){if(!_0x5dd2ac['isDirectory']())continue;const _0x383fc8=_0x5dd2ac[_0x5d6ce2(0x16e)],_0x21c6b0=join(_0x3ed5e1,_0x383fc8),_0x28ad5e=await readdir(_0x21c6b0,{'withFileTypes':!![]});for(const _0x24ba4f of _0x28ad5e){if(!_0x24ba4f[_0x5d6ce2(0x174)]())continue;const _0x5eb132=_0x24ba4f[_0x5d6ce2(0x16e)],_0x2dbeef=join(_0x21c6b0,_0x5eb132),_0x68ba12=await readdir(_0x2dbeef,{'withFileTypes':!![]});for(const _0x5af817 of _0x68ba12){if(!_0x5af817[_0x5d6ce2(0x174)]())continue;const _0x122890=_0x5af817['name'],_0x5885cb=join(_0x2dbeef,_0x122890),_0x4afac1=await readdir(_0x5885cb,{'withFileTypes':!![]});for(const _0xae14a of _0x4afac1){if(!_0xae14a[_0x5d6ce2(0x187)]()||!_0xae14a[_0x5d6ce2(0x16e)][_0x5d6ce2(0x165)](_0x5d6ce2(0x170)))continue;const _0x1cb3a0=_0xae14a[_0x5d6ce2(0x16e)][_0x5d6ce2(0x171)](/\.js$/,'');_0x244534[_0x5d6ce2(0x168)]({'type':'HOOK','name':_0x1cb3a0,'filePath':join(_0x5885cb,_0xae14a[_0x5d6ce2(0x16e)]),'lockKey':_0x5d6ce2(0x183)+_0x383fc8+'/'+_0x5eb132+'/'+_0x122890+'/'+_0x1cb3a0,'alias':_0x383fc8,'operationType':_0x5eb132,'functionNode':_0x122890});}}}}}catch(_0x5c3d43){if(_0x5c3d43[_0x5d6ce2(0x16b)]!=='ENOENT')throw _0x5c3d43;}return _0x244534;}export async function scanLocalBffFunctions(_0x60ebeb,_0x3c28b2){const _0x23df91=a150_0x4ce7c6;if(_0x3c28b2==='COMMON'||_0x3c28b2===_0x23df91(0x188))return scanFlatFunctions(_0x60ebeb,_0x3c28b2);if(_0x3c28b2===_0x23df91(0x178))return scanHookFunctions(_0x60ebeb);const [_0xd50689,_0x264420,_0x4efba6]=await Promise[_0x23df91(0x16d)]([scanFlatFunctions(_0x60ebeb,_0x23df91(0x179)),scanFlatFunctions(_0x60ebeb,_0x23df91(0x188)),scanHookFunctions(_0x60ebeb)]);return[..._0xd50689,..._0x264420,..._0x4efba6];}export function resolveLocalFilePathFromLockKey(_0x36481d,_0x34a067){const _0x5263c0=a150_0x4ce7c6;return join(_0x36481d['scriptsRootDir'],..._0x34a067[_0x5263c0(0x175)]('/'))+'.js';}export function createHookLocationMap(_0x159eae){const _0x329f8f=a150_0x4ce7c6,_0x58bbf8=new Map();for(const _0x192b46 of _0x159eae){_0x192b46[_0x329f8f(0x177)]&&_0x58bbf8[_0x329f8f(0x167)](_0x192b46['beforeScriptId'],{'datasetCode':_0x192b46[_0x329f8f(0x180)],'operationType':snakeToCamel(_0x192b46[_0x329f8f(0x17c)]),'functionNode':'before'}),_0x192b46[_0x329f8f(0x164)]&&_0x58bbf8[_0x329f8f(0x167)](_0x192b46[_0x329f8f(0x164)],{'datasetCode':_0x192b46[_0x329f8f(0x180)],'operationType':snakeToCamel(_0x192b46[_0x329f8f(0x17c)]),'functionNode':'after'});}return _0x58bbf8;}export function resolveRemoteScriptTarget(_0x334458,_0x2d8a81,_0x50a56c,_0x854e27,_0x502ba5){const _0x163164=a150_0x4ce7c6,_0x5f4cbe=normalizeBffType(_0x2d8a81['scriptType']);if(!_0x5f4cbe||!_0x2d8a81['functionName'])return null;if(_0x5f4cbe==='HOOK'){const _0x3e0fa3=(_0x2d8a81['id']?_0x50a56c[_0x163164(0x17b)](_0x2d8a81['id']):undefined)??findHookLocationByRemoteId(_0x854e27,_0x2d8a81['id']);if(!_0x3e0fa3)return null;const _0x1e0855=_0x3e0fa3[_0x163164(0x172)]||_0x502ba5[_0x163164(0x17b)](_0x3e0fa3[_0x163164(0x180)]),_0x3f75fd=_0x1e0855??_0x3e0fa3[_0x163164(0x180)],_0x3d5ef0={..._0x3e0fa3,'alias':_0x1e0855},_0x697e7b='HOOK/'+_0x3f75fd+'/'+_0x3d5ef0[_0x163164(0x17c)]+'/'+_0x3d5ef0[_0x163164(0x166)]+'/'+_0x2d8a81['functionName'];return{'lockKey':_0x697e7b,'filePath':resolveLocalFilePathFromLockKey(_0x334458,_0x697e7b),'type':_0x163164(0x178),'hookLocation':_0x3d5ef0};}const _0x5de012=_0x5f4cbe+'/'+_0x2d8a81['functionName'];return{'lockKey':_0x5de012,'filePath':resolveLocalFilePathFromLockKey(_0x334458,_0x5de012),'type':_0x5f4cbe};}export async function ensureParentDirectory(_0x2611ec){await mkdir(dirname(_0x2611ec),{'recursive':!![]});}export async function fileExists(_0x2a6b28){const _0x1bfac4=a150_0x4ce7c6;try{return await access(_0x2a6b28,constants[_0x1bfac4(0x17e)]),!![];}catch{return![];}}export async function directoryExists(_0x5b1b75){const _0x8a8474=a150_0x4ce7c6;try{const _0x210945=await stat(_0x5b1b75);return _0x210945[_0x8a8474(0x174)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xa996df,_0x393181){const _0x5720ea=a116_0x1bb2,_0x423162=_0xa996df();while(!![]){try{const _0x111c21=-parseInt(_0x5720ea(0x1b3))/0x1+-parseInt(_0x5720ea(0x1be))/0x2+parseInt(_0x5720ea(0x1ba))/0x3*(-parseInt(_0x5720ea(0x1b9))/0x4)+-parseInt(_0x5720ea(0x1bc))/0x5*(-parseInt(_0x5720ea(0x1b8))/0x6)+-parseInt(_0x5720ea(0x1b5))/0x7*(-parseInt(_0x5720ea(0x1b7))/0x8)+parseInt(_0x5720ea(0x1b1))/0x9*(parseInt(_0x5720ea(0x1bd))/0xa)+-parseInt(_0x5720ea(0x1bb))/0xb*(-parseInt(_0x5720ea(0x1c0))/0xc);if(_0x111c21===_0x393181)break;else _0x423162['push'](_0x423162['shift']());}catch(_0x438141){_0x423162['push'](_0x423162['shift']());}}}(a116_0xed33,0x4e76c));function a116_0x1bb2(_0x3e4c25,_0x5513a5){_0x3e4c25=_0x3e4c25-0x1b1;const _0xed3331=a116_0xed33();let _0x1bb216=_0xed3331[_0x3e4c25];return _0x1bb216;}import{readFile}from'node:fs/promises';import a116_0x5e358f from'node:crypto';export function computeContentHash(_0x45e917){const _0x326eca=a116_0x1bb2;return a116_0x5e358f['createHash'](_0x326eca(0x1bf))[_0x326eca(0x1b2)](_0x45e917)[_0x326eca(0x1b6)]('hex');}export async function computeFileHash(_0x245868){const _0x458d64=a116_0x1bb2,_0x320928=await readFile(_0x245868,_0x458d64(0x1b4));return computeContentHash(_0x320928);}function a116_0xed33(){const _0x367837=['15630VifjXs','235350EjaxAP','md5','144TlXCnY','387NPdDoU','update','105530dWvhZj','utf8','227206wrtldT','digest','16YsPtKX','30AdDqKz','4IqrphA','1275579KAtYSx','347303eToJBQ','458785NZKfeE'];a116_0xed33=function(){return _0x367837;};return a116_0xed33();}
1
+ function a152_0x7478(){const _0x1594c3=['utf8','digest','37977YcpQnh','createHash','502839BLvUvo','396400uEfYPq','174ajuQsn','1OuEmBG','1067VeOSiR','271112GEPssY','6952wAbwfA','9912RQyeTe','hex','9315FuvDIL','1246WJxChs','44lVBWVr'];a152_0x7478=function(){return _0x1594c3;};return a152_0x7478();}(function(_0x5e97ce,_0x5dc9ed){const _0x5d465d=a152_0x5ae0,_0x1bed25=_0x5e97ce();while(!![]){try{const _0x181468=-parseInt(_0x5d465d(0x159))/0x1*(-parseInt(_0x5d465d(0x15b))/0x2)+parseInt(_0x5d465d(0x164))/0x3*(-parseInt(_0x5d465d(0x161))/0x4)+-parseInt(_0x5d465d(0x15f))/0x5*(-parseInt(_0x5d465d(0x158))/0x6)+-parseInt(_0x5d465d(0x160))/0x7*(-parseInt(_0x5d465d(0x15c))/0x8)+-parseInt(_0x5d465d(0x166))/0x9+parseInt(_0x5d465d(0x157))/0xa+-parseInt(_0x5d465d(0x15a))/0xb*(parseInt(_0x5d465d(0x15d))/0xc);if(_0x181468===_0x5dc9ed)break;else _0x1bed25['push'](_0x1bed25['shift']());}catch(_0xaa618d){_0x1bed25['push'](_0x1bed25['shift']());}}}(a152_0x7478,0x1a877));function a152_0x5ae0(_0x224893,_0x122e6d){_0x224893=_0x224893-0x157;const _0x747879=a152_0x7478();let _0x5ae094=_0x747879[_0x224893];return _0x5ae094;}import{readFile}from'node:fs/promises';import a152_0x1fd88c from'node:crypto';export function computeContentHash(_0x235979){const _0x2e44f8=a152_0x5ae0;return a152_0x1fd88c[_0x2e44f8(0x165)]('md5')['update'](_0x235979)[_0x2e44f8(0x163)](_0x2e44f8(0x15e));}export async function computeFileHash(_0x2ed969){const _0x130887=a152_0x5ae0,_0x2a9282=await readFile(_0x2ed969,_0x130887(0x162));return computeContentHash(_0x2a9282);}
@@ -1 +1 @@
1
- (function(_0x4c9661,_0x237bbe){const _0xa7163d=a117_0x4039,_0x26bb8b=_0x4c9661();while(!![]){try{const _0x33b1bf=-parseInt(_0xa7163d(0xaf))/0x1+parseInt(_0xa7163d(0xb3))/0x2+parseInt(_0xa7163d(0xbe))/0x3*(parseInt(_0xa7163d(0xae))/0x4)+-parseInt(_0xa7163d(0xbf))/0x5+-parseInt(_0xa7163d(0xb9))/0x6*(parseInt(_0xa7163d(0xc1))/0x7)+parseInt(_0xa7163d(0xbb))/0x8+parseInt(_0xa7163d(0xb6))/0x9*(-parseInt(_0xa7163d(0xbd))/0xa);if(_0x33b1bf===_0x237bbe)break;else _0x26bb8b['push'](_0x26bb8b['shift']());}catch(_0x21c0b7){_0x26bb8b['push'](_0x26bb8b['shift']());}}}(a117_0x4c73,0x3818a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x24cc7a,_0x4387a4,_0xe75e49,_0x21ed66){const _0x33c928=a117_0x4039,_0x527629={'apps':_0x24cc7a['apps']&&typeof _0x24cc7a[_0x33c928(0xb2)]===_0x33c928(0xbc)?_0x24cc7a[_0x33c928(0xb2)]:{}};let _0x271279=_0x527629[_0x33c928(0xb2)][_0x4387a4];if(!_0x271279)return _0x271279={'scriptsRoot':_0xe75e49,'lastSync':'','functions':{}},_0x527629['apps'][_0x4387a4]=_0x271279,{'lockData':_0x527629,'appLock':_0x271279};if(!_0x271279[_0x33c928(0xc3)])_0x271279[_0x33c928(0xc3)]=_0xe75e49;else{if(_0x271279[_0x33c928(0xc3)]!==_0xe75e49)throw new Error(_0x21ed66+_0x33c928(0xb8)+(_0x33c928(0xba)+_0xe75e49+_0x33c928(0xb1)+_0x271279['scriptsRoot']+_0x33c928(0xb4))+_0x33c928(0xad));}return!_0x271279[_0x33c928(0xc0)]&&(_0x271279['functions']={}),!_0x271279[_0x33c928(0xc2)]&&(_0x271279['lastSync']=''),{'lockData':_0x527629,'appLock':_0x271279};}export async function readBffLockFile(_0x351b69){const _0x46c752=a117_0x4039;try{const _0x43a105=await readFile(_0x351b69,'utf8'),_0x545369=JSON['parse'](_0x43a105);return{'apps':_0x545369[_0x46c752(0xb2)]&&typeof _0x545369[_0x46c752(0xb2)]===_0x46c752(0xbc)?_0x545369[_0x46c752(0xb2)]:{}};}catch(_0x251dfd){if(_0x251dfd['code']===_0x46c752(0xb5))return null;throw new Error(_0x46c752(0xb0)+String(_0x251dfd));}}function a117_0x4039(_0xfbb1aa,_0x59ab20){_0xfbb1aa=_0xfbb1aa-0xad;const _0x4c73ec=a117_0x4c73();let _0x403923=_0x4c73ec[_0xfbb1aa];return _0x403923;}export async function writeBffLockFile(_0x2cdc89,_0x5ee061){const _0x51ac55=a117_0x4039;await mkdir(dirname(_0x2cdc89),{'recursive':!![]}),await writeFile(_0x2cdc89,JSON['stringify'](_0x5ee061,null,0x2),_0x51ac55(0xb7));}function a117_0x4c73(){const _0x46d685=['utf8',':\x20scriptsRoot\x20mismatch\x20—\x20','551724FgwfJt','current\x20\x22','995144FofouI','object','4280XYVHsr','42uspeaH','1903320ifHdGx','functions','7qUnOyU','lastSync','scriptsRoot','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','120344spwEoS','152648nGrTLv','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','\x22\x20vs\x20lock\x20\x22','apps','728446mIONOy','\x22.\x20','ENOENT','1152HLQtlW'];a117_0x4c73=function(){return _0x46d685;};return a117_0x4c73();}
1
+ (function(_0x38f973,_0x43c66d){const _0x4630d2=a155_0x17a6,_0x4e0f62=_0x38f973();while(!![]){try{const _0x538b93=-parseInt(_0x4630d2(0x168))/0x1+-parseInt(_0x4630d2(0x158))/0x2+-parseInt(_0x4630d2(0x159))/0x3*(-parseInt(_0x4630d2(0x169))/0x4)+parseInt(_0x4630d2(0x160))/0x5+parseInt(_0x4630d2(0x154))/0x6*(-parseInt(_0x4630d2(0x15e))/0x7)+-parseInt(_0x4630d2(0x157))/0x8*(-parseInt(_0x4630d2(0x15c))/0x9)+-parseInt(_0x4630d2(0x15d))/0xa*(-parseInt(_0x4630d2(0x155))/0xb);if(_0x538b93===_0x43c66d)break;else _0x4e0f62['push'](_0x4e0f62['shift']());}catch(_0x4be7df){_0x4e0f62['push'](_0x4e0f62['shift']());}}}(a155_0x25f8,0xe32e4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a155_0x25f8(){const _0x4c81d4=['object','scriptsRoot','\x22\x20vs\x20lock\x20\x22','functions','stringify','1261376vdMJAr','8xHgjBT','lastSync','6mOhhDW','11YMBoQt','code','1069616knkRDl','3711418ZZCyky','112884mdpSjV','apps',':\x20scriptsRoot\x20mismatch\x20—\x20','90AfaSPP','12637910vrRYMN','1777811KZSdJY','parse','8127615tKSOFR','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','\x22.\x20'];a155_0x25f8=function(){return _0x4c81d4;};return a155_0x25f8();}export function createEmptyBffLock(){return{'apps':{}};}function a155_0x17a6(_0x4eba14,_0x30007a){_0x4eba14=_0x4eba14-0x154;const _0x25f8b4=a155_0x25f8();let _0x17a630=_0x25f8b4[_0x4eba14];return _0x17a630;}export function ensureLockScope(_0x41cf49,_0x21fb66,_0x47c147,_0xad8bcf){const _0x37a7ee=a155_0x17a6,_0x11ab66={'apps':_0x41cf49[_0x37a7ee(0x15a)]&&typeof _0x41cf49['apps']===_0x37a7ee(0x163)?_0x41cf49[_0x37a7ee(0x15a)]:{}};let _0x15c261=_0x11ab66[_0x37a7ee(0x15a)][_0x21fb66];if(!_0x15c261)return _0x15c261={'scriptsRoot':_0x47c147,'lastSync':'','functions':{}},_0x11ab66[_0x37a7ee(0x15a)][_0x21fb66]=_0x15c261,{'lockData':_0x11ab66,'appLock':_0x15c261};if(!_0x15c261['scriptsRoot'])_0x15c261[_0x37a7ee(0x164)]=_0x47c147;else{if(_0x15c261[_0x37a7ee(0x164)]!==_0x47c147)throw new Error(_0xad8bcf+_0x37a7ee(0x15b)+('current\x20\x22'+_0x47c147+_0x37a7ee(0x165)+_0x15c261[_0x37a7ee(0x164)]+_0x37a7ee(0x162))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x15c261[_0x37a7ee(0x166)]&&(_0x15c261[_0x37a7ee(0x166)]={}),!_0x15c261['lastSync']&&(_0x15c261[_0x37a7ee(0x16a)]=''),{'lockData':_0x11ab66,'appLock':_0x15c261};}export async function readBffLockFile(_0xc09324){const _0x133a2f=a155_0x17a6;try{const _0x383fd0=await readFile(_0xc09324,'utf8'),_0x43cedb=JSON[_0x133a2f(0x15f)](_0x383fd0);return{'apps':_0x43cedb[_0x133a2f(0x15a)]&&typeof _0x43cedb[_0x133a2f(0x15a)]===_0x133a2f(0x163)?_0x43cedb[_0x133a2f(0x15a)]:{}};}catch(_0x376d54){if(_0x376d54[_0x133a2f(0x156)]==='ENOENT')return null;throw new Error(_0x133a2f(0x161)+String(_0x376d54));}}export async function writeBffLockFile(_0x31d0f8,_0x4a0f01){const _0x7a8bfd=a155_0x17a6;await mkdir(dirname(_0x31d0f8),{'recursive':!![]}),await writeFile(_0x31d0f8,JSON[_0x7a8bfd(0x167)](_0x4a0f01,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a119_0x3dd3(){const _0xae961e=['test','578764rFBZjY','961908gvZRMi','toUpperCase','trim','1856475SNCbMD','10038goFiHy','5lAJmul','functionNode','5088296uWpXyz','match','2779580seZIox','98138hOhxDI','toLowerCase','values','3514AcTKjH'];a119_0x3dd3=function(){return _0xae961e;};return a119_0x3dd3();}function a119_0x13b7(_0x1ae4e5,_0x1bd920){_0x1ae4e5=_0x1ae4e5-0x17e;const _0x3dd3f7=a119_0x3dd3();let _0x13b783=_0x3dd3f7[_0x1ae4e5];return _0x13b783;}(function(_0x17233d,_0x187797){const _0x24612b=a119_0x13b7,_0x5dee37=_0x17233d();while(!![]){try{const _0x23ca3c=parseInt(_0x24612b(0x18a))/0x1+parseInt(_0x24612b(0x17f))/0x2+parseInt(_0x24612b(0x180))/0x3+-parseInt(_0x24612b(0x189))/0x4*(parseInt(_0x24612b(0x185))/0x5)+-parseInt(_0x24612b(0x184))/0x6*(-parseInt(_0x24612b(0x18d))/0x7)+-parseInt(_0x24612b(0x187))/0x8+parseInt(_0x24612b(0x183))/0x9;if(_0x23ca3c===_0x187797)break;else _0x5dee37['push'](_0x5dee37['shift']());}catch(_0x32042c){_0x5dee37['push'](_0x5dee37['shift']());}}}(a119_0x3dd3,0x675b1));export function snakeToCamel(_0x1b0ec0){const _0x182bbd=a119_0x13b7;return _0x1b0ec0[_0x182bbd(0x18b)]()['replace'](/_([a-z])/g,(_0x2f3bc0,_0x3946e7)=>_0x3946e7[_0x182bbd(0x181)]());}export function findHookLocationByRemoteId(_0x342517,_0xf323e9){const _0x292224=a119_0x13b7;if(!_0xf323e9)return undefined;for(const _0x42fd01 of Object[_0x292224(0x18c)](_0x342517)){if(_0x42fd01['remoteId']===_0xf323e9&&_0x42fd01['datasetCode']&&_0x42fd01['operationType']&&_0x42fd01['functionNode'])return{'datasetCode':_0x42fd01['datasetCode'],'operationType':_0x42fd01['operationType'],'functionNode':_0x42fd01[_0x292224(0x186)]};}return undefined;}export function extractScriptDescription(_0x492e4a){const _0x1c2fe2=a119_0x13b7,_0x59c9f2=_0x492e4a[_0x1c2fe2(0x188)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x59c9f2?.[0x1]?.[_0x1c2fe2(0x182)]()||undefined;}export function isValidBffFunctionName(_0x551b0a){const _0x16b6c3=a119_0x13b7;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x16b6c3(0x17e)](_0x551b0a);}export function normalizeHookFunctionNode(_0x313cc4){const _0x44792a=a119_0x13b7;if(!_0x313cc4)return undefined;const _0x66cbb5=_0x313cc4[_0x44792a(0x182)]()[_0x44792a(0x18b)]();if(_0x66cbb5==='before'||_0x66cbb5==='after')return _0x66cbb5;return undefined;}
1
+ (function(_0x1d4c89,_0x48d185){const _0xfc7a52=a153_0x54f3,_0x2e5aa3=_0x1d4c89();while(!![]){try{const _0x1c401a=-parseInt(_0xfc7a52(0x1c6))/0x1*(-parseInt(_0xfc7a52(0x1c2))/0x2)+parseInt(_0xfc7a52(0x1d4))/0x3*(parseInt(_0xfc7a52(0x1d6))/0x4)+parseInt(_0xfc7a52(0x1d0))/0x5+parseInt(_0xfc7a52(0x1ca))/0x6*(-parseInt(_0xfc7a52(0x1c7))/0x7)+parseInt(_0xfc7a52(0x1d5))/0x8*(parseInt(_0xfc7a52(0x1cd))/0x9)+-parseInt(_0xfc7a52(0x1cb))/0xa+-parseInt(_0xfc7a52(0x1d2))/0xb*(-parseInt(_0xfc7a52(0x1cf))/0xc);if(_0x1c401a===_0x48d185)break;else _0x2e5aa3['push'](_0x2e5aa3['shift']());}catch(_0x4c44ad){_0x2e5aa3['push'](_0x2e5aa3['shift']());}}}(a153_0x5cb4,0x8116d));function a153_0x54f3(_0x6e70dd,_0x5953da){_0x6e70dd=_0x6e70dd-0x1c0;const _0x5cb4f4=a153_0x5cb4();let _0x54f3b1=_0x5cb4f4[_0x6e70dd];return _0x54f3b1;}export function snakeToCamel(_0x153ff1){const _0x19fbe2=a153_0x54f3;return _0x153ff1[_0x19fbe2(0x1c1)]()['replace'](/_([a-z])/g,(_0x347a74,_0x49e65c)=>_0x49e65c['toUpperCase']());}function a153_0x5cb4(){const _0x56a89b=['trim','toLowerCase','14JvSNhg','values','functionNode','match','64823HMNnZS','91jUmntM','operationType','test','317778TiPLfR','4227920UaEpbA','datasetCode','9YWDEaD','before','12lJiwBx','1990850YwSehQ','remoteId','3401123pCJrcc','after','80037ZjFgDG','2337464JHaFzi','28niPtko'];a153_0x5cb4=function(){return _0x56a89b;};return a153_0x5cb4();}export function findHookLocationByRemoteId(_0xfeeacd,_0x1a4599){const _0x19649a=a153_0x54f3;if(!_0x1a4599)return undefined;for(const _0x239fb8 of Object[_0x19649a(0x1c3)](_0xfeeacd)){if(_0x239fb8[_0x19649a(0x1d1)]===_0x1a4599&&_0x239fb8['datasetCode']&&_0x239fb8[_0x19649a(0x1c8)]&&_0x239fb8[_0x19649a(0x1c4)])return{'datasetCode':_0x239fb8[_0x19649a(0x1cc)],'operationType':_0x239fb8[_0x19649a(0x1c8)],'functionNode':_0x239fb8[_0x19649a(0x1c4)]};}return undefined;}export function extractScriptDescription(_0x441f37){const _0xc907cf=a153_0x54f3,_0x19715b=_0x441f37[_0xc907cf(0x1c5)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x19715b?.[0x1]?.[_0xc907cf(0x1c0)]()||undefined;}export function isValidBffFunctionName(_0x55a6b0){const _0x4a17d4=a153_0x54f3;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x4a17d4(0x1c9)](_0x55a6b0);}export function normalizeHookFunctionNode(_0xed7655){const _0x419b2c=a153_0x54f3;if(!_0xed7655)return undefined;const _0xb3a4f9=_0xed7655['trim']()[_0x419b2c(0x1c1)]();if(_0xb3a4f9===_0x419b2c(0x1ce)||_0xb3a4f9===_0x419b2c(0x1d3))return _0xb3a4f9;return undefined;}
@@ -1 +1 @@
1
- (function(_0x1ad34b,_0x375b57){const _0x368629=a120_0x9239,_0x152be3=_0x1ad34b();while(!![]){try{const _0x4a7446=-parseInt(_0x368629(0x1d9))/0x1+parseInt(_0x368629(0x1dc))/0x2*(parseInt(_0x368629(0x1c0))/0x3)+parseInt(_0x368629(0x1d4))/0x4+parseInt(_0x368629(0x1be))/0x5*(parseInt(_0x368629(0x1d8))/0x6)+-parseInt(_0x368629(0x1d1))/0x7+parseInt(_0x368629(0x1ce))/0x8*(-parseInt(_0x368629(0x1cf))/0x9)+-parseInt(_0x368629(0x1c2))/0xa*(-parseInt(_0x368629(0x1ca))/0xb);if(_0x4a7446===_0x375b57)break;else _0x152be3['push'](_0x152be3['shift']());}catch(_0x31b6d7){_0x152be3['push'](_0x152be3['shift']());}}}(a120_0x3e14,0xf1b5b));import{listDatasets}from'../core/api-client.js';function a120_0x3e14(){const _0x5ad8d2=['8OkLXDn','15402483ellzme','get','2654365QCbMdk','toLowerCase','No\x20database\x20matching\x20\x22','1601348MSXLuV','join','\x22.\x20Available:\x20','\x22\x20matches\x20multiple\x20databases:\x20','198VjHOho','1344604uIwYhr','find','filter','68548qvRzvh','116330bNgdUa','entries','147mXUadA','isNaN','93910oMJMra','map','.\x20Be\x20more\x20specific.','includes','dbtableConfig','dbId','has','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','1848pZFgSS','dbName','length','set'];a120_0x3e14=function(){return _0x5ad8d2;};return a120_0x3e14();}const cache=new Map();function a120_0x9239(_0x247e0e,_0x448da5){_0x247e0e=_0x247e0e-0x1be;const _0x3e1412=a120_0x3e14();let _0x9239a7=_0x3e1412[_0x247e0e];return _0x9239a7;}export async function listDatabases(_0x414fa3){const _0x4b354a=a120_0x9239;if(cache[_0x4b354a(0x1c8)](_0x414fa3))return cache[_0x4b354a(0x1d0)](_0x414fa3);const _0x491038=await listDatasets(_0x414fa3),_0x699cfc=new Map();for(const _0x53a07d of _0x491038){const _0x57489e=_0x53a07d[_0x4b354a(0x1c6)];_0x57489e?.[_0x4b354a(0x1c7)]!=null&&_0x699cfc[_0x4b354a(0x1cd)](_0x57489e[_0x4b354a(0x1c7)],_0x57489e['dbName']??'db-'+_0x57489e[_0x4b354a(0x1c7)]);}const _0x4ba7df=[..._0x699cfc[_0x4b354a(0x1bf)]()][_0x4b354a(0x1c3)](([_0x302700,_0x8897fa])=>({'dbId':_0x302700,'dbName':_0x8897fa}));return cache[_0x4b354a(0x1cd)](_0x414fa3,_0x4ba7df),_0x4ba7df;}export async function resolveDb(_0x56594c,_0x121936){const _0x128cde=a120_0x9239,_0x57655a=await listDatabases(_0x56594c);if(_0x57655a['length']===0x0)return{'resolved':[],'error':_0x128cde(0x1c9)};if(!_0x121936)return{'resolved':_0x57655a};const _0x1f46cd=Number(_0x121936);if(!Number[_0x128cde(0x1c1)](_0x1f46cd)){const _0x1d35eb=_0x57655a[_0x128cde(0x1da)](_0x1391cf=>_0x1391cf[_0x128cde(0x1c7)]===_0x1f46cd);if(_0x1d35eb)return{'resolved':[_0x1d35eb]};}const _0x1cb705=_0x121936['toLowerCase'](),_0x2ba013=_0x57655a[_0x128cde(0x1db)](_0x2d548c=>_0x2d548c['dbName'][_0x128cde(0x1d2)]()[_0x128cde(0x1c5)](_0x1cb705));if(_0x2ba013[_0x128cde(0x1cc)]>0x0)return{'resolved':_0x2ba013};const _0x3fe07e=_0x57655a[_0x128cde(0x1c3)](_0x2a738b=>_0x2a738b['dbName']+'\x20('+_0x2a738b[_0x128cde(0x1c7)]+')')[_0x128cde(0x1d5)](',\x20');return{'resolved':[],'error':_0x128cde(0x1d3)+_0x121936+_0x128cde(0x1d6)+_0x3fe07e};}export async function resolveOneDb(_0x6ac06e,_0x18183c){const _0x2c6818=a120_0x9239,{resolved:_0xea5d41,error:_0xd48204}=await resolveDb(_0x6ac06e,_0x18183c);if(_0xd48204)return{'db':null,'error':_0xd48204};if(_0xea5d41['length']===0x1)return{'db':_0xea5d41[0x0]};if(!_0x18183c){const _0xf70b1f=_0xea5d41['map'](_0x16cdbe=>_0x16cdbe['dbName']+'\x20('+_0x16cdbe['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xf70b1f};}const _0xd0756=_0xea5d41[_0x2c6818(0x1c3)](_0x1df999=>_0x1df999[_0x2c6818(0x1cb)]+'\x20('+_0x1df999['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'\x22'+_0x18183c+_0x2c6818(0x1d7)+_0xd0756+_0x2c6818(0x1c4)};}export async function getDbName(_0x2dbe60,_0x1d348c){const _0x3106b0=a120_0x9239,_0x533bd0=await listDatabases(_0x2dbe60);return _0x533bd0[_0x3106b0(0x1da)](_0x18a96c=>_0x18a96c[_0x3106b0(0x1c7)]===_0x1d348c)?.[_0x3106b0(0x1cb)];}
1
+ function a158_0x33af(_0x3e5dbb,_0x11ad86){_0x3e5dbb=_0x3e5dbb-0x86;const _0x48f1b9=a158_0x48f1();let _0x33af24=_0x48f1b9[_0x3e5dbb];return _0x33af24;}(function(_0x374fc5,_0x121d92){const _0x2c2929=a158_0x33af,_0xb24d72=_0x374fc5();while(!![]){try{const _0x284037=parseInt(_0x2c2929(0x8b))/0x1*(-parseInt(_0x2c2929(0x87))/0x2)+-parseInt(_0x2c2929(0xa2))/0x3+parseInt(_0x2c2929(0x9e))/0x4+-parseInt(_0x2c2929(0x8a))/0x5*(-parseInt(_0x2c2929(0xa1))/0x6)+parseInt(_0x2c2929(0x90))/0x7*(parseInt(_0x2c2929(0x9f))/0x8)+parseInt(_0x2c2929(0x96))/0x9*(-parseInt(_0x2c2929(0x93))/0xa)+parseInt(_0x2c2929(0x9c))/0xb;if(_0x284037===_0x121d92)break;else _0xb24d72['push'](_0xb24d72['shift']());}catch(_0x19ebf3){_0xb24d72['push'](_0xb24d72['shift']());}}}(a158_0x48f1,0xb9d4b));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x44414c){const _0x122f19=a158_0x33af;if(cache[_0x122f19(0x8d)](_0x44414c))return cache[_0x122f19(0x97)](_0x44414c);const _0x1fa81b=await listDatasets(_0x44414c),_0x3ed565=new Map();for(const _0x452276 of _0x1fa81b){const _0x17004f=_0x452276[_0x122f19(0x8f)];_0x17004f?.[_0x122f19(0xa6)]!=null&&_0x3ed565['set'](_0x17004f['dbId'],_0x17004f[_0x122f19(0x8e)]??_0x122f19(0x91)+_0x17004f['dbId']);}const _0xbf1050=[..._0x3ed565[_0x122f19(0xa4)]()]['map'](([_0x54686d,_0x4f1476])=>({'dbId':_0x54686d,'dbName':_0x4f1476}));return cache[_0x122f19(0x9a)](_0x44414c,_0xbf1050),_0xbf1050;}export async function resolveDb(_0x3956d7,_0x4885ad){const _0x45e590=a158_0x33af,_0x2ce091=await listDatabases(_0x3956d7);if(_0x2ce091['length']===0x0)return{'resolved':[],'error':_0x45e590(0x88)};if(!_0x4885ad)return{'resolved':_0x2ce091};const _0x269264=Number(_0x4885ad);if(!Number[_0x45e590(0x94)](_0x269264)){const _0x791ed7=_0x2ce091[_0x45e590(0x99)](_0x52cf0e=>_0x52cf0e[_0x45e590(0xa6)]===_0x269264);if(_0x791ed7)return{'resolved':[_0x791ed7]};}const _0x20d0ff=_0x4885ad[_0x45e590(0x92)](),_0x2f8a29=_0x2ce091[_0x45e590(0x98)](_0x4c9fa2=>_0x4c9fa2[_0x45e590(0x8e)]['toLowerCase']()[_0x45e590(0x8c)](_0x20d0ff));if(_0x2f8a29[_0x45e590(0x86)]>0x0)return{'resolved':_0x2f8a29};const _0x2a0bb2=_0x2ce091[_0x45e590(0xa3)](_0x4ab7aa=>_0x4ab7aa[_0x45e590(0x8e)]+'\x20('+_0x4ab7aa[_0x45e590(0xa6)]+')')[_0x45e590(0x89)](',\x20');return{'resolved':[],'error':_0x45e590(0x9b)+_0x4885ad+_0x45e590(0xa5)+_0x2a0bb2};}function a158_0x48f1(){const _0x1a1279=['1chsPDt','includes','has','dbName','dbtableConfig','2555TGqggC','db-','toLowerCase','20RNzQjA','isNaN','.\x20Be\x20more\x20specific.','3753873bPocPs','get','filter','find','set','No\x20database\x20matching\x20\x22','14098953NIsdIm','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','2189060fvxDsY','26800mTWTdQ','\x22\x20matches\x20multiple\x20databases:\x20','582gLOYrd','2487807BRDZhH','map','entries','\x22.\x20Available:\x20','dbId','length','2960648FQQFmg','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','join','43980yeXtRO'];a158_0x48f1=function(){return _0x1a1279;};return a158_0x48f1();}export async function resolveOneDb(_0x29d3a9,_0x2a68cc){const _0x20c3e9=a158_0x33af,{resolved:_0x418783,error:_0x1c91c3}=await resolveDb(_0x29d3a9,_0x2a68cc);if(_0x1c91c3)return{'db':null,'error':_0x1c91c3};if(_0x418783[_0x20c3e9(0x86)]===0x1)return{'db':_0x418783[0x0]};if(!_0x2a68cc){const _0x3eb3ca=_0x418783[_0x20c3e9(0xa3)](_0x5e2a85=>_0x5e2a85['dbName']+'\x20('+_0x5e2a85['dbId']+')')[_0x20c3e9(0x89)](',\x20');return{'db':null,'error':_0x20c3e9(0x9d)+_0x3eb3ca};}const _0x1a7d12=_0x418783['map'](_0x802033=>_0x802033[_0x20c3e9(0x8e)]+'\x20('+_0x802033[_0x20c3e9(0xa6)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x2a68cc+_0x20c3e9(0xa0)+_0x1a7d12+_0x20c3e9(0x95)};}export async function getDbName(_0x7c9d88,_0x45c44e){const _0x21706d=a158_0x33af,_0x312791=await listDatabases(_0x7c9d88);return _0x312791[_0x21706d(0x99)](_0x15866c=>_0x15866c['dbId']===_0x45c44e)?.[_0x21706d(0x8e)];}
@@ -1 +1 @@
1
- function a121_0x13e4(_0x43059d,_0x87d0b0){_0x43059d=_0x43059d-0x79;const _0x306e08=a121_0x306e();let _0x13e42f=_0x306e08[_0x43059d];return _0x13e42f;}function a121_0x306e(){const _0x244a53=['884821hXmxKU','18fkMfQa','1996iRzIJx','length','trim','1975086ZkvPGu','78513bJVSTX','push','toUpperCase','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4741tdgCHU','\x20query\x20targeting\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE','matchAll','startsWith','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','INSERT','50XzOlYv','UNKNOWN','309yIByXZ','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','includes','UPDATE','SELECT','replace','reason','2220vpVcLC','20Uizijq','isDangerous','DDL','join','match','from','add','unknown\x20table(s)','split','test','WITH','type','131872nHlrOj','3315112TKxPIN','\x20with\x20parameters:\x20'];a121_0x306e=function(){return _0x244a53;};return a121_0x306e();}(function(_0x46cb9d,_0x29e54f){const _0x372dfa=a121_0x13e4,_0x55a9e9=_0x46cb9d();while(!![]){try{const _0x4d4cc4=parseInt(_0x372dfa(0x7f))/0x1+-parseInt(_0x372dfa(0x7b))/0x2*(-parseInt(_0x372dfa(0x8d))/0x3)+-parseInt(_0x372dfa(0xa1))/0x4*(-parseInt(_0x372dfa(0x8b))/0x5)+parseInt(_0x372dfa(0x7a))/0x6*(-parseInt(_0x372dfa(0x79))/0x7)+-parseInt(_0x372dfa(0xa2))/0x8+parseInt(_0x372dfa(0x7e))/0x9*(parseInt(_0x372dfa(0x95))/0xa)+parseInt(_0x372dfa(0x83))/0xb*(parseInt(_0x372dfa(0x94))/0xc);if(_0x4d4cc4===_0x29e54f)break;else _0x55a9e9['push'](_0x55a9e9['shift']());}catch(_0xa5140){_0x55a9e9['push'](_0x55a9e9['shift']());}}}(a121_0x306e,0x39a00));export function detectSqlType(_0x342fa){const _0x2a8346=a121_0x13e4;if(!_0x342fa?.[_0x2a8346(0x7d)]())return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x47e48e=_0x342fa[_0x2a8346(0x92)](/#\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/\$\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2a8346(0x92)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x3bd461=_0x47e48e[_0x2a8346(0x9d)]('\x0a');let _0x56f5f4='';for(const _0x553d6f of _0x3bd461){const _0x3f1b7c=_0x553d6f['trim']();if(!_0x3f1b7c||_0x3f1b7c['startsWith']('--')||_0x3f1b7c[_0x2a8346(0x88)]('/*'))continue;_0x56f5f4=_0x3f1b7c;break;}const _0x3ca741=_0x56f5f4[_0x2a8346(0x81)]();if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x91))||_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x9f))){const _0x5ebb4b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x47e48e);return{'type':_0x2a8346(0x91),'isSelectOnly':!_0x5ebb4b,'isDangerous':_0x5ebb4b,'reason':_0x5ebb4b?_0x2a8346(0x85):undefined};}if(_0x3ca741['startsWith'](_0x2a8346(0x8a)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x90)))return{'type':_0x2a8346(0x90),'isSelectOnly':![],'isDangerous':![]};if(_0x3ca741['startsWith'](_0x2a8346(0x86)))return{'type':_0x2a8346(0x86),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2a8346(0x89)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2a8346(0x9e)](_0x3ca741))return{'type':_0x2a8346(0x97),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x287034){const _0x240287=a121_0x13e4,_0x1a8c3a=_0x287034[_0x240287(0x92)](/#\{[^}]*\}/g,'?')[_0x240287(0x92)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x240287(0x92)](/--.*$/gm,'')[_0x240287(0x92)](/\/\*[\s\S]*?\*\//g,''),_0x3f9791=[],_0x78c1a5=_0x1a8c3a[_0x240287(0x99)](/FROM\s+([^\s,)(]+)/i);if(_0x78c1a5?.[0x1])_0x3f9791[_0x240287(0x80)](_0x78c1a5[0x1][_0x240287(0x92)](/[`"]/g,''));for(const _0x4fb251 of _0x1a8c3a[_0x240287(0x87)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x532bd0=_0x4fb251[0x1]?.['replace'](/[`"]/g,'');if(_0x532bd0&&!_0x3f9791[_0x240287(0x8f)](_0x532bd0))_0x3f9791[_0x240287(0x80)](_0x532bd0);}const _0x4d8bef=_0x1a8c3a[_0x240287(0x99)](/INTO\s+([^\s(]+)/i);if(_0x4d8bef?.[0x1]){const _0x17020a=_0x4d8bef[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791[_0x240287(0x8f)](_0x17020a))_0x3f9791[_0x240287(0x80)](_0x17020a);}const _0x544653=_0x1a8c3a[_0x240287(0x99)](/UPDATE\s+([^\s,)(]+)/i);if(_0x544653?.[0x1]){const _0x1d75ca=_0x544653[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791['includes'](_0x1d75ca))_0x3f9791[_0x240287(0x80)](_0x1d75ca);}return _0x3f9791;}function extractParameters(_0x2dc3fd){const _0x1d4f22=a121_0x13e4,_0x4ab819=new Set();for(const _0x53a1be of _0x2dc3fd['matchAll'](/#\{(\w+)\}/g))if(_0x53a1be[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x53a1be[0x1]);for(const _0x223ae4 of _0x2dc3fd[_0x1d4f22(0x87)](/\$\{(\w+)\}/g))if(_0x223ae4[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x223ae4[0x1]);return Array[_0x1d4f22(0x9a)](_0x4ab819);}export function validateSql(_0x365275){const _0x2eebfa=a121_0x13e4,_0x243e80=detectSqlType(_0x365275),_0xb7c15c=extractTables(_0x365275),_0x2507e8=extractParameters(_0x365275);if(_0x243e80[_0x2eebfa(0x96)])return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0x93)]||_0x243e80['type']+_0x2eebfa(0x8e)};if(_0x243e80[_0x2eebfa(0xa0)]===_0x2eebfa(0x8c))return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x2eebfa(0x82)};return{'valid':!![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0xa0)]+_0x2eebfa(0x84)+(_0xb7c15c[_0x2eebfa(0x7c)]?_0xb7c15c[_0x2eebfa(0x98)](',\x20'):_0x2eebfa(0x9c))+(_0x2507e8[_0x2eebfa(0x7c)]?_0x2eebfa(0xa3)+_0x2507e8[_0x2eebfa(0x98)](',\x20'):'')};}
1
+ function a156_0x384c(_0x347b55,_0x120c6e){_0x347b55=_0x347b55-0x9d;const _0x4d08ff=a156_0x4d08();let _0x384cdd=_0x4d08ff[_0x347b55];return _0x384cdd;}(function(_0x17bec4,_0x57c697){const _0xb3155c=a156_0x384c,_0x575551=_0x17bec4();while(!![]){try{const _0x4b008d=-parseInt(_0xb3155c(0xb0))/0x1+-parseInt(_0xb3155c(0xae))/0x2*(-parseInt(_0xb3155c(0xa1))/0x3)+parseInt(_0xb3155c(0xbc))/0x4*(-parseInt(_0xb3155c(0xa8))/0x5)+-parseInt(_0xb3155c(0xbd))/0x6*(parseInt(_0xb3155c(0xa5))/0x7)+-parseInt(_0xb3155c(0xa4))/0x8+-parseInt(_0xb3155c(0xc2))/0x9*(-parseInt(_0xb3155c(0xaa))/0xa)+parseInt(_0xb3155c(0xbe))/0xb*(-parseInt(_0xb3155c(0xbf))/0xc);if(_0x4b008d===_0x57c697)break;else _0x575551['push'](_0x575551['shift']());}catch(_0x3f2b53){_0x575551['push'](_0x575551['shift']());}}}(a156_0x4d08,0x7d2bb));function a156_0x4d08(){const _0x3fd58f=['isDangerous','288juUNxi','add','from','DDL','match','push','3FRLnRH','length','join','2105424CuwUly','2096549iskCKn','includes','unknown\x20table(s)','288485hRSGTh','DELETE','223160gevFbl','SQL\x20content\x20is\x20empty','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','trim','1990100BBkoPO','UNKNOWN','350987sXNfXM','INSERT','type','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','WITH','test','\x20with\x20parameters:\x20','startsWith','SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','\x20query\x20targeting\x20','4hndDzQ','6UYMiwb','2476034LFkjmA','12fxduXb','matchAll'];a156_0x4d08=function(){return _0x3fd58f;};return a156_0x4d08();}export function detectSqlType(_0x1d9d75){const _0x510aad=a156_0x384c;if(!_0x1d9d75?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x510aad(0xab)};const _0x3cb7e6=_0x1d9d75[_0x510aad(0xba)](/#\{[^}]*\}/g,'?')[_0x510aad(0xba)](/\$\{[^}]*\}/g,'?')[_0x510aad(0xba)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x510aad(0xba)](/\/\*[\s\S]*?\*\//g,'')[_0x510aad(0xad)](),_0x2cd698=_0x3cb7e6['split']('\x0a');let _0xe7b2a2='';for(const _0x5ac07f of _0x2cd698){const _0x16ec6a=_0x5ac07f[_0x510aad(0xad)]();if(!_0x16ec6a||_0x16ec6a[_0x510aad(0xb7)]('--')||_0x16ec6a[_0x510aad(0xb7)]('/*'))continue;_0xe7b2a2=_0x16ec6a;break;}const _0x46620f=_0xe7b2a2['toUpperCase']();if(_0x46620f['startsWith'](_0x510aad(0xb8))||_0x46620f[_0x510aad(0xb7)](_0x510aad(0xb4))){const _0x539a6f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x510aad(0xb5)](_0x3cb7e6);return{'type':_0x510aad(0xb8),'isSelectOnly':!_0x539a6f,'isDangerous':_0x539a6f,'reason':_0x539a6f?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x46620f[_0x510aad(0xb7)](_0x510aad(0xb1)))return{'type':_0x510aad(0xb1),'isSelectOnly':![],'isDangerous':![]};if(_0x46620f[_0x510aad(0xb7)]('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x46620f[_0x510aad(0xb7)](_0x510aad(0xa9)))return{'type':_0x510aad(0xa9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x510aad(0xb3)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x510aad(0xb5)](_0x46620f))return{'type':_0x510aad(0x9e),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x510aad(0xaf),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x41e68f){const _0x989898=a156_0x384c,_0x2dc704=_0x41e68f['replace'](/#\{[^}]*\}/g,'?')[_0x989898(0xba)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x989898(0xba)](/\/\*[\s\S]*?\*\//g,''),_0x34ac81=[],_0x24d72d=_0x2dc704[_0x989898(0x9f)](/FROM\s+([^\s,)(]+)/i);if(_0x24d72d?.[0x1])_0x34ac81[_0x989898(0xa0)](_0x24d72d[0x1]['replace'](/[`"]/g,''));for(const _0x41830d of _0x2dc704[_0x989898(0xc0)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x48ef63=_0x41830d[0x1]?.[_0x989898(0xba)](/[`"]/g,'');if(_0x48ef63&&!_0x34ac81['includes'](_0x48ef63))_0x34ac81[_0x989898(0xa0)](_0x48ef63);}const _0x5a4122=_0x2dc704[_0x989898(0x9f)](/INTO\s+([^\s(]+)/i);if(_0x5a4122?.[0x1]){const _0x3a39ea=_0x5a4122[0x1][_0x989898(0xba)](/[`"]/g,'');if(!_0x34ac81[_0x989898(0xa6)](_0x3a39ea))_0x34ac81[_0x989898(0xa0)](_0x3a39ea);}const _0xa43b53=_0x2dc704['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0xa43b53?.[0x1]){const _0x27822a=_0xa43b53[0x1][_0x989898(0xba)](/[`"]/g,'');if(!_0x34ac81['includes'](_0x27822a))_0x34ac81[_0x989898(0xa0)](_0x27822a);}return _0x34ac81;}function extractParameters(_0x1eeb2a){const _0x810589=a156_0x384c,_0x13c6aa=new Set();for(const _0x3987f7 of _0x1eeb2a[_0x810589(0xc0)](/#\{(\w+)\}/g))if(_0x3987f7[0x1])_0x13c6aa[_0x810589(0xc3)](_0x3987f7[0x1]);for(const _0x2604bf of _0x1eeb2a[_0x810589(0xc0)](/\$\{(\w+)\}/g))if(_0x2604bf[0x1])_0x13c6aa[_0x810589(0xc3)](_0x2604bf[0x1]);return Array[_0x810589(0x9d)](_0x13c6aa);}export function validateSql(_0x244f6f){const _0x3d01a4=a156_0x384c,_0x1f0482=detectSqlType(_0x244f6f),_0xf40678=extractTables(_0x244f6f),_0x13267d=extractParameters(_0x244f6f);if(_0x1f0482[_0x3d01a4(0xc1)])return{'valid':![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x1f0482['reason']||_0x1f0482[_0x3d01a4(0xb2)]+_0x3d01a4(0xb9)};if(_0x1f0482['type']===_0x3d01a4(0xaf))return{'valid':![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x3d01a4(0xac)};return{'valid':!![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x1f0482[_0x3d01a4(0xb2)]+_0x3d01a4(0xbb)+(_0xf40678['length']?_0xf40678[_0x3d01a4(0xa3)](',\x20'):_0x3d01a4(0xa7))+(_0x13267d[_0x3d01a4(0xa2)]?_0x3d01a4(0xb6)+_0x13267d[_0x3d01a4(0xa3)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a122_0x2b9ca9=a122_0x3b38;(function(_0x12808b,_0x122dd9){const _0x42b99c=a122_0x3b38,_0xff58e2=_0x12808b();while(!![]){try{const _0x5ee8c2=-parseInt(_0x42b99c(0x167))/0x1+parseInt(_0x42b99c(0x170))/0x2+-parseInt(_0x42b99c(0x16f))/0x3+parseInt(_0x42b99c(0x16a))/0x4*(-parseInt(_0x42b99c(0x169))/0x5)+-parseInt(_0x42b99c(0x163))/0x6+parseInt(_0x42b99c(0x164))/0x7+parseInt(_0x42b99c(0x168))/0x8;if(_0x5ee8c2===_0x122dd9)break;else _0xff58e2['push'](_0xff58e2['shift']());}catch(_0x10e419){_0xff58e2['push'](_0xff58e2['shift']());}}}(a122_0x4688,0xe07e4));function a122_0x3b38(_0x4c5bc1,_0x53cc27){_0x4c5bc1=_0x4c5bc1-0x162;const _0x468891=a122_0x4688();let _0x3b3875=_0x468891[_0x4c5bc1];return _0x3b3875;}function a122_0x4688(){const _0x4d7892=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','257976OkumKg','108311jmNqvP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','join','1553812imyxfQ','23272912oNBAFc','5JlmnOg','620848VIlBDg','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','2074314irvEJs','876790fyXGzD','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`'];a122_0x4688=function(){return _0x4d7892;};return a122_0x4688();}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':a122_0x2b9ca9(0x172)+CLI_BIN_NAME+a122_0x2b9ca9(0x16d),'configMissingHint':[a122_0x2b9ca9(0x16b)+CLI_BIN_NAME+a122_0x2b9ca9(0x162),a122_0x2b9ca9(0x16e)+CLI_BIN_NAME+a122_0x2b9ca9(0x165)][a122_0x2b9ca9(0x166)](a122_0x2b9ca9(0x16c)),'notInProjectHint':a122_0x2b9ca9(0x171)});
1
+ const a147_0x48c60b=a147_0xa6ba;function a147_0xa6ba(_0x3a8a46,_0x2a7168){_0x3a8a46=_0x3a8a46-0xbd;const _0x33ce36=a147_0x33ce();let _0xa6baac=_0x33ce36[_0x3a8a46];return _0xa6baac;}(function(_0x496fba,_0x23886d){const _0x2a5a3a=a147_0xa6ba,_0x2629c2=_0x496fba();while(!![]){try{const _0x5e0ce6=parseInt(_0x2a5a3a(0xcd))/0x1+parseInt(_0x2a5a3a(0xbd))/0x2*(parseInt(_0x2a5a3a(0xc3))/0x3)+parseInt(_0x2a5a3a(0xc7))/0x4*(parseInt(_0x2a5a3a(0xcb))/0x5)+-parseInt(_0x2a5a3a(0xc9))/0x6*(-parseInt(_0x2a5a3a(0xbf))/0x7)+parseInt(_0x2a5a3a(0xbe))/0x8+-parseInt(_0x2a5a3a(0xc8))/0x9*(parseInt(_0x2a5a3a(0xcc))/0xa)+-parseInt(_0x2a5a3a(0xc0))/0xb;if(_0x5e0ce6===_0x23886d)break;else _0x2629c2['push'](_0x2629c2['shift']());}catch(_0x21013b){_0x2629c2['push'](_0x2629c2['shift']());}}}(a147_0x33ce,0xb82b6));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a147_0x33ce(){const _0x3c48d6=['4suVsfV','5525216sGQViV','258636bqgPWJ','20244708UkEloX','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1716609VyxBrF','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','4BSMfbJ','18JVFLhz','36BJQkxN','Set\x20appcode\x20via\x20`','5646675pZMRQp','4024190pJKYNo','213543iUSSjP'];a147_0x33ce=function(){return _0x3c48d6;};return a147_0x33ce();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a147_0x48c60b(0xc5),'configMissingHint':[a147_0x48c60b(0xca)+CLI_BIN_NAME+a147_0x48c60b(0xc2),a147_0x48c60b(0xc6)+CLI_BIN_NAME+a147_0x48c60b(0xc4)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a147_0x48c60b(0xc1)});
@@ -1 +1 @@
1
- function a123_0x1e39(){var _0x54d8b9=['589925djPqaN','1760864aoGccD','12842982GoXnzA','940146ggIsZO','7vYwzev','397199dKGsOR','1761704eudZAM','338NmdpZQ','2532swANPW'];a123_0x1e39=function(){return _0x54d8b9;};return a123_0x1e39();}(function(_0x2dbe91,_0x30277c){var _0x26feb2=a123_0x58d5,_0x3d2598=_0x2dbe91();while(!![]){try{var _0x235c39=-parseInt(_0x26feb2(0x160))/0x1+parseInt(_0x26feb2(0x162))/0x2*(-parseInt(_0x26feb2(0x15a))/0x3)+-parseInt(_0x26feb2(0x15c))/0x4+-parseInt(_0x26feb2(0x15b))/0x5+-parseInt(_0x26feb2(0x15e))/0x6*(-parseInt(_0x26feb2(0x15f))/0x7)+-parseInt(_0x26feb2(0x161))/0x8+parseInt(_0x26feb2(0x15d))/0x9;if(_0x235c39===_0x30277c)break;else _0x3d2598['push'](_0x3d2598['shift']());}catch(_0x378ea3){_0x3d2598['push'](_0x3d2598['shift']());}}}(a123_0x1e39,0x40ce0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a123_0x58d5(_0xe83926,_0x41bf49){_0xe83926=_0xe83926-0x15a;var _0x1e390c=a123_0x1e39();var _0x58d5e3=_0x1e390c[_0xe83926];return _0x58d5e3;}import{buildAllFlags as a123_0x2a600f}from'@lovrabet/cli-framework';export function buildAllFlags(_0x6622f2){return a123_0x2a600f(_0x6622f2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x3f91ee,_0x3a98e7){var _0x2ebfb4=a46_0x229c,_0x152b60=_0x3f91ee();while(!![]){try{var _0x4b1372=-parseInt(_0x2ebfb4(0x1b7))/0x1*(parseInt(_0x2ebfb4(0x1bc))/0x2)+parseInt(_0x2ebfb4(0x1b4))/0x3+parseInt(_0x2ebfb4(0x1bb))/0x4+-parseInt(_0x2ebfb4(0x1ba))/0x5+parseInt(_0x2ebfb4(0x1b9))/0x6+parseInt(_0x2ebfb4(0x1b6))/0x7*(parseInt(_0x2ebfb4(0x1b5))/0x8)+-parseInt(_0x2ebfb4(0x1b8))/0x9*(parseInt(_0x2ebfb4(0x1bd))/0xa);if(_0x4b1372===_0x3a98e7)break;else _0x152b60['push'](_0x152b60['shift']());}catch(_0x4f3ea9){_0x152b60['push'](_0x152b60['shift']());}}}(a46_0x330e,0xcf61f));function a46_0x330e(){var _0x310965=['28142SvaRUw','54KjkTtW','188172rejiLg','7082620usEiav','5443780HmQsSI','38XYkTTt','1538300FblNIR','4295142eycTDH','248JvvAvC','203140eAnNvw'];a46_0x330e=function(){return _0x310965;};return a46_0x330e();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a46_0x1a2071}from'@lovrabet/cli-framework';function a46_0x229c(_0x12b1e9,_0x54d24f){_0x12b1e9=_0x12b1e9-0x1b4;var _0x330e14=a46_0x330e();var _0x229cbe=_0x330e14[_0x12b1e9];return _0x229cbe;}export function buildAllFlags(_0x1703f9){return a46_0x1a2071(_0x1703f9,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a124_0x591484=a124_0x3e7b;function a124_0x536c(){const _0x4cd34e=['6erLjHy','1842597hUUFbv','1652206ZQHRXY','8qeQlod','validateFlags','3979055fuarQK','31957431AubrXK','parseFlags','2083907JMbwCe','10AIGmtf','3064329xZafFK','18uryJyI','5145784qYaelY'];a124_0x536c=function(){return _0x4cd34e;};return a124_0x536c();}(function(_0x4ebaf3,_0x49d0a8){const _0x286ac2=a124_0x3e7b,_0x53c68e=_0x4ebaf3();while(!![]){try{const _0x26608a=parseInt(_0x286ac2(0x111))/0x1+parseInt(_0x286ac2(0x10f))/0x2*(-parseInt(_0x286ac2(0x110))/0x3)+-parseInt(_0x286ac2(0x10e))/0x4+parseInt(_0x286ac2(0x114))/0x5+parseInt(_0x286ac2(0x10d))/0x6*(-parseInt(_0x286ac2(0x117))/0x7)+-parseInt(_0x286ac2(0x112))/0x8*(parseInt(_0x286ac2(0x10c))/0x9)+parseInt(_0x286ac2(0x118))/0xa*(parseInt(_0x286ac2(0x115))/0xb);if(_0x26608a===_0x49d0a8)break;else _0x53c68e['push'](_0x53c68e['shift']());}catch(_0x25df46){_0x53c68e['push'](_0x53c68e['shift']());}}}(a124_0x536c,0xf1d93));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a124_0x3e7b(_0x3982ff,_0x37fb2a){_0x3982ff=_0x3982ff-0x10c;const _0x536c2a=a124_0x536c();let _0x3e7b4c=_0x536c2a[_0x3982ff];return _0x3e7b4c;}export const parseFlags=helpers[a124_0x591484(0x116)];export const validateFlags=helpers[a124_0x591484(0x113)];
1
+ const a45_0x3b5e5d=a45_0x5f47;(function(_0x44983b,_0x38557c){const _0x3c2114=a45_0x5f47,_0x4dc0cf=_0x44983b();while(!![]){try{const _0x2b19b6=-parseInt(_0x3c2114(0x1a9))/0x1*(-parseInt(_0x3c2114(0x1aa))/0x2)+parseInt(_0x3c2114(0x1a7))/0x3+parseInt(_0x3c2114(0x1a1))/0x4*(-parseInt(_0x3c2114(0x1a6))/0x5)+-parseInt(_0x3c2114(0x1ab))/0x6+-parseInt(_0x3c2114(0x1a2))/0x7*(parseInt(_0x3c2114(0x1a4))/0x8)+parseInt(_0x3c2114(0x1ac))/0x9+-parseInt(_0x3c2114(0x1a8))/0xa*(-parseInt(_0x3c2114(0x1a3))/0xb);if(_0x2b19b6===_0x38557c)break;else _0x4dc0cf['push'](_0x4dc0cf['shift']());}catch(_0x3642cc){_0x4dc0cf['push'](_0x4dc0cf['shift']());}}}(a45_0x1f6c,0xcd1bd));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a45_0x5f47(_0x2e4fef,_0x3a9d10){_0x2e4fef=_0x2e4fef-0x1a1;const _0x1f6cc8=a45_0x1f6c();let _0x5f4744=_0x1f6cc8[_0x2e4fef];return _0x5f4744;}export const parseFlags=helpers[a45_0x3b5e5d(0x1a5)];export const validateFlags=helpers['validateFlags'];function a45_0x1f6c(){const _0x2a4bfb=['83026FfxXWL','8730822pgFVfE','10253151aadxAn','4VpTmys','10790619ccRQkb','11OYbiJx','8LYgtBJ','parseFlags','6604915LKlMFj','3469791tyJFHa','18241010pxmVzM','25XfJOTl'];a45_0x1f6c=function(){return _0x2a4bfb;};return a45_0x1f6c();}
@@ -1 +1 @@
1
- const a125_0x59d30b=a125_0x3e31;(function(_0x61583a,_0x1670d8){const _0x21eee8=a125_0x3e31,_0x2ef09b=_0x61583a();while(!![]){try{const _0x49af72=-parseInt(_0x21eee8(0x18d))/0x1*(-parseInt(_0x21eee8(0x190))/0x2)+-parseInt(_0x21eee8(0x188))/0x3*(parseInt(_0x21eee8(0x189))/0x4)+parseInt(_0x21eee8(0x185))/0x5+-parseInt(_0x21eee8(0x192))/0x6*(-parseInt(_0x21eee8(0x187))/0x7)+-parseInt(_0x21eee8(0x191))/0x8*(parseInt(_0x21eee8(0x184))/0x9)+-parseInt(_0x21eee8(0x18b))/0xa*(parseInt(_0x21eee8(0x186))/0xb)+-parseInt(_0x21eee8(0x18e))/0xc*(parseInt(_0x21eee8(0x18a))/0xd);if(_0x49af72===_0x1670d8)break;else _0x2ef09b['push'](_0x2ef09b['shift']());}catch(_0x5cd0c1){_0x2ef09b['push'](_0x2ef09b['shift']());}}}(a125_0xf45e,0x89db6));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3e31(_0x37870f,_0x7eb4e2){_0x37870f=_0x37870f-0x184;const _0xf45ed2=a125_0xf45e();let _0x3e31c4=_0xf45ed2[_0x37870f];return _0x3e31c4;}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':_0x24a16a=>serviceGroups[a125_0x59d30b(0x193)](_0x24a16a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a125_0x59d30b(0x18f),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2bdd0d){return generators['generateCommandHelp'](_0x2bdd0d);}export const generateServiceHelp=generators[a125_0x59d30b(0x18c)];function a125_0xf45e(){const _0x3e179c=['897feSMHk','260cDCsyq','generateServiceHelp','9WAOLND','21444avHrRQ','\x20[args]\x20[flags]','47246sJmqRA','6280hBtifU','12xckQOI','get','225XkDtmE','2008840CmdeFN','107591LCyQLy','1290562lEdyMV','63633mzBptY','4TvZcTB'];a125_0xf45e=function(){return _0x3e179c;};return a125_0xf45e();}export const generateFullHelp=generators['generateFullHelp'];
1
+ function a42_0x5d80(){const _0x5e5af0=['\x20[args]\x20[flags]','get','generateFullHelp','197655nEtpPh','2333436HkLOKE','3590255bupAyS','15523000ZUFvAi','22142150jovEEn','Requires\x20appcode\x20(set\x20via\x20`','5753538kCuZFR','generateCommandHelp','6XvpRap','52uMORCe','6bEjRYV','\x20project\x20init`\x20or\x20--appcode).','415683YRLfqM'];a42_0x5d80=function(){return _0x5e5af0;};return a42_0x5d80();}const a42_0x238889=a42_0x2545;(function(_0x48788d,_0x366b0e){const _0x2c0f52=a42_0x2545,_0x9941bd=_0x48788d();while(!![]){try{const _0x2227ac=parseInt(_0x2c0f52(0xbf))/0x1*(parseInt(_0x2c0f52(0xc7))/0x2)+parseInt(_0x2c0f52(0xbb))/0x3*(parseInt(_0x2c0f52(0xc8))/0x4)+-parseInt(_0x2c0f52(0xc1))/0x5*(parseInt(_0x2c0f52(0xc9))/0x6)+-parseInt(_0x2c0f52(0xc0))/0x7+-parseInt(_0x2c0f52(0xc2))/0x8+-parseInt(_0x2c0f52(0xc5))/0x9+parseInt(_0x2c0f52(0xc3))/0xa;if(_0x2227ac===_0x366b0e)break;else _0x9941bd['push'](_0x9941bd['shift']());}catch(_0x26b5ce){_0x9941bd['push'](_0x9941bd['shift']());}}}(a42_0x5d80,0xeea09));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';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':_0x283add=>serviceGroups[a42_0x238889(0xbd)](_0x283add),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a42_0x238889(0xc4)+CLI_BIN_NAME+a42_0x238889(0xba),'serviceUsageSuffix':a42_0x238889(0xbc),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x47e940){const _0x6bcfff=a42_0x238889;return generators[_0x6bcfff(0xc6)](_0x47e940);}function a42_0x2545(_0x4d7aed,_0x3aa5bd){_0x4d7aed=_0x4d7aed-0xba;const _0x5d80f2=a42_0x5d80();let _0x254555=_0x5d80f2[_0x4d7aed];return _0x254555;}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a42_0x238889(0xbe)];
@@ -1 +1 @@
1
- function a126_0x2666(){var _0x38eb60=['2701272kpZjqZ','7010Yifoxv','351155uBaAJk','3060464hdAmTx','2827960mjFInv','8lcWcZG','1463WFgmXU','277BEDyzd','7680339XtfWKD','352050ItueHc','12eiJYew'];a126_0x2666=function(){return _0x38eb60;};return a126_0x2666();}(function(_0x56c4a8,_0x510037){var _0x49b48c=a126_0x1152,_0x142611=_0x56c4a8();while(!![]){try{var _0xbfdf6a=-parseInt(_0x49b48c(0x19d))/0x1*(parseInt(_0x49b48c(0x197))/0x2)+-parseInt(_0x49b48c(0x196))/0x3+-parseInt(_0x49b48c(0x199))/0x4+-parseInt(_0x49b48c(0x19a))/0x5+-parseInt(_0x49b48c(0x195))/0x6*(-parseInt(_0x49b48c(0x198))/0x7)+parseInt(_0x49b48c(0x19b))/0x8*(-parseInt(_0x49b48c(0x193))/0x9)+parseInt(_0x49b48c(0x194))/0xa*(parseInt(_0x49b48c(0x19c))/0xb);if(_0xbfdf6a===_0x510037)break;else _0x142611['push'](_0x142611['shift']());}catch(_0x1097b2){_0x142611['push'](_0x142611['shift']());}}}(a126_0x2666,0xb18a7));function a126_0x1152(_0x78855c,_0x1b974f){_0x78855c=_0x78855c-0x193;var _0x26661a=a126_0x2666();var _0x115251=_0x26661a[_0x78855c];return _0x115251;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x13cd5f,_0xc78c2f){var _0x2925fa=a44_0x5021,_0x44b572=_0x13cd5f();while(!![]){try{var _0xc7e09f=parseInt(_0x2925fa(0x193))/0x1*(-parseInt(_0x2925fa(0x197))/0x2)+-parseInt(_0x2925fa(0x19b))/0x3+parseInt(_0x2925fa(0x192))/0x4*(-parseInt(_0x2925fa(0x194))/0x5)+-parseInt(_0x2925fa(0x199))/0x6+parseInt(_0x2925fa(0x198))/0x7+-parseInt(_0x2925fa(0x196))/0x8+parseInt(_0x2925fa(0x195))/0x9*(parseInt(_0x2925fa(0x19a))/0xa);if(_0xc7e09f===_0xc78c2f)break;else _0x44b572['push'](_0x44b572['shift']());}catch(_0x351366){_0x44b572['push'](_0x44b572['shift']());}}}(a44_0x2e87,0xace76));function a44_0x5021(_0x30031d,_0x2bcb20){_0x30031d=_0x30031d-0x192;var _0x2e87ed=a44_0x2e87();var _0x50216e=_0x2e87ed[_0x30031d];return _0x50216e;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a44_0x2e87(){var _0x59e7d5=['65490eJdmGq','298782MqXuVG','4FSeZit','4qCEZky','742345jbxGAc','3951MzNdfY','4642936FNFrCh','327274eVQBgR','2896460YDiqYr','6585594ZzISlw'];a44_0x2e87=function(){return _0x59e7d5;};return a44_0x2e87();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a127_0x105f(_0xb709d8,_0xb6b58d){_0xb709d8=_0xb709d8-0x11b;var _0x416926=a127_0x4169();var _0x105fcf=_0x416926[_0xb709d8];return _0x105fcf;}function a127_0x4169(){var _0xb0b48a=['94832yOHXcS','873556mWSjGE','34EcRdTT','1486614xbWcyM','2037phxQJx','185653AIZttG','4455783MZmzUx','1408135MYxgOm','91CLmcrF'];a127_0x4169=function(){return _0xb0b48a;};return a127_0x4169();}(function(_0x451922,_0x45cba4){var _0x26a0ab=a127_0x105f,_0x165339=_0x451922();while(!![]){try{var _0x19d09b=parseInt(_0x26a0ab(0x121))/0x1+parseInt(_0x26a0ab(0x11e))/0x2*(-parseInt(_0x26a0ab(0x120))/0x3)+-parseInt(_0x26a0ab(0x11d))/0x4+parseInt(_0x26a0ab(0x123))/0x5+parseInt(_0x26a0ab(0x11f))/0x6+parseInt(_0x26a0ab(0x11b))/0x7*(parseInt(_0x26a0ab(0x11c))/0x8)+-parseInt(_0x26a0ab(0x122))/0x9;if(_0x19d09b===_0x45cba4)break;else _0x165339['push'](_0x165339['shift']());}catch(_0x29afe0){_0x165339['push'](_0x165339['shift']());}}}(a127_0x4169,0x23304));export{formatOutput}from'@lovrabet/cli-framework';
1
+ function a48_0x45f0(){var _0x384c5d=['4014717akErsO','25dXIzve','481658rFBgaE','648790lwbche','34491237krsqIR','6iCBNEV','12161368IUhaPM','3306751VHyRoA','6EubuKP','609772XhfxIX','144QCDNXy'];a48_0x45f0=function(){return _0x384c5d;};return a48_0x45f0();}(function(_0x50aca2,_0x36c4ed){var _0x53a2ed=a48_0x5974,_0xad2f01=_0x50aca2();while(!![]){try{var _0x1ca907=-parseInt(_0x53a2ed(0x80))/0x1*(-parseInt(_0x53a2ed(0x86))/0x2)+-parseInt(_0x53a2ed(0x89))/0x3+parseInt(_0x53a2ed(0x87))/0x4*(parseInt(_0x53a2ed(0x7f))/0x5)+-parseInt(_0x53a2ed(0x83))/0x6*(-parseInt(_0x53a2ed(0x85))/0x7)+parseInt(_0x53a2ed(0x84))/0x8+parseInt(_0x53a2ed(0x88))/0x9*(parseInt(_0x53a2ed(0x81))/0xa)+-parseInt(_0x53a2ed(0x82))/0xb;if(_0x1ca907===_0x36c4ed)break;else _0xad2f01['push'](_0xad2f01['shift']());}catch(_0x5c8218){_0xad2f01['push'](_0xad2f01['shift']());}}}(a48_0x45f0,0xba86b));function a48_0x5974(_0x32b068,_0x16e433){_0x32b068=_0x32b068-0x7f;var _0x45f0e7=a48_0x45f0();var _0x597490=_0x45f0e7[_0x32b068];return _0x597490;}export{formatOutput}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a128_0x591d(_0x235b6a,_0x211f24){_0x235b6a=_0x235b6a-0xbe;var _0x361490=a128_0x3614();var _0x591dda=_0x361490[_0x235b6a];return _0x591dda;}function a128_0x3614(){var _0x34819b=['3970740TQoszF','510yLbUCz','6902995fsPDbS','104238tNkeCu','1225131AkUIlL','14djpNoG','5580ukOmih','416OCkSDt','4QGpByY','39UzEIRa','13167ITzPOV','36134aHXglC','150kxfFvi'];a128_0x3614=function(){return _0x34819b;};return a128_0x3614();}(function(_0x4fbdb1,_0x5e832b){var _0x28ef1=a128_0x591d,_0x2c9dec=_0x4fbdb1();while(!![]){try{var _0x4ed5dd=parseInt(_0x28ef1(0xbe))/0x1*(parseInt(_0x28ef1(0xc4))/0x2)+-parseInt(_0x28ef1(0xca))/0x3*(-parseInt(_0x28ef1(0xc1))/0x4)+parseInt(_0x28ef1(0xbf))/0x5*(parseInt(_0x28ef1(0xc5))/0x6)+parseInt(_0x28ef1(0xc3))/0x7*(-parseInt(_0x28ef1(0xc0))/0x8)+-parseInt(_0x28ef1(0xc9))/0x9*(parseInt(_0x28ef1(0xc7))/0xa)+-parseInt(_0x28ef1(0xc8))/0xb+parseInt(_0x28ef1(0xc6))/0xc*(parseInt(_0x28ef1(0xc2))/0xd);if(_0x4ed5dd===_0x5e832b)break;else _0x2c9dec['push'](_0x2c9dec['shift']());}catch(_0x506547){_0x2c9dec['push'](_0x2c9dec['shift']());}}}(a128_0x3614,0x59525));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x185c6e,_0xcecaae){var _0x89b6ea=a40_0x3a59,_0xf52163=_0x185c6e();while(!![]){try{var _0x14663c=parseInt(_0x89b6ea(0xa7))/0x1+-parseInt(_0x89b6ea(0xab))/0x2*(-parseInt(_0x89b6ea(0xa5))/0x3)+-parseInt(_0x89b6ea(0xa9))/0x4*(-parseInt(_0x89b6ea(0xad))/0x5)+parseInt(_0x89b6ea(0xaa))/0x6+-parseInt(_0x89b6ea(0xaf))/0x7*(parseInt(_0x89b6ea(0xac))/0x8)+parseInt(_0x89b6ea(0xae))/0x9+parseInt(_0x89b6ea(0xa6))/0xa*(-parseInt(_0x89b6ea(0xa8))/0xb);if(_0x14663c===_0xcecaae)break;else _0xf52163['push'](_0xf52163['shift']());}catch(_0x285c80){_0xf52163['push'](_0xf52163['shift']());}}}(a40_0x5deb,0xbcf22));function a40_0x3a59(_0x2afe70,_0x53d49f){_0x2afe70=_0x2afe70-0xa5;var _0x5deb3d=a40_0x5deb();var _0x3a59a7=_0x5deb3d[_0x2afe70];return _0x3a59a7;}function a40_0x5deb(){var _0x543456=['3820920fMOXBU','2oKAfvi','10616LrJaew','415oQyxXN','5104998vUZccy','5663pdlFxV','572853OmXQtD','10WDvfcB','1233922WQkBfT','16236847mxfXhy','33476IwrqSE'];a40_0x5deb=function(){return _0x543456;};return a40_0x5deb();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x5690cb,_0x124a94){const _0xa77353=a129_0x4dec,_0x9900b5=_0x5690cb();while(!![]){try{const _0x335217=-parseInt(_0xa77353(0x15e))/0x1*(parseInt(_0xa77353(0x15b))/0x2)+parseInt(_0xa77353(0x167))/0x3*(-parseInt(_0xa77353(0x159))/0x4)+-parseInt(_0xa77353(0x164))/0x5+parseInt(_0xa77353(0x16e))/0x6+parseInt(_0xa77353(0x169))/0x7+-parseInt(_0xa77353(0x15d))/0x8+parseInt(_0xa77353(0x16c))/0x9;if(_0x335217===_0x124a94)break;else _0x9900b5['push'](_0x9900b5['shift']());}catch(_0x120906){_0x9900b5['push'](_0x9900b5['shift']());}}}(a129_0xa063,0x6f1b2));function a129_0x4dec(_0x2ac70c,_0x3a8b14){_0x2ac70c=_0x2ac70c-0x159;const _0xa06354=a129_0xa063();let _0x4dec9b=_0xa06354[_0x2ac70c];return _0x4dec9b;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4485f7,_0x85642c,_0x295588,_0x39b301){const _0x423072=a129_0x4dec,_0x33ba01=_0x4485f7[_0x423072(0x161)]['some'](_0x3a4fb3=>_0x3a4fb3[_0x423072(0x168)]===_0x423072(0x15c)&&_0x3a4fb3[_0x423072(0x16d)]===_0x423072(0x15f)),_0x88ebb5=_0x4485f7[_0x423072(0x161)][_0x423072(0x15a)](_0x8a8d0c=>_0x8a8d0c[_0x423072(0x168)]===_0x423072(0x165)&&_0x8a8d0c['type']==='string');if(!_0x33ba01||!_0x88ebb5)return;const _0x41da75=_0x85642c[_0x423072(0x15c)]?String(_0x85642c['code']):'',_0xf1e381=_0x85642c[_0x423072(0x165)]?String(_0x85642c[_0x423072(0x165)]):'';if(!_0x41da75&&!_0xf1e381)throw CliErrors[_0x423072(0x166)]('`'+_0x39b301+_0x423072(0x162));if(_0xf1e381&&!_0x41da75){const _0x30d008=resolveAlias(_0x295588,_0xf1e381);if(!_0x30d008){const _0x28bbd8=listAliases(_0x295588)[_0x423072(0x160)](_0x48f567=>_0x48f567[_0x423072(0x165)]),_0x2c10a2=_0x28bbd8[_0x423072(0x16a)]?_0x423072(0x16b)+_0x28bbd8['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x295588+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x423072(0x163)+_0xf1e381+'\x22.\x20'+_0x2c10a2);}_0x85642c[_0x423072(0x15c)]=_0x30d008;}}function a129_0xa063(){const _0x20fe73=['5012988ofibMs','3244jBhbWY','some','106eexFJD','code','4700496DzDFRl','15371JwLqjM','string','map','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','603005tZJWdw','alias','validation','2118LkJUoD','name','991746oIQEYG','length','Available\x20aliases:\x20','14159754OtPHqk','type'];a129_0xa063=function(){return _0x20fe73;};return a129_0xa063();}
1
+ (function(_0x1f9b77,_0x1de7c5){const _0x4f00ec=a47_0x4b2e,_0x4360a3=_0x1f9b77();while(!![]){try{const _0x502cb0=parseInt(_0x4f00ec(0x13a))/0x1*(parseInt(_0x4f00ec(0x12b))/0x2)+-parseInt(_0x4f00ec(0x120))/0x3*(-parseInt(_0x4f00ec(0x128))/0x4)+-parseInt(_0x4f00ec(0x134))/0x5*(parseInt(_0x4f00ec(0x136))/0x6)+parseInt(_0x4f00ec(0x125))/0x7*(parseInt(_0x4f00ec(0x123))/0x8)+-parseInt(_0x4f00ec(0x12f))/0x9*(parseInt(_0x4f00ec(0x11e))/0xa)+parseInt(_0x4f00ec(0x132))/0xb*(-parseInt(_0x4f00ec(0x137))/0xc)+parseInt(_0x4f00ec(0x138))/0xd;if(_0x502cb0===_0x1de7c5)break;else _0x4360a3['push'](_0x4360a3['shift']());}catch(_0x5e8680){_0x4360a3['push'](_0x4360a3['shift']());}}}(a47_0x55b0,0x93c89));function a47_0x4b2e(_0xd20673,_0x269d09){_0xd20673=_0xd20673-0x11d;const _0x55b0d2=a47_0x55b0();let _0x4b2e61=_0x55b0d2[_0xd20673];return _0x4b2e61;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x48df48,_0x3a1402,_0x42a5b3,_0x4a6b06){const _0x3ddffa=a47_0x4b2e,_0x1df9c2=_0x48df48[_0x3ddffa(0x122)]['some'](_0x49bfa6=>_0x49bfa6[_0x3ddffa(0x139)]===_0x3ddffa(0x12d)&&_0x49bfa6[_0x3ddffa(0x121)]===_0x3ddffa(0x124)),_0x52b9bf=_0x48df48['flags'][_0x3ddffa(0x126)](_0x5954c1=>_0x5954c1[_0x3ddffa(0x139)]===_0x3ddffa(0x11d)&&_0x5954c1[_0x3ddffa(0x121)]===_0x3ddffa(0x124));if(!_0x1df9c2||!_0x52b9bf)return;const _0xeee471=_0x3a1402[_0x3ddffa(0x12d)]?String(_0x3a1402[_0x3ddffa(0x12d)]):'',_0x3f908d=_0x3a1402[_0x3ddffa(0x11d)]?String(_0x3a1402['alias']):'';if(!_0xeee471&&!_0x3f908d)throw CliErrors[_0x3ddffa(0x12a)]('`'+_0x4a6b06+_0x3ddffa(0x130));if(_0x3f908d&&!_0xeee471){const _0x451ade=resolveAlias(_0x42a5b3,_0x3f908d);if(!_0x451ade){const _0x2c7ac9=listAliases(_0x42a5b3)['map'](_0x53e27f=>_0x53e27f[_0x3ddffa(0x11d)]),_0x18adef=_0x2c7ac9[_0x3ddffa(0x133)]?_0x3ddffa(0x12e)+_0x2c7ac9[_0x3ddffa(0x11f)](',\x20'):_0x3ddffa(0x12c)+_0x42a5b3+_0x3ddffa(0x129)+CLI_BIN_NAME+_0x3ddffa(0x131);throw CliErrors[_0x3ddffa(0x12a)](_0x3ddffa(0x135)+_0x3f908d+_0x3ddffa(0x127)+_0x18adef);}_0x3a1402[_0x3ddffa(0x12d)]=_0x451ade;}}function a47_0x55b0(){const _0x339b13=['758760ojTlmJ','type','flags','106304SdNrGx','string','140gwvyWf','some','\x22.\x20','4QzoCrz','.\x20Run\x20`','validation','2CQnxTx','No\x20api.ts\x20found\x20in\x20','code','Available\x20aliases:\x20','9Iqpbxv','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','77rLdZDZ','length','5TCFuoE','Unknown\x20alias\x20\x22','4888254xiGeir','847272ECEdsS','25981020mUaRtw','name','198626PkIscd','alias','8015740XgeGsg','join'];a47_0x55b0=function(){return _0x339b13;};return a47_0x55b0();}
@@ -1 +1 @@
1
- const a130_0x2759bc=a130_0x2681;(function(_0x5c5bef,_0x4d4db6){const _0x379557=a130_0x2681,_0x3e3894=_0x5c5bef();while(!![]){try{const _0xa967f4=-parseInt(_0x379557(0x1c9))/0x1*(parseInt(_0x379557(0x1bd))/0x2)+parseInt(_0x379557(0x1bf))/0x3+parseInt(_0x379557(0x1cb))/0x4*(parseInt(_0x379557(0x1ad))/0x5)+-parseInt(_0x379557(0x1bb))/0x6+-parseInt(_0x379557(0x1af))/0x7+parseInt(_0x379557(0x1b8))/0x8+-parseInt(_0x379557(0x1cf))/0x9;if(_0xa967f4===_0x4d4db6)break;else _0x3e3894['push'](_0x3e3894['shift']());}catch(_0x3ec841){_0x3e3894['push'](_0x3e3894['shift']());}}}(a130_0x2513,0xc5df1));import{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 a130_0xc6cdd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x32b446,_0x34d7d1,_0xd90e07=[]){const _0x5b3e7=a130_0x2681;return{'rawFlags':_0x34d7d1,'args':_0xd90e07,'resolveAppCode':()=>_0x32b446[_0x5b3e7(0x1be)]||_0x34d7d1[_0x5b3e7(0x1ae)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x32b446[_0x5b3e7(0x1d0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0xc6cdd(_0x34d7d1),'defaultFormat':_0x32b446[_0x5b3e7(0x1ce)],'defaultPageSize':_0x32b446[_0x5b3e7(0x1a9)],'defaultVerbose':_0x32b446[_0x5b3e7(0x1b1)],'apiDir':_0x32b446['apiDir'],'riskLevel':_0x32b446[_0x5b3e7(0x1b2)],'selectedAppName':_0x32b446['explicitAppName'],'mergedCli':{'defaultApp':_0x32b446[_0x5b3e7(0x1ac)],'currentApp':_0x32b446['currentApp'],'appCode':_0x32b446[_0x5b3e7(0x1be)],'apps':_0x32b446['apps']}};}function a130_0x2513(){const _0xb5c476=['2167776OXlCcr','\x20\x20\x20Continue?\x20[y/N]\x20','cancelled','⚠\x20\x20High-risk\x20operation:\x20','filter','command','map','Set\x20appcode\x20via\x20`','requiresAuth','requiresAppCode','302911EtXVMQ','has','292924nTepjj','mergedCli','configMissing','format','604773RVocwj','cookie','resolveCookie','isNonInteractive','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','pageSize','resolveApiDomain','resolveAppCode','defaultApp','5TrMmPA','appcode','4236505Fmvmqo','validation','verbose','riskLevel','name','selectedAppName','apiDir','High-risk\x20operation\x20`','defaultVerbose','10949312TfAjOV','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2272098ZpguNF','authRequired','2YvFNxd','appCode'];a130_0x2513=function(){return _0xb5c476;};return a130_0x2513();}function a130_0x2681(_0x57093c,_0x4e3036){_0x57093c=_0x57093c-0x1a7;const _0x251381=a130_0x2513();let _0x268159=_0x251381[_0x57093c];return _0x268159;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2759bc(0x1c3)](_0x30088f=>PIPELINE_FLAG_NAMES[a130_0x2759bc(0x1ca)](_0x30088f[a130_0x2759bc(0x1b3)]))[a130_0x2759bc(0x1c5)](({name:_0x3d0042,type:_0x1b8488,description:_0x3b4d10})=>({'name':_0x3d0042,'type':_0x1b8488,'description':_0x3b4d10})),'formatOutput':formatOutput,'getCommandLabel'(_0x3486ca){const _0x39eed5=a130_0x2759bc;return CLI_BIN_NAME+'\x20'+_0x3486ca['service']+'\x20'+_0x3486ca[_0x39eed5(0x1c4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x50c279){return CliErrors['validation'](_0x50c279);}},async 'prepare'(_0x1a7e01,_0x25bccc,_0x24deff,_0x14ddea){const _0x1879ac=a130_0x2759bc,_0x340c18=_0x25bccc[_0x1879ac(0x1b5)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1a7e01,_0x24deff,_0x340c18,_0x14ddea);let _0x2388b8='';if(_0x1a7e01[_0x1879ac(0x1c7)]!==![]){_0x2388b8=_0x25bccc[_0x1879ac(0x1d1)]();if(!_0x2388b8)throw CliErrors[_0x1879ac(0x1bc)]();const {setActiveCookie:_0x1b692b}=await import(_0x1879ac(0x1b9));_0x1b692b(_0x2388b8);}let _0x1e2c3b='';if(_0x1a7e01[_0x1879ac(0x1c8)]!==![]){_0x1e2c3b=_0x25bccc[_0x1879ac(0x1ab)]()??'';if(!_0x1e2c3b)throw CliErrors[_0x1879ac(0x1cd)](_0x1879ac(0x1c6)+CLI_BIN_NAME+_0x1879ac(0x1a8));}return{'defaults':{'booleans':{'verbose':_0x25bccc[_0x1879ac(0x1b7)]},'numbers':{'pagesize':_0x25bccc['defaultPageSize']}},'extras':{'appCode':_0x1e2c3b,'cookie':_0x2388b8,'apiDomain':_0x25bccc[_0x1879ac(0x1aa)](),'apiDir':_0x340c18,'selectedAppName':_0x25bccc[_0x1879ac(0x1b4)],'mergedCli':_0x25bccc[_0x1879ac(0x1cc)]}};},async 'confirmHighRisk'({env:_0x20050f,commandLabel:_0x3d5a44}){const _0x21930a=a130_0x2759bc;if(_0x20050f[_0x21930a(0x1a7)])throw CliErrors[_0x21930a(0x1b0)](_0x21930a(0x1b6)+_0x3d5a44+_0x21930a(0x1ba));await requireConfirmationPrompt({'lines':[_0x21930a(0x1c2)+_0x3d5a44,_0x21930a(0x1c0)],'createCancelledError':_0x316c20=>CliErrors[_0x21930a(0x1c1)](_0x316c20)});},async 'finalize'(){const {clearActiveCookie:_0x39f214}=await import('../core/api-client.js');_0x39f214();}};export async function runCommand(_0x1282ff,_0x24d6a9){await runCommandWithAdapter(_0x1282ff,_0x24d6a9,runnerAdapter);}
1
+ const a43_0x38d461=a43_0x67c6;(function(_0x71e77b,_0x7e3e6d){const _0x3328f2=a43_0x67c6,_0x3e6e29=_0x71e77b();while(!![]){try{const _0x57c412=parseInt(_0x3328f2(0x1b6))/0x1+parseInt(_0x3328f2(0x1ad))/0x2*(parseInt(_0x3328f2(0x19d))/0x3)+-parseInt(_0x3328f2(0x193))/0x4*(parseInt(_0x3328f2(0x1af))/0x5)+-parseInt(_0x3328f2(0x198))/0x6*(-parseInt(_0x3328f2(0x1a1))/0x7)+parseInt(_0x3328f2(0x19a))/0x8*(parseInt(_0x3328f2(0x199))/0x9)+parseInt(_0x3328f2(0x1ae))/0xa+-parseInt(_0x3328f2(0x1b2))/0xb;if(_0x57c412===_0x7e3e6d)break;else _0x3e6e29['push'](_0x3e6e29['shift']());}catch(_0x21ec65){_0x3e6e29['push'](_0x3e6e29['shift']());}}}(a43_0x30f2,0x4b6d4));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a43_0x30f2(){const _0x1bac21=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20\x20\x20Continue?\x20[y/N]\x20','60wnhelm','3540530bEjqbU','20gnSMhe','map','resolveCookie','6830296qySReS','defaultPageSize','Set\x20appcode\x20via\x20`','authRequired','151578UKKkGg','High-risk\x20operation\x20`','requiresAppCode','apiDir','appCode','validation','531928yHvZZC','format','../core/api-client.js','appcode','⚠\x20\x20High-risk\x20operation:\x20','12MsvuMV','117KjyeQn','170312DNDehq','pageSize','mergedCli','51807SSFqWT','selectedAppName','cookie','apps','564739DPYjGo','name','cancelled','verbose','configMissing','currentApp','isNonInteractive','service','filter','resolveAppCode'];a43_0x30f2=function(){return _0x1bac21;};return a43_0x30f2();}import{getCookie}from'../auth/get-cookie.js';function a43_0x67c6(_0x37542c,_0x10263a){_0x37542c=_0x37542c-0x191;const _0x30f2aa=a43_0x30f2();let _0x67c60e=_0x30f2aa[_0x37542c];return _0x67c60e;}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 a43_0x215958}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x33825d,_0x1f1390,_0x56cb07=[]){const _0x46618a=a43_0x67c6;return{'rawFlags':_0x1f1390,'args':_0x56cb07,'resolveAppCode':()=>_0x33825d[_0x46618a(0x191)]||_0x1f1390[_0x46618a(0x196)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x33825d[_0x46618a(0x19f)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a43_0x215958(_0x1f1390),'defaultFormat':_0x33825d[_0x46618a(0x194)],'defaultPageSize':_0x33825d[_0x46618a(0x19b)],'defaultVerbose':_0x33825d[_0x46618a(0x1a4)],'apiDir':_0x33825d[_0x46618a(0x1b9)],'riskLevel':_0x33825d['riskLevel'],'selectedAppName':_0x33825d['explicitAppName'],'mergedCli':{'defaultApp':_0x33825d['defaultApp'],'currentApp':_0x33825d[_0x46618a(0x1a6)],'appCode':_0x33825d['appCode'],'apps':_0x33825d[_0x46618a(0x1a0)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a43_0x38d461(0x1a9)](_0x431439=>PIPELINE_FLAG_NAMES['has'](_0x431439[a43_0x38d461(0x1a2)]))[a43_0x38d461(0x1b0)](({name:_0x21255d,type:_0x82a04d,description:_0x3f6d9d})=>({'name':_0x21255d,'type':_0x82a04d,'description':_0x3f6d9d})),'formatOutput':formatOutput,'getCommandLabel'(_0x4ce048){const _0x54af2a=a43_0x38d461;return CLI_BIN_NAME+'\x20'+_0x4ce048[_0x54af2a(0x1a8)]+'\x20'+_0x4ce048['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4f6e3b){const _0x559093=a43_0x38d461;return CliErrors[_0x559093(0x192)](_0x4f6e3b);}},async 'prepare'(_0x33461b,_0x2a49ee,_0x5430ee,_0x540b48){const _0x36813d=a43_0x38d461,_0x4ad3ae=_0x2a49ee[_0x36813d(0x1b9)]||DEFAULT_API_DIR;resolveAliasToCode(_0x33461b,_0x5430ee,_0x4ad3ae,_0x540b48);let _0x253abf='';if(_0x33461b['requiresAuth']!==![]){_0x253abf=_0x2a49ee[_0x36813d(0x1b1)]();if(!_0x253abf)throw CliErrors[_0x36813d(0x1b5)]();const {setActiveCookie:_0x5e71fb}=await import(_0x36813d(0x195));_0x5e71fb(_0x253abf);}let _0x14fba8='';if(_0x33461b[_0x36813d(0x1b8)]!==![]){_0x14fba8=_0x2a49ee[_0x36813d(0x1aa)]()??'';if(!_0x14fba8)throw CliErrors[_0x36813d(0x1a5)](_0x36813d(0x1b4)+CLI_BIN_NAME+_0x36813d(0x1ab));}return{'defaults':{'booleans':{'verbose':_0x2a49ee['defaultVerbose']},'numbers':{'pagesize':_0x2a49ee[_0x36813d(0x1b3)]}},'extras':{'appCode':_0x14fba8,'cookie':_0x253abf,'apiDomain':_0x2a49ee['resolveApiDomain'](),'apiDir':_0x4ad3ae,'selectedAppName':_0x2a49ee[_0x36813d(0x19e)],'mergedCli':_0x2a49ee[_0x36813d(0x19c)]}};},async 'confirmHighRisk'({env:_0x43a058,commandLabel:_0x2ec540}){const _0xdd8cce=a43_0x38d461;if(_0x43a058[_0xdd8cce(0x1a7)])throw CliErrors[_0xdd8cce(0x192)](_0xdd8cce(0x1b7)+_0x2ec540+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xdd8cce(0x197)+_0x2ec540,_0xdd8cce(0x1ac)],'createCancelledError':_0x5a9d1a=>CliErrors[_0xdd8cce(0x1a3)](_0x5a9d1a)});},async 'finalize'(){const {clearActiveCookie:_0x437430}=await import('../core/api-client.js');_0x437430();}};export async function runCommand(_0x34b4c1,_0x31d0e5){await runCommandWithAdapter(_0x34b4c1,_0x31d0e5,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x1d8fc2,_0x6abfe){const _0x559876=a131_0x21d7,_0x1b55b8=_0x1d8fc2();while(!![]){try{const _0x481f1a=-parseInt(_0x559876(0x127))/0x1+parseInt(_0x559876(0x128))/0x2+parseInt(_0x559876(0x126))/0x3+-parseInt(_0x559876(0x12a))/0x4+-parseInt(_0x559876(0x123))/0x5+-parseInt(_0x559876(0x125))/0x6*(parseInt(_0x559876(0x129))/0x7)+parseInt(_0x559876(0x124))/0x8;if(_0x481f1a===_0x6abfe)break;else _0x1b55b8['push'](_0x1b55b8['shift']());}catch(_0x2f88de){_0x1b55b8['push'](_0x1b55b8['shift']());}}}(a131_0x687a,0xb0f01));import{buildSchemaPayload as a131_0x350f9e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a131_0x687a(){const _0x23760c=['1812608gPQXpy','3429705SvrzwI','13596232LjJRIO','6nqyAZp','3499929AbVaKF','447099xDrPKC','1762400wifSGI','10055101XsItey'];a131_0x687a=function(){return _0x23760c;};return a131_0x687a();}function a131_0x21d7(_0x1dd268,_0x3d7bc6){_0x1dd268=_0x1dd268-0x123;const _0x687aab=a131_0x687a();let _0x21d7a1=_0x687aab[_0x1dd268];return _0x21d7a1;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x47a180,findDefinition:_0x2f4c5d}=await import('../commands/registry.js');return a131_0x350f9e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x47a180,'buildAllFlags':buildAllFlags,'findDefinition':_0x2f4c5d});}
1
+ function a49_0x4633(){const _0x4b17f0=['6086752XfMRJd','626078fmoPgE','../commands/registry.js','1663320Ftaixn','911661SIRwxX','432588chvozn','493735WWFuiq','200541WpAiCH'];a49_0x4633=function(){return _0x4b17f0;};return a49_0x4633();}function a49_0x91e0(_0x478dd6,_0x13987d){_0x478dd6=_0x478dd6-0x9f;const _0x46338d=a49_0x4633();let _0x91e036=_0x46338d[_0x478dd6];return _0x91e036;}(function(_0x56f110,_0x446320){const _0x4ca1f3=a49_0x91e0,_0x379e8c=_0x56f110();while(!![]){try{const _0x27c262=parseInt(_0x4ca1f3(0xa0))/0x1+-parseInt(_0x4ca1f3(0xa2))/0x2+-parseInt(_0x4ca1f3(0xa5))/0x3+-parseInt(_0x4ca1f3(0xa4))/0x4+parseInt(_0x4ca1f3(0x9f))/0x5+parseInt(_0x4ca1f3(0xa6))/0x6+parseInt(_0x4ca1f3(0xa1))/0x7;if(_0x27c262===_0x446320)break;else _0x379e8c['push'](_0x379e8c['shift']());}catch(_0x2aa1fc){_0x379e8c['push'](_0x379e8c['shift']());}}}(a49_0x4633,0x32d26));import{buildSchemaPayload as a49_0x44dc59}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';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5e75f5=a49_0x91e0,{serviceRegistry:_0x19c651,findDefinition:_0xacc98}=await import(_0x5e75f5(0xa3));return a49_0x44dc59({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x19c651,'buildAllFlags':buildAllFlags,'findDefinition':_0xacc98});}
@@ -1 +1 @@
1
- (function(_0x5e9cf4,_0x4dafcb){var _0x4d5265=a132_0x23db,_0x2d9d3f=_0x5e9cf4();while(!![]){try{var _0x40bbbc=parseInt(_0x4d5265(0x109))/0x1*(-parseInt(_0x4d5265(0x10b))/0x2)+parseInt(_0x4d5265(0x108))/0x3*(-parseInt(_0x4d5265(0x10c))/0x4)+parseInt(_0x4d5265(0x107))/0x5+-parseInt(_0x4d5265(0x10a))/0x6+-parseInt(_0x4d5265(0x10d))/0x7+parseInt(_0x4d5265(0x10e))/0x8+parseInt(_0x4d5265(0x10f))/0x9;if(_0x40bbbc===_0x4dafcb)break;else _0x2d9d3f['push'](_0x2d9d3f['shift']());}catch(_0x424f2c){_0x2d9d3f['push'](_0x2d9d3f['shift']());}}}(a132_0x4b9b,0x6cc7c));function a132_0x23db(_0x56850e,_0x21e516){_0x56850e=_0x56850e-0x107;var _0x4b9b67=a132_0x4b9b();var _0x23dbe5=_0x4b9b67[_0x56850e];return _0x23dbe5;}function a132_0x4b9b(){var _0x425ddd=['4221435gMTOaG','114iWJorV','887056cswWdW','3807102JYLNxb','2mgWQiL','37216pIEIUT','6060866NgHmOv','1711936ppijgD','19154232WrEHGf'];a132_0x4b9b=function(){return _0x425ddd;};return a132_0x4b9b();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x25f86b,_0xf839a5){var _0x1bf3b0=a41_0x55e7,_0x285913=_0x25f86b();while(!![]){try{var _0x3d5cb4=-parseInt(_0x1bf3b0(0x76))/0x1+parseInt(_0x1bf3b0(0x74))/0x2+parseInt(_0x1bf3b0(0x73))/0x3*(-parseInt(_0x1bf3b0(0x77))/0x4)+parseInt(_0x1bf3b0(0x7a))/0x5*(-parseInt(_0x1bf3b0(0x75))/0x6)+parseInt(_0x1bf3b0(0x79))/0x7*(parseInt(_0x1bf3b0(0x7d))/0x8)+-parseInt(_0x1bf3b0(0x7b))/0x9+-parseInt(_0x1bf3b0(0x7c))/0xa*(-parseInt(_0x1bf3b0(0x78))/0xb);if(_0x3d5cb4===_0xf839a5)break;else _0x285913['push'](_0x285913['shift']());}catch(_0x7d3dd1){_0x285913['push'](_0x285913['shift']());}}}(a41_0x76ed,0x7caf8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a41_0x55e7(_0x2c47b3,_0x1a1322){_0x2c47b3=_0x2c47b3-0x73;var _0x76ed2a=a41_0x76ed();var _0x55e706=_0x76ed2a[_0x2c47b3];return _0x55e706;}function a41_0x76ed(){var _0x5a1000=['10TtiSyh','120xYttxZ','21FoYezE','1478476VythHC','19776njJZAn','244721ZNhmXd','318104oavOZP','14199262lYrDwI','2681LCtFhf','1065QzHoxK','194958VIghnc'];a41_0x76ed=function(){return _0x5a1000;};return a41_0x76ed();}
@@ -1 +1 @@
1
- function a133_0x1ef5(_0x293992,_0x3bd282){_0x293992=_0x293992-0x137;const _0x5ab46a=a133_0x5ab4();let _0x1ef517=_0x5ab46a[_0x293992];return _0x1ef517;}const a133_0x5b6145=a133_0x1ef5;(function(_0x1fac2a,_0x91f07a){const _0x3b91eb=a133_0x1ef5,_0x5e9eb6=_0x1fac2a();while(!![]){try{const _0x4196c7=parseInt(_0x3b91eb(0x13e))/0x1+-parseInt(_0x3b91eb(0x13d))/0x2*(-parseInt(_0x3b91eb(0x13c))/0x3)+parseInt(_0x3b91eb(0x140))/0x4*(-parseInt(_0x3b91eb(0x142))/0x5)+-parseInt(_0x3b91eb(0x141))/0x6+parseInt(_0x3b91eb(0x13a))/0x7+parseInt(_0x3b91eb(0x139))/0x8+-parseInt(_0x3b91eb(0x138))/0x9*(parseInt(_0x3b91eb(0x13f))/0xa);if(_0x4196c7===_0x91f07a)break;else _0x5e9eb6['push'](_0x5e9eb6['shift']());}catch(_0x4fe15a){_0x5e9eb6['push'](_0x5e9eb6['shift']());}}}(a133_0x5ab4,0x3ff31));export const VERSION=a133_0x5b6145(0x13b);export const GIT_TAG='v2.1.2-beta.2';export const GIT_COMMIT='3bef55e';function a133_0x5ab4(){const _0x340586=['2.1.2-beta.2','581751oxxBKM','4iYlScf','231068rQWGQq','1570JmExRh','1788ijcROj','1634082GkuNkt','795kwsuHS','2026-04-13T16:01:22.900Z','38061EHCUrx','2635496UwxSlP','2246797zmYNQY'];a133_0x5ab4=function(){return _0x340586;};return a133_0x5ab4();}export const BUILD_TIME=a133_0x5b6145(0x137);
1
+ const a24_0x19928a=a24_0x2f97;(function(_0x367124,_0x5130ba){const _0xd442c3=a24_0x2f97,_0x2fd32c=_0x367124();while(!![]){try{const _0x17a64e=parseInt(_0xd442c3(0xf5))/0x1+parseInt(_0xd442c3(0xf6))/0x2*(parseInt(_0xd442c3(0xfc))/0x3)+-parseInt(_0xd442c3(0xff))/0x4+-parseInt(_0xd442c3(0xfb))/0x5+-parseInt(_0xd442c3(0xfd))/0x6*(-parseInt(_0xd442c3(0xf7))/0x7)+-parseInt(_0xd442c3(0xf9))/0x8*(parseInt(_0xd442c3(0xf8))/0x9)+-parseInt(_0xd442c3(0xf3))/0xa*(-parseInt(_0xd442c3(0xf4))/0xb);if(_0x17a64e===_0x5130ba)break;else _0x2fd32c['push'](_0x2fd32c['shift']());}catch(_0x297598){_0x2fd32c['push'](_0x2fd32c['shift']());}}}(a24_0x39da,0xb1af5));export const VERSION=a24_0x19928a(0xfa);export const GIT_TAG=a24_0x19928a(0xfe);function a24_0x39da(){const _0x1e5a04=['549462pmAZNk','6GvPdLV','2145983TYSQUn','36gPnUAk','225312qCeErR','2.1.2','3435525AuQlAz','648321hYkVpR','6ZgLmZX','v2.1.2','2460072dORrKs','3191120eFRcGa','22ZfHRlX'];a24_0x39da=function(){return _0x1e5a04;};return a24_0x39da();}export const GIT_COMMIT='e337e0c';function a24_0x2f97(_0x5eee6e,_0x4890ab){_0x5eee6e=_0x5eee6e-0xf3;const _0x39da28=a24_0x39da();let _0x2f9706=_0x39da28[_0x5eee6e];return _0x2f9706;}export const BUILD_TIME='2026-04-14T06:20:18.971Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0xdd908a,_0x4b77ef){var _0x206485=a134_0x1d8a,_0x1986fa=_0xdd908a();while(!![]){try{var _0x15ae2e=parseInt(_0x206485(0x1f5))/0x1*(-parseInt(_0x206485(0x1fa))/0x2)+parseInt(_0x206485(0x1f8))/0x3+parseInt(_0x206485(0x1fe))/0x4+parseInt(_0x206485(0x1f4))/0x5+parseInt(_0x206485(0x1f3))/0x6+parseInt(_0x206485(0x1fd))/0x7+-parseInt(_0x206485(0x1fb))/0x8*(parseInt(_0x206485(0x1f9))/0x9);if(_0x15ae2e===_0x4b77ef)break;else _0x1986fa['push'](_0x1986fa['shift']());}catch(_0x47c392){_0x1986fa['push'](_0x1986fa['shift']());}}}(a134_0x1763,0xc0c64));import a134_0x326445 from'chalk';function a134_0x1d8a(_0x2d09fb,_0x18c29b){_0x2d09fb=_0x2d09fb-0x1f3;var _0x1763df=a134_0x1763();var _0x1d8ac9=_0x1763df[_0x2d09fb];return _0x1d8ac9;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x9479b=a134_0x1d8a;console['log'](),console[_0x9479b(0x1f6)](a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x9479b(0x1f6)](),console[_0x9479b(0x1f6)](_0x9479b(0x1fc)+a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)](CLI_BIN_NAME+_0x9479b(0x1f7))+_0x9479b(0x200)),console[_0x9479b(0x1f6)]();}function a134_0x1763(){var _0x320591=['\x20to\x20view\x20available\x20commands.','bold','8187168jJRsra','3873180CXSSTf','527041gvgePu','log','\x20--help','4225158qLHNhY','3089943HLAlKl','2aLWttj','104CvuLmP','\x20\x20Use\x20','8340766UVCGak','4163232znqPyV','green'];a134_0x1763=function(){return _0x320591;};return a134_0x1763();}
1
+ function a20_0x5c14(_0x40417e,_0xdeb368){_0x40417e=_0x40417e-0x1dc;var _0x466fda=a20_0x466f();var _0x5c149e=_0x466fda[_0x40417e];return _0x5c149e;}(function(_0x181b6a,_0x2910ab){var _0x144208=a20_0x5c14,_0x21f645=_0x181b6a();while(!![]){try{var _0x300730=-parseInt(_0x144208(0x1e5))/0x1*(-parseInt(_0x144208(0x1e2))/0x2)+parseInt(_0x144208(0x1de))/0x3+parseInt(_0x144208(0x1e3))/0x4+parseInt(_0x144208(0x1e6))/0x5+parseInt(_0x144208(0x1e8))/0x6*(parseInt(_0x144208(0x1e7))/0x7)+-parseInt(_0x144208(0x1ea))/0x8+-parseInt(_0x144208(0x1dc))/0x9;if(_0x300730===_0x2910ab)break;else _0x21f645['push'](_0x21f645['shift']());}catch(_0xea0c7a){_0x21f645['push'](_0x21f645['shift']());}}}(a20_0x466f,0x3f4ef));function a20_0x466f(){var _0x493042=['132381PBaCtJ','log','\x20--help','\x20\x20Use\x20','47032iHHNoc','1064808HcWTjB','bold','9grutcF','1233140LolCuf','2490733xjDwij','6iTXCZE','\x20to\x20view\x20available\x20commands.','637704XlWacY','7068564wVTGzN','green'];a20_0x466f=function(){return _0x493042;};return a20_0x466f();}import a20_0x141006 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xa4d838=a20_0x5c14;console[_0xa4d838(0x1df)](),console['log'](a20_0x141006['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xa4d838(0x1df)](),console[_0xa4d838(0x1df)](_0xa4d838(0x1e1)+a20_0x141006[_0xa4d838(0x1dd)][_0xa4d838(0x1e4)](CLI_BIN_NAME+_0xa4d838(0x1e0))+_0xa4d838(0x1e9)),console[_0xa4d838(0x1df)]();}
@@ -1 +1 @@
1
- (function(_0x23a9df,_0xf38d6d){const _0x20bfc8=a135_0x6942,_0xbf813f=_0x23a9df();while(!![]){try{const _0x167159=parseInt(_0x20bfc8(0x1a3))/0x1+-parseInt(_0x20bfc8(0x19e))/0x2*(-parseInt(_0x20bfc8(0x1a0))/0x3)+-parseInt(_0x20bfc8(0x1ab))/0x4*(parseInt(_0x20bfc8(0x1b3))/0x5)+parseInt(_0x20bfc8(0x1a4))/0x6*(-parseInt(_0x20bfc8(0x1af))/0x7)+parseInt(_0x20bfc8(0x1b9))/0x8+-parseInt(_0x20bfc8(0x1ba))/0x9+parseInt(_0x20bfc8(0x1b1))/0xa;if(_0x167159===_0xf38d6d)break;else _0xbf813f['push'](_0xbf813f['shift']());}catch(_0x2e1fe7){_0xbf813f['push'](_0xbf813f['shift']());}}}(a135_0x4636,0x6f688));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x430a40){const _0x37c594=a135_0x6942,_0x9720af=[];for(const [_0x39f95c,_0x53c69b]of Object[_0x37c594(0x1ae)](_0x430a40)){if(_0x53c69b===!![]){const _0x2f51c4=_0x39f95c[_0x37c594(0x1ad)](/([A-Z])/g,_0x37c594(0x1a1))[_0x37c594(0x19d)]();_0x9720af[_0x37c594(0x1bc)](_0x2f51c4);}}return _0x9720af;}function a135_0x6942(_0x1d6697,_0x4c66dc){_0x1d6697=_0x1d6697-0x19c;const _0x463618=a135_0x4636();let _0x694227=_0x463618[_0x1d6697];return _0x694227;}export function parseDynamicFlags(){const _0x4198d4=a135_0x6942,_0x53a185=[];for(let _0x1c0127=0x3;_0x1c0127<process[_0x4198d4(0x1bb)]['length'];_0x1c0127++){const _0x25f01c=process[_0x4198d4(0x1bb)][_0x1c0127];if(_0x25f01c&&_0x25f01c[_0x4198d4(0x1b8)]('--')){const _0x59364c=_0x25f01c[_0x4198d4(0x1a7)](0x2);_0x59364c&&!_0x59364c[_0x4198d4(0x1a9)]('=')&&_0x53a185[_0x4198d4(0x1bc)](_0x59364c);}}return _0x53a185;}export function getAllProvidedFlags(_0x211872){const _0x518d6b=a135_0x6942,_0x5b832c=camelCaseFlagsToKebab(_0x211872),_0x311c1d=parseDynamicFlags(),_0x4d6523=new Set([..._0x5b832c,..._0x311c1d]);return Array[_0x518d6b(0x1a8)](_0x4d6523);}export function normalizeLegacyBffSaveFlags(_0x19c580){const _0x3680b2=a135_0x6942,_0x373aa5=new Set(_0x19c580);return _0x373aa5['has']('dangerously-bff-save')&&_0x373aa5['add']('enable-bff-save'),Array[_0x3680b2(0x1a8)](_0x373aa5);}function a135_0x4636(){const _0x37894=['\x0aAvailable\x20commands:','20utZAnZ','log','replace','entries','28gdpKtD','error','10702980hvPWIf','cwd','378555QMjgmA','help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','exit','startsWith','996072vbFoDS','5567391CGnJGp','argv','push','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','toLowerCase','2kslYfv','(empty)','1180923WgJuyT','-$1','\x20skill\x20--help\x0a\x20\x20','18102HsTEqt','229602ontHHG','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','不支持的命令:\x20','slice','from','includes'];a135_0x4636=function(){return _0x37894;};return a135_0x4636();}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x5de790,_0x1358ad,_0x12bbf1){const _0x5e5818=a135_0x6942;logger['setLogPath'](process[_0x5e5818(0x1b2)]());if(_0x12bbf1?.[_0x5e5818(0x1b4)]||_0x5de790==='--help'){showHelp();return;}console[_0x5e5818(0x1b0)]('Error:\x20Unsupported\x20command:\x20'+(_0x5de790||_0x5e5818(0x19f))),console[_0x5e5818(0x1ac)](_0x5e5818(0x1aa)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+_0x5e5818(0x1b5)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x5e5818(0x1ac)](''),console['log'](_0x5e5818(0x19c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5e5818(0x1b0)]('skill',_0x5e5818(0x1a6)+_0x5de790),process[_0x5e5818(0x1b7)](0x1);}function showHelp(){const _0x30506b=a135_0x6942;console[_0x30506b(0x1ac)](_0x30506b(0x1bd)+CLI_BIN_NAME+_0x30506b(0x1a2)+CLI_BIN_NAME+_0x30506b(0x1b6)+SKILLS_INSTALL_COMMAND_LINE+_0x30506b(0x1a5));}
1
+ (function(_0xfc2280,_0x4ef028){const _0x1a83d4=a22_0x2d11,_0x1d3df9=_0xfc2280();while(!![]){try{const _0x7e9c80=-parseInt(_0x1a83d4(0x9f))/0x1*(-parseInt(_0x1a83d4(0x9c))/0x2)+-parseInt(_0x1a83d4(0xa0))/0x3*(parseInt(_0x1a83d4(0x98))/0x4)+parseInt(_0x1a83d4(0x9b))/0x5+parseInt(_0x1a83d4(0xaa))/0x6+-parseInt(_0x1a83d4(0x95))/0x7+-parseInt(_0x1a83d4(0x94))/0x8*(-parseInt(_0x1a83d4(0xa8))/0x9)+-parseInt(_0x1a83d4(0x90))/0xa*(-parseInt(_0x1a83d4(0x99))/0xb);if(_0x7e9c80===_0x4ef028)break;else _0x1d3df9['push'](_0x1d3df9['shift']());}catch(_0x495b40){_0x1d3df9['push'](_0x1d3df9['shift']());}}}(a22_0x2dcc,0x80a15));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x38b0fb){const _0x16fea7=a22_0x2d11,_0x36b27a=[];for(const [_0xdbe52,_0x1f426c]of Object[_0x16fea7(0xa4)](_0x38b0fb)){if(_0x1f426c===!![]){const _0x1f9e6d=_0xdbe52[_0x16fea7(0xad)](/([A-Z])/g,_0x16fea7(0xa2))[_0x16fea7(0x92)]();_0x36b27a[_0x16fea7(0x8f)](_0x1f9e6d);}}return _0x36b27a;}export function parseDynamicFlags(){const _0x118289=a22_0x2d11,_0x49eafc=[];for(let _0x3d2213=0x3;_0x3d2213<process['argv'][_0x118289(0x9a)];_0x3d2213++){const _0x123b61=process['argv'][_0x3d2213];if(_0x123b61&&_0x123b61['startsWith']('--')){const _0x38ecb6=_0x123b61['slice'](0x2);_0x38ecb6&&!_0x38ecb6[_0x118289(0x9e)]('=')&&_0x49eafc['push'](_0x38ecb6);}}return _0x49eafc;}export function getAllProvidedFlags(_0x49504e){const _0x54243d=a22_0x2d11,_0x5eaca9=camelCaseFlagsToKebab(_0x49504e),_0x130a8c=parseDynamicFlags(),_0x546f6a=new Set([..._0x5eaca9,..._0x130a8c]);return Array[_0x54243d(0xa3)](_0x546f6a);}export function normalizeLegacyBffSaveFlags(_0x4615a3){const _0x1153fc=a22_0x2d11,_0x3b7665=new Set(_0x4615a3);return _0x3b7665[_0x1153fc(0x97)](_0x1153fc(0x96))&&_0x3b7665['add']('enable-bff-save'),Array[_0x1153fc(0xa3)](_0x3b7665);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a22_0x2d11(_0x190045,_0x47bc87){_0x190045=_0x190045-0x8e;const _0x2dcc48=a22_0x2dcc();let _0x2d114c=_0x2dcc48[_0x190045];return _0x2d114c;}function a22_0x2dcc(){const _0x170878=['\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','23202vJsIAx','log','1734978yDgbWJ','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','replace','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','push','330uFXKLR','setLogPath','toLowerCase','skill','2888gBAnDF','3452498JPDWCM','dangerously-bff-save','has','12jPrfup','27049PLjgkt','length','498085TJkNpd','568722gPXEqm','exit','includes','1wtpYMS','664863jppBDz','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','from','entries','cwd','help'];a22_0x2dcc=function(){return _0x170878;};return a22_0x2dcc();}export async function skillsCommand(_0x3d7ee5,_0x3af107,_0x3e20dc){const _0x2f4b62=a22_0x2d11;logger[_0x2f4b62(0x91)](process[_0x2f4b62(0xa5)]());if(_0x3e20dc?.[_0x2f4b62(0xa6)]||_0x3d7ee5==='--help'){showHelp();return;}console[_0x2f4b62(0xac)]('Error:\x20Unsupported\x20command:\x20'+(_0x3d7ee5||'(empty)')),console[_0x2f4b62(0xa9)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2f4b62(0xa7)),console[_0x2f4b62(0xa9)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x2f4b62(0xa9)](''),console[_0x2f4b62(0xa9)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2f4b62(0xac)](_0x2f4b62(0x93),'不支持的命令:\x20'+_0x3d7ee5),process[_0x2f4b62(0x9d)](0x1);}function showHelp(){const _0x2fbc54=a22_0x2d11;console[_0x2fbc54(0xa9)](_0x2fbc54(0xa1)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x2fbc54(0xab)+SKILLS_INSTALL_COMMAND_LINE+_0x2fbc54(0x8e));}
@@ -1 +1 @@
1
- const a136_0x558cb8=a136_0x5986;(function(_0x3c2fdc,_0x1927d7){const _0x3c037b=a136_0x5986,_0x2aab86=_0x3c2fdc();while(!![]){try{const _0x379fc4=parseInt(_0x3c037b(0x128))/0x1+parseInt(_0x3c037b(0x11d))/0x2*(-parseInt(_0x3c037b(0x134))/0x3)+-parseInt(_0x3c037b(0x136))/0x4*(parseInt(_0x3c037b(0x11a))/0x5)+parseInt(_0x3c037b(0x12c))/0x6+-parseInt(_0x3c037b(0x124))/0x7+parseInt(_0x3c037b(0x126))/0x8+-parseInt(_0x3c037b(0x133))/0x9*(-parseInt(_0x3c037b(0x11b))/0xa);if(_0x379fc4===_0x1927d7)break;else _0x2aab86['push'](_0x2aab86['shift']());}catch(_0x542cc8){_0x2aab86['push'](_0x2aab86['shift']());}}}(a136_0x566d,0x5e07e));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x5986(_0x11298d,_0x32dbdd){_0x11298d=_0x11298d-0x119;const _0x566dac=a136_0x566d();let _0x5986f6=_0x566dac[_0x11298d];return _0x5986f6;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x558cb8(0x125);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x558cb8(0x11c);export const NPX_SKILLS_FLAG_SKILL='--skill';function a136_0x566d(){const _0x1fead6=['--global','toString','3203091FpGRqZ','51099qpwpFF','trim','2644108qKVUXQ','join','yes','5QwSiZP','30CTpEXI','add','82JBZuOf','unknown','npx','stderr','pipe','stdio','status','4423762ttpJMK','skills','5954864SnGKAM','exit\x20','561147FTjfmZ','skill','lovrabet/lovrabet-skill','Lovrabet','19764GyoWqu','inherit','log','remove','stdout'];a136_0x566d=function(){return _0x1fead6;};return a136_0x566d();}export const RABETBASE_SKILL_SOURCE=a136_0x558cb8(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x558cb8(0x12b);export function buildNpxSkillsAddArgv(_0x3fb649=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3fb649];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x558cb8(0x11f),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x15b1f6,_0x2f908f){const _0x6403d=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x318226=_0x2f908f?.[_0x6403d(0x122)]??_0x6403d(0x12d),_0x24a8d8=resolveNpmBin(_0x6403d(0x11f)),_0x790500=buildNpxSkillsAddArgv(_0x2f908f?.[_0x6403d(0x129)]??DEFAULT_RABETBASE_SKILL_NAME),_0x34f8fb=[_0x24a8d8,..._0x790500][_0x6403d(0x137)]('\x20');console[_0x6403d(0x12e)]('*\x20'+_0x34f8fb);const _0x27bb78=spawnSync(_0x24a8d8,_0x790500,{'cwd':_0x15b1f6,'stdio':_0x318226,'env':process.env,'shell':![]}),_0x142fb3=_0x27bb78[_0x6403d(0x123)];if(_0x142fb3===0x0)return{'ok':!![],'status':0x0};let _0x115f68='exit\x20'+(_0x142fb3??_0x6403d(0x11e));if(_0x318226===_0x6403d(0x121)){const _0x44175c=_0x27bb78[_0x6403d(0x120)]?_0x27bb78[_0x6403d(0x120)][_0x6403d(0x132)]()['trim']():'',_0x4fbf08=_0x27bb78[_0x6403d(0x130)]?_0x27bb78[_0x6403d(0x130)]['toString']()['trim']():'';if(_0x44175c)_0x115f68=_0x44175c;else{if(_0x4fbf08)_0x115f68=_0x4fbf08;}}return{'ok':![],'status':_0x142fb3??null,'error':_0x115f68};}export function runNpxSkillsRemove(_0x3af052,_0x94e3bb){const _0x26a57c=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28b5cb=_0x94e3bb?.['stdio']??'inherit',_0x23b006=resolveNpmBin(_0x26a57c(0x11f)),_0x1f35f0=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x26a57c(0x12f),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x94e3bb?.[_0x26a57c(0x129)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x94e3bb?.[_0x26a57c(0x119)]?['-y']:[]],_0x556632=[_0x23b006,..._0x1f35f0][_0x26a57c(0x137)]('\x20');console[_0x26a57c(0x12e)]('*\x20'+_0x556632);const _0x1c3946=spawnSync(_0x23b006,_0x1f35f0,{'cwd':_0x3af052,'stdio':_0x28b5cb,'env':process.env,'shell':![]}),_0x3b22eb=_0x1c3946[_0x26a57c(0x123)];if(_0x3b22eb===0x0)return{'ok':!![],'status':0x0};let _0x1a976b=_0x26a57c(0x127)+(_0x3b22eb??_0x26a57c(0x11e));if(_0x28b5cb===_0x26a57c(0x121)){const _0xf571ef=_0x1c3946['stderr']?_0x1c3946[_0x26a57c(0x120)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'',_0x3a5b22=_0x1c3946[_0x26a57c(0x130)]?_0x1c3946[_0x26a57c(0x130)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'';if(_0xf571ef)_0x1a976b=_0xf571ef;else{if(_0x3a5b22)_0x1a976b=_0x3a5b22;}}return{'ok':![],'status':_0x3b22eb??null,'error':_0x1a976b};}export function runNpxSkillsAddGlobal(_0x3cd7ec,_0x4b9b5d,_0x19c5ef){const _0x4c2706=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x523095=_0x19c5ef?.['stdio']??_0x4c2706(0x12d),_0x435b05=resolveNpmBin(_0x4c2706(0x11f)),_0x36a068=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4b9b5d,_0x4c2706(0x131),..._0x19c5ef?.[_0x4c2706(0x119)]?['-y']:[]],_0xc0a4b3=[_0x435b05,..._0x36a068][_0x4c2706(0x137)]('\x20');console[_0x4c2706(0x12e)]('*\x20'+_0xc0a4b3);const _0x3ce431=spawnSync(_0x435b05,_0x36a068,{'cwd':_0x3cd7ec,'stdio':_0x523095,'env':process.env,'shell':![]}),_0x52914c=_0x3ce431[_0x4c2706(0x123)];if(_0x52914c===0x0)return{'ok':!![],'status':0x0};let _0x476664=_0x4c2706(0x127)+(_0x52914c??_0x4c2706(0x11e));if(_0x523095===_0x4c2706(0x121)){const _0x333105=_0x3ce431[_0x4c2706(0x120)]?_0x3ce431['stderr'][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'',_0xea06ed=_0x3ce431[_0x4c2706(0x130)]?_0x3ce431[_0x4c2706(0x130)][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'';if(_0x333105)_0x476664=_0x333105;else{if(_0xea06ed)_0x476664=_0xea06ed;}}return{'ok':![],'status':_0x52914c??null,'error':_0x476664};}
1
+ const a21_0x230fe9=a21_0x5f11;function a21_0x5ac6(){const _0x510c66=['npx','stdio','remove','272188qTjfJJ','1766448HQdANf','toString','lovrabet/lovrabet-skill','exit\x20','skill','4WwQUdr','inherit','108AtiBaY','yes','Lovrabet','pipe','--skill','6299448VBKMga','7SvZhdl','1306125GaoHBD','169590BqKfOQ','stdout','join','unknown','status','log','162546QYkiWT','add','828120wwqlsD','trim','stderr'];a21_0x5ac6=function(){return _0x510c66;};return a21_0x5ac6();}(function(_0x2d4df8,_0x4b0a3f){const _0x9db0eb=a21_0x5f11,_0x1ea5ea=_0x2d4df8();while(!![]){try{const _0x32614f=-parseInt(_0x9db0eb(0x12d))/0x1*(-parseInt(_0x9db0eb(0x13d))/0x2)+parseInt(_0x9db0eb(0x136))/0x3+-parseInt(_0x9db0eb(0x127))/0x4+parseInt(_0x9db0eb(0x13f))/0x5+parseInt(_0x9db0eb(0x128))/0x6+parseInt(_0x9db0eb(0x135))/0x7*(-parseInt(_0x9db0eb(0x134))/0x8)+parseInt(_0x9db0eb(0x12f))/0x9*(parseInt(_0x9db0eb(0x137))/0xa);if(_0x32614f===_0x4b0a3f)break;else _0x1ea5ea['push'](_0x1ea5ea['shift']());}catch(_0x5ae747){_0x1ea5ea['push'](_0x1ea5ea['shift']());}}}(a21_0x5ac6,0x8acd1));import{spawnSync}from'node:child_process';function a21_0x5f11(_0x2cf091,_0x5f4efd){_0x2cf091=_0x2cf091-0x123;const _0x5ac6e6=a21_0x5ac6();let _0x5f11b0=_0x5ac6e6[_0x2cf091];return _0x5f11b0;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a21_0x230fe9(0x13e);export const NPX_SKILLS_FLAG_SKILL=a21_0x230fe9(0x133);export const RABETBASE_SKILL_SOURCE=a21_0x230fe9(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a21_0x230fe9(0x131);export function buildNpxSkillsAddArgv(_0x46c872=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x46c872];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a21_0x230fe9(0x124),...buildNpxSkillsAddArgv()][a21_0x230fe9(0x139)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x401ca9,_0x2487fc){const _0x47aaaf=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5dc7d7=_0x2487fc?.[_0x47aaaf(0x125)]??_0x47aaaf(0x12e),_0xac8539=resolveNpmBin(_0x47aaaf(0x124)),_0x4630e0=buildNpxSkillsAddArgv(_0x2487fc?.[_0x47aaaf(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME),_0x346bd1=[_0xac8539,..._0x4630e0][_0x47aaaf(0x139)]('\x20');console[_0x47aaaf(0x13c)]('*\x20'+_0x346bd1);const _0x50c5dd=spawnSync(_0xac8539,_0x4630e0,{'cwd':_0x401ca9,'stdio':_0x5dc7d7,'env':process.env,'shell':![]}),_0x3d37e9=_0x50c5dd[_0x47aaaf(0x13b)];if(_0x3d37e9===0x0)return{'ok':!![],'status':0x0};let _0x10ba2c=_0x47aaaf(0x12b)+(_0x3d37e9??_0x47aaaf(0x13a));if(_0x5dc7d7===_0x47aaaf(0x132)){const _0x24c5d5=_0x50c5dd[_0x47aaaf(0x123)]?_0x50c5dd[_0x47aaaf(0x123)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'',_0x2ec092=_0x50c5dd['stdout']?_0x50c5dd[_0x47aaaf(0x138)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'';if(_0x24c5d5)_0x10ba2c=_0x24c5d5;else{if(_0x2ec092)_0x10ba2c=_0x2ec092;}}return{'ok':![],'status':_0x3d37e9??null,'error':_0x10ba2c};}export function runNpxSkillsRemove(_0x5c4244,_0x318d06){const _0x133693=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x145815=_0x318d06?.[_0x133693(0x125)]??_0x133693(0x12e),_0x3bab55=resolveNpmBin(_0x133693(0x124)),_0x4a02f3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x133693(0x126),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x318d06?.[_0x133693(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x318d06?.[_0x133693(0x130)]?['-y']:[]],_0x2ce6f5=[_0x3bab55,..._0x4a02f3]['join']('\x20');console['log']('*\x20'+_0x2ce6f5);const _0x1f9787=spawnSync(_0x3bab55,_0x4a02f3,{'cwd':_0x5c4244,'stdio':_0x145815,'env':process.env,'shell':![]}),_0x5d7144=_0x1f9787['status'];if(_0x5d7144===0x0)return{'ok':!![],'status':0x0};let _0x5e083c=_0x133693(0x12b)+(_0x5d7144??_0x133693(0x13a));if(_0x145815===_0x133693(0x132)){const _0x5594bb=_0x1f9787[_0x133693(0x123)]?_0x1f9787[_0x133693(0x123)][_0x133693(0x129)]()[_0x133693(0x140)]():'',_0x299cf3=_0x1f9787['stdout']?_0x1f9787['stdout'][_0x133693(0x129)]()[_0x133693(0x140)]():'';if(_0x5594bb)_0x5e083c=_0x5594bb;else{if(_0x299cf3)_0x5e083c=_0x299cf3;}}return{'ok':![],'status':_0x5d7144??null,'error':_0x5e083c};}export function runNpxSkillsAddGlobal(_0x41f9e2,_0xeddaf4,_0x1ba350){const _0xccc3aa=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x599666=_0x1ba350?.[_0xccc3aa(0x125)]??_0xccc3aa(0x12e),_0x20b034=resolveNpmBin('npx'),_0x2b84a3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xeddaf4,'--global',..._0x1ba350?.[_0xccc3aa(0x130)]?['-y']:[]],_0x2abbd8=[_0x20b034,..._0x2b84a3]['join']('\x20');console[_0xccc3aa(0x13c)]('*\x20'+_0x2abbd8);const _0x1cb45a=spawnSync(_0x20b034,_0x2b84a3,{'cwd':_0x41f9e2,'stdio':_0x599666,'env':process.env,'shell':![]}),_0x2dd7fb=_0x1cb45a[_0xccc3aa(0x13b)];if(_0x2dd7fb===0x0)return{'ok':!![],'status':0x0};let _0x19257d=_0xccc3aa(0x12b)+(_0x2dd7fb??'unknown');if(_0x599666===_0xccc3aa(0x132)){const _0x15f478=_0x1cb45a[_0xccc3aa(0x123)]?_0x1cb45a['stderr']['toString']()['trim']():'',_0x4968ff=_0x1cb45a['stdout']?_0x1cb45a[_0xccc3aa(0x138)][_0xccc3aa(0x129)]()[_0xccc3aa(0x140)]():'';if(_0x15f478)_0x19257d=_0x15f478;else{if(_0x4968ff)_0x19257d=_0x4968ff;}}return{'ok':![],'status':_0x2dd7fb??null,'error':_0x19257d};}
@@ -1 +1 @@
1
- (function(_0x21e909,_0x3c1dbe){const _0x26dfae=a137_0xf666,_0x2d6754=_0x21e909();while(!![]){try{const _0xcd3254=-parseInt(_0x26dfae(0x8d))/0x1*(-parseInt(_0x26dfae(0x8f))/0x2)+parseInt(_0x26dfae(0x92))/0x3*(parseInt(_0x26dfae(0x7f))/0x4)+-parseInt(_0x26dfae(0x87))/0x5+-parseInt(_0x26dfae(0x83))/0x6*(parseInt(_0x26dfae(0x82))/0x7)+-parseInt(_0x26dfae(0x84))/0x8+parseInt(_0x26dfae(0x90))/0x9*(parseInt(_0x26dfae(0x81))/0xa)+parseInt(_0x26dfae(0x88))/0xb;if(_0xcd3254===_0x3c1dbe)break;else _0x2d6754['push'](_0x2d6754['shift']());}catch(_0x203e48){_0x2d6754['push'](_0x2d6754['shift']());}}}(a137_0x33c3,0xeb23f));function a137_0x33c3(){const _0x36226a=['service','command','stringify','1483bEIsmL','some','1814pqlTqP','246159IIqRNp','error','12FqDGny','1220812cbuxho','message','500ZqfmHz','7vaqXEr','4923738DSiaZl','7184064lRziiO','entries','durationMs','8255935wMvaSI','4394610dNrljf','[REDACTED]'];a137_0x33c3=function(){return _0x36226a;};return a137_0x33c3();}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];function a137_0xf666(_0x363548,_0x4af6ae){_0x363548=_0x363548-0x7f;const _0x33c39a=a137_0x33c3();let _0xf666cc=_0x33c39a[_0x363548];return _0xf666cc;}function isSensitiveKey(_0x5ebe4d){const _0x24181d=a137_0xf666;return SENSITIVE_PATTERNS[_0x24181d(0x8e)](_0x5d3b8f=>_0x5d3b8f['test'](_0x5ebe4d));}function sanitizeFlags(_0x1f33f5){const _0x523518=a137_0xf666,_0x175044={};for(const [_0x441121,_0x4cd02c]of Object[_0x523518(0x85)](_0x1f33f5)){isSensitiveKey(_0x441121)?_0x175044[_0x441121]=_0x4cd02c!=null&&_0x4cd02c!==''?_0x523518(0x89):_0x4cd02c:_0x175044[_0x441121]=_0x4cd02c;}return _0x175044;}export async function reportCommandTrace(_0x528b64){const _0x182982=a137_0xf666;try{const _0xd36b0b=sanitizeFlags(_0x528b64['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x528b64[_0x182982(0x8a)],'command.name':_0x528b64[_0x182982(0x8b)],'command.flags':JSON[_0x182982(0x8c)](_0xd36b0b),..._0x528b64[_0x182982(0x86)]!=null?{'command.duration_ms':_0x528b64[_0x182982(0x86)]}:{},..._0x528b64[_0x182982(0x91)]?{'command.error':_0x528b64[_0x182982(0x91)]instanceof Error?_0x528b64['error'][_0x182982(0x80)]:String(_0x528b64['error'])}:{}}});}catch{}}
1
+ (function(_0xc47b54,_0x90ec1e){const _0x3311=a38_0x2a93,_0x29d1c9=_0xc47b54();while(!![]){try{const _0x31337a=-parseInt(_0x3311(0x10b))/0x1*(parseInt(_0x3311(0x114))/0x2)+parseInt(_0x3311(0x119))/0x3*(parseInt(_0x3311(0x108))/0x4)+parseInt(_0x3311(0x111))/0x5+-parseInt(_0x3311(0x115))/0x6*(-parseInt(_0x3311(0x113))/0x7)+parseInt(_0x3311(0x11c))/0x8*(-parseInt(_0x3311(0x118))/0x9)+parseInt(_0x3311(0x11a))/0xa*(parseInt(_0x3311(0x109))/0xb)+-parseInt(_0x3311(0x110))/0xc*(parseInt(_0x3311(0x10a))/0xd);if(_0x31337a===_0x90ec1e)break;else _0x29d1c9['push'](_0x29d1c9['shift']());}catch(_0xa05ffa){_0x29d1c9['push'](_0x29d1c9['shift']());}}}(a38_0x5f59,0x3241a));function a38_0x2a93(_0xc41788,_0x2418d1){_0xc41788=_0xc41788-0x108;const _0x5f5967=a38_0x5f59();let _0x2a9387=_0x5f5967[_0xc41788];return _0x2a9387;}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];function isSensitiveKey(_0x254b59){const _0xfae69e=a38_0x2a93;return SENSITIVE_PATTERNS['some'](_0x750afa=>_0x750afa[_0xfae69e(0x11f)](_0x254b59));}function sanitizeFlags(_0x59a88b){const _0x25bd73=a38_0x2a93,_0x1e960a={};for(const [_0x2fa903,_0x360424]of Object[_0x25bd73(0x117)](_0x59a88b)){isSensitiveKey(_0x2fa903)?_0x1e960a[_0x2fa903]=_0x360424!=null&&_0x360424!==''?_0x25bd73(0x10f):_0x360424:_0x1e960a[_0x2fa903]=_0x360424;}return _0x1e960a;}export async function reportCommandTrace(_0x4d7cce){const _0xb0f134=a38_0x2a93;try{const _0x37c86b=sanitizeFlags(_0x4d7cce[_0xb0f134(0x10d)]);await sendCliTraceLog({'spanName':_0xb0f134(0x11d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4d7cce[_0xb0f134(0x112)],'command.name':_0x4d7cce[_0xb0f134(0x116)],'command.flags':JSON[_0xb0f134(0x11e)](_0x37c86b),..._0x4d7cce[_0xb0f134(0x10e)]!=null?{'command.duration_ms':_0x4d7cce[_0xb0f134(0x10e)]}:{},..._0x4d7cce['error']?{'command.error':_0x4d7cce[_0xb0f134(0x11b)]instanceof Error?_0x4d7cce[_0xb0f134(0x11b)][_0xb0f134(0x10c)]:String(_0x4d7cce['error'])}:{}}});}catch{}}function a38_0x5f59(){const _0x43f451=['command','entries','72rbQnGx','4839mAHcLb','10VzHyRB','error','369568ikWOVZ','rabetbase.command','stringify','test','992OUUiHI','3599717YQRHXq','11466lMEFNw','3201ObHsBB','message','flags','durationMs','[REDACTED]','2556DqHOEv','1022315qiLvuU','service','63ArTZch','194fqiDbQ','94698DtztHD'];a38_0x5f59=function(){return _0x43f451;};return a38_0x5f59();}