@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-beta.1
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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -0
- 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/business-group-update.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 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.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/file/index.js +1 -0
- 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/list.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/relation-audit.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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.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/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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/update-notice.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/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0xc8ea36=a208_0x2df1;(function(_0x22c250,_0x1e5b8e){const _0x13feb8=a208_0x2df1,_0x295cbe=_0x22c250();while(!![]){try{const _0x48b915=-parseInt(_0x13feb8(0x173))/0x1*(-parseInt(_0x13feb8(0x153))/0x2)+-parseInt(_0x13feb8(0x185))/0x3*(-parseInt(_0x13feb8(0x17b))/0x4)+parseInt(_0x13feb8(0x154))/0x5+-parseInt(_0x13feb8(0x16b))/0x6*(-parseInt(_0x13feb8(0x15e))/0x7)+-parseInt(_0x13feb8(0x155))/0x8+parseInt(_0x13feb8(0x181))/0x9+parseInt(_0x13feb8(0x14d))/0xa*(-parseInt(_0x13feb8(0x180))/0xb);if(_0x48b915===_0x1e5b8e)break;else _0x295cbe['push'](_0x295cbe['shift']());}catch(_0x1bbb0b){_0x295cbe['push'](_0x295cbe['shift']());}}}(a208_0x2136,0x9c519));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a208_0x5f226c}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x14e9c0){const _0x41f3cd=a208_0x2df1;return typeof _0x14e9c0===_0x41f3cd(0x159)&&_0x14e9c0[_0x41f3cd(0x162)]()?_0x14e9c0[_0x41f3cd(0x162)]():undefined;}function resolveEnvAppCode(){const _0x27c046=a208_0x2df1,_0x47b32e=stringFlag(process.env.RABETBASE_APPCODE);if(_0x47b32e)return{'name':'RABETBASE_APPCODE','value':_0x47b32e};const _0x182707=stringFlag(process.env.LOVRABET_APPCODE);if(_0x182707)return{'name':_0x27c046(0x15a),'value':_0x182707};return undefined;}function hasExplicitAppCode(_0x271a11,_0x177b35){const _0x38bdd5=a208_0x2df1;return!!(stringFlag(_0x271a11[_0x38bdd5(0x168)])||stringFlag(_0x177b35['appcode']));}function assertEnvAppCodeNotIgnored(_0x225765,_0x1ddce8,_0x5118f2){const _0x5a1929=a208_0x2df1;if(!_0x1ddce8||_0x5118f2||_0x225765===_0x1ddce8[_0x5a1929(0x14f)])return;const _0x478c0e=_0x225765?_0x5a1929(0x150)+_0x225765+'\x22.':_0x5a1929(0x15f);throw CliErrors[_0x5a1929(0x17d)](_0x1ddce8[_0x5a1929(0x170)]+'='+_0x1ddce8[_0x5a1929(0x14f)]+_0x5a1929(0x172)+_0x478c0e+'\x20'+(_0x5a1929(0x14e)+_0x1ddce8[_0x5a1929(0x170)]+'\x22.'));}export function createPipelineEnv(_0x500bd9,_0x3ece53,_0x5ed9d0=[]){const _0x466db6=a208_0x2df1;return{'rawFlags':_0x3ece53,'args':_0x5ed9d0,'resolveAppCode':()=>_0x500bd9[_0x466db6(0x184)],'resolveCookie':()=>_0x500bd9[_0x466db6(0x160)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a208_0x5f226c(_0x3ece53),'defaultFormat':_0x500bd9[_0x466db6(0x174)],'defaultPageSize':_0x500bd9[_0x466db6(0x14c)],'defaultVerbose':_0x500bd9['verbose'],'apiDir':_0x500bd9[_0x466db6(0x17f)],'riskLevel':_0x500bd9['riskLevel'],'selectedAppName':_0x500bd9[_0x466db6(0x152)],'mergedCli':{'defaultApp':_0x500bd9['defaultApp'],'currentApp':_0x500bd9[_0x466db6(0x164)],'appCode':_0x500bd9[_0x466db6(0x184)],'apps':_0x500bd9['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a208_0xc8ea36(0x16f)](_0x52eb27=>PIPELINE_FLAG_NAMES['has'](_0x52eb27['name']))[a208_0xc8ea36(0x156)](({name:_0x3f6f20,type:_0x33bcbe,description:_0x368099})=>({'name':_0x3f6f20,'type':_0x33bcbe,'description':_0x368099})),'formatOutput':formatOutput,'getCommandLabel'(_0x48e2ca){const _0xb436a9=a208_0xc8ea36;return CLI_BIN_NAME+'\x20'+_0x48e2ca[_0xb436a9(0x169)]+'\x20'+_0x48e2ca[_0xb436a9(0x16a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2d74a1){return CliErrors['validation'](_0x2d74a1);}},async 'prepare'(_0x29e30a,_0xcb98be,_0x183318,_0x5a5b3a){const _0x33ea4b=a208_0xc8ea36,_0x4da277=_0xcb98be[_0x33ea4b(0x17f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x29e30a,_0x183318,_0x4da277,_0x5a5b3a);const _0xe53814=resolveCommandAuthMode(_0x29e30a);let _0x45089b='';if(_0xe53814!==_0x33ea4b(0x158)){_0x45089b=_0xcb98be['resolveCookie']()||'';if(!_0x45089b){if(_0xe53814===_0x33ea4b(0x166))throw CliErrors[_0x33ea4b(0x176)]();}else{const {setActiveCookie:_0x4cd927}=await import('../core/api-client.js');_0x4cd927(_0x45089b);}}const _0x397ec3=_0xcb98be[_0x33ea4b(0x171)]()??'';if(_0x29e30a[_0x33ea4b(0x15b)]!==![]){assertEnvAppCodeNotIgnored(_0x397ec3,resolveEnvAppCode(),hasExplicitAppCode(_0x183318,_0xcb98be[_0x33ea4b(0x161)]));if(!_0x397ec3)throw CliErrors[_0x33ea4b(0x167)](_0x33ea4b(0x16d)+CLI_BIN_NAME+_0x33ea4b(0x157));}return{'defaults':{'booleans':{'verbose':_0xcb98be['defaultVerbose']},'numbers':{'pagesize':_0xcb98be[_0x33ea4b(0x179)]}},'extras':{'appCode':_0x397ec3,'cookie':_0x45089b,'apiDomain':_0xcb98be[_0x33ea4b(0x17c)](),'apiDir':_0x4da277,'selectedAppName':_0xcb98be['selectedAppName'],'mergedCli':_0xcb98be[_0x33ea4b(0x165)]}};},async 'confirmHighRisk'({env:_0x1e303d,commandLabel:_0x5aafea}){const _0x42acac=a208_0xc8ea36;if(_0x1e303d[_0x42acac(0x17e)])throw CliErrors[_0x42acac(0x17d)](_0x42acac(0x182)+_0x5aafea+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x5aafea,_0x42acac(0x183)],'createCancelledError':_0x403dd1=>CliErrors[_0x42acac(0x151)](_0x403dd1)});},async 'finalize'(){const _0x1626ba=a208_0xc8ea36,{clearActiveCookie:_0x384493}=await import(_0x1626ba(0x16e));_0x384493();}};function a208_0x2136(){const _0x29c2c9=['catch','defaultPageSize','resolve','2233892hYmswT','resolveApiDomain','validation','isNonInteractive','apiDir','11tAotQh','10134135LYJKYX','High-risk\x20operation\x20`','\x20\x20\x20Continue?\x20[y/N]\x20','appCode','3wUzABi','hasFormat','pageSize','29509430yKwZMy','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','value','Current\x20resolved\x20appcode\x20is\x20\x22','cancelled','explicitAppName','18EGSLUy','4671720mXfvXV','3548112TgVKkR','map','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','none','string','LOVRABET_APPCODE','requiresAppCode','update','pretty','5241341ftHpQS','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','cookie','rawFlags','trim','schema','currentApp','mergedCli','required','configMissing','appcode','service','command','6SObDUq','doctor','Set\x20appcode\x20via\x20`','../core/api-client.js','filter','name','resolveAppCode','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','74127hLxley','format','object','authRequired','_notice'];a208_0x2136=function(){return _0x29c2c9;};return a208_0x2136();}export async function runCommand(_0x1da893,_0xfe203d){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1da893)?withUpdateNotice(_0x1da893):_0x1da893,_0xfe203d,runnerAdapter);}function shouldAttachUpdateNotice(_0x3472f1){const _0x2f7bf2=a208_0xc8ea36;if(_0x3472f1[_0x2f7bf2(0x14b)]===![])return![];return![_0x2f7bf2(0x15c),_0x2f7bf2(0x163),_0x2f7bf2(0x16c)]['includes'](_0x3472f1['service']);}function a208_0x2df1(_0x48066f,_0x3239e5){_0x48066f=_0x48066f-0x14b;const _0x213605=a208_0x2136();let _0x2df10b=_0x213605[_0x48066f];return _0x2df10b;}function withUpdateNotice(_0x5d08db){return{..._0x5d08db,async 'execute'(_0x57c502){const _0x174a44=a208_0x2df1,_0x3fb05a=shouldResolveUpdateNotice(_0x57c502)?resolveLatestUpdateNotice()[_0x174a44(0x178)](()=>null):Promise[_0x174a44(0x17a)](null),_0x12b46b=await _0x5d08db['execute'](_0x57c502);return attachUpdateNotice(_0x12b46b,await _0x3fb05a);}};}function shouldResolveUpdateNotice(_0x3b4934){const _0x551fc5=a208_0xc8ea36;return _0x3b4934[_0x551fc5(0x174)]===_0x551fc5(0x15d)&&!_0x3b4934['nonInteractive'];}function attachUpdateNotice(_0x565a96,_0x395b2c){const _0x3fa086=a208_0xc8ea36;if(!_0x395b2c||!_0x565a96||typeof _0x565a96!==_0x3fa086(0x175))return _0x565a96;const _0x5bfcff=_0x565a96,_0x3cafc6=typeof _0x5bfcff[_0x3fa086(0x177)]===_0x3fa086(0x175)&&_0x5bfcff[_0x3fa086(0x177)]!==null?_0x5bfcff[_0x3fa086(0x177)]:{};return{..._0x5bfcff,'_notice':{..._0x3cafc6,'update':_0x395b2c}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b4064,_0x443778){const _0xc7c0be=a209_0x5447,_0x20c6a6=_0x3b4064();while(!![]){try{const _0x47fe6b=parseInt(_0xc7c0be(0xed))/0x1*(parseInt(_0xc7c0be(0xf2))/0x2)+-parseInt(_0xc7c0be(0xee))/0x3*(parseInt(_0xc7c0be(0xf3))/0x4)+-parseInt(_0xc7c0be(0xec))/0x5*(-parseInt(_0xc7c0be(0xf7))/0x6)+parseInt(_0xc7c0be(0xf5))/0x7+parseInt(_0xc7c0be(0xf4))/0x8*(-parseInt(_0xc7c0be(0xf6))/0x9)+-parseInt(_0xc7c0be(0xef))/0xa+parseInt(_0xc7c0be(0xf8))/0xb*(parseInt(_0xc7c0be(0xf0))/0xc);if(_0x47fe6b===_0x443778)break;else _0x20c6a6['push'](_0x20c6a6['shift']());}catch(_0x4f7210){_0x20c6a6['push'](_0x20c6a6['shift']());}}}(a209_0x18b0,0xeea5a));import{buildSchemaPayload as a209_0x5a3ac6}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a209_0x5447(_0x164a77,_0x264ec9){_0x164a77=_0x164a77-0xec;const _0x18b0b9=a209_0x18b0();let _0x544739=_0x18b0b9[_0x164a77];return _0x544739;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x232fe4=a209_0x5447,{serviceRegistry:_0x1fb922,findDefinition:_0x527601}=await import(_0x232fe4(0xf1));return a209_0x5a3ac6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1fb922,'buildAllFlags':buildAllFlags,'findDefinition':_0x527601});}function a209_0x18b0(){const _0x29d083=['8vHDSyS','2871512bQcpxp','15826959RAGWII','43314eLoTBM','18223711yofQIV','1195xoEwLi','53ZOBxdq','6NkTKSE','14259780STusae','12YXZTDd','../commands/registry.js','14162ghZtBe','11048NYpVAv'];a209_0x18b0=function(){return _0x29d083;};return a209_0x18b0();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x514f4f,_0x246763){var _0x1b3f19=a210_0x4fb6,_0x5560eb=_0x514f4f();while(!![]){try{var _0x4a92c2=parseInt(_0x1b3f19(0x1db))/0x1*(-parseInt(_0x1b3f19(0x1cf))/0x2)+-parseInt(_0x1b3f19(0x1da))/0x3*(parseInt(_0x1b3f19(0x1d9))/0x4)+-parseInt(_0x1b3f19(0x1d3))/0x5*(parseInt(_0x1b3f19(0x1d6))/0x6)+-parseInt(_0x1b3f19(0x1d8))/0x7+parseInt(_0x1b3f19(0x1d1))/0x8*(-parseInt(_0x1b3f19(0x1d7))/0x9)+-parseInt(_0x1b3f19(0x1d0))/0xa*(-parseInt(_0x1b3f19(0x1d2))/0xb)+-parseInt(_0x1b3f19(0x1d4))/0xc*(-parseInt(_0x1b3f19(0x1d5))/0xd);if(_0x4a92c2===_0x246763)break;else _0x5560eb['push'](_0x5560eb['shift']());}catch(_0x4c8c29){_0x5560eb['push'](_0x5560eb['shift']());}}}(a210_0x2dd6,0x418a9));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a210_0x4fb6(_0x4cfb63,_0x2c0773){_0x4cfb63=_0x4cfb63-0x1cf;var _0x2dd6cd=a210_0x2dd6();var _0x4fb665=_0x2dd6cd[_0x4cfb63];return _0x4fb665;}function a210_0x2dd6(){var _0x4c32d1=['102bhmrwr','9eeEjyw','1631630VCjjlu','35468LuqTtY','57KIChfF','69101FzYZuZ','14SBnqXj','159450VtOyau','1077448YcmGrO','352CAqiIR','6145DOQddS','9588732dmgGzh','13keyDQl'];a210_0x2dd6=function(){return _0x4c32d1;};return a210_0x2dd6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a211_0x448cc1=a211_0x1e47;(function(_0x5ea1a0,_0x38d722){const _0xb4e7ba=a211_0x1e47,_0x2a969f=_0x5ea1a0();while(!![]){try{const _0x5b37f4=-parseInt(_0xb4e7ba(0xbf))/0x1*(-parseInt(_0xb4e7ba(0xb9))/0x2)+parseInt(_0xb4e7ba(0xbc))/0x3*(-parseInt(_0xb4e7ba(0xc1))/0x4)+parseInt(_0xb4e7ba(0xc4))/0x5*(-parseInt(_0xb4e7ba(0xba))/0x6)+-parseInt(_0xb4e7ba(0xc2))/0x7+-parseInt(_0xb4e7ba(0xbd))/0x8+parseInt(_0xb4e7ba(0xc3))/0x9+parseInt(_0xb4e7ba(0xbe))/0xa;if(_0x5b37f4===_0x38d722)break;else _0x2a969f['push'](_0x2a969f['shift']());}catch(_0x40f832){_0x2a969f['push'](_0x2a969f['shift']());}}}(a211_0x1dd7,0xb3e6d));function a211_0x1dd7(){const _0x4700dc=['6258GOeRIx','9531824UWhlwI','27298380SwBXwo','1gZNrwm','2.3.7-beta.1','2224DVCpQx','3906532bxPsYE','12609549INGNdH','5ZuqWgu','672906FYYcFZ','4926630fmRnHO','6aadacf'];a211_0x1dd7=function(){return _0x4700dc;};return a211_0x1dd7();}function a211_0x1e47(_0x2b8827,_0x2da15d){_0x2b8827=_0x2b8827-0xb9;const _0x1dd746=a211_0x1dd7();let _0x1e4712=_0x1dd746[_0x2b8827];return _0x1e4712;}export const VERSION=a211_0x448cc1(0xc0);export const GIT_TAG='v2.3.7-beta.1';export const GIT_COMMIT=a211_0x448cc1(0xbb);export const BUILD_TIME='2026-07-17T08:37:08.470Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3cf4c5,_0x3aca7b){var _0x21799e=a212_0x941a,_0x37c6bb=_0x3cf4c5();while(!![]){try{var _0x375112=parseInt(_0x21799e(0x141))/0x1+parseInt(_0x21799e(0x13f))/0x2+parseInt(_0x21799e(0x137))/0x3+parseInt(_0x21799e(0x13b))/0x4+parseInt(_0x21799e(0x13a))/0x5*(parseInt(_0x21799e(0x143))/0x6)+parseInt(_0x21799e(0x138))/0x7+-parseInt(_0x21799e(0x136))/0x8*(parseInt(_0x21799e(0x142))/0x9);if(_0x375112===_0x3aca7b)break;else _0x37c6bb['push'](_0x37c6bb['shift']());}catch(_0x49b9e6){_0x37c6bb['push'](_0x37c6bb['shift']());}}}(a212_0x3bef,0x38af0));import a212_0x24b58a from'chalk';function a212_0x3bef(){var _0x29faa7=['bold','log','\x20\x20Use\x20','463814WDLVHr','green','457363RpCwch','2547vxxgOv','6954AZdnjU','30248wIXrrk','270777hrWPUc','476028WuTrqd','\x20to\x20view\x20available\x20commands.','625XIVYWR','1239164NpgbCV'];a212_0x3bef=function(){return _0x29faa7;};return a212_0x3bef();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a212_0x941a(_0xbf62fe,_0x5b4d8d){_0xbf62fe=_0xbf62fe-0x136;var _0x3bef98=a212_0x3bef();var _0x941a56=_0x3bef98[_0xbf62fe];return _0x941a56;}export function showHelp(){var _0x26be42=a212_0x941a;console['log'](),console[_0x26be42(0x13d)](a212_0x24b58a[_0x26be42(0x140)][_0x26be42(0x13c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x26be42(0x13d)](),console[_0x26be42(0x13d)](_0x26be42(0x13e)+a212_0x24b58a[_0x26be42(0x140)]['bold'](CLI_BIN_NAME+'\x20--help')+_0x26be42(0x139)),console[_0x26be42(0x13d)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x583993,_0x298d9f){const _0x1ba7aa=a213_0x5c52,_0x44c28e=_0x583993();while(!![]){try{const _0x5d8cbc=-parseInt(_0x1ba7aa(0x8a))/0x1+parseInt(_0x1ba7aa(0x83))/0x2*(-parseInt(_0x1ba7aa(0x89))/0x3)+parseInt(_0x1ba7aa(0x7f))/0x4+-parseInt(_0x1ba7aa(0x7e))/0x5*(parseInt(_0x1ba7aa(0x84))/0x6)+-parseInt(_0x1ba7aa(0x6f))/0x7+parseInt(_0x1ba7aa(0x75))/0x8+parseInt(_0x1ba7aa(0x88))/0x9;if(_0x5d8cbc===_0x298d9f)break;else _0x44c28e['push'](_0x44c28e['shift']());}catch(_0x3c1cba){_0x44c28e['push'](_0x44c28e['shift']());}}}(a213_0x3f0d,0xc2cd5));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';function a213_0x5c52(_0x1a7428,_0x565e20){_0x1a7428=_0x1a7428-0x6d;const _0x3f0dcd=a213_0x3f0d();let _0x5c52ad=_0x3f0dcd[_0x1a7428];return _0x5c52ad;}export function camelCaseFlagsToKebab(_0xe26b40){const _0x5d6887=a213_0x5c52,_0x410a49=[];for(const [_0x578faa,_0xc90be0]of Object[_0x5d6887(0x7b)](_0xe26b40)){if(_0xc90be0===!![]){const _0x401f3f=_0x578faa[_0x5d6887(0x87)](/([A-Z])/g,_0x5d6887(0x80))[_0x5d6887(0x8f)]();_0x410a49['push'](_0x401f3f);}}return _0x410a49;}export function parseDynamicFlags(){const _0x2a2301=a213_0x5c52,_0x53b7c7=[];for(let _0x1005b4=0x3;_0x1005b4<process[_0x2a2301(0x6d)][_0x2a2301(0x74)];_0x1005b4++){const _0x57f0f9=process[_0x2a2301(0x6d)][_0x1005b4];if(_0x57f0f9&&_0x57f0f9[_0x2a2301(0x7c)]('--')){const _0x26f388=_0x57f0f9[_0x2a2301(0x92)](0x2);_0x26f388&&!_0x26f388[_0x2a2301(0x8d)]('=')&&_0x53b7c7['push'](_0x26f388);}}return _0x53b7c7;}export function getAllProvidedFlags(_0x5a387b){const _0x39cf4e=a213_0x5c52,_0xfb7065=camelCaseFlagsToKebab(_0x5a387b),_0x52d8f2=parseDynamicFlags(),_0x3db85a=new Set([..._0xfb7065,..._0x52d8f2]);return Array[_0x39cf4e(0x6e)](_0x3db85a);}export function normalizeLegacyBffSaveFlags(_0x3c89c0){const _0x74627c=a213_0x5c52,_0x7cdb5e=new Set(_0x3c89c0);return _0x7cdb5e[_0x74627c(0x85)](_0x74627c(0x86))&&_0x7cdb5e[_0x74627c(0x7d)](_0x74627c(0x7a)),Array[_0x74627c(0x6e)](_0x7cdb5e);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x38e8ed,_0x57102f,_0x32321d){const _0x3361fe=a213_0x5c52;logger[_0x3361fe(0x8b)](process[_0x3361fe(0x71)]());if(_0x32321d?.[_0x3361fe(0x79)]||_0x38e8ed===_0x3361fe(0x90)){showHelp();return;}console[_0x3361fe(0x81)](_0x3361fe(0x77)+(_0x38e8ed||_0x3361fe(0x73))),console[_0x3361fe(0x72)](_0x3361fe(0x8e)),console[_0x3361fe(0x72)]('\x20\x20'+CLI_BIN_NAME+_0x3361fe(0x78)),console[_0x3361fe(0x72)](''),console['log'](_0x3361fe(0x76)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3361fe(0x81)]('skill','不支持的命令:\x20'+_0x38e8ed),process[_0x3361fe(0x8c)](0x1);}function a213_0x3f0d(){const _0x4588cd=['Error:\x20Unsupported\x20command:\x20','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','help','enable-bff-save','entries','startsWith','add','6797965tUuWIg','6182736BpUJVk','-$1','error','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','2ORmuCu','6KKrKFV','has','dangerously-bff-save','replace','13136589ViYWvx','4394193XloiFm','317606HiljtL','setLogPath','exit','includes','\x0aAvailable\x20commands:','toLowerCase','--help','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','argv','from','3505061eyGDsl','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','cwd','log','(empty)','length','11482056rUETnA','Equivalent\x20command:\x20'];a213_0x3f0d=function(){return _0x4588cd;};return a213_0x3f0d();}function showHelp(){const _0x1beac3=a213_0x5c52;console['log'](_0x1beac3(0x91)+CLI_BIN_NAME+_0x1beac3(0x70)+SKILLS_INSTALL_COMMAND_LINE+_0x1beac3(0x82));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a214_0x1186c2=a214_0x56e3;(function(_0x58c34c,_0x8c9cac){const _0x83befb=a214_0x56e3,_0x1975da=_0x58c34c();while(!![]){try{const _0x16410b=parseInt(_0x83befb(0x1c2))/0x1*(parseInt(_0x83befb(0x1b7))/0x2)+-parseInt(_0x83befb(0x1b8))/0x3*(-parseInt(_0x83befb(0x1c3))/0x4)+-parseInt(_0x83befb(0x1b4))/0x5+parseInt(_0x83befb(0x1af))/0x6*(parseInt(_0x83befb(0x1bf))/0x7)+parseInt(_0x83befb(0x1ad))/0x8*(parseInt(_0x83befb(0x1b3))/0x9)+parseInt(_0x83befb(0x1ae))/0xa+-parseInt(_0x83befb(0x1b2))/0xb;if(_0x16410b===_0x8c9cac)break;else _0x1975da['push'](_0x1975da['shift']());}catch(_0x47a6c8){_0x1975da['push'](_0x1975da['shift']());}}}(a214_0x4495,0x91300));function a214_0x56e3(_0x52d96e,_0x108fb7){_0x52d96e=_0x52d96e-0x1a8;const _0x44957c=a214_0x4495();let _0x56e3e7=_0x44957c[_0x52d96e];return _0x56e3e7;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a214_0x4495(){const _0x4398b0=['173680dToxeN','skill','lovrabet/lovrabet-skill','stderr','remove','join','skills','log','114424awsnRv','2490160yowmZk','6aJoocA','toString','--skill','13033581nlQOXC','144VdWjHS','4765405SLvTYn','trim','Lovrabet','2bkZFCK','27OnryOu','unknown','inherit','status','exit\x20','stdout','npx','7848883RNBoab','stdio','pipe','742727mItRJS'];a214_0x4495=function(){return _0x4398b0;};return a214_0x4495();}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a214_0x1186c2(0x1ab);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a214_0x1186c2(0x1b1);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a214_0x1186c2(0x1c5);export const DEFAULT_RABETBASE_SKILL_NAME=a214_0x1186c2(0x1b6);export function buildNpxSkillsAddArgv(_0x368727){const _0x536f35=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x368727&&_0x536f35['push'](NPX_SKILLS_FLAG_SKILL,_0x368727),_0x536f35;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a214_0x1186c2(0x1be),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a214_0x1186c2(0x1be),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4ca197,_0x2569e1){const _0x148c16=a214_0x1186c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x10f0a5=_0x2569e1?.[_0x148c16(0x1c0)]??_0x148c16(0x1ba),_0x106e74=resolveNpmBin(_0x148c16(0x1be)),_0x2f816a=buildNpxSkillsAddArgv(_0x2569e1?.[_0x148c16(0x1c4)]),_0x39deb8=[_0x148c16(0x1be),..._0x2f816a][_0x148c16(0x1aa)]('\x20');console[_0x148c16(0x1ac)]('*\x20'+_0x39deb8);const _0x55d297=spawnSync(_0x106e74,_0x2f816a,{'cwd':_0x4ca197,'stdio':_0x10f0a5,'env':process.env,'shell':![]}),_0x49e3be=_0x55d297['status'];if(_0x49e3be===0x0)return{'ok':!![],'status':0x0};let _0x487b70=_0x148c16(0x1bc)+(_0x49e3be??'unknown');if(_0x10f0a5===_0x148c16(0x1c1)){const _0x31d4c0=_0x55d297[_0x148c16(0x1a8)]?_0x55d297[_0x148c16(0x1a8)][_0x148c16(0x1b0)]()[_0x148c16(0x1b5)]():'',_0x1ae37a=_0x55d297[_0x148c16(0x1bd)]?_0x55d297['stdout']['toString']()[_0x148c16(0x1b5)]():'';if(_0x31d4c0)_0x487b70=_0x31d4c0;else{if(_0x1ae37a)_0x487b70=_0x1ae37a;}}return{'ok':![],'status':_0x49e3be??null,'error':_0x487b70};}export function runNpxSkillsRemove(_0x4bd299,_0x54ba5b,_0x452767=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4fb470=a214_0x1186c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2b91ac=_0x54ba5b?.['stdio']??_0x4fb470(0x1ba),_0x1c5f03=resolveNpmBin(_0x4fb470(0x1be)),_0x1ff224=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4fb470(0x1a9),_0x452767,NPX_SKILLS_FLAG_SKILL,_0x54ba5b?.[_0x4fb470(0x1c4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x54ba5b?.['yes']?['-y']:[]],_0x5e5423=[_0x1c5f03,..._0x1ff224][_0x4fb470(0x1aa)]('\x20');console[_0x4fb470(0x1ac)]('*\x20'+_0x5e5423);const _0x8a9c9b=spawnSync(_0x1c5f03,_0x1ff224,{'cwd':_0x4bd299,'stdio':_0x2b91ac,'env':process.env,'shell':![]}),_0x12a5e4=_0x8a9c9b[_0x4fb470(0x1bb)];if(_0x12a5e4===0x0)return{'ok':!![],'status':0x0};let _0x39d92b=_0x4fb470(0x1bc)+(_0x12a5e4??'unknown');if(_0x2b91ac===_0x4fb470(0x1c1)){const _0x139f5b=_0x8a9c9b[_0x4fb470(0x1a8)]?_0x8a9c9b[_0x4fb470(0x1a8)][_0x4fb470(0x1b0)]()['trim']():'',_0x52ae8f=_0x8a9c9b[_0x4fb470(0x1bd)]?_0x8a9c9b[_0x4fb470(0x1bd)][_0x4fb470(0x1b0)]()[_0x4fb470(0x1b5)]():'';if(_0x139f5b)_0x39d92b=_0x139f5b;else{if(_0x52ae8f)_0x39d92b=_0x52ae8f;}}return{'ok':![],'status':_0x12a5e4??null,'error':_0x39d92b};}export function runNpxSkillsAddGlobal(_0x3b834a,_0x3dcff3,_0x1b96fa){const _0x21ba6f=a214_0x1186c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbd9e1d=_0x1b96fa?.[_0x21ba6f(0x1c0)]??_0x21ba6f(0x1ba),_0xbe3367=resolveNpmBin('npx'),_0x483090=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcff3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4a71d5=[_0x21ba6f(0x1be),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcff3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x21ba6f(0x1aa)]('\x20');console[_0x21ba6f(0x1ac)]('*\x20'+_0x4a71d5);const _0x483f5e=spawnSync(_0xbe3367,_0x483090,{'cwd':_0x3b834a,'stdio':_0xbd9e1d,'env':process.env,'shell':![]}),_0x4dabcd=_0x483f5e['status'];if(_0x4dabcd===0x0)return{'ok':!![],'status':0x0};let _0x643d02=_0x21ba6f(0x1bc)+(_0x4dabcd??_0x21ba6f(0x1b9));if(_0xbd9e1d===_0x21ba6f(0x1c1)){const _0x2981ba=_0x483f5e['stderr']?_0x483f5e[_0x21ba6f(0x1a8)][_0x21ba6f(0x1b0)]()[_0x21ba6f(0x1b5)]():'',_0x480d45=_0x483f5e['stdout']?_0x483f5e[_0x21ba6f(0x1bd)][_0x21ba6f(0x1b0)]()['trim']():'';if(_0x2981ba)_0x643d02=_0x2981ba;else{if(_0x480d45)_0x643d02=_0x480d45;}}return{'ok':![],'status':_0x4dabcd??null,'error':_0x643d02};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f225c,_0x1fafa7){const _0x1a4bfa=a215_0x11a5,_0x593162=_0x4f225c();while(!![]){try{const _0x94b4dc=parseInt(_0x1a4bfa(0xfd))/0x1*(-parseInt(_0x1a4bfa(0xf5))/0x2)+parseInt(_0x1a4bfa(0x100))/0x3*(parseInt(_0x1a4bfa(0x104))/0x4)+-parseInt(_0x1a4bfa(0x103))/0x5+parseInt(_0x1a4bfa(0xf6))/0x6+-parseInt(_0x1a4bfa(0xf8))/0x7*(parseInt(_0x1a4bfa(0xfe))/0x8)+-parseInt(_0x1a4bfa(0xf1))/0x9*(-parseInt(_0x1a4bfa(0xf3))/0xa)+-parseInt(_0x1a4bfa(0x107))/0xb*(parseInt(_0x1a4bfa(0xf4))/0xc);if(_0x94b4dc===_0x1fafa7)break;else _0x593162['push'](_0x593162['shift']());}catch(_0x29e354){_0x593162['push'](_0x593162['shift']());}}}(a215_0x4108,0x7eab0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a215_0x11a5(_0x22911c,_0x54e5cc){_0x22911c=_0x22911c-0xf0;const _0x410837=a215_0x4108();let _0x11a5d7=_0x410837[_0x22911c];return _0x11a5d7;}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,/^value$/i];function isSensitiveKey(_0x45b12e){const _0xca5624=a215_0x11a5;return SENSITIVE_PATTERNS[_0xca5624(0xf9)](_0x56920a=>_0x56920a[_0xca5624(0xfa)](_0x45b12e));}function sanitizeFlags(_0x28424b){const _0x48674c=a215_0x11a5,_0x15cdf9={};for(const [_0x1cdcbe,_0x471d5d]of Object[_0x48674c(0xff)](_0x28424b)){isSensitiveKey(_0x1cdcbe)?_0x15cdf9[_0x1cdcbe]=_0x471d5d!=null&&_0x471d5d!==''?_0x48674c(0x105):_0x471d5d:_0x15cdf9[_0x1cdcbe]=_0x471d5d;}return _0x15cdf9;}export async function reportCommandTrace(_0x1ef366){const _0x80b917=a215_0x11a5;try{const _0x2c11e2=sanitizeFlags(_0x1ef366[_0x80b917(0x102)]);await sendCliTraceLog({'spanName':_0x80b917(0xfb),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1ef366[_0x80b917(0xf2)],'command.name':_0x1ef366[_0x80b917(0xf7)],'command.flags':JSON[_0x80b917(0x106)](_0x2c11e2),..._0x1ef366[_0x80b917(0xf0)]!=null?{'command.duration_ms':_0x1ef366[_0x80b917(0xf0)]}:{},..._0x1ef366[_0x80b917(0xfc)]?{'command.error':_0x1ef366[_0x80b917(0xfc)]instanceof Error?_0x1ef366[_0x80b917(0xfc)][_0x80b917(0x101)]:String(_0x1ef366[_0x80b917(0xfc)])}:{}}});}catch{}}function a215_0x4108(){const _0x2f3c4d=['147880IMXsJQ','entries','249CtOnmu','message','flags','3388035lBxpMl','41612VOrOXV','[REDACTED]','stringify','11BdPkbM','durationMs','4203bjqlMv','service','21720kUjBWH','5359980wEklgK','32qkmQxC','2592810wzvYmq','command','140NrLwUB','some','test','rabetbase.command','error','18569nudHwa'];a215_0x4108=function(){return _0x2f3c4d;};return a215_0x4108();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a216_0x43e6(_0x3fb057,_0x2325e7){_0x3fb057=_0x3fb057-0xf7;var _0x1701cb=a216_0x1701();var _0x43e64d=_0x1701cb[_0x3fb057];return _0x43e64d;}function a216_0x1701(){var _0x7fc8c2=['4150CiCcIy','service','12aXnwrD','cli.help','732032pdKsWs','21xnvgaj','1078FVvutw','error','14428645WQaNVm','678XyhibV','614oSzfvP','10YGJbXW','2334033bvvqHU','523456PHTQHg','234690trQIoX'];a216_0x1701=function(){return _0x7fc8c2;};return a216_0x1701();}(function(_0x7420d8,_0x585a6b){var _0x35d192=a216_0x43e6,_0x57ec95=_0x7420d8();while(!![]){try{var _0x3ad53f=-parseInt(_0x35d192(0xfe))/0x1*(parseInt(_0x35d192(0x102))/0x2)+-parseInt(_0x35d192(0xf7))/0x3+-parseInt(_0x35d192(0xfc))/0x4+-parseInt(_0x35d192(0xf8))/0x5*(parseInt(_0x35d192(0x101))/0x6)+-parseInt(_0x35d192(0xfd))/0x7*(parseInt(_0x35d192(0x105))/0x8)+parseInt(_0x35d192(0x104))/0x9*(-parseInt(_0x35d192(0x103))/0xa)+-parseInt(_0x35d192(0x100))/0xb*(-parseInt(_0x35d192(0xfa))/0xc);if(_0x3ad53f===_0x585a6b)break;else _0x57ec95['push'](_0x57ec95['shift']());}catch(_0x15e647){_0x57ec95['push'](_0x57ec95['shift']());}}}(a216_0x1701,0x29868));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0xaf04a6,_0x5a0287){var _0x2e09c6=a216_0x43e6;try{await sendCliTraceLog({'spanName':_0x2e09c6(0xfb),'logData':{'rabetbase.help.kind':_0xaf04a6,..._0x5a0287?.[_0x2e09c6(0xf9)]&&{'rabetbase.help.service':_0x5a0287[_0x2e09c6(0xf9)]}}});}catch(_0x357a4a){console[_0x2e09c6(0xff)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x357a4a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2aaa10,_0x501cbc){const _0x508351=a217_0x2f0b,_0x20309e=_0x2aaa10();while(!![]){try{const _0x3197e7=-parseInt(_0x508351(0x1c0))/0x1*(-parseInt(_0x508351(0x1c5))/0x2)+-parseInt(_0x508351(0x1bb))/0x3+parseInt(_0x508351(0x1c1))/0x4*(parseInt(_0x508351(0x1b9))/0x5)+-parseInt(_0x508351(0x1be))/0x6+-parseInt(_0x508351(0x1bf))/0x7*(parseInt(_0x508351(0x1c8))/0x8)+parseInt(_0x508351(0x1b6))/0x9*(parseInt(_0x508351(0x1c2))/0xa)+parseInt(_0x508351(0x1bd))/0xb;if(_0x3197e7===_0x501cbc)break;else _0x20309e['push'](_0x20309e['shift']());}catch(_0x2eb873){_0x20309e['push'](_0x20309e['shift']());}}}(a217_0x57e8,0x6fd41));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a217_0x57e8(){const _0x4eb5ee=['1582143LLEcwD','tenant_code','18307564cLYnfd','4029096TezgNs','5922959KUhwRd','1403NQAGBH','128164GNGTnb','583990sYngmk','production','email','484DxBUuX','tenant','nickname','8uKDVfm','72HXIwey','username','daily','5Tycrbl','unknown'];a217_0x57e8=function(){return _0x4eb5ee;};return a217_0x57e8();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a217_0x2f0b(_0xa94539,_0x3d870e){_0xa94539=_0xa94539-0x1b6;const _0x57e8d7=a217_0x57e8();let _0x2f0b17=_0x57e8d7[_0xa94539];return _0x2f0b17;}export async function ensureCliOtelTraceConfig(){const _0x596e7d=a217_0x2f0b,_0x52157e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x422a55=_0x52157e?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x596e7d(0x1ba)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x596e7d(0x1b8):_0x596e7d(0x1c3))}),setUserContext({'id':_0x422a55?.['id'],'username':_0x422a55?.[_0x596e7d(0x1b7)],'nickname':_0x422a55?.[_0x596e7d(0x1c7)],'email':_0x422a55?.[_0x596e7d(0x1c4)],'tenantCode':_0x422a55?.[_0x596e7d(0x1c6)][_0x596e7d(0x1bc)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x52157e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a218_0x281c(_0x224029,_0x18c3ca){_0x224029=_0x224029-0xe8;const _0x56103a=a218_0x5610();let _0x281ce1=_0x56103a[_0x224029];return _0x281ce1;}(function(_0x569bc1,_0x28f1fe){const _0x5c045b=a218_0x281c,_0x2cb7ee=_0x569bc1();while(!![]){try{const _0x22d437=-parseInt(_0x5c045b(0xeb))/0x1+parseInt(_0x5c045b(0xf3))/0x2+parseInt(_0x5c045b(0xf0))/0x3*(parseInt(_0x5c045b(0xea))/0x4)+-parseInt(_0x5c045b(0xe8))/0x5+parseInt(_0x5c045b(0xf1))/0x6*(parseInt(_0x5c045b(0xf2))/0x7)+-parseInt(_0x5c045b(0xed))/0x8+parseInt(_0x5c045b(0xef))/0x9;if(_0x22d437===_0x28f1fe)break;else _0x2cb7ee['push'](_0x2cb7ee['shift']());}catch(_0x3c172c){_0x2cb7ee['push'](_0x2cb7ee['shift']());}}}(a218_0x5610,0x53efd));function a218_0x5610(){const _0x2337cf=['beforeExit','1429668ipHJmu','457917UcjRUk','81444IGltHo','343eiDiLW','648082pvPxtZ','SIGTERM','SIGINT','3042600CmClww','once','12GOWWbD','249555aJoIUB','exit','3232448vrStKH'];a218_0x5610=function(){return _0x2337cf;};return a218_0x5610();}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 _0x37f010=a218_0x281c;process[_0x37f010(0xe9)](_0x37f010(0xee),()=>{void flushOtelNodeIfUsed();});const _0x55c6d8=()=>{const _0x4f2cfd=_0x37f010;void flushOtelNodeIfUsed()['then'](()=>process[_0x4f2cfd(0xec)](0x0));};process[_0x37f010(0xe9)](_0x37f010(0xf5),_0x55c6d8),process[_0x37f010(0xe9)](_0x37f010(0xf4),_0x55c6d8);}export async function exitWithOtelShutdown(_0x58437d){const _0x55f638=a218_0x281c;await flushOtelNodeIfUsed(),process[_0x55f638(0xec)](_0x58437d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x2852d1=a219_0x38d0;(function(_0xd39871,_0x1727db){const _0x2f4a33=a219_0x38d0,_0x28255c=_0xd39871();while(!![]){try{const _0x245fe3=-parseInt(_0x2f4a33(0x151))/0x1+parseInt(_0x2f4a33(0x153))/0x2*(parseInt(_0x2f4a33(0x157))/0x3)+-parseInt(_0x2f4a33(0x155))/0x4*(parseInt(_0x2f4a33(0x15a))/0x5)+-parseInt(_0x2f4a33(0x150))/0x6+-parseInt(_0x2f4a33(0x158))/0x7*(-parseInt(_0x2f4a33(0x14d))/0x8)+-parseInt(_0x2f4a33(0x156))/0x9*(-parseInt(_0x2f4a33(0x159))/0xa)+parseInt(_0x2f4a33(0x14e))/0xb;if(_0x245fe3===_0x1727db)break;else _0x28255c['push'](_0x28255c['shift']());}catch(_0x91544f){_0x28255c['push'](_0x28255c['shift']());}}}(a219_0x8c1e,0x2ea2f));import{sendTraceLog}from'@lovrabet/otel-logger';function a219_0x8c1e(){const _0x407775=['logData','manual','rabetbase-cli','40RJZnVJ','2956393OCHTRM','traceparent','230082HMsskv','167176UePuXV','version','1838LMzraj','traceName','4IRjesg','9uzeMix','183TYBJCq','121709zNIfhO','3339790alOVNg','1745950goJBKX'];a219_0x8c1e=function(){return _0x407775;};return a219_0x8c1e();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a219_0x2852d1(0x14c);function a219_0x38d0(_0x54ebdc,_0x257a9c){_0x54ebdc=_0x54ebdc-0x14c;const _0x8c1e5=a219_0x8c1e();let _0x38d06d=_0x8c1e5[_0x54ebdc];return _0x38d06d;}export async function sendCliTraceLog(_0x3419bb){const _0x26b00c=a219_0x2852d1;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3419bb[_0x26b00c(0x154)]??DEFAULT_TRACE_NAME,'version':_0x3419bb[_0x26b00c(0x152)]??getCliVersion(),'spanName':_0x3419bb['spanName'],'eventType':_0x26b00c(0x15c),'logData':_0x3419bb[_0x26b00c(0x15b)],..._0x3419bb[_0x26b00c(0x14f)]&&{'traceparent':_0x3419bb[_0x26b00c(0x14f)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x3e54c2=a220_0x1993;function a220_0x5e3c(){const _0x4b2ea3=['sanitize','originalBytes','3174660qxVCTn','platform-issue-log-collect','245316cWRxRY','redactionKinds','title','1394348EepKBl','truncated','9782124LwMhxx','1950954kmbLfx','15Grijgm','12475440uUkDeC','join','issue.log.collect','9070404YXlPRB','description'];a220_0x5e3c=function(){return _0x4b2ea3;};return a220_0x5e3c();}(function(_0x798117,_0x35f0f4){const _0x4404fd=a220_0x1993,_0x29c76b=_0x798117();while(!![]){try{const _0x3e8c2d=-parseInt(_0x4404fd(0x80))/0x1+parseInt(_0x4404fd(0x7d))/0x2+parseInt(_0x4404fd(0x89))/0x3+-parseInt(_0x4404fd(0x8b))/0x4*(parseInt(_0x4404fd(0x81))/0x5)+parseInt(_0x4404fd(0x7f))/0x6+parseInt(_0x4404fd(0x85))/0x7+-parseInt(_0x4404fd(0x82))/0x8;if(_0x3e8c2d===_0x35f0f4)break;else _0x29c76b['push'](_0x29c76b['shift']());}catch(_0x27e3ac){_0x29c76b['push'](_0x29c76b['shift']());}}}(a220_0x5e3c,0xf100d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a220_0x1993(_0x1c426a,_0x3d34f5){_0x1c426a=_0x1c426a-0x7c;const _0x5e3c15=a220_0x5e3c();let _0x1993f2=_0x5e3c15[_0x1c426a];return _0x1993f2;}export const PLATFORM_ISSUE_TRACE_NAME=a220_0x3e54c2(0x8a);export const PLATFORM_ISSUE_SPAN_NAME=a220_0x3e54c2(0x84);export async function sendPlatformIssueCollectLog(_0x1e3738){const _0x4a006d=a220_0x3e54c2;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1e3738[_0x4a006d(0x7c)],'issue.description':_0x1e3738[_0x4a006d(0x86)],..._0x1e3738[_0x4a006d(0x87)]?{'issue.description_original_bytes':_0x1e3738[_0x4a006d(0x87)][_0x4a006d(0x88)],'issue.description_truncated':_0x1e3738[_0x4a006d(0x87)][_0x4a006d(0x7e)],'issue.description_redactions':_0x1e3738['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x1e3738[_0x4a006d(0x87)][_0x4a006d(0x8c)][_0x4a006d(0x83)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a222_0x6e60a7=a222_0x2ae0;(function(_0x1a790d,_0x33362d){const _0x1cb6f7=a222_0x2ae0,_0x76d25c=_0x1a790d();while(!![]){try{const _0x252c8c=parseInt(_0x1cb6f7(0xbe))/0x1*(-parseInt(_0x1cb6f7(0xd9))/0x2)+-parseInt(_0x1cb6f7(0xc6))/0x3*(-parseInt(_0x1cb6f7(0xb4))/0x4)+-parseInt(_0x1cb6f7(0xdf))/0x5+parseInt(_0x1cb6f7(0xc4))/0x6*(parseInt(_0x1cb6f7(0xcb))/0x7)+-parseInt(_0x1cb6f7(0xbd))/0x8*(-parseInt(_0x1cb6f7(0xcd))/0x9)+parseInt(_0x1cb6f7(0xc8))/0xa*(-parseInt(_0x1cb6f7(0xc3))/0xb)+parseInt(_0x1cb6f7(0xc2))/0xc;if(_0x252c8c===_0x33362d)break;else _0x76d25c['push'](_0x76d25c['shift']());}catch(_0xcf9c52){_0x76d25c['push'](_0x76d25c['shift']());}}}(a222_0x466e,0x96b22));export const CORE_IDE_CONFIGS={'cursor':{'name':a222_0x6e60a7(0xe3),'description':a222_0x6e60a7(0xb6),'folders':[a222_0x6e60a7(0xdc),a222_0x6e60a7(0xbb)],'files':[{'type':a222_0x6e60a7(0xbc),'path':'.cursor/skills/rabetbase.md','template':a222_0x6e60a7(0xc1)}]},'windsurf':{'name':a222_0x6e60a7(0xd6),'description':'Windsurf\x20IDE','folders':[a222_0x6e60a7(0xde)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xe9),'template':'SKILL.md.tpl'}]},'claude':{'name':a222_0x6e60a7(0xdd),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a222_0x6e60a7(0xc1)}]},'cline':{'name':'Cline','description':a222_0x6e60a7(0xcf),'folders':[a222_0x6e60a7(0xc9)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xb5),'template':a222_0x6e60a7(0xc1)}]},'codex':{'name':a222_0x6e60a7(0xe0),'description':a222_0x6e60a7(0xb8),'folders':[a222_0x6e60a7(0xd2)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xd0),'template':a222_0x6e60a7(0xc1)}]},'opencode':{'name':a222_0x6e60a7(0xd5),'description':a222_0x6e60a7(0xbf),'folders':[a222_0x6e60a7(0xb1)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xe6),'template':'SKILL.md.tpl'}]},'qoder':{'name':a222_0x6e60a7(0xca),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xcc),'template':a222_0x6e60a7(0xc1)},{'type':'file','path':a222_0x6e60a7(0xd8),'template':a222_0x6e60a7(0xc1)}]},'codebuddy':{'name':a222_0x6e60a7(0xd7),'description':a222_0x6e60a7(0xba),'folders':[a222_0x6e60a7(0xd1)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xb2),'template':a222_0x6e60a7(0xc1)}]},'trae':{'name':a222_0x6e60a7(0xc0),'description':'Trae\x20IDE','folders':[a222_0x6e60a7(0xdb)],'files':[{'type':'file','path':a222_0x6e60a7(0xe7),'template':a222_0x6e60a7(0xc1)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a222_0x6e60a7(0xb3),'description':'通用模板\x20-\x20兜底方案','folders':[a222_0x6e60a7(0xb9)],'files':[{'type':'file','path':a222_0x6e60a7(0xe1),'template':a222_0x6e60a7(0xc1)}]},'antigravity':{'name':'Antigravity','description':a222_0x6e60a7(0xda),'folders':[a222_0x6e60a7(0xb9)],'files':[{'type':a222_0x6e60a7(0xbc),'path':a222_0x6e60a7(0xe1),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a222_0x6e60a7(0xd4),a222_0x6e60a7(0xe2),'codebuddy',a222_0x6e60a7(0xe8),a222_0x6e60a7(0xe5),a222_0x6e60a7(0xc7),a222_0x6e60a7(0xb7),a222_0x6e60a7(0xd3),a222_0x6e60a7(0xe4)];export const IDE_LIST=['antigravity',a222_0x6e60a7(0xd4),'cline','codebuddy',a222_0x6e60a7(0xe8),'cursor',a222_0x6e60a7(0xc7),a222_0x6e60a7(0xb7),'trae',a222_0x6e60a7(0xe4),a222_0x6e60a7(0xc5)];export const ALL_CORE_IDES=[a222_0x6e60a7(0xe5),a222_0x6e60a7(0xe4),a222_0x6e60a7(0xd4),a222_0x6e60a7(0xe2),a222_0x6e60a7(0xe8),a222_0x6e60a7(0xc7),a222_0x6e60a7(0xb7),a222_0x6e60a7(0xce),'trae'];function a222_0x2ae0(_0x178cc2,_0x1149b4){_0x178cc2=_0x178cc2-0xb1;const _0x466efb=a222_0x466e();let _0x2ae0d7=_0x466efb[_0x178cc2];return _0x2ae0d7;}function a222_0x466e(){const _0x48ef71=['44wTbBxW','6hyxrzw','agent','3hWHCRv','opencode','2313690lyQvmw','.cline','Qoder','6978797mStZeq','.qoder/rules/rabetbase.md','18xCjMNL','codebuddy','Cline\x20IDE','.codex/skills/lovrabet/SKILL.md','.codebuddy','.codex','trae','claude','OpenCode','Windsurf','CodeBuddy','.qoder/skills/lovrabet/SKILL.md','2ejPzAw','Antigravity\x20IDE','.trae','.cursorrules','Claude\x20Code','.windsurf','5263625wZLdtR','Codex','.agent/skills/lovrabet/SKILL.md','cline','Cursor','windsurf','cursor','.opencode/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','codex','.windsurf/workflows/rabetbase.md','.opencode','.codebuddy/skills/lovrabet/SKILL.md','其他\x20(通用模板)','2204344AvMkRP','.cline/skills/lovrabet/SKILL.md','Cursor\x20IDE','qoder','Codex\x20IDE','.agent','CodeBuddy\x20IDE','.cursor','file','96168HdzaeD','912092ATOrxb','OpenCode\x20IDE','Trae','SKILL.md.tpl','23225328oFqWaO'];a222_0x466e=function(){return _0x48ef71;};return a222_0x466e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f339b,_0x58f30f){const _0x383b7c=a223_0x40f6,_0x3f96ee=_0x2f339b();while(!![]){try{const _0x47aeab=parseInt(_0x383b7c(0xfd))/0x1*(parseInt(_0x383b7c(0xfb))/0x2)+parseInt(_0x383b7c(0xfe))/0x3+-parseInt(_0x383b7c(0xfc))/0x4*(parseInt(_0x383b7c(0xfa))/0x5)+-parseInt(_0x383b7c(0x101))/0x6*(-parseInt(_0x383b7c(0x100))/0x7)+parseInt(_0x383b7c(0xf7))/0x8*(-parseInt(_0x383b7c(0xf8))/0x9)+-parseInt(_0x383b7c(0xf9))/0xa+-parseInt(_0x383b7c(0xff))/0xb;if(_0x47aeab===_0x58f30f)break;else _0x3f96ee['push'](_0x3f96ee['shift']());}catch(_0x20dc7c){_0x3f96ee['push'](_0x3f96ee['shift']());}}}(a223_0x30c4,0x9d733));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a223_0x40f6(_0x5a8362,_0x1c75d){_0x5a8362=_0x5a8362-0xf7;const _0x30c435=a223_0x30c4();let _0x40f63d=_0x30c435[_0x5a8362];return _0x40f63d;}function a223_0x30c4(){const _0x114cec=['164764RdsuZk','86oIpVOq','2746455TqnnbG','5130719GVshol','4879pyUurc','10578ewJDjO','457304ccBppZ','180uWjLKR','1426570tzRaUu','65MWWIVK','18336MoxNjo'];a223_0x30c4=function(){return _0x114cec;};return a223_0x30c4();}
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c33d6,_0x3b9176){const _0xddbfb9=a224_0x1273,_0x30d14d=_0x4c33d6();while(!![]){try{const _0x4aab61=-parseInt(_0xddbfb9(0x87))/0x1*(parseInt(_0xddbfb9(0x8b))/0x2)+parseInt(_0xddbfb9(0x89))/0x3+-parseInt(_0xddbfb9(0x8d))/0x4+parseInt(_0xddbfb9(0x91))/0x5*(-parseInt(_0xddbfb9(0x86))/0x6)+parseInt(_0xddbfb9(0x88))/0x7*(parseInt(_0xddbfb9(0x92))/0x8)+-parseInt(_0xddbfb9(0x85))/0x9+parseInt(_0xddbfb9(0x8e))/0xa;if(_0x4aab61===_0x3b9176)break;else _0x30d14d['push'](_0x30d14d['shift']());}catch(_0x1b46e1){_0x30d14d['push'](_0x30d14d['shift']());}}}(a224_0x3bfe,0x32dfe));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1c99e4=a224_0x1273,_0x4a96e2=getTemplateBaseUrl(),_0x11f507=[_0x4a96e2+_0x1c99e4(0x8c),_0x4a96e2+_0x1c99e4(0x8f)];for(const _0x510281 of _0x11f507){try{const _0x5da421=await fetch(_0x510281,{'headers':{'Accept':'application/json'}});if(!_0x5da421['ok'])continue;const _0x3e5a79=await _0x5da421['json']();if(!_0x3e5a79['cli']?.[_0x1c99e4(0x8a)]||!_0x3e5a79[_0x1c99e4(0x93)]?.[_0x1c99e4(0x84)]?.[_0x1c99e4(0x8a)])continue;return _0x3e5a79;}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 _0x12aa2b=a224_0x1273,_0x327155=Date[_0x12aa2b(0x90)]();if(hasCachedConfig){const _0x2807c1=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x327155-cacheTime<_0x2807c1)return cachedConfig;}const _0x5a5003=await fetchCdnConfig();return cachedConfig=_0x5a5003,cacheTime=_0x327155,hasCachedConfig=!![],_0x5a5003;}function a224_0x1273(_0x3a4f85,_0x501a13){_0x3a4f85=_0x3a4f85-0x84;const _0x3bfec7=a224_0x3bfe();let _0x1273d9=_0x3bfec7[_0x3a4f85];return _0x1273d9;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a224_0x3bfe(){const _0x2771a7=['/config.json','1132192zWxwaw','4950460qbLAEY','/config/index.json','now','5ngBFhC','2588552ftQOFs','sdk','node','1542231VreLif','2159922FsdMie','2HXFftB','7gBKUmw','783711eMrUwH','stableVersion','57076uIRGvn'];a224_0x3bfe=function(){return _0x2771a7;};return a224_0x3bfe();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23f294,_0x4297fc){const _0x38336e=a225_0x36cb,_0x42e0dd=_0x23f294();while(!![]){try{const _0x4196dd=parseInt(_0x38336e(0x188))/0x1*(parseInt(_0x38336e(0x17c))/0x2)+-parseInt(_0x38336e(0x172))/0x3+parseInt(_0x38336e(0x177))/0x4+-parseInt(_0x38336e(0x18d))/0x5+parseInt(_0x38336e(0x176))/0x6*(parseInt(_0x38336e(0x192))/0x7)+-parseInt(_0x38336e(0x183))/0x8*(parseInt(_0x38336e(0x18f))/0x9)+parseInt(_0x38336e(0x178))/0xa*(parseInt(_0x38336e(0x18b))/0xb);if(_0x4196dd===_0x4297fc)break;else _0x42e0dd['push'](_0x42e0dd['shift']());}catch(_0x2f4590){_0x42e0dd['push'](_0x42e0dd['shift']());}}}(a225_0x3871,0xc31fb));import a225_0x376156 from'node:fs';import a225_0x4cff74 from'node:path';function a225_0x3871(){const _0x46d6de=['packageName','988583EFmeLL','existsSync','package.json','55ryojDO','node','28540UOrGxu','\x1b[0m','747aNmCrv','stableVersion','sdk','1059779lrwYFg','coerce','log','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','utf8','version','some','3059691uYxHmM','node_modules','parse','npm\x20install\x20','60VkHNSl','2910384EQGGeS','113290eRxKtg','@lovrabet/sdk','join','test','2fozPYM','devDependencies','\x1b[1m','dependencies','\x20\x20\x20Current\x20version:\x20','needsUpgrade','\x1b[33m','140912HhNnxO','latest','all','readFileSync'];a225_0x3871=function(){return _0x46d6de;};return a225_0x3871();}import a225_0x7c4827 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1d10b3){const _0x319988=a225_0x36cb,_0xb61a21=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xb61a21[_0x319988(0x171)](_0x2bea6e=>_0x2bea6e[_0x319988(0x17b)](_0x1d10b3));}function getInstalledVersion(_0x3abbea,_0x5d0da5){const _0x47823=a225_0x36cb;try{const _0x1605d0=a225_0x4cff74[_0x47823(0x17a)](_0x3abbea,_0x47823(0x173),_0x5d0da5,_0x47823(0x18a));if(a225_0x376156[_0x47823(0x189)](_0x1605d0)){const _0x858067=JSON[_0x47823(0x174)](a225_0x376156['readFileSync'](_0x1605d0,'utf-8'));return _0x858067[_0x47823(0x170)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1bcb08=a225_0x36cb;try{const _0x389b96=await getCdnConfig();return _0x389b96?.[_0x1bcb08(0x191)]?.[_0x1bcb08(0x18c)]?.[_0x1bcb08(0x190)]||null;}catch{return null;}}function a225_0x36cb(_0x2851ef,_0xc3d913){_0x2851ef=_0x2851ef-0x16b;const _0x3871c6=a225_0x3871();let _0x36cbd4=_0x3871c6[_0x2851ef];return _0x36cbd4;}async function getSdkPackageName(){const _0x10a151=a225_0x36cb;try{const _0x249948=await getCdnConfig();return _0x249948?.[_0x10a151(0x191)]?.['node']?.[_0x10a151(0x187)]||_0x10a151(0x179);}catch{return _0x10a151(0x179);}}export async function checkSdkVersion(_0x3e8f0b){const _0x2d7680=a225_0x36cb,_0x207603=a225_0x4cff74[_0x2d7680(0x17a)](_0x3e8f0b,_0x2d7680(0x18a)),[_0x4deb63,_0x155c0e]=await Promise[_0x2d7680(0x185)]([getSdkStableVersion(),getSdkPackageName()]),_0x56b1b1=_0x4deb63||FALLBACK_MIN_SDK_VERSION;if(!a225_0x376156[_0x2d7680(0x189)](_0x207603))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};try{const _0xbc330c=JSON[_0x2d7680(0x174)](a225_0x376156[_0x2d7680(0x186)](_0x207603,_0x2d7680(0x16f))),_0x368068=_0xbc330c[_0x2d7680(0x17f)]||{},_0x2b3934=_0xbc330c['devDependencies']||{},_0x2f893d=_0x368068[_0x155c0e]||_0x2b3934[_0x155c0e];if(!_0x2f893d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};let _0x45583b=getInstalledVersion(_0x3e8f0b,_0x155c0e);!_0x45583b&&(_0x45583b=_0x2f893d);if(isNonNumericVersion(_0x2f893d))return{'installed':!![],'version':_0x45583b,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};const _0x51417a=a225_0x7c4827['coerce'](_0x45583b),_0x2bd2fa=a225_0x7c4827['coerce'](_0x56b1b1),_0x102ae9=_0x51417a&&_0x2bd2fa?a225_0x7c4827['lt'](_0x51417a,_0x2bd2fa):![];return{'installed':!![],'version':_0x45583b,'needsUpgrade':_0x102ae9,'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};}}export function checkSdkVersionSync(_0x50324d){const _0x342558=a225_0x36cb,_0x1131bc=a225_0x4cff74[_0x342558(0x17a)](_0x50324d,_0x342558(0x18a)),_0x1d0db4='@lovrabet/sdk';if(!a225_0x376156['existsSync'](_0x1131bc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};try{const _0x267035=JSON['parse'](a225_0x376156[_0x342558(0x186)](_0x1131bc,_0x342558(0x16f))),_0x48d9a0=_0x267035[_0x342558(0x17f)]||{},_0x3a1389=_0x267035[_0x342558(0x17d)]||{},_0x9ff16f=_0x48d9a0[_0x1d0db4]||_0x3a1389[_0x1d0db4];if(!_0x9ff16f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};let _0x40e2bf=getInstalledVersion(_0x50324d,_0x1d0db4);!_0x40e2bf&&(_0x40e2bf=_0x9ff16f);if(isNonNumericVersion(_0x9ff16f))return{'installed':!![],'version':_0x40e2bf,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};const _0x1e65c8=a225_0x7c4827[_0x342558(0x16b)](_0x40e2bf),_0x543cae=_0x1e65c8?a225_0x7c4827['lt'](_0x1e65c8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x40e2bf,'needsUpgrade':_0x543cae,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x52dc40){const _0x4042b8=a225_0x36cb;if(!_0x52dc40[_0x4042b8(0x181)])return;const _0x1e4e30=_0x4042b8(0x182),_0x48564e=_0x4042b8(0x18e),_0x353f26=_0x4042b8(0x17e),_0x482a00=_0x52dc40[_0x4042b8(0x187)]||_0x4042b8(0x179),_0xd44e2e=_0x52dc40[_0x4042b8(0x190)]||_0x52dc40['minVersion'],_0x3f0cbd=_0x4042b8(0x175)+_0x482a00+'@'+(_0xd44e2e||_0x4042b8(0x184));console[_0x4042b8(0x16c)](),console[_0x4042b8(0x16c)](''+_0x1e4e30+_0x353f26+_0x4042b8(0x16d)+_0x48564e),console['log'](_0x1e4e30+_0x4042b8(0x180)+_0x482a00+'@'+_0x52dc40[_0x4042b8(0x170)]+_0x48564e),console['log'](_0x1e4e30+_0x4042b8(0x16e)+_0xd44e2e+_0x48564e),console['log'](_0x1e4e30+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3f0cbd+_0x48564e),console[_0x4042b8(0x16c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x432ab8,_0x18c7a3){const _0x20004e=a226_0x477d,_0x39410a=_0x432ab8();while(!![]){try{const _0x352356=-parseInt(_0x20004e(0x10e))/0x1+-parseInt(_0x20004e(0x11f))/0x2+parseInt(_0x20004e(0x117))/0x3*(parseInt(_0x20004e(0x10f))/0x4)+-parseInt(_0x20004e(0x11a))/0x5*(-parseInt(_0x20004e(0x11e))/0x6)+parseInt(_0x20004e(0x134))/0x7*(-parseInt(_0x20004e(0x11b))/0x8)+-parseInt(_0x20004e(0x123))/0x9+parseInt(_0x20004e(0x127))/0xa;if(_0x352356===_0x18c7a3)break;else _0x39410a['push'](_0x39410a['shift']());}catch(_0x2c48df){_0x39410a['push'](_0x39410a['shift']());}}}(a226_0x1913,0x8d9b9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a226_0x477d(_0x18f54a,_0x287314){_0x18f54a=_0x18f54a-0x10e;const _0x19138a=a226_0x1913();let _0x477d90=_0x19138a[_0x18f54a];return _0x477d90;}import{fileURLToPath}from'node:url';import a226_0x4cb3ca from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a226_0x1913(){const _0x43f9e7=['957990bsDUfm','4qAiUnU','coerce','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','package.json','\x1b[33m','log','\x20\x20\x20Stable\x20version:\x20','2642874XqlTDx','version','stableVersion','23240KVGtkq','11184QDvmKQ','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','1428WstYfG','204482EztgFC','\x20\x20\x20Minimum\x20supported:\x20','join','currentVersion','9756738vcQSPf','npm\x20install\x20-g\x20','\x1b[31m','↪\x20Critical\x20CLI\x20upgrade\x20required','16192940pHiTUI','\x20\x20\x20','belowMinimum','needsUpgrade','minimumVersionMessage','1.0.0','validation','../..','upgradeMessage','↪\x20New\x20version\x20available','Current\x20version:\x20','filter','minimumVersion','4417tLUxpa'];a226_0x1913=function(){return _0x43f9e7;};return a226_0x1913();}export function getCliUpgradeCommand(_0x3cbc44){const _0x393064=a226_0x477d,_0x4aac9e=_0x3cbc44[_0x393064(0x119)]||'latest';return _0x393064(0x124)+NPM_PACKAGE_NAME+'@'+_0x4aac9e;}function getCurrentCliVersion(){const _0x236799=a226_0x477d;try{const _0x229ad3=fileURLToPath(import.meta.url),_0x4ba5f8=resolve(dirname(_0x229ad3),_0x236799(0x12e)),_0x47e0fa=resolve(_0x4ba5f8,_0x236799(0x113)),_0x13bcd8=JSON['parse'](readFileSync(_0x47e0fa,'utf-8'));return _0x13bcd8[_0x236799(0x118)]||_0x236799(0x12c);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x4c2dab=a226_0x477d,_0x2205ec=getCurrentCliVersion(),_0x57bc60=await getCliVersionPolicy(),_0x3018e0=_0x57bc60?.[_0x4c2dab(0x119)]||null,_0x1ea74f=_0x57bc60?.[_0x4c2dab(0x133)]||null;let _0x29a02a=![],_0x31e36e=![];const _0x5b2c5f=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x2205ec);if(_0x5b2c5f&&_0x3018e0)try{const _0x3275ff=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x3018e0);if(_0x3275ff)_0x29a02a=a226_0x4cb3ca['lt'](_0x5b2c5f,_0x3275ff);}catch{}if(_0x5b2c5f&&_0x1ea74f)try{const _0x1d0c42=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x1ea74f);if(_0x1d0c42)_0x31e36e=a226_0x4cb3ca['lt'](_0x5b2c5f,_0x1d0c42);}catch{}return _0x31e36e&&(_0x29a02a=!![]),{'currentVersion':_0x2205ec,'stableVersion':_0x3018e0,'minimumVersion':_0x1ea74f,'needsUpgrade':_0x29a02a,'belowMinimum':_0x31e36e,'isPreRelease':![],'upgradeMessage':_0x57bc60?.[_0x4c2dab(0x12f)],'minimumVersionMessage':_0x57bc60?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4abf71){const _0x49d8d3=a226_0x477d;if(!_0x4abf71[_0x49d8d3(0x12a)]&&!_0x4abf71[_0x49d8d3(0x129)])return;const _0x8b95c1=_0x49d8d3(0x125),_0x578dc1=_0x49d8d3(0x114),_0x48eb6c='\x1b[0m',_0x42f5ab=_0x49d8d3(0x111),_0x2de1f4=getCliUpgradeCommand(_0x4abf71);console[_0x49d8d3(0x115)](),_0x4abf71[_0x49d8d3(0x129)]?(console[_0x49d8d3(0x115)](''+_0x8b95c1+_0x42f5ab+_0x49d8d3(0x126)+_0x48eb6c),console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4abf71[_0x49d8d3(0x122)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x133)]&&console[_0x49d8d3(0x115)](_0x8b95c1+_0x49d8d3(0x120)+_0x4abf71[_0x49d8d3(0x133)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x119)]&&_0x4abf71[_0x49d8d3(0x119)]!==_0x4abf71['minimumVersion']&&console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4abf71['stableVersion']+_0x48eb6c),_0x4abf71[_0x49d8d3(0x12b)]&&console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20'+_0x4abf71['minimumVersionMessage']+_0x48eb6c),console[_0x49d8d3(0x115)](_0x8b95c1+_0x49d8d3(0x11c)+_0x2de1f4+_0x48eb6c)):(console[_0x49d8d3(0x115)](''+_0x578dc1+_0x42f5ab+_0x49d8d3(0x130)+_0x48eb6c),console['log'](_0x578dc1+_0x49d8d3(0x11d)+_0x4abf71[_0x49d8d3(0x122)]+_0x48eb6c),console[_0x49d8d3(0x115)](_0x578dc1+_0x49d8d3(0x116)+_0x4abf71[_0x49d8d3(0x119)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x12f)]&&console[_0x49d8d3(0x115)](_0x578dc1+_0x49d8d3(0x128)+_0x4abf71[_0x49d8d3(0x12f)]+_0x48eb6c),console['log'](_0x578dc1+_0x49d8d3(0x11c)+_0x2de1f4+_0x48eb6c)),console['log']();}export function assertCliVersionSupported(_0x79e72b){const _0x74a5c4=a226_0x477d;if(!_0x79e72b[_0x74a5c4(0x129)])return;const _0x3da853=[_0x79e72b[_0x74a5c4(0x12b)],_0x74a5c4(0x131)+_0x79e72b[_0x74a5c4(0x122)],_0x79e72b['minimumVersion']?'Minimum\x20supported:\x20'+_0x79e72b[_0x74a5c4(0x133)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x79e72b)][_0x74a5c4(0x132)](Boolean)[_0x74a5c4(0x121)]('\x0a');throw CliErrors[_0x74a5c4(0x12d)](_0x74a5c4(0x112),_0x3da853);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc8011f,_0x475c87){const _0x4cc023=a227_0x27e1,_0x1b2fdc=_0xc8011f();while(!![]){try{const _0x3ae4ba=parseInt(_0x4cc023(0x1db))/0x1*(parseInt(_0x4cc023(0x1d4))/0x2)+-parseInt(_0x4cc023(0x1df))/0x3+-parseInt(_0x4cc023(0x1e5))/0x4+parseInt(_0x4cc023(0x1d6))/0x5+parseInt(_0x4cc023(0x1e4))/0x6+parseInt(_0x4cc023(0x1de))/0x7*(parseInt(_0x4cc023(0x1e6))/0x8)+-parseInt(_0x4cc023(0x1d9))/0x9;if(_0x3ae4ba===_0x475c87)break;else _0x1b2fdc['push'](_0x1b2fdc['shift']());}catch(_0x174d5f){_0x1b2fdc['push'](_0x1b2fdc['shift']());}}}(a227_0x2a35,0x7c208));function a227_0x27e1(_0x36e0b6,_0x1445d2){_0x36e0b6=_0x36e0b6-0x1d2;const _0x2a35e7=a227_0x2a35();let _0x27e1fd=_0x2a35e7[_0x36e0b6];return _0x27e1fd;}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(_0x196724){const _0x575f8b=a227_0x27e1;return typeof _0x196724===_0x575f8b(0x1d2)&&_0x196724[_0x575f8b(0x1e2)]()['length']>0x0?_0x196724[_0x575f8b(0x1e2)]():null;}function normalizeCliVersionPolicy(_0x13f035){const _0x7e9bd6=a227_0x27e1;if(!_0x13f035||typeof _0x13f035!==_0x7e9bd6(0x1d3))return null;const _0x11dc02=_0x13f035,_0x2a8132=_0x11dc02['cli']&&typeof _0x11dc02[_0x7e9bd6(0x1dd)]===_0x7e9bd6(0x1d3)?_0x11dc02['cli']:_0x11dc02,_0x4efe1b=pickString(_0x2a8132[_0x7e9bd6(0x1d7)])||pickString(_0x2a8132[_0x7e9bd6(0x1e3)])||pickString(_0x2a8132['recommendedVersion']),_0x127f53=pickString(_0x2a8132[_0x7e9bd6(0x1e0)])||pickString(_0x2a8132['minVersion']);if(!_0x4efe1b&&!_0x127f53)return null;return{'stableVersion':_0x4efe1b,'minimumVersion':_0x127f53,'upgradeMessage':pickString(_0x2a8132['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2a8132[_0x7e9bd6(0x1d8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x2b843b=a227_0x27e1,_0x3ec704=new AbortController(),_0x1ec8ec=setTimeout(()=>_0x3ec704[_0x2b843b(0x1da)](),FETCH_TIMEOUT_MS);try{const _0x27f9d3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2b843b(0x1d5)},'signal':_0x3ec704['signal']});if(!_0x27f9d3['ok'])return null;const _0x479f16=await _0x27f9d3[_0x2b843b(0x1dc)]();return normalizeCliVersionPolicy(_0x479f16);}catch{return null;}finally{clearTimeout(_0x1ec8ec);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a227_0x2a35(){const _0x3729c6=['cli','7071274clpRAp','1271253bheoKq','minimumVersion','now','trim','latestVersion','4317828fGrZeX','3200116PROGJq','8SCODZx','string','object','130UVfszn','application/json','2770370pkJlEy','stableVersion','minimumVersionMessage','6822585mkMDVt','abort','3175RVLbgM','json'];a227_0x2a35=function(){return _0x3729c6;};return a227_0x2a35();}export async function getCliVersionPolicy(){const _0x4c1579=a227_0x27e1,_0x3cd496=Date[_0x4c1579(0x1e1)]();if(hasCachedPolicy){const _0x2393bb=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3cd496-cacheTime<_0x2393bb)return cachedPolicy;}const _0x3e888a=await fetchCliVersionPolicy();return cachedPolicy=_0x3e888a,cacheTime=_0x3cd496,hasCachedPolicy=!![],_0x3e888a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a228_0x382feb=a228_0x3a4b;(function(_0x59ceb3,_0xfc4e10){const _0x3f4469=a228_0x3a4b,_0xdedbe5=_0x59ceb3();while(!![]){try{const _0x59ed3c=parseInt(_0x3f4469(0x1bc))/0x1*(parseInt(_0x3f4469(0x1c4))/0x2)+parseInt(_0x3f4469(0x1c2))/0x3*(-parseInt(_0x3f4469(0x1c6))/0x4)+parseInt(_0x3f4469(0x1c8))/0x5+-parseInt(_0x3f4469(0x1c1))/0x6*(-parseInt(_0x3f4469(0x1c7))/0x7)+-parseInt(_0x3f4469(0x1bf))/0x8+-parseInt(_0x3f4469(0x1c3))/0x9+parseInt(_0x3f4469(0x1c0))/0xa*(parseInt(_0x3f4469(0x1bb))/0xb);if(_0x59ed3c===_0xfc4e10)break;else _0xdedbe5['push'](_0xdedbe5['shift']());}catch(_0x5d67f4){_0xdedbe5['push'](_0xdedbe5['shift']());}}}(a228_0x25c2,0x3e4a7));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a228_0x1036a5,getMultiAppConfigs as a228_0x53774f,getTemplateBaseUrl as a228_0x44d813}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a228_0x25c2(){const _0x204823=['55204ERkWdL','133KtJERn','1316320ybzZqB','11acEAxj','549OhmplC','project','env','3936592LkfHuK','1599490azymTU','27876sJboeX','39HllESr','745200ytzqZA','1814njZwki','string'];a228_0x25c2=function(){return _0x204823;};return a228_0x25c2();}function a228_0x3a4b(_0x3f1681,_0x1e4b7){_0x3f1681=_0x3f1681-0x1bb;const _0x25c21b=a228_0x25c2();let _0x3a4b11=_0x25c21b[_0x3f1681];return _0x3a4b11;}export function readConfig(_0x59d961){const _0x5ea774=a228_0x3a4b,_0x40789a=readRawConfig(_0x59d961);return _0x40789a[_0x5ea774(0x1be)]&&typeof _0x40789a[_0x5ea774(0x1be)]===_0x5ea774(0x1c5)&&initEnv(_0x40789a['env']),_0x40789a;}export function getConfigAppCode(){return a228_0x1036a5();}export function getMultiAppConfigs(_0xa0131=a228_0x382feb(0x1bd)){return a228_0x53774f(_0xa0131);}export function getTemplateBaseUrl(){return a228_0x44d813();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c8858,_0x150822){const _0x52f889=a229_0x5d6b,_0x3a64d=_0x1c8858();while(!![]){try{const _0x89bf18=-parseInt(_0x52f889(0x1bf))/0x1+-parseInt(_0x52f889(0x1be))/0x2*(-parseInt(_0x52f889(0x1c8))/0x3)+parseInt(_0x52f889(0x1c2))/0x4+parseInt(_0x52f889(0x1c6))/0x5+-parseInt(_0x52f889(0x1c3))/0x6*(parseInt(_0x52f889(0x1c1))/0x7)+parseInt(_0x52f889(0x1c5))/0x8+parseInt(_0x52f889(0x1bd))/0x9*(-parseInt(_0x52f889(0x1bc))/0xa);if(_0x89bf18===_0x150822)break;else _0x3a64d['push'](_0x3a64d['shift']());}catch(_0x22c6ea){_0x3a64d['push'](_0x3a64d['shift']());}}}(a229_0x116d,0x5f1aa));function a229_0x116d(){const _0x1aa20=['error','name','join','230iPjoHP','272106rrMQQP','110326TdlGHp','738088ZwYfca','readdirSync','307517WCxyoY','3115532NgPqmf','102TPqAzG','复制目录时出错:','4490248TNLkQx','3114430WWXKAr','isDirectory','33cbYsWw'];a229_0x116d=function(){return _0x1aa20;};return a229_0x116d();}import a229_0x2ed807 from'node:path';import a229_0x6a1058 from'node:fs';function a229_0x5d6b(_0x3ca2f8,_0x8aa172){_0x3ca2f8=_0x3ca2f8-0x1bb;const _0x116d6b=a229_0x116d();let _0x5d6b09=_0x116d6b[_0x3ca2f8];return _0x5d6b09;}export async function copyDirectory(_0x2255ea,_0x120d93){const _0x32b7d1=a229_0x5d6b;try{const _0xcb0989=a229_0x6a1058[_0x32b7d1(0x1c0)](_0x2255ea,{'withFileTypes':!![]});a229_0x6a1058['mkdirSync'](_0x120d93,{'recursive':!![]});for(const _0x4d4fd4 of _0xcb0989){const _0x2c4912=a229_0x2ed807[_0x32b7d1(0x1bb)](_0x2255ea,_0x4d4fd4[_0x32b7d1(0x1ca)]),_0x4e0b50=a229_0x2ed807[_0x32b7d1(0x1bb)](_0x120d93,_0x4d4fd4[_0x32b7d1(0x1ca)]);_0x4d4fd4[_0x32b7d1(0x1c7)]()?await copyDirectory(_0x2c4912,_0x4e0b50):a229_0x6a1058['copyFileSync'](_0x2c4912,_0x4e0b50);}}catch(_0x4351df){console[_0x32b7d1(0x1c9)](_0x32b7d1(0x1c4),_0x4351df);}}
|