@lovrabet/rabetbase-cli 2.1.7-beta.3 → 2.1.7-beta.5
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
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x576a34=a156_0x3549;(function(_0xcafdc2,_0x56a1e5){const _0x29a0d3=a156_0x3549,_0x1025f8=_0xcafdc2();while(!![]){try{const _0x707585=parseInt(_0x29a0d3(0x82))/0x1*(-parseInt(_0x29a0d3(0x87))/0x2)+-parseInt(_0x29a0d3(0x86))/0x3*(-parseInt(_0x29a0d3(0x80))/0x4)+parseInt(_0x29a0d3(0x8b))/0x5*(parseInt(_0x29a0d3(0x7e))/0x6)+-parseInt(_0x29a0d3(0x7d))/0x7*(parseInt(_0x29a0d3(0x7b))/0x8)+-parseInt(_0x29a0d3(0x84))/0x9+parseInt(_0x29a0d3(0x85))/0xa+parseInt(_0x29a0d3(0x7c))/0xb;if(_0x707585===_0x56a1e5)break;else _0x1025f8['push'](_0x1025f8['shift']());}catch(_0x450ff3){_0x1025f8['push'](_0x1025f8['shift']());}}}(a156_0x1db9,0xbcb28));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x1db9(){const _0x66e703=['6NIPKPg','Set\x20appcode\x20via\x20`','85416FnRKgB','join','937ZMWDcR','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','7975062dMIzsN','11874450vCREyY','63wIQhZT','428XZZYHP','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','6843940vHpwQK','10793560admllx','2244748eCnhjD','7VjUNNo'];a156_0x1db9=function(){return _0x66e703;};return a156_0x1db9();}function a156_0x3549(_0x2d3ee3,_0x3303e2){_0x2d3ee3=_0x2d3ee3-0x7b;const _0x1db968=a156_0x1db9();let _0x35498e=_0x1db968[_0x2d3ee3];return _0x35498e;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a156_0x576a34(0x7f)+CLI_BIN_NAME+a156_0x576a34(0x89),a156_0x576a34(0x88)+CLI_BIN_NAME+a156_0x576a34(0x83)][a156_0x576a34(0x81)](a156_0x576a34(0x8a)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a157_0xa8a0(_0x26a963,_0x40cfbd){_0x26a963=_0x26a963-0x16a;var _0x833afe=a157_0x833a();var _0xa8a00=_0x833afe[_0x26a963];return _0xa8a00;}(function(_0x48a055,_0x5f4a11){var _0x5e83a8=a157_0xa8a0,_0xc3873f=_0x48a055();while(!![]){try{var _0xc8bb12=-parseInt(_0x5e83a8(0x172))/0x1*(parseInt(_0x5e83a8(0x173))/0x2)+-parseInt(_0x5e83a8(0x16d))/0x3*(parseInt(_0x5e83a8(0x171))/0x4)+parseInt(_0x5e83a8(0x16b))/0x5+-parseInt(_0x5e83a8(0x16c))/0x6+parseInt(_0x5e83a8(0x170))/0x7*(-parseInt(_0x5e83a8(0x16a))/0x8)+-parseInt(_0x5e83a8(0x16f))/0x9+parseInt(_0x5e83a8(0x16e))/0xa;if(_0xc8bb12===_0x5f4a11)break;else _0xc3873f['push'](_0xc3873f['shift']());}catch(_0xf025d6){_0xc3873f['push'](_0xc3873f['shift']());}}}(a157_0x833a,0x65e1c));function a157_0x833a(){var _0x5e1aa4=['27564170hYowJc','3044025ptzgiL','455742YTeMPu','53840xCzWEw','537ZbTXQw','2004TPIbVQ','88XSHJJY','591255zJSsnb','4543290KQKUQf','24OQmdLR'];a157_0x833a=function(){return _0x5e1aa4;};return a157_0x833a();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x2045bc}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3d3d52){return a157_0x2045bc(_0x3d3d52,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a158_0x3d0d(){const _0x15042c=['583995hrSiTr','2126327rrKcXp','151187UETgMZ','873384PClomL','704380QkTcSj','1895238ROJuLm','validateFlags','2712088ZRRmWE','parseFlags','2DEUFvw'];a158_0x3d0d=function(){return _0x15042c;};return a158_0x3d0d();}const a158_0x3d2593=a158_0x5aad;function a158_0x5aad(_0x5aa55f,_0x1e11fb){_0x5aa55f=_0x5aa55f-0x93;const _0x3d0dea=a158_0x3d0d();let _0x5aad11=_0x3d0dea[_0x5aa55f];return _0x5aad11;}(function(_0x127733,_0x312ac6){const _0x238607=a158_0x5aad,_0x48bfc5=_0x127733();while(!![]){try{const _0x314297=parseInt(_0x238607(0x99))/0x1*(parseInt(_0x238607(0x96))/0x2)+parseInt(_0x238607(0x9a))/0x3+parseInt(_0x238607(0x9b))/0x4+-parseInt(_0x238607(0x97))/0x5+parseInt(_0x238607(0x9c))/0x6+-parseInt(_0x238607(0x98))/0x7+-parseInt(_0x238607(0x94))/0x8;if(_0x314297===_0x312ac6)break;else _0x48bfc5['push'](_0x48bfc5['shift']());}catch(_0xefa402){_0x48bfc5['push'](_0x48bfc5['shift']());}}}(a158_0x3d0d,0x2aa78));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x3d2593(0x95)];export const validateFlags=helpers[a158_0x3d2593(0x93)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0x2c78a2=a159_0x2597;(function(_0x5a905e,_0x2f29a0){const _0x44d950=a159_0x2597,_0x13780c=_0x5a905e();while(!![]){try{const _0x4738a3=-parseInt(_0x44d950(0x1e8))/0x1+-parseInt(_0x44d950(0x1ea))/0x2+parseInt(_0x44d950(0x1eb))/0x3*(parseInt(_0x44d950(0x1ed))/0x4)+-parseInt(_0x44d950(0x1f3))/0x5*(-parseInt(_0x44d950(0x1ee))/0x6)+-parseInt(_0x44d950(0x1f5))/0x7*(parseInt(_0x44d950(0x1e6))/0x8)+parseInt(_0x44d950(0x1f0))/0x9*(-parseInt(_0x44d950(0x1f1))/0xa)+parseInt(_0x44d950(0x1f7))/0xb;if(_0x4738a3===_0x2f29a0)break;else _0x13780c['push'](_0x13780c['shift']());}catch(_0x37bcfa){_0x13780c['push'](_0x13780c['shift']());}}}(a159_0x534a,0x22c0f));import{createHelpGenerators}from'@lovrabet/cli-framework';function a159_0x2597(_0x50bfbb,_0x204233){_0x50bfbb=_0x50bfbb-0x1e6;const _0x534a0e=a159_0x534a();let _0x259765=_0x534a0e[_0x50bfbb];return _0x259765;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x6174b4=>serviceGroups[a159_0x2c78a2(0x1f2)](_0x6174b4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x2c78a2(0x1ef)+CLI_BIN_NAME+a159_0x2c78a2(0x1e7),'serviceUsageSuffix':a159_0x2c78a2(0x1ec),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x54c49b){const _0x153a90=a159_0x2c78a2;return generators[_0x153a90(0x1e9)](_0x54c49b);}export const generateServiceHelp=generators[a159_0x2c78a2(0x1f6)];function a159_0x534a(){const _0x3ad3dd=['\x20[args]\x20[flags]','26888cLUJbs','1206hkNNmI','Requires\x20appcode\x20(set\x20via\x20`','6633tFaHde','660WYMsco','get','135hZEEmH','generateFullHelp','4109ISWbSU','generateServiceHelp','5230775vflsjR','3176sVvmpw','\x20project\x20init`\x20or\x20--appcode).','260871vZQfuO','generateCommandHelp','49194NWwuVg','102afldWN'];a159_0x534a=function(){return _0x3ad3dd;};return a159_0x534a();}export const generateFullHelp=generators[a159_0x2c78a2(0x1f4)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a160_0x2f41(){var _0x238257=['5yfdIrf','240984LBiroy','581562sQPtjs','4279518hrAFja','9JWkOeA','8666504YbqMQy','7101552JlGOOd','145338WlfEvI','1685647GhfBQq'];a160_0x2f41=function(){return _0x238257;};return a160_0x2f41();}(function(_0x2f41ae,_0x5a7f4f){var _0x64935=a160_0x218c,_0xece74b=_0x2f41ae();while(!![]){try{var _0x232c04=parseInt(_0x64935(0x118))/0x1+parseInt(_0x64935(0x11b))/0x2*(-parseInt(_0x64935(0x11d))/0x3)+-parseInt(_0x64935(0x11a))/0x4+-parseInt(_0x64935(0x119))/0x5*(-parseInt(_0x64935(0x117))/0x6)+-parseInt(_0x64935(0x11e))/0x7+parseInt(_0x64935(0x11f))/0x8+parseInt(_0x64935(0x11c))/0x9;if(_0x232c04===_0x5a7f4f)break;else _0xece74b['push'](_0xece74b['shift']());}catch(_0x16c708){_0xece74b['push'](_0xece74b['shift']());}}}(a160_0x2f41,0xdc505));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a160_0x218c(_0x18b0e9,_0x1ff082){_0x18b0e9=_0x18b0e9-0x117;var _0x2f4166=a160_0x2f41();var _0x218c19=_0x2f4166[_0x18b0e9];return _0x218c19;}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(_0x373f8b,_0x542322){const _0x12875e=a161_0x3212,_0x2c5334=_0x373f8b();while(!![]){try{const _0xbb838c=parseInt(_0x12875e(0x1ce))/0x1+parseInt(_0x12875e(0x1cb))/0x2*(-parseInt(_0x12875e(0x1ca))/0x3)+-parseInt(_0x12875e(0x1c8))/0x4*(-parseInt(_0x12875e(0x1cd))/0x5)+parseInt(_0x12875e(0x1c9))/0x6+-parseInt(_0x12875e(0x1c7))/0x7+parseInt(_0x12875e(0x1d0))/0x8*(parseInt(_0x12875e(0x1cc))/0x9)+-parseInt(_0x12875e(0x1cf))/0xa;if(_0xbb838c===_0x542322)break;else _0x2c5334['push'](_0x2c5334['shift']());}catch(_0x299dc4){_0x2c5334['push'](_0x2c5334['shift']());}}}(a161_0x54f2,0x67e0d));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a161_0x3212(_0x416be8,_0x55acd4){_0x416be8=_0x416be8-0x1c7;const _0x54f2ec=a161_0x54f2();let _0x32120a=_0x54f2ec[_0x416be8];return _0x32120a;}import{CliErrors}from'../errors.js';function a161_0x54f2(){const _0x372662=['440592DgQwjt','2953130cvEzJH','8gySumV','3021501wueMyL','1846332gIbJBO','1915122dTiJWz','48IXTGFd','60012wCnemm','3700575rVCRLO','5wtwfkl'];a161_0x54f2=function(){return _0x372662;};return a161_0x54f2();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b7adc,_0x866a30){var _0x4920fd=a162_0x56e2,_0x10f228=_0x2b7adc();while(!![]){try{var _0x444005=parseInt(_0x4920fd(0x12c))/0x1*(-parseInt(_0x4920fd(0x12b))/0x2)+-parseInt(_0x4920fd(0x12f))/0x3*(parseInt(_0x4920fd(0x125))/0x4)+-parseInt(_0x4920fd(0x12a))/0x5+-parseInt(_0x4920fd(0x12d))/0x6*(parseInt(_0x4920fd(0x128))/0x7)+-parseInt(_0x4920fd(0x129))/0x8*(parseInt(_0x4920fd(0x126))/0x9)+parseInt(_0x4920fd(0x12e))/0xa+parseInt(_0x4920fd(0x127))/0xb;if(_0x444005===_0x866a30)break;else _0x10f228['push'](_0x10f228['shift']());}catch(_0xdf45e2){_0x10f228['push'](_0x10f228['shift']());}}}(a162_0x2416,0x1fc7e));function a162_0x56e2(_0x21ecb8,_0x2c6083){_0x21ecb8=_0x21ecb8-0x125;var _0x24160c=a162_0x2416();var _0x56e2ff=_0x24160c[_0x21ecb8];return _0x56e2ff;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a162_0x2416(){var _0x2bea05=['234iFjmxs','5720847lBOPYB','35GRrMTU','4064KVCwcE','132440gqUTvO','102698qeYuty','3ULaaNQ','209130nlxTdG','413230KgaFek','189624SqxHfa','4wmHefo'];a162_0x2416=function(){return _0x2bea05;};return a162_0x2416();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9df205,_0x3e0bb9){const _0x5d2bba=a163_0x2b88,_0x49a9b7=_0x9df205();while(!![]){try{const _0x4942b1=parseInt(_0x5d2bba(0x10a))/0x1+-parseInt(_0x5d2bba(0x103))/0x2+-parseInt(_0x5d2bba(0x102))/0x3+parseInt(_0x5d2bba(0xfa))/0x4+-parseInt(_0x5d2bba(0x110))/0x5*(-parseInt(_0x5d2bba(0xff))/0x6)+-parseInt(_0x5d2bba(0x106))/0x7+parseInt(_0x5d2bba(0x107))/0x8;if(_0x4942b1===_0x3e0bb9)break;else _0x49a9b7['push'](_0x49a9b7['shift']());}catch(_0x5183a1){_0x49a9b7['push'](_0x49a9b7['shift']());}}}(a163_0x4d71,0xebc3e));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x2b88(_0x3018b8,_0x5ddfb1){_0x3018b8=_0x3018b8-0xfa;const _0x4d711f=a163_0x4d71();let _0x2b886b=_0x4d711f[_0x3018b8];return _0x2b886b;}function a163_0x4d71(){const _0x456631=['4087032OhmUeB','code','No\x20api.ts\x20found\x20in\x20','610431fWktZm','279842KdVCyY','Unknown\x20alias\x20\x22','string','1058176uYFwQf','498088EeCkNI','validation','name','426967cSQWAV','type','`\x20requires\x20either\x20--code\x20or\x20--alias.','.\x20Run\x20`','some','join','5gORUbw','flags','1159440hSkANv','alias','\x20api\x20pull`\x20first.','map','\x22.\x20'];a163_0x4d71=function(){return _0x456631;};return a163_0x4d71();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x13ed75,_0x600897,_0x190e56,_0x491383){const _0x15d321=a163_0x2b88,_0x50078a=_0x13ed75[_0x15d321(0x111)][_0x15d321(0x10e)](_0x461a18=>_0x461a18[_0x15d321(0x109)]===_0x15d321(0x100)&&_0x461a18[_0x15d321(0x10b)]==='string'),_0x3e7fba=_0x13ed75['flags'][_0x15d321(0x10e)](_0x1ea47b=>_0x1ea47b[_0x15d321(0x109)]===_0x15d321(0xfb)&&_0x1ea47b[_0x15d321(0x10b)]===_0x15d321(0x105));if(!_0x50078a||!_0x3e7fba)return;const _0x31ec65=_0x600897['code']?String(_0x600897[_0x15d321(0x100)]):'',_0x1e36fc=_0x600897[_0x15d321(0xfb)]?String(_0x600897['alias']):'';if(!_0x31ec65&&!_0x1e36fc)throw CliErrors['validation']('`'+_0x491383+_0x15d321(0x10c));if(_0x1e36fc&&!_0x31ec65){const _0x4e467c=resolveAlias(_0x190e56,_0x1e36fc);if(!_0x4e467c){const _0x553bde=listAliases(_0x190e56)[_0x15d321(0xfd)](_0xdc38ae=>_0xdc38ae[_0x15d321(0xfb)]),_0x29da3a=_0x553bde['length']?'Available\x20aliases:\x20'+_0x553bde[_0x15d321(0x10f)](',\x20'):_0x15d321(0x101)+_0x190e56+_0x15d321(0x10d)+CLI_BIN_NAME+_0x15d321(0xfc);throw CliErrors[_0x15d321(0x108)](_0x15d321(0x104)+_0x1e36fc+_0x15d321(0xfe)+_0x29da3a);}_0x600897[_0x15d321(0x100)]=_0x4e467c;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a164_0x416f5c=a164_0x1195;(function(_0x42a630,_0x2f1d97){const _0x129e3b=a164_0x1195,_0x637b29=_0x42a630();while(!![]){try{const _0x692111=-parseInt(_0x129e3b(0x13d))/0x1*(-parseInt(_0x129e3b(0x133))/0x2)+-parseInt(_0x129e3b(0x150))/0x3+parseInt(_0x129e3b(0x14a))/0x4*(-parseInt(_0x129e3b(0x13f))/0x5)+parseInt(_0x129e3b(0x143))/0x6*(parseInt(_0x129e3b(0x154))/0x7)+-parseInt(_0x129e3b(0x14c))/0x8+-parseInt(_0x129e3b(0x13b))/0x9*(-parseInt(_0x129e3b(0x130))/0xa)+-parseInt(_0x129e3b(0x14d))/0xb*(-parseInt(_0x129e3b(0x134))/0xc);if(_0x692111===_0x2f1d97)break;else _0x637b29['push'](_0x637b29['shift']());}catch(_0x6009a9){_0x637b29['push'](_0x637b29['shift']());}}}(a164_0x1e15,0x895b3));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a164_0x1195(_0x428967,_0x3f9a2d){_0x428967=_0x428967-0x130;const _0x1e155e=a164_0x1e15();let _0x119568=_0x1e155e[_0x428967];return _0x119568;}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';function a164_0x1e15(){const _0x4694c3=['250sJlRTR','validation','service','8XQqBxz','276mOMypm','resolveCookie','filter','authRequired','configMissing','riskLevel','appCode','286866UaVnDY','resolveApiDomain','135902qpSbuO','resolveAppCode','4965iisaFn','defaultVerbose','command','cancelled','114dAsVUs','has','apiDir','requiresAuth','appcode','../core/api-client.js','verbose','3916NXaVVP','format','3294456tDKSoB','81587BYbtlx','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultPageSize','648039HftUZN','\x20\x20\x20Continue?\x20[y/N]\x20','apps','cookie','240037cjRSfG'];a164_0x1e15=function(){return _0x4694c3;};return a164_0x1e15();}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_0x258ef8}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x1b83cd,_0x5cf898,_0x355765=[]){const _0x200777=a164_0x1195;return{'rawFlags':_0x5cf898,'args':_0x355765,'resolveAppCode':()=>_0x1b83cd[_0x200777(0x13a)]||_0x5cf898[_0x200777(0x147)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x1b83cd[_0x200777(0x153)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x258ef8(_0x5cf898),'defaultFormat':_0x1b83cd[_0x200777(0x14b)],'defaultPageSize':_0x1b83cd['pageSize'],'defaultVerbose':_0x1b83cd[_0x200777(0x149)],'apiDir':_0x1b83cd[_0x200777(0x145)],'riskLevel':_0x1b83cd[_0x200777(0x139)],'selectedAppName':_0x1b83cd['explicitAppName'],'mergedCli':{'defaultApp':_0x1b83cd['defaultApp'],'currentApp':_0x1b83cd['currentApp'],'appCode':_0x1b83cd['appCode'],'apps':_0x1b83cd[_0x200777(0x152)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x416f5c(0x136)](_0x51d0e0=>PIPELINE_FLAG_NAMES[a164_0x416f5c(0x144)](_0x51d0e0['name']))['map'](({name:_0x5ab3e5,type:_0x368fb8,description:_0x702771})=>({'name':_0x5ab3e5,'type':_0x368fb8,'description':_0x702771})),'formatOutput':formatOutput,'getCommandLabel'(_0x5c3c4d){const _0x3b815b=a164_0x416f5c;return CLI_BIN_NAME+'\x20'+_0x5c3c4d[_0x3b815b(0x132)]+'\x20'+_0x5c3c4d[_0x3b815b(0x141)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1f8028){const _0x2cd320=a164_0x416f5c;return CliErrors[_0x2cd320(0x131)](_0x1f8028);}},async 'prepare'(_0x14a951,_0x325441,_0x19f8a5,_0x493fef){const _0x5cbbcd=a164_0x416f5c,_0x3110f7=_0x325441[_0x5cbbcd(0x145)]||DEFAULT_API_DIR;resolveAliasToCode(_0x14a951,_0x19f8a5,_0x3110f7,_0x493fef);let _0x20a8c9='';if(_0x14a951[_0x5cbbcd(0x146)]!==![]){_0x20a8c9=_0x325441[_0x5cbbcd(0x135)]();if(!_0x20a8c9)throw CliErrors[_0x5cbbcd(0x137)]();const {setActiveCookie:_0x4b5b60}=await import('../core/api-client.js');_0x4b5b60(_0x20a8c9);}const _0x1af794=_0x325441[_0x5cbbcd(0x13e)]()??'';if(_0x14a951['requiresAppCode']!==![]){if(!_0x1af794)throw CliErrors[_0x5cbbcd(0x138)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x325441[_0x5cbbcd(0x140)]},'numbers':{'pagesize':_0x325441[_0x5cbbcd(0x14f)]}},'extras':{'appCode':_0x1af794,'cookie':_0x20a8c9,'apiDomain':_0x325441[_0x5cbbcd(0x13c)](),'apiDir':_0x3110f7,'selectedAppName':_0x325441['selectedAppName'],'mergedCli':_0x325441['mergedCli']}};},async 'confirmHighRisk'({env:_0x690467,commandLabel:_0x5766af}){const _0x21c4b5=a164_0x416f5c;if(_0x690467['isNonInteractive'])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x5766af+_0x21c4b5(0x14e));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x5766af,_0x21c4b5(0x151)],'createCancelledError':_0xa1c09c=>CliErrors[_0x21c4b5(0x142)](_0xa1c09c)});},async 'finalize'(){const _0x553ea7=a164_0x416f5c,{clearActiveCookie:_0x1ce55c}=await import(_0x553ea7(0x148));_0x1ce55c();}};export async function runCommand(_0x5e7cba,_0x4a7456){await runCommandWithAdapter(_0x5e7cba,_0x4a7456,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a165_0x977e(){const _0x3cd684=['1895193VuySEF','362740BqgFSv','18BaDnqF','../commands/registry.js','494716XZKIGI','1428860ieyTVo','1xneeZH','1341838UKpudw','6PvulDe','22VcnqAA','12403944kMuoCT','9496mVQFwC','4865BHAwAY'];a165_0x977e=function(){return _0x3cd684;};return a165_0x977e();}(function(_0x588ba7,_0x6fe2f9){const _0xad2b3b=a165_0x5334,_0x1aca8c=_0x588ba7();while(!![]){try{const _0x20a1e4=-parseInt(_0xad2b3b(0x8e))/0x1*(parseInt(_0xad2b3b(0x8f))/0x2)+-parseInt(_0xad2b3b(0x88))/0x3+parseInt(_0xad2b3b(0x8c))/0x4+-parseInt(_0xad2b3b(0x8d))/0x5*(-parseInt(_0xad2b3b(0x90))/0x6)+parseInt(_0xad2b3b(0x94))/0x7*(-parseInt(_0xad2b3b(0x93))/0x8)+parseInt(_0xad2b3b(0x8a))/0x9*(parseInt(_0xad2b3b(0x89))/0xa)+-parseInt(_0xad2b3b(0x91))/0xb*(-parseInt(_0xad2b3b(0x92))/0xc);if(_0x20a1e4===_0x6fe2f9)break;else _0x1aca8c['push'](_0x1aca8c['shift']());}catch(_0x3f4697){_0x1aca8c['push'](_0x1aca8c['shift']());}}}(a165_0x977e,0x66f4c));function a165_0x5334(_0xcf89eb,_0x1b5296){_0xcf89eb=_0xcf89eb-0x88;const _0x977ed5=a165_0x977e();let _0x533428=_0x977ed5[_0xcf89eb];return _0x533428;}import{buildSchemaPayload as a165_0x20b787}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xa06707=a165_0x5334,{serviceRegistry:_0x25a265,findDefinition:_0x41cb6d}=await import(_0xa06707(0x8b));return a165_0x20b787({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x25a265,'buildAllFlags':buildAllFlags,'findDefinition':_0x41cb6d});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a166_0x4ea8(_0x1d9445,_0x4fca56){_0x1d9445=_0x1d9445-0xb0;var _0x3f0d7d=a166_0x3f0d();var _0x4ea833=_0x3f0d7d[_0x1d9445];return _0x4ea833;}(function(_0x5241cc,_0x304d7d){var _0xeccb5e=a166_0x4ea8,_0x5ddf96=_0x5241cc();while(!![]){try{var _0x456ee9=parseInt(_0xeccb5e(0xbb))/0x1*(-parseInt(_0xeccb5e(0xb1))/0x2)+-parseInt(_0xeccb5e(0xb7))/0x3+-parseInt(_0xeccb5e(0xba))/0x4*(-parseInt(_0xeccb5e(0xb8))/0x5)+-parseInt(_0xeccb5e(0xb4))/0x6+-parseInt(_0xeccb5e(0xb0))/0x7*(-parseInt(_0xeccb5e(0xb3))/0x8)+parseInt(_0xeccb5e(0xb6))/0x9*(-parseInt(_0xeccb5e(0xb2))/0xa)+parseInt(_0xeccb5e(0xb9))/0xb*(parseInt(_0xeccb5e(0xb5))/0xc);if(_0x456ee9===_0x304d7d)break;else _0x5ddf96['push'](_0x5ddf96['shift']());}catch(_0x393133){_0x5ddf96['push'](_0x5ddf96['shift']());}}}(a166_0x3f0d,0xb02a6));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x3f0d(){var _0x2952af=['7490094KPGEYD','1196232DeJEQw','1759869THvBlG','452322ayJBOq','107960iCKNsG','77NEqcYT','144hqcYmI','1289sdiSbL','2408kCWUle','776ovshbr','10KinMKW','31192CwdpWa'];a166_0x3f0d=function(){return _0x2952af;};return a166_0x3f0d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x5e4c6d=a167_0x5c3d;(function(_0x4f864a,_0x3592f8){const _0x3ff357=a167_0x5c3d,_0x240549=_0x4f864a();while(!![]){try{const _0x31b14a=-parseInt(_0x3ff357(0xb9))/0x1*(parseInt(_0x3ff357(0xc0))/0x2)+-parseInt(_0x3ff357(0xbd))/0x3+-parseInt(_0x3ff357(0xbf))/0x4+-parseInt(_0x3ff357(0xbb))/0x5+-parseInt(_0x3ff357(0xbe))/0x6*(-parseInt(_0x3ff357(0xbc))/0x7)+parseInt(_0x3ff357(0xc3))/0x8*(parseInt(_0x3ff357(0xc4))/0x9)+parseInt(_0x3ff357(0xc1))/0xa;if(_0x31b14a===_0x3592f8)break;else _0x240549['push'](_0x240549['shift']());}catch(_0x2d520e){_0x240549['push'](_0x240549['shift']());}}}(a167_0x1608,0xdf3f8));function a167_0x5c3d(_0x4ae73e,_0x57b144){_0x4ae73e=_0x4ae73e-0xb8;const _0x160808=a167_0x1608();let _0x5c3df5=_0x160808[_0x4ae73e];return _0x5c3df5;}export const VERSION=a167_0x5e4c6d(0xc2);export const GIT_TAG=a167_0x5e4c6d(0xba);function a167_0x1608(){const _0x51d1db=['v2.1.7-beta.5','7334410GUEDGS','7FWCjki','2748483uHJOiR','7798698GQcdqe','3756892EuIrPy','2579306XdnLNe','30510770ucKxUL','2.1.7-beta.5','8savOTR','10579347vvfHdR','2026-04-25T08:35:23.009Z','1UmRkPx'];a167_0x1608=function(){return _0x51d1db;};return a167_0x1608();}export const GIT_COMMIT='cdd1106';export const BUILD_TIME=a167_0x5e4c6d(0xb8);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1147b4,_0x453575){var _0x104e1b=a168_0x357a,_0x1ac947=_0x1147b4();while(!![]){try{var _0xc76133=-parseInt(_0x104e1b(0x115))/0x1*(parseInt(_0x104e1b(0x120))/0x2)+parseInt(_0x104e1b(0x11b))/0x3+parseInt(_0x104e1b(0x11f))/0x4+parseInt(_0x104e1b(0x119))/0x5*(parseInt(_0x104e1b(0x11c))/0x6)+parseInt(_0x104e1b(0x11e))/0x7*(parseInt(_0x104e1b(0x11a))/0x8)+parseInt(_0x104e1b(0x11d))/0x9+-parseInt(_0x104e1b(0x117))/0xa*(parseInt(_0x104e1b(0x114))/0xb);if(_0xc76133===_0x453575)break;else _0x1ac947['push'](_0x1ac947['shift']());}catch(_0xb03714){_0x1ac947['push'](_0x1ac947['shift']());}}}(a168_0xbb8d,0xdcb92));import a168_0x5549f6 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0x357a(_0x37dead,_0x22a512){_0x37dead=_0x37dead-0x114;var _0xbb8dcd=a168_0xbb8d();var _0x357abb=_0xbb8dcd[_0x37dead];return _0x357abb;}export function showHelp(){var _0x336320=a168_0x357a;console[_0x336320(0x121)](),console['log'](a168_0x5549f6['green'][_0x336320(0x116)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x336320(0x121)](),console[_0x336320(0x121)](_0x336320(0x118)+a168_0x5549f6['green'][_0x336320(0x116)](CLI_BIN_NAME+'\x20--help')+_0x336320(0x122)),console[_0x336320(0x121)]();}function a168_0xbb8d(){var _0x55ec86=['log','\x20to\x20view\x20available\x20commands.','11lodYYO','37711mWiPOC','bold','45869660PPhOgI','\x20\x20Use\x20','125wheJRn','9557872SxDTSs','3120981rBjSvR','412068pQNQvt','11965374lLDsOv','7ZuBxOw','2346644xyQeiJ','20JEVkdE'];a168_0xbb8d=function(){return _0x55ec86;};return a168_0xbb8d();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37a436,_0x4e9a9a){const _0x307bf9=a169_0x5102,_0x12fe86=_0x37a436();while(!![]){try{const _0x16e5fe=-parseInt(_0x307bf9(0xda))/0x1+-parseInt(_0x307bf9(0xd2))/0x2+-parseInt(_0x307bf9(0xd6))/0x3*(parseInt(_0x307bf9(0xde))/0x4)+parseInt(_0x307bf9(0xc6))/0x5*(-parseInt(_0x307bf9(0xce))/0x6)+parseInt(_0x307bf9(0xc8))/0x7+parseInt(_0x307bf9(0xbf))/0x8+parseInt(_0x307bf9(0xd0))/0x9;if(_0x16e5fe===_0x4e9a9a)break;else _0x12fe86['push'](_0x12fe86['shift']());}catch(_0x4c98af){_0x12fe86['push'](_0x12fe86['shift']());}}}(a169_0x4f4a,0xc137f));import{logger}from'../utils/logger.js';function a169_0x5102(_0x17ed56,_0x180cfb){_0x17ed56=_0x17ed56-0xbf;const _0x4f4a8d=a169_0x4f4a();let _0x5102d9=_0x4f4a8d[_0x17ed56];return _0x5102d9;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x5e873e){const _0x57c8a6=a169_0x5102,_0x2873d9=[];for(const [_0x52e07c,_0x56b604]of Object[_0x57c8a6(0xc7)](_0x5e873e)){if(_0x56b604===!![]){const _0x1c321d=_0x52e07c[_0x57c8a6(0xcf)](/([A-Z])/g,'-$1')['toLowerCase']();_0x2873d9['push'](_0x1c321d);}}return _0x2873d9;}function a169_0x4f4a(){const _0x5e3244=['\x0aAvailable\x20commands:','1463546KYQwzR','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','argv','Error:\x20Unsupported\x20command:\x20','76PgfwZx','8018768dyZPDS','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','slice','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','cwd','exit','Equivalent\x20command:\x20','4060bucGpR','entries','5784331PSqEvK','includes','log','--help','push','(empty)','11076YvseJL','replace','33223635HaLmEU','error','2137224dXEDnN','help','dangerously-bff-save','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','110157mWsdFY','has','from'];a169_0x4f4a=function(){return _0x5e3244;};return a169_0x4f4a();}export function parseDynamicFlags(){const _0x43b4cf=a169_0x5102,_0x1ec0b5=[];for(let _0x97a3d3=0x3;_0x97a3d3<process['argv']['length'];_0x97a3d3++){const _0x29d0e8=process[_0x43b4cf(0xdc)][_0x97a3d3];if(_0x29d0e8&&_0x29d0e8['startsWith']('--')){const _0x201401=_0x29d0e8[_0x43b4cf(0xc1)](0x2);_0x201401&&!_0x201401[_0x43b4cf(0xc9)]('=')&&_0x1ec0b5[_0x43b4cf(0xcc)](_0x201401);}}return _0x1ec0b5;}export function getAllProvidedFlags(_0x418ae7){const _0x1c1895=a169_0x5102,_0xb5cece=camelCaseFlagsToKebab(_0x418ae7),_0x517ff0=parseDynamicFlags(),_0x26aac9=new Set([..._0xb5cece,..._0x517ff0]);return Array[_0x1c1895(0xd8)](_0x26aac9);}export function normalizeLegacyBffSaveFlags(_0x1ca56a){const _0x2b8684=a169_0x5102,_0x2aeb63=new Set(_0x1ca56a);return _0x2aeb63[_0x2b8684(0xd7)](_0x2b8684(0xd4))&&_0x2aeb63['add']('enable-bff-save'),Array[_0x2b8684(0xd8)](_0x2aeb63);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2a3d30,_0x4ea98f,_0xe01d7f){const _0x416810=a169_0x5102;logger['setLogPath'](process[_0x416810(0xc3)]());if(_0xe01d7f?.[_0x416810(0xd3)]||_0x2a3d30===_0x416810(0xcb)){showHelp();return;}console['error'](_0x416810(0xdd)+(_0x2a3d30||_0x416810(0xcd))),console[_0x416810(0xca)](_0x416810(0xd9)),console[_0x416810(0xca)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x416810(0xca)]('\x20\x20'+CLI_BIN_NAME+_0x416810(0xc0)),console['log'](''),console[_0x416810(0xca)](_0x416810(0xc5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x416810(0xd1)]('skill','不支持的命令:\x20'+_0x2a3d30),process[_0x416810(0xc4)](0x1);}function showHelp(){const _0x1bdb5e=a169_0x5102;console[_0x1bdb5e(0xca)](_0x1bdb5e(0xdb)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x1bdb5e(0xc2)+SKILLS_INSTALL_COMMAND_LINE+_0x1bdb5e(0xd5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x19fa9e=a170_0x3a30;(function(_0x3716ee,_0x374220){const _0x1adb56=a170_0x3a30,_0x3657b7=_0x3716ee();while(!![]){try{const _0x5e1684=parseInt(_0x1adb56(0x17a))/0x1+parseInt(_0x1adb56(0x17e))/0x2+-parseInt(_0x1adb56(0x183))/0x3+parseInt(_0x1adb56(0x17b))/0x4+parseInt(_0x1adb56(0x18b))/0x5+-parseInt(_0x1adb56(0x191))/0x6+-parseInt(_0x1adb56(0x186))/0x7*(-parseInt(_0x1adb56(0x18c))/0x8);if(_0x5e1684===_0x374220)break;else _0x3657b7['push'](_0x3657b7['shift']());}catch(_0x13df71){_0x3657b7['push'](_0x3657b7['shift']());}}}(a170_0x5698,0x594fe));import{spawnSync}from'node:child_process';function a170_0x3a30(_0x47d056,_0x46dfd5){_0x47d056=_0x47d056-0x177;const _0x5698e3=a170_0x5698();let _0x3a30cc=_0x5698e3[_0x47d056];return _0x3a30cc;}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_0x19fa9e(0x190);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x19fa9e(0x189);export const NPX_SKILLS_FLAG_SKILL=a170_0x19fa9e(0x184);export const RABETBASE_SKILL_SOURCE=a170_0x19fa9e(0x17f);export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0x19fa9e(0x185);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x3c9f77=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3c9f77];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x19fa9e(0x180),...buildNpxSkillsAddArgv()][a170_0x19fa9e(0x178)]('\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_0x19fa9e(0x178)]('\x20');function a170_0x5698(){const _0x1f66bd=['add','pipe','177135AscxUN','8mZrfEf','log','unknown','yes','skills','4045710vidFth','stdout','exit\x20','toString','join','stderr','75342JqhyOG','1143860LdZCoj','stdio','inherit','1028594UuSRsW','lovrabet/rabetbase','npx','trim','skill','1651935VmEXGl','--skill','lovrabet/lovrabet-skill','4758047QJuUvJ','remove','status'];a170_0x5698=function(){return _0x1f66bd;};return a170_0x5698();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1f218f,_0x1025b7){const _0x21c4df=a170_0x19fa9e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53436b=_0x1025b7?.[_0x21c4df(0x17c)]??'inherit',_0x3beec1=resolveNpmBin(_0x21c4df(0x180)),_0x343cb4=buildNpxSkillsAddArgv(_0x1025b7?.[_0x21c4df(0x182)]??DEFAULT_RABETBASE_SKILL_NAME),_0x4ae206=[_0x21c4df(0x180),..._0x343cb4][_0x21c4df(0x178)]('\x20');console[_0x21c4df(0x18d)]('*\x20'+_0x4ae206);const _0x119375=spawnSync(_0x3beec1,_0x343cb4,{'cwd':_0x1f218f,'stdio':_0x53436b,'env':process.env,'shell':![]}),_0x2b0831=_0x119375['status'];if(_0x2b0831===0x0)return{'ok':!![],'status':0x0};let _0x3673f5=_0x21c4df(0x193)+(_0x2b0831??_0x21c4df(0x18e));if(_0x53436b==='pipe'){const _0x4f2d0c=_0x119375[_0x21c4df(0x179)]?_0x119375[_0x21c4df(0x179)][_0x21c4df(0x177)]()[_0x21c4df(0x181)]():'',_0x32e6e1=_0x119375['stdout']?_0x119375[_0x21c4df(0x192)][_0x21c4df(0x177)]()[_0x21c4df(0x181)]():'';if(_0x4f2d0c)_0x3673f5=_0x4f2d0c;else{if(_0x32e6e1)_0x3673f5=_0x32e6e1;}}return{'ok':![],'status':_0x2b0831??null,'error':_0x3673f5};}export function runNpxSkillsRemove(_0x335e13,_0x1654cb,_0x10801b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x103a76=a170_0x19fa9e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x59272e=_0x1654cb?.[_0x103a76(0x17c)]??'inherit',_0x3148dc=resolveNpmBin(_0x103a76(0x180)),_0xc51362=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x103a76(0x187),_0x10801b,NPX_SKILLS_FLAG_SKILL,_0x1654cb?.[_0x103a76(0x182)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1654cb?.[_0x103a76(0x18f)]?['-y']:[]],_0x599138=[_0x3148dc,..._0xc51362][_0x103a76(0x178)]('\x20');console[_0x103a76(0x18d)]('*\x20'+_0x599138);const _0x379d63=spawnSync(_0x3148dc,_0xc51362,{'cwd':_0x335e13,'stdio':_0x59272e,'env':process.env,'shell':![]}),_0x275996=_0x379d63[_0x103a76(0x188)];if(_0x275996===0x0)return{'ok':!![],'status':0x0};let _0x2af65e='exit\x20'+(_0x275996??_0x103a76(0x18e));if(_0x59272e==='pipe'){const _0x5c21ef=_0x379d63[_0x103a76(0x179)]?_0x379d63[_0x103a76(0x179)][_0x103a76(0x177)]()['trim']():'',_0x442db5=_0x379d63[_0x103a76(0x192)]?_0x379d63['stdout'][_0x103a76(0x177)]()[_0x103a76(0x181)]():'';if(_0x5c21ef)_0x2af65e=_0x5c21ef;else{if(_0x442db5)_0x2af65e=_0x442db5;}}return{'ok':![],'status':_0x275996??null,'error':_0x2af65e};}export function runNpxSkillsAddGlobal(_0x2e12f6,_0x7f0638,_0x5f48d0){const _0x1771b7=a170_0x19fa9e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1afeae=_0x5f48d0?.[_0x1771b7(0x17c)]??_0x1771b7(0x17d),_0x410511=resolveNpmBin(_0x1771b7(0x180)),_0x5952b7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x7f0638,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x19d3bb=[_0x1771b7(0x180),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x7f0638,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1771b7(0x178)]('\x20');console[_0x1771b7(0x18d)]('*\x20'+_0x19d3bb);const _0x272ef7=spawnSync(_0x410511,_0x5952b7,{'cwd':_0x2e12f6,'stdio':_0x1afeae,'env':process.env,'shell':![]}),_0x58da8d=_0x272ef7[_0x1771b7(0x188)];if(_0x58da8d===0x0)return{'ok':!![],'status':0x0};let _0x3acf1d='exit\x20'+(_0x58da8d??'unknown');if(_0x1afeae===_0x1771b7(0x18a)){const _0x3b24f8=_0x272ef7['stderr']?_0x272ef7[_0x1771b7(0x179)][_0x1771b7(0x177)]()[_0x1771b7(0x181)]():'',_0x4ceae2=_0x272ef7[_0x1771b7(0x192)]?_0x272ef7[_0x1771b7(0x192)][_0x1771b7(0x177)]()[_0x1771b7(0x181)]():'';if(_0x3b24f8)_0x3acf1d=_0x3b24f8;else{if(_0x4ceae2)_0x3acf1d=_0x4ceae2;}}return{'ok':![],'status':_0x58da8d??null,'error':_0x3acf1d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22ef00,_0x179efa){const _0x28c7ff=a171_0x2116,_0x3a2158=_0x22ef00();while(!![]){try{const _0x161748=parseInt(_0x28c7ff(0x1b5))/0x1+-parseInt(_0x28c7ff(0x1aa))/0x2+-parseInt(_0x28c7ff(0x1b7))/0x3+parseInt(_0x28c7ff(0x1ac))/0x4+parseInt(_0x28c7ff(0x1b2))/0x5+parseInt(_0x28c7ff(0x1ae))/0x6*(-parseInt(_0x28c7ff(0x1ba))/0x7)+-parseInt(_0x28c7ff(0x1b9))/0x8*(parseInt(_0x28c7ff(0x1a9))/0x9);if(_0x161748===_0x179efa)break;else _0x3a2158['push'](_0x3a2158['shift']());}catch(_0x464536){_0x3a2158['push'](_0x3a2158['shift']());}}}(a171_0x5adc,0x36edb));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a171_0x2116(_0x2d8573,_0xbda08a){_0x2d8573=_0x2d8573-0x1a9;const _0x5adce7=a171_0x5adc();let _0x211646=_0x5adce7[_0x2d8573];return _0x211646;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x460dbc){const _0x164586=a171_0x2116;return SENSITIVE_PATTERNS['some'](_0x57b568=>_0x57b568[_0x164586(0x1b0)](_0x460dbc));}function a171_0x5adc(){const _0xb61cbd=['248418shOIdT','entries','576fpJmTm','28zSjvsE','24228mILlju','664956YdtQJS','[REDACTED]','1493288AIFRtS','error','426CAPevq','rabetbase.command','test','stringify','1167465xCKcyd','flags','durationMs','227564wOXqYo','service'];a171_0x5adc=function(){return _0xb61cbd;};return a171_0x5adc();}function sanitizeFlags(_0x58322f){const _0x42150f=a171_0x2116,_0x104018={};for(const [_0x473f04,_0x2e1c26]of Object[_0x42150f(0x1b8)](_0x58322f)){isSensitiveKey(_0x473f04)?_0x104018[_0x473f04]=_0x2e1c26!=null&&_0x2e1c26!==''?_0x42150f(0x1ab):_0x2e1c26:_0x104018[_0x473f04]=_0x2e1c26;}return _0x104018;}export async function reportCommandTrace(_0x3f4ed7){const _0x2a9a1a=a171_0x2116;try{const _0xf90d75=sanitizeFlags(_0x3f4ed7[_0x2a9a1a(0x1b3)]);await sendCliTraceLog({'spanName':_0x2a9a1a(0x1af),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3f4ed7[_0x2a9a1a(0x1b6)],'command.name':_0x3f4ed7['command'],'command.flags':JSON[_0x2a9a1a(0x1b1)](_0xf90d75),..._0x3f4ed7[_0x2a9a1a(0x1b4)]!=null?{'command.duration_ms':_0x3f4ed7['durationMs']}:{},..._0x3f4ed7[_0x2a9a1a(0x1ad)]?{'command.error':_0x3f4ed7['error']instanceof Error?_0x3f4ed7[_0x2a9a1a(0x1ad)]['message']:String(_0x3f4ed7[_0x2a9a1a(0x1ad)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x327c(){var _0x405f3a=['37918152vMnbkQ','2997096xIaGcL','55yeRppT','656592HHmrpu','error','service','1626uAgSDz','2083EDeaWb','7603794URcVBX','2303082NblTaH','5125015WMQrfg'];a172_0x327c=function(){return _0x405f3a;};return a172_0x327c();}function a172_0x1c0d(_0x1e5241,_0x4e4ac1){_0x1e5241=_0x1e5241-0x10a;var _0x327cc2=a172_0x327c();var _0x1c0db3=_0x327cc2[_0x1e5241];return _0x1c0db3;}(function(_0x172adc,_0x43b942){var _0x1334c7=a172_0x1c0d,_0x3fd4a4=_0x172adc();while(!![]){try{var _0x410ebc=parseInt(_0x1334c7(0x10e))/0x1*(parseInt(_0x1334c7(0x10d))/0x2)+-parseInt(_0x1334c7(0x110))/0x3+parseInt(_0x1334c7(0x10a))/0x4*(-parseInt(_0x1334c7(0x114))/0x5)+-parseInt(_0x1334c7(0x10f))/0x6+-parseInt(_0x1334c7(0x111))/0x7+-parseInt(_0x1334c7(0x113))/0x8+parseInt(_0x1334c7(0x112))/0x9;if(_0x410ebc===_0x43b942)break;else _0x3fd4a4['push'](_0x3fd4a4['shift']());}catch(_0x2cdbf7){_0x3fd4a4['push'](_0x3fd4a4['shift']());}}}(a172_0x327c,0xea2e4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x27839d,_0x3c3c42){var _0x27fbd4=a172_0x1c0d;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x27839d,..._0x3c3c42?.['service']&&{'rabetbase.help.service':_0x3c3c42[_0x27fbd4(0x10c)]}}});}catch(_0x1f64a5){console[_0x27fbd4(0x10b)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x1f64a5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21e16e,_0x4428e5){const _0x49cb48=a173_0x1d62,_0x5b45af=_0x21e16e();while(!![]){try{const _0x40afbb=parseInt(_0x49cb48(0x1dd))/0x1+-parseInt(_0x49cb48(0x1d9))/0x2*(parseInt(_0x49cb48(0x1df))/0x3)+-parseInt(_0x49cb48(0x1e8))/0x4*(-parseInt(_0x49cb48(0x1de))/0x5)+parseInt(_0x49cb48(0x1da))/0x6+parseInt(_0x49cb48(0x1e3))/0x7*(parseInt(_0x49cb48(0x1db))/0x8)+parseInt(_0x49cb48(0x1e6))/0x9+-parseInt(_0x49cb48(0x1e2))/0xa;if(_0x40afbb===_0x4428e5)break;else _0x5b45af['push'](_0x5b45af['shift']());}catch(_0x4232c0){_0x5b45af['push'](_0x5b45af['shift']());}}}(a173_0x39bd,0xcca63));import a173_0x119f3e from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a173_0x39bd(){const _0x162c25=['30907560BosiCV','28QsMpiT','username','unknown','13878072xyfjVa','rabetbase-cli','12kIOmVC','nickname','userInfo','121350uAnzyD','6645942Qwqjzb','2752584qeypXL','user','250199VAzVLO','1646155UFVNNv','66QNTBMu','production','daily'];a173_0x39bd=function(){return _0x162c25;};return a173_0x39bd();}function a173_0x1d62(_0x23fec7,_0x5d8bf4){_0x23fec7=_0x23fec7-0x1d8;const _0x39bdac=a173_0x39bd();let _0x1d6234=_0x39bdac[_0x23fec7];return _0x1d6234;}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x135047=a173_0x1d62,_0x13799f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x57d5bd=_0x13799f?.[_0x135047(0x1dc)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x135047(0x1e5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x135047(0x1e1):_0x135047(0x1e0)),'username':_0x57d5bd?.[_0x135047(0x1e4)]??a173_0x119f3e[_0x135047(0x1d8)]()[_0x135047(0x1e4)]??_0x135047(0x1e7),..._0x57d5bd&&{'nickname':_0x57d5bd[_0x135047(0x1e9)]}}),cliOtelTraceInitialized=!![];}return _0x13799f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a174_0x46ce(){const _0x5782bc=['3194CqvArQ','9159950kTcuHj','568659ZKxJfT','192292mThSBu','36LDWKPv','210oPuaPY','then','1231768QAwgLs','exit','2474316EuSDFX','6RupxbY','3098205GvbNzh','once'];a174_0x46ce=function(){return _0x5782bc;};return a174_0x46ce();}(function(_0x42c2bf,_0x3553e8){const _0x355236=a174_0x3255,_0x35a381=_0x42c2bf();while(!![]){try{const _0x28a7de=-parseInt(_0x355236(0xee))/0x1*(parseInt(_0x355236(0xf6))/0x2)+-parseInt(_0x355236(0xf3))/0x3*(-parseInt(_0x355236(0xf9))/0x4)+parseInt(_0x355236(0xf4))/0x5+parseInt(_0x355236(0xf2))/0x6+-parseInt(_0x355236(0xf8))/0x7+-parseInt(_0x355236(0xf0))/0x8*(-parseInt(_0x355236(0xfa))/0x9)+-parseInt(_0x355236(0xf7))/0xa;if(_0x28a7de===_0x3553e8)break;else _0x35a381['push'](_0x35a381['shift']());}catch(_0x8d2cf3){_0x35a381['push'](_0x35a381['shift']());}}}(a174_0x46ce,0x6473f));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a174_0x3255(_0x3bda69,_0x209d5d){_0x3bda69=_0x3bda69-0xee;const _0x46cefa=a174_0x46ce();let _0x3255f2=_0x46cefa[_0x3bda69];return _0x3255f2;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x54e792=a174_0x3255;process[_0x54e792(0xf5)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xd9c7db=()=>{const _0x140532=_0x54e792;void flushOtelNodeIfUsed()[_0x140532(0xef)](()=>process['exit'](0x0));};process[_0x54e792(0xf5)]('SIGINT',_0xd9c7db),process[_0x54e792(0xf5)]('SIGTERM',_0xd9c7db);}export async function exitWithOtelShutdown(_0x394411){const _0x24d4ab=a174_0x3255;await flushOtelNodeIfUsed(),process[_0x24d4ab(0xf1)](_0x394411);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x18ae21,_0xd3c507){const _0x1ff9a2=a175_0x464b,_0x508361=_0x18ae21();while(!![]){try{const _0x81ff9c=parseInt(_0x1ff9a2(0x19d))/0x1+-parseInt(_0x1ff9a2(0x1a4))/0x2*(-parseInt(_0x1ff9a2(0x19e))/0x3)+parseInt(_0x1ff9a2(0x19b))/0x4+parseInt(_0x1ff9a2(0x19f))/0x5*(-parseInt(_0x1ff9a2(0x1a5))/0x6)+parseInt(_0x1ff9a2(0x19c))/0x7+-parseInt(_0x1ff9a2(0x1a6))/0x8*(parseInt(_0x1ff9a2(0x1a3))/0x9)+-parseInt(_0x1ff9a2(0x1a0))/0xa*(parseInt(_0x1ff9a2(0x1a2))/0xb);if(_0x81ff9c===_0xd3c507)break;else _0x508361['push'](_0x508361['shift']());}catch(_0x3a64d6){_0x508361['push'](_0x508361['shift']());}}}(a175_0x32d8,0x4f6a6));import{sendTraceLog}from'@lovrabet/otel-logger';function a175_0x464b(_0x544b71,_0x2cf2be){_0x544b71=_0x544b71-0x199;const _0x32d883=a175_0x32d8();let _0x464bc3=_0x32d883[_0x544b71];return _0x464bc3;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5060d6){const _0x666845=a175_0x464b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5060d6[_0x666845(0x1a7)]??DEFAULT_TRACE_NAME,'version':_0x5060d6[_0x666845(0x19a)]??getCliVersion(),'spanName':_0x5060d6[_0x666845(0x199)],'eventType':_0x666845(0x1a1),'logData':_0x5060d6['logData'],..._0x5060d6[_0x666845(0x1a8)]&&{'traceparent':_0x5060d6[_0x666845(0x1a8)]}});}function a175_0x32d8(){const _0x517017=['1077548FcWHWf','66Yhyoop','8aeJAQy','traceName','traceparent','spanName','version','1094596IkuACU','314664hVIYqW','332407nxAGQd','3NIRsOs','246495qGsmBU','115610CfIVOO','manual','110plnzBn','1859373ptOWqu'];a175_0x32d8=function(){return _0x517017;};return a175_0x32d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x54e96f=a176_0xe78b;(function(_0xb7ff4b,_0x57c8db){const _0x4010bf=a176_0xe78b,_0x1098e1=_0xb7ff4b();while(!![]){try{const _0x17e2f4=-parseInt(_0x4010bf(0xeb))/0x1*(parseInt(_0x4010bf(0xf5))/0x2)+parseInt(_0x4010bf(0xf0))/0x3*(parseInt(_0x4010bf(0xee))/0x4)+parseInt(_0x4010bf(0xed))/0x5+parseInt(_0x4010bf(0xec))/0x6+-parseInt(_0x4010bf(0xf4))/0x7+-parseInt(_0x4010bf(0xf1))/0x8*(parseInt(_0x4010bf(0xf3))/0x9)+parseInt(_0x4010bf(0xea))/0xa;if(_0x17e2f4===_0x57c8db)break;else _0x1098e1['push'](_0x1098e1['shift']());}catch(_0x300c20){_0x1098e1['push'](_0x1098e1['shift']());}}}(a176_0x4e11,0x3c38c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a176_0xe78b(_0x50d584,_0x13782e){_0x50d584=_0x50d584-0xe9;const _0x4e11cb=a176_0x4e11();let _0xe78b3f=_0x4e11cb[_0x50d584];return _0xe78b3f;}function a176_0x4e11(){const _0xfa7f04=['5801310NeJdsq','3293BBkble','696660hjiLIv','492950aegGZV','824KIZjxH','platform-issue-log-collect','2418MqLFEF','262536cZrLQF','title','27ZXKYNP','2166493RUpSdX','186JtplMo','issue.log.collect','description'];a176_0x4e11=function(){return _0xfa7f04;};return a176_0x4e11();}export const PLATFORM_ISSUE_TRACE_NAME=a176_0x54e96f(0xef);export const PLATFORM_ISSUE_SPAN_NAME=a176_0x54e96f(0xf6);export async function sendPlatformIssueCollectLog(_0x43cce5){const _0x13d8f7=a176_0x54e96f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x43cce5[_0x13d8f7(0xf2)],'issue.description':_0x43cce5[_0x13d8f7(0xe9)]}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a178_0x35f8f9=a178_0x3f32;function a178_0x3f32(_0x48d6a7,_0x3299aa){_0x48d6a7=_0x48d6a7-0xbc;const _0x31e251=a178_0x31e2();let _0x3f32e9=_0x31e251[_0x48d6a7];return _0x3f32e9;}(function(_0x4a7376,_0x1a5dfb){const _0x585363=a178_0x3f32,_0x149cba=_0x4a7376();while(!![]){try{const _0x172a65=-parseInt(_0x585363(0xdb))/0x1*(-parseInt(_0x585363(0xd4))/0x2)+-parseInt(_0x585363(0xc0))/0x3+parseInt(_0x585363(0xf5))/0x4*(-parseInt(_0x585363(0xdf))/0x5)+-parseInt(_0x585363(0xe5))/0x6+parseInt(_0x585363(0xd6))/0x7*(-parseInt(_0x585363(0xcf))/0x8)+parseInt(_0x585363(0xf2))/0x9*(parseInt(_0x585363(0xd8))/0xa)+parseInt(_0x585363(0xe6))/0xb*(parseInt(_0x585363(0xbf))/0xc);if(_0x172a65===_0x1a5dfb)break;else _0x149cba['push'](_0x149cba['shift']());}catch(_0x1be2f5){_0x149cba['push'](_0x149cba['shift']());}}}(a178_0x31e2,0xd225d));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x35f8f9(0xd9),'description':a178_0x35f8f9(0xd7),'folders':[a178_0x35f8f9(0xc8),a178_0x35f8f9(0xc7)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xef),'template':a178_0x35f8f9(0xce)}]},'windsurf':{'name':a178_0x35f8f9(0xf1),'description':a178_0x35f8f9(0xd3),'folders':[a178_0x35f8f9(0xbd)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xed),'template':a178_0x35f8f9(0xce)}]},'claude':{'name':a178_0x35f8f9(0xe4),'description':a178_0x35f8f9(0xe4),'folders':[a178_0x35f8f9(0xe3)],'files':[{'type':'file','path':a178_0x35f8f9(0xf0),'template':a178_0x35f8f9(0xce)}]},'cline':{'name':a178_0x35f8f9(0xf4),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xbc),'template':'SKILL.md.tpl'}]},'codex':{'name':a178_0x35f8f9(0xc3),'description':a178_0x35f8f9(0xca),'folders':[a178_0x35f8f9(0xc1)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xe7),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a178_0x35f8f9(0xf6),'folders':[a178_0x35f8f9(0xdd)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xdc),'template':a178_0x35f8f9(0xce)}]},'qoder':{'name':a178_0x35f8f9(0xec),'description':a178_0x35f8f9(0xc5),'folders':[a178_0x35f8f9(0xe2)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xcd),'template':'SKILL.md.tpl'},{'type':a178_0x35f8f9(0xe9),'path':'.qoder/skills/lovrabet/SKILL.md','template':a178_0x35f8f9(0xce)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x35f8f9(0xe8),'folders':[a178_0x35f8f9(0xcb)],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xee),'template':a178_0x35f8f9(0xce)}]},'trae':{'name':a178_0x35f8f9(0xeb),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a178_0x35f8f9(0xe9),'path':a178_0x35f8f9(0xc9),'template':a178_0x35f8f9(0xce)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x35f8f9(0xc4),'description':a178_0x35f8f9(0xea),'folders':['.agent'],'files':[{'type':a178_0x35f8f9(0xe9),'path':'.agent/skills/lovrabet/SKILL.md','template':a178_0x35f8f9(0xce)}]},'antigravity':{'name':a178_0x35f8f9(0xd1),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':'file','path':a178_0x35f8f9(0xda),'template':a178_0x35f8f9(0xce)}]}};export const CORE_IDE_LIST=[a178_0x35f8f9(0xf3),'cline',a178_0x35f8f9(0xe1),a178_0x35f8f9(0xcc),a178_0x35f8f9(0xc6),'opencode',a178_0x35f8f9(0xd0),a178_0x35f8f9(0xe0),'windsurf'];export const IDE_LIST=[a178_0x35f8f9(0xbe),'claude',a178_0x35f8f9(0xd5),'codebuddy',a178_0x35f8f9(0xcc),a178_0x35f8f9(0xc6),a178_0x35f8f9(0xd2),a178_0x35f8f9(0xd0),a178_0x35f8f9(0xe0),a178_0x35f8f9(0xc2),a178_0x35f8f9(0xde)];export const ALL_CORE_IDES=[a178_0x35f8f9(0xc6),'windsurf',a178_0x35f8f9(0xf3),a178_0x35f8f9(0xd5),a178_0x35f8f9(0xcc),a178_0x35f8f9(0xd2),'qoder',a178_0x35f8f9(0xe1),a178_0x35f8f9(0xe0)];function a178_0x31e2(){const _0xf5f778=['Cursor','.agent/skills/lovrabet/SKILL.md','120418kHwVKf','.opencode/skills/lovrabet/SKILL.md','.opencode','agent','5SXvPor','trae','codebuddy','.qoder','.claude','Claude\x20Code','573642iDwLRY','1180729UffIqv','.codex/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','file','通用模板\x20-\x20兜底方案','Trae','Qoder','.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.claude/skills/lovrabet/SKILL.md','Windsurf','9WGGZwW','claude','Cline','5422684QnMFup','OpenCode\x20IDE','.cline/skills/lovrabet/SKILL.md','.windsurf','antigravity','312IsVVaG','2542077VlADUv','.codex','windsurf','Codex','其他\x20(通用模板)','Qoder\x20IDE','cursor','.cursor','.cursorrules','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','.codebuddy','codex','.qoder/rules/rabetbase.md','SKILL.md.tpl','60920pjmFtf','qoder','Antigravity','opencode','Windsurf\x20IDE','16RvORYG','cline','1050vRSNNh','Cursor\x20IDE','5474940fvFoaf'];a178_0x31e2=function(){return _0xf5f778;};return a178_0x31e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24e8ba,_0xcc3875){const _0x3d6786=a179_0x4e1f,_0x44507f=_0x24e8ba();while(!![]){try{const _0x2bb2d1=parseInt(_0x3d6786(0xec))/0x1+-parseInt(_0x3d6786(0xf3))/0x2+parseInt(_0x3d6786(0xf5))/0x3*(-parseInt(_0x3d6786(0xef))/0x4)+-parseInt(_0x3d6786(0xf2))/0x5*(-parseInt(_0x3d6786(0xf0))/0x6)+-parseInt(_0x3d6786(0xee))/0x7+-parseInt(_0x3d6786(0xed))/0x8*(parseInt(_0x3d6786(0xf4))/0x9)+parseInt(_0x3d6786(0xf1))/0xa;if(_0x2bb2d1===_0xcc3875)break;else _0x44507f['push'](_0x44507f['shift']());}catch(_0x502a87){_0x44507f['push'](_0x44507f['shift']());}}}(a179_0x2c3e,0x56110));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0x4e1f(_0xf752d9,_0xa156a4){_0xf752d9=_0xf752d9-0xec;const _0x2c3eea=a179_0x2c3e();let _0x4e1f72=_0x2c3eea[_0xf752d9];return _0x4e1f72;}function a179_0x2c3e(){const _0x4c0c07=['927996wLSCYC','11056660EoIlmZ','10AMZPrN','575982cncVNt','54UhIemy','21hshOQy','11726ngvdsW','34672FUpJKv','4087930RubgKZ','100692csvQac'];a179_0x2c3e=function(){return _0x4c0c07;};return a179_0x2c3e();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17cbfc,_0x30ed14){const _0x36a188=a180_0xf007,_0x3cd893=_0x17cbfc();while(!![]){try{const _0x5a2a25=parseInt(_0x36a188(0xd2))/0x1*(-parseInt(_0x36a188(0xd4))/0x2)+parseInt(_0x36a188(0xd8))/0x3+parseInt(_0x36a188(0xd1))/0x4+parseInt(_0x36a188(0xda))/0x5+-parseInt(_0x36a188(0xd6))/0x6+-parseInt(_0x36a188(0xd3))/0x7+parseInt(_0x36a188(0xd5))/0x8;if(_0x5a2a25===_0x30ed14)break;else _0x3cd893['push'](_0x3cd893['shift']());}catch(_0x112ee2){_0x3cd893['push'](_0x3cd893['shift']());}}}(a180_0x4857,0x23dc1));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0xf007(_0x349ee5,_0x4085b5){_0x349ee5=_0x349ee5-0xcf;const _0x48571f=a180_0x4857();let _0xf00707=_0x48571f[_0x349ee5];return _0xf00707;}export async function fetchCdnConfig(){const _0x3587bc=a180_0xf007,_0x5365ff=getTemplateBaseUrl(),_0x3a4fe4=[_0x5365ff+_0x3587bc(0xd9),_0x5365ff+'/config/index.json'];for(const _0x500229 of _0x3a4fe4){try{const _0x54e50d=await fetch(_0x500229,{'headers':{'Accept':_0x3587bc(0xcf)}});if(!_0x54e50d['ok'])continue;const _0x1d090c=await _0x54e50d['json']();if(!_0x1d090c['cli']?.[_0x3587bc(0xd7)]||!_0x1d090c['sdk']?.['node']?.[_0x3587bc(0xd7)])continue;return _0x1d090c;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a180_0x4857(){const _0x3481f1=['4ehZdVM','3262808qkRgXh','726390DOkDji','stableVersion','138072bdtxVj','/config.json','664470RWdpzz','application/json','now','636764ElOhcy','124863HuFmFx','1598016rFzJiC'];a180_0x4857=function(){return _0x3481f1;};return a180_0x4857();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3863b0=a180_0xf007,_0x5888b7=Date[_0x3863b0(0xd0)]();if(hasCachedConfig){const _0x3c9a79=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5888b7-cacheTime<_0x3c9a79)return cachedConfig;}const _0x37498c=await fetchCdnConfig();return cachedConfig=_0x37498c,cacheTime=_0x5888b7,hasCachedConfig=!![],_0x37498c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a181_0x3ca056=a181_0x5db1;(function(_0x5bebeb,_0x171f39){const _0x515cf1=a181_0x5db1,_0x3fcf2f=_0x5bebeb();while(!![]){try{const _0x2782c9=-parseInt(_0x515cf1(0x143))/0x1+-parseInt(_0x515cf1(0x155))/0x2+-parseInt(_0x515cf1(0x153))/0x3+-parseInt(_0x515cf1(0x162))/0x4*(parseInt(_0x515cf1(0x141))/0x5)+-parseInt(_0x515cf1(0x152))/0x6+-parseInt(_0x515cf1(0x163))/0x7*(-parseInt(_0x515cf1(0x151))/0x8)+-parseInt(_0x515cf1(0x14f))/0x9*(-parseInt(_0x515cf1(0x15d))/0xa);if(_0x2782c9===_0x171f39)break;else _0x3fcf2f['push'](_0x3fcf2f['shift']());}catch(_0x50a624){_0x3fcf2f['push'](_0x3fcf2f['shift']());}}}(a181_0x28f9,0x5b0f5));function a181_0x28f9(){const _0x51fb1f=['sdk','\x1b[33m','12CKSHso','121989HkMwHn','stableVersion','1.2.0','739150PFqQvs','latest','361331iwqWCj','join','coerce','version','test','devDependencies','parse','readFileSync','minVersion','log','dependencies','@lovrabet/sdk','27xqtMkJ','packageName','72TuZZYN','1296HqKYQr','1756821MPZTVE','utf8','835542NnqYPM','↪\x20SDK\x20update\x20available','package.json','existsSync','node','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','needsUpgrade','6748510CDViyz','\x20\x20\x20Stable\x20version:\x20','utf-8'];a181_0x28f9=function(){return _0x51fb1f;};return a181_0x28f9();}import a181_0x2f3d07 from'node:fs';import a181_0x78263e from'node:path';import a181_0x4a0614 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x3ca056(0x140);function a181_0x5db1(_0x301ff7,_0x33d5ce){_0x301ff7=_0x301ff7-0x140;const _0x28f97b=a181_0x28f9();let _0x5db15a=_0x28f97b[_0x301ff7];return _0x5db15a;}function isNonNumericVersion(_0x362961){const _0x4bebcc=a181_0x3ca056,_0x3c4c90=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3c4c90['some'](_0x131581=>_0x131581[_0x4bebcc(0x147)](_0x362961));}function getInstalledVersion(_0xe475bc,_0xc75e53){const _0x39f400=a181_0x3ca056;try{const _0x39b874=a181_0x78263e[_0x39f400(0x144)](_0xe475bc,'node_modules',_0xc75e53,_0x39f400(0x157));if(a181_0x2f3d07[_0x39f400(0x158)](_0x39b874)){const _0x2bcf86=JSON[_0x39f400(0x149)](a181_0x2f3d07[_0x39f400(0x14a)](_0x39b874,_0x39f400(0x15f)));return _0x2bcf86[_0x39f400(0x146)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x526ecc=a181_0x3ca056;try{const _0x4f7a1c=await getCdnConfig();return _0x4f7a1c?.[_0x526ecc(0x160)]?.[_0x526ecc(0x159)]?.[_0x526ecc(0x164)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5c7e66=a181_0x3ca056;try{const _0x26bb17=await getCdnConfig();return _0x26bb17?.[_0x5c7e66(0x160)]?.['node']?.[_0x5c7e66(0x150)]||_0x5c7e66(0x14e);}catch{return _0x5c7e66(0x14e);}}export async function checkSdkVersion(_0x456bf2){const _0x160d08=a181_0x3ca056,_0x222e3d=a181_0x78263e[_0x160d08(0x144)](_0x456bf2,'package.json'),[_0x4969f5,_0x4e9417]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x456b6a=_0x4969f5||FALLBACK_MIN_SDK_VERSION;if(!a181_0x2f3d07[_0x160d08(0x158)](_0x222e3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};try{const _0x30bac2=JSON[_0x160d08(0x149)](a181_0x2f3d07[_0x160d08(0x14a)](_0x222e3d,_0x160d08(0x154))),_0x5d9030=_0x30bac2[_0x160d08(0x14d)]||{},_0xd9fe7c=_0x30bac2[_0x160d08(0x148)]||{},_0x59005a=_0x5d9030[_0x4e9417]||_0xd9fe7c[_0x4e9417];if(!_0x59005a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};let _0x4269d5=getInstalledVersion(_0x456bf2,_0x4e9417);!_0x4269d5&&(_0x4269d5=_0x59005a);if(isNonNumericVersion(_0x59005a))return{'installed':!![],'version':_0x4269d5,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};const _0x4034f1=a181_0x4a0614[_0x160d08(0x145)](_0x4269d5),_0x2402b4=a181_0x4a0614[_0x160d08(0x145)](_0x456b6a),_0x34d177=_0x4034f1&&_0x2402b4?a181_0x4a0614['lt'](_0x4034f1,_0x2402b4):![];return{'installed':!![],'version':_0x4269d5,'needsUpgrade':_0x34d177,'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}}export function checkSdkVersionSync(_0xcc93ab){const _0x4913ec=a181_0x3ca056,_0x3f8f9b=a181_0x78263e[_0x4913ec(0x144)](_0xcc93ab,'package.json'),_0x577741=_0x4913ec(0x14e);if(!a181_0x2f3d07[_0x4913ec(0x158)](_0x3f8f9b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};try{const _0x275389=JSON[_0x4913ec(0x149)](a181_0x2f3d07[_0x4913ec(0x14a)](_0x3f8f9b,'utf8')),_0x2f6745=_0x275389[_0x4913ec(0x14d)]||{},_0x43103a=_0x275389[_0x4913ec(0x148)]||{},_0x5d39ba=_0x2f6745[_0x577741]||_0x43103a[_0x577741];if(!_0x5d39ba)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};let _0x2e9623=getInstalledVersion(_0xcc93ab,_0x577741);!_0x2e9623&&(_0x2e9623=_0x5d39ba);if(isNonNumericVersion(_0x5d39ba))return{'installed':!![],'version':_0x2e9623,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};const _0x2d220=a181_0x4a0614['coerce'](_0x2e9623),_0x10052d=_0x2d220?a181_0x4a0614['lt'](_0x2d220,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2e9623,'needsUpgrade':_0x10052d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x246921){const _0x2e3bca=a181_0x3ca056;if(!_0x246921[_0x2e3bca(0x15c)])return;const _0x5aba98=_0x2e3bca(0x161),_0x15e2c4='\x1b[0m',_0x5420f4='\x1b[1m',_0x1aa4ce=_0x246921[_0x2e3bca(0x150)]||_0x2e3bca(0x14e),_0x4ebea=_0x246921[_0x2e3bca(0x164)]||_0x246921[_0x2e3bca(0x14b)],_0x484587=_0x2e3bca(0x15b)+_0x1aa4ce+'@'+(_0x4ebea||_0x2e3bca(0x142));console['log'](),console[_0x2e3bca(0x14c)](''+_0x5aba98+_0x5420f4+_0x2e3bca(0x156)+_0x15e2c4),console[_0x2e3bca(0x14c)](_0x5aba98+_0x2e3bca(0x15a)+_0x1aa4ce+'@'+_0x246921[_0x2e3bca(0x146)]+_0x15e2c4),console['log'](_0x5aba98+_0x2e3bca(0x15e)+_0x4ebea+_0x15e2c4),console['log'](_0x5aba98+'\x20\x20\x20Upgrade\x20command:\x20'+_0x484587+_0x15e2c4),console[_0x2e3bca(0x14c)]();}
|