@lovrabet/rabetbase-cli 2.4.6-beta.2 → 2.4.6-beta.3
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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.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/async-task.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 -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/business-groups.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/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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 -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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.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/mutations.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/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/upgrade.js +1 -1
- package/lib/commands/registry.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/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.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-index-auditor.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/error-output.js +1 -1
- package/lib/framework/explicit-yes.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.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.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/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/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x57f8f7,_0x5517fc){const _0x3779f1=a250_0x2737,_0x3f54cc=_0x57f8f7();while(!![]){try{const _0x1d956a=parseInt(_0x3779f1(0x18e))/0x1+-parseInt(_0x3779f1(0x162))/0x2*(-parseInt(_0x3779f1(0x18d))/0x3)+-parseInt(_0x3779f1(0x181))/0x4*(parseInt(_0x3779f1(0x17d))/0x5)+-parseInt(_0x3779f1(0x164))/0x6+-parseInt(_0x3779f1(0x15d))/0x7+parseInt(_0x3779f1(0x175))/0x8+-parseInt(_0x3779f1(0x182))/0x9;if(_0x1d956a===_0x5517fc)break;else _0x3f54cc['push'](_0x3f54cc['shift']());}catch(_0x291422){_0x3f54cc['push'](_0x3f54cc['shift']());}}}(a250_0x55a0,0x60caa));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a250_0x2737(_0x1d0ca0,_0x547967){_0x1d0ca0=_0x1d0ca0-0x153;const _0x55a008=a250_0x55a0();let _0x2737e5=_0x55a008[_0x1d0ca0];return _0x2737e5;}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 a250_0x5d13d9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xd8efd2){const _0x3e2cfc=a250_0x2737;return typeof _0xd8efd2===_0x3e2cfc(0x163)&&_0xd8efd2[_0x3e2cfc(0x165)]()?_0xd8efd2[_0x3e2cfc(0x165)]():undefined;}function resolveEnvAppCode(){const _0x510242=a250_0x2737,_0x170cad=stringFlag(process.env.RABETBASE_APPCODE);if(_0x170cad)return{'name':_0x510242(0x183),'value':_0x170cad};const _0x5f53bd=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5f53bd)return{'name':_0x510242(0x15c),'value':_0x5f53bd};return undefined;}function hasExplicitAppCode(_0x26b527,_0xdb02c1){const _0x322f16=a250_0x2737;return!!(stringFlag(_0x26b527[_0x322f16(0x190)])||stringFlag(_0xdb02c1[_0x322f16(0x190)]));}function assertEnvAppCodeNotIgnored(_0x1ed768,_0x3e1695,_0x506ce2){const _0x5cdd3b=a250_0x2737;if(!_0x3e1695||_0x506ce2||_0x1ed768===_0x3e1695['value'])return;const _0x46fae4=_0x1ed768?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x1ed768+'\x22.':_0x5cdd3b(0x15b);throw CliErrors[_0x5cdd3b(0x154)](_0x3e1695['name']+'='+_0x3e1695['value']+_0x5cdd3b(0x196)+_0x46fae4+'\x20'+(_0x5cdd3b(0x17b)+_0x3e1695['name']+'\x22.'));}export function createPipelineEnv(_0x388f38,_0x498b57,_0x21b58f=[]){const _0x3edd23=a250_0x2737;return{'rawFlags':_0x498b57,'args':_0x21b58f,'resolveAppCode':()=>_0x388f38[_0x3edd23(0x15e)],'resolveCookie':()=>_0x388f38['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x5d13d9(_0x498b57),'defaultFormat':_0x388f38[_0x3edd23(0x198)],'defaultPageSize':_0x388f38[_0x3edd23(0x159)],'defaultVerbose':_0x388f38[_0x3edd23(0x178)],'apiDir':_0x388f38[_0x3edd23(0x155)],'riskLevel':_0x388f38[_0x3edd23(0x166)],'selectedAppName':_0x388f38[_0x3edd23(0x18f)],'mergedCli':{'defaultApp':_0x388f38[_0x3edd23(0x19c)],'currentApp':_0x388f38['currentApp'],'appCode':_0x388f38[_0x3edd23(0x15e)],'apps':_0x388f38[_0x3edd23(0x192)]}};}export function createRabetbaseRunnerAdapter(_0x7f72e5={}){const _0x1a2030=a250_0x2737;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1a2030(0x191)](_0x45ef3a=>PIPELINE_FLAG_NAMES[_0x1a2030(0x17a)](_0x45ef3a[_0x1a2030(0x158)]))[_0x1a2030(0x187)](({name:_0x35ffcb,type:_0x2807cb,description:_0x5701eb})=>({'name':_0x35ffcb,'type':_0x2807cb,'description':_0x5701eb})),'formatOutput':_0x7f72e5[_0x1a2030(0x160)]??formatOutput,'getCommandLabel'(_0xa5c58c){const _0x3bd5d3=_0x1a2030;return CLI_BIN_NAME+'\x20'+_0xa5c58c[_0x3bd5d3(0x18c)]+'\x20'+_0xa5c58c[_0x3bd5d3(0x168)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1875f9,{def:_0x1e00ad}){const _0x30bfdb=_0x1a2030,_0x498bea=_0x1875f9['includes'](_0x30bfdb(0x180))?_0x30bfdb(0x17f):_0x30bfdb(0x16d)+_0x1e00ad[_0x30bfdb(0x157)]+_0x30bfdb(0x16b)+_0x30bfdb(0x17f);return CliErrors[_0x30bfdb(0x154)](_0x1875f9+'\x0a\x20\x20'+_0x498bea);}},async 'prepare'(_0xd50179,_0x1f4c62,_0x1450fa,_0x20f836){const _0x1878e8=_0x1a2030,_0x1abbfa=_0x1f4c62[_0x1878e8(0x155)]||DEFAULT_API_DIR;resolveAliasToCode(_0xd50179,_0x1450fa,_0x1abbfa,_0x20f836);const _0x3de3f0=resolveCommandAuthMode(_0xd50179);let _0x2007fe='';if(_0x3de3f0!=='none'){_0x2007fe=_0x1f4c62[_0x1878e8(0x189)]()||'';if(!_0x2007fe){if(_0x3de3f0===_0x1878e8(0x16f))throw CliErrors[_0x1878e8(0x186)]();}else{const {setActiveCookie:_0x4f3db7}=await import(_0x1878e8(0x16e));_0x4f3db7(_0x2007fe);}}const _0xcabe43=_0x1f4c62[_0x1878e8(0x17c)]()??'';if(_0xd50179[_0x1878e8(0x176)]!==![]){assertEnvAppCodeNotIgnored(_0xcabe43,resolveEnvAppCode(),hasExplicitAppCode(_0x1450fa,_0x1f4c62[_0x1878e8(0x199)]));if(!_0xcabe43)throw CliErrors[_0x1878e8(0x161)](_0x1878e8(0x18b)+CLI_BIN_NAME+_0x1878e8(0x185));}return{'defaults':{'booleans':{'verbose':_0x1f4c62[_0x1878e8(0x188)]},'numbers':{'pagesize':_0x1f4c62['defaultPageSize']}},'extras':{'appCode':_0xcabe43,'cookie':_0x2007fe,'apiDomain':_0x1f4c62[_0x1878e8(0x172)](),'apiDir':_0x1abbfa,'selectedAppName':_0x1f4c62[_0x1878e8(0x15f)],'mergedCli':_0x1f4c62[_0x1878e8(0x173)]}};},'confirmHighRisk':_0x7f72e5['confirmHighRisk']??(async({env:_0x4dc40b,commandLabel:_0x279408})=>{const _0x2afe59=_0x1a2030;if(_0x4dc40b[_0x2afe59(0x170)])throw CliErrors[_0x2afe59(0x154)]('High-risk\x20operation\x20`'+_0x279408+_0x2afe59(0x153));await requireConfirmationPrompt({'lines':[_0x2afe59(0x19a)+_0x279408,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x113cea=>CliErrors[_0x2afe59(0x193)](_0x113cea)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3148a8}=await import('../core/api-client.js');_0x3148a8();}export async function finalizeRabetbaseRuntimeState(){const _0x6a0361=a250_0x2737;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5b4cea},{initEnv:_0xff9c50}]=await Promise['all']([import(_0x6a0361(0x17e)),import(_0x6a0361(0x195))]);_0x5b4cea(),_0xff9c50(_0x6a0361(0x197));}}function a250_0x55a0(){const _0x118dd1=['authRequired','map','defaultVerbose','resolveCookie','execute','Set\x20appcode\x20via\x20`','service','3TJQeFZ','602439LmjxjV','explicitAppName','appcode','filter','apps','cancelled','_notice','../constant/env.js','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','production','format','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','message','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','validation','apiDir','find','risk','name','pageSize','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','LOVRABET_APPCODE','4525920JoSJIe','appCode','selectedAppName','formatOutput','configMissing','215044GkUguh','string','580506VkzMCD','trim','riskLevel','meowKey','command','object','nonInteractive','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','includes','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','../core/api-client.js','required','isNonInteractive','update','resolveApiDomain','mergedCli','replace','6014144wxlVIL','requiresAppCode','hint','verbose','doctor','has','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveAppCode','35KgXrnK','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','89384twcneJ','1489842xOXNMN','RABETBASE_APPCODE','resolve','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a250_0x55a0=function(){return _0x118dd1;};return a250_0x55a0();}export async function runCommand(_0x94c9fa,_0x5253ad,_0x504b25=terminalRunnerAdapter){const _0x49052b=a250_0x2737;assertRejectedFlags(_0x94c9fa,_0x5253ad[_0x49052b(0x199)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x94c9fa)?withUpdateNotice(_0x94c9fa):_0x94c9fa,_0x5253ad,_0x504b25);}function assertRejectedFlags(_0x3f24a6,_0x473cc5){const _0x3501a1=a250_0x2737;for(const _0x27ae4e of _0x3f24a6['rejectedFlags']??[]){const _0x466550=GLOBAL_FLAGS[_0x3501a1(0x156)](_0x6b7911=>_0x6b7911['name']===_0x27ae4e[_0x3501a1(0x158)]),_0x34f548=new Set([_0x27ae4e[_0x3501a1(0x158)],toCamelCase(_0x27ae4e[_0x3501a1(0x158)]),_0x466550?.[_0x3501a1(0x167)]]),_0xb27d53=[..._0x34f548]['some'](_0x3677cc=>{if(!_0x3677cc)return![];const _0x357f08=_0x473cc5[_0x3677cc];return _0x357f08!==undefined&&_0x357f08!==null&&_0x357f08!==![];});if(_0xb27d53)throw CliErrors[_0x3501a1(0x154)](_0x27ae4e[_0x3501a1(0x19b)],_0x27ae4e[_0x3501a1(0x177)]);}}function toCamelCase(_0x37d970){const _0x252d02=a250_0x2737;return _0x37d970[_0x252d02(0x174)](/-([a-z])/g,(_0x31a747,_0x4ed9e9)=>_0x4ed9e9[_0x252d02(0x15a)]());}function shouldAttachUpdateNotice(_0x1d6ab8){const _0x5ea33d=a250_0x2737;if(_0x1d6ab8['hasFormat']===![])return![];return![_0x5ea33d(0x171),'schema',_0x5ea33d(0x179)][_0x5ea33d(0x16c)](_0x1d6ab8[_0x5ea33d(0x18c)]);}function withUpdateNotice(_0x10566f){return{..._0x10566f,async 'execute'(_0x2b192a){const _0x26cb2c=a250_0x2737,_0x7addb9=shouldResolveUpdateNotice(_0x2b192a)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x26cb2c(0x184)](null),_0x496f14=await _0x10566f[_0x26cb2c(0x18a)](_0x2b192a);return attachUpdateNotice(_0x496f14,await _0x7addb9);}};}function shouldResolveUpdateNotice(_0xce8ed5){const _0x1ccff4=a250_0x2737;return _0xce8ed5[_0x1ccff4(0x198)]==='pretty'&&!_0xce8ed5[_0x1ccff4(0x16a)];}function attachUpdateNotice(_0x1837e6,_0x53f2b2){const _0x391c3c=a250_0x2737;if(!_0x53f2b2||!_0x1837e6||typeof _0x1837e6!==_0x391c3c(0x169))return _0x1837e6;const _0x178925=_0x1837e6,_0x384175=typeof _0x178925['_notice']===_0x391c3c(0x169)&&_0x178925[_0x391c3c(0x194)]!==null?_0x178925['_notice']:{};return{..._0x178925,'_notice':{..._0x384175,'update':_0x53f2b2}};}
|
|
1
|
+
(function(_0x54c1a6,_0x4adb4a){const _0x64c099=a250_0x188c,_0x731580=_0x54c1a6();while(!![]){try{const _0x3a37d0=parseInt(_0x64c099(0x126))/0x1*(parseInt(_0x64c099(0x134))/0x2)+-parseInt(_0x64c099(0x146))/0x3*(-parseInt(_0x64c099(0x117))/0x4)+-parseInt(_0x64c099(0x14c))/0x5*(-parseInt(_0x64c099(0x123))/0x6)+parseInt(_0x64c099(0x119))/0x7+parseInt(_0x64c099(0x108))/0x8*(-parseInt(_0x64c099(0x120))/0x9)+-parseInt(_0x64c099(0x13e))/0xa+-parseInt(_0x64c099(0x139))/0xb*(-parseInt(_0x64c099(0x118))/0xc);if(_0x3a37d0===_0x4adb4a)break;else _0x731580['push'](_0x731580['shift']());}catch(_0x3b93e5){_0x731580['push'](_0x731580['shift']());}}}(a250_0x487c,0xe8127));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 a250_0x3446e5}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4e28b3){const _0x4ad790=a250_0x188c;return typeof _0x4e28b3===_0x4ad790(0x10a)&&_0x4e28b3[_0x4ad790(0x11d)]()?_0x4e28b3[_0x4ad790(0x11d)]():undefined;}function resolveEnvAppCode(){const _0x1af031=a250_0x188c,_0x9140e4=stringFlag(process.env.RABETBASE_APPCODE);if(_0x9140e4)return{'name':_0x1af031(0x116),'value':_0x9140e4};const _0x2860a8=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2860a8)return{'name':_0x1af031(0x13b),'value':_0x2860a8};return undefined;}function hasExplicitAppCode(_0x8ec40f,_0xa0d356){const _0x42e8db=a250_0x188c;return!!(stringFlag(_0x8ec40f[_0x42e8db(0x13d)])||stringFlag(_0xa0d356[_0x42e8db(0x13d)]));}function assertEnvAppCodeNotIgnored(_0x34ba3a,_0xb91f33,_0x4d4f90){const _0x2abffe=a250_0x188c;if(!_0xb91f33||_0x4d4f90||_0x34ba3a===_0xb91f33[_0x2abffe(0x127)])return;const _0x4c9281=_0x34ba3a?_0x2abffe(0x112)+_0x34ba3a+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x2abffe(0x12c)](_0xb91f33[_0x2abffe(0x12e)]+'='+_0xb91f33[_0x2abffe(0x127)]+_0x2abffe(0x136)+_0x4c9281+'\x20'+(_0x2abffe(0x143)+_0xb91f33[_0x2abffe(0x12e)]+'\x22.'));}export function createPipelineEnv(_0x226416,_0x24af29,_0x3e97fb=[]){const _0x2d2e41=a250_0x188c;return{'rawFlags':_0x24af29,'args':_0x3e97fb,'resolveAppCode':()=>_0x226416[_0x2d2e41(0x145)],'resolveCookie':()=>_0x226416[_0x2d2e41(0x10b)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x3446e5(_0x24af29),'defaultFormat':_0x226416[_0x2d2e41(0x10c)],'defaultPageSize':_0x226416['pageSize'],'defaultVerbose':_0x226416[_0x2d2e41(0x111)],'apiDir':_0x226416[_0x2d2e41(0x149)],'riskLevel':_0x226416[_0x2d2e41(0x131)],'selectedAppName':_0x226416[_0x2d2e41(0x109)],'mergedCli':{'defaultApp':_0x226416[_0x2d2e41(0x133)],'currentApp':_0x226416[_0x2d2e41(0x124)],'appCode':_0x226416[_0x2d2e41(0x145)],'apps':_0x226416[_0x2d2e41(0x132)]}};}export function createRabetbaseRunnerAdapter(_0x3f22e3={}){const _0x161bb5=a250_0x188c;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x161bb5(0x114)](_0x459fbb=>PIPELINE_FLAG_NAMES[_0x161bb5(0x135)](_0x459fbb[_0x161bb5(0x12e)]))[_0x161bb5(0x152)](({name:_0x432d4a,type:_0x370d58,description:_0x1b090b})=>({'name':_0x432d4a,'type':_0x370d58,'description':_0x1b090b})),'formatOutput':_0x3f22e3['formatOutput']??formatOutput,'getCommandLabel'(_0x397f45){return CLI_BIN_NAME+'\x20'+_0x397f45['service']+'\x20'+_0x397f45['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x89602b,{def:_0x202002}){const _0x415cc9=_0x161bb5,_0x5c5cff=_0x89602b[_0x415cc9(0x10f)](_0x415cc9(0x11e))?_0x415cc9(0x12d):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x202002[_0x415cc9(0x10e)]+_0x415cc9(0x140)+_0x415cc9(0x12d);return CliErrors[_0x415cc9(0x12c)](_0x89602b+_0x415cc9(0x115)+_0x5c5cff);}},async 'prepare'(_0x2299bf,_0x597e1f,_0x3bf535,_0x3d4ea4){const _0x39e4c0=_0x161bb5,_0x486cd4=_0x597e1f[_0x39e4c0(0x149)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2299bf,_0x3bf535,_0x486cd4,_0x3d4ea4);const _0x931eea=resolveCommandAuthMode(_0x2299bf);let _0x3062f0='';if(_0x931eea!=='none'){_0x3062f0=_0x597e1f['resolveCookie']()||'';if(!_0x3062f0){if(_0x931eea==='required')throw CliErrors[_0x39e4c0(0x142)]();}else{const {setActiveCookie:_0x143eda}=await import(_0x39e4c0(0x148));_0x143eda(_0x3062f0);}}const _0x25e831=_0x597e1f['resolveAppCode']()??'';if(_0x2299bf[_0x39e4c0(0x110)]!==![]){assertEnvAppCodeNotIgnored(_0x25e831,resolveEnvAppCode(),hasExplicitAppCode(_0x3bf535,_0x597e1f[_0x39e4c0(0x141)]));if(!_0x25e831)throw CliErrors['configMissing'](_0x39e4c0(0x150)+CLI_BIN_NAME+_0x39e4c0(0x138));}return{'defaults':{'booleans':{'verbose':_0x597e1f[_0x39e4c0(0x122)]},'numbers':{'pagesize':_0x597e1f['defaultPageSize']}},'extras':{'appCode':_0x25e831,'cookie':_0x3062f0,'apiDomain':_0x597e1f[_0x39e4c0(0x11f)](),'apiDir':_0x486cd4,'selectedAppName':_0x597e1f[_0x39e4c0(0x13f)],'mergedCli':_0x597e1f[_0x39e4c0(0x10d)]}};},'confirmHighRisk':_0x3f22e3[_0x161bb5(0x151)]??(async({env:_0x394ec0,commandLabel:_0x48c30e})=>{const _0x20a6b6=_0x161bb5;if(_0x394ec0[_0x20a6b6(0x144)])throw CliErrors[_0x20a6b6(0x12c)](_0x20a6b6(0x14f)+_0x48c30e+_0x20a6b6(0x13a));await requireConfirmationPrompt({'lines':[_0x20a6b6(0x147)+_0x48c30e,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4f9915=>CliErrors[_0x20a6b6(0x12a)](_0x4f9915)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x39a750=a250_0x188c,{clearActiveCookie:_0x54f5b4}=await import(_0x39a750(0x148));_0x54f5b4();}export async function finalizeRabetbaseRuntimeState(){const _0x875ac1=a250_0x188c;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x7019c6},{initEnv:_0xd0be4c}]=await Promise[_0x875ac1(0x13c)]([import('../constant/domain.js'),import(_0x875ac1(0x14a))]);_0x7019c6(),_0xd0be4c(_0x875ac1(0x113));}}function a250_0x487c(){const _0x2abec9=['9482PxkwqZ','has','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','toUpperCase','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1595ruiMkl','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','LOVRABET_APPCODE','all','appcode','6120220NqWhXw','selectedAppName','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','rawFlags','authRequired','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','isNonInteractive','appCode','29046txFkUM','⚠\x20\x20High-risk\x20operation:\x20','../core/api-client.js','apiDir','../constant/env.js','doctor','4580IiwsIG','find','pretty','High-risk\x20operation\x20`','Set\x20appcode\x20via\x20`','confirmHighRisk','map','8tgZePP','explicitAppName','string','cookie','format','mergedCli','risk','includes','requiresAppCode','verbose','Current\x20resolved\x20appcode\x20is\x20\x22','production','filter','\x0a\x20\x20','RABETBASE_APPCODE','668pOHBQC','35604qzgMKq','4544421saXokh','hint','meowKey','message','trim','Edit\x20the\x20config\x20file\x20manually','resolveApiDomain','15808581sOTeZM','some','defaultVerbose','2154jTfWHJ','currentApp','resolve','62DRmcFY','value','service','schema','cancelled','object','validation','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','name','hasFormat','catch','riskLevel','apps','defaultApp'];a250_0x487c=function(){return _0x2abec9;};return a250_0x487c();}export async function runCommand(_0x39f2c1,_0x3835dd,_0x505f40=terminalRunnerAdapter){const _0x55e095=a250_0x188c;assertRejectedFlags(_0x39f2c1,_0x3835dd[_0x55e095(0x141)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x39f2c1)?withUpdateNotice(_0x39f2c1):_0x39f2c1,_0x3835dd,_0x505f40);}function assertRejectedFlags(_0x39788b,_0x4bb363){const _0x15ab2d=a250_0x188c;for(const _0x253d1c of _0x39788b['rejectedFlags']??[]){const _0x2ab46d=GLOBAL_FLAGS[_0x15ab2d(0x14d)](_0x2706c1=>_0x2706c1['name']===_0x253d1c[_0x15ab2d(0x12e)]),_0x33337b=new Set([_0x253d1c[_0x15ab2d(0x12e)],toCamelCase(_0x253d1c[_0x15ab2d(0x12e)]),_0x2ab46d?.[_0x15ab2d(0x11b)]]),_0xd5afeb=[..._0x33337b][_0x15ab2d(0x121)](_0x599508=>{if(!_0x599508)return![];const _0x1efa53=_0x4bb363[_0x599508];return _0x1efa53!==undefined&&_0x1efa53!==null&&_0x1efa53!==![];});if(_0xd5afeb)throw CliErrors['validation'](_0x253d1c[_0x15ab2d(0x11c)],_0x253d1c[_0x15ab2d(0x11a)]);}}function toCamelCase(_0x3a2958){const _0x32f77d=a250_0x188c;return _0x3a2958['replace'](/-([a-z])/g,(_0x794120,_0x401dcf)=>_0x401dcf[_0x32f77d(0x137)]());}function shouldAttachUpdateNotice(_0x3db02d){const _0x53b849=a250_0x188c;if(_0x3db02d[_0x53b849(0x12f)]===![])return![];return!['update',_0x53b849(0x129),_0x53b849(0x14b)][_0x53b849(0x10f)](_0x3db02d[_0x53b849(0x128)]);}function a250_0x188c(_0x1d937e,_0x5512db){_0x1d937e=_0x1d937e-0x108;const _0x487c54=a250_0x487c();let _0x188c6f=_0x487c54[_0x1d937e];return _0x188c6f;}function withUpdateNotice(_0x1fb4de){return{..._0x1fb4de,async 'execute'(_0x51d997){const _0x23dd06=a250_0x188c,_0xc259ee=shouldResolveUpdateNotice(_0x51d997)?resolveLatestUpdateNotice()[_0x23dd06(0x130)](()=>null):Promise[_0x23dd06(0x125)](null),_0xd99624=await _0x1fb4de['execute'](_0x51d997);return attachUpdateNotice(_0xd99624,await _0xc259ee);}};}function shouldResolveUpdateNotice(_0x1ef957){const _0x2736f5=a250_0x188c;return _0x1ef957[_0x2736f5(0x10c)]===_0x2736f5(0x14e)&&!_0x1ef957['nonInteractive'];}function attachUpdateNotice(_0x3760e3,_0x12dd48){const _0x451003=a250_0x188c;if(!_0x12dd48||!_0x3760e3||typeof _0x3760e3!==_0x451003(0x12b))return _0x3760e3;const _0x492e7e=_0x3760e3,_0x4a32ce=typeof _0x492e7e['_notice']===_0x451003(0x12b)&&_0x492e7e['_notice']!==null?_0x492e7e['_notice']:{};return{..._0x492e7e,'_notice':{..._0x4a32ce,'update':_0x12dd48}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x103dbc,_0x389da6){const _0x142f06=a251_0xbc95,_0x59721a=_0x103dbc();while(!![]){try{const _0x277fae=parseInt(_0x142f06(0xb8))/0x1*(parseInt(_0x142f06(0xb2))/0x2)+parseInt(_0x142f06(0xb6))/0x3*(-parseInt(_0x142f06(0xb0))/0x4)+-parseInt(_0x142f06(0xb1))/0x5+-parseInt(_0x142f06(0xba))/0x6+-parseInt(_0x142f06(0xb9))/0x7*(parseInt(_0x142f06(0xb7))/0x8)+-parseInt(_0x142f06(0xb5))/0x9+parseInt(_0x142f06(0xb4))/0xa*(parseInt(_0x142f06(0xb3))/0xb);if(_0x277fae===_0x389da6)break;else _0x59721a['push'](_0x59721a['shift']());}catch(_0x1ed47a){_0x59721a['push'](_0x59721a['shift']());}}}(a251_0x5733,0xb93b7));import{buildSchemaPayload as a251_0x494344}from'@lovrabet/cli-framework';function a251_0xbc95(_0x190003,_0x451dd7){_0x190003=_0x190003-0xb0;const _0x573313=a251_0x5733();let _0xbc95e6=_0x573313[_0x190003];return _0xbc95e6;}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 {serviceRegistry:_0x9ccd1e,findDefinition:_0x56be87}=await import('../commands/registry.js');return a251_0x494344({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x9ccd1e,'buildAllFlags':buildAllFlags,'findDefinition':_0x56be87});}function a251_0x5733(){const _0x2a47d7=['8dijdyb','1yoapGa','5488721ClqhrU','3538266LMGRfq','88484WXIrgE','4785705mbudIP','219322lzLTbr','11dzDqlM','48452350OlkGQB','12805290hPbRFa','60oFWNBK'];a251_0x5733=function(){return _0x2a47d7;};return a251_0x5733();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a252_0x34e8(_0xabbf25,_0x479d4a){_0xabbf25=_0xabbf25-0x1ea;var _0x318e0e=a252_0x318e();var _0x34e8ce=_0x318e0e[_0xabbf25];return _0x34e8ce;}(function(_0x423af5,_0x29c19b){var _0x356743=a252_0x34e8,_0x24f5de=_0x423af5();while(!![]){try{var _0x225373=-parseInt(_0x356743(0x1ef))/0x1*(parseInt(_0x356743(0x1ee))/0x2)+parseInt(_0x356743(0x1ed))/0x3+parseInt(_0x356743(0x1f2))/0x4+-parseInt(_0x356743(0x1ea))/0x5+-parseInt(_0x356743(0x1ec))/0x6*(-parseInt(_0x356743(0x1f0))/0x7)+-parseInt(_0x356743(0x1eb))/0x8+parseInt(_0x356743(0x1f1))/0x9;if(_0x225373===_0x29c19b)break;else _0x24f5de['push'](_0x24f5de['shift']());}catch(_0x4052e1){_0x24f5de['push'](_0x24f5de['shift']());}}}(a252_0x318e,0xdb866));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a252_0x318e(){var _0x1d23af=['5mGayaR','1111761snEmvA','6945768QmBqwf','439600OXSXWW','1936540MHSDhV','8792688KzlbPt','42ETHTmR','1827735QBarhQ','86836EVEhTE'];a252_0x318e=function(){return _0x1d23af;};return a252_0x318e();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.4.6-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.4.6-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.4.6-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.4.6-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "746783c";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-17T09:11:48.864Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a253_0x2f64ec=a253_0x1325;(function(_0x3dffc5,_0x4ffdc8){const _0x59a227=a253_0x1325,_0x341f7b=_0x3dffc5();while(!![]){try{const _0x2465e2=-parseInt(_0x59a227(0x9e))/0x1*(parseInt(_0x59a227(0x94))/0x2)+-parseInt(_0x59a227(0x9c))/0x3*(parseInt(_0x59a227(0x92))/0x4)+parseInt(_0x59a227(0x9b))/0x5*(-parseInt(_0x59a227(0x96))/0x6)+parseInt(_0x59a227(0xa0))/0x7+-parseInt(_0x59a227(0x95))/0x8*(parseInt(_0x59a227(0x99))/0x9)+parseInt(_0x59a227(0x97))/0xa*(parseInt(_0x59a227(0x98))/0xb)+parseInt(_0x59a227(0x9f))/0xc;if(_0x2465e2===_0x4ffdc8)break;else _0x341f7b['push'](_0x341f7b['shift']());}catch(_0x1f762d){_0x341f7b['push'](_0x341f7b['shift']());}}}(a253_0x1d6d,0x36526));export const VERSION=a253_0x2f64ec(0x9d);export const GIT_TAG=a253_0x2f64ec(0x9a);function a253_0x1d6d(){const _0x34e054=['10832016dWnmYo','1798083undgUL','1723924vLEphu','746783c','2KeqStf','160fWjntk','6MWNcZC','1550jSXjdV','14905hyXnqN','129438gjelRI','v2.4.6-beta.3','479350OIVAps','3AFKHKt','2.4.6-beta.3','332569kWnJrP'];a253_0x1d6d=function(){return _0x34e054;};return a253_0x1d6d();}export const GIT_COMMIT=a253_0x2f64ec(0x93);function a253_0x1325(_0x4ba584,_0x19c26a){_0x4ba584=_0x4ba584-0x92;const _0x1d6d76=a253_0x1d6d();let _0x1325c0=_0x1d6d76[_0x4ba584];return _0x1325c0;}export const BUILD_TIME='2026-08-17T09:11:48.864Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a254_0x4edb(_0x1d2dda,_0x5115f5){_0x1d2dda=_0x1d2dda-0x81;var _0x5acc35=a254_0x5acc();var _0x4edbf2=_0x5acc35[_0x1d2dda];return _0x4edbf2;}(function(_0x440973,_0x141246){var _0x514a78=a254_0x4edb,_0x5ee2a2=_0x440973();while(!![]){try{var _0x423b23=parseInt(_0x514a78(0x84))/0x1+parseInt(_0x514a78(0x81))/0x2+parseInt(_0x514a78(0x83))/0x3+-parseInt(_0x514a78(0x8a))/0x4*(-parseInt(_0x514a78(0x82))/0x5)+parseInt(_0x514a78(0x86))/0x6+parseInt(_0x514a78(0x88))/0x7+-parseInt(_0x514a78(0x87))/0x8;if(_0x423b23===_0x141246)break;else _0x5ee2a2['push'](_0x5ee2a2['shift']());}catch(_0x4490ce){_0x5ee2a2['push'](_0x5ee2a2['shift']());}}}(a254_0x5acc,0x4fb68));import a254_0x5d635c from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a254_0x5acc(){var _0x866757=['log','24004JSFWUP','464388OZYdAS','355KBddGT','1745346ksMeYr','187180EKWmip','bold','1369902IdoaFO','14366168UJMFID','3267117LOVHkS'];a254_0x5acc=function(){return _0x866757;};return a254_0x5acc();}export function showHelp(){var _0x1b7e0d=a254_0x4edb;console[_0x1b7e0d(0x89)](),console[_0x1b7e0d(0x89)](a254_0x5d635c['green'][_0x1b7e0d(0x85)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x1b7e0d(0x89)]('\x20\x20Use\x20'+a254_0x5d635c['green'][_0x1b7e0d(0x85)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x1b7e0d(0x89)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x278d1c,_0x3ae8c2){const _0x45b3e8=a255_0x178a,_0x280b84=_0x278d1c();while(!![]){try{const _0xb72720=-parseInt(_0x45b3e8(0xb4))/0x1+-parseInt(_0x45b3e8(0xb5))/0x2+parseInt(_0x45b3e8(0xb1))/0x3+-parseInt(_0x45b3e8(0xb8))/0x4*(parseInt(_0x45b3e8(0xbe))/0x5)+parseInt(_0x45b3e8(0xba))/0x6*(-parseInt(_0x45b3e8(0xb7))/0x7)+-parseInt(_0x45b3e8(0xb0))/0x8*(-parseInt(_0x45b3e8(0xbb))/0x9)+-parseInt(_0x45b3e8(0xab))/0xa*(-parseInt(_0x45b3e8(0xbd))/0xb);if(_0xb72720===_0x3ae8c2)break;else _0x280b84['push'](_0x280b84['shift']());}catch(_0x47e80e){_0x280b84['push'](_0x280b84['shift']());}}}(a255_0x5cec,0x31097));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x208a48={}){const _0x1e659a=a255_0x178a,_0x4aa80b=installBuiltinSkill(_0x208a48);if(_0x4aa80b['ok']){const _0x12debc=_0x4aa80b[_0x1e659a(0xbf)]?_0x1e659a(0xb9):_0x1e659a(0xaa),_0x3acbcd=_0x4aa80b[_0x1e659a(0xae)]?'\x20at\x20'+_0x4aa80b[_0x1e659a(0xae)]:_0x1e659a(0xbc);return console['log'](_0x1e659a(0xb3)+_0x4aa80b[_0x1e659a(0xb2)]+'\x20'+_0x12debc+_0x3acbcd),_0x4aa80b;}const _0x4d5f97=_0x1e659a(0xa7)+(_0x4aa80b[_0x1e659a(0xb6)]??_0x1e659a(0xac))+']\x20'+(_0x4aa80b['error']??_0x1e659a(0xa9))+'.\x20'+('Repair\x20with:\x20'+_0x4aa80b[_0x1e659a(0xad)]);if(_0x4aa80b[_0x1e659a(0xb6)]===_0x1e659a(0xaf))throw new Error(_0x4d5f97);return console[_0x1e659a(0xa8)](_0x4d5f97),_0x4aa80b;}function a255_0x178a(_0x27dae6,_0x20e5a8){_0x27dae6=_0x27dae6-0xa7;const _0x5cec8a=a255_0x5cec();let _0x178ad7=_0x5cec8a[_0x27dae6];return _0x178ad7;}function a255_0x5cec(){const _0x5864c1=['installedPath','SOURCE_INVALID','36776dghmTK','1110249wwgsWy','skillVersion','Rabetbase\x20Built-in\x20Skill\x20','289364GEgIEK','620240Tijnrd','code','264579nsmAzx','620iGJtIC','installed','18pMlCBI','27FKzqPn','\x20via\x20skills@latest','143NANRco','140GBLkwd','changed','[BUILTIN_SKILL_INSTALL_','warn','Installation\x20failed','already\x20current','410920lSKALl','FAILED','repairCommand'];a255_0x5cec=function(){return _0x5864c1;};return a255_0x5cec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x323b2b,_0x175a9e){const _0x3d0592=a256_0x57b3,_0x6a58cf=_0x323b2b();while(!![]){try{const _0x134a28=-parseInt(_0x3d0592(0x130))/0x1*(-parseInt(_0x3d0592(0x124))/0x2)+-parseInt(_0x3d0592(0x121))/0x3*(parseInt(_0x3d0592(0x134))/0x4)+-parseInt(_0x3d0592(0x12f))/0x5+-parseInt(_0x3d0592(0x12e))/0x6*(parseInt(_0x3d0592(0x131))/0x7)+-parseInt(_0x3d0592(0x123))/0x8*(-parseInt(_0x3d0592(0x132))/0x9)+-parseInt(_0x3d0592(0x122))/0xa+parseInt(_0x3d0592(0x120))/0xb*(parseInt(_0x3d0592(0x128))/0xc);if(_0x134a28===_0x175a9e)break;else _0x6a58cf['push'](_0x6a58cf['shift']());}catch(_0x455edb){_0x6a58cf['push'](_0x6a58cf['shift']());}}}(a256_0x20c0,0xc8e07));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x4ba019,_0x793c0,_0x387239){const _0x31028b=a256_0x57b3,_0x176b29=normalizeText(_0x4ba019[_0x31028b(0x125)],DESCRIPTION_MAX_LENGTH),_0x6f51d9=_0x176b29||normalizeText(defaultDescription(requireWriteRisk(_0x4ba019),_0x793c0),DESCRIPTION_MAX_LENGTH);return{'operation':_0x793c0,'risk':requireWriteRisk(_0x4ba019),'description':_0x6f51d9,..._0x387239?{'signal':_0x387239}:{}};}function a256_0x20c0(){const _0x2d7d66=['14OuCrjx','36GiEGHu',';该操作可能创建或修改业务数据或本地配置。','790528IECeQY','将执行写入操作\x20','359887OxbGLq','15oKoVXJ','7084690IBWtJq','1531792ifkqck','47014xiJkbI','confirmationDescription','replace','将执行高风险写入操作\x20','996stouSM','high-risk-write',';该操作可能覆盖、删除或明显影响线上运行行为。','write','string','risk','659784gOhkHI','4533040zqjevE','7LrQlGB'];a256_0x20c0=function(){return _0x2d7d66;};return a256_0x20c0();}function requireWriteRisk(_0x1d84f4){const _0x16a054=a256_0x57b3;if(_0x1d84f4[_0x16a054(0x12d)]===_0x16a054(0x12b)||_0x1d84f4[_0x16a054(0x12d)]===_0x16a054(0x129))return _0x1d84f4[_0x16a054(0x12d)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a256_0x57b3(_0x2a3288,_0x239734){_0x2a3288=_0x2a3288-0x120;const _0x20c00f=a256_0x20c0();let _0x57b3d6=_0x20c00f[_0x2a3288];return _0x57b3d6;}function defaultDescription(_0x374691,_0x2a1c6f){const _0x2501f8=a256_0x57b3;if(_0x374691==='high-risk-write')return _0x2501f8(0x127)+_0x2a1c6f+_0x2501f8(0x12a);return _0x2501f8(0x135)+_0x2a1c6f+_0x2501f8(0x133);}function normalizeText(_0x2fbc67,_0xfed147){const _0x578688=a256_0x57b3;if(typeof _0x2fbc67!==_0x578688(0x12c))return'';return _0x2fbc67[_0x578688(0x126)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x578688(0x126)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0xfed147);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a257_0x99af(){var _0x2e3191=['risk','860XFbAOo','write','split','10321WgqBYr','service','3865190LAHDbh','6OHavjr','3531QmroDt','rabetbase.write.completed','12627250kmXSLn','high-risk-write','752664oNVNCL','194ISqLoC','5865800WgKuAw','797148UrPlil','filter'];a257_0x99af=function(){return _0x2e3191;};return a257_0x99af();}function a257_0x50ce(_0x2825f7,_0x15dffa){_0x2825f7=_0x2825f7-0x1f2;var _0x99af5c=a257_0x99af();var _0x50ce22=_0x99af5c[_0x2825f7];return _0x50ce22;}(function(_0x1de047,_0x35b770){var _0x43c5db=a257_0x50ce,_0x5a8dfd=_0x1de047();while(!![]){try{var _0x5c299f=-parseInt(_0x43c5db(0x1f9))/0x1*(-parseInt(_0x43c5db(0x202))/0x2)+-parseInt(_0x43c5db(0x1fd))/0x3*(-parseInt(_0x43c5db(0x1f6))/0x4)+-parseInt(_0x43c5db(0x1f2))/0x5*(-parseInt(_0x43c5db(0x1fc))/0x6)+-parseInt(_0x43c5db(0x1fb))/0x7+-parseInt(_0x43c5db(0x201))/0x8+parseInt(_0x43c5db(0x1f3))/0x9+-parseInt(_0x43c5db(0x1ff))/0xa;if(_0x5c299f===_0x35b770)break;else _0x5a8dfd['push'](_0x5a8dfd['shift']());}catch(_0x43baf6){_0x5a8dfd['push'](_0x5a8dfd['shift']());}}}(a257_0x99af,0x942e2));export function canonicalRabetbaseOperation(_0x3f6798){var _0x59f1de=a257_0x50ce;return[_0x3f6798[_0x59f1de(0x1fa)],..._0x3f6798['command']['trim']()[_0x59f1de(0x1f8)](/\s+/)][_0x59f1de(0x1f4)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x1e7e65,_0x8a6502,_0x578c59,_0x40c730){var _0x1e9afd=a257_0x50ce;if(_0x40c730||_0x578c59['ok']!==!![]||_0x1e7e65[_0x1e9afd(0x1f5)]!==_0x1e9afd(0x1f7)&&_0x1e7e65['risk']!==_0x1e9afd(0x200))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x1e9afd(0x1fe),'operation':_0x8a6502,'risk':_0x1e7e65[_0x1e9afd(0x1f5)]}}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd72d7b,_0x933b69){const _0x3c9314=a258_0x2e17,_0x3530f7=_0xd72d7b();while(!![]){try{const _0x343b05=-parseInt(_0x3c9314(0x143))/0x1*(-parseInt(_0x3c9314(0x14d))/0x2)+parseInt(_0x3c9314(0x14e))/0x3*(parseInt(_0x3c9314(0x14c))/0x4)+parseInt(_0x3c9314(0x148))/0x5*(parseInt(_0x3c9314(0x141))/0x6)+-parseInt(_0x3c9314(0x157))/0x7+-parseInt(_0x3c9314(0x150))/0x8+parseInt(_0x3c9314(0x140))/0x9+parseInt(_0x3c9314(0x13a))/0xa*(-parseInt(_0x3c9314(0x144))/0xb);if(_0x343b05===_0x933b69)break;else _0x3530f7['push'](_0x3530f7['shift']());}catch(_0xe1e7cb){_0x3530f7['push'](_0x3530f7['shift']());}}}(a258_0x1095,0xb25d3));function a258_0x2e17(_0x3398b5,_0x4957ce){_0x3398b5=_0x3398b5-0x139;const _0x10950d=a258_0x1095();let _0x2e1711=_0x10950d[_0x3398b5];return _0x2e1711;}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0xd604af,command:_0x236eb3,risk:_0x29990f,dryRun:_0x155bb1}){const _0x36303e=a258_0x2e17;return JSON[_0x36303e(0x154)]({'ok':_0xd604af['ok'],'command':_0x236eb3,'risk':_0x29990f,..._0x155bb1?{'dryRun':!![]}:{},..._0xd604af['data']!==undefined?{'data':_0xd604af[_0x36303e(0x14f)]}:{},..._0xd604af['message']?{'message':_0xd604af['message']}:{}});}};export async function invokeRabetbase(_0x3f5433,_0x573b7e){const _0x35e700=a258_0x2e17;throwIfAborted(_0x573b7e[_0x35e700(0x14b)]);const _0x3e61a8=await resolveRabetbaseInvocation(_0x3f5433),_0x5f1ade=canonicalRabetbaseOperation(_0x3e61a8[_0x35e700(0x155)]);return await confirmWriteBeforeQueue(_0x3e61a8[_0x35e700(0x155)],_0x3e61a8['rawFlags'],_0x5f1ade,_0x573b7e),runSerialized(async()=>{const _0x1582b7=_0x35e700,_0x514426={};try{throwIfAborted(_0x573b7e[_0x1582b7(0x14b)]);const _0x11b58c=buildConfigFromFlags(_0x3e61a8[_0x1582b7(0x142)]);await initGlobalEnvironment(_0x11b58c);const _0x994d4a=createPipelineEnv(_0x11b58c,{..._0x3e61a8['rawFlags'],'yes':_0x3e61a8[_0x1582b7(0x155)]['risk']===_0x1582b7(0x13f)?!![]:_0x3e61a8[_0x1582b7(0x142)]['yes'],'nonInteractive':!![]},_0x3e61a8['args']);_0x994d4a['isNonInteractive']=!![],_0x994d4a['riskLevel']=_0x1582b7(0x13f);const _0x443634=withAbortSignal(_0x3e61a8[_0x1582b7(0x155)],_0x573b7e[_0x1582b7(0x14b)]),_0x505a4d=createRabetbaseRunnerAdapter({'formatOutput'(_0x1d0e9e,_0x4138ba){const _0x48a750=_0x1582b7;_0x514426['result']=_0x1d0e9e,_0x514426[_0x48a750(0x153)]=_0x4138ba[_0x48a750(0x153)],_0x514426['risk']=_0x4138ba['risk'],_0x514426['format']=_0x4138ba['format'],_0x514426[_0x48a750(0x13e)]=_0x4138ba[_0x48a750(0x13e)]===!![];},async 'confirmHighRisk'(){const _0x33144c=_0x1582b7;throw new Error(_0x33144c(0x139));}});await runCommand(_0x443634,_0x994d4a,_0x505a4d);if(!_0x514426[_0x1582b7(0x13d)]||!_0x514426[_0x1582b7(0x153)]||!_0x514426[_0x1582b7(0x152)]||!_0x514426['format'])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x55a6bd=_0x514426[_0x1582b7(0x13e)]===!![],_0x37f1ee=_0x573b7e[_0x1582b7(0x13b)]??defaultPresentation,_0x23ccb8={'result':_0x514426['result'],'command':_0x514426[_0x1582b7(0x153)],'operation':_0x5f1ade,'risk':_0x514426[_0x1582b7(0x152)],'format':_0x514426[_0x1582b7(0x146)],'dryRun':_0x55a6bd},_0x451cf9=createRabetbaseWriteMetadata(_0x3e61a8[_0x1582b7(0x155)],_0x5f1ade,_0x514426[_0x1582b7(0x13d)],_0x55a6bd);let _0x44a270;try{_0x44a270=await _0x37f1ee[_0x1582b7(0x14a)](_0x23ccb8);}catch(_0x3662b8){if(!_0x451cf9||_0x37f1ee===defaultPresentation)throw _0x3662b8;_0x44a270=await defaultPresentation['present'](_0x23ccb8);}return{'operation':_0x5f1ade,'risk':_0x514426[_0x1582b7(0x152)],'mode':_0x55a6bd?_0x1582b7(0x156):_0x1582b7(0x158),'result':_0x514426['result'],'output':_0x44a270,..._0x451cf9?{'metadata':_0x451cf9}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a258_0x1095(){const _0x490076=['command','stringify','definition','dry-run','464506amdADL','execute','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','218130UzTkXP','presentation','reason','result','dryRun','high-risk-write','7971759GepXSI','294eDUAZa','rawFlags','86827BcHbgy','506QfkvQq','write','format','confirm','51835IWpxwq','Rabetbase\x20invocation\x20aborted.','present','signal','4yrDiNt','14qLASyM','1581621WzHYMi','data','5827160bjLgBq','confirmation','risk'];a258_0x1095=function(){return _0x490076;};return a258_0x1095();}async function confirmWriteBeforeQueue(_0x129808,_0x26712f,_0x4f0433,_0x5d8e61){const _0x48dff0=a258_0x2e17;if(_0x26712f[_0x48dff0(0x13e)]===!![]||_0x129808[_0x48dff0(0x152)]!==_0x48dff0(0x145)&&_0x129808[_0x48dff0(0x152)]!==_0x48dff0(0x13f))return;await _0x5d8e61[_0x48dff0(0x151)][_0x48dff0(0x147)](buildRabetbaseConfirmationRequest(_0x129808,_0x4f0433,_0x5d8e61[_0x48dff0(0x14b)]));}function withAbortSignal(_0x1eb74d,_0x118cf6){return{..._0x1eb74d,async 'execute'(_0x40e9d3){const _0x612ab5=a258_0x2e17;return throwIfAborted(_0x118cf6),_0x1eb74d[_0x612ab5(0x158)](_0x40e9d3);}};}function throwIfAborted(_0x99f046){const _0x171164=a258_0x2e17;if(_0x99f046?.['aborted'])throw _0x99f046[_0x171164(0x13c)]instanceof Error?_0x99f046[_0x171164(0x13c)]:new DOMException(_0x171164(0x149),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a259_0x2a5a(_0xb54669,_0x5eb236){_0xb54669=_0xb54669-0x140;const _0x3bc357=a259_0x3bc3();let _0x2a5a3e=_0x3bc357[_0xb54669];return _0x2a5a3e;}const a259_0x23d06a=a259_0x2a5a;function a259_0x3bc3(){const _0x58140a=['3787175GTCDtN','4654880XCvLkJ','513921EbzRsQ','200018XYYGTK','956601DigBEl','resolve','6QMZXJd','46275mpzzJh','1723992lrPsJR','678zRyfuD'];a259_0x3bc3=function(){return _0x58140a;};return a259_0x3bc3();}(function(_0x2963ff,_0x1e88f4){const _0x247ec9=a259_0x2a5a,_0x429347=_0x2963ff();while(!![]){try{const _0x3cd7b1=parseInt(_0x247ec9(0x146))/0x1+-parseInt(_0x247ec9(0x147))/0x2+parseInt(_0x247ec9(0x140))/0x3*(-parseInt(_0x247ec9(0x142))/0x4)+-parseInt(_0x247ec9(0x141))/0x5*(-parseInt(_0x247ec9(0x143))/0x6)+-parseInt(_0x247ec9(0x144))/0x7+parseInt(_0x247ec9(0x145))/0x8+-parseInt(_0x247ec9(0x148))/0x9;if(_0x3cd7b1===_0x1e88f4)break;else _0x429347['push'](_0x429347['shift']());}catch(_0x26bee8){_0x429347['push'](_0x429347['shift']());}}}(a259_0x3bc3,0x81f35));let tail=Promise[a259_0x23d06a(0x149)]();export async function runSerialized(_0x3aa409){const _0x4d7d71=tail;let _0x17f106;tail=new Promise(_0x24d11f=>{_0x17f106=_0x24d11f;}),await _0x4d7d71['catch'](()=>undefined);try{return await _0x3aa409();}finally{_0x17f106();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35b519,_0x4ad71f){const _0x4f5a53=a260_0x4a17,_0x1b2648=_0x35b519();while(!![]){try{const _0x4bcb3e=-parseInt(_0x4f5a53(0x1c2))/0x1*(parseInt(_0x4f5a53(0x1bb))/0x2)+parseInt(_0x4f5a53(0x1ce))/0x3*(parseInt(_0x4f5a53(0x1c0))/0x4)+-parseInt(_0x4f5a53(0x1d0))/0x5*(parseInt(_0x4f5a53(0x1ca))/0x6)+-parseInt(_0x4f5a53(0x1d1))/0x7*(-parseInt(_0x4f5a53(0x1c8))/0x8)+-parseInt(_0x4f5a53(0x1ba))/0x9*(parseInt(_0x4f5a53(0x1cd))/0xa)+parseInt(_0x4f5a53(0x1d2))/0xb+parseInt(_0x4f5a53(0x1cb))/0xc*(parseInt(_0x4f5a53(0x1bf))/0xd);if(_0x4bcb3e===_0x4ad71f)break;else _0x1b2648['push'](_0x1b2648['shift']());}catch(_0x4d9f6a){_0x1b2648['push'](_0x1b2648['shift']());}}}(a260_0x1225,0xe45fe));import a260_0x516ad8 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a260_0x4a17(_0x5e1b0f,_0x5163fd){_0x5e1b0f=_0x5e1b0f-0x1b9;const _0x122579=a260_0x1225();let _0x4a17d4=_0x122579[_0x5e1b0f];return _0x4a17d4;}function a260_0x1225(){const _0x1364d8=['flags','120HiFLIr','3rNNiIY','join','1060GNjTOn','3020514WbVlBF','7326473ZxJkQk','validation','1031985eROvCe','2tPTCHp','defaultCommand','message','hint','9909107WsfzMB','3766488ggJftY','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','1700168UtTyUx','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','wildcardDef','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','run','slice','16kLXstY','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','21108zxfLbB','36YHmUTj'];a260_0x1225=function(){return _0x1364d8;};return a260_0x1225();}export async function resolveRabetbaseInvocation(_0xfa1724){const _0x3db669=a260_0x4a17,_0x5041ce=a260_0x516ad8('',{'importMeta':import.meta,'argv':[..._0xfa1724],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52119c=[..._0x5041ce['input']],_0x1a1fcd=_0x5041ce[_0x3db669(0x1cc)],_0x1691f8=_0x52119c[0x0];if(!_0x1691f8)throw CliErrors[_0x3db669(0x1b9)](_0x3db669(0x1c9));const _0x4c8619=resolveRemovedCommand(_0x1691f8,_0x52119c[0x1]);if(_0x4c8619)throw CliErrors['validation'](_0x4c8619[_0x3db669(0x1bd)],_0x4c8619[_0x3db669(0x1be)]);if(_0x1691f8===_0x3db669(0x1c6))throw CliErrors[_0x3db669(0x1b9)](_0x3db669(0x1c5),_0x3db669(0x1c3));if(!isKnownService(_0x1691f8))throw CliErrors['unknownCommand'](_0x52119c[_0x3db669(0x1cf)]('\x20'));const _0x4122d5=getServiceEntry(_0x1691f8),_0x7202d7=_0x52119c[0x1],_0x57ad12=_0x7202d7||_0x4122d5[_0x3db669(0x1bc)];if(!_0x57ad12){if(_0x4122d5[_0x3db669(0x1c4)])return{'definition':_0x4122d5[_0x3db669(0x1c4)],'rawFlags':_0x1a1fcd,'args':[]};throw CliErrors[_0x3db669(0x1b9)](_0x3db669(0x1c1)+_0x1691f8+'\x22.');}const _0x137da5=findDefinition(_0x1691f8,_0x57ad12);if(_0x137da5)return{'definition':_0x137da5,'rawFlags':_0x1a1fcd,'args':_0x52119c['slice'](0x2)};if(_0x4122d5[_0x3db669(0x1c4)])return{'definition':_0x4122d5[_0x3db669(0x1c4)],'rawFlags':_0x1a1fcd,'args':[_0x57ad12,..._0x52119c[_0x3db669(0x1c7)](0x2)]};throw CliErrors['unknownCommand'](_0x1691f8+'\x20'+_0x57ad12);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a262_0x15ea5d=a262_0x424f;(function(_0x4f9512,_0x388323){const _0x1dd664=a262_0x424f,_0x3c1071=_0x4f9512();while(!![]){try{const _0x437664=parseInt(_0x1dd664(0x16e))/0x1*(-parseInt(_0x1dd664(0x17d))/0x2)+-parseInt(_0x1dd664(0x19d))/0x3+-parseInt(_0x1dd664(0x197))/0x4*(parseInt(_0x1dd664(0x176))/0x5)+-parseInt(_0x1dd664(0x183))/0x6+-parseInt(_0x1dd664(0x195))/0x7+-parseInt(_0x1dd664(0x18b))/0x8+-parseInt(_0x1dd664(0x16b))/0x9*(-parseInt(_0x1dd664(0x196))/0xa);if(_0x437664===_0x388323)break;else _0x3c1071['push'](_0x3c1071['shift']());}catch(_0x516bc9){_0x3c1071['push'](_0x3c1071['shift']());}}}(a262_0x1ea3,0x7126a));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';function a262_0x424f(_0xb06262,_0xf451a4){_0xb06262=_0xb06262-0x163;const _0x1ea31a=a262_0x1ea3();let _0x424fd1=_0x1ea31a[_0xb06262];return _0x424fd1;}import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a262_0x15ea5d(0x172),SKILL_NAME=a262_0x15ea5d(0x199);function frontmatterValue(_0x521602,_0x54f58d){const _0x4fc134=a262_0x15ea5d;return _0x521602[_0x4fc134(0x18a)](new RegExp('^'+_0x54f58d+_0x4fc134(0x1a0),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x41aa47,_0x5bb0c6=_0x41aa47){const _0x434b7f=a262_0x15ea5d;return readdirSync(_0x5bb0c6,{'withFileTypes':!![]})[_0x434b7f(0x17b)](_0x3f5e38=>{const _0xd0b931=_0x434b7f,_0x2c5bb8=join(_0x5bb0c6,_0x3f5e38[_0xd0b931(0x168)]),_0x1823a2=lstatSync(_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x18e)]())throw new Error(_0xd0b931(0x180)+_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x193)]())return listFiles(_0x41aa47,_0x2c5bb8);if(!_0x1823a2[_0xd0b931(0x175)]())throw new Error(_0xd0b931(0x184)+_0x2c5bb8);return[relative(_0x41aa47,_0x2c5bb8)[_0xd0b931(0x19e)](sep)[_0xd0b931(0x16a)]('/')];})[_0x434b7f(0x171)]((_0x4d56ee,_0x1055c7)=>_0x4d56ee<_0x1055c7?-0x1:_0x4d56ee>_0x1055c7?0x1:0x0);}function digestFiles(_0x242d25,_0x3b7df5){const _0x27b956=a262_0x15ea5d,_0x43c2f9=createHash(_0x27b956(0x164));for(const _0x267931 of _0x3b7df5){if(_0x267931[_0x27b956(0x166)]('/')||_0x267931['split']('/')[_0x27b956(0x19f)]('..')||_0x267931[_0x27b956(0x19f)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x267931);_0x43c2f9['update'](_0x267931),_0x43c2f9[_0x27b956(0x17f)]('\x00'),_0x43c2f9[_0x27b956(0x17f)](readFileSync(join(_0x242d25,..._0x267931['split']('/')))),_0x43c2f9['update']('\x00');}return _0x43c2f9['digest']('hex');}function sameFiles(_0x55e7f4,_0x50389b){const _0x1f72a9=a262_0x15ea5d;return _0x55e7f4['length']===_0x50389b[_0x1f72a9(0x169)]&&_0x55e7f4[_0x1f72a9(0x187)]((_0x464bef,_0x3ab812)=>_0x464bef===_0x50389b[_0x3ab812]);}function readSource(_0x597109){const _0x1838f5=a262_0x15ea5d,_0xd66a18=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x177)),'utf8')),_0x173373=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x170),_0x1838f5(0x179)),'utf8')),_0xc26154=join(_0x597109,'skills',SKILL_NAME),_0xb6ce9d=frontmatterValue(readFileSync(join(_0xc26154,'SKILL.md'),_0x1838f5(0x19c)),_0x1838f5(0x198)),_0x25727f=listFiles(_0xc26154);if(_0x173373['schemaVersion']!==0x1||_0x173373[_0x1838f5(0x168)]!==SKILL_NAME||!_0xd66a18[_0x1838f5(0x198)]||_0x173373[_0x1838f5(0x17e)]!==_0xd66a18[_0x1838f5(0x198)]||_0x173373['skillVersion']!==_0xd66a18['version']||_0xb6ce9d!==_0xd66a18[_0x1838f5(0x198)]||!sameFiles(_0x25727f,_0x173373['files'])||digestFiles(_0xc26154,_0x25727f)!==_0x173373[_0x1838f5(0x165)])throw new Error(_0x1838f5(0x174));return{'packageVersion':_0xd66a18['version'],'skillVersion':_0xb6ce9d,'root':_0xc26154,'manifest':_0x173373};}function installedSkillPath(_0x1d6607){const _0x1c82da=a262_0x15ea5d,_0xb9ea67=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d6607});if(_0xb9ea67[_0x1c82da(0x188)]==='present')return{'state':'present','path':dirname(_0xb9ea67[_0x1c82da(0x194)])};if(_0xb9ea67[_0x1c82da(0x188)]===_0x1c82da(0x186))return{'state':_0x1c82da(0x16d)};return{'state':_0x1c82da(0x163),'reason':_0xb9ea67[_0x1c82da(0x17a)]};}export function inspectInstalledBuiltinSkillVersion(_0x56b7ea,_0x44231f={}){const _0x4982c1=a262_0x15ea5d,_0xf95ce6=installedSkillPath(_0x44231f[_0x4982c1(0x18d)]??homedir());if(_0xf95ce6[_0x4982c1(0x188)]==='missing')return{'state':_0x4982c1(0x16d),'expectedVersion':_0x56b7ea,'repairCommand':REPAIR_COMMAND};if(_0xf95ce6[_0x4982c1(0x188)]===_0x4982c1(0x163))return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'reason':_0xf95ce6['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1360bf=frontmatterValue(readFileSync(join(_0xf95ce6['path'],_0x4982c1(0x189)),_0x4982c1(0x19c)),_0x4982c1(0x198));return{'state':_0x1360bf===_0x56b7ea?_0x4982c1(0x191):_0x4982c1(0x1a1),'expectedVersion':_0x56b7ea,'skillVersion':_0x1360bf,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'repairCommand':REPAIR_COMMAND};}catch(_0x232fda){return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'reason':_0x232fda instanceof Error?_0x232fda[_0x4982c1(0x167)]:String(_0x232fda),'repairCommand':REPAIR_COMMAND};}}function a262_0x1ea3(){const _0xbcac9d=['version_mismatch','pipe','SOURCE_INVALID','INSTALL_FAILED','unverifiable','sha256','digest','startsWith','message','name','length','join','9DLeuPH','skillVersion','missing','262934KCjBoB','skills@latest\x20exited\x20','skills','sort','rabetbase\x20cli-skill\x20install','root','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isFile','54525MbZmTJ','package.json','packageRoot','rabetbase.manifest.json','reason','flatMap','Installed\x20Skill\x20state\x20is\x20','2NSbjKU','packageVersion','update','Symbolic\x20link\x20is\x20not\x20allowed:\x20','installedPath','error','2599008iZJKgJ','Unsupported\x20Skill\x20entry:\x20','content_mismatch','absent','every','state','SKILL.md','match','1013616rDdgYn','status','home','isSymbolicLink','VERIFY_FAILED','stdio','current','unknown','isDirectory','path','6390328DbYrxv','39278270bySZuv','316wFGjJd','version','rabetbase','parse','manifest','utf8','2601474YjnMdC','split','includes',':\x5cs*(.+)$'];a262_0x1ea3=function(){return _0xbcac9d;};return a262_0x1ea3();}export function inspectBuiltinSkill(_0x4106a0={}){const _0x15a976=a262_0x15ea5d,_0x3a506b=_0x4106a0[_0x15a976(0x178)]??DEFAULT_PACKAGE_ROOT;let _0x2f3fdf;try{_0x2f3fdf=readSource(_0x3a506b);}catch(_0x4a3274){return{'state':_0x15a976(0x163),'packageVersion':_0x15a976(0x192),'reason':_0x4a3274 instanceof Error?_0x4a3274[_0x15a976(0x167)]:String(_0x4a3274),'repairCommand':REPAIR_COMMAND};}const _0x15f641=installedSkillPath(_0x4106a0[_0x15a976(0x18d)]??homedir());if(_0x15f641[_0x15a976(0x188)]===_0x15a976(0x16d))return{'state':'missing','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'repairCommand':REPAIR_COMMAND};if(_0x15f641['state']===_0x15a976(0x163))return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'reason':_0x15f641[_0x15a976(0x17a)],'repairCommand':REPAIR_COMMAND};try{const _0x51d2b4=frontmatterValue(readFileSync(join(_0x15f641[_0x15a976(0x194)],_0x15a976(0x189)),_0x15a976(0x19c)),_0x15a976(0x198));if(_0x51d2b4!==_0x2f3fdf[_0x15a976(0x16c)])return{'state':'version_mismatch','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'repairCommand':REPAIR_COMMAND};const _0x4695ca=listFiles(_0x15f641[_0x15a976(0x194)]),_0x1ca77a=digestFiles(_0x15f641[_0x15a976(0x194)],_0x4695ca);return{'state':sameFiles(_0x4695ca,_0x2f3fdf[_0x15a976(0x19b)]['files'])&&_0x1ca77a===_0x2f3fdf[_0x15a976(0x19b)][_0x15a976(0x165)]?'current':_0x15a976(0x185),'packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'digest':_0x1ca77a,'repairCommand':REPAIR_COMMAND};}catch(_0x55f99b){return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'installedPath':_0x15f641[_0x15a976(0x194)],'reason':_0x55f99b instanceof Error?_0x55f99b[_0x15a976(0x167)]:String(_0x55f99b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1e6d19,_0xafd63f,_0x2d7d6e,_0x4ff146){const _0x5f2699=a262_0x15ea5d;return{'ok':![],'code':_0x1e6d19,'packageVersion':_0xafd63f[_0x5f2699(0x17e)],'skillVersion':_0xafd63f[_0x5f2699(0x16c)],'installedPath':_0x4ff146,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x2d7d6e instanceof Error?_0x2d7d6e['message']:String(_0x2d7d6e)};}export function installBuiltinSkill(_0x38d304={}){const _0x1f6dbc=a262_0x15ea5d,_0x492f92=_0x38d304['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9fa3a8=_0x38d304['home']??homedir();let _0x1d411d;try{_0x1d411d=readSource(_0x492f92);}catch(_0x515057){return failure(_0x1f6dbc(0x1a3),{'packageVersion':_0x1f6dbc(0x192),'skillVersion':_0x1f6dbc(0x192)},_0x515057);}const _0x5d3d76=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8}),_0x5c6595=runNpxSkillsAddGlobal(_0x492f92,_0x1d411d[_0x1f6dbc(0x173)],{'stdio':_0x38d304[_0x1f6dbc(0x190)]??_0x1f6dbc(0x1a2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x9fa3a8}});if(_0x5c6595['skipped'])return{'ok':!![],'packageVersion':_0x1d411d['packageVersion'],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0x5d3d76[_0x1f6dbc(0x181)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5c6595['ok'])return failure(_0x1f6dbc(0x1a4),_0x1d411d,_0x5c6595[_0x1f6dbc(0x182)]??_0x1f6dbc(0x16f)+_0x5c6595[_0x1f6dbc(0x18c)]);const _0xffc58a=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8});if(_0xffc58a['state']!==_0x1f6dbc(0x191))return failure(_0x1f6dbc(0x18f),_0x1d411d,_0xffc58a[_0x1f6dbc(0x17a)]??_0x1f6dbc(0x17c)+_0xffc58a[_0x1f6dbc(0x188)],_0xffc58a[_0x1f6dbc(0x181)]);return{'ok':!![],'packageVersion':_0x1d411d[_0x1f6dbc(0x17e)],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0xffc58a['installedPath'],'changed':_0x5d3d76[_0x1f6dbc(0x188)]!==_0x1f6dbc(0x191),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a262_0x52cf17=a262_0x1603;(function(_0x20c216,_0x43fc9b){const _0x41cdf9=a262_0x1603,_0x219ddb=_0x20c216();while(!![]){try{const _0x2a08ed=parseInt(_0x41cdf9(0x116))/0x1+-parseInt(_0x41cdf9(0x11c))/0x2*(-parseInt(_0x41cdf9(0x11a))/0x3)+parseInt(_0x41cdf9(0x127))/0x4+parseInt(_0x41cdf9(0x14c))/0x5+parseInt(_0x41cdf9(0x120))/0x6+parseInt(_0x41cdf9(0x126))/0x7*(parseInt(_0x41cdf9(0x146))/0x8)+-parseInt(_0x41cdf9(0x11d))/0x9;if(_0x2a08ed===_0x43fc9b)break;else _0x219ddb['push'](_0x219ddb['shift']());}catch(_0x25dff6){_0x219ddb['push'](_0x219ddb['shift']());}}}(a262_0x4477,0x6b257));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a262_0x52cf17(0x119);function frontmatterValue(_0x1c5ef9,_0x15b8ac){const _0x3376bf=a262_0x52cf17;return _0x1c5ef9['match'](new RegExp('^'+_0x15b8ac+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x3376bf(0x13d)]()??'';}function listFiles(_0x3620ed,_0x4cf104=_0x3620ed){const _0x14bd19=a262_0x52cf17;return readdirSync(_0x4cf104,{'withFileTypes':!![]})[_0x14bd19(0x135)](_0x3950c7=>{const _0x4c84dc=_0x14bd19,_0x342d1a=join(_0x4cf104,_0x3950c7[_0x4c84dc(0x137)]),_0x4197a5=lstatSync(_0x342d1a);if(_0x4197a5[_0x4c84dc(0x118)]())throw new Error(_0x4c84dc(0x129)+_0x342d1a);if(_0x4197a5[_0x4c84dc(0x139)]())return listFiles(_0x3620ed,_0x342d1a);if(!_0x4197a5[_0x4c84dc(0x117)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x342d1a);return[relative(_0x3620ed,_0x342d1a)['split'](sep)[_0x4c84dc(0x13f)]('/')];})[_0x14bd19(0x13c)]((_0x166a34,_0x1ac607)=>_0x166a34<_0x1ac607?-0x1:_0x166a34>_0x1ac607?0x1:0x0);}function digestFiles(_0x390300,_0x33d171){const _0x78f558=a262_0x52cf17,_0x4e62d4=createHash(_0x78f558(0x12d));for(const _0x378072 of _0x33d171){if(_0x378072[_0x78f558(0x138)]('/')||_0x378072[_0x78f558(0x149)]('/')[_0x78f558(0x12e)]('..')||_0x378072[_0x78f558(0x12e)]('\x5c'))throw new Error(_0x78f558(0x110)+_0x378072);_0x4e62d4[_0x78f558(0x113)](_0x378072),_0x4e62d4[_0x78f558(0x113)]('\x00'),_0x4e62d4['update'](readFileSync(join(_0x390300,..._0x378072[_0x78f558(0x149)]('/')))),_0x4e62d4[_0x78f558(0x113)]('\x00');}return _0x4e62d4[_0x78f558(0x12f)](_0x78f558(0x11f));}function sameFiles(_0x326964,_0x289fe7){return _0x326964['length']===_0x289fe7['length']&&_0x326964['every']((_0x2e7f8f,_0x2da164)=>_0x2e7f8f===_0x289fe7[_0x2da164]);}function a262_0x4477(){const _0x15561c=['schemaVersion','error','2250830mSoCBT','absent','Unsafe\x20manifest\x20path:\x20','home','Installed\x20Skill\x20state\x20is\x20','update','INSTALL_FAILED','path','592148gEFSFJ','isFile','isSymbolicLink','rabetbase','1401BuNufU','status','2598bApPgl','19630593rPQTbW','current','hex','298962ThyYDy','packageVersion','manifest','message','version_mismatch','files','2884IxCrBT','743416QijqsB','utf8','Symbolic\x20link\x20is\x20not\x20allowed:\x20','SKILL.md','version','SOURCE_INVALID','sha256','includes','digest','skipped','unknown','skills','root','packageRoot','flatMap','installedPath','name','startsWith','isDirectory','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','reason','sort','trim','present','join','stdio','VERIFY_FAILED','parse','skillVersion','state','unverifiable','14280Tzvtof','missing','package.json','split'];a262_0x4477=function(){return _0x15561c;};return a262_0x4477();}function readSource(_0x323d8d){const _0x101ae4=a262_0x52cf17,_0x236a94=JSON[_0x101ae4(0x142)](readFileSync(join(_0x323d8d,_0x101ae4(0x148)),'utf8')),_0x2c13c3=JSON['parse'](readFileSync(join(_0x323d8d,_0x101ae4(0x132),'rabetbase.manifest.json'),_0x101ae4(0x128))),_0x4bb44c=join(_0x323d8d,'skills',SKILL_NAME),_0x3cbbaf=frontmatterValue(readFileSync(join(_0x4bb44c,_0x101ae4(0x12a)),_0x101ae4(0x128)),_0x101ae4(0x12b)),_0x4eb527=listFiles(_0x4bb44c);if(_0x2c13c3[_0x101ae4(0x14a)]!==0x1||_0x2c13c3[_0x101ae4(0x137)]!==SKILL_NAME||!_0x236a94['version']||_0x2c13c3[_0x101ae4(0x121)]!==_0x236a94['version']||_0x2c13c3[_0x101ae4(0x143)]!==_0x236a94[_0x101ae4(0x12b)]||_0x3cbbaf!==_0x236a94[_0x101ae4(0x12b)]||!sameFiles(_0x4eb527,_0x2c13c3[_0x101ae4(0x125)])||digestFiles(_0x4bb44c,_0x4eb527)!==_0x2c13c3['digest'])throw new Error(_0x101ae4(0x13a));return{'packageVersion':_0x236a94[_0x101ae4(0x12b)],'skillVersion':_0x3cbbaf,'root':_0x4bb44c,'manifest':_0x2c13c3};}function installedSkillPath(_0x51c1f5){const _0x35c434=a262_0x52cf17,_0x2ddcae=resolveInstalledSkill(SKILL_NAME,{'home':_0x51c1f5});if(_0x2ddcae[_0x35c434(0x144)]===_0x35c434(0x13e))return{'state':_0x35c434(0x13e),'path':dirname(_0x2ddcae[_0x35c434(0x115)])};if(_0x2ddcae[_0x35c434(0x144)]===_0x35c434(0x14d))return{'state':_0x35c434(0x147)};return{'state':_0x35c434(0x145),'reason':_0x2ddcae[_0x35c434(0x13b)]};}export function inspectInstalledBuiltinSkillVersion(_0x40ba7e,_0x360e7d={}){const _0x4dd6b2=a262_0x52cf17,_0x21028d=installedSkillPath(_0x360e7d['home']??homedir());if(_0x21028d[_0x4dd6b2(0x144)]===_0x4dd6b2(0x147))return{'state':_0x4dd6b2(0x147),'expectedVersion':_0x40ba7e,'repairCommand':REPAIR_COMMAND};if(_0x21028d[_0x4dd6b2(0x144)]===_0x4dd6b2(0x145))return{'state':'unverifiable','expectedVersion':_0x40ba7e,'reason':_0x21028d['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x95d961=frontmatterValue(readFileSync(join(_0x21028d['path'],_0x4dd6b2(0x12a)),_0x4dd6b2(0x128)),_0x4dd6b2(0x12b));return{'state':_0x95d961===_0x40ba7e?_0x4dd6b2(0x11e):_0x4dd6b2(0x124),'expectedVersion':_0x40ba7e,'skillVersion':_0x95d961,'installedPath':_0x21028d['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x36e910){return{'state':_0x4dd6b2(0x145),'expectedVersion':_0x40ba7e,'installedPath':_0x21028d['path'],'reason':_0x36e910 instanceof Error?_0x36e910[_0x4dd6b2(0x123)]:String(_0x36e910),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x37b40c={}){const _0x47800e=a262_0x52cf17,_0x262abd=_0x37b40c[_0x47800e(0x134)]??DEFAULT_PACKAGE_ROOT;let _0xf0a6a0;try{_0xf0a6a0=readSource(_0x262abd);}catch(_0xf9aa0e){return{'state':_0x47800e(0x145),'packageVersion':_0x47800e(0x131),'reason':_0xf9aa0e instanceof Error?_0xf9aa0e['message']:String(_0xf9aa0e),'repairCommand':REPAIR_COMMAND};}const _0xf4d9c8=installedSkillPath(_0x37b40c[_0x47800e(0x111)]??homedir());if(_0xf4d9c8[_0x47800e(0x144)]==='missing')return{'state':'missing','packageVersion':_0xf0a6a0[_0x47800e(0x121)],'repairCommand':REPAIR_COMMAND};if(_0xf4d9c8['state']==='unverifiable')return{'state':_0x47800e(0x145),'packageVersion':_0xf0a6a0[_0x47800e(0x121)],'reason':_0xf4d9c8['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x10b044=frontmatterValue(readFileSync(join(_0xf4d9c8[_0x47800e(0x115)],_0x47800e(0x12a)),'utf8'),_0x47800e(0x12b));if(_0x10b044!==_0xf0a6a0[_0x47800e(0x143)])return{'state':_0x47800e(0x124),'packageVersion':_0xf0a6a0[_0x47800e(0x121)],'skillVersion':_0x10b044,'installedPath':_0xf4d9c8[_0x47800e(0x115)],'repairCommand':REPAIR_COMMAND};const _0x20c719=listFiles(_0xf4d9c8[_0x47800e(0x115)]),_0x421a41=digestFiles(_0xf4d9c8['path'],_0x20c719);return{'state':sameFiles(_0x20c719,_0xf0a6a0[_0x47800e(0x122)][_0x47800e(0x125)])&&_0x421a41===_0xf0a6a0[_0x47800e(0x122)]['digest']?'current':'content_mismatch','packageVersion':_0xf0a6a0[_0x47800e(0x121)],'skillVersion':_0x10b044,'installedPath':_0xf4d9c8[_0x47800e(0x115)],'digest':_0x421a41,'repairCommand':REPAIR_COMMAND};}catch(_0x3512da){return{'state':_0x47800e(0x145),'packageVersion':_0xf0a6a0[_0x47800e(0x121)],'installedPath':_0xf4d9c8['path'],'reason':_0x3512da instanceof Error?_0x3512da[_0x47800e(0x123)]:String(_0x3512da),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1916ff,_0x4d29b3,_0x3b2175,_0x13d4b3){const _0xebe6e6=a262_0x52cf17;return{'ok':![],'code':_0x1916ff,'packageVersion':_0x4d29b3['packageVersion'],'skillVersion':_0x4d29b3[_0xebe6e6(0x143)],'installedPath':_0x13d4b3,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x3b2175 instanceof Error?_0x3b2175[_0xebe6e6(0x123)]:String(_0x3b2175)};}function a262_0x1603(_0x914552,_0x5029a3){_0x914552=_0x914552-0x110;const _0x447759=a262_0x4477();let _0x16030a=_0x447759[_0x914552];return _0x16030a;}export function installBuiltinSkill(_0x271f81={}){const _0x2e37e1=a262_0x52cf17,_0x44b0ef=_0x271f81[_0x2e37e1(0x134)]??DEFAULT_PACKAGE_ROOT,_0x323da7=_0x271f81[_0x2e37e1(0x111)]??homedir();let _0x202463;try{_0x202463=readSource(_0x44b0ef);}catch(_0xe17325){return failure(_0x2e37e1(0x12c),{'packageVersion':_0x2e37e1(0x131),'skillVersion':_0x2e37e1(0x131)},_0xe17325);}const _0x2f3be3=inspectBuiltinSkill({'packageRoot':_0x44b0ef,'home':_0x323da7}),_0x4f8758=runNpxSkillsAddGlobal(_0x44b0ef,_0x202463[_0x2e37e1(0x133)],{'stdio':_0x271f81[_0x2e37e1(0x140)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x323da7}});if(_0x4f8758[_0x2e37e1(0x130)])return{'ok':!![],'packageVersion':_0x202463[_0x2e37e1(0x121)],'skillVersion':_0x202463['skillVersion'],'installedPath':_0x2f3be3[_0x2e37e1(0x136)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x4f8758['ok'])return failure(_0x2e37e1(0x114),_0x202463,_0x4f8758[_0x2e37e1(0x14b)]??'skills@latest\x20exited\x20'+_0x4f8758[_0x2e37e1(0x11b)]);const _0x44d119=inspectBuiltinSkill({'packageRoot':_0x44b0ef,'home':_0x323da7});if(_0x44d119[_0x2e37e1(0x144)]!==_0x2e37e1(0x11e))return failure(_0x2e37e1(0x141),_0x202463,_0x44d119['reason']??_0x2e37e1(0x112)+_0x44d119[_0x2e37e1(0x144)],_0x44d119['installedPath']);return{'ok':!![],'packageVersion':_0x202463[_0x2e37e1(0x121)],'skillVersion':_0x202463[_0x2e37e1(0x143)],'installedPath':_0x44d119[_0x2e37e1(0x136)],'changed':_0x2f3be3[_0x2e37e1(0x144)]!==_0x2e37e1(0x11e),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a055f,_0x3abd5f){const _0x4f4438=a263_0x383a,_0x5b7138=_0x3a055f();while(!![]){try{const _0x4eb4fa=-parseInt(_0x4f4438(0xde))/0x1+-parseInt(_0x4f4438(0xdb))/0x2+-parseInt(_0x4f4438(0xd5))/0x3+parseInt(_0x4f4438(0xd6))/0x4+-parseInt(_0x4f4438(0xe7))/0x5+-parseInt(_0x4f4438(0xcf))/0x6*(-parseInt(_0x4f4438(0xe1))/0x7)+-parseInt(_0x4f4438(0xe6))/0x8*(-parseInt(_0x4f4438(0xd9))/0x9);if(_0x4eb4fa===_0x3abd5f)break;else _0x5b7138['push'](_0x5b7138['shift']());}catch(_0x29c371){_0x5b7138['push'](_0x5b7138['shift']());}}}(a263_0x3b32,0x3edf4));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(_0x37eca3){const _0x5ddc63=a263_0x383a,_0x4ebaf3=[];for(const [_0x2e217f,_0x5063fb]of Object[_0x5ddc63(0xce)](_0x37eca3)){if(_0x5063fb===!![]){const _0x1109cf=_0x2e217f[_0x5ddc63(0xd3)](/([A-Z])/g,_0x5ddc63(0xed))['toLowerCase']();_0x4ebaf3[_0x5ddc63(0xd4)](_0x1109cf);}}return _0x4ebaf3;}function a263_0x3b32(){const _0x4acc05=['cwd','startsWith','-$1','entries','14808TvGBIy','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','from','replace','push','257337fqevHf','691588NBpvhS','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','enable-bff-save','40923KQcOFn','\x0aAvailable\x20commands:','542532QeDNvy','skill','log','344373fQKHtI','不支持的命令:\x20','includes','196LfuJop','exit','error','setLogPath','Public\x20Open\x20Skill\x20source:\x20','1944jTPkrD','1939900HZWrlh','Error:\x20Unsupported\x20command:\x20','help','has'];a263_0x3b32=function(){return _0x4acc05;};return a263_0x3b32();}export function parseDynamicFlags(){const _0x3fe66c=a263_0x383a,_0x94f167=[];for(let _0xbcc6aa=0x3;_0xbcc6aa<process['argv']['length'];_0xbcc6aa++){const _0x3105c6=process['argv'][_0xbcc6aa];if(_0x3105c6&&_0x3105c6[_0x3fe66c(0xec)]('--')){const _0x362525=_0x3105c6['slice'](0x2);_0x362525&&!_0x362525[_0x3fe66c(0xe0)]('=')&&_0x94f167['push'](_0x362525);}}return _0x94f167;}export function getAllProvidedFlags(_0x281248){const _0x22468a=a263_0x383a,_0x3cfd34=camelCaseFlagsToKebab(_0x281248),_0xe71e8c=parseDynamicFlags(),_0x117fe8=new Set([..._0x3cfd34,..._0xe71e8c]);return Array[_0x22468a(0xd2)](_0x117fe8);}export function normalizeLegacyBffSaveFlags(_0x477888){const _0x1dc1ef=a263_0x383a,_0x5a55d4=new Set(_0x477888);return _0x5a55d4[_0x1dc1ef(0xea)]('dangerously-bff-save')&&_0x5a55d4['add'](_0x1dc1ef(0xd8)),Array[_0x1dc1ef(0xd2)](_0x5a55d4);}function a263_0x383a(_0x367091,_0x4b3a48){_0x367091=_0x367091-0xce;const _0x3b32d7=a263_0x3b32();let _0x383aca=_0x3b32d7[_0x367091];return _0x383aca;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1311d8,_0xab59e3,_0x304f73){const _0x24ac39=a263_0x383a;logger[_0x24ac39(0xe4)](process[_0x24ac39(0xeb)]());if(_0x304f73?.[_0x24ac39(0xe9)]||_0x1311d8==='--help'){showHelp();return;}console['error'](_0x24ac39(0xe8)+(_0x1311d8||'(empty)')),console[_0x24ac39(0xdd)](_0x24ac39(0xda)),console[_0x24ac39(0xdd)]('\x20\x20'+CLI_BIN_NAME+_0x24ac39(0xd7)),console[_0x24ac39(0xdd)](''),console[_0x24ac39(0xdd)](_0x24ac39(0xe5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x24ac39(0xe3)](_0x24ac39(0xdc),_0x24ac39(0xdf)+_0x1311d8),process[_0x24ac39(0xe2)](0x1);}function showHelp(){const _0x55c5ec=a263_0x383a;console[_0x55c5ec(0xdd)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x55c5ec(0xd0)+SKILLS_INSTALL_COMMAND_LINE+_0x55c5ec(0xd1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a264_0x28f72f=a264_0x298c;(function(_0x138c52,_0x59284a){const _0x365195=a264_0x298c,_0x20ab93=_0x138c52();while(!![]){try{const _0x3c2920=parseInt(_0x365195(0xfb))/0x1*(parseInt(_0x365195(0xe5))/0x2)+-parseInt(_0x365195(0xff))/0x3+parseInt(_0x365195(0xdb))/0x4+parseInt(_0x365195(0x108))/0x5+parseInt(_0x365195(0x101))/0x6+parseInt(_0x365195(0xda))/0x7+parseInt(_0x365195(0x10c))/0x8*(-parseInt(_0x365195(0xd4))/0x9);if(_0x3c2920===_0x59284a)break;else _0x20ab93['push'](_0x20ab93['shift']());}catch(_0x394023){_0x20ab93['push'](_0x20ab93['shift']());}}}(a264_0x549c,0x886cf));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a264_0x28f72f(0x100);export const NPX_SKILLS_SUBCOMMAND_ADD=a264_0x28f72f(0xf5);export const NPX_SKILLS_FLAG_SKILL=a264_0x28f72f(0xe9);function a264_0x298c(_0x17ec6d,_0x17c440){_0x17ec6d=_0x17ec6d-0xd3;const _0x549c5c=a264_0x549c();let _0x298c4f=_0x549c5c[_0x17ec6d];return _0x298c4f;}export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a264_0x28f72f(0xfd);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a264_0x28f72f(0x104);export function resolveGlobalSkillName(_0x575904){switch(_0x575904['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x317730){const _0x5db45c=a264_0x28f72f,_0x54d6b2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x317730&&_0x54d6b2[_0x5db45c(0xf7)](NPX_SKILLS_FLAG_SKILL,_0x317730),_0x54d6b2;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a264_0x28f72f(0xf0),...buildNpxSkillsAddArgv()][a264_0x28f72f(0xec)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a264_0x28f72f(0xec)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4e8178,_0x229164,_0x2d809e){return{'ok':![],'status':_0x229164,'code':_0x4e8178,'error':'['+_0x4e8178+']\x20'+_0x2d809e};}function a264_0x549c(){const _0x1a628b=['npx\x20terminated\x20by\x20signal\x20','Lovrabet','warn','2043042gcjDEd','skills@latest','1112892tnirdB','npm_config_global','SPAWN_FAILED','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','state','checked','filter','2808550dUoyJg','code','remove','log','16jzibnD','Installer\x20reported\x20','4477860YmUeKN','stdio','unverifiable','yes','stdout','PERMISSION_DENIED','1001441YDFgFY','3416140OHSvla','CHILD_TERMINATED','EACCES','NPM_CONFIG_GLOBAL','message','pipe','absent','reason','EPERM','error','34mtrSSL','Skill\x20\x22','\x20failed\x20target(s)','unknown','--skill','ENOENT','skill','join','SKILL_NOT_INSTALLED','toString','status','npx','signal','NPX_NOT_FOUND','present','presence','add','\x22\x20install\x20state:\x20','push','INSTALL_PARTIAL','stderr','inherit','28859XrccTh'];a264_0x549c=function(){return _0x1a628b;};return a264_0x549c();}function spawnOptions(_0x5752eb,_0x4d519e){const _0x435100=a264_0x28f72f,_0x1a36d1={...process.env};return delete _0x1a36d1[_0x435100(0x102)],delete _0x1a36d1[_0x435100(0xde)],{'cwd':_0x5752eb,'stdio':_0x4d519e,'env':_0x1a36d1,'shell':![],..._0x4d519e==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4e72a2,_0x527b50,_0x47cef5,_0x3366d9){const _0x55fa79=a264_0x28f72f,_0x3f4aa9=[_0x4e72a2['stdout']?_0x4e72a2[_0x55fa79(0xd8)]['toString']():'',_0x4e72a2[_0x55fa79(0xf9)]?_0x4e72a2[_0x55fa79(0xf9)][_0x55fa79(0xee)]():''][_0x55fa79(0x107)](Boolean)['join']('\x0a')['trim']();_0x3366d9!==_0x55fa79(0xe0)&&_0x3f4aa9&&console['log'](_0x3f4aa9);if(_0x4e72a2[_0x55fa79(0xe4)]){const _0x2e1868=_0x4e72a2[_0x55fa79(0xe4)],_0x59d1ea=_0x2e1868[_0x55fa79(0x109)]===_0x55fa79(0xea)?_0x55fa79(0xf2):_0x2e1868[_0x55fa79(0x109)]===_0x55fa79(0xe3)||_0x2e1868[_0x55fa79(0x109)]===_0x55fa79(0xdd)?_0x55fa79(0xd9):_0x55fa79(0x103);return failure(_0x59d1ea,_0x4e72a2[_0x55fa79(0xef)],_0x2e1868[_0x55fa79(0xdf)]);}if(_0x4e72a2[_0x55fa79(0xf1)])return failure(_0x55fa79(0xdc),_0x4e72a2[_0x55fa79(0xef)],_0x55fa79(0xfc)+_0x4e72a2['signal']);if(_0x4e72a2[_0x55fa79(0xef)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x4e72a2[_0x55fa79(0xef)],_0x3f4aa9||'exit\x20'+(_0x4e72a2[_0x55fa79(0xef)]??_0x55fa79(0xe8)));const _0x2fa527=_0x527b50?resolveInstalledSkill(_0x527b50,_0x47cef5):undefined,_0x5e6804=_0x3f4aa9['match'](/Failed to install\s+(\d+)/i);if(_0x5e6804&&Number(_0x5e6804[0x1])>0x0){const _0x377e05=_0x55fa79(0xd3)+_0x5e6804[0x1]+_0x55fa79(0xe7)+(_0x3f4aa9?':\x0a'+_0x3f4aa9:'');if(_0x2fa527?.[_0x55fa79(0x105)]===_0x55fa79(0xf3))return console[_0x55fa79(0xfe)]('!\x20'+_0x377e05),{'ok':!![],'status':0x0};return failure(_0x55fa79(0xf8),0x0,_0x377e05);}if(_0x2fa527){if(_0x2fa527[_0x55fa79(0x105)]===_0x55fa79(0xe1))return failure(_0x55fa79(0xed),0x0,_0x55fa79(0xe6)+_0x527b50+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x2fa527[_0x55fa79(0x106)]['join'](',\x20')+')');_0x2fa527[_0x55fa79(0x105)]===_0x55fa79(0xd6)&&console[_0x55fa79(0xfe)]('!\x20Could\x20not\x20verify\x20\x22'+_0x527b50+_0x55fa79(0xf6)+_0x2fa527[_0x55fa79(0xe2)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xc20aba,_0x376c13){const _0x5969f0=a264_0x28f72f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e8f95=_0x376c13?.[_0x5969f0(0xd5)]??_0x5969f0(0xfa),_0x31117e=resolveNpmBin('npx'),_0x291f30=buildNpxSkillsAddArgv(_0x376c13?.[_0x5969f0(0xeb)]),_0x3cf695=[_0x5969f0(0xf0),..._0x291f30][_0x5969f0(0xec)]('\x20');console[_0x5969f0(0x10b)]('*\x20'+_0x3cf695);const _0x487c59=spawnSync(_0x31117e,_0x291f30,spawnOptions(_0xc20aba,_0x1e8f95));return normalizeSpawnResult(_0x487c59,undefined,undefined,_0x1e8f95);}export function runNpxSkillsRemove(_0x167952,_0xb040e3,_0x5725d5=LEGACY_RABETBASE_SKILL_SOURCE){const _0xbb19a8=a264_0x28f72f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x520397=_0xb040e3?.[_0xbb19a8(0xd5)]??_0xbb19a8(0xfa),_0x214faf=resolveNpmBin(_0xbb19a8(0xf0)),_0x5a4717=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xbb19a8(0x10a),_0x5725d5,NPX_SKILLS_FLAG_SKILL,_0xb040e3?.[_0xbb19a8(0xeb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xb040e3?.[_0xbb19a8(0xd7)]?['-y']:[]],_0x4c8e82=[_0x214faf,..._0x5a4717][_0xbb19a8(0xec)]('\x20');console[_0xbb19a8(0x10b)]('*\x20'+_0x4c8e82);const _0x14c912=spawnSync(_0x214faf,_0x5a4717,spawnOptions(_0x167952,_0x520397));return normalizeSpawnResult(_0x14c912,undefined,undefined,_0x520397);}export function runNpxSkillsAddGlobal(_0x302531,_0x39e7b8,_0x132742){const _0x20df67=a264_0x28f72f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3a5b10=resolveNpmBin('npx'),_0x1b82ee=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x39e7b8,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x32dc52=[_0x20df67(0xf0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x39e7b8,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x20df67(0xec)]('\x20');console[_0x20df67(0x10b)]('*\x20'+_0x32dc52);const _0x19b676=spawnSync(_0x3a5b10,_0x1b82ee,spawnOptions(_0x302531,'pipe'));return normalizeSpawnResult(_0x19b676,_0x132742?.['expectedSkillName']??resolveGlobalSkillName(_0x39e7b8),_0x132742?.[_0x20df67(0xf4)],_0x132742?.['stdio']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a265_0x19c5(){const _0x39be0f=['510zIBfWE','.agents','49716UVtGCU','version','8392WMbqRI','includes','.skill-lock.json','\x20has\x20no\x20skills\x20map','308pfLjvF','present','globalSkillsDirs','3742590dBQaOy','unusable','kind','81gAtawN','55586oIlLwm','absent','SKILL.md','home','99blFAvM','lockFile','skills','4535loMeYg','7wNhpeU','number','\x20records\x20\x22','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unverifiable','\x20uses\x20unsupported\x20version\x20','702345VsnbMl','not-recorded','236888GZlyMG','reason','recorded','message','map'];a265_0x19c5=function(){return _0x39be0f;};return a265_0x19c5();}const a265_0x907e08=a265_0x2f68;(function(_0x24616f,_0x321637){const _0x3e04f9=a265_0x2f68,_0x48e675=_0x24616f();while(!![]){try{const _0x29d64c=-parseInt(_0x3e04f9(0xe8))/0x1*(parseInt(_0x3e04f9(0xe0))/0x2)+parseInt(_0x3e04f9(0xe4))/0x3*(parseInt(_0x3e04f9(0xd5))/0x4)+-parseInt(_0x3e04f9(0xe7))/0x5*(parseInt(_0x3e04f9(0xd1))/0x6)+-parseInt(_0x3e04f9(0xca))/0x7+parseInt(_0x3e04f9(0xcc))/0x8*(parseInt(_0x3e04f9(0xdf))/0x9)+parseInt(_0x3e04f9(0xdc))/0xa+parseInt(_0x3e04f9(0xd9))/0xb*(-parseInt(_0x3e04f9(0xd3))/0xc);if(_0x29d64c===_0x321637)break;else _0x48e675['push'](_0x48e675['shift']());}catch(_0x11c440){_0x48e675['push'](_0x48e675['shift']());}}}(a265_0x19c5,0x36337));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a265_0x907e08(0xd2),a265_0x907e08(0xd7));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a265_0x907e08(0xe6))];function a265_0x2f68(_0xe13ce,_0x59de1e){_0xe13ce=_0xe13ce-0xc5;const _0x19c54b=a265_0x19c5();let _0x2f681f=_0x19c54b[_0xe13ce];return _0x2f681f;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x8ad007,_0x5dee8d){const _0x5618f2=a265_0x907e08;if(!existsSync(_0x8ad007))return{'kind':_0x5618f2(0xcb)};let _0xc55192;try{_0xc55192=JSON['parse'](readFileSync(_0x8ad007,'utf8'));}catch(_0x9d83a5){return{'kind':_0x5618f2(0xdd),'reason':_0x8ad007+'\x20is\x20unreadable:\x20'+_0x9d83a5[_0x5618f2(0xcf)]};}const _0x410322=_0xc55192;if(typeof _0x410322?.[_0x5618f2(0xd4)]!==_0x5618f2(0xc5)||!SUPPORTED_LOCK_VERSIONS[_0x5618f2(0xd6)](_0x410322['version']))return{'kind':'unusable','reason':_0x8ad007+_0x5618f2(0xc9)+String(_0x410322?.[_0x5618f2(0xd4)])};if(!_0x410322[_0x5618f2(0xe6)]||typeof _0x410322[_0x5618f2(0xe6)]!=='object')return{'kind':_0x5618f2(0xdd),'reason':_0x8ad007+_0x5618f2(0xd8)};return _0x410322[_0x5618f2(0xe6)][_0x5dee8d]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x596462,_0x474ac4){const _0x5553f8=a265_0x907e08,_0x5239a0=_0x474ac4?.[_0x5553f8(0xe3)]??homedir(),_0xb25d80=_0x474ac4?.[_0x5553f8(0xdb)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5553f8(0xd0)](_0x305180=>join(_0x5239a0,_0x305180)),_0x286751=_0x474ac4?.[_0x5553f8(0xe5)]??join(_0x5239a0,SKILL_LOCK_RELATIVE_PATH),_0x164d70=_0xb25d80['map'](_0x4db7eb=>join(_0x4db7eb,_0x596462,_0x5553f8(0xe2))),_0x3b828c=_0x164d70['find'](_0x15b00d=>existsSync(_0x15b00d));if(_0x3b828c)return{'state':_0x5553f8(0xda),'path':_0x3b828c};const _0x12be1a=readLockLookup(_0x286751,_0x596462);if(_0x12be1a[_0x5553f8(0xde)]===_0x5553f8(0xdd))return{'state':_0x5553f8(0xc8),'reason':_0x12be1a[_0x5553f8(0xcd)]};if(_0x12be1a['kind']===_0x5553f8(0xce))return{'state':_0x5553f8(0xc8),'reason':_0x286751+_0x5553f8(0xc6)+_0x596462+_0x5553f8(0xc7)+('('+_0x164d70['join'](',\x20')+')')};return{'state':_0x5553f8(0xe1),'checked':_0x164d70};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a266_0x4d85(_0x181e0e,_0x57b192){_0x181e0e=_0x181e0e-0x126;const _0x4468f4=a266_0x4468();let _0x4d8539=_0x4468f4[_0x181e0e];return _0x4d8539;}(function(_0xf1ba02,_0x1ad92b){const _0x4e26dd=a266_0x4d85,_0x11d097=_0xf1ba02();while(!![]){try{const _0x49d3e1=parseInt(_0x4e26dd(0x127))/0x1*(-parseInt(_0x4e26dd(0x12b))/0x2)+-parseInt(_0x4e26dd(0x135))/0x3*(parseInt(_0x4e26dd(0x134))/0x4)+parseInt(_0x4e26dd(0x12f))/0x5+-parseInt(_0x4e26dd(0x136))/0x6+parseInt(_0x4e26dd(0x130))/0x7+parseInt(_0x4e26dd(0x133))/0x8*(parseInt(_0x4e26dd(0x126))/0x9)+parseInt(_0x4e26dd(0x132))/0xa;if(_0x49d3e1===_0x1ad92b)break;else _0x11d097['push'](_0x11d097['shift']());}catch(_0x25f931){_0x11d097['push'](_0x11d097['shift']());}}}(a266_0x4468,0x91c41));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a266_0x4468(){const _0x1006d8=['3546064xVpkgT','468HlfEUL','26361OsRfnh','6174168bUeDup','service','[REDACTED]','durationMs','stringify','9PiUzNZ','5TCuRWi','test','error','command','135008NSEfUX','some','rabetbase.command','message','4478505oZdOqH','4891264tnTPNu','flags','9539730UaSqyI'];a266_0x4468=function(){return _0x1006d8;};return a266_0x4468();}function isSensitiveKey(_0x3bf8b3){const _0x43f3e7=a266_0x4d85;return SENSITIVE_PATTERNS[_0x43f3e7(0x12c)](_0x124f97=>_0x124f97[_0x43f3e7(0x128)](_0x3bf8b3));}function sanitizeFlags(_0x2c4671){const _0x52c9e4=a266_0x4d85,_0x49ad29={};for(const [_0x4c52cd,_0x5c3106]of Object['entries'](_0x2c4671)){isSensitiveKey(_0x4c52cd)?_0x49ad29[_0x4c52cd]=_0x5c3106!=null&&_0x5c3106!==''?_0x52c9e4(0x138):_0x5c3106:_0x49ad29[_0x4c52cd]=_0x5c3106;}return _0x49ad29;}export async function reportCommandTrace(_0x49e237){const _0x5c7e44=a266_0x4d85;try{const _0x3253ff=sanitizeFlags(_0x49e237[_0x5c7e44(0x131)]);await sendCliTraceLog({'spanName':_0x5c7e44(0x12d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x49e237[_0x5c7e44(0x137)],'command.name':_0x49e237[_0x5c7e44(0x12a)],'command.flags':JSON[_0x5c7e44(0x13a)](_0x3253ff),..._0x49e237[_0x5c7e44(0x139)]!=null?{'command.duration_ms':_0x49e237[_0x5c7e44(0x139)]}:{},..._0x49e237[_0x5c7e44(0x129)]?{'command.error':_0x49e237['error']instanceof Error?_0x49e237[_0x5c7e44(0x129)][_0x5c7e44(0x12e)]:String(_0x49e237[_0x5c7e44(0x129)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a267_0x17f8(_0x58ddcc,_0x5d6a40){_0x58ddcc=_0x58ddcc-0xa0;var _0x3d5d0c=a267_0x3d5d();var _0x17f835=_0x3d5d0c[_0x58ddcc];return _0x17f835;}(function(_0x5d5fb6,_0x50af23){var _0x3f848d=a267_0x17f8,_0x493df3=_0x5d5fb6();while(!![]){try{var _0x381c9b=parseInt(_0x3f848d(0xaa))/0x1*(-parseInt(_0x3f848d(0xab))/0x2)+parseInt(_0x3f848d(0xa6))/0x3+-parseInt(_0x3f848d(0xa3))/0x4+parseInt(_0x3f848d(0xa4))/0x5+-parseInt(_0x3f848d(0xa8))/0x6*(parseInt(_0x3f848d(0xa1))/0x7)+-parseInt(_0x3f848d(0xa0))/0x8*(-parseInt(_0x3f848d(0xa2))/0x9)+parseInt(_0x3f848d(0xa7))/0xa;if(_0x381c9b===_0x50af23)break;else _0x493df3['push'](_0x493df3['shift']());}catch(_0x1efebb){_0x493df3['push'](_0x493df3['shift']());}}}(a267_0x3d5d,0x676f6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x30d00a,_0x257d58){var _0x238724=a267_0x17f8;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x30d00a,..._0x257d58?.[_0x238724(0xa9)]&&{'rabetbase.help.service':_0x257d58[_0x238724(0xa9)]}}});}catch(_0x4e386d){console[_0x238724(0xa5)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x4e386d);}}function a267_0x3d5d(){var _0x55fb12=['2310440QZZaEd','2419550CVQcRb','error','1470771WuRygr','5163120aQvdPB','30798HsPRfn','service','147oJEdaV','7218IGwQoC','2998712ICkpXj','966qcfCRQ','18EHqQmy'];a267_0x3d5d=function(){return _0x55fb12;};return a267_0x3d5d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5efbcb,_0x48cf7b){const _0x4d8ef6=a268_0x4916,_0x5785b8=_0x5efbcb();while(!![]){try{const _0x25e269=parseInt(_0x4d8ef6(0x1a9))/0x1*(parseInt(_0x4d8ef6(0x19d))/0x2)+parseInt(_0x4d8ef6(0x19f))/0x3*(parseInt(_0x4d8ef6(0x1a1))/0x4)+-parseInt(_0x4d8ef6(0x1a2))/0x5+parseInt(_0x4d8ef6(0x1a3))/0x6*(parseInt(_0x4d8ef6(0x19e))/0x7)+parseInt(_0x4d8ef6(0x19b))/0x8+-parseInt(_0x4d8ef6(0x19c))/0x9*(parseInt(_0x4d8ef6(0x1a7))/0xa)+-parseInt(_0x4d8ef6(0x1a8))/0xb*(parseInt(_0x4d8ef6(0x19a))/0xc);if(_0x25e269===_0x48cf7b)break;else _0x5785b8['push'](_0x5785b8['shift']());}catch(_0x6336f3){_0x5785b8['push'](_0x5785b8['shift']());}}}(a268_0x1709,0xbfde3));function a268_0x4916(_0x558596,_0x7bae0f){_0x558596=_0x558596-0x19a;const _0x170965=a268_0x1709();let _0x491620=_0x170965[_0x558596];return _0x491620;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a268_0x1709(){const _0x2147b7=['username','user','10xDgIVA','2597309anyFUN','8kdqAbd','tenant','12gHnXbN','2167432hNOMDn','3276279prsdwN','121490CtfCpy','7RRqxEL','369807EAIqeP','production','20phBEPh','4381550oqurpY','5334702ugwygx','nickname'];a268_0x1709=function(){return _0x2147b7;};return a268_0x1709();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x38a914=a268_0x4916,_0x42e4a6=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x185445=_0x42e4a6?.[_0x38a914(0x1a6)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x38a914(0x1a0))}),setUserContext({'id':_0x185445?.['id'],'username':_0x185445?.[_0x38a914(0x1a5)],'nickname':_0x185445?.[_0x38a914(0x1a4)],'email':_0x185445?.['email'],'tenantCode':_0x185445?.[_0x38a914(0x1aa)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x42e4a6;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e6c5f,_0x3e8c96){const _0x58ae60=a269_0x2b99,_0x427045=_0x2e6c5f();while(!![]){try{const _0x587597=-parseInt(_0x58ae60(0xa7))/0x1+parseInt(_0x58ae60(0x99))/0x2+parseInt(_0x58ae60(0xa2))/0x3*(-parseInt(_0x58ae60(0x9c))/0x4)+parseInt(_0x58ae60(0x9d))/0x5+parseInt(_0x58ae60(0x9b))/0x6+parseInt(_0x58ae60(0xa6))/0x7*(parseInt(_0x58ae60(0xa4))/0x8)+-parseInt(_0x58ae60(0xa5))/0x9*(parseInt(_0x58ae60(0x9f))/0xa);if(_0x587597===_0x3e8c96)break;else _0x427045['push'](_0x427045['shift']());}catch(_0x27e5e6){_0x427045['push'](_0x427045['shift']());}}}(a269_0x8ce6,0xef992));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 _0xd3e84b=a269_0x2b99;process[_0xd3e84b(0xa1)](_0xd3e84b(0xa3),()=>{void flushOtelNodeIfUsed();});const _0x6352cd=()=>{const _0x26d96d=_0xd3e84b;void flushOtelNodeIfUsed()[_0x26d96d(0xa8)](()=>process[_0x26d96d(0xa0)](0x0));};process['once'](_0xd3e84b(0x9a),_0x6352cd),process[_0xd3e84b(0xa1)](_0xd3e84b(0x9e),_0x6352cd);}function a269_0x2b99(_0x129d84,_0x2dad91){_0x129d84=_0x129d84-0x99;const _0x8ce627=a269_0x8ce6();let _0x2b9918=_0x8ce627[_0x129d84];return _0x2b9918;}function a269_0x8ce6(){const _0x6ec093=['4268nQQDPR','5623865zkVhCX','SIGTERM','403400VMxuLO','exit','once','474PiRvWw','beforeExit','5289008RPgOod','684LazyBM','7PCUudg','209687FgSJis','then','2381510KUOwvU','SIGINT','8693118BfTsLq'];a269_0x8ce6=function(){return _0x6ec093;};return a269_0x8ce6();}export async function exitWithOtelShutdown(_0xd3aed8){const _0x397515=a269_0x2b99;await flushOtelNodeIfUsed(),process[_0x397515(0xa0)](_0xd3aed8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0x44a491=a270_0x160e;(function(_0x2428d5,_0x490a5c){const _0x16f988=a270_0x160e,_0x2844e4=_0x2428d5();while(!![]){try{const _0x5860e2=parseInt(_0x16f988(0x16f))/0x1*(-parseInt(_0x16f988(0x165))/0x2)+parseInt(_0x16f988(0x172))/0x3*(-parseInt(_0x16f988(0x16d))/0x4)+-parseInt(_0x16f988(0x166))/0x5*(parseInt(_0x16f988(0x16b))/0x6)+-parseInt(_0x16f988(0x168))/0x7*(parseInt(_0x16f988(0x16c))/0x8)+-parseInt(_0x16f988(0x163))/0x9*(parseInt(_0x16f988(0x171))/0xa)+-parseInt(_0x16f988(0x169))/0xb*(parseInt(_0x16f988(0x167))/0xc)+parseInt(_0x16f988(0x16e))/0xd;if(_0x5860e2===_0x490a5c)break;else _0x2844e4['push'](_0x2844e4['shift']());}catch(_0x6a5ebc){_0x2844e4['push'](_0x2844e4['shift']());}}}(a270_0x2a65,0x7787e));function a270_0x2a65(){const _0x4b2395=['13044OnJUWF','7GDioHD','6908zKudoH','version','48WDJkCC','7378032WrUboi','676WjOfqx','53952431ZLYfOe','11645dqypkR','manual','20sNRkgE','15579nURsaT','rabetbase-cli','traceparent','logData','860067RWlZsP','traceName','24fyurvM','529510wDlJmN'];a270_0x2a65=function(){return _0x4b2395;};return a270_0x2a65();}import{sendTraceLog}from'@lovrabet/otel-logger';function a270_0x160e(_0x41ed16,_0x1017b4){_0x41ed16=_0x41ed16-0x163;const _0x2a652e=a270_0x2a65();let _0x160eca=_0x2a652e[_0x41ed16];return _0x160eca;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a270_0x44a491(0x173);export async function sendCliTraceLog(_0x4038d9){const _0x18bb06=a270_0x44a491;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4038d9[_0x18bb06(0x164)]??DEFAULT_TRACE_NAME,'version':_0x4038d9[_0x18bb06(0x16a)]??getCliVersion(),'spanName':_0x4038d9['spanName'],'eventType':_0x18bb06(0x170),'logData':_0x4038d9[_0x18bb06(0x175)],..._0x4038d9[_0x18bb06(0x174)]&&{'traceparent':_0x4038d9['traceparent']}});}
|