@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/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/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/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 a206_0x4409b2=a206_0x51c0;(function(_0x2eca0b,_0x5df69e){const _0x406d68=a206_0x51c0,_0x19dcf7=_0x2eca0b();while(!![]){try{const _0x176c3d=parseInt(_0x406d68(0xba))/0x1+parseInt(_0x406d68(0xb8))/0x2+-parseInt(_0x406d68(0x9e))/0x3*(parseInt(_0x406d68(0xc2))/0x4)+-parseInt(_0x406d68(0xb6))/0x5+parseInt(_0x406d68(0xcb))/0x6*(parseInt(_0x406d68(0xa2))/0x7)+-parseInt(_0x406d68(0xb5))/0x8+parseInt(_0x406d68(0xc1))/0x9;if(_0x176c3d===_0x5df69e)break;else _0x19dcf7['push'](_0x19dcf7['shift']());}catch(_0x31c983){_0x19dcf7['push'](_0x19dcf7['shift']());}}}(a206_0x5b2c,0xd614a));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 a206_0x202371}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3cbcae){const _0x44d685=a206_0x51c0;return typeof _0x3cbcae===_0x44d685(0xca)&&_0x3cbcae[_0x44d685(0xbd)]()?_0x3cbcae[_0x44d685(0xbd)]():undefined;}function resolveEnvAppCode(){const _0x429fa0=a206_0x51c0,_0x4f2307=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4f2307)return{'name':_0x429fa0(0xb9),'value':_0x4f2307};const _0x56297b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x56297b)return{'name':'LOVRABET_APPCODE','value':_0x56297b};return undefined;}function hasExplicitAppCode(_0x2dedf5,_0x391d84){const _0x5c2799=a206_0x51c0;return!!(stringFlag(_0x2dedf5[_0x5c2799(0xa6)])||stringFlag(_0x391d84[_0x5c2799(0xa6)]));}function a206_0x51c0(_0x25ff7c,_0x5301dd){_0x25ff7c=_0x25ff7c-0x9b;const _0x5b2cb4=a206_0x5b2c();let _0x51c057=_0x5b2cb4[_0x25ff7c];return _0x51c057;}function a206_0x5b2c(){const _0x271570=['No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','rawFlags','defaultPageSize','catch','resolveApiDomain','string','6iAPCZK','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','execute','doctor','name','service','authRequired','apiDir','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','hasFormat','selectedAppName','nonInteractive','1378611wuWbKL','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','Set\x20appcode\x20via\x20`','resolveAppCode','2939587ItJCrp','pageSize','requiresAppCode','value','appcode','update','defaultVerbose','includes','⚠\x20\x20High-risk\x20operation:\x20','pretty','\x20\x20\x20Continue?\x20[y/N]\x20','configMissing','filter','cookie','map','object','command','appCode','validation','13572752ksrZzS','874195ONFcPJ','none','878616cnKuWu','RABETBASE_APPCODE','303273uShguW','_notice','apps','trim','../core/api-client.js','cancelled','riskLevel','26679564NJbLwQ','12DmliOi','isNonInteractive','required'];a206_0x5b2c=function(){return _0x271570;};return a206_0x5b2c();}function assertEnvAppCodeNotIgnored(_0x173fe3,_0x2221ac,_0x4fe3cc){const _0xb48b7f=a206_0x51c0;if(!_0x2221ac||_0x4fe3cc||_0x173fe3===_0x2221ac[_0xb48b7f(0xa5)])return;const _0xe5ee74=_0x173fe3?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x173fe3+'\x22.':_0xb48b7f(0xc5);throw CliErrors[_0xb48b7f(0xb4)](_0x2221ac[_0xb48b7f(0xcf)]+'='+_0x2221ac['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0xe5ee74+'\x20'+(_0xb48b7f(0xcc)+_0x2221ac[_0xb48b7f(0xcf)]+'\x22.'));}export function createPipelineEnv(_0x252c91,_0x258e96,_0x2f2d1c=[]){const _0x3d9a9a=a206_0x51c0;return{'rawFlags':_0x258e96,'args':_0x2f2d1c,'resolveAppCode':()=>_0x252c91['appCode'],'resolveCookie':()=>_0x252c91[_0x3d9a9a(0xaf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x202371(_0x258e96),'defaultFormat':_0x252c91['format'],'defaultPageSize':_0x252c91[_0x3d9a9a(0xa3)],'defaultVerbose':_0x252c91['verbose'],'apiDir':_0x252c91[_0x3d9a9a(0xd2)],'riskLevel':_0x252c91[_0x3d9a9a(0xc0)],'selectedAppName':_0x252c91['explicitAppName'],'mergedCli':{'defaultApp':_0x252c91['defaultApp'],'currentApp':_0x252c91['currentApp'],'appCode':_0x252c91[_0x3d9a9a(0xb3)],'apps':_0x252c91[_0x3d9a9a(0xbc)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a206_0x4409b2(0xae)](_0xe82a9c=>PIPELINE_FLAG_NAMES['has'](_0xe82a9c[a206_0x4409b2(0xcf)]))[a206_0x4409b2(0xb0)](({name:_0x8fadb2,type:_0x564620,description:_0x2aab34})=>({'name':_0x8fadb2,'type':_0x564620,'description':_0x2aab34})),'formatOutput':formatOutput,'getCommandLabel'(_0x4ee974){const _0x7019a4=a206_0x4409b2;return CLI_BIN_NAME+'\x20'+_0x4ee974[_0x7019a4(0xd0)]+'\x20'+_0x4ee974[_0x7019a4(0xb2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x253a0d){const _0x2ad1e3=a206_0x4409b2;return CliErrors[_0x2ad1e3(0xb4)](_0x253a0d);}},async 'prepare'(_0x232a18,_0x2ca8e8,_0x6d5bb3,_0x2459e3){const _0x5473b4=a206_0x4409b2,_0x470aef=_0x2ca8e8[_0x5473b4(0xd2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x232a18,_0x6d5bb3,_0x470aef,_0x2459e3);const _0x56e49e=resolveCommandAuthMode(_0x232a18);let _0x2e0490='';if(_0x56e49e!==_0x5473b4(0xb7)){_0x2e0490=_0x2ca8e8['resolveCookie']()||'';if(!_0x2e0490){if(_0x56e49e===_0x5473b4(0xc4))throw CliErrors[_0x5473b4(0xd1)]();}else{const {setActiveCookie:_0x3c140d}=await import('../core/api-client.js');_0x3c140d(_0x2e0490);}}const _0x1a285d=_0x2ca8e8[_0x5473b4(0xa1)]()??'';if(_0x232a18[_0x5473b4(0xa4)]!==![]){assertEnvAppCodeNotIgnored(_0x1a285d,resolveEnvAppCode(),hasExplicitAppCode(_0x6d5bb3,_0x2ca8e8[_0x5473b4(0xc6)]));if(!_0x1a285d)throw CliErrors[_0x5473b4(0xad)](_0x5473b4(0xa0)+CLI_BIN_NAME+_0x5473b4(0xd3));}return{'defaults':{'booleans':{'verbose':_0x2ca8e8[_0x5473b4(0xa8)]},'numbers':{'pagesize':_0x2ca8e8[_0x5473b4(0xc7)]}},'extras':{'appCode':_0x1a285d,'cookie':_0x2e0490,'apiDomain':_0x2ca8e8[_0x5473b4(0xc9)](),'apiDir':_0x470aef,'selectedAppName':_0x2ca8e8[_0x5473b4(0x9c)],'mergedCli':_0x2ca8e8['mergedCli']}};},async 'confirmHighRisk'({env:_0x33c15b,commandLabel:_0x5acf47}){const _0x3db935=a206_0x4409b2;if(_0x33c15b[_0x3db935(0xc3)])throw CliErrors[_0x3db935(0xb4)]('High-risk\x20operation\x20`'+_0x5acf47+_0x3db935(0x9f));await requireConfirmationPrompt({'lines':[_0x3db935(0xaa)+_0x5acf47,_0x3db935(0xac)],'createCancelledError':_0x1956c5=>CliErrors[_0x3db935(0xbf)](_0x1956c5)});},async 'finalize'(){const _0x4cadd7=a206_0x4409b2,{clearActiveCookie:_0x5cee94}=await import(_0x4cadd7(0xbe));_0x5cee94();}};export async function runCommand(_0x414633,_0x13bcf2){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x414633)?withUpdateNotice(_0x414633):_0x414633,_0x13bcf2,runnerAdapter);}function shouldAttachUpdateNotice(_0x194264){const _0x3e058d=a206_0x4409b2;if(_0x194264[_0x3e058d(0x9b)]===![])return![];return![_0x3e058d(0xa7),'schema',_0x3e058d(0xce)][_0x3e058d(0xa9)](_0x194264['service']);}function withUpdateNotice(_0xb37bdd){return{..._0xb37bdd,async 'execute'(_0xbfbd31){const _0x52daaf=a206_0x51c0,_0x8d5c80=shouldResolveUpdateNotice(_0xbfbd31)?resolveLatestUpdateNotice()[_0x52daaf(0xc8)](()=>null):Promise['resolve'](null),_0x108d47=await _0xb37bdd[_0x52daaf(0xcd)](_0xbfbd31);return attachUpdateNotice(_0x108d47,await _0x8d5c80);}};}function shouldResolveUpdateNotice(_0x26fca2){const _0x19db16=a206_0x4409b2;return _0x26fca2['format']===_0x19db16(0xab)&&!_0x26fca2[_0x19db16(0x9d)];}function attachUpdateNotice(_0x56b90e,_0x324069){const _0x41fb77=a206_0x4409b2;if(!_0x324069||!_0x56b90e||typeof _0x56b90e!==_0x41fb77(0xb1))return _0x56b90e;const _0x2f56d3=_0x56b90e,_0x27d142=typeof _0x2f56d3[_0x41fb77(0xbb)]===_0x41fb77(0xb1)&&_0x2f56d3[_0x41fb77(0xbb)]!==null?_0x2f56d3['_notice']:{};return{..._0x2f56d3,'_notice':{..._0x27d142,'update':_0x324069}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a207_0xa06b(_0x2b2826,_0x184137){_0x2b2826=_0x2b2826-0x1e2;const _0x1072c1=a207_0x1072();let _0xa06bf3=_0x1072c1[_0x2b2826];return _0xa06bf3;}(function(_0x298978,_0xeb4e65){const _0x1cf01e=a207_0xa06b,_0x5d28ce=_0x298978();while(!![]){try{const _0x5c6469=-parseInt(_0x1cf01e(0x1ea))/0x1+parseInt(_0x1cf01e(0x1ec))/0x2*(parseInt(_0x1cf01e(0x1e6))/0x3)+-parseInt(_0x1cf01e(0x1ed))/0x4+-parseInt(_0x1cf01e(0x1e9))/0x5*(-parseInt(_0x1cf01e(0x1e3))/0x6)+parseInt(_0x1cf01e(0x1e5))/0x7*(-parseInt(_0x1cf01e(0x1eb))/0x8)+-parseInt(_0x1cf01e(0x1e7))/0x9*(parseInt(_0x1cf01e(0x1e2))/0xa)+parseInt(_0x1cf01e(0x1e4))/0xb;if(_0x5c6469===_0xeb4e65)break;else _0x5d28ce['push'](_0x5d28ce['shift']());}catch(_0x3e5e3e){_0x5d28ce['push'](_0x5d28ce['shift']());}}}(a207_0x1072,0xc817f));function a207_0x1072(){const _0x52146b=['354022XljXGy','509992CSEWPx','805846nYkOza','1268064alRDSj','395990xYnwqj','6MCQIRi','18118100bVfDNC','49aFTcvg','3bmXMku','369gwbePI','../commands/registry.js','7552000UuxkGK'];a207_0x1072=function(){return _0x52146b;};return a207_0x1072();}import{buildSchemaPayload as a207_0x3cc6bd}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2f1b52=a207_0xa06b,{serviceRegistry:_0x48035a,findDefinition:_0x5a4a25}=await import(_0x2f1b52(0x1e8));return a207_0x3cc6bd({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x48035a,'buildAllFlags':buildAllFlags,'findDefinition':_0x5a4a25});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a208_0x28ae(){var _0x581589=['44mKdDeg','120XQlDEv','2608404gDCgkH','11685500luTMbt','2FCGLCs','289090iiZwGN','5565483IIAcPu','578582hYghxI','447435fiRSxo','992835xOoCQN'];a208_0x28ae=function(){return _0x581589;};return a208_0x28ae();}(function(_0x4768a0,_0x35cac7){var _0x2393a1=a208_0x5716,_0x58a1bc=_0x4768a0();while(!![]){try{var _0x3973fe=parseInt(_0x2393a1(0x178))/0x1+-parseInt(_0x2393a1(0x17f))/0x2*(parseInt(_0x2393a1(0x17a))/0x3)+parseInt(_0x2393a1(0x17b))/0x4*(-parseInt(_0x2393a1(0x180))/0x5)+parseInt(_0x2393a1(0x17d))/0x6+parseInt(_0x2393a1(0x177))/0x7+-parseInt(_0x2393a1(0x17c))/0x8*(-parseInt(_0x2393a1(0x179))/0x9)+-parseInt(_0x2393a1(0x17e))/0xa;if(_0x3973fe===_0x35cac7)break;else _0x58a1bc['push'](_0x58a1bc['shift']());}catch(_0x2673b4){_0x58a1bc['push'](_0x58a1bc['shift']());}}}(a208_0x28ae,0x66339));function a208_0x5716(_0x2168e9,_0x34a836){_0x2168e9=_0x2168e9-0x177;var _0x28ae51=a208_0x28ae();var _0x57164d=_0x28ae51[_0x2168e9];return _0x57164d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x14fd64=a209_0x1fc7;(function(_0x1b628e,_0x445453){const _0x4f38a0=a209_0x1fc7,_0xb3f3ef=_0x1b628e();while(!![]){try{const _0x45c5aa=parseInt(_0x4f38a0(0x13e))/0x1+-parseInt(_0x4f38a0(0x13c))/0x2+-parseInt(_0x4f38a0(0x13d))/0x3*(-parseInt(_0x4f38a0(0x142))/0x4)+-parseInt(_0x4f38a0(0x145))/0x5*(parseInt(_0x4f38a0(0x143))/0x6)+parseInt(_0x4f38a0(0x141))/0x7+-parseInt(_0x4f38a0(0x144))/0x8*(-parseInt(_0x4f38a0(0x140))/0x9)+parseInt(_0x4f38a0(0x13f))/0xa;if(_0x45c5aa===_0x445453)break;else _0xb3f3ef['push'](_0xb3f3ef['shift']());}catch(_0x107c5e){_0xb3f3ef['push'](_0xb3f3ef['shift']());}}}(a209_0x3939,0x7e9cb));function a209_0x1fc7(_0x10b738,_0x1d1318){_0x10b738=_0x10b738-0x13c;const _0x393928=a209_0x3939();let _0x1fc73d=_0x393928[_0x10b738];return _0x1fc73d;}export const VERSION='2.3.4';export const GIT_TAG='v2.3.4-beta.4';export const GIT_COMMIT='f488f03';export const BUILD_TIME=a209_0x14fd64(0x146);function a209_0x3939(){const _0x5ea167=['295246iHocNy','4828wTItxM','1862658gZqFzv','152LEUZrB','15bshfpC','2026-07-14T03:18:42.654Z','679164KwbNfU','2019tHZOqM','245806gVhGdR','3838510ZFcCwc','144648IFZaCR'];a209_0x3939=function(){return _0x5ea167;};return a209_0x3939();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a210_0x33b4(_0x5bdc17,_0x5a0921){_0x5bdc17=_0x5bdc17-0x13f;var _0x594e38=a210_0x594e();var _0x33b486=_0x594e38[_0x5bdc17];return _0x33b486;}(function(_0x18690a,_0x4d37c8){var _0x461364=a210_0x33b4,_0x5e31e7=_0x18690a();while(!![]){try{var _0x26a6f1=parseInt(_0x461364(0x141))/0x1+-parseInt(_0x461364(0x13f))/0x2*(-parseInt(_0x461364(0x143))/0x3)+-parseInt(_0x461364(0x140))/0x4*(-parseInt(_0x461364(0x144))/0x5)+parseInt(_0x461364(0x14e))/0x6+parseInt(_0x461364(0x149))/0x7*(parseInt(_0x461364(0x14a))/0x8)+-parseInt(_0x461364(0x14d))/0x9*(-parseInt(_0x461364(0x14b))/0xa)+parseInt(_0x461364(0x142))/0xb*(-parseInt(_0x461364(0x148))/0xc);if(_0x26a6f1===_0x4d37c8)break;else _0x5e31e7['push'](_0x5e31e7['shift']());}catch(_0x35a18e){_0x5e31e7['push'](_0x5e31e7['shift']());}}}(a210_0x594e,0x250fd));import a210_0x4f0837 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1e99de=a210_0x33b4;console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)](a210_0x4f0837[_0x1e99de(0x145)][_0x1e99de(0x146)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)]('\x20\x20Use\x20'+a210_0x4f0837[_0x1e99de(0x145)]['bold'](CLI_BIN_NAME+_0x1e99de(0x14c))+'\x20to\x20view\x20available\x20commands.'),console[_0x1e99de(0x147)]();}function a210_0x594e(){var _0x344bc4=['bold','log','36cXThRO','495579pwjitu','24AZtzWM','717320KhmNSX','\x20--help','27wlGIaa','903402FnTJQF','250768ArTqbj','1444CjpusJ','39299tDCucj','2911018QAYasl','3nMFbmf','2810GmYFqw','green'];a210_0x594e=function(){return _0x344bc4;};return a210_0x594e();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57a1c1,_0x5014e0){const _0x4ba40a=a211_0x4565,_0x46f471=_0x57a1c1();while(!![]){try{const _0x79277e=parseInt(_0x4ba40a(0x1bc))/0x1*(parseInt(_0x4ba40a(0x1b1))/0x2)+-parseInt(_0x4ba40a(0x1a4))/0x3*(parseInt(_0x4ba40a(0x1ac))/0x4)+-parseInt(_0x4ba40a(0x19e))/0x5+parseInt(_0x4ba40a(0x1b3))/0x6*(-parseInt(_0x4ba40a(0x1a0))/0x7)+-parseInt(_0x4ba40a(0x1b8))/0x8+parseInt(_0x4ba40a(0x1a3))/0x9+parseInt(_0x4ba40a(0x1ba))/0xa*(parseInt(_0x4ba40a(0x19f))/0xb);if(_0x79277e===_0x5014e0)break;else _0x46f471['push'](_0x46f471['shift']());}catch(_0x5f2653){_0x46f471['push'](_0x46f471['shift']());}}}(a211_0x7a10,0x244d9));function a211_0x7a10(){const _0x124125=['Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','push','has','(empty)','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','16zleEeO','enable-bff-save','cwd','entries','toLowerCase','1448ZQVOca','skill','6juJNxF','不支持的命令:\x20','log','dangerously-bff-save','includes','2353672nnFTkw','slice','1462660eeZKfQ','from','202bDqudW','error','help','add','replace','-$1','1021565AiwMAk','55IZTvvC','844977jTFopb','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','424692TuADEI','117627gsrVnt'];a211_0x7a10=function(){return _0x124125;};return a211_0x7a10();}function a211_0x4565(_0x18159f,_0x715bc9){_0x18159f=_0x18159f-0x19a;const _0x7a1006=a211_0x7a10();let _0x45654a=_0x7a1006[_0x18159f];return _0x45654a;}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(_0x239bdb){const _0x249a73=a211_0x4565,_0x2a1bf8=[];for(const [_0x5cdf18,_0x2b218f]of Object[_0x249a73(0x1af)](_0x239bdb)){if(_0x2b218f===!![]){const _0x38fdd6=_0x5cdf18[_0x249a73(0x19c)](/([A-Z])/g,_0x249a73(0x19d))[_0x249a73(0x1b0)]();_0x2a1bf8['push'](_0x38fdd6);}}return _0x2a1bf8;}export function parseDynamicFlags(){const _0x5eab88=a211_0x4565,_0x2a3a8d=[];for(let _0x20e5ca=0x3;_0x20e5ca<process[_0x5eab88(0x1a1)][_0x5eab88(0x1ab)];_0x20e5ca++){const _0x50a0a5=process[_0x5eab88(0x1a1)][_0x20e5ca];if(_0x50a0a5&&_0x50a0a5['startsWith']('--')){const _0x25bbe0=_0x50a0a5[_0x5eab88(0x1b9)](0x2);_0x25bbe0&&!_0x25bbe0[_0x5eab88(0x1b7)]('=')&&_0x2a3a8d[_0x5eab88(0x1a7)](_0x25bbe0);}}return _0x2a3a8d;}export function getAllProvidedFlags(_0x5bf433){const _0x5cb76c=a211_0x4565,_0x2635a6=camelCaseFlagsToKebab(_0x5bf433),_0x2be717=parseDynamicFlags(),_0x417c03=new Set([..._0x2635a6,..._0x2be717]);return Array[_0x5cb76c(0x1bb)](_0x417c03);}export function normalizeLegacyBffSaveFlags(_0x4ed56c){const _0x5443ad=a211_0x4565,_0x111f6c=new Set(_0x4ed56c);return _0x111f6c[_0x5443ad(0x1a8)](_0x5443ad(0x1b6))&&_0x111f6c[_0x5443ad(0x19b)](_0x5443ad(0x1ad)),Array[_0x5443ad(0x1bb)](_0x111f6c);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x578b98,_0x1bb863,_0x429c91){const _0x3d1b7b=a211_0x4565;logger['setLogPath'](process[_0x3d1b7b(0x1ae)]());if(_0x429c91?.[_0x3d1b7b(0x19a)]||_0x578b98==='--help'){showHelp();return;}console['error'](_0x3d1b7b(0x1a6)+(_0x578b98||_0x3d1b7b(0x1a9))),console['log']('\x0aAvailable\x20commands:'),console[_0x3d1b7b(0x1b5)]('\x20\x20'+CLI_BIN_NAME+_0x3d1b7b(0x1aa)),console[_0x3d1b7b(0x1b5)](''),console['log'](_0x3d1b7b(0x1a5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3d1b7b(0x1bd)](_0x3d1b7b(0x1b2),_0x3d1b7b(0x1b4)+_0x578b98),process['exit'](0x1);}function showHelp(){const _0x480a22=a211_0x4565;console['log'](_0x480a22(0x1a2)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a212_0x37b2(){const _0xc8a23=['stderr','pipe','skill','trim','exit\x20','log','963540NmaNbs','--skill','1941010zdvCKd','3374iZaPGw','status','remove','383820vEmmeW','yes','stdout','inherit','2071434eeOhPS','stdio','toString','1016OJzpLN','unknown','push','67pjBdXu','2471PQzVEj','lovrabet/rabetbase','add','join','npx','1046056UZaxAZ','skills'];a212_0x37b2=function(){return _0xc8a23;};return a212_0x37b2();}const a212_0x355471=a212_0xd9dd;(function(_0x20ad9d,_0x55b1db){const _0x55d456=a212_0xd9dd,_0x5a5ea7=_0x20ad9d();while(!![]){try{const _0x656d8f=-parseInt(_0x55d456(0x1aa))/0x1*(-parseInt(_0x55d456(0x19d))/0x2)+-parseInt(_0x55d456(0x1a0))/0x3+parseInt(_0x55d456(0x1b0))/0x4+parseInt(_0x55d456(0x19c))/0x5+-parseInt(_0x55d456(0x1a4))/0x6+parseInt(_0x55d456(0x1ab))/0x7*(parseInt(_0x55d456(0x1a7))/0x8)+-parseInt(_0x55d456(0x19a))/0x9;if(_0x656d8f===_0x55b1db)break;else _0x5a5ea7['push'](_0x5a5ea7['shift']());}catch(_0x540aca){_0x5a5ea7['push'](_0x5a5ea7['shift']());}}}(a212_0x37b2,0x37809));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a212_0x355471(0x1b1);export const NPX_SKILLS_SUBCOMMAND_ADD=a212_0x355471(0x1ad);export const NPX_SKILLS_FLAG_SKILL=a212_0x355471(0x19b);function a212_0xd9dd(_0x1ce9a1,_0x571627){_0x1ce9a1=_0x1ce9a1-0x197;const _0x37b23b=a212_0x37b2();let _0xd9dd4a=_0x37b23b[_0x1ce9a1];return _0xd9dd4a;}export const RABETBASE_SKILL_SOURCE=a212_0x355471(0x1ac);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x1833f1){const _0x5b3fbd=a212_0x355471,_0x637502=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1833f1&&_0x637502[_0x5b3fbd(0x1a9)](NPX_SKILLS_FLAG_SKILL,_0x1833f1),_0x637502;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a212_0x355471(0x1af),...buildNpxSkillsAddArgv()][a212_0x355471(0x1ae)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a212_0x355471(0x1af),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a212_0x355471(0x1ae)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x58bb71,_0x5e7311){const _0x1ff7c7=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x12cea0=_0x5e7311?.[_0x1ff7c7(0x1a5)]??_0x1ff7c7(0x1a3),_0x54a2c3=resolveNpmBin('npx'),_0x6f9053=buildNpxSkillsAddArgv(_0x5e7311?.[_0x1ff7c7(0x1b4)]),_0x505e8=[_0x1ff7c7(0x1af),..._0x6f9053][_0x1ff7c7(0x1ae)]('\x20');console[_0x1ff7c7(0x199)]('*\x20'+_0x505e8);const _0x593a32=spawnSync(_0x54a2c3,_0x6f9053,{'cwd':_0x58bb71,'stdio':_0x12cea0,'env':process.env,'shell':![]}),_0x1d9836=_0x593a32[_0x1ff7c7(0x19e)];if(_0x1d9836===0x0)return{'ok':!![],'status':0x0};let _0x4cd9e9=_0x1ff7c7(0x198)+(_0x1d9836??_0x1ff7c7(0x1a8));if(_0x12cea0===_0x1ff7c7(0x1b3)){const _0x5af8d9=_0x593a32[_0x1ff7c7(0x1b2)]?_0x593a32[_0x1ff7c7(0x1b2)]['toString']()[_0x1ff7c7(0x197)]():'',_0x5d721b=_0x593a32[_0x1ff7c7(0x1a2)]?_0x593a32[_0x1ff7c7(0x1a2)]['toString']()[_0x1ff7c7(0x197)]():'';if(_0x5af8d9)_0x4cd9e9=_0x5af8d9;else{if(_0x5d721b)_0x4cd9e9=_0x5d721b;}}return{'ok':![],'status':_0x1d9836??null,'error':_0x4cd9e9};}export function runNpxSkillsRemove(_0x2d845e,_0x16a8a3,_0x3ad8c5=LEGACY_RABETBASE_SKILL_SOURCE){const _0x46da6f=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x231359=_0x16a8a3?.[_0x46da6f(0x1a5)]??'inherit',_0x1106c3=resolveNpmBin('npx'),_0x4e7b10=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x46da6f(0x19f),_0x3ad8c5,NPX_SKILLS_FLAG_SKILL,_0x16a8a3?.[_0x46da6f(0x1b4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x16a8a3?.[_0x46da6f(0x1a1)]?['-y']:[]],_0x573c0=[_0x1106c3,..._0x4e7b10]['join']('\x20');console['log']('*\x20'+_0x573c0);const _0x518137=spawnSync(_0x1106c3,_0x4e7b10,{'cwd':_0x2d845e,'stdio':_0x231359,'env':process.env,'shell':![]}),_0xb3978=_0x518137[_0x46da6f(0x19e)];if(_0xb3978===0x0)return{'ok':!![],'status':0x0};let _0x350bf8=_0x46da6f(0x198)+(_0xb3978??'unknown');if(_0x231359===_0x46da6f(0x1b3)){const _0x43a8e3=_0x518137[_0x46da6f(0x1b2)]?_0x518137['stderr'][_0x46da6f(0x1a6)]()[_0x46da6f(0x197)]():'',_0x31cb36=_0x518137['stdout']?_0x518137[_0x46da6f(0x1a2)]['toString']()[_0x46da6f(0x197)]():'';if(_0x43a8e3)_0x350bf8=_0x43a8e3;else{if(_0x31cb36)_0x350bf8=_0x31cb36;}}return{'ok':![],'status':_0xb3978??null,'error':_0x350bf8};}export function runNpxSkillsAddGlobal(_0x208607,_0x5448bc,_0x1b72d2){const _0x303bfe=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x496bd0=_0x1b72d2?.['stdio']??_0x303bfe(0x1a3),_0x5cb03=resolveNpmBin(_0x303bfe(0x1af)),_0x537dd3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5448bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x18e3bb=[_0x303bfe(0x1af),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5448bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x303bfe(0x1ae)]('\x20');console[_0x303bfe(0x199)]('*\x20'+_0x18e3bb);const _0x577baf=spawnSync(_0x5cb03,_0x537dd3,{'cwd':_0x208607,'stdio':_0x496bd0,'env':process.env,'shell':![]}),_0xedd0ba=_0x577baf[_0x303bfe(0x19e)];if(_0xedd0ba===0x0)return{'ok':!![],'status':0x0};let _0x1877c0='exit\x20'+(_0xedd0ba??_0x303bfe(0x1a8));if(_0x496bd0==='pipe'){const _0x409a98=_0x577baf[_0x303bfe(0x1b2)]?_0x577baf[_0x303bfe(0x1b2)]['toString']()[_0x303bfe(0x197)]():'',_0xaa330c=_0x577baf[_0x303bfe(0x1a2)]?_0x577baf[_0x303bfe(0x1a2)][_0x303bfe(0x1a6)]()[_0x303bfe(0x197)]():'';if(_0x409a98)_0x1877c0=_0x409a98;else{if(_0xaa330c)_0x1877c0=_0xaa330c;}}return{'ok':![],'status':_0xedd0ba??null,'error':_0x1877c0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xf7f1b0,_0x349a5f){const _0x14055d=a213_0x4a44,_0x123c6f=_0xf7f1b0();while(!![]){try{const _0x11022a=parseInt(_0x14055d(0x99))/0x1*(parseInt(_0x14055d(0xab))/0x2)+-parseInt(_0x14055d(0xae))/0x3*(parseInt(_0x14055d(0xa6))/0x4)+-parseInt(_0x14055d(0xa1))/0x5*(parseInt(_0x14055d(0xa8))/0x6)+parseInt(_0x14055d(0xaa))/0x7+-parseInt(_0x14055d(0xa7))/0x8*(parseInt(_0x14055d(0xaf))/0x9)+-parseInt(_0x14055d(0x9a))/0xa*(-parseInt(_0x14055d(0xa5))/0xb)+parseInt(_0x14055d(0xac))/0xc*(parseInt(_0x14055d(0x9d))/0xd);if(_0x11022a===_0x349a5f)break;else _0x123c6f['push'](_0x123c6f['shift']());}catch(_0xe06f6e){_0x123c6f['push'](_0x123c6f['shift']());}}}(a213_0x1642,0x7f2a9));function a213_0x1642(){const _0x450cca=['command','1819412NfYbHG','36508kowsSo','12PjTqYl','[REDACTED]','960PNMcNZ','4122lUEOsN','56NrLFDD','10TgddQh','flags','error','15137603nUPcPV','durationMs','test','message','620985hPkjDb','entries','some','rabetbase.command','531883VliaWu','11488ydKToC','11920nNEdNY','18tXAsdD'];a213_0x1642=function(){return _0x450cca;};return a213_0x1642();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a213_0x4a44(_0x11f812,_0x18d74e){_0x11f812=_0x11f812-0x99;const _0x1642c3=a213_0x1642();let _0x4a44e0=_0x1642c3[_0x11f812];return _0x4a44e0;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x18ee1c){const _0x2b318c=a213_0x4a44;return SENSITIVE_PATTERNS[_0x2b318c(0xa3)](_0x277e6f=>_0x277e6f[_0x2b318c(0x9f)](_0x18ee1c));}function sanitizeFlags(_0x4aeb2e){const _0x116430=a213_0x4a44,_0x57bd10={};for(const [_0x3093ec,_0x81cc7c]of Object[_0x116430(0xa2)](_0x4aeb2e)){isSensitiveKey(_0x3093ec)?_0x57bd10[_0x3093ec]=_0x81cc7c!=null&&_0x81cc7c!==''?_0x116430(0xad):_0x81cc7c:_0x57bd10[_0x3093ec]=_0x81cc7c;}return _0x57bd10;}export async function reportCommandTrace(_0x16772c){const _0x4116f1=a213_0x4a44;try{const _0x1a0490=sanitizeFlags(_0x16772c[_0x4116f1(0x9b)]);await sendCliTraceLog({'spanName':_0x4116f1(0xa4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x16772c['service'],'command.name':_0x16772c[_0x4116f1(0xa9)],'command.flags':JSON['stringify'](_0x1a0490),..._0x16772c[_0x4116f1(0x9e)]!=null?{'command.duration_ms':_0x16772c['durationMs']}:{},..._0x16772c[_0x4116f1(0x9c)]?{'command.error':_0x16772c[_0x4116f1(0x9c)]instanceof Error?_0x16772c['error'][_0x4116f1(0xa0)]:String(_0x16772c[_0x4116f1(0x9c)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x324f(_0x51240d,_0x4bc01a){_0x51240d=_0x51240d-0x65;var _0x33a111=a214_0x33a1();var _0x324ff3=_0x33a111[_0x51240d];return _0x324ff3;}(function(_0x385010,_0x1f8fe0){var _0x8a0b5c=a214_0x324f,_0xec9e42=_0x385010();while(!![]){try{var _0x16f6a8=parseInt(_0x8a0b5c(0x6d))/0x1*(-parseInt(_0x8a0b5c(0x69))/0x2)+-parseInt(_0x8a0b5c(0x70))/0x3+-parseInt(_0x8a0b5c(0x67))/0x4*(parseInt(_0x8a0b5c(0x6e))/0x5)+parseInt(_0x8a0b5c(0x65))/0x6+-parseInt(_0x8a0b5c(0x66))/0x7+parseInt(_0x8a0b5c(0x6f))/0x8+parseInt(_0x8a0b5c(0x6b))/0x9;if(_0x16f6a8===_0x1f8fe0)break;else _0xec9e42['push'](_0xec9e42['shift']());}catch(_0xf43cef){_0xec9e42['push'](_0xec9e42['shift']());}}}(a214_0x33a1,0x4dd4a));function a214_0x33a1(){var _0x4cfe20=['2934725wWOEEh','238560KVlzXj','1438761HCvuOv','error','2746194fRufNr','850724vvKywv','4YpwYVZ','service','22cHlWlf','cli.help','9309780Btbjlv','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1371Jmugpc'];a214_0x33a1=function(){return _0x4cfe20;};return a214_0x33a1();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4be2e,_0x44b274){var _0x1d6e39=a214_0x324f;try{await sendCliTraceLog({'spanName':_0x1d6e39(0x6a),'logData':{'rabetbase.help.kind':_0x4be2e,..._0x44b274?.[_0x1d6e39(0x68)]&&{'rabetbase.help.service':_0x44b274[_0x1d6e39(0x68)]}}});}catch(_0x2bd629){console[_0x1d6e39(0x71)](_0x1d6e39(0x6c),_0x2bd629);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10e49a,_0x310b36){const _0x312a17=a215_0x2a26,_0x1b9905=_0x10e49a();while(!![]){try{const _0x4d8b7c=-parseInt(_0x312a17(0x199))/0x1*(-parseInt(_0x312a17(0x19b))/0x2)+-parseInt(_0x312a17(0x19f))/0x3*(-parseInt(_0x312a17(0x19a))/0x4)+parseInt(_0x312a17(0x197))/0x5*(parseInt(_0x312a17(0x198))/0x6)+parseInt(_0x312a17(0x19d))/0x7+-parseInt(_0x312a17(0x19c))/0x8*(-parseInt(_0x312a17(0x1a1))/0x9)+-parseInt(_0x312a17(0x194))/0xa+parseInt(_0x312a17(0x195))/0xb*(-parseInt(_0x312a17(0x1a0))/0xc);if(_0x4d8b7c===_0x310b36)break;else _0x1b9905['push'](_0x1b9905['shift']());}catch(_0x27cc8c){_0x1b9905['push'](_0x1b9905['shift']());}}}(a215_0xdb39,0xef9a6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a215_0x2a26(_0x3f3828,_0x27a9a2){_0x3f3828=_0x3f3828-0x190;const _0xdb39b2=a215_0xdb39();let _0x2a2689=_0xdb39b2[_0x3f3828];return _0x2a2689;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a215_0xdb39(){const _0xd27c0b=['user','1576280DkvJxD','11CAhFee','tenant_code','740AuQiLt','44388JiAvTY','1jwCrbV','540oiNAPZ','2290006BbcQiy','8oyBgkK','10900337gSlkFc','daily','30237FUESqU','64620396qtcPQU','12296808JIPVrs','email','production','username','tenant'];a215_0xdb39=function(){return _0xd27c0b;};return a215_0xdb39();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1885cb=a215_0x2a26,_0x1c549e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x18347b=_0x1c549e?.[_0x1885cb(0x193)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1885cb(0x19e):_0x1885cb(0x190))}),setUserContext({'id':_0x18347b?.['id'],'username':_0x18347b?.[_0x1885cb(0x191)],'nickname':_0x18347b?.['nickname'],'email':_0x18347b?.[_0x1885cb(0x1a2)],'tenantCode':_0x18347b?.[_0x1885cb(0x192)][_0x1885cb(0x196)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1c549e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x261d0c,_0x401ba2){const _0x1f5773=a216_0x1873,_0x5ddb51=_0x261d0c();while(!![]){try{const _0x8e8e85=-parseInt(_0x1f5773(0x1a8))/0x1*(-parseInt(_0x1f5773(0x1a6))/0x2)+-parseInt(_0x1f5773(0x1a7))/0x3+parseInt(_0x1f5773(0x1aa))/0x4+-parseInt(_0x1f5773(0x1a9))/0x5*(parseInt(_0x1f5773(0x1ab))/0x6)+parseInt(_0x1f5773(0x1a5))/0x7*(-parseInt(_0x1f5773(0x1a0))/0x8)+parseInt(_0x1f5773(0x1ad))/0x9+parseInt(_0x1f5773(0x1a4))/0xa*(parseInt(_0x1f5773(0x19f))/0xb);if(_0x8e8e85===_0x401ba2)break;else _0x5ddb51['push'](_0x5ddb51['shift']());}catch(_0x15c761){_0x5ddb51['push'](_0x5ddb51['shift']());}}}(a216_0x1d0e,0xf069b));function a216_0x1d0e(){const _0x313fd9=['10569464EoybFI','beforeExit','exit','SIGTERM','322130sanikt','7LnVUsj','74itUDZD','621123iJgXzF','13487eEAXbO','20tSVgYh','3214796ROgtrb','469830pFyKUr','once','1824516kjrMEY','451GvDtMk'];a216_0x1d0e=function(){return _0x313fd9;};return a216_0x1d0e();}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 _0x2d7525=a216_0x1873;process[_0x2d7525(0x1ac)](_0x2d7525(0x1a1),()=>{void flushOtelNodeIfUsed();});const _0x2a5c00=()=>{const _0x45003d=_0x2d7525;void flushOtelNodeIfUsed()['then'](()=>process[_0x45003d(0x1a2)](0x0));};process['once']('SIGINT',_0x2a5c00),process[_0x2d7525(0x1ac)](_0x2d7525(0x1a3),_0x2a5c00);}function a216_0x1873(_0x57701c,_0xe37bbb){_0x57701c=_0x57701c-0x19f;const _0x1d0e32=a216_0x1d0e();let _0x187365=_0x1d0e32[_0x57701c];return _0x187365;}export async function exitWithOtelShutdown(_0x4814af){const _0x400855=a216_0x1873;await flushOtelNodeIfUsed(),process[_0x400855(0x1a2)](_0x4814af);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0xae0f2=a217_0x4239;(function(_0x6d1ee9,_0x219973){const _0x23eecc=a217_0x4239,_0x72e36c=_0x6d1ee9();while(!![]){try{const _0x717f3c=parseInt(_0x23eecc(0xa7))/0x1+parseInt(_0x23eecc(0xa0))/0x2+-parseInt(_0x23eecc(0xa6))/0x3*(parseInt(_0x23eecc(0xa4))/0x4)+parseInt(_0x23eecc(0xa9))/0x5+-parseInt(_0x23eecc(0xa3))/0x6*(-parseInt(_0x23eecc(0xa1))/0x7)+-parseInt(_0x23eecc(0xa5))/0x8*(-parseInt(_0x23eecc(0x9f))/0x9)+-parseInt(_0x23eecc(0x9d))/0xa;if(_0x717f3c===_0x219973)break;else _0x72e36c['push'](_0x72e36c['shift']());}catch(_0x6cb53c){_0x72e36c['push'](_0x72e36c['shift']());}}}(a217_0x5260,0x69571));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a217_0x4239(_0x1d14de,_0x2d9b15){_0x1d14de=_0x1d14de-0x9d;const _0x52605e=a217_0x5260();let _0x42391d=_0x52605e[_0x1d14de];return _0x42391d;}import{getCliVersion}from'../utils/version.js';function a217_0x5260(){const _0x4102e5=['4AGSTRB','24GOtuHR','1345647AnVAaA','232143Ldoppk','traceName','3199235KLZEBj','traceparent','version','manual','14602620EAsHDx','rabetbase-cli','2211471WCKdfQ','52704mTZfoF','159145jntSDw','spanName','186qhlmCE'];a217_0x5260=function(){return _0x4102e5;};return a217_0x5260();}const DEFAULT_TRACE_NAME=a217_0xae0f2(0x9e);export async function sendCliTraceLog(_0x386cf2){const _0x2e7202=a217_0xae0f2;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x386cf2[_0x2e7202(0xa8)]??DEFAULT_TRACE_NAME,'version':_0x386cf2[_0x2e7202(0xab)]??getCliVersion(),'spanName':_0x386cf2[_0x2e7202(0xa2)],'eventType':_0x2e7202(0xac),'logData':_0x386cf2['logData'],..._0x386cf2['traceparent']&&{'traceparent':_0x386cf2[_0x2e7202(0xaa)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x36968d=a218_0x1b9e;(function(_0x35cbe6,_0x5384f3){const _0x4f8cf2=a218_0x1b9e,_0x5c9a7b=_0x35cbe6();while(!![]){try{const _0x99e72=parseInt(_0x4f8cf2(0x1b7))/0x1*(-parseInt(_0x4f8cf2(0x1ab))/0x2)+-parseInt(_0x4f8cf2(0x1ad))/0x3+parseInt(_0x4f8cf2(0x1aa))/0x4+-parseInt(_0x4f8cf2(0x1af))/0x5+-parseInt(_0x4f8cf2(0x1b2))/0x6*(parseInt(_0x4f8cf2(0x1ac))/0x7)+parseInt(_0x4f8cf2(0x1b3))/0x8*(parseInt(_0x4f8cf2(0x1b4))/0x9)+-parseInt(_0x4f8cf2(0x1ae))/0xa*(-parseInt(_0x4f8cf2(0x1b1))/0xb);if(_0x99e72===_0x5384f3)break;else _0x5c9a7b['push'](_0x5c9a7b['shift']());}catch(_0x59e6da){_0x5c9a7b['push'](_0x5c9a7b['shift']());}}}(a218_0x8f97,0x6d558));function a218_0x8f97(){const _0x568cdc=['description','179212mtMCuc','489178NMixSN','619647JegckM','1544706PjnBPQ','8490UyjhqH','1302220fTVcSv','redactionKinds','23518RzhiUI','42kAwjnk','184936yFwVah','279kgVlKK','sanitize','platform-issue-log-collect','3PeYnYS'];a218_0x8f97=function(){return _0x568cdc;};return a218_0x8f97();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a218_0x36968d(0x1b6);function a218_0x1b9e(_0x35a1bc,_0x5644e9){_0x35a1bc=_0x35a1bc-0x1aa;const _0x8f97e6=a218_0x8f97();let _0x1b9e81=_0x8f97e6[_0x35a1bc];return _0x1b9e81;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x1f6f64){const _0x2537a7=a218_0x36968d;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1f6f64['title'],'issue.description':_0x1f6f64[_0x2537a7(0x1b8)],..._0x1f6f64['sanitize']?{'issue.description_original_bytes':_0x1f6f64[_0x2537a7(0x1b5)]['originalBytes'],'issue.description_truncated':_0x1f6f64['sanitize']['truncated'],'issue.description_redactions':_0x1f6f64[_0x2537a7(0x1b5)]['redactionCount'],'issue.description_redaction_kinds':_0x1f6f64[_0x2537a7(0x1b5)][_0x2537a7(0x1b0)]['join'](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x4c32ca=a220_0x22a2;(function(_0x3a886d,_0xa6219e){const _0x1add1e=a220_0x22a2,_0x2e77e2=_0x3a886d();while(!![]){try{const _0x1dc935=parseInt(_0x1add1e(0x16c))/0x1*(parseInt(_0x1add1e(0x16a))/0x2)+-parseInt(_0x1add1e(0x15a))/0x3*(parseInt(_0x1add1e(0x17a))/0x4)+parseInt(_0x1add1e(0x156))/0x5*(parseInt(_0x1add1e(0x16e))/0x6)+parseInt(_0x1add1e(0x16f))/0x7+parseInt(_0x1add1e(0x17d))/0x8+parseInt(_0x1add1e(0x16d))/0x9*(parseInt(_0x1add1e(0x171))/0xa)+-parseInt(_0x1add1e(0x167))/0xb;if(_0x1dc935===_0xa6219e)break;else _0x2e77e2['push'](_0x2e77e2['shift']());}catch(_0x32fc6e){_0x2e77e2['push'](_0x2e77e2['shift']());}}}(a220_0x1e24,0xf0be7));export const CORE_IDE_CONFIGS={'cursor':{'name':a220_0x4c32ca(0x15d),'description':a220_0x4c32ca(0x170),'folders':[a220_0x4c32ca(0x154),'.cursor'],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x168),'template':a220_0x4c32ca(0x14c)}]},'windsurf':{'name':a220_0x4c32ca(0x175),'description':'Windsurf\x20IDE','folders':[a220_0x4c32ca(0x17b)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.windsurf/workflows/rabetbase.md','template':a220_0x4c32ca(0x14c)}]},'claude':{'name':a220_0x4c32ca(0x16b),'description':'Claude\x20Code','folders':[a220_0x4c32ca(0x165)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x153),'template':a220_0x4c32ca(0x14c)}]},'cline':{'name':a220_0x4c32ca(0x178),'description':'Cline\x20IDE','folders':[a220_0x4c32ca(0x174)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x149),'template':a220_0x4c32ca(0x14c)}]},'codex':{'name':a220_0x4c32ca(0x151),'description':a220_0x4c32ca(0x179),'folders':[a220_0x4c32ca(0x150)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.codex/skills/lovrabet/SKILL.md','template':a220_0x4c32ca(0x14c)}]},'opencode':{'name':a220_0x4c32ca(0x161),'description':'OpenCode\x20IDE','folders':[a220_0x4c32ca(0x160)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x166),'template':a220_0x4c32ca(0x14c)}]},'qoder':{'name':a220_0x4c32ca(0x163),'description':a220_0x4c32ca(0x176),'folders':[a220_0x4c32ca(0x17e)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x17c),'template':a220_0x4c32ca(0x14c)},{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x162),'template':a220_0x4c32ca(0x14c)}]},'codebuddy':{'name':a220_0x4c32ca(0x15e),'description':'CodeBuddy\x20IDE','folders':[a220_0x4c32ca(0x15f)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a220_0x4c32ca(0x148),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a220_0x4c32ca(0x15c),'template':a220_0x4c32ca(0x14c)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a220_0x4c32ca(0x177),'description':a220_0x4c32ca(0x157),'folders':[a220_0x4c32ca(0x158)],'files':[{'type':'file','path':a220_0x4c32ca(0x14f),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a220_0x4c32ca(0x172),'description':a220_0x4c32ca(0x159),'folders':['.agent'],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x14f),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a220_0x4c32ca(0x164),a220_0x4c32ca(0x14a),a220_0x4c32ca(0x14b),a220_0x4c32ca(0x14d),a220_0x4c32ca(0x169),a220_0x4c32ca(0x14e),a220_0x4c32ca(0x173),a220_0x4c32ca(0x155),a220_0x4c32ca(0x152)];function a220_0x1e24(){const _0x1b957e=['.codex','Codex','windsurf','.claude/skills/lovrabet/SKILL.md','.cursorrules','trae','5qiLwLM','通用模板\x20-\x20兜底方案','.agent','Antigravity\x20IDE','15ZNDIHY','file','.trae/skills/lovrabet/SKILL.md','Cursor','CodeBuddy','.codebuddy','.opencode','OpenCode','.qoder/skills/lovrabet/SKILL.md','Qoder','claude','.claude','.opencode/skills/lovrabet/SKILL.md','76960235cruJHK','.cursor/skills/rabetbase.md','cursor','3225428csqoMG','Claude\x20Code','1DOjIkJ','26127PXNAWX','9859326DiNHFf','12021296PdSiSk','Cursor\x20IDE','5520ACdLGc','Antigravity','qoder','.cline','Windsurf','Qoder\x20IDE','其他\x20(通用模板)','Cline','Codex\x20IDE','390596NhzwPF','.windsurf','.qoder/rules/rabetbase.md','15159984upFrKs','.qoder','Trae','.cline/skills/lovrabet/SKILL.md','cline','codebuddy','SKILL.md.tpl','codex','opencode','.agent/skills/lovrabet/SKILL.md'];a220_0x1e24=function(){return _0x1b957e;};return a220_0x1e24();}function a220_0x22a2(_0x18e529,_0x304c1c){_0x18e529=_0x18e529-0x148;const _0x1e248d=a220_0x1e24();let _0x22a205=_0x1e248d[_0x18e529];return _0x22a205;}export const IDE_LIST=['antigravity',a220_0x4c32ca(0x164),'cline',a220_0x4c32ca(0x14b),'codex',a220_0x4c32ca(0x169),a220_0x4c32ca(0x14e),'qoder',a220_0x4c32ca(0x155),a220_0x4c32ca(0x152),'agent'];export const ALL_CORE_IDES=[a220_0x4c32ca(0x169),a220_0x4c32ca(0x152),'claude',a220_0x4c32ca(0x14a),a220_0x4c32ca(0x14d),a220_0x4c32ca(0x14e),a220_0x4c32ca(0x173),a220_0x4c32ca(0x14b),a220_0x4c32ca(0x155)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15f046,_0x44ba1e){const _0x53a249=a221_0x58dc,_0x523efa=_0x15f046();while(!![]){try{const _0x33e06b=parseInt(_0x53a249(0x1cd))/0x1+parseInt(_0x53a249(0x1d5))/0x2+parseInt(_0x53a249(0x1d4))/0x3*(-parseInt(_0x53a249(0x1ce))/0x4)+-parseInt(_0x53a249(0x1d1))/0x5*(-parseInt(_0x53a249(0x1d6))/0x6)+-parseInt(_0x53a249(0x1d0))/0x7*(-parseInt(_0x53a249(0x1d2))/0x8)+parseInt(_0x53a249(0x1cf))/0x9+-parseInt(_0x53a249(0x1d3))/0xa;if(_0x33e06b===_0x44ba1e)break;else _0x523efa['push'](_0x523efa['shift']());}catch(_0x2f883c){_0x523efa['push'](_0x523efa['shift']());}}}(a221_0x9dd4,0x93431));function a221_0x9dd4(){const _0x370c96=['1268802apbglV','705035BymtWh','4bBxsao','745857PGTaQM','2653jKElLb','10iPnOss','13864RQvWWM','20940280ZGNjwE','1006431nHUoBP','2330082yhcbgZ'];a221_0x9dd4=function(){return _0x370c96;};return a221_0x9dd4();}function a221_0x58dc(_0x398ca2,_0x303bd6){_0x398ca2=_0x398ca2-0x1cd;const _0x9dd45d=a221_0x9dd4();let _0x58dc58=_0x9dd45d[_0x398ca2];return _0x58dc58;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';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(_0x5d8dc0,_0x56a49f){const _0x56004d=a222_0x2414,_0xb933d3=_0x5d8dc0();while(!![]){try{const _0x4e4395=parseInt(_0x56004d(0x1cb))/0x1+parseInt(_0x56004d(0x1cd))/0x2+parseInt(_0x56004d(0x1c6))/0x3+-parseInt(_0x56004d(0x1ca))/0x4+-parseInt(_0x56004d(0x1c4))/0x5+parseInt(_0x56004d(0x1c9))/0x6*(-parseInt(_0x56004d(0x1c7))/0x7)+parseInt(_0x56004d(0x1cc))/0x8*(parseInt(_0x56004d(0x1d3))/0x9);if(_0x4e4395===_0x56a49f)break;else _0xb933d3['push'](_0xb933d3['shift']());}catch(_0x3b6693){_0xb933d3['push'](_0xb933d3['shift']());}}}(a222_0x19ed,0xe8c44));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x51bde6=a222_0x2414,_0x2741d4=getTemplateBaseUrl(),_0x4c7370=[_0x2741d4+_0x51bde6(0x1d0),_0x2741d4+_0x51bde6(0x1d2)];for(const _0x4551dd of _0x4c7370){try{const _0x295366=await fetch(_0x4551dd,{'headers':{'Accept':_0x51bde6(0x1ce)}});if(!_0x295366['ok'])continue;const _0x159d6f=await _0x295366['json']();if(!_0x159d6f[_0x51bde6(0x1c5)]?.[_0x51bde6(0x1cf)]||!_0x159d6f['sdk']?.[_0x51bde6(0x1c8)]?.[_0x51bde6(0x1cf)])continue;return _0x159d6f;}catch{}}return null;}function a222_0x19ed(){const _0x480fcb=['/config/index.json','27YNgDfV','8578890SeDQHl','cli','3973689gZqWol','119ChAVaC','node','322536fuvfzE','676436JvrFrK','1380167bgqDsv','981608bHnyfi','1358636usPKzr','application/json','stableVersion','/config.json','now'];a222_0x19ed=function(){return _0x480fcb;};return a222_0x19ed();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a222_0x2414(_0x4666ce,_0x4b3c0c){_0x4666ce=_0x4666ce-0x1c4;const _0x19ed91=a222_0x19ed();let _0x24143f=_0x19ed91[_0x4666ce];return _0x24143f;}let hasCachedConfig=![];export async function getCdnConfig(){const _0xd2bc59=a222_0x2414,_0x572cac=Date[_0xd2bc59(0x1d1)]();if(hasCachedConfig){const _0x41777c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x572cac-cacheTime<_0x41777c)return cachedConfig;}const _0x27bcbc=await fetchCdnConfig();return cachedConfig=_0x27bcbc,cacheTime=_0x572cac,hasCachedConfig=!![],_0x27bcbc;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a223_0x286f19=a223_0x8d82;(function(_0x4d8316,_0x578475){const _0x557474=a223_0x8d82,_0x9a0ebe=_0x4d8316();while(!![]){try{const _0x2af096=-parseInt(_0x557474(0x15b))/0x1*(parseInt(_0x557474(0x16e))/0x2)+parseInt(_0x557474(0x151))/0x3*(-parseInt(_0x557474(0x153))/0x4)+-parseInt(_0x557474(0x150))/0x5*(-parseInt(_0x557474(0x161))/0x6)+-parseInt(_0x557474(0x15f))/0x7+-parseInt(_0x557474(0x157))/0x8*(parseInt(_0x557474(0x15d))/0x9)+-parseInt(_0x557474(0x173))/0xa*(parseInt(_0x557474(0x169))/0xb)+-parseInt(_0x557474(0x156))/0xc*(-parseInt(_0x557474(0x174))/0xd);if(_0x2af096===_0x578475)break;else _0x9a0ebe['push'](_0x9a0ebe['shift']());}catch(_0x8c5883){_0x9a0ebe['push'](_0x9a0ebe['shift']());}}}(a223_0x5b0b,0xec741));function a223_0x8d82(_0x1ecd13,_0x460087){_0x1ecd13=_0x1ecd13-0x14b;const _0x5b0bd8=a223_0x5b0b();let _0x8d824e=_0x5b0bd8[_0x1ecd13];return _0x8d824e;}import a223_0x2c883a from'node:fs';import a223_0x4b0348 from'node:path';function a223_0x5b0b(){const _0x3261a9=['14041379Dihggq','stableVersion','devDependencies','\x20\x20\x20Current\x20version:\x20','join','8CDTeWU','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','node','sdk','10SWUivL','26SSDntw','packageName','minVersion','\x20\x20\x20Upgrade\x20command:\x20','1.2.0','package.json','2479510xIwLOm','113961WyTUVb','latest','88OhajGT','coerce','dependencies','23431116qncNeE','2706760HhXPPq','log','readFileSync','test','229027cxRBzy','needsUpgrade','9eIKBXv','@lovrabet/sdk','461433sCgHQX','version','6xpuPYf','npm\x20install\x20','↪\x20SDK\x20update\x20available','parse','utf8','existsSync','all','node_modules'];a223_0x5b0b=function(){return _0x3261a9;};return a223_0x5b0b();}import a223_0x16716c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a223_0x286f19(0x14e);function isNonNumericVersion(_0xb3e4b9){const _0x398967=a223_0x286f19,_0x30210b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x30210b['some'](_0x131549=>_0x131549[_0x398967(0x15a)](_0xb3e4b9));}function getInstalledVersion(_0x1c6740,_0x1a9cb0){const _0x3f124f=a223_0x286f19;try{const _0x429c3d=a223_0x4b0348['join'](_0x1c6740,_0x3f124f(0x168),_0x1a9cb0,_0x3f124f(0x14f));if(a223_0x2c883a['existsSync'](_0x429c3d)){const _0x132cfb=JSON[_0x3f124f(0x164)](a223_0x2c883a['readFileSync'](_0x429c3d,'utf-8'));return _0x132cfb[_0x3f124f(0x160)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4e5774=a223_0x286f19;try{const _0x5090b2=await getCdnConfig();return _0x5090b2?.[_0x4e5774(0x172)]?.[_0x4e5774(0x171)]?.[_0x4e5774(0x16a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x164eb7=a223_0x286f19;try{const _0x1e9e7a=await getCdnConfig();return _0x1e9e7a?.[_0x164eb7(0x172)]?.[_0x164eb7(0x171)]?.[_0x164eb7(0x14b)]||_0x164eb7(0x15e);}catch{return _0x164eb7(0x15e);}}export async function checkSdkVersion(_0x284740){const _0x44a357=a223_0x286f19,_0x93d421=a223_0x4b0348[_0x44a357(0x16d)](_0x284740,'package.json'),[_0x14f753,_0x4e4738]=await Promise[_0x44a357(0x167)]([getSdkStableVersion(),getSdkPackageName()]),_0xbfec06=_0x14f753||FALLBACK_MIN_SDK_VERSION;if(!a223_0x2c883a['existsSync'](_0x93d421))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};try{const _0x9225b3=JSON[_0x44a357(0x164)](a223_0x2c883a[_0x44a357(0x159)](_0x93d421,_0x44a357(0x165))),_0x2d5c4d=_0x9225b3[_0x44a357(0x155)]||{},_0x3a7de1=_0x9225b3[_0x44a357(0x16b)]||{},_0x3233d0=_0x2d5c4d[_0x4e4738]||_0x3a7de1[_0x4e4738];if(!_0x3233d0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};let _0x342e50=getInstalledVersion(_0x284740,_0x4e4738);!_0x342e50&&(_0x342e50=_0x3233d0);if(isNonNumericVersion(_0x3233d0))return{'installed':!![],'version':_0x342e50,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};const _0x4264d2=a223_0x16716c[_0x44a357(0x154)](_0x342e50),_0x1f3b64=a223_0x16716c[_0x44a357(0x154)](_0xbfec06),_0x53ebb8=_0x4264d2&&_0x1f3b64?a223_0x16716c['lt'](_0x4264d2,_0x1f3b64):![];return{'installed':!![],'version':_0x342e50,'needsUpgrade':_0x53ebb8,'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};}}export function checkSdkVersionSync(_0x5f5106){const _0x12cd0b=a223_0x286f19,_0x39f8e8=a223_0x4b0348['join'](_0x5f5106,'package.json'),_0x5ece5b=_0x12cd0b(0x15e);if(!a223_0x2c883a[_0x12cd0b(0x166)](_0x39f8e8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};try{const _0xf2eeb4=JSON[_0x12cd0b(0x164)](a223_0x2c883a['readFileSync'](_0x39f8e8,_0x12cd0b(0x165))),_0x49bdb1=_0xf2eeb4[_0x12cd0b(0x155)]||{},_0x24ee45=_0xf2eeb4[_0x12cd0b(0x16b)]||{},_0x1eb219=_0x49bdb1[_0x5ece5b]||_0x24ee45[_0x5ece5b];if(!_0x1eb219)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};let _0x29b0b1=getInstalledVersion(_0x5f5106,_0x5ece5b);!_0x29b0b1&&(_0x29b0b1=_0x1eb219);if(isNonNumericVersion(_0x1eb219))return{'installed':!![],'version':_0x29b0b1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};const _0x494377=a223_0x16716c[_0x12cd0b(0x154)](_0x29b0b1),_0x5d1cd5=_0x494377?a223_0x16716c['lt'](_0x494377,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29b0b1,'needsUpgrade':_0x5d1cd5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3c0c94){const _0x4cb29a=a223_0x286f19;if(!_0x3c0c94[_0x4cb29a(0x15c)])return;const _0x3e34d9=_0x4cb29a(0x16f),_0x4becba='\x1b[0m',_0x36275f='\x1b[1m',_0x5c69f7=_0x3c0c94['packageName']||_0x4cb29a(0x15e),_0x1d8b5e=_0x3c0c94['stableVersion']||_0x3c0c94[_0x4cb29a(0x14c)],_0x4ea08f=_0x4cb29a(0x162)+_0x5c69f7+'@'+(_0x1d8b5e||_0x4cb29a(0x152));console['log'](),console['log'](''+_0x3e34d9+_0x36275f+_0x4cb29a(0x163)+_0x4becba),console[_0x4cb29a(0x158)](_0x3e34d9+_0x4cb29a(0x16c)+_0x5c69f7+'@'+_0x3c0c94['version']+_0x4becba),console[_0x4cb29a(0x158)](_0x3e34d9+_0x4cb29a(0x170)+_0x1d8b5e+_0x4becba),console['log'](_0x3e34d9+_0x4cb29a(0x14d)+_0x4ea08f+_0x4becba),console[_0x4cb29a(0x158)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13263b,_0x20b623){const _0x13ef69=a224_0x5990,_0x2fa4c1=_0x13263b();while(!![]){try{const _0x31be5f=-parseInt(_0x13ef69(0x1af))/0x1*(parseInt(_0x13ef69(0x1b6))/0x2)+parseInt(_0x13ef69(0x196))/0x3*(parseInt(_0x13ef69(0x1a4))/0x4)+parseInt(_0x13ef69(0x1b4))/0x5*(-parseInt(_0x13ef69(0x19a))/0x6)+-parseInt(_0x13ef69(0x19e))/0x7*(parseInt(_0x13ef69(0x195))/0x8)+parseInt(_0x13ef69(0x1a5))/0x9+-parseInt(_0x13ef69(0x1a2))/0xa*(-parseInt(_0x13ef69(0x199))/0xb)+-parseInt(_0x13ef69(0x1a1))/0xc*(-parseInt(_0x13ef69(0x1b2))/0xd);if(_0x31be5f===_0x20b623)break;else _0x2fa4c1['push'](_0x2fa4c1['shift']());}catch(_0x17e597){_0x2fa4c1['push'](_0x2fa4c1['shift']());}}}(a224_0x4f60,0xeebc4));import{readFileSync}from'node:fs';function a224_0x4f60(){const _0x1ec316=['\x20\x20\x20Minimum\x20supported:\x20','coerce','8XiziGn','877077JVEsRG','Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','11anPIaf','1032uOyViH','package.json','Minimum\x20supported:\x20','\x20\x20\x20','9370459HPzILH','stableVersion','belowMinimum','2503824OpsrFJ','2449140iyUUlY','\x20\x20\x20Current\x20CLI\x20version:\x20','12TtExpu','7869672GCABrY','\x1b[1m','npm\x20install\x20-g\x20','minimumVersionMessage','latest','version','upgradeMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','currentVersion','utf-8','1jqJGKw','Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','208wccuUD','filter','33775jFUdJa','minimumVersion','3712948QELbsv','\x20\x20\x20Recommended\x20stable:\x20','validation','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','log','↪\x20New\x20version\x20available','../..'];a224_0x4f60=function(){return _0x1ec316;};return a224_0x4f60();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a224_0x2836bc from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a224_0x5990(_0x320b42,_0x1c6b3e){_0x320b42=_0x320b42-0x190;const _0x4f609f=a224_0x4f60();let _0x599097=_0x4f609f[_0x320b42];return _0x599097;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x86c42e){const _0x4767bf=a224_0x5990,_0x35ee99=_0x86c42e[_0x4767bf(0x19f)]||_0x4767bf(0x1a9);return _0x4767bf(0x1a7)+NPM_PACKAGE_NAME+'@'+_0x35ee99;}function getCurrentCliVersion(){const _0xc6d963=a224_0x5990;try{const _0x2d37f9=fileURLToPath(import.meta.url),_0x56f8c0=resolve(dirname(_0x2d37f9),_0xc6d963(0x192)),_0x3b2ee1=resolve(_0x56f8c0,_0xc6d963(0x19b)),_0x6edcb=JSON['parse'](readFileSync(_0x3b2ee1,_0xc6d963(0x1ae)));return _0x6edcb[_0xc6d963(0x1aa)]||_0xc6d963(0x1bb);}catch{return _0xc6d963(0x1bb);}}export async function checkCliVersion(){const _0x1831be=a224_0x5990,_0x3b8051=getCurrentCliVersion(),_0x442442=await getCliVersionPolicy(),_0x3a3a10=_0x442442?.[_0x1831be(0x19f)]||null,_0x5222b8=_0x442442?.['minimumVersion']||null;let _0x220bc4=![],_0x11bac1=![];const _0x173f96=a224_0x2836bc[_0x1831be(0x194)](_0x3b8051);if(_0x173f96&&_0x3a3a10)try{const _0x47c156=a224_0x2836bc['coerce'](_0x3a3a10);if(_0x47c156)_0x220bc4=a224_0x2836bc['lt'](_0x173f96,_0x47c156);}catch{}if(_0x173f96&&_0x5222b8)try{const _0x28d14b=a224_0x2836bc['coerce'](_0x5222b8);if(_0x28d14b)_0x11bac1=a224_0x2836bc['lt'](_0x173f96,_0x28d14b);}catch{}return _0x11bac1&&(_0x220bc4=!![]),{'currentVersion':_0x3b8051,'stableVersion':_0x3a3a10,'minimumVersion':_0x5222b8,'needsUpgrade':_0x220bc4,'belowMinimum':_0x11bac1,'isPreRelease':![],'upgradeMessage':_0x442442?.[_0x1831be(0x1ab)],'minimumVersionMessage':_0x442442?.[_0x1831be(0x1a8)]};}export function printCliUpgradeWarning(_0x386864){const _0x402911=a224_0x5990;if(!_0x386864['needsUpgrade']&&!_0x386864[_0x402911(0x1a0)])return;const _0x568182='\x1b[31m',_0x207803='\x1b[33m',_0x47072e=_0x402911(0x1b9),_0x2d7df3=_0x402911(0x1a6),_0x327ddc=getCliUpgradeCommand(_0x386864);console['log'](),_0x386864[_0x402911(0x1a0)]?(console[_0x402911(0x190)](''+_0x568182+_0x2d7df3+_0x402911(0x198)+_0x47072e),console['log'](_0x568182+_0x402911(0x1a3)+_0x386864[_0x402911(0x1ad)]+_0x47072e),_0x386864['minimumVersion']&&console[_0x402911(0x190)](_0x568182+_0x402911(0x193)+_0x386864[_0x402911(0x1b5)]+_0x47072e),_0x386864[_0x402911(0x19f)]&&_0x386864[_0x402911(0x19f)]!==_0x386864[_0x402911(0x1b5)]&&console['log'](_0x568182+_0x402911(0x1b7)+_0x386864[_0x402911(0x19f)]+_0x47072e),_0x386864[_0x402911(0x1a8)]&&console[_0x402911(0x190)](_0x568182+_0x402911(0x19d)+_0x386864['minimumVersionMessage']+_0x47072e),console[_0x402911(0x190)](_0x568182+_0x402911(0x1ba)+_0x327ddc+_0x47072e)):(console['log'](''+_0x207803+_0x2d7df3+_0x402911(0x191)+_0x47072e),console['log'](_0x207803+_0x402911(0x1a3)+_0x386864[_0x402911(0x1ad)]+_0x47072e),console[_0x402911(0x190)](_0x207803+_0x402911(0x1b1)+_0x386864[_0x402911(0x19f)]+_0x47072e),_0x386864[_0x402911(0x1ab)]&&console[_0x402911(0x190)](_0x207803+_0x402911(0x19d)+_0x386864[_0x402911(0x1ab)]+_0x47072e),console[_0x402911(0x190)](_0x207803+_0x402911(0x1ba)+_0x327ddc+_0x47072e)),console[_0x402911(0x190)]();}export function assertCliVersionSupported(_0x1b03d9){const _0x465fab=a224_0x5990;if(!_0x1b03d9[_0x465fab(0x1a0)])return;const _0x486e6e=[_0x1b03d9['minimumVersionMessage'],_0x465fab(0x1b0)+_0x1b03d9[_0x465fab(0x1ad)],_0x1b03d9['minimumVersion']?_0x465fab(0x19c)+_0x1b03d9[_0x465fab(0x1b5)]:null,_0x465fab(0x197)+getCliUpgradeCommand(_0x1b03d9)][_0x465fab(0x1b3)](Boolean)['join']('\x0a');throw CliErrors[_0x465fab(0x1b8)](_0x465fab(0x1ac),_0x486e6e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d08bd,_0x1853d5){const _0x1ff491=a225_0x2449,_0x2013f7=_0x5d08bd();while(!![]){try{const _0x60c4e2=-parseInt(_0x1ff491(0x12c))/0x1*(parseInt(_0x1ff491(0x126))/0x2)+-parseInt(_0x1ff491(0x12e))/0x3*(parseInt(_0x1ff491(0x131))/0x4)+parseInt(_0x1ff491(0x129))/0x5*(-parseInt(_0x1ff491(0x12b))/0x6)+-parseInt(_0x1ff491(0x130))/0x7*(-parseInt(_0x1ff491(0x12d))/0x8)+parseInt(_0x1ff491(0x12a))/0x9+-parseInt(_0x1ff491(0x122))/0xa*(-parseInt(_0x1ff491(0x121))/0xb)+-parseInt(_0x1ff491(0x128))/0xc;if(_0x60c4e2===_0x1853d5)break;else _0x2013f7['push'](_0x2013f7['shift']());}catch(_0x509159){_0x2013f7['push'](_0x2013f7['shift']());}}}(a225_0x1e5e,0x8532c));function a225_0x2449(_0x1b9ee9,_0x46af79){_0x1b9ee9=_0x1b9ee9-0x11e;const _0x1e5e01=a225_0x1e5e();let _0x244905=_0x1e5e01[_0x1b9ee9];return _0x244905;}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(_0x1e1875){const _0x5ed048=a225_0x2449;return typeof _0x1e1875===_0x5ed048(0x12f)&&_0x1e1875['trim']()[_0x5ed048(0x132)]>0x0?_0x1e1875[_0x5ed048(0x124)]():null;}function normalizeCliVersionPolicy(_0x1caaef){const _0x1b0495=a225_0x2449;if(!_0x1caaef||typeof _0x1caaef!=='object')return null;const _0x48f4e4=_0x1caaef,_0x13cb0b=_0x48f4e4['cli']&&typeof _0x48f4e4[_0x1b0495(0x133)]===_0x1b0495(0x127)?_0x48f4e4['cli']:_0x48f4e4,_0xee52af=pickString(_0x13cb0b['stableVersion'])||pickString(_0x13cb0b[_0x1b0495(0x125)])||pickString(_0x13cb0b[_0x1b0495(0x120)]),_0xc0f5ec=pickString(_0x13cb0b[_0x1b0495(0x11e)])||pickString(_0x13cb0b[_0x1b0495(0x123)]);if(!_0xee52af&&!_0xc0f5ec)return null;return{'stableVersion':_0xee52af,'minimumVersion':_0xc0f5ec,'upgradeMessage':pickString(_0x13cb0b[_0x1b0495(0x11f)])||undefined,'minimumVersionMessage':pickString(_0x13cb0b['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x59ba59=new AbortController(),_0x481082=setTimeout(()=>_0x59ba59['abort'](),FETCH_TIMEOUT_MS);try{const _0x16dbae=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x59ba59['signal']});if(!_0x16dbae['ok'])return null;const _0x6c7b3a=await _0x16dbae['json']();return normalizeCliVersionPolicy(_0x6c7b3a);}catch{return null;}finally{clearTimeout(_0x481082);}}function a225_0x1e5e(){const _0x1b2e86=['length','cli','minimumVersion','upgradeMessage','recommendedVersion','7981622yCFZUx','10AvBSBG','minVersion','trim','latestVersion','66CMPypn','object','1739736HEogQY','273250iEGKFh','1549683mmrVKi','30OcDdme','5324vkDPQp','32FDIuTC','9eEtEVk','string','1620052LLHvOo','912044heNPzG'];a225_0x1e5e=function(){return _0x1b2e86;};return a225_0x1e5e();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2f9010=Date['now']();if(hasCachedPolicy){const _0x4efe4e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f9010-cacheTime<_0x4efe4e)return cachedPolicy;}const _0x121011=await fetchCliVersionPolicy();return cachedPolicy=_0x121011,cacheTime=_0x2f9010,hasCachedPolicy=!![],_0x121011;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a226_0xecb58d=a226_0x4c8f;function a226_0x68bd(){const _0x5a0903=['875817eUsKNH','4952364rBtgZj','12KJbonk','string','7wKDdkZ','654702vsVnDM','project','8EEQwqX','env','4320460notbgs','145134mkUKjy','1548608GcyeSy','1616765nNxiKJ'];a226_0x68bd=function(){return _0x5a0903;};return a226_0x68bd();}(function(_0x4063d6,_0x4ebdd6){const _0x585d13=a226_0x4c8f,_0x217e92=_0x4063d6();while(!![]){try{const _0x24091e=parseInt(_0x585d13(0xae))/0x1+parseInt(_0x585d13(0xaf))/0x2+-parseInt(_0x585d13(0xa9))/0x3+parseInt(_0x585d13(0xa6))/0x4*(parseInt(_0x585d13(0xb0))/0x5)+-parseInt(_0x585d13(0xb2))/0x6*(parseInt(_0x585d13(0xa8))/0x7)+parseInt(_0x585d13(0xab))/0x8*(parseInt(_0x585d13(0xb1))/0x9)+-parseInt(_0x585d13(0xad))/0xa;if(_0x24091e===_0x4ebdd6)break;else _0x217e92['push'](_0x217e92['shift']());}catch(_0x188be2){_0x217e92['push'](_0x217e92['shift']());}}}(a226_0x68bd,0x7cca0));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x90892f,getMultiAppConfigs as a226_0x4d6d78,getTemplateBaseUrl as a226_0x5c1ae5}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a226_0x4c8f(_0x107dc9,_0x3cd225){_0x107dc9=_0x107dc9-0xa6;const _0x68bdbe=a226_0x68bd();let _0x4c8fbf=_0x68bdbe[_0x107dc9];return _0x4c8fbf;}export{isInProject}from'../context.js';export function readConfig(_0x3f6e54){const _0x2bc277=a226_0x4c8f,_0x45e3ee=readRawConfig(_0x3f6e54);return _0x45e3ee[_0x2bc277(0xac)]&&typeof _0x45e3ee[_0x2bc277(0xac)]===_0x2bc277(0xa7)&&initEnv(_0x45e3ee[_0x2bc277(0xac)]),_0x45e3ee;}export function getConfigAppCode(){return a226_0x90892f();}export function getMultiAppConfigs(_0x5936f0=a226_0xecb58d(0xaa)){return a226_0x4d6d78(_0x5936f0);}export function getTemplateBaseUrl(){return a226_0x5c1ae5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49550d,_0x3f5a53){const _0x2cb44a=a227_0x4cf1,_0x5d29a=_0x49550d();while(!![]){try{const _0x501d55=-parseInt(_0x2cb44a(0x1c1))/0x1+-parseInt(_0x2cb44a(0x1c2))/0x2+-parseInt(_0x2cb44a(0x1c0))/0x3+parseInt(_0x2cb44a(0x1c3))/0x4*(parseInt(_0x2cb44a(0x1bd))/0x5)+-parseInt(_0x2cb44a(0x1c4))/0x6+parseInt(_0x2cb44a(0x1c6))/0x7+parseInt(_0x2cb44a(0x1bf))/0x8*(parseInt(_0x2cb44a(0x1c7))/0x9);if(_0x501d55===_0x3f5a53)break;else _0x5d29a['push'](_0x5d29a['shift']());}catch(_0xbab991){_0x5d29a['push'](_0x5d29a['shift']());}}}(a227_0x1338,0xa07d4));function a227_0x1338(){const _0x33be45=['5ogQBSQ','copyFileSync','4459328VEeUJR','192087kLxNsg','81174OtCheE','1547896DMJweE','2315876foWdEi','3110322vqsuvu','name','2807707MWtrXY','18rnstAJ','isDirectory'];a227_0x1338=function(){return _0x33be45;};return a227_0x1338();}import a227_0x35f203 from'node:path';import a227_0x31a466 from'node:fs';function a227_0x4cf1(_0x13a387,_0x32ca1d){_0x13a387=_0x13a387-0x1bc;const _0x133866=a227_0x1338();let _0x4cf18b=_0x133866[_0x13a387];return _0x4cf18b;}export async function copyDirectory(_0x2aba16,_0xc6d649){const _0x5afa2b=a227_0x4cf1;try{const _0x5496c0=a227_0x31a466['readdirSync'](_0x2aba16,{'withFileTypes':!![]});a227_0x31a466['mkdirSync'](_0xc6d649,{'recursive':!![]});for(const _0xfa407d of _0x5496c0){const _0x8ece82=a227_0x35f203['join'](_0x2aba16,_0xfa407d[_0x5afa2b(0x1c5)]),_0x24f98c=a227_0x35f203['join'](_0xc6d649,_0xfa407d[_0x5afa2b(0x1c5)]);_0xfa407d[_0x5afa2b(0x1bc)]()?await copyDirectory(_0x8ece82,_0x24f98c):a227_0x31a466[_0x5afa2b(0x1be)](_0x8ece82,_0x24f98c);}}catch(_0x37fdc4){console['error']('复制目录时出错:',_0x37fdc4);}}
|