@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/delete.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -0
- package/lib/commands/dataset/link-delete.js +1 -0
- package/lib/commands/dataset/link-shared.js +1 -0
- package/lib/commands/dataset/link-update.js +1 -0
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -0
- package/lib/commands/issue/report.js +1 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/templates/projects/sub-app-react-demo/README.md +1 -1
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5511d0,_0x31e869){const _0x54e23d=a143_0x4386,_0x3bcda9=_0x5511d0();while(!![]){try{const _0x3dafd5=-parseInt(_0x54e23d(0x1a2))/0x1+parseInt(_0x54e23d(0x1aa))/0x2+parseInt(_0x54e23d(0x1ac))/0x3*(parseInt(_0x54e23d(0x1a7))/0x4)+-parseInt(_0x54e23d(0x1a8))/0x5*(-parseInt(_0x54e23d(0x1a3))/0x6)+-parseInt(_0x54e23d(0x19e))/0x7+-parseInt(_0x54e23d(0x19c))/0x8+-parseInt(_0x54e23d(0x1ad))/0x9*(-parseInt(_0x54e23d(0x1a6))/0xa);if(_0x3dafd5===_0x31e869)break;else _0x3bcda9['push'](_0x3bcda9['shift']());}catch(_0x3a5ae8){_0x3bcda9['push'](_0x3bcda9['shift']());}}}(a143_0x4d1f,0x4c71a));function a143_0x4386(_0x285ba8,_0x1ef806){_0x285ba8=_0x285ba8-0x19b;const _0x4d1ff8=a143_0x4d1f();let _0x438691=_0x4d1ff8[_0x285ba8];return _0x438691;}function a143_0x4d1f(){const _0x2211f3=['datasetCode','451771YGZZQr','15468TCegep','before','functionNode','40kLNRQd','136DQeWCW','1190xVBTsX','toUpperCase','896216lqgape','values','6855cqyQxa','490851GTySSu','trim','1019856YgkzdP','remoteId','3256057oHPDXE','replace','test'];a143_0x4d1f=function(){return _0x2211f3;};return a143_0x4d1f();}export function snakeToCamel(_0x22ca9e){const _0x1638e8=a143_0x4386;return _0x22ca9e['toLowerCase']()[_0x1638e8(0x19f)](/_([a-z])/g,(_0x4e85d8,_0x128ed1)=>_0x128ed1[_0x1638e8(0x1a9)]());}export function findHookLocationByRemoteId(_0x2373ed,_0x3f0e42){const _0x4dd698=a143_0x4386;if(!_0x3f0e42)return undefined;for(const _0x1d58ff of Object[_0x4dd698(0x1ab)](_0x2373ed)){if(_0x1d58ff[_0x4dd698(0x19d)]===_0x3f0e42&&_0x1d58ff[_0x4dd698(0x1a1)]&&_0x1d58ff['operationType']&&_0x1d58ff[_0x4dd698(0x1a5)])return{'datasetCode':_0x1d58ff[_0x4dd698(0x1a1)],'operationType':_0x1d58ff['operationType'],'functionNode':_0x1d58ff[_0x4dd698(0x1a5)]};}return undefined;}export function extractScriptDescription(_0xc8900){const _0x552a28=a143_0x4386,_0x10c6f3=_0xc8900['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x10c6f3?.[0x1]?.[_0x552a28(0x19b)]()||undefined;}export function isValidBffFunctionName(_0x3fcce9){const _0x4598e6=a143_0x4386;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x4598e6(0x1a0)](_0x3fcce9);}export function normalizeHookFunctionNode(_0x1c51dd){const _0x15b0e9=a143_0x4386;if(!_0x1c51dd)return undefined;const _0x3808c4=_0x1c51dd[_0x15b0e9(0x19b)]()['toLowerCase']();if(_0x3808c4===_0x15b0e9(0x1a4)||_0x3808c4==='after')return _0x3808c4;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbc5e4d,_0x1f646c){const _0x3eb3b1=a144_0x2d2b,_0x44a517=_0xbc5e4d();while(!![]){try{const _0x506b11=-parseInt(_0x3eb3b1(0x1fb))/0x1*(parseInt(_0x3eb3b1(0x1f6))/0x2)+-parseInt(_0x3eb3b1(0x1f2))/0x3*(-parseInt(_0x3eb3b1(0x1ee))/0x4)+-parseInt(_0x3eb3b1(0x1e7))/0x5+parseInt(_0x3eb3b1(0x1f7))/0x6+-parseInt(_0x3eb3b1(0x1e5))/0x7+parseInt(_0x3eb3b1(0x1eb))/0x8+parseInt(_0x3eb3b1(0x1e4))/0x9;if(_0x506b11===_0x1f646c)break;else _0x44a517['push'](_0x44a517['shift']());}catch(_0x21aabe){_0x44a517['push'](_0x44a517['shift']());}}}(a144_0x7cf8,0x562f7));function a144_0x2d2b(_0x2e8b12,_0x16a604){_0x2e8b12=_0x2e8b12-0x1e1;const _0x7cf891=a144_0x7cf8();let _0x2d2bb2=_0x7cf891[_0x2e8b12];return _0x2d2bb2;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x351a4b){const _0x100c7e=a144_0x2d2b;if(cache[_0x100c7e(0x1e3)](_0x351a4b))return cache[_0x100c7e(0x1fc)](_0x351a4b);const _0x543f78=await listDatasets(_0x351a4b),_0x5e84d0=new Map();for(const _0x4d4f0d of _0x543f78){const _0x7f9b17=_0x4d4f0d[_0x100c7e(0x1f0)];_0x7f9b17?.[_0x100c7e(0x1f9)]!=null&&_0x5e84d0[_0x100c7e(0x1ef)](_0x7f9b17[_0x100c7e(0x1f9)],_0x7f9b17['dbName']??_0x100c7e(0x1fa)+_0x7f9b17[_0x100c7e(0x1f9)]);}const _0x4dcd85=[..._0x5e84d0[_0x100c7e(0x1ed)]()][_0x100c7e(0x1ec)](([_0x278d9a,_0x199ec7])=>({'dbId':_0x278d9a,'dbName':_0x199ec7}));return cache[_0x100c7e(0x1ef)](_0x351a4b,_0x4dcd85),_0x4dcd85;}function a144_0x7cf8(){const _0x16a43f=['dbName','includes','.\x20Be\x20more\x20specific.','355528kRICBp','map','entries','45340DFWwSN','set','dbtableConfig','toLowerCase','150cwoNcV','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','join','\x22\x20matches\x20multiple\x20databases:\x20','366070CdvHcd','764442VgHcBM','\x22.\x20Available:\x20','dbId','db-','2yjJsGb','get','filter','find','has','7376832TbcXGq','1461089EkWfyk','length','3152170YgdYUz'];a144_0x7cf8=function(){return _0x16a43f;};return a144_0x7cf8();}export async function resolveDb(_0x1ab842,_0x2def74){const _0x5a2996=a144_0x2d2b,_0x49acb2=await listDatabases(_0x1ab842);if(_0x49acb2['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x2def74)return{'resolved':_0x49acb2};const _0x33359b=Number(_0x2def74);if(!Number['isNaN'](_0x33359b)){const _0x2d44bc=_0x49acb2[_0x5a2996(0x1e2)](_0x52174c=>_0x52174c['dbId']===_0x33359b);if(_0x2d44bc)return{'resolved':[_0x2d44bc]};}const _0x5ad67e=_0x2def74[_0x5a2996(0x1f1)](),_0x4f8787=_0x49acb2[_0x5a2996(0x1e1)](_0x3bd9a3=>_0x3bd9a3['dbName'][_0x5a2996(0x1f1)]()[_0x5a2996(0x1e9)](_0x5ad67e));if(_0x4f8787[_0x5a2996(0x1e6)]>0x0)return{'resolved':_0x4f8787};const _0x4d4495=_0x49acb2[_0x5a2996(0x1ec)](_0x550ca8=>_0x550ca8[_0x5a2996(0x1e8)]+'\x20('+_0x550ca8['dbId']+')')[_0x5a2996(0x1f4)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x2def74+_0x5a2996(0x1f8)+_0x4d4495};}export async function resolveOneDb(_0x441767,_0x2aa469){const _0x556b63=a144_0x2d2b,{resolved:_0x2b12b1,error:_0x1e4cb7}=await resolveDb(_0x441767,_0x2aa469);if(_0x1e4cb7)return{'db':null,'error':_0x1e4cb7};if(_0x2b12b1[_0x556b63(0x1e6)]===0x1)return{'db':_0x2b12b1[0x0]};if(!_0x2aa469){const _0x1f188c=_0x2b12b1['map'](_0x10d355=>_0x10d355['dbName']+'\x20('+_0x10d355['dbId']+')')[_0x556b63(0x1f4)](',\x20');return{'db':null,'error':_0x556b63(0x1f3)+_0x1f188c};}const _0xa3b3f2=_0x2b12b1[_0x556b63(0x1ec)](_0x1f9ce5=>_0x1f9ce5[_0x556b63(0x1e8)]+'\x20('+_0x1f9ce5[_0x556b63(0x1f9)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x2aa469+_0x556b63(0x1f5)+_0xa3b3f2+_0x556b63(0x1ea)};}export async function getDbName(_0x2e8522,_0x3b8cc5){const _0x2bc2a3=a144_0x2d2b,_0x4485bf=await listDatabases(_0x2e8522);return _0x4485bf[_0x2bc2a3(0x1e2)](_0x1a2245=>_0x1a2245[_0x2bc2a3(0x1f9)]===_0x3b8cc5)?.[_0x2bc2a3(0x1e8)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x11fd57=a145_0x2365;(function(_0x3ebdc5,_0x57822b){const _0x395d0f=a145_0x2365,_0x2ef7bf=_0x3ebdc5();while(!![]){try{const _0x18463d=parseInt(_0x395d0f(0x17f))/0x1*(parseInt(_0x395d0f(0x17a))/0x2)+-parseInt(_0x395d0f(0x16f))/0x3*(parseInt(_0x395d0f(0x171))/0x4)+parseInt(_0x395d0f(0x179))/0x5*(-parseInt(_0x395d0f(0x173))/0x6)+parseInt(_0x395d0f(0x177))/0x7+-parseInt(_0x395d0f(0x178))/0x8+parseInt(_0x395d0f(0x17e))/0x9*(-parseInt(_0x395d0f(0x174))/0xa)+parseInt(_0x395d0f(0x175))/0xb;if(_0x18463d===_0x57822b)break;else _0x2ef7bf['push'](_0x2ef7bf['shift']());}catch(_0x4f8669){_0x2ef7bf['push'](_0x2ef7bf['shift']());}}}(a145_0x3753,0x4dbd0));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x159686,_0x49bd2e=process[a145_0x11fd57(0x17c)]()){const _0x5db05b=a145_0x11fd57,_0x55a7e5=resolve(_0x49bd2e),_0x186264=join(_0x55a7e5,_0x5db05b(0x17b),_0x5db05b(0x170));return{'projectRoot':_0x55a7e5,'pagesBaseDir':_0x186264,'appPagesDir':join(_0x186264,_0x159686),'lockFilePath':join(_0x55a7e5,_0x5db05b(0x17b),'page.lock.json')};}function a145_0x3753(){const _0xd4b96a=['appPagesDir','13590PlLPQk','44630fFHDyH','12982112xIHVFe','.json','835786xWmlyH','407280lILixf','985yBQYNF','82DiTRYW','.rabetbase','cwd','F_OK','999BCKNkM','7235dlpOBF','855903aXSVfb','page','4NtRcuJ'];a145_0x3753=function(){return _0xd4b96a;};return a145_0x3753();}export function buildPageFileName(_0x2c47b1,_0xb044bd){const _0x56b388=a145_0x11fd57;return _0x2c47b1+'-'+String(_0xb044bd)['toUpperCase']()+_0x56b388(0x176);}export function resolvePageFilePath(_0x1e58ec,_0x3885de,_0x3cc33e){const _0x5959b5=a145_0x11fd57;return join(_0x1e58ec[_0x5959b5(0x172)],buildPageFileName(_0x3885de,_0x3cc33e));}export async function ensureParentDirectory(_0x55a7de){await mkdir(dirname(_0x55a7de),{'recursive':!![]});}function a145_0x2365(_0x1fa3f6,_0x5bb618){_0x1fa3f6=_0x1fa3f6-0x16f;const _0x3753ba=a145_0x3753();let _0x236529=_0x3753ba[_0x1fa3f6];return _0x236529;}export async function fileExists(_0x5edeef){const _0xd0f3dd=a145_0x11fd57;try{return await access(_0x5edeef,constants[_0xd0f3dd(0x17d)]),!![];}catch{return![];}}
|
package/lib/core/page/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4dc705,_0x3278ff){const _0xb86de=a146_0x357f,_0x873a0d=_0x4dc705();while(!![]){try{const _0x1202f8=parseInt(_0xb86de(0x17b))/0x1*(parseInt(_0xb86de(0x17d))/0x2)+-parseInt(_0xb86de(0x180))/0x3*(parseInt(_0xb86de(0x186))/0x4)+parseInt(_0xb86de(0x185))/0x5+parseInt(_0xb86de(0x187))/0x6+parseInt(_0xb86de(0x183))/0x7+-parseInt(_0xb86de(0x181))/0x8*(-parseInt(_0xb86de(0x17e))/0x9)+parseInt(_0xb86de(0x17f))/0xa*(-parseInt(_0xb86de(0x17c))/0xb);if(_0x1202f8===_0x3278ff)break;else _0x873a0d['push'](_0x873a0d['shift']());}catch(_0x1d6c98){_0x873a0d['push'](_0x873a0d['shift']());}}}(a146_0x1505,0xbf423));function a146_0x1505(){const _0x5cd1ae=['5809764ifQvGz','4225008rNYRox','md5','utf8','149811WQyJZp','11GJqprH','10cCNNiD','49302zDeDJZ','13031600PWtXam','3qwPrWA','1440eyAARy','update','706209yNgqms','digest','4994230KugDcq'];a146_0x1505=function(){return _0x5cd1ae;};return a146_0x1505();}import a146_0x64397d from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x35e676){return JSON['stringify'](JSON['parse'](_0x35e676),null,0x2)+'\x0a';}export function computePageContentHash(_0x22efc8){const _0xa14d0f=a146_0x357f;return a146_0x64397d['createHash'](_0xa14d0f(0x188))[_0xa14d0f(0x182)](_0x22efc8)[_0xa14d0f(0x184)]('hex');}function a146_0x357f(_0x394a86,_0x2ae4bf){_0x394a86=_0x394a86-0x17a;const _0x1505e2=a146_0x1505();let _0x357f08=_0x1505e2[_0x394a86];return _0x357f08;}export function computeSerializedSchemaHash(_0x28ecbe){return computePageContentHash(serializePageSchemaForFile(_0x28ecbe));}export async function computePageFileHash(_0xa11de4){const _0xb44145=a146_0x357f,_0x13b63b=await readFile(_0xa11de4,_0xb44145(0x17a));return computePageContentHash(_0x13b63b);}
|
package/lib/core/page/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46c792,_0x11a8bc){const _0x54e3a9=a147_0x3db0,_0x39bf88=_0x46c792();while(!![]){try{const _0x20052d=-parseInt(_0x54e3a9(0xec))/0x1*(parseInt(_0x54e3a9(0xf4))/0x2)+parseInt(_0x54e3a9(0xf3))/0x3+-parseInt(_0x54e3a9(0xfa))/0x4+-parseInt(_0x54e3a9(0xf6))/0x5*(parseInt(_0x54e3a9(0xfc))/0x6)+parseInt(_0x54e3a9(0xed))/0x7+-parseInt(_0x54e3a9(0xf2))/0x8+parseInt(_0x54e3a9(0xee))/0x9;if(_0x20052d===_0x11a8bc)break;else _0x39bf88['push'](_0x39bf88['shift']());}catch(_0x5ce64e){_0x39bf88['push'](_0x39bf88['shift']());}}}(a147_0x2041,0x699a1));function a147_0x3db0(_0x4f1ffa,_0xcbd442){_0x4f1ffa=_0x4f1ffa-0xec;const _0x204165=a147_0x2041();let _0x3db02e=_0x204165[_0x4f1ffa];return _0x3db02e;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a147_0x2041(){const _0x56a03d=['pages','651468WyYPON','parse','863WxCmfd','3279689HzTEmZ','9105048ywqgPv','stringify','code','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','20880GembAa','1380474qJqnfI','310CuzAeH','lastSync','25WfTQQm','apps','utf8','object','3314188QzsYhv'];a147_0x2041=function(){return _0x56a03d;};return a147_0x2041();}export function ensurePageLockScope(_0x101e1c,_0x48f2f6){const _0x1abfbe=a147_0x3db0,_0x5196d1={'apps':_0x101e1c[_0x1abfbe(0xf7)]&&typeof _0x101e1c['apps']===_0x1abfbe(0xf9)?_0x101e1c['apps']:{}};let _0x58c560=_0x5196d1[_0x1abfbe(0xf7)][_0x48f2f6];if(!_0x58c560)return _0x58c560={'lastSync':'','pages':{}},_0x5196d1[_0x1abfbe(0xf7)][_0x48f2f6]=_0x58c560,{'lockData':_0x5196d1,'appLock':_0x58c560};return!_0x58c560[_0x1abfbe(0xf5)]&&(_0x58c560[_0x1abfbe(0xf5)]=''),(!_0x58c560[_0x1abfbe(0xfb)]||typeof _0x58c560[_0x1abfbe(0xfb)]!==_0x1abfbe(0xf9))&&(_0x58c560[_0x1abfbe(0xfb)]={}),{'lockData':_0x5196d1,'appLock':_0x58c560};}export async function readPageLockFile(_0x424590){const _0x26d0da=a147_0x3db0;try{const _0x3c7934=await readFile(_0x424590,_0x26d0da(0xf8)),_0x298100=JSON[_0x26d0da(0xfd)](_0x3c7934);return{'apps':_0x298100[_0x26d0da(0xf7)]&&typeof _0x298100[_0x26d0da(0xf7)]===_0x26d0da(0xf9)?_0x298100[_0x26d0da(0xf7)]:{}};}catch(_0x469ba3){if(_0x469ba3[_0x26d0da(0xf0)]==='ENOENT')return null;throw new Error(_0x26d0da(0xf1)+String(_0x469ba3));}}export async function writePageLockFile(_0x308860,_0x2aac6e){const _0x1edceb=a147_0x3db0;await mkdir(dirname(_0x308860),{'recursive':!![]}),await writeFile(_0x308860,JSON[_0x1edceb(0xef)](_0x2aac6e,null,0x2),_0x1edceb(0xf8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x1120ae=a149_0x135d;function a149_0x135d(_0x760e6b,_0x3a2e51){_0x760e6b=_0x760e6b-0x196;const _0x44e2ef=a149_0x44e2();let _0x135da3=_0x44e2ef[_0x760e6b];return _0x135da3;}function a149_0x44e2(){const _0x12ec09=['1331160VaKOZy','sql','203192YyjLlA','16IukghI','2839956iRflMY','28695rlGvno','606ETaLht','2398249nMZEmv','sql.lock.json','1825644WNzCzf','9lBBvqT','23194270XKamPb','.rabetbase'];a149_0x44e2=function(){return _0x12ec09;};return a149_0x44e2();}(function(_0x5da2c,_0xa75335){const _0x239bf1=a149_0x135d,_0x38aff6=_0x5da2c();while(!![]){try{const _0x5142e4=parseInt(_0x239bf1(0x19e))/0x1+-parseInt(_0x239bf1(0x19c))/0x2+-parseInt(_0x239bf1(0x1a0))/0x3+-parseInt(_0x239bf1(0x198))/0x4+parseInt(_0x239bf1(0x1a1))/0x5*(-parseInt(_0x239bf1(0x1a2))/0x6)+parseInt(_0x239bf1(0x196))/0x7*(parseInt(_0x239bf1(0x19f))/0x8)+parseInt(_0x239bf1(0x199))/0x9*(parseInt(_0x239bf1(0x19a))/0xa);if(_0x5142e4===_0xa75335)break;else _0x38aff6['push'](_0x38aff6['shift']());}catch(_0x3af6ee){_0x38aff6['push'](_0x38aff6['shift']());}}}(a149_0x44e2,0x889bf));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a149_0x1120ae(0x19b),LOCK_FILE_NAME=a149_0x1120ae(0x197),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0xd1731,_0x1ce8f7){const _0x3de8c6=a149_0x1120ae,_0x20fca5=resolve(_0x1ce8f7??findProjectRootDirectory()),_0x133281=DOT_DIR+'/sql',_0x25c788=_0x133281+'/'+_0xd1731;return{'projectRoot':_0x20fca5,'appCode':_0xd1731,'sqlWorkspaceRoot':_0x133281,'sqlRoot':_0x25c788,'sqlRootDir':resolve(_0x20fca5,DOT_DIR,_0x3de8c6(0x19d),_0xd1731),'lockFilePath':resolve(_0x20fca5,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x20fca5,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4170ec,_0x3042ab){const _0x2573fa=a150_0x36b9,_0x3d5c6e=_0x4170ec();while(!![]){try{const _0x1dbe7d=parseInt(_0x2573fa(0x17c))/0x1+-parseInt(_0x2573fa(0x16d))/0x2+-parseInt(_0x2573fa(0x16b))/0x3*(-parseInt(_0x2573fa(0x173))/0x4)+parseInt(_0x2573fa(0x17f))/0x5*(-parseInt(_0x2573fa(0x17d))/0x6)+-parseInt(_0x2573fa(0x164))/0x7*(parseInt(_0x2573fa(0x168))/0x8)+-parseInt(_0x2573fa(0x17b))/0x9+-parseInt(_0x2573fa(0x16c))/0xa*(-parseInt(_0x2573fa(0x166))/0xb);if(_0x1dbe7d===_0x3042ab)break;else _0x3d5c6e['push'](_0x3d5c6e['shift']());}catch(_0x257f73){_0x3d5c6e['push'](_0x3d5c6e['shift']());}}}(a150_0x3f78,0x3efee));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x395d2e){const _0xf5a463=a150_0x36b9;if(_0x395d2e===_0xf5a463(0x16f))return _0xf5a463(0x167);if(_0x395d2e===_0xf5a463(0x161))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x55a564,_0xe10534){const _0x3b66d4=a150_0x36b9,_0x49d05e=[];try{const _0x32ff66=await readdir(_0x55a564,{'withFileTypes':!![]});for(const _0x42bb81 of _0x32ff66){const _0x26c12f=join(_0x55a564,_0x42bb81[_0x3b66d4(0x162)]);if(_0x42bb81[_0x3b66d4(0x15f)]()){_0x49d05e[_0x3b66d4(0x176)](...await scanSqlFilesRecursively(_0x26c12f,_0xe10534));continue;}if(!_0x42bb81[_0x3b66d4(0x178)]())continue;const _0x54008a=extname(_0x42bb81['name'])[_0x3b66d4(0x17e)](),_0x1677cf=extensionToMode(_0x54008a);if(!_0x1677cf)continue;const _0x5e0354=relative(_0xe10534,_0x26c12f)['replace'](/\\/g,'/'),_0x12fa09=_0x5e0354[_0x3b66d4(0x163)]('/')[_0x3b66d4(0x160)](Boolean),_0x2b74b8=parseSqlPath(_0x12fa09,_0x42bb81[_0x3b66d4(0x162)],_0x54008a);if(!_0x2b74b8)continue;_0x49d05e[_0x3b66d4(0x176)]({'sqlCode':_0x2b74b8['sqlCode'],'sqlName':_0x2b74b8[_0x3b66d4(0x170)],'dbDirectory':_0x12fa09[0x0],'filePath':_0x26c12f,'relativePath':_0x5e0354,'lockKey':_0x2b74b8[_0x3b66d4(0x175)],'mode':_0x1677cf});}}catch(_0x5cc80c){if(_0x5cc80c[_0x3b66d4(0x169)]!=='ENOENT')throw _0x5cc80c;}return _0x49d05e;}function a150_0x3f78(){const _0x2d4505=['sql','99432gOdKbu','code','test','638283OLLafk','13193170zFdVrK','881508pFUXLG','dbName','.sql','sqlName','slice','mode','4LYjPxP','indexOf','sqlCode','push','dbId','isFile','path','sqlRootDir','4535748PpBRAC','248951dklIWS','1679862xpVaYe','toLowerCase','5PijDOq','isDirectory','filter','.xml','name','split','168eITyWf','length','11bnVlgL'];a150_0x3f78=function(){return _0x2d4505;};return a150_0x3f78();}function a150_0x36b9(_0x5ab3b3,_0x35eac9){_0x5ab3b3=_0x5ab3b3-0x15f;const _0x3f78d2=a150_0x3f78();let _0x36b946=_0x3f78d2[_0x5ab3b3];return _0x36b946;}export async function scanLocalSqlQueries(_0x1261d2){const _0x51528d=a150_0x36b9;return scanSqlFilesRecursively(_0x1261d2['sqlRootDir'],_0x1261d2[_0x51528d(0x17a)]);}export function resolveLocalSqlFilePath(_0x490a23,_0x2ad55b,_0x5f4a1b){const _0x97566b=a150_0x36b9,_0x299f9f=_0x5f4a1b?.[_0x97566b(0x179)]||(_0x5f4a1b?.[_0x97566b(0x170)]||_0x5f4a1b?.['dbName']?buildSqlRelativePath(_0x2ad55b,_0x5f4a1b?.['sqlName'],_0x5f4a1b?.[_0x97566b(0x16e)],_0x5f4a1b?.[_0x97566b(0x172)]||_0x97566b(0x167),_0x5f4a1b?.[_0x97566b(0x177)]):buildDefaultSqlFileName(_0x2ad55b,_0x5f4a1b?.[_0x97566b(0x172)]||'sql'));return join(_0x490a23[_0x97566b(0x17a)],_0x299f9f);}export async function directoryExists(_0x76baa2){const _0x257412=a150_0x36b9;try{const _0x28b814=await stat(_0x76baa2);return _0x28b814[_0x257412(0x15f)]();}catch{return![];}}function parseSqlPath(_0x314f03,_0x1ffcf6,_0x5233ed){const _0x317a3a=a150_0x36b9,_0x23c394=_0x1ffcf6['slice'](0x0,-_0x5233ed[_0x317a3a(0x165)]);if(_0x314f03[_0x317a3a(0x165)]<0x2)return null;const _0x1437a8=_0x23c394[_0x317a3a(0x174)]('_');if(_0x1437a8<=0x0||_0x1437a8>=_0x23c394[_0x317a3a(0x165)]-0x1)return null;const _0x167dfc=_0x23c394[_0x317a3a(0x171)](0x0,_0x1437a8);if(!isLikelySqlCode(_0x167dfc))return null;return{'sqlCode':_0x167dfc,'sqlName':_0x23c394[_0x317a3a(0x171)](_0x1437a8+0x1)};}function isLikelySqlCode(_0x960d9){const _0x2129b3=a150_0x36b9;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2129b3(0x16a)](_0x960d9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a151_0x4382(){const _0x2987a4=['1834189jMfdbv','18PoIUSO','md5','createHash','4276680LEHFem','10137672vyLeTg','1440674FcUTWY','1016796YgQXnK','9kHuitq','digest','utf8','270363jgfDtC','1711272GnBQPZ','update'];a151_0x4382=function(){return _0x2987a4;};return a151_0x4382();}(function(_0x50dec5,_0x596af6){const _0x495cc2=a151_0x373e,_0x1d4435=_0x50dec5();while(!![]){try{const _0x3ff1f7=-parseInt(_0x495cc2(0x105))/0x1+parseInt(_0x495cc2(0x104))/0x2+parseInt(_0x495cc2(0x109))/0x3+-parseInt(_0x495cc2(0xfc))/0x4+-parseInt(_0x495cc2(0x102))/0x5+-parseInt(_0x495cc2(0xff))/0x6*(-parseInt(_0x495cc2(0xfe))/0x7)+-parseInt(_0x495cc2(0x103))/0x8*(-parseInt(_0x495cc2(0x106))/0x9);if(_0x3ff1f7===_0x596af6)break;else _0x1d4435['push'](_0x1d4435['shift']());}catch(_0x2dee9c){_0x1d4435['push'](_0x1d4435['shift']());}}}(a151_0x4382,0x89a56));function a151_0x373e(_0x1ad8d3,_0x3f7fbf){_0x1ad8d3=_0x1ad8d3-0xfc;const _0x438232=a151_0x4382();let _0x373ece=_0x438232[_0x1ad8d3];return _0x373ece;}import{readFile}from'node:fs/promises';import a151_0x4db2d4 from'node:crypto';export function computeSqlContentHash(_0x2ef69f){const _0x5a09a1=a151_0x373e;return a151_0x4db2d4[_0x5a09a1(0x101)](_0x5a09a1(0x100))[_0x5a09a1(0xfd)](_0x2ef69f)[_0x5a09a1(0x107)]('hex');}export async function computeSqlFileHash(_0x58a1d1){const _0x3bfc53=a151_0x373e,_0x411aee=await readFile(_0x58a1d1,_0x3bfc53(0x108));return computeSqlContentHash(_0x411aee);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc3959b,_0x48a276){const _0x5664d9=a152_0x5736,_0x34f750=_0xc3959b();while(!![]){try{const _0x47604e=-parseInt(_0x5664d9(0x144))/0x1+-parseInt(_0x5664d9(0x14c))/0x2*(-parseInt(_0x5664d9(0x140))/0x3)+-parseInt(_0x5664d9(0x151))/0x4+-parseInt(_0x5664d9(0x14f))/0x5+parseInt(_0x5664d9(0x14a))/0x6+-parseInt(_0x5664d9(0x150))/0x7*(parseInt(_0x5664d9(0x146))/0x8)+parseInt(_0x5664d9(0x141))/0x9;if(_0x47604e===_0x48a276)break;else _0x34f750['push'](_0x34f750['shift']());}catch(_0x586283){_0x34f750['push'](_0x34f750['shift']());}}}(a152_0x2335,0x7a121));function a152_0x2335(){const _0x2cd38b=['apps','703567KSkRHL','utf8','32232EGpENF','stringify','code',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','3125910CyqUXq','\x22\x20vs\x20lock\x20\x22','2kWokYa','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','486550mQOkSy','959VDrArW','3030156MGHrgR','parse','\x22.\x20','sqlRoot','sqls','365727ogrSQP','17707464OdCIFf','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a152_0x2335=function(){return _0x2cd38b;};return a152_0x2335();}function a152_0x5736(_0x49cb3f,_0x3cbe8c){_0x49cb3f=_0x49cb3f-0x13e;const _0x2335be=a152_0x2335();let _0x57367a=_0x2335be[_0x49cb3f];return _0x57367a;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x378f1e,_0x5071de,_0x502da3,_0x3348a9){const _0x12b9bb=a152_0x5736,_0x359f73=_0x378f1e??createEmptySqlLock();let _0x4cea64=_0x359f73[_0x12b9bb(0x143)][_0x5071de];if(!_0x4cea64)return _0x4cea64={'sqlRoot':_0x502da3,'lastSync':'','sqls':{}},_0x359f73['apps'][_0x5071de]=_0x4cea64,{'lockData':_0x359f73,'appLock':_0x4cea64};if(!_0x4cea64['sqlRoot'])_0x4cea64['sqlRoot']=_0x502da3;else{if(_0x4cea64[_0x12b9bb(0x13e)]!==_0x502da3)throw new Error(_0x3348a9+_0x12b9bb(0x149)+_0x502da3+_0x12b9bb(0x14b)+_0x4cea64[_0x12b9bb(0x13e)]+_0x12b9bb(0x153)+_0x12b9bb(0x142));}return!_0x4cea64[_0x12b9bb(0x13f)]&&(_0x4cea64[_0x12b9bb(0x13f)]={}),!_0x4cea64[_0x12b9bb(0x14e)]&&(_0x4cea64[_0x12b9bb(0x14e)]=''),{'lockData':_0x359f73,'appLock':_0x4cea64};}export async function readSqlLockFile(_0x106507){const _0x349fca=a152_0x5736;try{const _0x3f40b1=await readFile(_0x106507,_0x349fca(0x145));return JSON[_0x349fca(0x152)](_0x3f40b1);}catch(_0x1d275a){if(_0x1d275a[_0x349fca(0x148)]==='ENOENT')return null;throw new Error(_0x349fca(0x14d)+String(_0x1d275a));}}export async function writeSqlLockFile(_0x5cd5dd,_0x328b55){const _0x35ec0c=a152_0x5736;await mkdir(dirname(_0x5cd5dd),{'recursive':!![]}),await writeFile(_0x5cd5dd,JSON[_0x35ec0c(0x147)](_0x328b55,null,0x2),_0x35ec0c(0x145));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a154_0x3f5b(){const _0x5efcaf=['121310HhFUFb','sql','.xml','5568120PNprle','723GYaXjU','98412jZkhFn','6506437ZmXIIf','1504pWFnHA','unknown-sql','4910968lNqyyd','trimStart','1576016rEsXVz','.sql','replace','mybatisXml','trim','db-','test','228bPASnH'];a154_0x3f5b=function(){return _0x5efcaf;};return a154_0x3f5b();}(function(_0x366d65,_0x4384ed){const _0x493f23=a154_0x544d,_0x59242d=_0x366d65();while(!![]){try{const _0x3f9c34=parseInt(_0x493f23(0x180))/0x1+-parseInt(_0x493f23(0x182))/0x2*(-parseInt(_0x493f23(0x17f))/0x3)+parseInt(_0x493f23(0x186))/0x4+-parseInt(_0x493f23(0x17b))/0x5*(parseInt(_0x493f23(0x17a))/0x6)+parseInt(_0x493f23(0x181))/0x7+-parseInt(_0x493f23(0x184))/0x8+parseInt(_0x493f23(0x17e))/0x9;if(_0x3f9c34===_0x4384ed)break;else _0x59242d['push'](_0x59242d['shift']());}catch(_0x23e26f){_0x59242d['push'](_0x59242d['shift']());}}}(a154_0x3f5b,0xa77a8));export function detectSqlMode(_0x1135ae){const _0x3684bf=a154_0x544d,_0x221af2=_0x1135ae[_0x3684bf(0x185)]();if(/^<(select|insert|update|delete)\b/i[_0x3684bf(0x179)](_0x221af2))return _0x3684bf(0x176);return _0x3684bf(0x17c);}export function getSqlFileExtension(_0x4ebeed){const _0x4c2cf0=a154_0x544d;return _0x4ebeed===_0x4c2cf0(0x176)?_0x4c2cf0(0x17d):_0x4c2cf0(0x187);}export function buildDefaultSqlFileName(_0x3b1e04,_0x47e499){return''+_0x3b1e04+getSqlFileExtension(_0x47e499);}function a154_0x544d(_0x1153e0,_0x4b54f2){_0x1153e0=_0x1153e0-0x176;const _0x3f5bcf=a154_0x3f5b();let _0x544d48=_0x3f5bcf[_0x1153e0];return _0x544d48;}export function sanitizeSqlPathSegment(_0x22027d,_0x239d3f){const _0x2a6d7b=a154_0x544d,_0x2cc4bb=String(_0x22027d??'')[_0x2a6d7b(0x177)](),_0x110d3d=_0x2cc4bb['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2a6d7b(0x188)](/\s+/g,'-')[_0x2a6d7b(0x188)](/-+/g,'-')[_0x2a6d7b(0x188)](/^\.+/,'')['replace'](/\.+$/,'')[_0x2a6d7b(0x188)](/^-+/,'')[_0x2a6d7b(0x188)](/-+$/,'');return _0x110d3d||_0x239d3f;}export function buildDbDirectoryName(_0xa0b67e,_0x54c03e){const _0x24c062=a154_0x544d;return sanitizeSqlPathSegment(_0xa0b67e,_0x54c03e!=null?_0x24c062(0x178)+_0x54c03e:'unknown-db');}export function buildSqlRelativePath(_0x2c05f9,_0x3622d0,_0x2e0857,_0x5c6c49,_0x1af070){const _0x23e98f=a154_0x544d,_0x102686=buildDbDirectoryName(_0x2e0857,_0x1af070),_0x82c63=sanitizeSqlPathSegment(_0x2c05f9,_0x23e98f(0x183)),_0x4fe209=sanitizeSqlPathSegment(_0x3622d0,_0x82c63);return _0x102686+'/'+_0x82c63+'_'+_0x4fe209+getSqlFileExtension(_0x5c6c49);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bff26,_0x42a5ab){const _0x3c4eb6=a155_0x4d94,_0x12b60b=_0x4bff26();while(!![]){try{const _0x54eb77=parseInt(_0x3c4eb6(0x1cd))/0x1+-parseInt(_0x3c4eb6(0x1e1))/0x2+-parseInt(_0x3c4eb6(0x1dd))/0x3+parseInt(_0x3c4eb6(0x1d7))/0x4+-parseInt(_0x3c4eb6(0x1e0))/0x5+parseInt(_0x3c4eb6(0x1cc))/0x6+parseInt(_0x3c4eb6(0x1c3))/0x7;if(_0x54eb77===_0x42a5ab)break;else _0x12b60b['push'](_0x12b60b['shift']());}catch(_0x1d2cad){_0x12b60b['push'](_0x12b60b['shift']());}}}(a155_0x238a,0xde3d7));export function detectSqlType(_0x2a72db){const _0x107984=a155_0x4d94;if(!_0x2a72db?.[_0x107984(0x1d4)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x107984(0x1d5)};const _0x2acbb6=_0x2a72db[_0x107984(0x1d3)](/#\{[^}]*\}/g,'?')[_0x107984(0x1d3)](/\$\{[^}]*\}/g,'?')[_0x107984(0x1d3)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x107984(0x1d3)](/\/\*[\s\S]*?\*\//g,'')[_0x107984(0x1d4)](),_0x5d29d4=_0x2acbb6['split']('\x0a');let _0x239709='';for(const _0xae05d of _0x5d29d4){const _0x2d5926=_0xae05d['trim']();if(!_0x2d5926||_0x2d5926['startsWith']('--')||_0x2d5926['startsWith']('/*'))continue;_0x239709=_0x2d5926;break;}const _0x358e05=_0x239709['toUpperCase']();if(_0x358e05['startsWith'](_0x107984(0x1d0))||_0x358e05[_0x107984(0x1e3)](_0x107984(0x1de))){const _0x35c885=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x2acbb6);return{'type':_0x107984(0x1d0),'isSelectOnly':!_0x35c885,'isDangerous':_0x35c885,'reason':_0x35c885?_0x107984(0x1db):undefined};}if(_0x358e05[_0x107984(0x1e3)](_0x107984(0x1c9)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x358e05[_0x107984(0x1e3)](_0x107984(0x1ce)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x358e05['startsWith'](_0x107984(0x1c2)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x107984(0x1c7)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x358e05))return{'type':_0x107984(0x1c8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x107984(0x1dc)};return{'type':_0x107984(0x1d1),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x29f177){const _0x143973=a155_0x4d94,_0x15badd=_0x29f177[_0x143973(0x1d3)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x143973(0x1d3)](/'[^']*'/g,'\x27\x27')[_0x143973(0x1d3)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x2a2f21=[],_0x43d41a=_0x15badd[_0x143973(0x1c5)](/FROM\s+([^\s,)(]+)/i);if(_0x43d41a?.[0x1])_0x2a2f21['push'](_0x43d41a[0x1][_0x143973(0x1d3)](/[`"]/g,''));for(const _0x571122 of _0x15badd[_0x143973(0x1c4)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x177031=_0x571122[0x1]?.[_0x143973(0x1d3)](/[`"]/g,'');if(_0x177031&&!_0x2a2f21[_0x143973(0x1df)](_0x177031))_0x2a2f21[_0x143973(0x1cb)](_0x177031);}const _0x13e530=_0x15badd[_0x143973(0x1c5)](/INTO\s+([^\s(]+)/i);if(_0x13e530?.[0x1]){const _0x34faa0=_0x13e530[0x1]['replace'](/[`"]/g,'');if(!_0x2a2f21[_0x143973(0x1df)](_0x34faa0))_0x2a2f21[_0x143973(0x1cb)](_0x34faa0);}const _0x388862=_0x15badd[_0x143973(0x1c5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x388862?.[0x1]){const _0x3d4341=_0x388862[0x1][_0x143973(0x1d3)](/[`"]/g,'');if(!_0x2a2f21[_0x143973(0x1df)](_0x3d4341))_0x2a2f21[_0x143973(0x1cb)](_0x3d4341);}return _0x2a2f21;}function extractParameters(_0x4a033e){const _0x248c8a=a155_0x4d94,_0x34cd2f=new Set();for(const _0x3d5ad5 of _0x4a033e[_0x248c8a(0x1c4)](/#\{(\w+)\}/g))if(_0x3d5ad5[0x1])_0x34cd2f['add'](_0x3d5ad5[0x1]);for(const _0x5aa418 of _0x4a033e[_0x248c8a(0x1c4)](/\$\{(\w+)\}/g))if(_0x5aa418[0x1])_0x34cd2f[_0x248c8a(0x1da)](_0x5aa418[0x1]);return Array['from'](_0x34cd2f);}function a155_0x238a(){const _0xb8966f=['\x20query\x20targeting\x20','startsWith','DELETE','16329502axnOld','matchAll','match','join','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','DDL','INSERT','\x20with\x20parameters:\x20','push','5794746fsDnRv','421046YgJVhC','UPDATE','length','SELECT','UNKNOWN','type','replace','trim','SQL\x20content\x20is\x20empty','isDangerous','1915292lfRQIr','reason','unknown\x20table(s)','add','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','3518766VjRxiB','WITH','includes','7042060hAchwQ','1413634yjTUhg'];a155_0x238a=function(){return _0xb8966f;};return a155_0x238a();}function a155_0x4d94(_0xfc2eab,_0x35fc36){_0xfc2eab=_0xfc2eab-0x1c2;const _0x238a91=a155_0x238a();let _0x4d949f=_0x238a91[_0xfc2eab];return _0x4d949f;}export function validateSql(_0x36cd48){const _0x3391f5=a155_0x4d94,_0x5abebe=detectSqlType(_0x36cd48),_0x21dc8a=extractTables(_0x36cd48),_0x4adbec=extractParameters(_0x36cd48);if(_0x5abebe[_0x3391f5(0x1d6)])return{'valid':![],'sqlType':_0x5abebe,'tables':_0x21dc8a,'parameters':_0x4adbec,'message':_0x5abebe[_0x3391f5(0x1d8)]||_0x5abebe[_0x3391f5(0x1d2)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x5abebe[_0x3391f5(0x1d2)]==='UNKNOWN')return{'valid':![],'sqlType':_0x5abebe,'tables':_0x21dc8a,'parameters':_0x4adbec,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5abebe,'tables':_0x21dc8a,'parameters':_0x4adbec,'message':_0x5abebe[_0x3391f5(0x1d2)]+_0x3391f5(0x1e2)+(_0x21dc8a[_0x3391f5(0x1cf)]?_0x21dc8a[_0x3391f5(0x1c6)](',\x20'):_0x3391f5(0x1d9))+(_0x4adbec[_0x3391f5(0x1cf)]?_0x3391f5(0x1ca)+_0x4adbec[_0x3391f5(0x1c6)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a156_0x63a8cd=a156_0x1fcf;(function(_0x2859b2,_0x39a70f){const _0x249eb3=a156_0x1fcf,_0x5e6e9b=_0x2859b2();while(!![]){try{const _0x4cc30e=parseInt(_0x249eb3(0x157))/0x1*(parseInt(_0x249eb3(0x15f))/0x2)+parseInt(_0x249eb3(0x156))/0x3*(-parseInt(_0x249eb3(0x15a))/0x4)+parseInt(_0x249eb3(0x15d))/0x5+-parseInt(_0x249eb3(0x159))/0x6*(parseInt(_0x249eb3(0x155))/0x7)+-parseInt(_0x249eb3(0x152))/0x8+parseInt(_0x249eb3(0x151))/0x9+parseInt(_0x249eb3(0x153))/0xa*(parseInt(_0x249eb3(0x150))/0xb);if(_0x4cc30e===_0x39a70f)break;else _0x5e6e9b['push'](_0x5e6e9b['shift']());}catch(_0x588b19){_0x5e6e9b['push'](_0x5e6e9b['shift']());}}}(a156_0x28f1,0x2fd85));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a156_0x1fcf(_0x203858,_0x1c4446){_0x203858=_0x203858-0x150;const _0x28f109=a156_0x28f1();let _0x1fcf17=_0x28f109[_0x203858];return _0x1fcf17;}export{CliError};function a156_0x28f1(){const _0x2ac6ea=['2038376kwkFjF','1284890PiNuJD','Run\x20`','19831kOnRrz','3000rfcEjQ','178810GkPiUY','\x0a\x20\x20\x20\x20\x20\x20\x20','156OiRkoK','600RNSuZO','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Tip:\x20`','483950pxSrkc','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','2qHMqVg','join','11jPvnaJ','2433051gjajjr'];a156_0x28f1=function(){return _0x2ac6ea;};return a156_0x28f1();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x63a8cd(0x154)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a156_0x63a8cd(0x15e),a156_0x63a8cd(0x15c)+CLI_BIN_NAME+a156_0x63a8cd(0x15b)][a156_0x63a8cd(0x160)](a156_0x63a8cd(0x158)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x1e20(_0x2c4f92,_0x1d957f){_0x2c4f92=_0x2c4f92-0x10a;var _0x440b15=a157_0x440b();var _0x1e20a1=_0x440b15[_0x2c4f92];return _0x1e20a1;}(function(_0x161404,_0x5a98aa){var _0x129cc8=a157_0x1e20,_0x16edbc=_0x161404();while(!![]){try{var _0x4abd45=parseInt(_0x129cc8(0x10f))/0x1*(parseInt(_0x129cc8(0x112))/0x2)+-parseInt(_0x129cc8(0x114))/0x3+parseInt(_0x129cc8(0x10a))/0x4+parseInt(_0x129cc8(0x110))/0x5+parseInt(_0x129cc8(0x10b))/0x6*(parseInt(_0x129cc8(0x10e))/0x7)+-parseInt(_0x129cc8(0x111))/0x8*(-parseInt(_0x129cc8(0x10c))/0x9)+-parseInt(_0x129cc8(0x113))/0xa*(parseInt(_0x129cc8(0x10d))/0xb);if(_0x4abd45===_0x5a98aa)break;else _0x16edbc['push'](_0x16edbc['shift']());}catch(_0x8ef802){_0x16edbc['push'](_0x16edbc['shift']());}}}(a157_0x440b,0x7d07d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x440b(){var _0x497d39=['6uNhFfu','39321bjPSzy','23221EcPEIA','5594421SJweNu','587OljuQl','127740SvciBf','728bvczwF','676xcxdUg','5170TaZwlo','1354503lJpobl','2537108iGDHdh'];a157_0x440b=function(){return _0x497d39;};return a157_0x440b();}import{buildAllFlags as a157_0x3ec7d1}from'@lovrabet/cli-framework';export function buildAllFlags(_0x14fd41){return a157_0x3ec7d1(_0x14fd41,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a158_0x4fd1(){const _0x224e33=['1040MTtuqh','6EyxiSB','33192KffHew','1200226pnokop','7281054hKsLPl','99989XwbwPB','7DeWfFk','819144kLiJPO','639685ZlJFrZ','36WAHUBQ','1615356QEQEyf','4KqyipW','parseFlags'];a158_0x4fd1=function(){return _0x224e33;};return a158_0x4fd1();}const a158_0x52f76a=a158_0x2f36;(function(_0xd483d0,_0x216979){const _0x518365=a158_0x2f36,_0x4fce96=_0xd483d0();while(!![]){try{const _0x1c198f=parseInt(_0x518365(0x1d6))/0x1+-parseInt(_0x518365(0x1d4))/0x2+parseInt(_0x518365(0x1db))/0x3*(-parseInt(_0x518365(0x1dc))/0x4)+-parseInt(_0x518365(0x1d9))/0x5*(parseInt(_0x518365(0x1d2))/0x6)+-parseInt(_0x518365(0x1d7))/0x7*(parseInt(_0x518365(0x1d8))/0x8)+parseInt(_0x518365(0x1d3))/0x9*(-parseInt(_0x518365(0x1d1))/0xa)+-parseInt(_0x518365(0x1d5))/0xb*(-parseInt(_0x518365(0x1da))/0xc);if(_0x1c198f===_0x216979)break;else _0x4fce96['push'](_0x4fce96['shift']());}catch(_0xf27f30){_0x4fce96['push'](_0x4fce96['shift']());}}}(a158_0x4fd1,0x515e4));import{createFlagHelpers}from'@lovrabet/cli-framework';function a158_0x2f36(_0x4a751e,_0x2ab90e){_0x4a751e=_0x4a751e-0x1d0;const _0x4fd156=a158_0x4fd1();let _0x2f36e0=_0x4fd156[_0x4a751e];return _0x2f36e0;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x52f76a(0x1d0)];export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a159_0x2c78d8=a159_0x2361;function a159_0x2361(_0x27e9cb,_0x21223c){_0x27e9cb=_0x27e9cb-0xfc;const _0x522637=a159_0x5226();let _0x23613=_0x522637[_0x27e9cb];return _0x23613;}(function(_0x5b6cc7,_0x40c95c){const _0x338f77=a159_0x2361,_0x3704c4=_0x5b6cc7();while(!![]){try{const _0x4a845b=parseInt(_0x338f77(0x104))/0x1*(-parseInt(_0x338f77(0x100))/0x2)+-parseInt(_0x338f77(0x102))/0x3+-parseInt(_0x338f77(0x101))/0x4+-parseInt(_0x338f77(0x105))/0x5+-parseInt(_0x338f77(0x106))/0x6*(-parseInt(_0x338f77(0xfe))/0x7)+parseInt(_0x338f77(0x109))/0x8*(-parseInt(_0x338f77(0x108))/0x9)+parseInt(_0x338f77(0xff))/0xa;if(_0x4a845b===_0x40c95c)break;else _0x3704c4['push'](_0x3704c4['shift']());}catch(_0x29638d){_0x3704c4['push'](_0x3704c4['shift']());}}}(a159_0x5226,0x4878f));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a159_0x5226(){const _0x1000b7=['\x20project\x20init`\x20or\x20--appcode).','get','Requires\x20appcode\x20(set\x20via\x20`','3041171iJRuGA','18119280KlkLft','12gRkmOu','2244252NpfUOR','1612041MOQbYZ','\x20[args]\x20[flags]','66455nevbiV','1820670WdQbMF','6ZqqkwS','generateServiceHelp','45BFFGfh','141216EMIkSc'];a159_0x5226=function(){return _0x1000b7;};return a159_0x5226();}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':_0x34f4e5=>serviceGroups[a159_0x2c78d8(0xfc)](_0x34f4e5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x2c78d8(0xfd)+CLI_BIN_NAME+a159_0x2c78d8(0x10a),'serviceUsageSuffix':a159_0x2c78d8(0x103),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2b4adb){return generators['generateCommandHelp'](_0x2b4adb);}export const generateServiceHelp=generators[a159_0x2c78d8(0x107)];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x134a3b,_0x33ef55){var _0x256d0b=a160_0x102c,_0x14f15a=_0x134a3b();while(!![]){try{var _0x40aba2=parseInt(_0x256d0b(0x6c))/0x1*(-parseInt(_0x256d0b(0x6e))/0x2)+parseInt(_0x256d0b(0x69))/0x3+-parseInt(_0x256d0b(0x6d))/0x4*(-parseInt(_0x256d0b(0x6b))/0x5)+parseInt(_0x256d0b(0x6a))/0x6+-parseInt(_0x256d0b(0x68))/0x7+parseInt(_0x256d0b(0x66))/0x8*(parseInt(_0x256d0b(0x64))/0x9)+-parseInt(_0x256d0b(0x65))/0xa*(parseInt(_0x256d0b(0x67))/0xb);if(_0x40aba2===_0x33ef55)break;else _0x14f15a['push'](_0x14f15a['shift']());}catch(_0x48020d){_0x14f15a['push'](_0x14f15a['shift']());}}}(a160_0x1f17,0x2fe64));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a160_0x1f17(){var _0x112f99=['8quaUPT','55nSUsLs','118832NIStma','202224SEjfrc','61566LpFljj','5samVgk','409CUZcKZ','210344cippVf','178DCeHGg','1651167XLwQXc','128290HKIAGA'];a160_0x1f17=function(){return _0x112f99;};return a160_0x1f17();}function a160_0x102c(_0x2a89fa,_0x5107df){_0x2a89fa=_0x2a89fa-0x64;var _0x1f1755=a160_0x1f17();var _0x102c7f=_0x1f1755[_0x2a89fa];return _0x102c7f;}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';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a161_0x46a2(){const _0x5291bb=['6721370mtHpIn','745105IMKcOK','2fHDQEU','3865295ijeRBA','40AWYbCG','12usLhFR','21955516lvbZdO','638537ZdbENP','4aQXJsd','436446TOWRjp','931974pIVhlS'];a161_0x46a2=function(){return _0x5291bb;};return a161_0x46a2();}(function(_0x1e5d59,_0x5dc9e0){const _0x249794=a161_0x2127,_0x5a339c=_0x1e5d59();while(!![]){try{const _0x4cdef0=parseInt(_0x249794(0xfb))/0x1*(parseInt(_0x249794(0x101))/0x2)+parseInt(_0x249794(0xfe))/0x3*(parseInt(_0x249794(0xfc))/0x4)+parseInt(_0x249794(0x100))/0x5+-parseInt(_0x249794(0x104))/0x6*(-parseInt(_0x249794(0x102))/0x7)+-parseInt(_0x249794(0x103))/0x8*(parseInt(_0x249794(0xfd))/0x9)+parseInt(_0x249794(0xff))/0xa+-parseInt(_0x249794(0x105))/0xb;if(_0x4cdef0===_0x5dc9e0)break;else _0x5a339c['push'](_0x5a339c['shift']());}catch(_0x5d22f6){_0x5a339c['push'](_0x5a339c['shift']());}}}(a161_0x46a2,0x9b589));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a161_0x2127(_0xac62c,_0x2696b){_0xac62c=_0xac62c-0xfb;const _0x46a213=a161_0x46a2();let _0x212747=_0x46a213[_0xac62c];return _0x212747;}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5df298,_0x1e66c5){var _0x448445=a162_0x500a,_0x1ddfb7=_0x5df298();while(!![]){try{var _0x5b70ed=-parseInt(_0x448445(0xe5))/0x1*(parseInt(_0x448445(0xe2))/0x2)+parseInt(_0x448445(0xe3))/0x3*(parseInt(_0x448445(0xde))/0x4)+-parseInt(_0x448445(0xe4))/0x5*(parseInt(_0x448445(0xe6))/0x6)+-parseInt(_0x448445(0xdf))/0x7*(-parseInt(_0x448445(0xe0))/0x8)+-parseInt(_0x448445(0xe1))/0x9+parseInt(_0x448445(0xe9))/0xa*(-parseInt(_0x448445(0xe7))/0xb)+-parseInt(_0x448445(0xdd))/0xc*(-parseInt(_0x448445(0xe8))/0xd);if(_0x5b70ed===_0x1e66c5)break;else _0x1ddfb7['push'](_0x1ddfb7['shift']());}catch(_0x2949a2){_0x1ddfb7['push'](_0x1ddfb7['shift']());}}}(a162_0x172d,0x4c1e7));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a162_0x500a(_0x2068a5,_0x1e8548){_0x2068a5=_0x2068a5-0xdd;var _0x172d07=a162_0x172d();var _0x500a49=_0x172d07[_0x2068a5];return _0x500a49;}function a162_0x172d(){var _0x1e875a=['48gHufuC','4566987DBcDTd','24226AadxoW','618YpOhtW','17105oBviOL','29HfhvnW','1038PBceZr','11XFfpbS','2937233GZgCwY','6052010dGUFtj','84RUrTME','11996zMEutl','196182iZtMDc'];a162_0x172d=function(){return _0x1e875a;};return a162_0x172d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x30c2b6,_0xf6c3c8){const _0x388d9e=a163_0x5d5c,_0x10bca3=_0x30c2b6();while(!![]){try{const _0x238bb7=-parseInt(_0x388d9e(0x114))/0x1*(parseInt(_0x388d9e(0x10f))/0x2)+-parseInt(_0x388d9e(0x118))/0x3*(-parseInt(_0x388d9e(0x11a))/0x4)+parseInt(_0x388d9e(0x11c))/0x5*(parseInt(_0x388d9e(0x11d))/0x6)+parseInt(_0x388d9e(0x113))/0x7*(-parseInt(_0x388d9e(0x120))/0x8)+parseInt(_0x388d9e(0x11b))/0x9+parseInt(_0x388d9e(0x119))/0xa+-parseInt(_0x388d9e(0x115))/0xb;if(_0x238bb7===_0xf6c3c8)break;else _0x10bca3['push'](_0x10bca3['shift']());}catch(_0x5ef23f){_0x10bca3['push'](_0x10bca3['shift']());}}}(a163_0x2317,0xb3348));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x5d5c(_0x332e75,_0x2c9de1){_0x332e75=_0x332e75-0x10d;const _0x23178a=a163_0x2317();let _0x5d5c68=_0x23178a[_0x332e75];return _0x5d5c68;}import{CLI_BIN_NAME}from'../constant/cli.js';function a163_0x2317(){const _0x378c5a=['\x20api\x20pull`\x20first.','.\x20Run\x20`','80bVnHvu','string','flags','alias','code','some','429522bzEMJQ','validation','\x22.\x20','type','1024674tKuZSS','3EjdJoB','4011271qjieqK','No\x20api.ts\x20found\x20in\x20','join','6BQtWUi','6587500IMoEAe','1910072jxNEUn','4677111doEcxU','49235KOmpLv','654fXgbRX'];a163_0x2317=function(){return _0x378c5a;};return a163_0x2317();}export function resolveAliasToCode(_0x190bfa,_0x4df137,_0x4ce346,_0x27b5bc){const _0x53b715=a163_0x5d5c,_0xa67419=_0x190bfa[_0x53b715(0x122)][_0x53b715(0x10e)](_0x245d98=>_0x245d98['name']===_0x53b715(0x10d)&&_0x245d98['type']===_0x53b715(0x121)),_0x1b2f86=_0x190bfa[_0x53b715(0x122)][_0x53b715(0x10e)](_0x55aca6=>_0x55aca6['name']===_0x53b715(0x123)&&_0x55aca6[_0x53b715(0x112)]===_0x53b715(0x121));if(!_0xa67419||!_0x1b2f86)return;const _0x261b47=_0x4df137[_0x53b715(0x10d)]?String(_0x4df137['code']):'',_0x29cbdc=_0x4df137[_0x53b715(0x123)]?String(_0x4df137[_0x53b715(0x123)]):'';if(!_0x261b47&&!_0x29cbdc)throw CliErrors[_0x53b715(0x110)]('`'+_0x27b5bc+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x29cbdc&&!_0x261b47){const _0x5036e7=resolveAlias(_0x4ce346,_0x29cbdc);if(!_0x5036e7){const _0x16e499=listAliases(_0x4ce346)['map'](_0x4608f8=>_0x4608f8[_0x53b715(0x123)]),_0x2f3550=_0x16e499['length']?'Available\x20aliases:\x20'+_0x16e499[_0x53b715(0x117)](',\x20'):_0x53b715(0x116)+_0x4ce346+_0x53b715(0x11f)+CLI_BIN_NAME+_0x53b715(0x11e);throw CliErrors[_0x53b715(0x110)]('Unknown\x20alias\x20\x22'+_0x29cbdc+_0x53b715(0x111)+_0x2f3550);}_0x4df137[_0x53b715(0x10d)]=_0x5036e7;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a164_0x539ad5=a164_0x3b5d;function a164_0x4947(){const _0x542430=['High-risk\x20operation\x20`','apiDir','authRequired','10xNfuBA','resolveAppCode','validation','2UOlFdM','108XnQjKO','explicitAppName','284935EZletI','10830633rBRVkP','filter','resolveCookie','9613098JPYTBe','1010198kNGuDL','316757SQPhFG','isNonInteractive','requiresAppCode','currentApp','has','configMissing','cookie','format','map','1283301QfzcPu','defaultPageSize','service','selectedAppName','4034152CdSonk','appCode','8apsGio','defaultVerbose','appcode','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','requiresAuth','verbose'];a164_0x4947=function(){return _0x542430;};return a164_0x4947();}(function(_0x406dfa,_0x28397f){const _0x3316ac=a164_0x3b5d,_0x149b42=_0x406dfa();while(!![]){try{const _0x405ad2=-parseInt(_0x3316ac(0x174))/0x1+-parseInt(_0x3316ac(0x16c))/0x2*(parseInt(_0x3316ac(0x17e))/0x3)+parseInt(_0x3316ac(0x182))/0x4+parseInt(_0x3316ac(0x16f))/0x5*(-parseInt(_0x3316ac(0x16d))/0x6)+-parseInt(_0x3316ac(0x175))/0x7*(-parseInt(_0x3316ac(0x184))/0x8)+parseInt(_0x3316ac(0x173))/0x9+parseInt(_0x3316ac(0x169))/0xa*(parseInt(_0x3316ac(0x170))/0xb);if(_0x405ad2===_0x28397f)break;else _0x149b42['push'](_0x149b42['shift']());}catch(_0x50bb20){_0x149b42['push'](_0x149b42['shift']());}}}(a164_0x4947,0x9cedf));function a164_0x3b5d(_0x153cb6,_0xb128f0){_0x153cb6=_0x153cb6-0x168;const _0x4947a4=a164_0x4947();let _0x3b5d6d=_0x4947a4[_0x153cb6];return _0x3b5d6d;}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 a164_0x272ad1}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3e2aa3,_0xfba210,_0x3866e2=[]){const _0x4b3e9a=a164_0x3b5d;return{'rawFlags':_0xfba210,'args':_0x3866e2,'resolveAppCode':()=>_0x3e2aa3['appCode']||_0xfba210[_0x4b3e9a(0x186)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3e2aa3[_0x4b3e9a(0x17b)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x272ad1(_0xfba210),'defaultFormat':_0x3e2aa3[_0x4b3e9a(0x17c)],'defaultPageSize':_0x3e2aa3['pageSize'],'defaultVerbose':_0x3e2aa3[_0x4b3e9a(0x18a)],'apiDir':_0x3e2aa3[_0x4b3e9a(0x18c)],'riskLevel':_0x3e2aa3['riskLevel'],'selectedAppName':_0x3e2aa3[_0x4b3e9a(0x16e)],'mergedCli':{'defaultApp':_0x3e2aa3['defaultApp'],'currentApp':_0x3e2aa3[_0x4b3e9a(0x178)],'appCode':_0x3e2aa3[_0x4b3e9a(0x183)],'apps':_0x3e2aa3['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x539ad5(0x171)](_0x2ca3b3=>PIPELINE_FLAG_NAMES[a164_0x539ad5(0x179)](_0x2ca3b3['name']))[a164_0x539ad5(0x17d)](({name:_0x1db170,type:_0x31c1e5,description:_0x29664d})=>({'name':_0x1db170,'type':_0x31c1e5,'description':_0x29664d})),'formatOutput':formatOutput,'getCommandLabel'(_0x2845e5){const _0x3254ee=a164_0x539ad5;return CLI_BIN_NAME+'\x20'+_0x2845e5[_0x3254ee(0x180)]+'\x20'+_0x2845e5['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1e63e4){const _0x21128e=a164_0x539ad5;return CliErrors[_0x21128e(0x16b)](_0x1e63e4);}},async 'prepare'(_0x5e7671,_0x4472b4,_0x1d63a0,_0x2ea048){const _0x5ff689=a164_0x539ad5,_0x45206d=_0x4472b4['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x5e7671,_0x1d63a0,_0x45206d,_0x2ea048);let _0x867967='';if(_0x5e7671[_0x5ff689(0x189)]!==![]){_0x867967=_0x4472b4[_0x5ff689(0x172)]();if(!_0x867967)throw CliErrors[_0x5ff689(0x168)]();const {setActiveCookie:_0x5c365e}=await import(_0x5ff689(0x187));_0x5c365e(_0x867967);}const _0x2224df=_0x4472b4[_0x5ff689(0x16a)]()??'';if(_0x5e7671[_0x5ff689(0x177)]!==![]){if(!_0x2224df)throw CliErrors[_0x5ff689(0x17a)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4472b4[_0x5ff689(0x185)]},'numbers':{'pagesize':_0x4472b4[_0x5ff689(0x17f)]}},'extras':{'appCode':_0x2224df,'cookie':_0x867967,'apiDomain':_0x4472b4['resolveApiDomain'](),'apiDir':_0x45206d,'selectedAppName':_0x4472b4[_0x5ff689(0x181)],'mergedCli':_0x4472b4['mergedCli']}};},async 'confirmHighRisk'({env:_0x9f2e1a,commandLabel:_0x2a6007}){const _0x4eaf67=a164_0x539ad5;if(_0x9f2e1a[_0x4eaf67(0x176)])throw CliErrors[_0x4eaf67(0x16b)](_0x4eaf67(0x18b)+_0x2a6007+_0x4eaf67(0x188));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2a6007,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x5432a6=>CliErrors['cancelled'](_0x5432a6)});},async 'finalize'(){const _0x273a24=a164_0x539ad5,{clearActiveCookie:_0xf29f7f}=await import(_0x273a24(0x187));_0xf29f7f();}};export async function runCommand(_0x1c80c6,_0x5bbc08){await runCommandWithAdapter(_0x1c80c6,_0x5bbc08,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cf636,_0xa95fe0){const _0x2622b4=a165_0x3fd1,_0x16dce4=_0x3cf636();while(!![]){try{const _0x58ce37=parseInt(_0x2622b4(0x187))/0x1+-parseInt(_0x2622b4(0x184))/0x2+-parseInt(_0x2622b4(0x189))/0x3*(-parseInt(_0x2622b4(0x182))/0x4)+-parseInt(_0x2622b4(0x18d))/0x5*(parseInt(_0x2622b4(0x18c))/0x6)+parseInt(_0x2622b4(0x18b))/0x7*(-parseInt(_0x2622b4(0x185))/0x8)+parseInt(_0x2622b4(0x183))/0x9*(-parseInt(_0x2622b4(0x18a))/0xa)+parseInt(_0x2622b4(0x188))/0xb*(parseInt(_0x2622b4(0x186))/0xc);if(_0x58ce37===_0xa95fe0)break;else _0x16dce4['push'](_0x16dce4['shift']());}catch(_0x5aedb6){_0x16dce4['push'](_0x16dce4['shift']());}}}(a165_0xe15e,0x5e9f3));function a165_0xe15e(){const _0x2f0588=['1076316aWygbF','1882792FmHpVV','39972Uebuwd','264237daWeii','5269yiCYoa','3CtkFgw','3780FSdNfs','7gXCfzs','19014NsLuRe','665OBDcHW','6932WlXiDz','6642JIdjfQ'];a165_0xe15e=function(){return _0x2f0588;};return a165_0xe15e();}import{buildSchemaPayload as a165_0x1f643c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a165_0x3fd1(_0x55b1c7,_0x1b5b98){_0x55b1c7=_0x55b1c7-0x182;const _0xe15e52=a165_0xe15e();let _0x3fd185=_0xe15e52[_0x55b1c7];return _0x3fd185;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x1fe1b2,findDefinition:_0x28f4d9}=await import('../commands/registry.js');return a165_0x1f643c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1fe1b2,'buildAllFlags':buildAllFlags,'findDefinition':_0x28f4d9});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x236c32,_0x55e1b5){var _0x61c292=a166_0x522d,_0x50ece6=_0x236c32();while(!![]){try{var _0x85b045=-parseInt(_0x61c292(0x1d0))/0x1*(parseInt(_0x61c292(0x1cc))/0x2)+parseInt(_0x61c292(0x1d2))/0x3*(parseInt(_0x61c292(0x1d3))/0x4)+-parseInt(_0x61c292(0x1cd))/0x5+-parseInt(_0x61c292(0x1ca))/0x6*(-parseInt(_0x61c292(0x1ce))/0x7)+-parseInt(_0x61c292(0x1d4))/0x8+-parseInt(_0x61c292(0x1d5))/0x9*(-parseInt(_0x61c292(0x1cf))/0xa)+-parseInt(_0x61c292(0x1d1))/0xb*(-parseInt(_0x61c292(0x1cb))/0xc);if(_0x85b045===_0x55e1b5)break;else _0x50ece6['push'](_0x50ece6['shift']());}catch(_0x46e13e){_0x50ece6['push'](_0x50ece6['shift']());}}}(a166_0x231e,0x482d2));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x522d(_0x33a5ef,_0x1b2bab){_0x33a5ef=_0x33a5ef-0x1ca;var _0x231e7e=a166_0x231e();var _0x522d60=_0x231e7e[_0x33a5ef];return _0x522d60;}function a166_0x231e(){var _0x5c0a72=['6OtgGXl','9838932AlOcRQ','1008868vhQWOc','1976130GYKUYI','1853047nrTpRH','2020ycIKEb','1jXpwZv','11XaAGOO','117RLSFZS','6316egcOHy','1670984TAUhcJ','11493cMMzha'];a166_0x231e=function(){return _0x5c0a72;};return a166_0x231e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a167_0x2403(){const _0x512541=['v2.1.7-beta.10','505GCynln','877886SqtTlz','3709688YNUHTZ','12ce982','8348661lJcxPw','2026-04-27T08:45:34.511Z','7xpEqlt','835078ZFPVAu','10gplshb','3137007HKtCPY','32736qQJRVt','2.1.7-beta.10','4273336qhPGMT'];a167_0x2403=function(){return _0x512541;};return a167_0x2403();}const a167_0x187aa2=a167_0x2e5e;function a167_0x2e5e(_0x27e8bc,_0x488829){_0x27e8bc=_0x27e8bc-0xf5;const _0x2403b7=a167_0x2403();let _0x2e5e94=_0x2403b7[_0x27e8bc];return _0x2e5e94;}(function(_0x3b03b1,_0x36812b){const _0x4c0797=a167_0x2e5e,_0x28ad91=_0x3b03b1();while(!![]){try{const _0x16a23e=-parseInt(_0x4c0797(0x101))/0x1+parseInt(_0x4c0797(0xfb))/0x2+parseInt(_0x4c0797(0xf5))/0x3+parseInt(_0x4c0797(0xf8))/0x4+-parseInt(_0x4c0797(0xfa))/0x5*(-parseInt(_0x4c0797(0xf6))/0x6)+parseInt(_0x4c0797(0x100))/0x7*(-parseInt(_0x4c0797(0xfc))/0x8)+-parseInt(_0x4c0797(0xfe))/0x9*(parseInt(_0x4c0797(0x102))/0xa);if(_0x16a23e===_0x36812b)break;else _0x28ad91['push'](_0x28ad91['shift']());}catch(_0x9050b1){_0x28ad91['push'](_0x28ad91['shift']());}}}(a167_0x2403,0xd6410));export const VERSION=a167_0x187aa2(0xf7);export const GIT_TAG=a167_0x187aa2(0xf9);export const GIT_COMMIT=a167_0x187aa2(0xfd);export const BUILD_TIME=a167_0x187aa2(0xff);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe6e6de,_0x5047c1){var _0x22bd78=a168_0x37e9,_0x5e9c6b=_0xe6e6de();while(!![]){try{var _0x3f7329=parseInt(_0x22bd78(0x118))/0x1+parseInt(_0x22bd78(0x122))/0x2+-parseInt(_0x22bd78(0x11e))/0x3+-parseInt(_0x22bd78(0x11b))/0x4+-parseInt(_0x22bd78(0x11d))/0x5*(-parseInt(_0x22bd78(0x119))/0x6)+-parseInt(_0x22bd78(0x121))/0x7+parseInt(_0x22bd78(0x123))/0x8;if(_0x3f7329===_0x5047c1)break;else _0x5e9c6b['push'](_0x5e9c6b['shift']());}catch(_0x431aef){_0x5e9c6b['push'](_0x5e9c6b['shift']());}}}(a168_0x5416,0x66dfc));import a168_0x43b18a from'chalk';function a168_0x5416(){var _0x320dd0=['5rzOiyi','2170236DrRbRV','bold','log','2868873WKWLMg','1602934ZAwLEA','3043384TbmUcs','\x20to\x20view\x20available\x20commands.','461686adGeGg','1014834BNSUUj','green','1032368gzNZIP','\x20\x20Use\x20'];a168_0x5416=function(){return _0x320dd0;};return a168_0x5416();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0x37e9(_0x6f6ca5,_0x2e8d21){_0x6f6ca5=_0x6f6ca5-0x118;var _0x541622=a168_0x5416();var _0x37e950=_0x541622[_0x6f6ca5];return _0x37e950;}export function showHelp(){var _0x323530=a168_0x37e9;console[_0x323530(0x120)](),console[_0x323530(0x120)](a168_0x43b18a['green'][_0x323530(0x11f)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x323530(0x120)](),console[_0x323530(0x120)](_0x323530(0x11c)+a168_0x43b18a[_0x323530(0x11a)][_0x323530(0x11f)](CLI_BIN_NAME+'\x20--help')+_0x323530(0x124)),console[_0x323530(0x120)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7961ec,_0x299abd){const _0x44e765=a169_0x4320,_0x5416e3=_0x7961ec();while(!![]){try{const _0x3419c5=parseInt(_0x44e765(0x1d7))/0x1+parseInt(_0x44e765(0x1d8))/0x2*(parseInt(_0x44e765(0x1d0))/0x3)+parseInt(_0x44e765(0x1de))/0x4+parseInt(_0x44e765(0x1e2))/0x5+parseInt(_0x44e765(0x1c6))/0x6*(-parseInt(_0x44e765(0x1c4))/0x7)+parseInt(_0x44e765(0x1d3))/0x8*(parseInt(_0x44e765(0x1c1))/0x9)+-parseInt(_0x44e765(0x1c7))/0xa;if(_0x3419c5===_0x299abd)break;else _0x5416e3['push'](_0x5416e3['shift']());}catch(_0x30e1a5){_0x5416e3['push'](_0x5416e3['shift']());}}}(a169_0x4843,0x29f11));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3c74f7){const _0xdff24e=a169_0x4320,_0x2499b6=[];for(const [_0x144534,_0x12423a]of Object[_0xdff24e(0x1cb)](_0x3c74f7)){if(_0x12423a===!![]){const _0x10a291=_0x144534[_0xdff24e(0x1d6)](/([A-Z])/g,_0xdff24e(0x1d1))[_0xdff24e(0x1c5)]();_0x2499b6[_0xdff24e(0x1ca)](_0x10a291);}}return _0x2499b6;}function a169_0x4320(_0x3b3696,_0x23d5ab){_0x3b3696=_0x3b3696-0x1be;const _0x484307=a169_0x4843();let _0x432023=_0x484307[_0x3b3696];return _0x432023;}export function parseDynamicFlags(){const _0x3b52db=a169_0x4320,_0x4d2c3f=[];for(let _0x4b76b4=0x3;_0x4b76b4<process[_0x3b52db(0x1c0)][_0x3b52db(0x1cf)];_0x4b76b4++){const _0x27eca9=process[_0x3b52db(0x1c0)][_0x4b76b4];if(_0x27eca9&&_0x27eca9[_0x3b52db(0x1c3)]('--')){const _0x57fa6b=_0x27eca9['slice'](0x2);_0x57fa6b&&!_0x57fa6b[_0x3b52db(0x1d9)]('=')&&_0x4d2c3f[_0x3b52db(0x1ca)](_0x57fa6b);}}return _0x4d2c3f;}export function getAllProvidedFlags(_0x108190){const _0x314c5e=camelCaseFlagsToKebab(_0x108190),_0x3eefc5=parseDynamicFlags(),_0x3acdd9=new Set([..._0x314c5e,..._0x3eefc5]);return Array['from'](_0x3acdd9);}function a169_0x4843(){const _0x9f77e7=['30170aNgdHa','toLowerCase','294qcPGjt','8199610hsBdSC','log','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','push','entries','cwd','\x0aAvailable\x20commands:','enable-bff-save','length','537WtoEGi','-$1','setLogPath','2216856JzIUOi','dangerously-bff-save','Error:\x20Unsupported\x20command:\x20','replace','202043fKSpOy','3156NEzQDE','includes','--help','add','skill','from','1131100QCxnKY','has','不支持的命令:\x20','exit','792785iLlurq','help','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','error','argv','9NxaOBV','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','startsWith'];a169_0x4843=function(){return _0x9f77e7;};return a169_0x4843();}export function normalizeLegacyBffSaveFlags(_0x353e5c){const _0x90d9f2=a169_0x4320,_0x488151=new Set(_0x353e5c);return _0x488151[_0x90d9f2(0x1df)](_0x90d9f2(0x1d4))&&_0x488151[_0x90d9f2(0x1db)](_0x90d9f2(0x1ce)),Array[_0x90d9f2(0x1dd)](_0x488151);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x12b18e,_0x351a60,_0x16cd9c){const _0x42c311=a169_0x4320;logger[_0x42c311(0x1d2)](process[_0x42c311(0x1cc)]());if(_0x16cd9c?.[_0x42c311(0x1e3)]||_0x12b18e===_0x42c311(0x1da)){showHelp();return;}console[_0x42c311(0x1bf)](_0x42c311(0x1d5)+(_0x12b18e||'(empty)')),console[_0x42c311(0x1c8)](_0x42c311(0x1cd)),console[_0x42c311(0x1c8)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x42c311(0x1c8)]('\x20\x20'+CLI_BIN_NAME+_0x42c311(0x1c9)),console[_0x42c311(0x1c8)](''),console[_0x42c311(0x1c8)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x42c311(0x1bf)](_0x42c311(0x1dc),_0x42c311(0x1e0)+_0x12b18e),process[_0x42c311(0x1e1)](0x1);}function showHelp(){const _0x21f824=a169_0x4320;console[_0x21f824(0x1c8)](_0x21f824(0x1be)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x21f824(0x1c2));}
|