@lovrabet/rabetbase-cli 2.1.7-beta.3 → 2.1.7-beta.4
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 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- 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 -1
- package/lib/commands/issue/report.js +1 -1
- 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 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a155_0x2459(_0x19ccc8,_0x9b31f6){_0x19ccc8=_0x19ccc8-0x10b;const _0x85bef2=a155_0x85be();let _0x2459e3=_0x85bef2[_0x19ccc8];return _0x2459e3;}(function(_0x243fdf,_0x300bc3){const _0x26b016=a155_0x2459,_0x990571=_0x243fdf();while(!![]){try{const _0x583372=-parseInt(_0x26b016(0x117))/0x1*(-parseInt(_0x26b016(0x10b))/0x2)+parseInt(_0x26b016(0x11e))/0x3+-parseInt(_0x26b016(0x116))/0x4+parseInt(_0x26b016(0x112))/0x5+parseInt(_0x26b016(0x127))/0x6*(-parseInt(_0x26b016(0x122))/0x7)+-parseInt(_0x26b016(0x129))/0x8+parseInt(_0x26b016(0x115))/0x9;if(_0x583372===_0x300bc3)break;else _0x990571['push'](_0x990571['shift']());}catch(_0x3f7321){_0x990571['push'](_0x990571['shift']());}}}(a155_0x85be,0xe95e0));function a155_0x85be(){const _0x52426e=['1jnZXoJ','UNKNOWN','DELETE','replace','add','INSERT','toUpperCase','2247228WJbwAu','type','includes','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','7XoUTAT','SQL\x20content\x20is\x20empty','WITH','from','matchAll','8738082iIwnpK','isDangerous','2103912hpjukF','push','length','trim','join','SELECT','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','2894YLuYMD','startsWith','\x20with\x20parameters:\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','test','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','UPDATE','9109135DTmhsZ','reason','match','2636379XhBQyn','760292TvvUIn'];a155_0x85be=function(){return _0x52426e;};return a155_0x85be();}export function detectSqlType(_0x48617c){const _0x881fad=a155_0x2459;if(!_0x48617c?.[_0x881fad(0x12c)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x881fad(0x123)};const _0xa13d4a=_0x48617c[_0x881fad(0x11a)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x881fad(0x11a)](/\/\*[\s\S]*?\*\//g,'')[_0x881fad(0x12c)](),_0x11d72e=_0xa13d4a['split']('\x0a');let _0x39bbb4='';for(const _0x448045 of _0x11d72e){const _0x20ccb8=_0x448045[_0x881fad(0x12c)]();if(!_0x20ccb8||_0x20ccb8[_0x881fad(0x10c)]('--')||_0x20ccb8[_0x881fad(0x10c)]('/*'))continue;_0x39bbb4=_0x20ccb8;break;}const _0x3b6b22=_0x39bbb4[_0x881fad(0x11d)]();if(_0x3b6b22[_0x881fad(0x10c)](_0x881fad(0x12e))||_0x3b6b22[_0x881fad(0x10c)](_0x881fad(0x124))){const _0x58cd53=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x881fad(0x10f)](_0xa13d4a);return{'type':_0x881fad(0x12e),'isSelectOnly':!_0x58cd53,'isDangerous':_0x58cd53,'reason':_0x58cd53?_0x881fad(0x10e):undefined};}if(_0x3b6b22[_0x881fad(0x10c)](_0x881fad(0x11c)))return{'type':_0x881fad(0x11c),'isSelectOnly':![],'isDangerous':![]};if(_0x3b6b22['startsWith'](_0x881fad(0x111)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x3b6b22[_0x881fad(0x10c)](_0x881fad(0x119)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x881fad(0x12f)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x881fad(0x10f)](_0x3b6b22))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x881fad(0x110)};return{'type':_0x881fad(0x118),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0xb750d){const _0x5f4958=a155_0x2459,_0x1ed9d2=_0xb750d[_0x5f4958(0x11a)](/#\{[^}]*\}/g,'?')[_0x5f4958(0x11a)](/\$\{[^}]*\}/g,'?')[_0x5f4958(0x11a)](/'[^']*'/g,'\x27\x27')[_0x5f4958(0x11a)](/--.*$/gm,'')[_0x5f4958(0x11a)](/\/\*[\s\S]*?\*\//g,''),_0x2d12cb=[],_0x19ff3b=_0x1ed9d2[_0x5f4958(0x114)](/FROM\s+([^\s,)(]+)/i);if(_0x19ff3b?.[0x1])_0x2d12cb[_0x5f4958(0x12a)](_0x19ff3b[0x1][_0x5f4958(0x11a)](/[`"]/g,''));for(const _0x8b1f5a of _0x1ed9d2[_0x5f4958(0x126)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4b81b8=_0x8b1f5a[0x1]?.[_0x5f4958(0x11a)](/[`"]/g,'');if(_0x4b81b8&&!_0x2d12cb['includes'](_0x4b81b8))_0x2d12cb[_0x5f4958(0x12a)](_0x4b81b8);}const _0x485005=_0x1ed9d2['match'](/INTO\s+([^\s(]+)/i);if(_0x485005?.[0x1]){const _0x519f5e=_0x485005[0x1][_0x5f4958(0x11a)](/[`"]/g,'');if(!_0x2d12cb[_0x5f4958(0x120)](_0x519f5e))_0x2d12cb[_0x5f4958(0x12a)](_0x519f5e);}const _0x1931da=_0x1ed9d2[_0x5f4958(0x114)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1931da?.[0x1]){const _0x597921=_0x1931da[0x1][_0x5f4958(0x11a)](/[`"]/g,'');if(!_0x2d12cb[_0x5f4958(0x120)](_0x597921))_0x2d12cb['push'](_0x597921);}return _0x2d12cb;}function extractParameters(_0x1d0bec){const _0x1b3c99=a155_0x2459,_0x9971d5=new Set();for(const _0x1eb43f of _0x1d0bec['matchAll'](/#\{(\w+)\}/g))if(_0x1eb43f[0x1])_0x9971d5['add'](_0x1eb43f[0x1]);for(const _0x39d71a of _0x1d0bec[_0x1b3c99(0x126)](/\$\{(\w+)\}/g))if(_0x39d71a[0x1])_0x9971d5[_0x1b3c99(0x11b)](_0x39d71a[0x1]);return Array[_0x1b3c99(0x125)](_0x9971d5);}export function validateSql(_0x1c64c9){const _0x4eef96=a155_0x2459,_0x470c68=detectSqlType(_0x1c64c9),_0x2b6a74=extractTables(_0x1c64c9),_0x28cd8d=extractParameters(_0x1c64c9);if(_0x470c68[_0x4eef96(0x128)])return{'valid':![],'sqlType':_0x470c68,'tables':_0x2b6a74,'parameters':_0x28cd8d,'message':_0x470c68[_0x4eef96(0x113)]||_0x470c68['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x470c68[_0x4eef96(0x11f)]==='UNKNOWN')return{'valid':![],'sqlType':_0x470c68,'tables':_0x2b6a74,'parameters':_0x28cd8d,'message':_0x4eef96(0x121)};return{'valid':!![],'sqlType':_0x470c68,'tables':_0x2b6a74,'parameters':_0x28cd8d,'message':_0x470c68['type']+_0x4eef96(0x130)+(_0x2b6a74[_0x4eef96(0x12b)]?_0x2b6a74[_0x4eef96(0x12d)](',\x20'):'unknown\x20table(s)')+(_0x28cd8d[_0x4eef96(0x12b)]?_0x4eef96(0x10d)+_0x28cd8d[_0x4eef96(0x12d)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x7b7924=a156_0x4beb;(function(_0x31abfd,_0x3d7ae9){const _0x5290f2=a156_0x4beb,_0x1897c7=_0x31abfd();while(!![]){try{const _0x3ab0fd=-parseInt(_0x5290f2(0x140))/0x1+-parseInt(_0x5290f2(0x143))/0x2+-parseInt(_0x5290f2(0x147))/0x3*(-parseInt(_0x5290f2(0x14f))/0x4)+-parseInt(_0x5290f2(0x148))/0x5*(parseInt(_0x5290f2(0x144))/0x6)+-parseInt(_0x5290f2(0x149))/0x7+parseInt(_0x5290f2(0x153))/0x8*(-parseInt(_0x5290f2(0x145))/0x9)+parseInt(_0x5290f2(0x14e))/0xa*(parseInt(_0x5290f2(0x150))/0xb);if(_0x3ab0fd===_0x3d7ae9)break;else _0x1897c7['push'](_0x1897c7['shift']());}catch(_0x3e431c){_0x1897c7['push'](_0x1897c7['shift']());}}}(a156_0x179b,0xc7ddb));function a156_0x4beb(_0x2d9424,_0x51be85){_0x2d9424=_0x2d9424-0x140;const _0x179bab=a156_0x179b();let _0x4beb8c=_0x179bab[_0x2d9424];return _0x4beb8c;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x179b(){const _0x5bdde6=['50pXvKqN','60PTcDVR','7966684yLFCxU','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','8nrCAcU','1236920iEzFXb','Run\x20`','\x20auth`\x20to\x20login\x20first.','109680ZLsLqs','186bWZqLr','11397402PwplaB','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','175263AAfahb','143035hHicKD','1637503YHrSQs','join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','Tip:\x20`'];a156_0x179b=function(){return _0x5bdde6;};return a156_0x179b();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x7b7924(0x141)+CLI_BIN_NAME+a156_0x7b7924(0x142),'configMissingHint':[a156_0x7b7924(0x151)+CLI_BIN_NAME+a156_0x7b7924(0x14b),a156_0x7b7924(0x14d)+CLI_BIN_NAME+a156_0x7b7924(0x152)][a156_0x7b7924(0x14a)](a156_0x7b7924(0x14c)),'notInProjectHint':a156_0x7b7924(0x146)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x54ff83,_0x4b12e4){var _0x20dd96=a157_0x4303,_0x1b5868=_0x54ff83();while(!![]){try{var _0x1ed494=-parseInt(_0x20dd96(0x1f5))/0x1+-parseInt(_0x20dd96(0x1f3))/0x2+parseInt(_0x20dd96(0x1f1))/0x3*(-parseInt(_0x20dd96(0x1f0))/0x4)+parseInt(_0x20dd96(0x1f2))/0x5+parseInt(_0x20dd96(0x1ee))/0x6+parseInt(_0x20dd96(0x1f4))/0x7*(-parseInt(_0x20dd96(0x1ef))/0x8)+parseInt(_0x20dd96(0x1f6))/0x9;if(_0x1ed494===_0x4b12e4)break;else _0x1b5868['push'](_0x1b5868['shift']());}catch(_0x51782b){_0x1b5868['push'](_0x1b5868['shift']());}}}(a157_0x78d1,0x8c884));function a157_0x78d1(){var _0x28f1b9=['1040793uydQFS','14402826zAtzyC','2618868CTEPVQ','919176eSgxlt','875884PPeRwx','3tLYWYM','3797955FrPhRX','1692204VgXgaR','7bXMbFf'];a157_0x78d1=function(){return _0x28f1b9;};return a157_0x78d1();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x6efc47}from'@lovrabet/cli-framework';function a157_0x4303(_0x4838d8,_0x441813){_0x4838d8=_0x4838d8-0x1ee;var _0x78d165=a157_0x78d1();var _0x4303c9=_0x78d165[_0x4838d8];return _0x4303c9;}export function buildAllFlags(_0xd70ede){return a157_0x6efc47(_0xd70ede,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x4251f6=a158_0x4961;function a158_0x5bc2(){const _0x8b95bd=['71577mbJWYI','3404MCEunw','5406000jXEQyv','1651370rqNmWY','226332nzFGGJ','parseFlags','validateFlags','149mvaYgS','32sCTkga','430XHzEBZ','2267212gfqfoZ','1302749pesdvj','3uVYcrz'];a158_0x5bc2=function(){return _0x8b95bd;};return a158_0x5bc2();}(function(_0x4b50d6,_0x457caf){const _0x537b89=a158_0x4961,_0x261a8c=_0x4b50d6();while(!![]){try{const _0x52bf37=-parseInt(_0x537b89(0xee))/0x1*(-parseInt(_0x537b89(0xe8))/0x2)+-parseInt(_0x537b89(0xe6))/0x3*(parseInt(_0x537b89(0xe4))/0x4)+-parseInt(_0x537b89(0xea))/0x5+parseInt(_0x537b89(0xe9))/0x6+-parseInt(_0x537b89(0xe5))/0x7*(parseInt(_0x537b89(0xef))/0x8)+parseInt(_0x537b89(0xeb))/0x9*(parseInt(_0x537b89(0xe3))/0xa)+-parseInt(_0x537b89(0xe7))/0xb;if(_0x52bf37===_0x457caf)break;else _0x261a8c['push'](_0x261a8c['shift']());}catch(_0x4d6d7e){_0x261a8c['push'](_0x261a8c['shift']());}}}(a158_0x5bc2,0x8f8ae));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a158_0x4961(_0xacbcb2,_0x231341){_0xacbcb2=_0xacbcb2-0xe3;const _0x5bc288=a158_0x5bc2();let _0x4961cb=_0x5bc288[_0xacbcb2];return _0x4961cb;}export const parseFlags=helpers[a158_0x4251f6(0xec)];export const validateFlags=helpers[a158_0x4251f6(0xed)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0x33d172=a159_0x2f35;(function(_0x137cb5,_0x4be4e4){const _0x2d4972=a159_0x2f35,_0x5ee321=_0x137cb5();while(!![]){try{const _0x82552f=parseInt(_0x2d4972(0x192))/0x1+parseInt(_0x2d4972(0x18d))/0x2*(-parseInt(_0x2d4972(0x197))/0x3)+-parseInt(_0x2d4972(0x191))/0x4+parseInt(_0x2d4972(0x18a))/0x5*(-parseInt(_0x2d4972(0x18b))/0x6)+-parseInt(_0x2d4972(0x196))/0x7+-parseInt(_0x2d4972(0x190))/0x8+parseInt(_0x2d4972(0x189))/0x9*(parseInt(_0x2d4972(0x18f))/0xa);if(_0x82552f===_0x4be4e4)break;else _0x5ee321['push'](_0x5ee321['shift']());}catch(_0x322bca){_0x5ee321['push'](_0x5ee321['shift']());}}}(a159_0x3fc1,0x9f204));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';function a159_0x2f35(_0xa1c6c8,_0x7bd236){_0xa1c6c8=_0xa1c6c8-0x188;const _0x3fc1e0=a159_0x3fc1();let _0x2f3527=_0x3fc1e0[_0xa1c6c8];return _0x2f3527;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x414873=>serviceGroups[a159_0x33d172(0x195)](_0x414873),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a159_0x33d172(0x18c),'serviceUsageSuffix':a159_0x33d172(0x18e),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0xa97b36){const _0x5b6fc7=a159_0x33d172;return generators[_0x5b6fc7(0x193)](_0xa97b36);}function a159_0x3fc1(){const _0x5a9beb=['generateCommandHelp','generateFullHelp','get','7781011hDWjZq','399RxdRCU','generateServiceHelp','31218507tOhxpJ','10hwxqox','1095624reCsnk','\x20project\x20init`\x20or\x20--appcode).','5134DbDPFy','\x20[args]\x20[flags]','10lXjMfc','10310376utOYNm','1906000aXFRSI','766546rEDXHf'];a159_0x3fc1=function(){return _0x5a9beb;};return a159_0x3fc1();}export const generateServiceHelp=generators[a159_0x33d172(0x188)];export const generateFullHelp=generators[a159_0x33d172(0x194)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b842e,_0x2be343){var _0x35bd82=a160_0x6adb,_0x27163d=_0x5b842e();while(!![]){try{var _0xb94087=-parseInt(_0x35bd82(0x19d))/0x1*(-parseInt(_0x35bd82(0x19a))/0x2)+parseInt(_0x35bd82(0x1a0))/0x3*(-parseInt(_0x35bd82(0x19f))/0x4)+-parseInt(_0x35bd82(0x19b))/0x5+-parseInt(_0x35bd82(0x199))/0x6*(parseInt(_0x35bd82(0x19c))/0x7)+parseInt(_0x35bd82(0x198))/0x8*(-parseInt(_0x35bd82(0x1a1))/0x9)+-parseInt(_0x35bd82(0x19e))/0xa+parseInt(_0x35bd82(0x197))/0xb;if(_0xb94087===_0x2be343)break;else _0x27163d['push'](_0x27163d['shift']());}catch(_0x167e93){_0x27163d['push'](_0x27163d['shift']());}}}(a160_0x1ea5,0xdde72));export{runCommand}from'../framework/runner.js';function a160_0x1ea5(){var _0x536397=['1621519kmNFFf','11239320MHECMX','5665304scEJqb','3vkulFI','1557TEkizf','63538684OXUhHS','65768UNLIlu','1115502zMPKWv','2EcMOet','4265525iuRhuz','63LNbnuU'];a160_0x1ea5=function(){return _0x536397;};return a160_0x1ea5();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a160_0x6adb(_0x504306,_0x39ab10){_0x504306=_0x504306-0x197;var _0x1ea5f2=a160_0x1ea5();var _0x6adb3d=_0x1ea5f2[_0x504306];return _0x6adb3d;}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_0x4831(_0x296e05,_0x54e007){_0x296e05=_0x296e05-0x1b4;const _0x3746f6=a161_0x3746();let _0x4831f7=_0x3746f6[_0x296e05];return _0x4831f7;}function a161_0x3746(){const _0x271ae3=['1509336akqMkb','553348UDOfax','27hSosfR','72XoqWgi','20daMHxD','1FkFXpu','4434615dThpcC','2197722QyROIx','788pMzBeZ','4494369aeDZxg','11922QgJBLY','14sLhRcx','1630928EbWVsO'];a161_0x3746=function(){return _0x271ae3;};return a161_0x3746();}(function(_0x807e6a,_0x3584cc){const _0x41fe82=a161_0x4831,_0x1e7fe2=_0x807e6a();while(!![]){try{const _0x2c8382=parseInt(_0x41fe82(0x1b6))/0x1*(parseInt(_0x41fe82(0x1bf))/0x2)+parseInt(_0x41fe82(0x1bb))/0x3*(parseInt(_0x41fe82(0x1b9))/0x4)+-parseInt(_0x41fe82(0x1b7))/0x5+-parseInt(_0x41fe82(0x1b8))/0x6*(parseInt(_0x41fe82(0x1bc))/0x7)+parseInt(_0x41fe82(0x1be))/0x8*(-parseInt(_0x41fe82(0x1c0))/0x9)+parseInt(_0x41fe82(0x1b5))/0xa*(parseInt(_0x41fe82(0x1ba))/0xb)+-parseInt(_0x41fe82(0x1b4))/0xc*(-parseInt(_0x41fe82(0x1bd))/0xd);if(_0x2c8382===_0x3584cc)break;else _0x1e7fe2['push'](_0x1e7fe2['shift']());}catch(_0x4da744){_0x1e7fe2['push'](_0x1e7fe2['shift']());}}}(a161_0x3746,0x6c62c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a162_0x3a33(){var _0x379668=['36OkWkIG','190CHUPRT','2671408uLJKgO','212656RCkCLl','2nbwpuh','223993jPqfTT','127016gJVtol','4994689cHGsXW','6ciSVWO','9XreABf','1312490ytCUPr','1269684qZhgOj'];a162_0x3a33=function(){return _0x379668;};return a162_0x3a33();}function a162_0x3b0c(_0x45c801,_0x14bd59){_0x45c801=_0x45c801-0x117;var _0x3a3384=a162_0x3a33();var _0x3b0c13=_0x3a3384[_0x45c801];return _0x3b0c13;}(function(_0x33be30,_0x25cdbc){var _0x3d80f9=a162_0x3b0c,_0x31c7fb=_0x33be30();while(!![]){try{var _0x369e30=parseInt(_0x3d80f9(0x118))/0x1*(parseInt(_0x3d80f9(0x11a))/0x2)+parseInt(_0x3d80f9(0x120))/0x3*(parseInt(_0x3d80f9(0x117))/0x4)+parseInt(_0x3d80f9(0x11e))/0x5+-parseInt(_0x3d80f9(0x11c))/0x6*(parseInt(_0x3d80f9(0x11b))/0x7)+-parseInt(_0x3d80f9(0x122))/0x8*(-parseInt(_0x3d80f9(0x11d))/0x9)+parseInt(_0x3d80f9(0x121))/0xa*(-parseInt(_0x3d80f9(0x119))/0xb)+parseInt(_0x3d80f9(0x11f))/0xc;if(_0x369e30===_0x25cdbc)break;else _0x31c7fb['push'](_0x31c7fb['shift']());}catch(_0x112a69){_0x31c7fb['push'](_0x31c7fb['shift']());}}}(a162_0x3a33,0x598c7));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a6262,_0x5f565f){const _0x23f73b=a163_0x49c2,_0x548448=_0x5a6262();while(!![]){try{const _0x3368db=-parseInt(_0x23f73b(0x20b))/0x1+parseInt(_0x23f73b(0x201))/0x2*(-parseInt(_0x23f73b(0x1fe))/0x3)+-parseInt(_0x23f73b(0x1f9))/0x4*(parseInt(_0x23f73b(0x1fd))/0x5)+parseInt(_0x23f73b(0x206))/0x6+parseInt(_0x23f73b(0x1f8))/0x7*(parseInt(_0x23f73b(0x1f5))/0x8)+parseInt(_0x23f73b(0x1f4))/0x9*(-parseInt(_0x23f73b(0x202))/0xa)+parseInt(_0x23f73b(0x1f7))/0xb*(parseInt(_0x23f73b(0x1f3))/0xc);if(_0x3368db===_0x5f565f)break;else _0x548448['push'](_0x548448['shift']());}catch(_0x4146d9){_0x548448['push'](_0x548448['shift']());}}}(a163_0x21c4,0x6a0b9));function a163_0x49c2(_0x2a462e,_0x5c9931){_0x2a462e=_0x2a462e-0x1f2;const _0x21c41e=a163_0x21c4();let _0x49c21c=_0x21c41e[_0x2a462e];return _0x49c21c;}function a163_0x21c4(){const _0x523c3a=['9045TZgSQy','some','Unknown\x20alias\x20\x22','444PjaCVu','10YNhvbM','join','code','type','2739816jdezUt','map','flags','No\x20api.ts\x20found\x20in\x20','validation','311754etVZhG','.\x20Run\x20`','alias','36txujuU','4865328vyJWGc','264816NpZkHG','length','3671921IGBCtY','119DBdpoS','212VnedBV','string','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','6110mUKiSu'];a163_0x21c4=function(){return _0x523c3a;};return a163_0x21c4();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1dad32,_0x3c7047,_0x318228,_0x4b34ff){const _0x44409d=a163_0x49c2,_0x7e5184=_0x1dad32[_0x44409d(0x208)][_0x44409d(0x1ff)](_0x1a248c=>_0x1a248c['name']===_0x44409d(0x204)&&_0x1a248c[_0x44409d(0x205)]===_0x44409d(0x1fa)),_0x1bba87=_0x1dad32[_0x44409d(0x208)][_0x44409d(0x1ff)](_0x5713e5=>_0x5713e5['name']===_0x44409d(0x1f2)&&_0x5713e5['type']===_0x44409d(0x1fa));if(!_0x7e5184||!_0x1bba87)return;const _0x3b628b=_0x3c7047[_0x44409d(0x204)]?String(_0x3c7047[_0x44409d(0x204)]):'',_0x3436e5=_0x3c7047[_0x44409d(0x1f2)]?String(_0x3c7047['alias']):'';if(!_0x3b628b&&!_0x3436e5)throw CliErrors[_0x44409d(0x20a)]('`'+_0x4b34ff+_0x44409d(0x1fc));if(_0x3436e5&&!_0x3b628b){const _0x182744=resolveAlias(_0x318228,_0x3436e5);if(!_0x182744){const _0xc226b4=listAliases(_0x318228)[_0x44409d(0x207)](_0xca0b24=>_0xca0b24[_0x44409d(0x1f2)]),_0x555dd9=_0xc226b4[_0x44409d(0x1f6)]?'Available\x20aliases:\x20'+_0xc226b4[_0x44409d(0x203)](',\x20'):_0x44409d(0x209)+_0x318228+_0x44409d(0x20c)+CLI_BIN_NAME+_0x44409d(0x1fb);throw CliErrors[_0x44409d(0x20a)](_0x44409d(0x200)+_0x3436e5+'\x22.\x20'+_0x555dd9);}_0x3c7047['code']=_0x182744;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a164_0x16e225=a164_0x323d;function a164_0x323d(_0x52e185,_0x49bf15){_0x52e185=_0x52e185-0x1d5;const _0x1f6f07=a164_0x1f6f();let _0x323d94=_0x1f6f07[_0x52e185];return _0x323d94;}(function(_0x2bebc5,_0x48af1e){const _0x4dd00a=a164_0x323d,_0x28ebf6=_0x2bebc5();while(!![]){try{const _0x4a9190=parseInt(_0x4dd00a(0x200))/0x1+-parseInt(_0x4dd00a(0x1e9))/0x2*(-parseInt(_0x4dd00a(0x1f3))/0x3)+-parseInt(_0x4dd00a(0x1e5))/0x4*(-parseInt(_0x4dd00a(0x1f7))/0x5)+-parseInt(_0x4dd00a(0x1f6))/0x6*(parseInt(_0x4dd00a(0x1f4))/0x7)+parseInt(_0x4dd00a(0x201))/0x8+parseInt(_0x4dd00a(0x1d9))/0x9*(parseInt(_0x4dd00a(0x1fb))/0xa)+-parseInt(_0x4dd00a(0x1f8))/0xb*(parseInt(_0x4dd00a(0x1de))/0xc);if(_0x4a9190===_0x48af1e)break;else _0x28ebf6['push'](_0x28ebf6['shift']());}catch(_0x56099f){_0x28ebf6['push'](_0x28ebf6['shift']());}}}(a164_0x1f6f,0x93e22));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_0x524f81}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0xf65634,_0x5beea9,_0x4ddd55=[]){const _0x5a6467=a164_0x323d;return{'rawFlags':_0x5beea9,'args':_0x4ddd55,'resolveAppCode':()=>_0xf65634[_0x5a6467(0x1fd)]||_0x5beea9[_0x5a6467(0x1dd)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0xf65634[_0x5a6467(0x1dc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x524f81(_0x5beea9),'defaultFormat':_0xf65634['format'],'defaultPageSize':_0xf65634[_0x5a6467(0x1ff)],'defaultVerbose':_0xf65634[_0x5a6467(0x1da)],'apiDir':_0xf65634[_0x5a6467(0x1ef)],'riskLevel':_0xf65634[_0x5a6467(0x1d8)],'selectedAppName':_0xf65634[_0x5a6467(0x1fe)],'mergedCli':{'defaultApp':_0xf65634[_0x5a6467(0x1e3)],'currentApp':_0xf65634[_0x5a6467(0x1e6)],'appCode':_0xf65634[_0x5a6467(0x1fd)],'apps':_0xf65634['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x16e225(0x1db)](_0x773780=>PIPELINE_FLAG_NAMES[a164_0x16e225(0x1f9)](_0x773780['name']))[a164_0x16e225(0x1f0)](({name:_0x979a7a,type:_0x32a517,description:_0x7a9782})=>({'name':_0x979a7a,'type':_0x32a517,'description':_0x7a9782})),'formatOutput':formatOutput,'getCommandLabel'(_0xac0c7c){const _0x438ca8=a164_0x16e225;return CLI_BIN_NAME+'\x20'+_0xac0c7c[_0x438ca8(0x1e1)]+'\x20'+_0xac0c7c[_0x438ca8(0x1e7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1b341d){return CliErrors['validation'](_0x1b341d);}},async 'prepare'(_0x1cb37b,_0x332223,_0x37bbf2,_0x43b798){const _0x552970=a164_0x16e225,_0x15cfa2=_0x332223[_0x552970(0x1ef)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1cb37b,_0x37bbf2,_0x15cfa2,_0x43b798);let _0x21734a='';if(_0x1cb37b['requiresAuth']!==![]){_0x21734a=_0x332223[_0x552970(0x1f1)]();if(!_0x21734a)throw CliErrors[_0x552970(0x1ec)]();const {setActiveCookie:_0x805d91}=await import(_0x552970(0x1f2));_0x805d91(_0x21734a);}const _0x1e5081=_0x332223[_0x552970(0x1ee)]()??'';if(_0x1cb37b[_0x552970(0x1e2)]!==![]){if(!_0x1e5081)throw CliErrors['configMissing'](_0x552970(0x1ed)+CLI_BIN_NAME+_0x552970(0x1d7));}return{'defaults':{'booleans':{'verbose':_0x332223[_0x552970(0x1e8)]},'numbers':{'pagesize':_0x332223['defaultPageSize']}},'extras':{'appCode':_0x1e5081,'cookie':_0x21734a,'apiDomain':_0x332223[_0x552970(0x1fc)](),'apiDir':_0x15cfa2,'selectedAppName':_0x332223[_0x552970(0x1eb)],'mergedCli':_0x332223[_0x552970(0x1fa)]}};},async 'confirmHighRisk'({env:_0x28ee4d,commandLabel:_0x29b368}){const _0x1eebb0=a164_0x16e225;if(_0x28ee4d[_0x1eebb0(0x1df)])throw CliErrors[_0x1eebb0(0x1e4)](_0x1eebb0(0x1d6)+_0x29b368+_0x1eebb0(0x1ea));await requireConfirmationPrompt({'lines':[_0x1eebb0(0x1f5)+_0x29b368,_0x1eebb0(0x1e0)],'createCancelledError':_0x356991=>CliErrors[_0x1eebb0(0x1d5)](_0x356991)});},async 'finalize'(){const {clearActiveCookie:_0x2d28fa}=await import('../core/api-client.js');_0x2d28fa();}};function a164_0x1f6f(){const _0x59d33e=['service','requiresAppCode','defaultApp','validation','92flDhuQ','currentApp','command','defaultVerbose','258iLbBXJ','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','selectedAppName','authRequired','Set\x20appcode\x20via\x20`','resolveAppCode','apiDir','map','resolveCookie','../core/api-client.js','21669jfELMy','231FFHPXU','⚠\x20\x20High-risk\x20operation:\x20','93084jLxcWc','194210KhdjyN','19080809jXTDGr','has','mergedCli','74890DXFZkx','resolveApiDomain','appCode','explicitAppName','pageSize','161482QNBbKF','4109704EffLUb','cancelled','High-risk\x20operation\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','riskLevel','423TcGHuW','verbose','filter','cookie','appcode','12MjaevR','isNonInteractive','\x20\x20\x20Continue?\x20[y/N]\x20'];a164_0x1f6f=function(){return _0x59d33e;};return a164_0x1f6f();}export async function runCommand(_0x1d1a85,_0x1ae096){await runCommandWithAdapter(_0x1d1a85,_0x1ae096,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a165_0x2182(){const _0xccdf85=['95254BowZWI','320767eUYxCG','8733501KAAzjZ','57zeTJVD','19371638nfvGMt','7caXscZ','4ASgKnB','973170oPDyOX','../commands/registry.js','7885208iwRAPB','10MqHikC','313935PNvFiN'];a165_0x2182=function(){return _0xccdf85;};return a165_0x2182();}(function(_0x2cf0a8,_0x21e374){const _0xf7cad=a165_0x266e,_0x1fb899=_0x2cf0a8();while(!![]){try{const _0x527ac8=-parseInt(_0xf7cad(0x1a5))/0x1+parseInt(_0xf7cad(0x1a4))/0x2*(parseInt(_0xf7cad(0x1a7))/0x3)+parseInt(_0xf7cad(0x1aa))/0x4*(-parseInt(_0xf7cad(0x1a3))/0x5)+-parseInt(_0xf7cad(0x1ab))/0x6+parseInt(_0xf7cad(0x1a9))/0x7*(parseInt(_0xf7cad(0x1ad))/0x8)+parseInt(_0xf7cad(0x1a6))/0x9+-parseInt(_0xf7cad(0x1a2))/0xa*(parseInt(_0xf7cad(0x1a8))/0xb);if(_0x527ac8===_0x21e374)break;else _0x1fb899['push'](_0x1fb899['shift']());}catch(_0x12de58){_0x1fb899['push'](_0x1fb899['shift']());}}}(a165_0x2182,0x874a2));import{buildSchemaPayload as a165_0x4dec37}from'@lovrabet/cli-framework';function a165_0x266e(_0xfd2a7f,_0x5c2d75){_0xfd2a7f=_0xfd2a7f-0x1a2;const _0x21825e=a165_0x2182();let _0x266e65=_0x21825e[_0xfd2a7f];return _0x266e65;}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 _0x1f6fb9=a165_0x266e,{serviceRegistry:_0xf32499,findDefinition:_0x41702b}=await import(_0x1f6fb9(0x1ac));return a165_0x4dec37({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xf32499,'buildAllFlags':buildAllFlags,'findDefinition':_0x41702b});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1ede75,_0x4604ca){var _0x4c2906=a166_0xa9d8,_0x1e2273=_0x1ede75();while(!![]){try{var _0x207d66=parseInt(_0x4c2906(0x1d9))/0x1*(-parseInt(_0x4c2906(0x1dd))/0x2)+-parseInt(_0x4c2906(0x1d4))/0x3*(-parseInt(_0x4c2906(0x1da))/0x4)+parseInt(_0x4c2906(0x1d6))/0x5*(-parseInt(_0x4c2906(0x1d5))/0x6)+-parseInt(_0x4c2906(0x1de))/0x7*(-parseInt(_0x4c2906(0x1d8))/0x8)+-parseInt(_0x4c2906(0x1dc))/0x9*(-parseInt(_0x4c2906(0x1d3))/0xa)+parseInt(_0x4c2906(0x1d7))/0xb+-parseInt(_0x4c2906(0x1db))/0xc;if(_0x207d66===_0x4604ca)break;else _0x1e2273['push'](_0x1e2273['shift']());}catch(_0x145945){_0x1e2273['push'](_0x1e2273['shift']());}}}(a166_0x31eb,0x1b831));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0xa9d8(_0x464bb1,_0x19b897){_0x464bb1=_0x464bb1-0x1d3;var _0x31ebc5=a166_0x31eb();var _0xa9d889=_0x31ebc5[_0x464bb1];return _0xa9d889;}function a166_0x31eb(){var _0x1f6698=['115796EVAYHi','96016gQUPmx','4338000vaezRD','45GFDCqZ','2ytogQv','182GhKvpQ','127210dvXXhM','24wWZxDt','43746MNDRIu','60qWRVcS','2421166jeZikO','62072cxiySj'];a166_0x31eb=function(){return _0x1f6698;};return a166_0x31eb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x166c5f=a167_0x5a88;(function(_0x5646e3,_0x6dfee5){const _0x3f8dfc=a167_0x5a88,_0x32c413=_0x5646e3();while(!![]){try{const _0x48dc0d=-parseInt(_0x3f8dfc(0x6d))/0x1*(-parseInt(_0x3f8dfc(0x76))/0x2)+-parseInt(_0x3f8dfc(0x71))/0x3*(parseInt(_0x3f8dfc(0x6b))/0x4)+parseInt(_0x3f8dfc(0x72))/0x5+-parseInt(_0x3f8dfc(0x73))/0x6+parseInt(_0x3f8dfc(0x75))/0x7+-parseInt(_0x3f8dfc(0x77))/0x8*(-parseInt(_0x3f8dfc(0x70))/0x9)+-parseInt(_0x3f8dfc(0x74))/0xa*(parseInt(_0x3f8dfc(0x6e))/0xb);if(_0x48dc0d===_0x6dfee5)break;else _0x32c413['push'](_0x32c413['shift']());}catch(_0x5ace1c){_0x32c413['push'](_0x32c413['shift']());}}}(a167_0x2763,0x553dd));function a167_0x5a88(_0x2024bc,_0xbbccfc){_0x2024bc=_0x2024bc-0x6a;const _0x276332=a167_0x2763();let _0x5a882a=_0x276332[_0x2024bc];return _0x5a882a;}export const VERSION='2.1.7-beta.4';export const GIT_TAG=a167_0x166c5f(0x6f);export const GIT_COMMIT=a167_0x166c5f(0x6c);export const BUILD_TIME=a167_0x166c5f(0x6a);function a167_0x2763(){const _0x64c679=['11sDMSKB','v2.1.7-beta.4','459dhPtZM','3SKzPeJ','3044815VUUWeH','3361134xdYlWs','12157630omHmwh','4710671FrymXb','4EEDWdx','87728jbTkub','2026-04-25T08:16:14.615Z','536324rtetik','e5f5212','209000EwcfiH'];a167_0x2763=function(){return _0x64c679;};return a167_0x2763();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a168_0x2847(_0xb6dd52,_0x423375){_0xb6dd52=_0xb6dd52-0x154;var _0x46e9cd=a168_0x46e9();var _0x2847ed=_0x46e9cd[_0xb6dd52];return _0x2847ed;}(function(_0x57b878,_0x5ec74c){var _0x23b505=a168_0x2847,_0x468be1=_0x57b878();while(!![]){try{var _0x1bf337=-parseInt(_0x23b505(0x162))/0x1+-parseInt(_0x23b505(0x15f))/0x2*(-parseInt(_0x23b505(0x164))/0x3)+-parseInt(_0x23b505(0x15c))/0x4*(-parseInt(_0x23b505(0x154))/0x5)+parseInt(_0x23b505(0x161))/0x6*(-parseInt(_0x23b505(0x158))/0x7)+-parseInt(_0x23b505(0x15e))/0x8*(parseInt(_0x23b505(0x155))/0x9)+parseInt(_0x23b505(0x15b))/0xa*(-parseInt(_0x23b505(0x160))/0xb)+-parseInt(_0x23b505(0x156))/0xc*(-parseInt(_0x23b505(0x157))/0xd);if(_0x1bf337===_0x5ec74c)break;else _0x468be1['push'](_0x468be1['shift']());}catch(_0x5bd687){_0x468be1['push'](_0x468be1['shift']());}}}(a168_0x46e9,0x8e806));import a168_0x1952a4 from'chalk';function a168_0x46e9(){var _0x32a5a1=['852eNLUtc','green','24sqHcUp','166uLTcaj','11ILveZr','4587558psvCZy','643177tgcKIb','log','12141SOtQsC','\x20to\x20view\x20available\x20commands.','2590ccqCsB','2105370BnrkfE','1620RrcHEo','239031aPYcPP','7qNtLAJ','\x20\x20Use\x20','bold','2352340DPkcrj'];a168_0x46e9=function(){return _0x32a5a1;};return a168_0x46e9();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x39f303=a168_0x2847;console[_0x39f303(0x163)](),console['log'](a168_0x1952a4['green'][_0x39f303(0x15a)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x39f303(0x163)](),console[_0x39f303(0x163)](_0x39f303(0x159)+a168_0x1952a4[_0x39f303(0x15d)][_0x39f303(0x15a)](CLI_BIN_NAME+'\x20--help')+_0x39f303(0x165)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ab999,_0x33bc6b){const _0x57cb15=a169_0x3c24,_0x2a52bf=_0x2ab999();while(!![]){try{const _0x25cf40=parseInt(_0x57cb15(0x1dd))/0x1*(parseInt(_0x57cb15(0x1e6))/0x2)+parseInt(_0x57cb15(0x1db))/0x3+-parseInt(_0x57cb15(0x1e8))/0x4+parseInt(_0x57cb15(0x1ea))/0x5*(parseInt(_0x57cb15(0x1f3))/0x6)+parseInt(_0x57cb15(0x1e0))/0x7+parseInt(_0x57cb15(0x1d8))/0x8*(-parseInt(_0x57cb15(0x1df))/0x9)+-parseInt(_0x57cb15(0x1f8))/0xa;if(_0x25cf40===_0x33bc6b)break;else _0x2a52bf['push'](_0x2a52bf['shift']());}catch(_0x5321ee){_0x2a52bf['push'](_0x2a52bf['shift']());}}}(a169_0x5a44,0xa05b2));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(_0x46aa09){const _0x4ab358=a169_0x3c24,_0x56924d=[];for(const [_0xf17952,_0x1de7f1]of Object[_0x4ab358(0x1f0)](_0x46aa09)){if(_0x1de7f1===!![]){const _0x35112f=_0xf17952[_0x4ab358(0x1ee)](/([A-Z])/g,_0x4ab358(0x1ef))[_0x4ab358(0x1d9)]();_0x56924d[_0x4ab358(0x1e3)](_0x35112f);}}return _0x56924d;}export function parseDynamicFlags(){const _0x15a35b=a169_0x3c24,_0x24853f=[];for(let _0x243d45=0x3;_0x243d45<process[_0x15a35b(0x1dc)]['length'];_0x243d45++){const _0x4d09e5=process[_0x15a35b(0x1dc)][_0x243d45];if(_0x4d09e5&&_0x4d09e5[_0x15a35b(0x1f6)]('--')){const _0x265d0e=_0x4d09e5[_0x15a35b(0x1e1)](0x2);_0x265d0e&&!_0x265d0e[_0x15a35b(0x1e4)]('=')&&_0x24853f[_0x15a35b(0x1e3)](_0x265d0e);}}return _0x24853f;}function a169_0x5a44(){const _0x275453=['\x20skill\x20--help\x0a\x20\x20','has','startsWith','cwd','23168070UIFHkU','add','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','setLogPath','dangerously-bff-save','310024EbnEgi','toLowerCase','log','1857978orpfii','argv','1zNTKZq','不支持的命令:\x20','63owtomi','9153501iUvtHA','slice','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','push','includes','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1099762MDLyEb','skill','1889712dGhQHO','Error:\x20Unsupported\x20command:\x20','5hBWsMk','from','--help','Equivalent\x20command:\x20','replace','-$1','entries','enable-bff-save','\x0aAvailable\x20commands:','7442844xhSwky'];a169_0x5a44=function(){return _0x275453;};return a169_0x5a44();}function a169_0x3c24(_0x3048e6,_0x9a4fa8){_0x3048e6=_0x3048e6-0x1d4;const _0x5a4407=a169_0x5a44();let _0x3c245c=_0x5a4407[_0x3048e6];return _0x3c245c;}export function getAllProvidedFlags(_0x565f0e){const _0x34b8f7=a169_0x3c24,_0x47cdca=camelCaseFlagsToKebab(_0x565f0e),_0x4a29dd=parseDynamicFlags(),_0x37c829=new Set([..._0x47cdca,..._0x4a29dd]);return Array[_0x34b8f7(0x1eb)](_0x37c829);}export function normalizeLegacyBffSaveFlags(_0x3eca97){const _0x45787a=a169_0x3c24,_0x531e6a=new Set(_0x3eca97);return _0x531e6a[_0x45787a(0x1f5)](_0x45787a(0x1d7))&&_0x531e6a[_0x45787a(0x1f9)](_0x45787a(0x1f1)),Array[_0x45787a(0x1eb)](_0x531e6a);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x10050b,_0x51249e,_0x1ee3c7){const _0x286ebf=a169_0x3c24;logger[_0x286ebf(0x1d6)](process[_0x286ebf(0x1f7)]());if(_0x1ee3c7?.['help']||_0x10050b===_0x286ebf(0x1ec)){showHelp();return;}console[_0x286ebf(0x1d5)](_0x286ebf(0x1e9)+(_0x10050b||'(empty)')),console['log'](_0x286ebf(0x1f2)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x286ebf(0x1e2)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console['log'](_0x286ebf(0x1ed)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x286ebf(0x1d5)](_0x286ebf(0x1e7),_0x286ebf(0x1de)+_0x10050b),process['exit'](0x1);}function showHelp(){const _0x795255=a169_0x3c24;console[_0x795255(0x1da)](_0x795255(0x1e5)+CLI_BIN_NAME+_0x795255(0x1f4)+CLI_BIN_NAME+_0x795255(0x1d4)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0xe5a859=a170_0x450f;(function(_0x18b8a4,_0x567de7){const _0x5e0074=a170_0x450f,_0x3e8763=_0x18b8a4();while(!![]){try{const _0x4a9340=parseInt(_0x5e0074(0xc4))/0x1+parseInt(_0x5e0074(0xb5))/0x2+parseInt(_0x5e0074(0xa8))/0x3*(-parseInt(_0x5e0074(0xb4))/0x4)+-parseInt(_0x5e0074(0xbc))/0x5+-parseInt(_0x5e0074(0xa7))/0x6*(-parseInt(_0x5e0074(0xc1))/0x7)+-parseInt(_0x5e0074(0xae))/0x8*(-parseInt(_0x5e0074(0xa9))/0x9)+parseInt(_0x5e0074(0xab))/0xa*(-parseInt(_0x5e0074(0xb8))/0xb);if(_0x4a9340===_0x567de7)break;else _0x3e8763['push'](_0x3e8763['shift']());}catch(_0x538f82){_0x3e8763['push'](_0x3e8763['shift']());}}}(a170_0x2f46,0x2785e));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a170_0xe5a859(0xc3);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0xe5a859(0xb2);export const NPX_SKILLS_FLAG_SKILL=a170_0xe5a859(0xb0);export const RABETBASE_SKILL_SOURCE=a170_0xe5a859(0xb1);function a170_0x450f(_0x234b67,_0x4e3ab5){_0x234b67=_0x234b67-0xa7;const _0x2f4611=a170_0x2f46();let _0x450ffd=_0x2f4611[_0x234b67];return _0x450ffd;}export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0xe5a859(0xc5);export const DEFAULT_RABETBASE_SKILL_NAME=a170_0xe5a859(0xb7);function a170_0x2f46(){const _0x594855=['exit\x20','1007540ZtbUwE','log','npx','inherit','toString','102858vuXNBY','yes','skills','78228tEpRuq','lovrabet/lovrabet-skill','96adjfyn','280857aoDXSU','9mKWWKw','stdio','750cSZbyD','pipe','stderr','2233384KNNjTx','trim','--skill','lovrabet/rabetbase','add','status','8ioSIti','315704Qhlwmr','join','Lovrabet','29293UjCMQD','stdout','unknown'];a170_0x2f46=function(){return _0x594855;};return a170_0x2f46();}export function buildNpxSkillsAddArgv(_0x446269=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x446269];}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a170_0xe5a859(0xb6)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2dc1f3,_0x52681b){const _0x36890a=a170_0xe5a859;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35192d=_0x52681b?.[_0x36890a(0xaa)]??_0x36890a(0xbf),_0x7034dc=resolveNpmBin(_0x36890a(0xbe)),_0x359be6=buildNpxSkillsAddArgv(_0x52681b?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x40450b=[_0x36890a(0xbe),..._0x359be6][_0x36890a(0xb6)]('\x20');console[_0x36890a(0xbd)]('*\x20'+_0x40450b);const _0xb8e83=spawnSync(_0x7034dc,_0x359be6,{'cwd':_0x2dc1f3,'stdio':_0x35192d,'env':process.env,'shell':![]}),_0xe51d33=_0xb8e83['status'];if(_0xe51d33===0x0)return{'ok':!![],'status':0x0};let _0x46468f='exit\x20'+(_0xe51d33??_0x36890a(0xba));if(_0x35192d===_0x36890a(0xac)){const _0x4fe9d5=_0xb8e83[_0x36890a(0xad)]?_0xb8e83[_0x36890a(0xad)][_0x36890a(0xc0)]()['trim']():'',_0xf7047f=_0xb8e83[_0x36890a(0xb9)]?_0xb8e83[_0x36890a(0xb9)]['toString']()[_0x36890a(0xaf)]():'';if(_0x4fe9d5)_0x46468f=_0x4fe9d5;else{if(_0xf7047f)_0x46468f=_0xf7047f;}}return{'ok':![],'status':_0xe51d33??null,'error':_0x46468f};}export function runNpxSkillsRemove(_0x59a4c2,_0x29b9c4,_0x214134=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4cc319=a170_0xe5a859;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x562a5e=_0x29b9c4?.[_0x4cc319(0xaa)]??_0x4cc319(0xbf),_0x4ddb75=resolveNpmBin(_0x4cc319(0xbe)),_0x41c93d=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x214134,NPX_SKILLS_FLAG_SKILL,_0x29b9c4?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x29b9c4?.[_0x4cc319(0xc2)]?['-y']:[]],_0x5922c8=[_0x4ddb75,..._0x41c93d]['join']('\x20');console[_0x4cc319(0xbd)]('*\x20'+_0x5922c8);const _0x33b2be=spawnSync(_0x4ddb75,_0x41c93d,{'cwd':_0x59a4c2,'stdio':_0x562a5e,'env':process.env,'shell':![]}),_0x1e313d=_0x33b2be[_0x4cc319(0xb3)];if(_0x1e313d===0x0)return{'ok':!![],'status':0x0};let _0x3586a0=_0x4cc319(0xbb)+(_0x1e313d??_0x4cc319(0xba));if(_0x562a5e===_0x4cc319(0xac)){const _0x2bc56f=_0x33b2be['stderr']?_0x33b2be[_0x4cc319(0xad)][_0x4cc319(0xc0)]()['trim']():'',_0x482827=_0x33b2be['stdout']?_0x33b2be[_0x4cc319(0xb9)][_0x4cc319(0xc0)]()[_0x4cc319(0xaf)]():'';if(_0x2bc56f)_0x3586a0=_0x2bc56f;else{if(_0x482827)_0x3586a0=_0x482827;}}return{'ok':![],'status':_0x1e313d??null,'error':_0x3586a0};}export function runNpxSkillsAddGlobal(_0x1e86d7,_0x16b7bf,_0x4c8026){const _0x4d7ca9=a170_0xe5a859;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x296782=_0x4c8026?.['stdio']??_0x4d7ca9(0xbf),_0x475ea3=resolveNpmBin(_0x4d7ca9(0xbe)),_0x5177da=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16b7bf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3f27ae=[_0x4d7ca9(0xbe),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16b7bf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4d7ca9(0xb6)]('\x20');console[_0x4d7ca9(0xbd)]('*\x20'+_0x3f27ae);const _0x3e6882=spawnSync(_0x475ea3,_0x5177da,{'cwd':_0x1e86d7,'stdio':_0x296782,'env':process.env,'shell':![]}),_0x1241b0=_0x3e6882[_0x4d7ca9(0xb3)];if(_0x1241b0===0x0)return{'ok':!![],'status':0x0};let _0x562ffe=_0x4d7ca9(0xbb)+(_0x1241b0??_0x4d7ca9(0xba));if(_0x296782===_0x4d7ca9(0xac)){const _0x9afed3=_0x3e6882[_0x4d7ca9(0xad)]?_0x3e6882['stderr']['toString']()[_0x4d7ca9(0xaf)]():'',_0x10e990=_0x3e6882[_0x4d7ca9(0xb9)]?_0x3e6882[_0x4d7ca9(0xb9)]['toString']()[_0x4d7ca9(0xaf)]():'';if(_0x9afed3)_0x562ffe=_0x9afed3;else{if(_0x10e990)_0x562ffe=_0x10e990;}}return{'ok':![],'status':_0x1241b0??null,'error':_0x562ffe};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8b4be3,_0x3b2fff){const _0x388563=a171_0x5337,_0x6ba683=_0x8b4be3();while(!![]){try{const _0x45c936=parseInt(_0x388563(0xb3))/0x1*(-parseInt(_0x388563(0xa9))/0x2)+parseInt(_0x388563(0xa8))/0x3+parseInt(_0x388563(0xb4))/0x4+parseInt(_0x388563(0xac))/0x5+-parseInt(_0x388563(0xb2))/0x6+parseInt(_0x388563(0xab))/0x7+-parseInt(_0x388563(0xb1))/0x8;if(_0x45c936===_0x3b2fff)break;else _0x6ba683['push'](_0x6ba683['shift']());}catch(_0x5d5056){_0x6ba683['push'](_0x6ba683['shift']());}}}(a171_0x3b0b,0x3745c));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(_0x2e4948){const _0x26a99d=a171_0x5337;return SENSITIVE_PATTERNS[_0x26a99d(0xad)](_0x399be9=>_0x399be9['test'](_0x2e4948));}function a171_0x3b0b(){const _0x2ce6d1=['message','flags','durationMs','119352BsdnOL','1970376LIPrJu','97NXoltR','1040500pmgHUJ','[REDACTED]','error','rabetbase.command','service','303024waWtkA','5162ePcaPE','stringify','984312nXAHOc','1591595Qiuinr','some'];a171_0x3b0b=function(){return _0x2ce6d1;};return a171_0x3b0b();}function a171_0x5337(_0x370ba7,_0x2f5134){_0x370ba7=_0x370ba7-0xa7;const _0x3b0b15=a171_0x3b0b();let _0x5337cb=_0x3b0b15[_0x370ba7];return _0x5337cb;}function sanitizeFlags(_0x1551b1){const _0x408c5b=a171_0x5337,_0x4187d6={};for(const [_0xc97b1e,_0x2486d2]of Object['entries'](_0x1551b1)){isSensitiveKey(_0xc97b1e)?_0x4187d6[_0xc97b1e]=_0x2486d2!=null&&_0x2486d2!==''?_0x408c5b(0xb5):_0x2486d2:_0x4187d6[_0xc97b1e]=_0x2486d2;}return _0x4187d6;}export async function reportCommandTrace(_0x2e6beb){const _0x435e03=a171_0x5337;try{const _0x1ce3ca=sanitizeFlags(_0x2e6beb[_0x435e03(0xaf)]);await sendCliTraceLog({'spanName':_0x435e03(0xb7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2e6beb[_0x435e03(0xa7)],'command.name':_0x2e6beb['command'],'command.flags':JSON[_0x435e03(0xaa)](_0x1ce3ca),..._0x2e6beb[_0x435e03(0xb0)]!=null?{'command.duration_ms':_0x2e6beb[_0x435e03(0xb0)]}:{},..._0x2e6beb[_0x435e03(0xb6)]?{'command.error':_0x2e6beb['error']instanceof Error?_0x2e6beb[_0x435e03(0xb6)][_0x435e03(0xae)]:String(_0x2e6beb[_0x435e03(0xb6)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x4e89(){var _0x276b29=['354745NvztuH','1068474UXmQUo','1818576nxVUKx','48rMIknV','12510xloXdE','6anDWch','24lCHyre','5422669FkVdRc','990292qKEhMi','4266XjinKa','8YNcYRa','287520eJKTqo','service'];a172_0x4e89=function(){return _0x276b29;};return a172_0x4e89();}(function(_0x1172c9,_0x35f5f5){var _0x466c8e=a172_0x339e,_0x3a0e36=_0x1172c9();while(!![]){try{var _0x52c561=parseInt(_0x466c8e(0x89))/0x1*(-parseInt(_0x466c8e(0x81))/0x2)+-parseInt(_0x466c8e(0x7e))/0x3+parseInt(_0x466c8e(0x84))/0x4+-parseInt(_0x466c8e(0x87))/0x5*(-parseInt(_0x466c8e(0x7f))/0x6)+parseInt(_0x466c8e(0x83))/0x7*(parseInt(_0x466c8e(0x86))/0x8)+-parseInt(_0x466c8e(0x85))/0x9*(-parseInt(_0x466c8e(0x80))/0xa)+-parseInt(_0x466c8e(0x7d))/0xb*(-parseInt(_0x466c8e(0x82))/0xc);if(_0x52c561===_0x35f5f5)break;else _0x3a0e36['push'](_0x3a0e36['shift']());}catch(_0x32d05c){_0x3a0e36['push'](_0x3a0e36['shift']());}}}(a172_0x4e89,0x9242f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a172_0x339e(_0x16e582,_0x390a90){_0x16e582=_0x16e582-0x7d;var _0x4e8990=a172_0x4e89();var _0x339e63=_0x4e8990[_0x16e582];return _0x339e63;}export async function reportCliHelpTrace(_0x59d521,_0xf960ee){var _0x26575c=a172_0x339e;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x59d521,..._0xf960ee?.[_0x26575c(0x88)]&&{'rabetbase.help.service':_0xf960ee[_0x26575c(0x88)]}}});}catch(_0x27ad8a){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x27ad8a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0x1c19(_0x1f7cf4,_0x31f117){_0x1f7cf4=_0x1f7cf4-0x82;const _0x5c94b0=a173_0x5c94();let _0x1c1925=_0x5c94b0[_0x1f7cf4];return _0x1c1925;}(function(_0x1a3028,_0xa44fea){const _0xf14b0f=a173_0x1c19,_0x23db55=_0x1a3028();while(!![]){try{const _0x15d079=-parseInt(_0xf14b0f(0x91))/0x1*(-parseInt(_0xf14b0f(0x87))/0x2)+parseInt(_0xf14b0f(0x82))/0x3*(parseInt(_0xf14b0f(0x84))/0x4)+-parseInt(_0xf14b0f(0x92))/0x5*(-parseInt(_0xf14b0f(0x8d))/0x6)+parseInt(_0xf14b0f(0x85))/0x7*(-parseInt(_0xf14b0f(0x8b))/0x8)+-parseInt(_0xf14b0f(0x83))/0x9*(-parseInt(_0xf14b0f(0x8a))/0xa)+parseInt(_0xf14b0f(0x86))/0xb+-parseInt(_0xf14b0f(0x8e))/0xc;if(_0x15d079===_0xa44fea)break;else _0x23db55['push'](_0x23db55['shift']());}catch(_0x5c87e9){_0x23db55['push'](_0x23db55['shift']());}}}(a173_0x5c94,0xb0deb));import a173_0x42409f from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a173_0x5c94(){const _0x76e32c=['205yuKFkI','nickname','2054529akLchC','11237301WwHMlJ','8SeqYnN','139433HhrAAe','15124989gSAYvB','290884kwJMYB','userInfo','username','10YDWSce','496chXrKF','unknown','34746myftDp','30745824LiMmDL','production','daily','2svWdqC'];a173_0x5c94=function(){return _0x76e32c;};return a173_0x5c94();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x46a165=a173_0x1c19,_0x2d8933=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x57fa6c=_0x2d8933?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x46a165(0x8c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x46a165(0x90):_0x46a165(0x8f)),'username':_0x57fa6c?.[_0x46a165(0x89)]??a173_0x42409f[_0x46a165(0x88)]()['username']??'rabetbase-cli',..._0x57fa6c&&{'nickname':_0x57fa6c[_0x46a165(0x93)]}}),cliOtelTraceInitialized=!![];}return _0x2d8933;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3831df,_0xfc109f){const _0x2d6a27=a174_0xe8d8,_0x486761=_0x3831df();while(!![]){try{const _0x2ec8ab=-parseInt(_0x2d6a27(0x189))/0x1+-parseInt(_0x2d6a27(0x181))/0x2*(parseInt(_0x2d6a27(0x17e))/0x3)+parseInt(_0x2d6a27(0x180))/0x4*(parseInt(_0x2d6a27(0x183))/0x5)+-parseInt(_0x2d6a27(0x186))/0x6*(parseInt(_0x2d6a27(0x187))/0x7)+-parseInt(_0x2d6a27(0x18b))/0x8+parseInt(_0x2d6a27(0x18c))/0x9+-parseInt(_0x2d6a27(0x182))/0xa*(-parseInt(_0x2d6a27(0x184))/0xb);if(_0x2ec8ab===_0xfc109f)break;else _0x486761['push'](_0x486761['shift']());}catch(_0x2f092b){_0x486761['push'](_0x486761['shift']());}}}(a174_0x4b26,0x83a47));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a174_0xe8d8(_0x2676c9,_0x584dcb){_0x2676c9=_0x2676c9-0x17e;const _0x4b263d=a174_0x4b26();let _0xe8d88=_0x4b263d[_0x2676c9];return _0xe8d88;}function a174_0x4b26(){const _0x335ed8=['81053IALKMW','then','231713VvBQCo','once','5364624hXtPPg','2436408FvWEXr','139227dBKsYi','SIGINT','4XrRzPq','14RlhxDs','90VhWVtW','5369385PcUDgR','1520299bDYCOK','exit','426jqORdv'];a174_0x4b26=function(){return _0x335ed8;};return a174_0x4b26();}export function registerOtelShutdownOnExit(){const _0x5285bb=a174_0xe8d8;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5c8bbe=()=>{const _0x20d3f1=a174_0xe8d8;void flushOtelNodeIfUsed()[_0x20d3f1(0x188)](()=>process['exit'](0x0));};process[_0x5285bb(0x18a)](_0x5285bb(0x17f),_0x5c8bbe),process[_0x5285bb(0x18a)]('SIGTERM',_0x5c8bbe);}export async function exitWithOtelShutdown(_0x50a862){const _0x2842af=a174_0xe8d8;await flushOtelNodeIfUsed(),process[_0x2842af(0x185)](_0x50a862);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x7c3399=a175_0x43cb;(function(_0x418d58,_0x262696){const _0x227bd8=a175_0x43cb,_0x3a81fa=_0x418d58();while(!![]){try{const _0x25f241=-parseInt(_0x227bd8(0x8e))/0x1+-parseInt(_0x227bd8(0x8c))/0x2+-parseInt(_0x227bd8(0x8a))/0x3*(parseInt(_0x227bd8(0x8d))/0x4)+-parseInt(_0x227bd8(0x87))/0x5*(-parseInt(_0x227bd8(0x8f))/0x6)+parseInt(_0x227bd8(0x86))/0x7*(-parseInt(_0x227bd8(0x83))/0x8)+parseInt(_0x227bd8(0x80))/0x9+-parseInt(_0x227bd8(0x89))/0xa*(-parseInt(_0x227bd8(0x88))/0xb);if(_0x25f241===_0x262696)break;else _0x3a81fa['push'](_0x3a81fa['shift']());}catch(_0x1fe043){_0x3a81fa['push'](_0x3a81fa['shift']());}}}(a175_0x5aff,0x8a4fe));function a175_0x43cb(_0x2a799a,_0x266a60){_0x2a799a=_0x2a799a-0x7f;const _0x5aff07=a175_0x5aff();let _0x43cb21=_0x5aff07[_0x2a799a];return _0x43cb21;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a175_0x5aff(){const _0x4f968b=['traceName','35IyRSEQ','500845ekXARo','80091PlsihR','2110Fvlndv','1893QiLaVw','rabetbase-cli','595542ifZaPR','5168cQSUed','298357CNBUqp','48dLijyI','spanName','2877237XtOxnK','logData','traceparent','1087088sptgKT','version'];a175_0x5aff=function(){return _0x4f968b;};return a175_0x5aff();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x7c3399(0x8b);export async function sendCliTraceLog(_0xc7d59c){const _0x1c5dc7=a175_0x7c3399;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xc7d59c[_0x1c5dc7(0x85)]??DEFAULT_TRACE_NAME,'version':_0xc7d59c[_0x1c5dc7(0x84)]??getCliVersion(),'spanName':_0xc7d59c[_0x1c5dc7(0x7f)],'eventType':'manual','logData':_0xc7d59c[_0x1c5dc7(0x81)],..._0xc7d59c[_0x1c5dc7(0x82)]&&{'traceparent':_0xc7d59c['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a176_0x4dbb(_0x284708,_0x36a3c5){_0x284708=_0x284708-0xa3;const _0x517c93=a176_0x517c();let _0x4dbb5f=_0x517c93[_0x284708];return _0x4dbb5f;}function a176_0x517c(){const _0x2da783=['269308toJtUv','339835GzeFKx','1733TIYpEr','title','10YmQwFI','issue.log.collect','8902729wbymAY','540VwfJRp','description','546PPXfpZ','358353yHRESP','48PvoNXi','557492ahwqHO','24GDDukn','152vNXwwy','5480608IteUou'];a176_0x517c=function(){return _0x2da783;};return a176_0x517c();}const a176_0x2fb30e=a176_0x4dbb;(function(_0x4f09c2,_0x1043b7){const _0x55e1a5=a176_0x4dbb,_0x3c1aec=_0x4f09c2();while(!![]){try{const _0x1226e7=-parseInt(_0x55e1a5(0xa6))/0x1*(parseInt(_0x55e1a5(0xad))/0x2)+parseInt(_0x55e1a5(0xb1))/0x3*(-parseInt(_0x55e1a5(0xb0))/0x4)+parseInt(_0x55e1a5(0xa5))/0x5*(parseInt(_0x55e1a5(0xaf))/0x6)+-parseInt(_0x55e1a5(0xa3))/0x7+-parseInt(_0x55e1a5(0xb2))/0x8*(-parseInt(_0x55e1a5(0xae))/0x9)+-parseInt(_0x55e1a5(0xa8))/0xa*(-parseInt(_0x55e1a5(0xaa))/0xb)+parseInt(_0x55e1a5(0xab))/0xc*(parseInt(_0x55e1a5(0xa4))/0xd);if(_0x1226e7===_0x1043b7)break;else _0x3c1aec['push'](_0x3c1aec['shift']());}catch(_0x4e0f9b){_0x3c1aec['push'](_0x3c1aec['shift']());}}}(a176_0x517c,0xa3c3d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a176_0x2fb30e(0xa9);export async function sendPlatformIssueCollectLog(_0x37884c){const _0x43ec94=a176_0x2fb30e;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37884c[_0x43ec94(0xa7)],'issue.description':_0x37884c[_0x43ec94(0xac)]}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a178_0x3bbfbe=a178_0x2661;(function(_0x507268,_0x351506){const _0x338223=a178_0x2661,_0x1d4156=_0x507268();while(!![]){try{const _0x27c28f=parseInt(_0x338223(0x12f))/0x1+-parseInt(_0x338223(0x135))/0x2+parseInt(_0x338223(0x113))/0x3*(parseInt(_0x338223(0x13d))/0x4)+parseInt(_0x338223(0x118))/0x5*(parseInt(_0x338223(0x129))/0x6)+-parseInt(_0x338223(0x140))/0x7+parseInt(_0x338223(0x123))/0x8*(parseInt(_0x338223(0x12e))/0x9)+-parseInt(_0x338223(0x10d))/0xa;if(_0x27c28f===_0x351506)break;else _0x1d4156['push'](_0x1d4156['shift']());}catch(_0x2e3f86){_0x1d4156['push'](_0x1d4156['shift']());}}}(a178_0x35e2,0x87903));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x3bbfbe(0x12b),'description':a178_0x3bbfbe(0x11f),'folders':[a178_0x3bbfbe(0x121),'.cursor'],'files':[{'type':a178_0x3bbfbe(0x139),'path':'.cursor/skills/rabetbase.md','template':a178_0x3bbfbe(0x12a)}]},'windsurf':{'name':a178_0x3bbfbe(0x114),'description':'Windsurf\x20IDE','folders':[a178_0x3bbfbe(0x117)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x136),'template':a178_0x3bbfbe(0x12a)}]},'claude':{'name':a178_0x3bbfbe(0x119),'description':a178_0x3bbfbe(0x119),'folders':[a178_0x3bbfbe(0x13e)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x133),'template':a178_0x3bbfbe(0x12a)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a178_0x3bbfbe(0x111)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x132),'template':a178_0x3bbfbe(0x12a)}]},'codex':{'name':a178_0x3bbfbe(0x137),'description':a178_0x3bbfbe(0x125),'folders':[a178_0x3bbfbe(0x10f)],'files':[{'type':'file','path':a178_0x3bbfbe(0x142),'template':a178_0x3bbfbe(0x12a)}]},'opencode':{'name':a178_0x3bbfbe(0x127),'description':'OpenCode\x20IDE','folders':[a178_0x3bbfbe(0x112)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x11a),'template':a178_0x3bbfbe(0x12a)}]},'qoder':{'name':a178_0x3bbfbe(0x11c),'description':a178_0x3bbfbe(0x13b),'folders':['.qoder'],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x110),'template':a178_0x3bbfbe(0x12a)},{'type':'file','path':a178_0x3bbfbe(0x11d),'template':a178_0x3bbfbe(0x12a)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x3bbfbe(0x138),'folders':[a178_0x3bbfbe(0x134)],'files':[{'type':'file','path':a178_0x3bbfbe(0x116),'template':a178_0x3bbfbe(0x12a)}]},'trae':{'name':a178_0x3bbfbe(0x13a),'description':a178_0x3bbfbe(0x10c),'folders':[a178_0x3bbfbe(0x13c)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x141),'template':a178_0x3bbfbe(0x12a)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x3bbfbe(0x13f),'description':'通用模板\x20-\x20兜底方案','folders':[a178_0x3bbfbe(0x12c)],'files':[{'type':a178_0x3bbfbe(0x139),'path':a178_0x3bbfbe(0x11e),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a178_0x3bbfbe(0x115),'description':a178_0x3bbfbe(0x11b),'folders':[a178_0x3bbfbe(0x12c)],'files':[{'type':a178_0x3bbfbe(0x139),'path':'.agent/skills/lovrabet/SKILL.md','template':a178_0x3bbfbe(0x12a)}]}};export const CORE_IDE_LIST=['claude',a178_0x3bbfbe(0x128),a178_0x3bbfbe(0x131),'codex','cursor',a178_0x3bbfbe(0x143),a178_0x3bbfbe(0x120),a178_0x3bbfbe(0x130),'windsurf'];export const IDE_LIST=[a178_0x3bbfbe(0x122),a178_0x3bbfbe(0x124),'cline',a178_0x3bbfbe(0x131),'codex',a178_0x3bbfbe(0x144),a178_0x3bbfbe(0x143),a178_0x3bbfbe(0x120),a178_0x3bbfbe(0x130),'windsurf',a178_0x3bbfbe(0x12d)];function a178_0x2661(_0x367fc0,_0x2b649d){_0x367fc0=_0x367fc0-0x10c;const _0x35e289=a178_0x35e2();let _0x26617e=_0x35e289[_0x367fc0];return _0x26617e;}export const ALL_CORE_IDES=['cursor',a178_0x3bbfbe(0x126),a178_0x3bbfbe(0x124),a178_0x3bbfbe(0x128),a178_0x3bbfbe(0x10e),a178_0x3bbfbe(0x143),a178_0x3bbfbe(0x120),a178_0x3bbfbe(0x131),a178_0x3bbfbe(0x130)];function a178_0x35e2(){const _0x2fc83f=['6801102IDZBFm','.trae/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','opencode','cursor','Trae\x20IDE','7893870ZhEnwB','codex','.codex','.qoder/rules/rabetbase.md','.cline','.opencode','640533qqQicJ','Windsurf','Antigravity','.codebuddy/skills/lovrabet/SKILL.md','.windsurf','2437195gVCdSh','Claude\x20Code','.opencode/skills/lovrabet/SKILL.md','Antigravity\x20IDE','Qoder','.qoder/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Cursor\x20IDE','qoder','.cursorrules','antigravity','8IFlAGG','claude','Codex\x20IDE','windsurf','OpenCode','cline','12nxViVV','SKILL.md.tpl','Cursor','.agent','agent','1958643EPmXyY','968947BUYDWd','trae','codebuddy','.cline/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','.codebuddy','117446EzedmH','.windsurf/workflows/rabetbase.md','Codex','CodeBuddy\x20IDE','file','Trae','Qoder\x20IDE','.trae','4lLfaOF','.claude','其他\x20(通用模板)'];a178_0x35e2=function(){return _0x2fc83f;};return a178_0x35e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41504b,_0x35f904){const _0x1403d0=a179_0xeb2f,_0x1c65e5=_0x41504b();while(!![]){try{const _0x59f4df=parseInt(_0x1403d0(0x198))/0x1+parseInt(_0x1403d0(0x196))/0x2*(parseInt(_0x1403d0(0x19a))/0x3)+-parseInt(_0x1403d0(0x19b))/0x4+parseInt(_0x1403d0(0x19d))/0x5*(-parseInt(_0x1403d0(0x195))/0x6)+parseInt(_0x1403d0(0x194))/0x7*(-parseInt(_0x1403d0(0x197))/0x8)+-parseInt(_0x1403d0(0x19e))/0x9*(-parseInt(_0x1403d0(0x19c))/0xa)+parseInt(_0x1403d0(0x199))/0xb;if(_0x59f4df===_0x35f904)break;else _0x1c65e5['push'](_0x1c65e5['shift']());}catch(_0x5cff5e){_0x1c65e5['push'](_0x1c65e5['shift']());}}}(a179_0x52ed,0xe675e));function a179_0x52ed(){const _0x1795ce=['255903sXvbyV','6588836Jdsfxr','3529030BYwuIZ','879040MTjxxP','9LodBZG','14YFRmZx','6YrjZNt','22CDdAba','1322504TWBTfl','1527341WvbQAo','3069594oHZYQJ'];a179_0x52ed=function(){return _0x1795ce;};return a179_0x52ed();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0xeb2f(_0x107c4f,_0x2b256c){_0x107c4f=_0x107c4f-0x194;const _0x52ed41=a179_0x52ed();let _0xeb2fdc=_0x52ed41[_0x107c4f];return _0xeb2fdc;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40c3bf,_0x1eb7ed){const _0x116cea=a180_0x3d52,_0x4de2b6=_0x40c3bf();while(!![]){try{const _0x49fdd3=-parseInt(_0x116cea(0x8f))/0x1*(-parseInt(_0x116cea(0x85))/0x2)+-parseInt(_0x116cea(0x8b))/0x3+-parseInt(_0x116cea(0x8c))/0x4+parseInt(_0x116cea(0x86))/0x5*(-parseInt(_0x116cea(0x8e))/0x6)+-parseInt(_0x116cea(0x87))/0x7+-parseInt(_0x116cea(0x80))/0x8*(-parseInt(_0x116cea(0x89))/0x9)+-parseInt(_0x116cea(0x8d))/0xa*(-parseInt(_0x116cea(0x81))/0xb);if(_0x49fdd3===_0x1eb7ed)break;else _0x4de2b6['push'](_0x4de2b6['shift']());}catch(_0xc95f61){_0x4de2b6['push'](_0x4de2b6['shift']());}}}(a180_0x1ea5,0x19079));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3fbbaf=a180_0x3d52,_0x263379=getTemplateBaseUrl(),_0x3e9886=[_0x263379+_0x3fbbaf(0x88),_0x263379+'/config/index.json'];for(const _0x263bcd of _0x3e9886){try{const _0x47f0b9=await fetch(_0x263bcd,{'headers':{'Accept':_0x3fbbaf(0x83)}});if(!_0x47f0b9['ok'])continue;const _0x1fd4ff=await _0x47f0b9[_0x3fbbaf(0x7e)]();if(!_0x1fd4ff[_0x3fbbaf(0x82)]?.[_0x3fbbaf(0x8a)]||!_0x1fd4ff['sdk']?.[_0x3fbbaf(0x7f)]?.[_0x3fbbaf(0x8a)])continue;return _0x1fd4ff;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a180_0x3d52(_0x5c0458,_0x47b5ef){_0x5c0458=_0x5c0458-0x7e;const _0x1ea50c=a180_0x1ea5();let _0x3d52a7=_0x1ea50c[_0x5c0458];return _0x3d52a7;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x4122fd=a180_0x3d52,_0x5d9c51=Date[_0x4122fd(0x84)]();if(hasCachedConfig){const _0x430e77=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d9c51-cacheTime<_0x430e77)return cachedConfig;}const _0x291343=await fetchCdnConfig();return cachedConfig=_0x291343,cacheTime=_0x5d9c51,hasCachedConfig=!![],_0x291343;}function a180_0x1ea5(){const _0x338d2c=['json','node','88OLLnPz','11kWIyZH','cli','application/json','now','70HVCtBz','3125OaKmdK','1391404RYvDRP','/config.json','62442uqEBaz','stableVersion','194487CUXOGh','279836FoKYZr','2228630QwXeHw','228IxddGU','4590mJGfja'];a180_0x1ea5=function(){return _0x338d2c;};return a180_0x1ea5();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|