@lovrabet/rabetbase-cli 2.1.14-beta.0 → 2.1.14-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- 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/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -0
- package/lib/commands/dataset/field-update.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/dataset/rename.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/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/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 +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x3a6dc8=a170_0x26bb;(function(_0x44d989,_0x473efe){const _0x2a0470=a170_0x26bb,_0x4d2ae5=_0x44d989();while(!![]){try{const _0x2b8061=-parseInt(_0x2a0470(0x17c))/0x1+-parseInt(_0x2a0470(0x16e))/0x2+-parseInt(_0x2a0470(0x182))/0x3+parseInt(_0x2a0470(0x16c))/0x4*(parseInt(_0x2a0470(0x16b))/0x5)+parseInt(_0x2a0470(0x166))/0x6*(parseInt(_0x2a0470(0x17e))/0x7)+-parseInt(_0x2a0470(0x176))/0x8+-parseInt(_0x2a0470(0x162))/0x9*(-parseInt(_0x2a0470(0x171))/0xa);if(_0x2b8061===_0x473efe)break;else _0x4d2ae5['push'](_0x4d2ae5['shift']());}catch(_0x2eff6b){_0x4d2ae5['push'](_0x4d2ae5['shift']());}}}(a170_0x1b31,0x6f352));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';function a170_0x1b31(){const _0x491c2d=['appCode','defaultApp','filter','⚠\x20\x20High-risk\x20operation:\x20','isNonInteractive','19395BqBmdI','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','12egVuJz','defaultPageSize','explicitAppName','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apps','308745rtJFEb','4QMagOg','appcode','1329764BWITbW','verbose','selectedAppName','6490rjlomx','Set\x20appcode\x20via\x20`','currentApp','defaultVerbose','map','2929752KCXFsF','format','cookie','resolveApiDomain','pageSize','command','582174TXqwJx','resolveCookie','2674679tMvHTH','resolveAppCode','High-risk\x20operation\x20`','apiDir','467271pyYMST'];a170_0x1b31=function(){return _0x491c2d;};return a170_0x1b31();}import{isNonInteractive as a170_0x6e70a7}from'../utils/is-non-interactive.js';function a170_0x26bb(_0x65ee63,_0x110fd5){_0x65ee63=_0x65ee63-0x161;const _0x1b3154=a170_0x1b31();let _0x26bbaf=_0x1b3154[_0x65ee63];return _0x26bbaf;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3fc6fe,_0x1e81d5,_0xb458f5=[]){const _0x57280e=a170_0x26bb;return{'rawFlags':_0x1e81d5,'args':_0xb458f5,'resolveAppCode':()=>_0x3fc6fe['appCode']||_0x1e81d5[_0x57280e(0x16d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3fc6fe[_0x57280e(0x178)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0x6e70a7(_0x1e81d5),'defaultFormat':_0x3fc6fe[_0x57280e(0x177)],'defaultPageSize':_0x3fc6fe[_0x57280e(0x17a)],'defaultVerbose':_0x3fc6fe[_0x57280e(0x16f)],'apiDir':_0x3fc6fe[_0x57280e(0x181)],'riskLevel':_0x3fc6fe['riskLevel'],'selectedAppName':_0x3fc6fe[_0x57280e(0x168)],'mergedCli':{'defaultApp':_0x3fc6fe[_0x57280e(0x184)],'currentApp':_0x3fc6fe[_0x57280e(0x173)],'appCode':_0x3fc6fe[_0x57280e(0x183)],'apps':_0x3fc6fe[_0x57280e(0x16a)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x3a6dc8(0x185)](_0x10ef55=>PIPELINE_FLAG_NAMES['has'](_0x10ef55['name']))[a170_0x3a6dc8(0x175)](({name:_0x286775,type:_0x50de29,description:_0x260dbe})=>({'name':_0x286775,'type':_0x50de29,'description':_0x260dbe})),'formatOutput':formatOutput,'getCommandLabel'(_0x85966f){const _0x2edb6d=a170_0x3a6dc8;return CLI_BIN_NAME+'\x20'+_0x85966f['service']+'\x20'+_0x85966f[_0x2edb6d(0x17b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5b71d4){return CliErrors['validation'](_0x5b71d4);}},async 'prepare'(_0x12b34c,_0x19ae8c,_0x27f9fd,_0x1bd9c0){const _0x35bed4=a170_0x3a6dc8,_0x1bf8d4=_0x19ae8c[_0x35bed4(0x181)]||DEFAULT_API_DIR;resolveAliasToCode(_0x12b34c,_0x27f9fd,_0x1bf8d4,_0x1bd9c0);let _0x251aa4='';if(_0x12b34c['requiresAuth']!==![]){_0x251aa4=_0x19ae8c[_0x35bed4(0x17d)]();if(!_0x251aa4)throw CliErrors['authRequired']();const {setActiveCookie:_0x28eb07}=await import(_0x35bed4(0x164));_0x28eb07(_0x251aa4);}const _0x2f854d=_0x19ae8c[_0x35bed4(0x17f)]()??'';if(_0x12b34c['requiresAppCode']!==![]){if(!_0x2f854d)throw CliErrors['configMissing'](_0x35bed4(0x172)+CLI_BIN_NAME+_0x35bed4(0x169));}return{'defaults':{'booleans':{'verbose':_0x19ae8c[_0x35bed4(0x174)]},'numbers':{'pagesize':_0x19ae8c[_0x35bed4(0x167)]}},'extras':{'appCode':_0x2f854d,'cookie':_0x251aa4,'apiDomain':_0x19ae8c[_0x35bed4(0x179)](),'apiDir':_0x1bf8d4,'selectedAppName':_0x19ae8c[_0x35bed4(0x170)],'mergedCli':_0x19ae8c['mergedCli']}};},async 'confirmHighRisk'({env:_0x2d1036,commandLabel:_0x298966}){const _0x6b9972=a170_0x3a6dc8;if(_0x2d1036[_0x6b9972(0x161)])throw CliErrors['validation'](_0x6b9972(0x180)+_0x298966+_0x6b9972(0x165));await requireConfirmationPrompt({'lines':[_0x6b9972(0x186)+_0x298966,_0x6b9972(0x163)],'createCancelledError':_0x110435=>CliErrors['cancelled'](_0x110435)});},async 'finalize'(){const _0x2a1306=a170_0x3a6dc8,{clearActiveCookie:_0x558b1a}=await import(_0x2a1306(0x164));_0x558b1a();}};export async function runCommand(_0x52e6ca,_0x4e1d13){await runCommandWithAdapter(_0x52e6ca,_0x4e1d13,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x339026,_0x41e3cf){const _0x352462=a171_0x3108,_0x1ff8de=_0x339026();while(!![]){try{const _0x44de51=-parseInt(_0x352462(0x84))/0x1+-parseInt(_0x352462(0x7f))/0x2*(parseInt(_0x352462(0x81))/0x3)+parseInt(_0x352462(0x7d))/0x4+-parseInt(_0x352462(0x7c))/0x5+-parseInt(_0x352462(0x83))/0x6*(-parseInt(_0x352462(0x7b))/0x7)+parseInt(_0x352462(0x7e))/0x8*(parseInt(_0x352462(0x82))/0x9)+parseInt(_0x352462(0x80))/0xa;if(_0x44de51===_0x41e3cf)break;else _0x1ff8de['push'](_0x1ff8de['shift']());}catch(_0x5d0db3){_0x1ff8de['push'](_0x1ff8de['shift']());}}}(a171_0x55de,0xf33ee));import{buildSchemaPayload as a171_0x50a237}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a171_0x3108(_0x1b404f,_0x1a27b3){_0x1b404f=_0x1b404f-0x7b;const _0x55def6=a171_0x55de();let _0x3108a7=_0x55def6[_0x1b404f];return _0x3108a7;}function a171_0x55de(){const _0x18f990=['162dTAJxv','949818OyUOSr','184793FEjiSd','3390335NoarJZ','1070648oNFIjT','760RCrggC','17318MAoXAh','17645940fenaMo','75JhGYOe','9063MNMvaG'];a171_0x55de=function(){return _0x18f990;};return a171_0x55de();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x83ffee,findDefinition:_0x264602}=await import('../commands/registry.js');return a171_0x50a237({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x83ffee,'buildAllFlags':buildAllFlags,'findDefinition':_0x264602});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a6a19,_0x3ba7ea){var _0x624033=a172_0x520a,_0x840e1a=_0x2a6a19();while(!![]){try{var _0x5cddb5=parseInt(_0x624033(0x15d))/0x1*(-parseInt(_0x624033(0x160))/0x2)+-parseInt(_0x624033(0x15e))/0x3+parseInt(_0x624033(0x166))/0x4*(-parseInt(_0x624033(0x162))/0x5)+parseInt(_0x624033(0x15f))/0x6+-parseInt(_0x624033(0x161))/0x7+parseInt(_0x624033(0x163))/0x8+parseInt(_0x624033(0x164))/0x9*(parseInt(_0x624033(0x165))/0xa);if(_0x5cddb5===_0x3ba7ea)break;else _0x840e1a['push'](_0x840e1a['shift']());}catch(_0x1c061a){_0x840e1a['push'](_0x840e1a['shift']());}}}(a172_0x287f,0x79d6c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a172_0x520a(_0x545ed6,_0x5be7db){_0x545ed6=_0x545ed6-0x15d;var _0x287fa4=a172_0x287f();var _0x520a9f=_0x287fa4[_0x545ed6];return _0x520a9f;}function a172_0x287f(){var _0x446778=['4zkBxwS','1tHkLNI','2214414ZlUBpe','2286000MNXbLf','521034oYDZGh','339255wuuqSx','3995965VFkYqG','608624GWkeTB','27HwvMyi','6294290iySYBA'];a172_0x287f=function(){return _0x446778;};return a172_0x287f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x1ecc03=a173_0x58c1;(function(_0x5bcdec,_0xa77f94){const _0x4aa34d=a173_0x58c1,_0x537bb1=_0x5bcdec();while(!![]){try{const _0x4917e4=-parseInt(_0x4aa34d(0xa5))/0x1+parseInt(_0x4aa34d(0x9b))/0x2*(parseInt(_0x4aa34d(0x9c))/0x3)+-parseInt(_0x4aa34d(0xa0))/0x4+parseInt(_0x4aa34d(0xa1))/0x5*(-parseInt(_0x4aa34d(0xa4))/0x6)+-parseInt(_0x4aa34d(0x9f))/0x7*(-parseInt(_0x4aa34d(0xa3))/0x8)+parseInt(_0x4aa34d(0x9d))/0x9+parseInt(_0x4aa34d(0xa8))/0xa*(-parseInt(_0x4aa34d(0xa7))/0xb);if(_0x4917e4===_0xa77f94)break;else _0x537bb1['push'](_0x537bb1['shift']());}catch(_0x3bf957){_0x537bb1['push'](_0x537bb1['shift']());}}}(a173_0x2311,0x6f34c));export const VERSION=a173_0x1ecc03(0xa2);function a173_0x58c1(_0x1450d0,_0x4c3414){_0x1450d0=_0x1450d0-0x9a;const _0x231119=a173_0x2311();let _0x58c102=_0x231119[_0x1450d0];return _0x58c102;}function a173_0x2311(){const _0x20ef2b=['v2.1.14-beta.1','880NRhVKV','106670ktzpbI','85d42d4','79696BzTqkH','24hrGEBi','7793523RCLVLF','2026-06-06T16:15:06.098Z','742FEzVzb','1189256gyXwBQ','425cAXrqS','2.1.14-beta.2','45512jUeGin','7896CdGprx','69731NrJzco'];a173_0x2311=function(){return _0x20ef2b;};return a173_0x2311();}export const GIT_TAG=a173_0x1ecc03(0xa6);export const GIT_COMMIT=a173_0x1ecc03(0x9a);export const BUILD_TIME=a173_0x1ecc03(0x9e);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a174_0xc3a2(_0x4c4bd5,_0x2b0334){_0x4c4bd5=_0x4c4bd5-0x15f;var _0x41a8a1=a174_0x41a8();var _0xc3a252=_0x41a8a1[_0x4c4bd5];return _0xc3a252;}(function(_0x20ae33,_0x2a2800){var _0x3d9d51=a174_0xc3a2,_0x246bfb=_0x20ae33();while(!![]){try{var _0x2da7cd=-parseInt(_0x3d9d51(0x160))/0x1*(-parseInt(_0x3d9d51(0x16a))/0x2)+-parseInt(_0x3d9d51(0x162))/0x3*(parseInt(_0x3d9d51(0x168))/0x4)+-parseInt(_0x3d9d51(0x167))/0x5*(parseInt(_0x3d9d51(0x163))/0x6)+parseInt(_0x3d9d51(0x165))/0x7*(parseInt(_0x3d9d51(0x16e))/0x8)+parseInt(_0x3d9d51(0x169))/0x9*(-parseInt(_0x3d9d51(0x161))/0xa)+-parseInt(_0x3d9d51(0x170))/0xb*(parseInt(_0x3d9d51(0x171))/0xc)+parseInt(_0x3d9d51(0x16f))/0xd;if(_0x2da7cd===_0x2a2800)break;else _0x246bfb['push'](_0x246bfb['shift']());}catch(_0x1ea7e4){_0x246bfb['push'](_0x246bfb['shift']());}}}(a174_0x41a8,0x42598));import a174_0x2502fa from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x567490=a174_0xc3a2;console[_0x567490(0x15f)](),console['log'](a174_0x2502fa[_0x567490(0x16d)][_0x567490(0x166)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x567490(0x15f)](),console['log'](_0x567490(0x16c)+a174_0x2502fa[_0x567490(0x16d)][_0x567490(0x166)](CLI_BIN_NAME+_0x567490(0x16b))+_0x567490(0x164)),console[_0x567490(0x15f)]();}function a174_0x41a8(){var _0x2cc0bb=['26010kyWjDl','\x20--help','\x20\x20Use\x20','green','39584XfypmU','7118891EVdzcH','165rXuYYk','71460JWZSht','log','31mtOfoz','20lDVaaT','15ZBmmYO','151782hpqPOF','\x20to\x20view\x20available\x20commands.','497zBHWIm','bold','60JKYLaf','88348ebOFeh','2371401HwMLrT'];a174_0x41a8=function(){return _0x2cc0bb;};return a174_0x41a8();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x257f04,_0x2789a3){const _0x21cfde=a175_0xe6b5,_0x561465=_0x257f04();while(!![]){try{const _0xfe0abc=-parseInt(_0x21cfde(0x14b))/0x1+-parseInt(_0x21cfde(0x141))/0x2+parseInt(_0x21cfde(0x155))/0x3+parseInt(_0x21cfde(0x150))/0x4*(parseInt(_0x21cfde(0x158))/0x5)+parseInt(_0x21cfde(0x15a))/0x6+parseInt(_0x21cfde(0x159))/0x7*(-parseInt(_0x21cfde(0x14f))/0x8)+-parseInt(_0x21cfde(0x13d))/0x9*(-parseInt(_0x21cfde(0x146))/0xa);if(_0xfe0abc===_0x2789a3)break;else _0x561465['push'](_0x561465['shift']());}catch(_0x4b2b06){_0x561465['push'](_0x561465['shift']());}}}(a175_0x35af,0x6b652));function a175_0x35af(){const _0x3a8175=['(empty)','1172176dRdbva','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Equivalent\x20command:\x20','error','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','90RTewEg','--help','setLogPath','entries','argv','163027jRnIKR','help','Error:\x20Unsupported\x20command:\x20','cwd','440Gvfdrs','555404rSivrh','enable-bff-save','replace','不支持的命令:\x20','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','1901223mEgLUh','includes','length','15QdiWMV','71211hTrKWp','666774LUMnQk','-$1','toLowerCase','\x20skill\x20--help\x0a\x20\x20','slice','dangerously-bff-save','from','push','startsWith','skill','587097soofSj','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a'];a175_0x35af=function(){return _0x3a8175;};return a175_0x35af();}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(_0x272d41){const _0x377c1f=a175_0xe6b5,_0x15c122=[];for(const [_0x38847b,_0x5b599e]of Object[_0x377c1f(0x149)](_0x272d41)){if(_0x5b599e===!![]){const _0x2d3d51=_0x38847b[_0x377c1f(0x152)](/([A-Z])/g,_0x377c1f(0x15b))[_0x377c1f(0x15c)]();_0x15c122[_0x377c1f(0x13a)](_0x2d3d51);}}return _0x15c122;}export function parseDynamicFlags(){const _0x29b18e=a175_0xe6b5,_0x5cfe4c=[];for(let _0x486a12=0x3;_0x486a12<process[_0x29b18e(0x14a)][_0x29b18e(0x157)];_0x486a12++){const _0x5d2d6a=process[_0x29b18e(0x14a)][_0x486a12];if(_0x5d2d6a&&_0x5d2d6a[_0x29b18e(0x13b)]('--')){const _0x2a282a=_0x5d2d6a[_0x29b18e(0x137)](0x2);_0x2a282a&&!_0x2a282a[_0x29b18e(0x156)]('=')&&_0x5cfe4c[_0x29b18e(0x13a)](_0x2a282a);}}return _0x5cfe4c;}export function getAllProvidedFlags(_0x3152af){const _0x52c22e=a175_0xe6b5,_0x2966f2=camelCaseFlagsToKebab(_0x3152af),_0x39cf24=parseDynamicFlags(),_0xc1d9fa=new Set([..._0x2966f2,..._0x39cf24]);return Array[_0x52c22e(0x139)](_0xc1d9fa);}export function normalizeLegacyBffSaveFlags(_0x1451fd){const _0x2c5423=a175_0xe6b5,_0x3a5cd0=new Set(_0x1451fd);return _0x3a5cd0['has'](_0x2c5423(0x138))&&_0x3a5cd0['add'](_0x2c5423(0x151)),Array[_0x2c5423(0x139)](_0x3a5cd0);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a175_0xe6b5(_0x59ea89,_0x4a2749){_0x59ea89=_0x59ea89-0x137;const _0x35af5a=a175_0x35af();let _0xe6b53=_0x35af5a[_0x59ea89];return _0xe6b53;}export async function skillsCommand(_0x485844,_0x23ba6e,_0x62bc29){const _0x28a265=a175_0xe6b5;logger[_0x28a265(0x148)](process[_0x28a265(0x14e)]());if(_0x62bc29?.[_0x28a265(0x14c)]||_0x485844===_0x28a265(0x147)){showHelp();return;}console[_0x28a265(0x144)](_0x28a265(0x14d)+(_0x485844||_0x28a265(0x140))),console[_0x28a265(0x13e)]('\x0aAvailable\x20commands:'),console[_0x28a265(0x13e)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x28a265(0x13e)]('\x20\x20'+CLI_BIN_NAME+_0x28a265(0x154)),console[_0x28a265(0x13e)](''),console['log'](_0x28a265(0x143)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x28a265(0x144)](_0x28a265(0x13c),_0x28a265(0x153)+_0x485844),process['exit'](0x1);}function showHelp(){const _0x5c207f=a175_0xe6b5;console[_0x5c207f(0x13e)](_0x5c207f(0x145)+CLI_BIN_NAME+_0x5c207f(0x15d)+CLI_BIN_NAME+_0x5c207f(0x142)+SKILLS_INSTALL_COMMAND_LINE+_0x5c207f(0x13f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a176_0x514365=a176_0x3c24;(function(_0x44fc9c,_0x41801f){const _0x281d3e=a176_0x3c24,_0xdaf2f=_0x44fc9c();while(!![]){try{const _0x5a9f0d=parseInt(_0x281d3e(0x1b2))/0x1+parseInt(_0x281d3e(0x1c1))/0x2*(-parseInt(_0x281d3e(0x1b4))/0x3)+-parseInt(_0x281d3e(0x1af))/0x4*(-parseInt(_0x281d3e(0x1be))/0x5)+-parseInt(_0x281d3e(0x1b5))/0x6+parseInt(_0x281d3e(0x1b3))/0x7*(-parseInt(_0x281d3e(0x1bc))/0x8)+-parseInt(_0x281d3e(0x1c2))/0x9+parseInt(_0x281d3e(0x1ac))/0xa;if(_0x5a9f0d===_0x41801f)break;else _0xdaf2f['push'](_0xdaf2f['shift']());}catch(_0x2856ff){_0xdaf2f['push'](_0xdaf2f['shift']());}}}(a176_0xfcc7,0x87b0a));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';function a176_0x3c24(_0x2f2f5d,_0xaddf57){_0x2f2f5d=_0x2f2f5d-0x1a9;const _0xfcc7f3=a176_0xfcc7();let _0x3c24f5=_0xfcc7f3[_0x2f2f5d];return _0x3c24f5;}export const NPX_SKILLS_CLI=a176_0x514365(0x1b0);function a176_0xfcc7(){const _0x1b578b=['stdout','pipe','join','lovrabet/lovrabet-skill','npx','skill','Lovrabet','stdio','18646540OPBhBq','exit\x20','log','2042444uOrdaH','skills','unknown','412645ePBxOR','98tPHsRL','24pudppG','906414Czbbge','stderr','toString','yes','push','inherit','add','134408tWpZKt','remove','5eSTnDE','trim','status','218474iKpRjq','8747505BceCsb','lovrabet/rabetbase'];a176_0xfcc7=function(){return _0x1b578b;};return a176_0xfcc7();}export const NPX_SKILLS_SUBCOMMAND_ADD=a176_0x514365(0x1bb);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a176_0x514365(0x1c3);export const LEGACY_RABETBASE_SKILL_SOURCE=a176_0x514365(0x1c7);export const DEFAULT_RABETBASE_SKILL_NAME=a176_0x514365(0x1aa);export function buildNpxSkillsAddArgv(_0x27ab4e){const _0x5a0c7d=a176_0x514365,_0x277577=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x27ab4e&&_0x277577[_0x5a0c7d(0x1b9)](NPX_SKILLS_FLAG_SKILL,_0x27ab4e),_0x277577;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a176_0x514365(0x1c8),...buildNpxSkillsAddArgv()][a176_0x514365(0x1c6)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a176_0x514365(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a176_0x514365(0x1c6)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2e4d7f,_0x48696d){const _0x4645bd=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa00e07=_0x48696d?.[_0x4645bd(0x1ab)]??_0x4645bd(0x1ba),_0x574334=resolveNpmBin(_0x4645bd(0x1c8)),_0x2c5ea4=buildNpxSkillsAddArgv(_0x48696d?.[_0x4645bd(0x1a9)]),_0x4b3e83=['npx',..._0x2c5ea4][_0x4645bd(0x1c6)]('\x20');console[_0x4645bd(0x1ae)]('*\x20'+_0x4b3e83);const _0xbcf467=spawnSync(_0x574334,_0x2c5ea4,{'cwd':_0x2e4d7f,'stdio':_0xa00e07,'env':process.env,'shell':![]}),_0x458d52=_0xbcf467[_0x4645bd(0x1c0)];if(_0x458d52===0x0)return{'ok':!![],'status':0x0};let _0x42ac23=_0x4645bd(0x1ad)+(_0x458d52??_0x4645bd(0x1b1));if(_0xa00e07===_0x4645bd(0x1c5)){const _0x5d2945=_0xbcf467['stderr']?_0xbcf467['stderr']['toString']()[_0x4645bd(0x1bf)]():'',_0x51e037=_0xbcf467[_0x4645bd(0x1c4)]?_0xbcf467[_0x4645bd(0x1c4)][_0x4645bd(0x1b7)]()['trim']():'';if(_0x5d2945)_0x42ac23=_0x5d2945;else{if(_0x51e037)_0x42ac23=_0x51e037;}}return{'ok':![],'status':_0x458d52??null,'error':_0x42ac23};}export function runNpxSkillsRemove(_0x3a3e6b,_0x1f03bf,_0x25bdcf=LEGACY_RABETBASE_SKILL_SOURCE){const _0x505004=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x472f63=_0x1f03bf?.[_0x505004(0x1ab)]??_0x505004(0x1ba),_0x1a65ec=resolveNpmBin('npx'),_0x3855eb=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x505004(0x1bd),_0x25bdcf,NPX_SKILLS_FLAG_SKILL,_0x1f03bf?.[_0x505004(0x1a9)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1f03bf?.[_0x505004(0x1b8)]?['-y']:[]],_0x11ce62=[_0x1a65ec,..._0x3855eb][_0x505004(0x1c6)]('\x20');console['log']('*\x20'+_0x11ce62);const _0x3020b5=spawnSync(_0x1a65ec,_0x3855eb,{'cwd':_0x3a3e6b,'stdio':_0x472f63,'env':process.env,'shell':![]}),_0x46c5ee=_0x3020b5[_0x505004(0x1c0)];if(_0x46c5ee===0x0)return{'ok':!![],'status':0x0};let _0xaee8b8=_0x505004(0x1ad)+(_0x46c5ee??_0x505004(0x1b1));if(_0x472f63===_0x505004(0x1c5)){const _0x58dbc1=_0x3020b5[_0x505004(0x1b6)]?_0x3020b5[_0x505004(0x1b6)][_0x505004(0x1b7)]()[_0x505004(0x1bf)]():'',_0x3d2493=_0x3020b5[_0x505004(0x1c4)]?_0x3020b5['stdout']['toString']()[_0x505004(0x1bf)]():'';if(_0x58dbc1)_0xaee8b8=_0x58dbc1;else{if(_0x3d2493)_0xaee8b8=_0x3d2493;}}return{'ok':![],'status':_0x46c5ee??null,'error':_0xaee8b8};}export function runNpxSkillsAddGlobal(_0x34e4ae,_0x40c754,_0x2d9514){const _0x50a641=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a6dc1=_0x2d9514?.[_0x50a641(0x1ab)]??_0x50a641(0x1ba),_0x100ed0=resolveNpmBin(_0x50a641(0x1c8)),_0x2a2e52=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40c754,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2bccdf=[_0x50a641(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40c754,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x50a641(0x1ae)]('*\x20'+_0x2bccdf);const _0xe539cd=spawnSync(_0x100ed0,_0x2a2e52,{'cwd':_0x34e4ae,'stdio':_0x4a6dc1,'env':process.env,'shell':![]}),_0x69840=_0xe539cd['status'];if(_0x69840===0x0)return{'ok':!![],'status':0x0};let _0x39ad4e=_0x50a641(0x1ad)+(_0x69840??_0x50a641(0x1b1));if(_0x4a6dc1==='pipe'){const _0x65875e=_0xe539cd['stderr']?_0xe539cd[_0x50a641(0x1b6)]['toString']()[_0x50a641(0x1bf)]():'',_0x2269f3=_0xe539cd['stdout']?_0xe539cd[_0x50a641(0x1c4)][_0x50a641(0x1b7)]()[_0x50a641(0x1bf)]():'';if(_0x65875e)_0x39ad4e=_0x65875e;else{if(_0x2269f3)_0x39ad4e=_0x2269f3;}}return{'ok':![],'status':_0x69840??null,'error':_0x39ad4e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a15b9,_0x5f1bed){const _0x57bb7b=a177_0x1f76,_0x45edb2=_0x1a15b9();while(!![]){try{const _0x120aeb=parseInt(_0x57bb7b(0x9a))/0x1+-parseInt(_0x57bb7b(0x9d))/0x2*(parseInt(_0x57bb7b(0x9c))/0x3)+-parseInt(_0x57bb7b(0x9e))/0x4+-parseInt(_0x57bb7b(0x96))/0x5*(-parseInt(_0x57bb7b(0x9f))/0x6)+-parseInt(_0x57bb7b(0xa9))/0x7+parseInt(_0x57bb7b(0xa7))/0x8+parseInt(_0x57bb7b(0x98))/0x9*(parseInt(_0x57bb7b(0x99))/0xa);if(_0x120aeb===_0x5f1bed)break;else _0x45edb2['push'](_0x45edb2['shift']());}catch(_0x56e050){_0x45edb2['push'](_0x45edb2['shift']());}}}(a177_0x3ce6,0xe5dc2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a177_0x3ce6(){const _0x51fc71=['25vfIddX','entries','9xxEJaR','21426680rsRGTR','1226441DMreGq','rabetbase.command','443199aXdhkK','10PdxdFM','5120352jrcUFb','113454pSanEk','flags','command','some','test','error','[REDACTED]','stringify','10442552KOgpnS','durationMs','12660998XrsdMk','message','service'];a177_0x3ce6=function(){return _0x51fc71;};return a177_0x3ce6();}function a177_0x1f76(_0x4401be,_0x382efe){_0x4401be=_0x4401be-0x96;const _0x3ce6f2=a177_0x3ce6();let _0x1f76e1=_0x3ce6f2[_0x4401be];return _0x1f76e1;}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(_0x52d508){const _0x495731=a177_0x1f76;return SENSITIVE_PATTERNS[_0x495731(0xa2)](_0x3418db=>_0x3418db[_0x495731(0xa3)](_0x52d508));}function sanitizeFlags(_0xffcdf8){const _0x1dfcbc=a177_0x1f76,_0x483b82={};for(const [_0x397661,_0x4aae13]of Object[_0x1dfcbc(0x97)](_0xffcdf8)){isSensitiveKey(_0x397661)?_0x483b82[_0x397661]=_0x4aae13!=null&&_0x4aae13!==''?_0x1dfcbc(0xa5):_0x4aae13:_0x483b82[_0x397661]=_0x4aae13;}return _0x483b82;}export async function reportCommandTrace(_0x3033b9){const _0x3392fb=a177_0x1f76;try{const _0x269288=sanitizeFlags(_0x3033b9[_0x3392fb(0xa0)]);await sendCliTraceLog({'spanName':_0x3392fb(0x9b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3033b9[_0x3392fb(0xab)],'command.name':_0x3033b9[_0x3392fb(0xa1)],'command.flags':JSON[_0x3392fb(0xa6)](_0x269288),..._0x3033b9['durationMs']!=null?{'command.duration_ms':_0x3033b9[_0x3392fb(0xa8)]}:{},..._0x3033b9[_0x3392fb(0xa4)]?{'command.error':_0x3033b9[_0x3392fb(0xa4)]instanceof Error?_0x3033b9[_0x3392fb(0xa4)][_0x3392fb(0xaa)]:String(_0x3033b9[_0x3392fb(0xa4)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x76e22,_0x5443a5){var _0x409c25=a178_0x3ea7,_0x2def41=_0x76e22();while(!![]){try{var _0x4005fb=parseInt(_0x409c25(0x7f))/0x1+parseInt(_0x409c25(0x76))/0x2+-parseInt(_0x409c25(0x7e))/0x3+parseInt(_0x409c25(0x7d))/0x4+parseInt(_0x409c25(0x78))/0x5+-parseInt(_0x409c25(0x7a))/0x6+-parseInt(_0x409c25(0x77))/0x7;if(_0x4005fb===_0x5443a5)break;else _0x2def41['push'](_0x2def41['shift']());}catch(_0x5a3da1){_0x2def41['push'](_0x2def41['shift']());}}}(a178_0xda7b,0x6407a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1e77d9,_0x5ec507){var _0x77e820=a178_0x3ea7;try{await sendCliTraceLog({'spanName':_0x77e820(0x7c),'logData':{'rabetbase.help.kind':_0x1e77d9,..._0x5ec507?.[_0x77e820(0x7b)]&&{'rabetbase.help.service':_0x5ec507[_0x77e820(0x7b)]}}});}catch(_0x37d859){console[_0x77e820(0x79)](_0x77e820(0x80),_0x37d859);}}function a178_0x3ea7(_0x21ae39,_0x282bd8){_0x21ae39=_0x21ae39-0x76;var _0xda7b1d=a178_0xda7b();var _0x3ea765=_0xda7b1d[_0x21ae39];return _0x3ea765;}function a178_0xda7b(){var _0x2cbaee=['error','267726RksNvW','service','cli.help','2712840JndiNm','1388826lzMUsr','569791RfrCBg','Failed\x20to\x20report\x20CLI\x20help\x20trace:','428782yVIOcM','4112682zolauf','212095xMsdiv'];a178_0xda7b=function(){return _0x2cbaee;};return a178_0xda7b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ae222,_0x2c2231){const _0x4c394b=a179_0xbe0f,_0x1c2a4f=_0x5ae222();while(!![]){try{const _0x467b56=parseInt(_0x4c394b(0x19b))/0x1+parseInt(_0x4c394b(0x1a6))/0x2*(-parseInt(_0x4c394b(0x1a5))/0x3)+-parseInt(_0x4c394b(0x19c))/0x4*(-parseInt(_0x4c394b(0x197))/0x5)+parseInt(_0x4c394b(0x19e))/0x6+-parseInt(_0x4c394b(0x19d))/0x7*(-parseInt(_0x4c394b(0x19f))/0x8)+parseInt(_0x4c394b(0x1a3))/0x9*(parseInt(_0x4c394b(0x199))/0xa)+-parseInt(_0x4c394b(0x1a4))/0xb;if(_0x467b56===_0x2c2231)break;else _0x1c2a4f['push'](_0x1c2a4f['shift']());}catch(_0x43fb26){_0x1c2a4f['push'](_0x1c2a4f['shift']());}}}(a179_0x5c75,0x8e1e3));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a179_0xbe0f(_0x17148b,_0x2c65bd){_0x17148b=_0x17148b-0x197;const _0x5c7595=a179_0x5c75();let _0xbe0fe0=_0x5c7595[_0x17148b];return _0xbe0fe0;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a179_0x5c75(){const _0x5bb75b=['2362428tIUkSh','445664MsYZAg','tenant_code','production','username','7525719mLPWmQ','16825611dWXDCC','316704zdAzDT','20iAPDtg','243495pDPKGc','unknown','10QTDUHp','nickname','795635oMdbeD','16skRaDv','119ldygMZ'];a179_0x5c75=function(){return _0x5bb75b;};return a179_0x5c75();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x327d2a=a179_0xbe0f,_0x437ba2=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x216c46=_0x437ba2?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x327d2a(0x198)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x327d2a(0x1a1))}),setUserContext({'id':_0x216c46?.['id'],'username':_0x216c46?.[_0x327d2a(0x1a2)],'nickname':_0x216c46?.[_0x327d2a(0x19a)],'email':_0x216c46?.['email'],'tenantCode':_0x216c46?.['tenant'][_0x327d2a(0x1a0)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x437ba2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a180_0x5296(_0x3c56d1,_0x54c9d5){_0x3c56d1=_0x3c56d1-0x68;const _0x4413b8=a180_0x4413();let _0x5296b2=_0x4413b8[_0x3c56d1];return _0x5296b2;}(function(_0x2a7243,_0xbbce6b){const _0x747389=a180_0x5296,_0x3ad81e=_0x2a7243();while(!![]){try{const _0x1deea5=parseInt(_0x747389(0x76))/0x1*(-parseInt(_0x747389(0x72))/0x2)+-parseInt(_0x747389(0x6a))/0x3*(parseInt(_0x747389(0x68))/0x4)+-parseInt(_0x747389(0x71))/0x5*(-parseInt(_0x747389(0x69))/0x6)+parseInt(_0x747389(0x6f))/0x7*(parseInt(_0x747389(0x79))/0x8)+-parseInt(_0x747389(0x75))/0x9*(parseInt(_0x747389(0x78))/0xa)+-parseInt(_0x747389(0x6c))/0xb*(-parseInt(_0x747389(0x74))/0xc)+parseInt(_0x747389(0x6d))/0xd;if(_0x1deea5===_0xbbce6b)break;else _0x3ad81e['push'](_0x3ad81e['shift']());}catch(_0x30c00f){_0x3ad81e['push'](_0x3ad81e['shift']());}}}(a180_0x4413,0x6a822));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1079cf=a180_0x5296;process[_0x1079cf(0x6e)](_0x1079cf(0x77),()=>{void flushOtelNodeIfUsed();});const _0x1e9c34=()=>{const _0x46c06b=_0x1079cf;void flushOtelNodeIfUsed()[_0x46c06b(0x6b)](()=>process[_0x46c06b(0x73)](0x0));};process[_0x1079cf(0x6e)](_0x1079cf(0x70),_0x1e9c34),process[_0x1079cf(0x6e)]('SIGTERM',_0x1e9c34);}function a180_0x4413(){const _0x27b870=['3354702WbCWVt','once','679iPcTtY','SIGINT','2270pOqKgk','2WzTvLi','exit','12MVjhWY','657rTxJwo','812191FLJrFh','beforeExit','37850ekwkzS','48728mWCiBL','212MtAfyh','4488ubKthB','17838gSycUM','then','7165609nbwzIy'];a180_0x4413=function(){return _0x27b870;};return a180_0x4413();}export async function exitWithOtelShutdown(_0x163cdd){await flushOtelNodeIfUsed(),process['exit'](_0x163cdd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a181_0x326b6f=a181_0x172d;function a181_0x172d(_0xfa1f7d,_0x33404a){_0xfa1f7d=_0xfa1f7d-0x155;const _0x32f4c9=a181_0x32f4();let _0x172de0=_0x32f4c9[_0xfa1f7d];return _0x172de0;}(function(_0xb7319b,_0x182ea5){const _0xd4cd36=a181_0x172d,_0x2c495b=_0xb7319b();while(!![]){try{const _0x3b6ef4=parseInt(_0xd4cd36(0x166))/0x1*(parseInt(_0xd4cd36(0x162))/0x2)+-parseInt(_0xd4cd36(0x158))/0x3+-parseInt(_0xd4cd36(0x15a))/0x4*(parseInt(_0xd4cd36(0x15f))/0x5)+parseInt(_0xd4cd36(0x163))/0x6+-parseInt(_0xd4cd36(0x15e))/0x7*(-parseInt(_0xd4cd36(0x164))/0x8)+parseInt(_0xd4cd36(0x157))/0x9*(parseInt(_0xd4cd36(0x15b))/0xa)+-parseInt(_0xd4cd36(0x161))/0xb;if(_0x3b6ef4===_0x182ea5)break;else _0x2c495b['push'](_0x2c495b['shift']());}catch(_0x53f243){_0x2c495b['push'](_0x2c495b['shift']());}}}(a181_0x32f4,0xea719));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a181_0x326b6f(0x159);function a181_0x32f4(){const _0x446e53=['rabetbase-cli','68joIWXS','4310CwdWPX','spanName','version','7uRYSbS','342965GzfdLf','traceparent','14363723kFlcxv','2uvhQMh','4303188DhtewS','3535352xFnKvZ','traceName','1723198xwWdYX','logData','manual','37449rRlNqp','3730653moITbo'];a181_0x32f4=function(){return _0x446e53;};return a181_0x32f4();}export async function sendCliTraceLog(_0x513e6f){const _0x5af01d=a181_0x326b6f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x513e6f[_0x5af01d(0x165)]??DEFAULT_TRACE_NAME,'version':_0x513e6f[_0x5af01d(0x15d)]??getCliVersion(),'spanName':_0x513e6f[_0x5af01d(0x15c)],'eventType':_0x5af01d(0x156),'logData':_0x513e6f[_0x5af01d(0x155)],..._0x513e6f[_0x5af01d(0x160)]&&{'traceparent':_0x513e6f[_0x5af01d(0x160)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a182_0x249542=a182_0x14e1;(function(_0x59ed0b,_0x41ba97){const _0x247998=a182_0x14e1,_0x375273=_0x59ed0b();while(!![]){try{const _0x395ce9=-parseInt(_0x247998(0xff))/0x1*(parseInt(_0x247998(0xfc))/0x2)+parseInt(_0x247998(0xfa))/0x3*(parseInt(_0x247998(0x100))/0x4)+-parseInt(_0x247998(0x10a))/0x5*(-parseInt(_0x247998(0xfb))/0x6)+parseInt(_0x247998(0x10c))/0x7*(-parseInt(_0x247998(0x105))/0x8)+-parseInt(_0x247998(0x107))/0x9*(-parseInt(_0x247998(0x104))/0xa)+-parseInt(_0x247998(0x102))/0xb+-parseInt(_0x247998(0x103))/0xc*(-parseInt(_0x247998(0x101))/0xd);if(_0x395ce9===_0x41ba97)break;else _0x375273['push'](_0x375273['shift']());}catch(_0x12d5c1){_0x375273['push'](_0x375273['shift']());}}}(a182_0x553c,0x9f55b));function a182_0x14e1(_0x4d944f,_0x5a7ea4){_0x4d944f=_0x4d944f-0xfa;const _0x553c29=a182_0x553c();let _0x14e1dc=_0x553c29[_0x4d944f];return _0x14e1dc;}function a182_0x553c(){const _0x4f43a6=['2092769XKCTDh','title','originalBytes','3ptzBnK','7698FbnEif','10DyYDSG','sanitize','description','41297NouZGQ','2513832OJYyrA','39pZFeHY','7886615wQXkSq','1729080SchwgR','60nAvkRY','32KhzoSo','issue.log.collect','1783566KHpOOm','join','platform-issue-log-collect','2035azDiLh','truncated'];a182_0x553c=function(){return _0x4f43a6;};return a182_0x553c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a182_0x249542(0x109);export const PLATFORM_ISSUE_SPAN_NAME=a182_0x249542(0x106);export async function sendPlatformIssueCollectLog(_0x4710ff){const _0x3bf9b7=a182_0x249542;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4710ff[_0x3bf9b7(0x10d)],'issue.description':_0x4710ff[_0x3bf9b7(0xfe)],..._0x4710ff[_0x3bf9b7(0xfd)]?{'issue.description_original_bytes':_0x4710ff[_0x3bf9b7(0xfd)][_0x3bf9b7(0x10e)],'issue.description_truncated':_0x4710ff['sanitize'][_0x3bf9b7(0x10b)],'issue.description_redactions':_0x4710ff[_0x3bf9b7(0xfd)]['redactionCount'],'issue.description_redaction_kinds':_0x4710ff[_0x3bf9b7(0xfd)]['redactionKinds'][_0x3bf9b7(0x108)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a184_0x24c1(){const _0x10cf4a=['windsurf','.opencode','.codex','claude','.qoder','OpenCode','.cline/skills/lovrabet/SKILL.md','opencode','.opencode/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','CodeBuddy','.cline','Cline\x20IDE','antigravity','SKILL.md.tpl','26285800VCpMkb','1559912uTWwXv','.trae','.cursor/skills/rabetbase.md','Windsurf','cline','9spaDuC','Windsurf\x20IDE','通用模板\x20-\x20兜底方案','qoder','cursor','742180YRHHeJ','OpenCode\x20IDE','.agent','.codebuddy/skills/lovrabet/SKILL.md','Antigravity','CodeBuddy\x20IDE','.windsurf','.qoder/skills/lovrabet/SKILL.md','trae','codex','Cursor','Antigravity\x20IDE','Trae\x20IDE','file','.windsurf/workflows/rabetbase.md','.trae/skills/lovrabet/SKILL.md','1595503tyDBxP','Codex','Cursor\x20IDE','Claude\x20Code','32mJOLHV','.agent/skills/lovrabet/SKILL.md','2145636zUkEtx','codebuddy','1IPLfHP','3234507pRyBSy','.claude/skills/lovrabet/SKILL.md','Codex\x20IDE','642895uPBfKN','.claude','agent','.codex/skills/lovrabet/SKILL.md'];a184_0x24c1=function(){return _0x10cf4a;};return a184_0x24c1();}const a184_0x10c7f1=a184_0x12b1;(function(_0xfc60b9,_0x57bc00){const _0x576a12=a184_0x12b1,_0x318f3f=_0xfc60b9();while(!![]){try{const _0x925b37=-parseInt(_0x576a12(0x212))/0x1*(-parseInt(_0x576a12(0x1fa))/0x2)+-parseInt(_0x576a12(0x1d9))/0x3+-parseInt(_0x576a12(0x20e))/0x4*(parseInt(_0x576a12(0x1dc))/0x5)+-parseInt(_0x576a12(0x210))/0x6+parseInt(_0x576a12(0x20a))/0x7+parseInt(_0x576a12(0x1f0))/0x8*(-parseInt(_0x576a12(0x1f5))/0x9)+parseInt(_0x576a12(0x1ef))/0xa;if(_0x925b37===_0x57bc00)break;else _0x318f3f['push'](_0x318f3f['shift']());}catch(_0x438a67){_0x318f3f['push'](_0x318f3f['shift']());}}}(a184_0x24c1,0x8ab8b));export const CORE_IDE_CONFIGS={'cursor':{'name':a184_0x10c7f1(0x204),'description':a184_0x10c7f1(0x20c),'folders':['.cursorrules','.cursor'],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1f2),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a184_0x10c7f1(0x1f3),'description':a184_0x10c7f1(0x1f6),'folders':[a184_0x10c7f1(0x200)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x208),'template':'SKILL.md.tpl'}]},'claude':{'name':a184_0x10c7f1(0x20d),'description':a184_0x10c7f1(0x20d),'folders':[a184_0x10c7f1(0x1dd)],'files':[{'type':'file','path':a184_0x10c7f1(0x1da),'template':a184_0x10c7f1(0x1ee)}]},'cline':{'name':'Cline','description':a184_0x10c7f1(0x1ec),'folders':[a184_0x10c7f1(0x1eb)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1e6),'template':a184_0x10c7f1(0x1ee)}]},'codex':{'name':a184_0x10c7f1(0x20b),'description':a184_0x10c7f1(0x1db),'folders':[a184_0x10c7f1(0x1e2)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1df),'template':a184_0x10c7f1(0x1ee)}]},'opencode':{'name':a184_0x10c7f1(0x1e5),'description':a184_0x10c7f1(0x1fb),'folders':[a184_0x10c7f1(0x1e1)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1e8),'template':a184_0x10c7f1(0x1ee)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a184_0x10c7f1(0x1e4)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1e9),'template':'SKILL.md.tpl'},{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x201),'template':a184_0x10c7f1(0x1ee)}]},'codebuddy':{'name':a184_0x10c7f1(0x1ea),'description':a184_0x10c7f1(0x1ff),'folders':['.codebuddy'],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x1fd),'template':a184_0x10c7f1(0x1ee)}]},'trae':{'name':'Trae','description':a184_0x10c7f1(0x206),'folders':[a184_0x10c7f1(0x1f1)],'files':[{'type':'file','path':a184_0x10c7f1(0x209),'template':a184_0x10c7f1(0x1ee)}]}};function a184_0x12b1(_0x1fa01e,_0x29cda7){_0x1fa01e=_0x1fa01e-0x1d9;const _0x24c169=a184_0x24c1();let _0x12b148=_0x24c169[_0x1fa01e];return _0x12b148;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a184_0x10c7f1(0x1f7),'folders':[a184_0x10c7f1(0x1fc)],'files':[{'type':a184_0x10c7f1(0x207),'path':a184_0x10c7f1(0x20f),'template':a184_0x10c7f1(0x1ee)}]},'antigravity':{'name':a184_0x10c7f1(0x1fe),'description':a184_0x10c7f1(0x205),'folders':[a184_0x10c7f1(0x1fc)],'files':[{'type':'file','path':a184_0x10c7f1(0x20f),'template':a184_0x10c7f1(0x1ee)}]}};export const CORE_IDE_LIST=[a184_0x10c7f1(0x1e3),a184_0x10c7f1(0x1f4),a184_0x10c7f1(0x211),a184_0x10c7f1(0x203),a184_0x10c7f1(0x1f9),'opencode',a184_0x10c7f1(0x1f8),a184_0x10c7f1(0x202),a184_0x10c7f1(0x1e0)];export const IDE_LIST=[a184_0x10c7f1(0x1ed),a184_0x10c7f1(0x1e3),'cline',a184_0x10c7f1(0x211),'codex','cursor',a184_0x10c7f1(0x1e7),a184_0x10c7f1(0x1f8),a184_0x10c7f1(0x202),a184_0x10c7f1(0x1e0),a184_0x10c7f1(0x1de)];export const ALL_CORE_IDES=[a184_0x10c7f1(0x1f9),a184_0x10c7f1(0x1e0),a184_0x10c7f1(0x1e3),'cline',a184_0x10c7f1(0x203),a184_0x10c7f1(0x1e7),'qoder',a184_0x10c7f1(0x211),a184_0x10c7f1(0x202)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc9948b,_0x332b6d){const _0x3f03d0=a185_0x4e57,_0x301b2d=_0xc9948b();while(!![]){try{const _0x48a2f6=-parseInt(_0x3f03d0(0x11c))/0x1+-parseInt(_0x3f03d0(0x119))/0x2*(-parseInt(_0x3f03d0(0x11a))/0x3)+parseInt(_0x3f03d0(0x11d))/0x4*(-parseInt(_0x3f03d0(0x11f))/0x5)+parseInt(_0x3f03d0(0x118))/0x6+parseInt(_0x3f03d0(0x11e))/0x7*(parseInt(_0x3f03d0(0x122))/0x8)+parseInt(_0x3f03d0(0x123))/0x9*(parseInt(_0x3f03d0(0x11b))/0xa)+-parseInt(_0x3f03d0(0x120))/0xb*(parseInt(_0x3f03d0(0x121))/0xc);if(_0x48a2f6===_0x332b6d)break;else _0x301b2d['push'](_0x301b2d['shift']());}catch(_0x5996c5){_0x301b2d['push'](_0x301b2d['shift']());}}}(a185_0x1847,0xc9438));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a185_0x4e57(_0x3e1f41,_0x4ab22d){_0x3e1f41=_0x3e1f41-0x118;const _0x18473c=a185_0x1847();let _0x4e5714=_0x18473c[_0x3e1f41];return _0x4e5714;}function a185_0x1847(){const _0x23f25d=['14TxRFro','496827VLNkaM','4993090FwvQVP','593342KhQXBJ','648UMRvII','4100803DxqVyP','7950xWQihm','28490143ojYPPK','12qYvWbS','16sxSGLC','18OvJIle','5614632mpcqAI'];a185_0x1847=function(){return _0x23f25d;};return a185_0x1847();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a186_0x28c9(_0x3e6a99,_0x350460){_0x3e6a99=_0x3e6a99-0x1b7;const _0xea5d0b=a186_0xea5d();let _0x28c95c=_0xea5d0b[_0x3e6a99];return _0x28c95c;}(function(_0x3c2429,_0x59cbea){const _0x305faa=a186_0x28c9,_0x2b2ad1=_0x3c2429();while(!![]){try{const _0x1d0676=-parseInt(_0x305faa(0x1bd))/0x1*(-parseInt(_0x305faa(0x1c0))/0x2)+parseInt(_0x305faa(0x1bc))/0x3*(-parseInt(_0x305faa(0x1ba))/0x4)+parseInt(_0x305faa(0x1c4))/0x5+parseInt(_0x305faa(0x1be))/0x6+parseInt(_0x305faa(0x1c5))/0x7*(-parseInt(_0x305faa(0x1ca))/0x8)+parseInt(_0x305faa(0x1c2))/0x9*(parseInt(_0x305faa(0x1b7))/0xa)+-parseInt(_0x305faa(0x1c6))/0xb*(-parseInt(_0x305faa(0x1c8))/0xc);if(_0x1d0676===_0x59cbea)break;else _0x2b2ad1['push'](_0x2b2ad1['shift']());}catch(_0x3d07cf){_0x2b2ad1['push'](_0x2b2ad1['shift']());}}}(a186_0xea5d,0x4c49b));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x41749f=a186_0x28c9,_0x502032=getTemplateBaseUrl(),_0x166187=[_0x502032+_0x41749f(0x1c3),_0x502032+_0x41749f(0x1bf)];for(const _0x5982d2 of _0x166187){try{const _0x3f645d=await fetch(_0x5982d2,{'headers':{'Accept':_0x41749f(0x1c9)}});if(!_0x3f645d['ok'])continue;const _0x2b73ed=await _0x3f645d[_0x41749f(0x1bb)]();if(!_0x2b73ed[_0x41749f(0x1c1)]?.['stableVersion']||!_0x2b73ed[_0x41749f(0x1b9)]?.['node']?.[_0x41749f(0x1c7)])continue;return _0x2b73ed;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3f1465=a186_0x28c9,_0x5b300d=Date[_0x3f1465(0x1b8)]();if(hasCachedConfig){const _0x1a2dc2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5b300d-cacheTime<_0x1a2dc2)return cachedConfig;}const _0xc5a18d=await fetchCdnConfig();return cachedConfig=_0xc5a18d,cacheTime=_0x5b300d,hasCachedConfig=!![],_0xc5a18d;}function a186_0xea5d(){const _0x52bfd7=['1423EEWXRB','838338hUGVjL','/config/index.json','34LzcrsM','cli','1198557adEtVp','/config.json','1612290DrJHbu','693qlxOFl','1738YXAdyj','stableVersion','40632GWBrGt','application/json','33448hoWefd','20rfJZGQ','now','sdk','576Gmymeu','json','11694fisDgm'];a186_0xea5d=function(){return _0x52bfd7;};return a186_0xea5d();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x433c85=a187_0x3735;(function(_0x4f35d7,_0x1e5d76){const _0x19f67b=a187_0x3735,_0x333690=_0x4f35d7();while(!![]){try{const _0xacd428=parseInt(_0x19f67b(0x93))/0x1*(parseInt(_0x19f67b(0x96))/0x2)+parseInt(_0x19f67b(0x9e))/0x3+-parseInt(_0x19f67b(0x8f))/0x4*(parseInt(_0x19f67b(0x84))/0x5)+parseInt(_0x19f67b(0xa6))/0x6+parseInt(_0x19f67b(0xa1))/0x7*(-parseInt(_0x19f67b(0xa5))/0x8)+-parseInt(_0x19f67b(0x92))/0x9*(-parseInt(_0x19f67b(0x90))/0xa)+-parseInt(_0x19f67b(0x94))/0xb;if(_0xacd428===_0x1e5d76)break;else _0x333690['push'](_0x333690['shift']());}catch(_0x5abec2){_0x333690['push'](_0x333690['shift']());}}}(a187_0xd4b4,0xcef71));import a187_0x2a1dce from'node:fs';import a187_0x57bb6a from'node:path';function a187_0xd4b4(){const _0x119812=['join','dependencies','node','4888nZjccu','9156438qjcDbw','utf-8','some','\x20\x20\x20Current\x20version:\x20','test','5qpBAbI','all','devDependencies','↪\x20SDK\x20update\x20available','package.json','readFileSync','1.2.0','utf8','stableVersion','coerce','log','1928172SuYWMx','535070fWRUVu','parse','171gyAtVU','1046814cpMIfp','19522437aWEiBK','existsSync','2HWmkPB','packageName','@lovrabet/sdk','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','version','npm\x20install\x20','needsUpgrade','434880RAnNlk','sdk','node_modules','7217rSxYyF'];a187_0xd4b4=function(){return _0x119812;};return a187_0xd4b4();}import a187_0xcf807f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a187_0x433c85(0x8a);function isNonNumericVersion(_0x22d741){const _0x578d3b=a187_0x433c85,_0x129dcf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x129dcf[_0x578d3b(0xa8)](_0x4d52c8=>_0x4d52c8[_0x578d3b(0x83)](_0x22d741));}function a187_0x3735(_0x31314a,_0x5a1170){_0x31314a=_0x31314a-0x83;const _0xd4b435=a187_0xd4b4();let _0x373507=_0xd4b435[_0x31314a];return _0x373507;}function getInstalledVersion(_0x2e93bb,_0x5bd462){const _0x53d669=a187_0x433c85;try{const _0x3ae561=a187_0x57bb6a[_0x53d669(0xa2)](_0x2e93bb,_0x53d669(0xa0),_0x5bd462,_0x53d669(0x88));if(a187_0x2a1dce[_0x53d669(0x95)](_0x3ae561)){const _0x401def=JSON['parse'](a187_0x2a1dce['readFileSync'](_0x3ae561,_0x53d669(0xa7)));return _0x401def[_0x53d669(0x9b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4f78fb=a187_0x433c85;try{const _0x23f369=await getCdnConfig();return _0x23f369?.[_0x4f78fb(0x9f)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x24df24=a187_0x433c85;try{const _0x3c524c=await getCdnConfig();return _0x3c524c?.[_0x24df24(0x9f)]?.[_0x24df24(0xa4)]?.[_0x24df24(0x97)]||_0x24df24(0x98);}catch{return _0x24df24(0x98);}}export async function checkSdkVersion(_0x1310b2){const _0x539e3d=a187_0x433c85,_0xb83e70=a187_0x57bb6a['join'](_0x1310b2,'package.json'),[_0x25ed52,_0x2d455b]=await Promise[_0x539e3d(0x85)]([getSdkStableVersion(),getSdkPackageName()]),_0x4b307c=_0x25ed52||FALLBACK_MIN_SDK_VERSION;if(!a187_0x2a1dce[_0x539e3d(0x95)](_0xb83e70))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b307c,'packageName':_0x2d455b,'stableVersion':_0x25ed52};try{const _0x21e4aa=JSON[_0x539e3d(0x91)](a187_0x2a1dce[_0x539e3d(0x89)](_0xb83e70,_0x539e3d(0x8b))),_0x427f0a=_0x21e4aa[_0x539e3d(0xa3)]||{},_0xe5ab5b=_0x21e4aa[_0x539e3d(0x86)]||{},_0xcc7e93=_0x427f0a[_0x2d455b]||_0xe5ab5b[_0x2d455b];if(!_0xcc7e93)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b307c,'packageName':_0x2d455b,'stableVersion':_0x25ed52};let _0x3d57ef=getInstalledVersion(_0x1310b2,_0x2d455b);!_0x3d57ef&&(_0x3d57ef=_0xcc7e93);if(isNonNumericVersion(_0xcc7e93))return{'installed':!![],'version':_0x3d57ef,'needsUpgrade':![],'minVersion':_0x4b307c,'packageName':_0x2d455b,'stableVersion':_0x25ed52};const _0x185ae6=a187_0xcf807f['coerce'](_0x3d57ef),_0x2c98fe=a187_0xcf807f[_0x539e3d(0x8d)](_0x4b307c),_0x582e30=_0x185ae6&&_0x2c98fe?a187_0xcf807f['lt'](_0x185ae6,_0x2c98fe):![];return{'installed':!![],'version':_0x3d57ef,'needsUpgrade':_0x582e30,'minVersion':_0x4b307c,'packageName':_0x2d455b,'stableVersion':_0x25ed52};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4b307c,'packageName':_0x2d455b,'stableVersion':_0x25ed52};}}export function checkSdkVersionSync(_0x4a93ff){const _0x490e6f=a187_0x433c85,_0x3ca80c=a187_0x57bb6a[_0x490e6f(0xa2)](_0x4a93ff,_0x490e6f(0x88)),_0x37dca2=_0x490e6f(0x98);if(!a187_0x2a1dce[_0x490e6f(0x95)](_0x3ca80c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37dca2,'stableVersion':null};try{const _0x16c39b=JSON[_0x490e6f(0x91)](a187_0x2a1dce[_0x490e6f(0x89)](_0x3ca80c,_0x490e6f(0x8b))),_0x10923c=_0x16c39b[_0x490e6f(0xa3)]||{},_0x5d172=_0x16c39b[_0x490e6f(0x86)]||{},_0xd40dde=_0x10923c[_0x37dca2]||_0x5d172[_0x37dca2];if(!_0xd40dde)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37dca2,'stableVersion':null};let _0x5298b9=getInstalledVersion(_0x4a93ff,_0x37dca2);!_0x5298b9&&(_0x5298b9=_0xd40dde);if(isNonNumericVersion(_0xd40dde))return{'installed':!![],'version':_0x5298b9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37dca2,'stableVersion':null};const _0x52ac3d=a187_0xcf807f[_0x490e6f(0x8d)](_0x5298b9),_0x3927d7=_0x52ac3d?a187_0xcf807f['lt'](_0x52ac3d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5298b9,'needsUpgrade':_0x3927d7,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37dca2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37dca2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x445f01){const _0x4ef11c=a187_0x433c85;if(!_0x445f01[_0x4ef11c(0x9d)])return;const _0x3233e6='\x1b[33m',_0x3cebad='\x1b[0m',_0x320ba3=_0x4ef11c(0x99),_0x3117e6=_0x445f01[_0x4ef11c(0x97)]||_0x4ef11c(0x98),_0x454433=_0x445f01[_0x4ef11c(0x8c)]||_0x445f01['minVersion'],_0x407c95=_0x4ef11c(0x9c)+_0x3117e6+'@'+(_0x454433||'latest');console['log'](),console[_0x4ef11c(0x8e)](''+_0x3233e6+_0x320ba3+_0x4ef11c(0x87)+_0x3cebad),console['log'](_0x3233e6+_0x4ef11c(0xa9)+_0x3117e6+'@'+_0x445f01[_0x4ef11c(0x9b)]+_0x3cebad),console['log'](_0x3233e6+_0x4ef11c(0x9a)+_0x454433+_0x3cebad),console[_0x4ef11c(0x8e)](_0x3233e6+'\x20\x20\x20Upgrade\x20command:\x20'+_0x407c95+_0x3cebad),console[_0x4ef11c(0x8e)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x298f7f,_0x5f082d){const _0x4a0a16=a188_0x4205,_0x1c70d1=_0x298f7f();while(!![]){try{const _0x150c0b=parseInt(_0x4a0a16(0x1c8))/0x1+parseInt(_0x4a0a16(0x1b2))/0x2+-parseInt(_0x4a0a16(0x1ad))/0x3*(-parseInt(_0x4a0a16(0x1c3))/0x4)+-parseInt(_0x4a0a16(0x1cb))/0x5+-parseInt(_0x4a0a16(0x1ae))/0x6*(parseInt(_0x4a0a16(0x1c6))/0x7)+-parseInt(_0x4a0a16(0x1c7))/0x8*(-parseInt(_0x4a0a16(0x1aa))/0x9)+parseInt(_0x4a0a16(0x1b5))/0xa*(-parseInt(_0x4a0a16(0x1bd))/0xb);if(_0x150c0b===_0x5f082d)break;else _0x1c70d1['push'](_0x1c70d1['shift']());}catch(_0x51f572){_0x1c70d1['push'](_0x1c70d1['shift']());}}}(a188_0x37bf,0x3b299));function a188_0x37bf(){const _0xb3aad0=['\x1b[1m','parse','4875TdCziW','234312KIRbdV','currentVersion','\x20\x20\x20','\x1b[0m','830168Hyrxtq','\x20\x20\x20Upgrade\x20command:\x20','minimumVersion','10huyhbE','\x20\x20\x20Minimum\x20required:\x20','\x1b[31m','validation','latest','minimumVersionMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Minimum\x20required:\x20','2117467NHZEuS','filter','belowMinimum','coerce','\x1b[33m','npm\x20install\x20-g\x20','136MGPpoH','\x20\x20\x20Current\x20CLI\x20version:\x20','version','7ThzNKE','1424ASTkPi','242728zJAcdy','log','1.0.0','1501190hXJWXN','stableVersion','../..','upgradeMessage','package.json','utf-8','Upgrade\x20command:\x20','3087vcTLOp'];a188_0x37bf=function(){return _0xb3aad0;};return a188_0x37bf();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a188_0x46577c from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a188_0x4205(_0x3ce1cd,_0x58fe6d){_0x3ce1cd=_0x3ce1cd-0x1aa;const _0x37bf3e=a188_0x37bf();let _0x420598=_0x37bf3e[_0x3ce1cd];return _0x420598;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x48e874){const _0x42c627=a188_0x4205,_0x42b890=_0x48e874[_0x42c627(0x1cc)]||_0x42c627(0x1b9);return _0x42c627(0x1c2)+NPM_PACKAGE_NAME+'@'+_0x42b890;}function getCurrentCliVersion(){const _0x455f01=a188_0x4205;try{const _0x5a4372=fileURLToPath(import.meta.url),_0x436c31=resolve(dirname(_0x5a4372),_0x455f01(0x1cd)),_0x3e8116=resolve(_0x436c31,_0x455f01(0x1cf)),_0x200bb2=JSON[_0x455f01(0x1ac)](readFileSync(_0x3e8116,_0x455f01(0x1d0)));return _0x200bb2[_0x455f01(0x1c5)]||_0x455f01(0x1ca);}catch{return _0x455f01(0x1ca);}}export async function checkCliVersion(){const _0x484342=a188_0x4205,_0x38ef92=getCurrentCliVersion(),_0x355a1e=await getCliVersionPolicy(),_0x5609dc=_0x355a1e?.[_0x484342(0x1cc)]||null,_0x51408e=_0x355a1e?.[_0x484342(0x1b4)]||null;let _0x18bc46=![],_0x4fad47=![];const _0x4d2598=a188_0x46577c[_0x484342(0x1c0)](_0x38ef92);if(_0x4d2598&&_0x5609dc)try{const _0x415a38=a188_0x46577c[_0x484342(0x1c0)](_0x5609dc);if(_0x415a38)_0x18bc46=a188_0x46577c['lt'](_0x4d2598,_0x415a38);}catch{}if(_0x4d2598&&_0x51408e)try{const _0x3ad932=a188_0x46577c[_0x484342(0x1c0)](_0x51408e);if(_0x3ad932)_0x4fad47=a188_0x46577c['lt'](_0x4d2598,_0x3ad932);}catch{}return _0x4fad47&&(_0x18bc46=!![]),{'currentVersion':_0x38ef92,'stableVersion':_0x5609dc,'minimumVersion':_0x51408e,'needsUpgrade':_0x18bc46,'belowMinimum':_0x4fad47,'isPreRelease':![],'upgradeMessage':_0x355a1e?.[_0x484342(0x1ce)],'minimumVersionMessage':_0x355a1e?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x1a068a){const _0x1ad261=a188_0x4205;if(!_0x1a068a['needsUpgrade']&&!_0x1a068a[_0x1ad261(0x1bf)])return;const _0x581273=_0x1ad261(0x1b7),_0x4d9526=_0x1ad261(0x1c1),_0x1fcb82=_0x1ad261(0x1b1),_0x18e3ee=_0x1ad261(0x1ab),_0x41bb83=getCliUpgradeCommand(_0x1a068a);console[_0x1ad261(0x1c9)](),_0x1a068a[_0x1ad261(0x1bf)]?(console[_0x1ad261(0x1c9)](''+_0x581273+_0x18e3ee+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x1fcb82),console[_0x1ad261(0x1c9)](_0x581273+_0x1ad261(0x1c4)+_0x1a068a['currentVersion']+_0x1fcb82),_0x1a068a[_0x1ad261(0x1b4)]&&console[_0x1ad261(0x1c9)](_0x581273+_0x1ad261(0x1b6)+_0x1a068a[_0x1ad261(0x1b4)]+_0x1fcb82),_0x1a068a[_0x1ad261(0x1cc)]&&_0x1a068a['stableVersion']!==_0x1a068a[_0x1ad261(0x1b4)]&&console[_0x1ad261(0x1c9)](_0x581273+'\x20\x20\x20Recommended\x20stable:\x20'+_0x1a068a['stableVersion']+_0x1fcb82),_0x1a068a[_0x1ad261(0x1ba)]&&console[_0x1ad261(0x1c9)](_0x581273+_0x1ad261(0x1b0)+_0x1a068a[_0x1ad261(0x1ba)]+_0x1fcb82),console[_0x1ad261(0x1c9)](_0x581273+_0x1ad261(0x1b3)+_0x41bb83+_0x1fcb82)):(console[_0x1ad261(0x1c9)](''+_0x4d9526+_0x18e3ee+'↪\x20New\x20version\x20available'+_0x1fcb82),console[_0x1ad261(0x1c9)](_0x4d9526+_0x1ad261(0x1c4)+_0x1a068a[_0x1ad261(0x1af)]+_0x1fcb82),console[_0x1ad261(0x1c9)](_0x4d9526+'\x20\x20\x20Stable\x20version:\x20'+_0x1a068a[_0x1ad261(0x1cc)]+_0x1fcb82),_0x1a068a[_0x1ad261(0x1ce)]&&console[_0x1ad261(0x1c9)](_0x4d9526+_0x1ad261(0x1b0)+_0x1a068a[_0x1ad261(0x1ce)]+_0x1fcb82),console[_0x1ad261(0x1c9)](_0x4d9526+'\x20\x20\x20Upgrade\x20command:\x20'+_0x41bb83+_0x1fcb82)),console[_0x1ad261(0x1c9)]();}export function assertCliVersionSupported(_0x1de76f){const _0x4e5cd=a188_0x4205;if(!_0x1de76f[_0x4e5cd(0x1bf)])return;const _0x51b0eb=[_0x1de76f[_0x4e5cd(0x1ba)],'Current\x20version:\x20'+_0x1de76f['currentVersion'],_0x1de76f[_0x4e5cd(0x1b4)]?_0x4e5cd(0x1bc)+_0x1de76f[_0x4e5cd(0x1b4)]:null,_0x4e5cd(0x1d1)+getCliUpgradeCommand(_0x1de76f)][_0x4e5cd(0x1be)](Boolean)['join']('\x0a');throw CliErrors[_0x4e5cd(0x1b8)](_0x4e5cd(0x1bb),_0x51b0eb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x508eec,_0x565f0a){const _0x4faf38=a189_0x40f1,_0x10f56d=_0x508eec();while(!![]){try{const _0x47bbd9=parseInt(_0x4faf38(0xf8))/0x1*(-parseInt(_0x4faf38(0xf2))/0x2)+parseInt(_0x4faf38(0xfa))/0x3+parseInt(_0x4faf38(0xf1))/0x4*(-parseInt(_0x4faf38(0xfe))/0x5)+-parseInt(_0x4faf38(0xf3))/0x6+-parseInt(_0x4faf38(0xf4))/0x7*(parseInt(_0x4faf38(0xfc))/0x8)+-parseInt(_0x4faf38(0xf9))/0x9+parseInt(_0x4faf38(0xff))/0xa;if(_0x47bbd9===_0x565f0a)break;else _0x10f56d['push'](_0x10f56d['shift']());}catch(_0x2f50c9){_0x10f56d['push'](_0x10f56d['shift']());}}}(a189_0x2191,0x4d070));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x5eda78){const _0xac919e=a189_0x40f1;return typeof _0x5eda78==='string'&&_0x5eda78['trim']()[_0xac919e(0xf7)]>0x0?_0x5eda78[_0xac919e(0xfd)]():null;}function a189_0x40f1(_0x545aef,_0x24a6de){_0x545aef=_0x545aef-0xef;const _0x219191=a189_0x2191();let _0x40f1de=_0x219191[_0x545aef];return _0x40f1de;}function normalizeCliVersionPolicy(_0x5558c9){const _0x14359f=a189_0x40f1;if(!_0x5558c9||typeof _0x5558c9!==_0x14359f(0x101))return null;const _0x333846=_0x5558c9,_0x2b0989=_0x333846[_0x14359f(0xf5)]&&typeof _0x333846['cli']===_0x14359f(0x101)?_0x333846[_0x14359f(0xf5)]:_0x333846,_0x310e80=pickString(_0x2b0989[_0x14359f(0xf6)])||pickString(_0x2b0989['latestVersion'])||pickString(_0x2b0989[_0x14359f(0x100)]),_0x1220cb=pickString(_0x2b0989[_0x14359f(0x102)])||pickString(_0x2b0989['minVersion']);if(!_0x310e80&&!_0x1220cb)return null;return{'stableVersion':_0x310e80,'minimumVersion':_0x1220cb,'upgradeMessage':pickString(_0x2b0989['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2b0989[_0x14359f(0xef)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3c6c65=a189_0x40f1,_0x33925c=new AbortController(),_0x467cb0=setTimeout(()=>_0x33925c['abort'](),FETCH_TIMEOUT_MS);try{const _0x489a64=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3c6c65(0x103)},'signal':_0x33925c[_0x3c6c65(0xf0)]});if(!_0x489a64['ok'])return null;const _0x227389=await _0x489a64['json']();return normalizeCliVersionPolicy(_0x227389);}catch{return null;}finally{clearTimeout(_0x467cb0);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x1653f0=a189_0x40f1,_0x2dd52e=Date[_0x1653f0(0xfb)]();if(hasCachedPolicy){const _0x18bd00=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2dd52e-cacheTime<_0x18bd00)return cachedPolicy;}const _0xb362d8=await fetchCliVersionPolicy();return cachedPolicy=_0xb362d8,cacheTime=_0x2dd52e,hasCachedPolicy=!![],_0xb362d8;}function a189_0x2191(){const _0x1d305c=['recommendedVersion','object','minimumVersion','application/json','minimumVersionMessage','signal','20ddLQyL','920654TdxlUQ','813390yvZYhS','420tzHdVg','cli','stableVersion','length','1EtNNBJ','617643wEhvCz','1825083NnkExf','now','39040AqwOCX','trim','55585pBcIcv','7200470qnOcdL'];a189_0x2191=function(){return _0x1d305c;};return a189_0x2191();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x61e14b,_0x37a832){const _0x362dac=a190_0x3fbf,_0x4b0714=_0x61e14b();while(!![]){try{const _0x676cac=parseInt(_0x362dac(0x1b1))/0x1*(parseInt(_0x362dac(0x1b0))/0x2)+parseInt(_0x362dac(0x1b5))/0x3+parseInt(_0x362dac(0x1b3))/0x4+parseInt(_0x362dac(0x1b4))/0x5*(-parseInt(_0x362dac(0x1b2))/0x6)+parseInt(_0x362dac(0x1ae))/0x7*(-parseInt(_0x362dac(0x1ad))/0x8)+parseInt(_0x362dac(0x1b7))/0x9*(-parseInt(_0x362dac(0x1b6))/0xa)+parseInt(_0x362dac(0x1ba))/0xb*(parseInt(_0x362dac(0x1b8))/0xc);if(_0x676cac===_0x37a832)break;else _0x4b0714['push'](_0x4b0714['shift']());}catch(_0xe4d8df){_0x4b0714['push'](_0x4b0714['shift']());}}}(a190_0x519a,0x1fb25));function a190_0x3fbf(_0x4de4e4,_0x131945){_0x4de4e4=_0x4de4e4-0x1ad;const _0x519a29=a190_0x519a();let _0x3fbfda=_0x519a29[_0x4de4e4];return _0x3fbfda;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a190_0x18d9ba,getMultiAppConfigs as a190_0x4b2779,getTemplateBaseUrl as a190_0x35be28}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x38038c){const _0x38d4e8=a190_0x3fbf,_0x44650a=readRawConfig(_0x38038c);return _0x44650a[_0x38d4e8(0x1af)]&&typeof _0x44650a['env']===_0x38d4e8(0x1b9)&&initEnv(_0x44650a[_0x38d4e8(0x1af)]),_0x44650a;}function a190_0x519a(){const _0xa24fb3=['163070cTswFm','45mppWMG','1632372NZINMd','string','11XsXQzq','161448PqKesc','63JgVyYh','env','238KfcCul','1137tAoyLE','6jaJvyc','89432CGsSgX','432895YbILit','557640zNwqEs'];a190_0x519a=function(){return _0xa24fb3;};return a190_0x519a();}export function getConfigAppCode(){return a190_0x18d9ba();}export function getMultiAppConfigs(_0x1b8700='project'){return a190_0x4b2779(_0x1b8700);}export function getTemplateBaseUrl(){return a190_0x35be28();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15ec21,_0x4408b0){const _0x28fd74=a191_0x2a06,_0x36ab4c=_0x15ec21();while(!![]){try{const _0x409228=parseInt(_0x28fd74(0x1f8))/0x1+-parseInt(_0x28fd74(0x1fe))/0x2*(parseInt(_0x28fd74(0x200))/0x3)+parseInt(_0x28fd74(0x1f6))/0x4*(-parseInt(_0x28fd74(0x1ef))/0x5)+-parseInt(_0x28fd74(0x1fd))/0x6+parseInt(_0x28fd74(0x1f7))/0x7*(-parseInt(_0x28fd74(0x1f4))/0x8)+parseInt(_0x28fd74(0x1fa))/0x9*(-parseInt(_0x28fd74(0x1f9))/0xa)+parseInt(_0x28fd74(0x1fc))/0xb;if(_0x409228===_0x4408b0)break;else _0x36ab4c['push'](_0x36ab4c['shift']());}catch(_0x337de1){_0x36ab4c['push'](_0x36ab4c['shift']());}}}(a191_0x14fc,0x9c618));import a191_0x3ae471 from'node:path';function a191_0x2a06(_0x431432,_0x5bfc13){_0x431432=_0x431432-0x1ef;const _0x14fcf8=a191_0x14fc();let _0x2a0656=_0x14fcf8[_0x431432];return _0x2a0656;}import a191_0x496ff0 from'node:fs';export async function copyDirectory(_0x5cc564,_0x5d1a8a){const _0x224889=a191_0x2a06;try{const _0x38d81f=a191_0x496ff0[_0x224889(0x1fb)](_0x5cc564,{'withFileTypes':!![]});a191_0x496ff0['mkdirSync'](_0x5d1a8a,{'recursive':!![]});for(const _0x484957 of _0x38d81f){const _0x1b78e1=a191_0x3ae471['join'](_0x5cc564,_0x484957[_0x224889(0x1ff)]),_0x50dccb=a191_0x3ae471[_0x224889(0x1f0)](_0x5d1a8a,_0x484957[_0x224889(0x1ff)]);_0x484957[_0x224889(0x1f3)]()?await copyDirectory(_0x1b78e1,_0x50dccb):a191_0x496ff0[_0x224889(0x1f5)](_0x1b78e1,_0x50dccb);}}catch(_0x2b7576){console[_0x224889(0x1f1)](_0x224889(0x1f2),_0x2b7576);}}function a191_0x14fc(){const _0x1dcc78=['error','复制目录时出错:','isDirectory','6904vaBbLZ','copyFileSync','1585144RMXTzc','420FmEKPx','1119327UKXYty','4001870CNDkeQ','27JgNORY','readdirSync','41002082zyoGPV','5833110KAVzix','330bkSbAE','name','21621FZkTWj','10vrNGkO','join'];a191_0x14fc=function(){return _0x1dcc78;};return a191_0x14fc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a192_0x11b1(_0x662a81,_0x56163d){_0x662a81=_0x662a81-0xb7;const _0x23707a=a192_0x2370();let _0x11b146=_0x23707a[_0x662a81];return _0x11b146;}(function(_0x477127,_0x5daf70){const _0x5d96d0=a192_0x11b1,_0x136d14=_0x477127();while(!![]){try{const _0x50a367=parseInt(_0x5d96d0(0xc3))/0x1+-parseInt(_0x5d96d0(0xbd))/0x2+parseInt(_0x5d96d0(0xc4))/0x3*(-parseInt(_0x5d96d0(0xbb))/0x4)+parseInt(_0x5d96d0(0xc1))/0x5*(-parseInt(_0x5d96d0(0xbf))/0x6)+parseInt(_0x5d96d0(0xc2))/0x7+parseInt(_0x5d96d0(0xb8))/0x8+parseInt(_0x5d96d0(0xb9))/0x9;if(_0x50a367===_0x5daf70)break;else _0x136d14['push'](_0x136d14['shift']());}catch(_0x5be8ed){_0x136d14['push'](_0x136d14['shift']());}}}(a192_0x2370,0xa6a96));function toFiniteNumber(_0x1cc401){const _0xac9f0b=a192_0x11b1;if(typeof _0x1cc401===_0xac9f0b(0xbc)&&Number['isFinite'](_0x1cc401))return _0x1cc401;if(typeof _0x1cc401===_0xac9f0b(0xc0)){const _0xb1c7e7=_0x1cc401[_0xac9f0b(0xb7)]();if(!_0xb1c7e7)return undefined;const _0xcffd8c=Number(_0xb1c7e7);if(Number[_0xac9f0b(0xba)](_0xcffd8c))return _0xcffd8c;}return undefined;}export function normalizeEntityWithIdResponse(_0x1756dc){const _0x14fadb=a192_0x11b1,_0x2e5334=toFiniteNumber(_0x1756dc);if(_0x2e5334!==undefined)return{'id':_0x2e5334,'entity':{'id':_0x2e5334}};if(!_0x1756dc||typeof _0x1756dc!==_0x14fadb(0xbe))return{'id':undefined,'entity':{}};const _0x37be40={..._0x1756dc},_0x3a94e0=toFiniteNumber(_0x37be40['id']);return _0x3a94e0!==undefined&&(_0x37be40['id']=_0x3a94e0),{'id':_0x3a94e0,'entity':_0x37be40};}function a192_0x2370(){const _0xed6c87=['3557944YbszZB','762759FqaqQt','isFinite','60eVqMqB','number','1248402QKUnwf','object','8052GYgFIK','string','155rTCIxK','1881817JWKoBd','1034699OFDHxZ','96915azFBhV','trim'];a192_0x2370=function(){return _0xed6c87;};return a192_0x2370();}
|