@lovrabet/rabetbase-cli 2.4.6-beta.2 → 2.4.6
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(_0x3bb691,_0xafde92){const _0x420525=a250_0x21f7,_0x1397dd=_0x3bb691();while(!![]){try{const _0x4e9351=parseInt(_0x420525(0x1be))/0x1+parseInt(_0x420525(0x19e))/0x2+-parseInt(_0x420525(0x1bf))/0x3+parseInt(_0x420525(0x1ab))/0x4*(-parseInt(_0x420525(0x19c))/0x5)+parseInt(_0x420525(0x1a1))/0x6*(-parseInt(_0x420525(0x1d1))/0x7)+-parseInt(_0x420525(0x192))/0x8*(-parseInt(_0x420525(0x1a4))/0x9)+-parseInt(_0x420525(0x1b2))/0xa*(-parseInt(_0x420525(0x198))/0xb);if(_0x4e9351===_0xafde92)break;else _0x1397dd['push'](_0x1397dd['shift']());}catch(_0x305563){_0x1397dd['push'](_0x1397dd['shift']());}}}(a250_0x4173,0xd97c0));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_0x34fb29}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3a7ee8){const _0x3b0ddd=a250_0x21f7;return typeof _0x3a7ee8==='string'&&_0x3a7ee8[_0x3b0ddd(0x191)]()?_0x3a7ee8[_0x3b0ddd(0x191)]():undefined;}function resolveEnvAppCode(){const _0x4610a7=a250_0x21f7,_0x3cb93f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3cb93f)return{'name':_0x4610a7(0x199),'value':_0x3cb93f};const _0x336dfb=stringFlag(process.env.LOVRABET_APPCODE);if(_0x336dfb)return{'name':'LOVRABET_APPCODE','value':_0x336dfb};return undefined;}function hasExplicitAppCode(_0x7cacdd,_0xe893d4){const _0x5c9a1b=a250_0x21f7;return!!(stringFlag(_0x7cacdd[_0x5c9a1b(0x1c5)])||stringFlag(_0xe893d4['appcode']));}function assertEnvAppCodeNotIgnored(_0x210756,_0x330732,_0x487914){const _0x4dbd9b=a250_0x21f7;if(!_0x330732||_0x487914||_0x210756===_0x330732[_0x4dbd9b(0x1a9)])return;const _0x6d4634=_0x210756?_0x4dbd9b(0x197)+_0x210756+'\x22.':_0x4dbd9b(0x1ba);throw CliErrors[_0x4dbd9b(0x195)](_0x330732['name']+'='+_0x330732[_0x4dbd9b(0x1a9)]+_0x4dbd9b(0x1b8)+_0x6d4634+'\x20'+(_0x4dbd9b(0x1c7)+_0x330732[_0x4dbd9b(0x1cf)]+'\x22.'));}export function createPipelineEnv(_0x2cbeb1,_0x2846ca,_0xb679cf=[]){const _0x4a7eb1=a250_0x21f7;return{'rawFlags':_0x2846ca,'args':_0xb679cf,'resolveAppCode':()=>_0x2cbeb1['appCode'],'resolveCookie':()=>_0x2cbeb1[_0x4a7eb1(0x1c4)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x34fb29(_0x2846ca),'defaultFormat':_0x2cbeb1[_0x4a7eb1(0x1b7)],'defaultPageSize':_0x2cbeb1['pageSize'],'defaultVerbose':_0x2cbeb1['verbose'],'apiDir':_0x2cbeb1['apiDir'],'riskLevel':_0x2cbeb1[_0x4a7eb1(0x1c9)],'selectedAppName':_0x2cbeb1['explicitAppName'],'mergedCli':{'defaultApp':_0x2cbeb1[_0x4a7eb1(0x1bc)],'currentApp':_0x2cbeb1[_0x4a7eb1(0x1bd)],'appCode':_0x2cbeb1['appCode'],'apps':_0x2cbeb1['apps']}};}export function createRabetbaseRunnerAdapter(_0x23d96d={}){const _0x33155e=a250_0x21f7;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x33155e(0x1dc)](_0x5953e0=>PIPELINE_FLAG_NAMES[_0x33155e(0x19f)](_0x5953e0[_0x33155e(0x1cf)]))[_0x33155e(0x1d3)](({name:_0x287354,type:_0x6f8541,description:_0x51e7a4})=>({'name':_0x287354,'type':_0x6f8541,'description':_0x51e7a4})),'formatOutput':_0x23d96d[_0x33155e(0x1ce)]??formatOutput,'getCommandLabel'(_0x527d58){const _0x17e209=_0x33155e;return CLI_BIN_NAME+'\x20'+_0x527d58[_0x17e209(0x1d6)]+'\x20'+_0x527d58[_0x17e209(0x1b1)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x43a621,{def:_0x482002}){const _0x2de915=_0x33155e,_0x349325=_0x43a621['includes'](_0x2de915(0x1af))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x2de915(0x194)+_0x482002['risk']+_0x2de915(0x1bb)+_0x2de915(0x1b3);return CliErrors[_0x2de915(0x195)](_0x43a621+_0x2de915(0x1c0)+_0x349325);}},async 'prepare'(_0x4b0597,_0x19af01,_0x21d366,_0xfb84f){const _0x55e4a1=_0x33155e,_0x5961c7=_0x19af01[_0x55e4a1(0x1ae)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4b0597,_0x21d366,_0x5961c7,_0xfb84f);const _0x2369e9=resolveCommandAuthMode(_0x4b0597);let _0x196bac='';if(_0x2369e9!==_0x55e4a1(0x1a5)){_0x196bac=_0x19af01[_0x55e4a1(0x1b9)]()||'';if(!_0x196bac){if(_0x2369e9===_0x55e4a1(0x1da))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4b8986}=await import(_0x55e4a1(0x1d7));_0x4b8986(_0x196bac);}}const _0x6d6e9e=_0x19af01[_0x55e4a1(0x1cd)]()??'';if(_0x4b0597[_0x55e4a1(0x1ca)]!==![]){assertEnvAppCodeNotIgnored(_0x6d6e9e,resolveEnvAppCode(),hasExplicitAppCode(_0x21d366,_0x19af01[_0x55e4a1(0x1db)]));if(!_0x6d6e9e)throw CliErrors[_0x55e4a1(0x1c2)](_0x55e4a1(0x19d)+CLI_BIN_NAME+_0x55e4a1(0x1ad));}return{'defaults':{'booleans':{'verbose':_0x19af01['defaultVerbose']},'numbers':{'pagesize':_0x19af01[_0x55e4a1(0x19b)]}},'extras':{'appCode':_0x6d6e9e,'cookie':_0x196bac,'apiDomain':_0x19af01[_0x55e4a1(0x1c8)](),'apiDir':_0x5961c7,'selectedAppName':_0x19af01[_0x55e4a1(0x1b0)],'mergedCli':_0x19af01[_0x55e4a1(0x1b5)]}};},'confirmHighRisk':_0x23d96d[_0x33155e(0x1a8)]??(async({env:_0x3fcda5,commandLabel:_0x31d08c})=>{const _0xee7d24=_0x33155e;if(_0x3fcda5['isNonInteractive'])throw CliErrors[_0xee7d24(0x195)](_0xee7d24(0x1a0)+_0x31d08c+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xee7d24(0x1d9)+_0x31d08c,_0xee7d24(0x1c6)],'createCancelledError':_0x3b0aed=>CliErrors[_0xee7d24(0x1d2)](_0x3b0aed)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x335912=a250_0x21f7,{clearActiveCookie:_0x41493b}=await import(_0x335912(0x1d7));_0x41493b();}export async function finalizeRabetbaseRuntimeState(){const _0x15e757=a250_0x21f7;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5b71ab},{initEnv:_0x3decba}]=await Promise[_0x15e757(0x1c1)]([import('../constant/domain.js'),import(_0x15e757(0x19a))]);_0x5b71ab(),_0x3decba(_0x15e757(0x1ac));}}export async function runCommand(_0x9c8724,_0x28c238,_0x2dbc9f=terminalRunnerAdapter){const _0x133c24=a250_0x21f7;assertRejectedFlags(_0x9c8724,_0x28c238[_0x133c24(0x1db)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x9c8724)?withUpdateNotice(_0x9c8724):_0x9c8724,_0x28c238,_0x2dbc9f);}function a250_0x4173(){const _0x33f142=['toUpperCase','hint','confirmHighRisk','value','hasFormat','171608PqbLFF','production','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apiDir','Edit\x20the\x20config\x20file\x20manually','selectedAppName','command','1620680HloVcK','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','find','mergedCli','_notice','format','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolveCookie','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','defaultApp','currentApp','529340lVQHjp','163152StqXnN','\x0a\x20\x20','all','configMissing','resolve','cookie','appcode','\x20\x20\x20Continue?\x20[y/N]\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveApiDomain','riskLevel','requiresAppCode','doctor','pretty','resolveAppCode','formatOutput','name','execute','211421DMVAYj','cancelled','map','includes','nonInteractive','service','../core/api-client.js','message','⚠\x20\x20High-risk\x20operation:\x20','required','rawFlags','filter','trim','1328rIWqJQ','rejectedFlags','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','validation','object','Current\x20resolved\x20appcode\x20is\x20\x22','198ujkSQI','RABETBASE_APPCODE','../constant/env.js','defaultPageSize','185JvLKEV','Set\x20appcode\x20via\x20`','296216YdtDuf','has','High-risk\x20operation\x20`','312ZkYBRl','schema','some','27567qVMEiC','none'];a250_0x4173=function(){return _0x33f142;};return a250_0x4173();}function assertRejectedFlags(_0x2afe31,_0x57f05b){const _0x2f2c14=a250_0x21f7;for(const _0x1f08ea of _0x2afe31[_0x2f2c14(0x193)]??[]){const _0x5916f8=GLOBAL_FLAGS[_0x2f2c14(0x1b4)](_0x1cba63=>_0x1cba63['name']===_0x1f08ea[_0x2f2c14(0x1cf)]),_0x3d2bbc=new Set([_0x1f08ea[_0x2f2c14(0x1cf)],toCamelCase(_0x1f08ea[_0x2f2c14(0x1cf)]),_0x5916f8?.['meowKey']]),_0x57e511=[..._0x3d2bbc][_0x2f2c14(0x1a3)](_0x3292f1=>{if(!_0x3292f1)return![];const _0x3b5961=_0x57f05b[_0x3292f1];return _0x3b5961!==undefined&&_0x3b5961!==null&&_0x3b5961!==![];});if(_0x57e511)throw CliErrors[_0x2f2c14(0x195)](_0x1f08ea[_0x2f2c14(0x1d8)],_0x1f08ea[_0x2f2c14(0x1a7)]);}}function a250_0x21f7(_0xb021f3,_0x243a1c){_0xb021f3=_0xb021f3-0x191;const _0x417369=a250_0x4173();let _0x21f74b=_0x417369[_0xb021f3];return _0x21f74b;}function toCamelCase(_0x352d54){const _0xf8ad0c=a250_0x21f7;return _0x352d54['replace'](/-([a-z])/g,(_0x301eda,_0x1de2b1)=>_0x1de2b1[_0xf8ad0c(0x1a6)]());}function shouldAttachUpdateNotice(_0x1b6b01){const _0x345cc8=a250_0x21f7;if(_0x1b6b01[_0x345cc8(0x1aa)]===![])return![];return!['update',_0x345cc8(0x1a2),_0x345cc8(0x1cb)][_0x345cc8(0x1d4)](_0x1b6b01[_0x345cc8(0x1d6)]);}function withUpdateNotice(_0x5ad52e){return{..._0x5ad52e,async 'execute'(_0x12428e){const _0x14fff9=a250_0x21f7,_0x394cd8=shouldResolveUpdateNotice(_0x12428e)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x14fff9(0x1c3)](null),_0x24eb7d=await _0x5ad52e[_0x14fff9(0x1d0)](_0x12428e);return attachUpdateNotice(_0x24eb7d,await _0x394cd8);}};}function shouldResolveUpdateNotice(_0x3f2e47){const _0x226e7f=a250_0x21f7;return _0x3f2e47['format']===_0x226e7f(0x1cc)&&!_0x3f2e47[_0x226e7f(0x1d5)];}function attachUpdateNotice(_0x3a16cc,_0x3d86f1){const _0x4129f1=a250_0x21f7;if(!_0x3d86f1||!_0x3a16cc||typeof _0x3a16cc!=='object')return _0x3a16cc;const _0x26f4cb=_0x3a16cc,_0x1d78bb=typeof _0x26f4cb[_0x4129f1(0x1b6)]===_0x4129f1(0x196)&&_0x26f4cb[_0x4129f1(0x1b6)]!==null?_0x26f4cb[_0x4129f1(0x1b6)]:{};return{..._0x26f4cb,'_notice':{..._0x1d78bb,'update':_0x3d86f1}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12be56,_0x29a842){const _0x4791ab=a251_0x50c1,_0xd2218d=_0x12be56();while(!![]){try{const _0x26d2f8=parseInt(_0x4791ab(0x144))/0x1+-parseInt(_0x4791ab(0x141))/0x2+parseInt(_0x4791ab(0x149))/0x3+-parseInt(_0x4791ab(0x145))/0x4+-parseInt(_0x4791ab(0x14b))/0x5*(parseInt(_0x4791ab(0x14a))/0x6)+-parseInt(_0x4791ab(0x142))/0x7*(-parseInt(_0x4791ab(0x143))/0x8)+-parseInt(_0x4791ab(0x147))/0x9*(parseInt(_0x4791ab(0x148))/0xa);if(_0x26d2f8===_0x29a842)break;else _0xd2218d['push'](_0xd2218d['shift']());}catch(_0x257363){_0xd2218d['push'](_0xd2218d['shift']());}}}(a251_0x42fd,0x28cd0));function a251_0x42fd(){const _0x4cf189=['118287pWmxFd','10fyDQjv','348120ZHJotZ','15306WTEBWM','260XgDZtL','120114aAEjcR','7EDAPiu','239576yAkQPg','278822aYDmFo','207348BMfLKN','../commands/registry.js'];a251_0x42fd=function(){return _0x4cf189;};return a251_0x42fd();}import{buildSchemaPayload as a251_0x4e7075}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a251_0x50c1(_0x37bdd7,_0x47dd70){_0x37bdd7=_0x37bdd7-0x141;const _0x42fd46=a251_0x42fd();let _0x50c1a0=_0x42fd46[_0x37bdd7];return _0x50c1a0;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x39b2ab=a251_0x50c1,{serviceRegistry:_0x264c43,findDefinition:_0x204535}=await import(_0x39b2ab(0x146));return a251_0x4e7075({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x264c43,'buildAllFlags':buildAllFlags,'findDefinition':_0x204535});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a252_0x3a48(_0x44b6a5,_0x1262e8){_0x44b6a5=_0x44b6a5-0xe0;var _0x1c442a=a252_0x1c44();var _0x3a48bc=_0x1c442a[_0x44b6a5];return _0x3a48bc;}function a252_0x1c44(){var _0x328a03=['904befGhT','4108035SmRris','2837360IZhvVC','234nqIQGb','138rehJSc','460838DUyBes','435208wOxoJv','9978MyaFuw','31925360SlDyUz','1088280YXdWzO'];a252_0x1c44=function(){return _0x328a03;};return a252_0x1c44();}(function(_0x1263fe,_0x141bc0){var _0x2c49c8=a252_0x3a48,_0x5e67fc=_0x1263fe();while(!![]){try{var _0x1cf749=parseInt(_0x2c49c8(0xe1))/0x1+-parseInt(_0x2c49c8(0xe2))/0x2*(parseInt(_0x2c49c8(0xe9))/0x3)+parseInt(_0x2c49c8(0xe4))/0x4+parseInt(_0x2c49c8(0xe3))/0x5+-parseInt(_0x2c49c8(0xe6))/0x6*(-parseInt(_0x2c49c8(0xe7))/0x7)+-parseInt(_0x2c49c8(0xe8))/0x8*(-parseInt(_0x2c49c8(0xe5))/0x9)+-parseInt(_0x2c49c8(0xe0))/0xa;if(_0x1cf749===_0x141bc0)break;else _0x5e67fc['push'](_0x5e67fc['shift']());}catch(_0x40e1b4){_0x5e67fc['push'](_0x5e67fc['shift']());}}}(a252_0x1c44,0xcffeb));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.4.6
|
|
2
|
-
export declare const GIT_TAG = "v2.4.6
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.4.6";
|
|
2
|
+
export declare const GIT_TAG = "v2.4.6";
|
|
3
|
+
export declare const GIT_COMMIT = "7845330";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-18T09:32:56.966Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a253_0x4ae952=a253_0x4675;(function(_0x438676,_0x103285){const _0x5a2723=a253_0x4675,_0x15ac99=_0x438676();while(!![]){try{const _0x2cd566=-parseInt(_0x5a2723(0x8f))/0x1+-parseInt(_0x5a2723(0x92))/0x2+parseInt(_0x5a2723(0x8e))/0x3+-parseInt(_0x5a2723(0x96))/0x4+parseInt(_0x5a2723(0x95))/0x5*(parseInt(_0x5a2723(0x94))/0x6)+-parseInt(_0x5a2723(0x90))/0x7*(-parseInt(_0x5a2723(0x99))/0x8)+parseInt(_0x5a2723(0x98))/0x9;if(_0x2cd566===_0x103285)break;else _0x15ac99['push'](_0x15ac99['shift']());}catch(_0x493f1e){_0x15ac99['push'](_0x15ac99['shift']());}}}(a253_0x3363,0xbc2c9));export const VERSION=a253_0x4ae952(0x97);export const GIT_TAG=a253_0x4ae952(0x91);export const GIT_COMMIT=a253_0x4ae952(0x93);function a253_0x3363(){const _0x4cbad6=['10499805YCldSe','8AoFESX','3001011plPhxD','1351555ZvsICe','2148825lhHKOX','v2.4.6','618780KhZOFX','7845330','1194Zgvcgk','30505SDOBba','5025400HGusHa','2.4.6'];a253_0x3363=function(){return _0x4cbad6;};return a253_0x3363();}function a253_0x4675(_0x2b40a2,_0x3252ba){_0x2b40a2=_0x2b40a2-0x8e;const _0x336368=a253_0x3363();let _0x4675dc=_0x336368[_0x2b40a2];return _0x4675dc;}export const BUILD_TIME='2026-08-18T09:32:56.966Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25916f,_0x2d602c){var _0x26b040=a254_0x51d0,_0x45e20a=_0x25916f();while(!![]){try{var _0x563418=parseInt(_0x26b040(0x1eb))/0x1+parseInt(_0x26b040(0x1e9))/0x2+parseInt(_0x26b040(0x1f3))/0x3+parseInt(_0x26b040(0x1f4))/0x4+parseInt(_0x26b040(0x1ea))/0x5*(-parseInt(_0x26b040(0x1ef))/0x6)+-parseInt(_0x26b040(0x1ee))/0x7*(parseInt(_0x26b040(0x1f0))/0x8)+-parseInt(_0x26b040(0x1ed))/0x9;if(_0x563418===_0x2d602c)break;else _0x45e20a['push'](_0x45e20a['shift']());}catch(_0x2b7064){_0x45e20a['push'](_0x45e20a['shift']());}}}(a254_0x2ba3,0xf0cb5));function a254_0x2ba3(){var _0x4834f2=['bold','\x20\x20Use\x20','5810352PAizgD','2226812iqnSlr','green','2402878Viseww','2886465yHaEnR','357313aapOax','log','17260299nJqbjj','1997947jpYvQj','6VRrEqk','16KlBKmE'];a254_0x2ba3=function(){return _0x4834f2;};return a254_0x2ba3();}import a254_0x3baab4 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a254_0x51d0(_0x421c5c,_0x5d1011){_0x421c5c=_0x421c5c-0x1e9;var _0x2ba3ca=a254_0x2ba3();var _0x51d035=_0x2ba3ca[_0x421c5c];return _0x51d035;}export function showHelp(){var _0x2ed13e=a254_0x51d0;console[_0x2ed13e(0x1ec)](),console[_0x2ed13e(0x1ec)](a254_0x3baab4['green'][_0x2ed13e(0x1f1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2ed13e(0x1ec)](),console[_0x2ed13e(0x1ec)](_0x2ed13e(0x1f2)+a254_0x3baab4[_0x2ed13e(0x1f5)][_0x2ed13e(0x1f1)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x145800,_0x3970c7){const _0x41add1=a255_0x2559,_0x2a2697=_0x145800();while(!![]){try{const _0x59077c=-parseInt(_0x41add1(0x1d0))/0x1+parseInt(_0x41add1(0x1d1))/0x2*(-parseInt(_0x41add1(0x1c8))/0x3)+-parseInt(_0x41add1(0x1c2))/0x4*(-parseInt(_0x41add1(0x1cd))/0x5)+-parseInt(_0x41add1(0x1d4))/0x6+parseInt(_0x41add1(0x1c9))/0x7*(-parseInt(_0x41add1(0x1ce))/0x8)+parseInt(_0x41add1(0x1c4))/0x9+parseInt(_0x41add1(0x1c0))/0xa;if(_0x59077c===_0x3970c7)break;else _0x2a2697['push'](_0x2a2697['shift']());}catch(_0x540663){_0x2a2697['push'](_0x2a2697['shift']());}}}(a255_0x17fa,0xbdd76));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a255_0x2559(_0xf93130,_0x68e8e){_0xf93130=_0xf93130-0x1bf;const _0x17fa9e=a255_0x17fa();let _0x255913=_0x17fa9e[_0xf93130];return _0x255913;}function a255_0x17fa(){const _0x43e8d4=['594454gDmIjN','Rabetbase\x20Built-in\x20Skill\x20','warn','2885196zYsKDR','error','installedPath','10994280WnSOXT','\x20via\x20skills@latest','329620eicqlR','repairCommand','7067034sfluAw','FAILED','already\x20current','Installation\x20failed','3PetuhW','610876lSUXKu','code','skillVersion','\x20at\x20','55AwFjqq','56MhoEZA','log','624550LvMYcO'];a255_0x17fa=function(){return _0x43e8d4;};return a255_0x17fa();}export async function runPostinstall(_0x382e5c={}){const _0x3d04f9=a255_0x2559,_0x3ed023=installBuiltinSkill(_0x382e5c);if(_0x3ed023['ok']){const _0x3ced36=_0x3ed023['changed']?'installed':_0x3d04f9(0x1c6),_0x351015=_0x3ed023[_0x3d04f9(0x1bf)]?_0x3d04f9(0x1cc)+_0x3ed023[_0x3d04f9(0x1bf)]:_0x3d04f9(0x1c1);return console[_0x3d04f9(0x1cf)](_0x3d04f9(0x1d2)+_0x3ed023[_0x3d04f9(0x1cb)]+'\x20'+_0x3ced36+_0x351015),_0x3ed023;}const _0x17a3d3='[BUILTIN_SKILL_INSTALL_'+(_0x3ed023['code']??_0x3d04f9(0x1c5))+']\x20'+(_0x3ed023[_0x3d04f9(0x1d5)]??_0x3d04f9(0x1c7))+'.\x20'+('Repair\x20with:\x20'+_0x3ed023[_0x3d04f9(0x1c3)]);if(_0x3ed023[_0x3d04f9(0x1ca)]==='SOURCE_INVALID')throw new Error(_0x17a3d3);return console[_0x3d04f9(0x1d3)](_0x17a3d3),_0x3ed023;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b7646,_0x37c4a4){const _0x4934b7=a256_0x19b5,_0x1ea403=_0x5b7646();while(!![]){try{const _0x3e36d6=-parseInt(_0x4934b7(0x133))/0x1*(parseInt(_0x4934b7(0x127))/0x2)+-parseInt(_0x4934b7(0x12c))/0x3+-parseInt(_0x4934b7(0x128))/0x4*(-parseInt(_0x4934b7(0x122))/0x5)+parseInt(_0x4934b7(0x12e))/0x6+-parseInt(_0x4934b7(0x131))/0x7+parseInt(_0x4934b7(0x124))/0x8*(parseInt(_0x4934b7(0x123))/0x9)+parseInt(_0x4934b7(0x125))/0xa*(-parseInt(_0x4934b7(0x12f))/0xb);if(_0x3e36d6===_0x37c4a4)break;else _0x1ea403['push'](_0x1ea403['shift']());}catch(_0x58a9a6){_0x1ea403['push'](_0x1ea403['shift']());}}}(a256_0x113f,0xc359f));const DESCRIPTION_MAX_LENGTH=0x1f4;function a256_0x19b5(_0x4eb55c,_0x5ba057){_0x4eb55c=_0x4eb55c-0x120;const _0x113f2e=a256_0x113f();let _0x19b5bf=_0x113f2e[_0x4eb55c];return _0x19b5bf;}export function buildRabetbaseConfirmationRequest(_0x582c68,_0x1f50ca,_0x41910a){const _0x2d3238=a256_0x19b5,_0x147b76=normalizeText(_0x582c68[_0x2d3238(0x129)],DESCRIPTION_MAX_LENGTH),_0x403d71=_0x147b76||normalizeText(defaultDescription(requireWriteRisk(_0x582c68),_0x1f50ca),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1f50ca,'risk':requireWriteRisk(_0x582c68),'description':_0x403d71,..._0x41910a?{'signal':_0x41910a}:{}};}function requireWriteRisk(_0x1c4580){const _0x1cba5b=a256_0x19b5;if(_0x1c4580[_0x1cba5b(0x12b)]===_0x1cba5b(0x132)||_0x1c4580[_0x1cba5b(0x12b)]==='high-risk-write')return _0x1c4580[_0x1cba5b(0x12b)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x432ff9,_0x3c7e2c){const _0x493fbb=a256_0x19b5;if(_0x432ff9===_0x493fbb(0x12a))return _0x493fbb(0x130)+_0x3c7e2c+_0x493fbb(0x120);return _0x493fbb(0x126)+_0x3c7e2c+_0x493fbb(0x12d);}function a256_0x113f(){const _0x38081b=[';该操作可能创建或修改业务数据或本地配置。','4963686uKQeAg','483373guLSUw','将执行高风险写入操作\x20','505771kBsqBb','write','23483qWjxKO','trim','replace',';该操作可能覆盖、删除或明显影响线上运行行为。','string','23385LRUniJ','265572MUcVwj','160LlRiXX','330NRbOkX','将执行写入操作\x20','54tTZGBS','1340fZxBxS','confirmationDescription','high-risk-write','risk','82992cCdHnE'];a256_0x113f=function(){return _0x38081b;};return a256_0x113f();}function normalizeText(_0x554eca,_0x578cf5){const _0x5e6150=a256_0x19b5;if(typeof _0x554eca!==_0x5e6150(0x121))return'';return _0x554eca[_0x5e6150(0x135)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5e6150(0x135)](/\s+/g,'\x20')[_0x5e6150(0x134)]()['slice'](0x0,_0x578cf5);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5239b9,_0x2dcf22){var _0x246b8a=a257_0x1312,_0x32668e=_0x5239b9();while(!![]){try{var _0x34b125=parseInt(_0x246b8a(0x177))/0x1+parseInt(_0x246b8a(0x16f))/0x2*(-parseInt(_0x246b8a(0x169))/0x3)+parseInt(_0x246b8a(0x176))/0x4+parseInt(_0x246b8a(0x173))/0x5*(-parseInt(_0x246b8a(0x168))/0x6)+parseInt(_0x246b8a(0x170))/0x7*(-parseInt(_0x246b8a(0x179))/0x8)+parseInt(_0x246b8a(0x16e))/0x9+-parseInt(_0x246b8a(0x17a))/0xa*(-parseInt(_0x246b8a(0x175))/0xb);if(_0x34b125===_0x2dcf22)break;else _0x32668e['push'](_0x32668e['shift']());}catch(_0x480430){_0x32668e['push'](_0x32668e['shift']());}}}(a257_0x50a7,0xc52e0));export function canonicalRabetbaseOperation(_0x1a0fda){var _0x4cf193=a257_0x1312;return[_0x1a0fda[_0x4cf193(0x16a)],..._0x1a0fda['command'][_0x4cf193(0x178)]()[_0x4cf193(0x172)](/\s+/)][_0x4cf193(0x16d)](Boolean)[_0x4cf193(0x16c)]('.');}function a257_0x1312(_0x1cc057,_0x3f14db){_0x1cc057=_0x1cc057-0x168;var _0x50a722=a257_0x50a7();var _0x13124f=_0x50a722[_0x1cc057];return _0x13124f;}function a257_0x50a7(){var _0x348f7d=['write','join','filter','7063380TnNBic','174NNrWrm','7jLHAJF','rabetbase.write.completed','split','445GtKTQT','risk','1575739SCpTNv','1584440rwBXea','1546225YZREGz','trim','10924664QYljus','110Ltrvtt','86622OhfXew','29130RgmSjc','service'];a257_0x50a7=function(){return _0x348f7d;};return a257_0x50a7();}export function createRabetbaseWriteMetadata(_0x1ce8fd,_0x14fb75,_0x22c344,_0x552989){var _0x1f160e=a257_0x1312;if(_0x552989||_0x22c344['ok']!==!![]||_0x1ce8fd[_0x1f160e(0x174)]!==_0x1f160e(0x16b)&&_0x1ce8fd[_0x1f160e(0x174)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x1f160e(0x171),'operation':_0x14fb75,'risk':_0x1ce8fd[_0x1f160e(0x174)]}}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28d728,_0x168487){const _0x622ef4=a258_0x46b3,_0x132363=_0x28d728();while(!![]){try{const _0x35858f=parseInt(_0x622ef4(0xa0))/0x1+-parseInt(_0x622ef4(0x83))/0x2+parseInt(_0x622ef4(0xa1))/0x3*(parseInt(_0x622ef4(0x8e))/0x4)+parseInt(_0x622ef4(0xa2))/0x5+parseInt(_0x622ef4(0x8d))/0x6*(-parseInt(_0x622ef4(0x86))/0x7)+parseInt(_0x622ef4(0x9b))/0x8*(-parseInt(_0x622ef4(0x9f))/0x9)+parseInt(_0x622ef4(0x9c))/0xa*(parseInt(_0x622ef4(0x8a))/0xb);if(_0x35858f===_0x168487)break;else _0x132363['push'](_0x132363['shift']());}catch(_0x37e760){_0x132363['push'](_0x132363['shift']());}}}(a258_0x52af,0xe84eb));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';function a258_0x46b3(_0x407337,_0x2c7620){_0x407337=_0x407337-0x7f;const _0x52af0c=a258_0x52af();let _0x46b353=_0x52af0c[_0x407337];return _0x46b353;}function a258_0x52af(){const _0x45fb3d=['stringify','173744PkFUDp','20PZwcpg','dryRun','risk','396XpRrca','1138430pdOaBF','3ngOFfz','8489830IyAGxn','signal','result','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','reason','2935128svJVip','data','format','7ZkDuQI','aborted','present','AbortError','5680004RalggU','high-risk-write','yes','3585594DRSugd','412648nJXQtL','args','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','isNonInteractive','rawFlags','Rabetbase\x20invocation\x20aborted.','write','message','confirm','command','dry-run','definition'];a258_0x52af=function(){return _0x45fb3d;};return a258_0x52af();}const defaultPresentation={'present'({result:_0x4d1da2,command:_0x339953,risk:_0x1577b4,dryRun:_0x55983e}){const _0xc88ad7=a258_0x46b3;return JSON[_0xc88ad7(0x9a)]({'ok':_0x4d1da2['ok'],'command':_0x339953,'risk':_0x1577b4,..._0x55983e?{'dryRun':!![]}:{},..._0x4d1da2['data']!==undefined?{'data':_0x4d1da2[_0xc88ad7(0x84)]}:{},..._0x4d1da2[_0xc88ad7(0x95)]?{'message':_0x4d1da2['message']}:{}});}};export async function invokeRabetbase(_0x338584,_0x27257f){const _0x2070c3=a258_0x46b3;throwIfAborted(_0x27257f[_0x2070c3(0xa3)]);const _0x1fc558=await resolveRabetbaseInvocation(_0x338584),_0x4c9e9c=canonicalRabetbaseOperation(_0x1fc558[_0x2070c3(0x99)]);return await confirmWriteBeforeQueue(_0x1fc558[_0x2070c3(0x99)],_0x1fc558[_0x2070c3(0x92)],_0x4c9e9c,_0x27257f),runSerialized(async()=>{const _0x1d9fb0=_0x2070c3,_0x36b056={};try{throwIfAborted(_0x27257f[_0x1d9fb0(0xa3)]);const _0x14b6bc=buildConfigFromFlags(_0x1fc558['rawFlags']);await initGlobalEnvironment(_0x14b6bc);const _0x383663=createPipelineEnv(_0x14b6bc,{..._0x1fc558[_0x1d9fb0(0x92)],'yes':_0x1fc558[_0x1d9fb0(0x99)]['risk']==='high-risk-write'?!![]:_0x1fc558[_0x1d9fb0(0x92)][_0x1d9fb0(0x8c)],'nonInteractive':!![]},_0x1fc558[_0x1d9fb0(0x8f)]);_0x383663[_0x1d9fb0(0x91)]=!![],_0x383663['riskLevel']=_0x1d9fb0(0x8b);const _0x448757=withAbortSignal(_0x1fc558[_0x1d9fb0(0x99)],_0x27257f['signal']),_0x5a31e5=createRabetbaseRunnerAdapter({'formatOutput'(_0x408eed,_0x10f87a){const _0xb0743f=_0x1d9fb0;_0x36b056['result']=_0x408eed,_0x36b056[_0xb0743f(0x97)]=_0x10f87a[_0xb0743f(0x97)],_0x36b056['risk']=_0x10f87a['risk'],_0x36b056['format']=_0x10f87a['format'],_0x36b056['dryRun']=_0x10f87a[_0xb0743f(0x9d)]===!![];},async 'confirmHighRisk'(){const _0x2c561e=_0x1d9fb0;throw new Error(_0x2c561e(0x90));}});await runCommand(_0x448757,_0x383663,_0x5a31e5);if(!_0x36b056[_0x1d9fb0(0x7f)]||!_0x36b056[_0x1d9fb0(0x97)]||!_0x36b056[_0x1d9fb0(0x9e)]||!_0x36b056[_0x1d9fb0(0x85)])throw new Error(_0x1d9fb0(0x80));const _0x356ddb=_0x36b056[_0x1d9fb0(0x9d)]===!![],_0x13d3d0=_0x27257f['presentation']??defaultPresentation,_0x19cb79={'result':_0x36b056[_0x1d9fb0(0x7f)],'command':_0x36b056[_0x1d9fb0(0x97)],'operation':_0x4c9e9c,'risk':_0x36b056[_0x1d9fb0(0x9e)],'format':_0x36b056['format'],'dryRun':_0x356ddb},_0x63f7b1=createRabetbaseWriteMetadata(_0x1fc558[_0x1d9fb0(0x99)],_0x4c9e9c,_0x36b056['result'],_0x356ddb);let _0x354ccf;try{_0x354ccf=await _0x13d3d0['present'](_0x19cb79);}catch(_0x109965){if(!_0x63f7b1||_0x13d3d0===defaultPresentation)throw _0x109965;_0x354ccf=await defaultPresentation[_0x1d9fb0(0x88)](_0x19cb79);}return{'operation':_0x4c9e9c,'risk':_0x36b056[_0x1d9fb0(0x9e)],'mode':_0x356ddb?_0x1d9fb0(0x98):_0x1d9fb0(0x81),'result':_0x36b056[_0x1d9fb0(0x7f)],'output':_0x354ccf,..._0x63f7b1?{'metadata':_0x63f7b1}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x48c966,_0x177b03,_0x2942af,_0x1ccb96){const _0xeec6e7=a258_0x46b3;if(_0x177b03['dryRun']===!![]||_0x48c966[_0xeec6e7(0x9e)]!==_0xeec6e7(0x94)&&_0x48c966[_0xeec6e7(0x9e)]!=='high-risk-write')return;await _0x1ccb96['confirmation'][_0xeec6e7(0x96)](buildRabetbaseConfirmationRequest(_0x48c966,_0x2942af,_0x1ccb96['signal']));}function withAbortSignal(_0x23a7d7,_0x5db2a9){return{..._0x23a7d7,async 'execute'(_0x250b86){const _0x21e385=a258_0x46b3;return throwIfAborted(_0x5db2a9),_0x23a7d7[_0x21e385(0x81)](_0x250b86);}};}function throwIfAborted(_0x293a93){const _0x246ea6=a258_0x46b3;if(_0x293a93?.[_0x246ea6(0x87)])throw _0x293a93['reason']instanceof Error?_0x293a93[_0x246ea6(0x82)]:new DOMException(_0x246ea6(0x93),_0x246ea6(0x89));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a259_0x2393(_0x4fe588,_0x3553c7){_0x4fe588=_0x4fe588-0x123;const _0x48002f=a259_0x4800();let _0x2393fb=_0x48002f[_0x4fe588];return _0x2393fb;}const a259_0x2718a9=a259_0x2393;(function(_0x41b5b1,_0x5d9537){const _0x590b6e=a259_0x2393,_0x4e471d=_0x41b5b1();while(!![]){try{const _0x1a7a82=parseInt(_0x590b6e(0x12a))/0x1+parseInt(_0x590b6e(0x123))/0x2*(-parseInt(_0x590b6e(0x12e))/0x3)+-parseInt(_0x590b6e(0x128))/0x4*(-parseInt(_0x590b6e(0x125))/0x5)+-parseInt(_0x590b6e(0x12c))/0x6+parseInt(_0x590b6e(0x124))/0x7+-parseInt(_0x590b6e(0x12b))/0x8+parseInt(_0x590b6e(0x126))/0x9*(parseInt(_0x590b6e(0x129))/0xa);if(_0x1a7a82===_0x5d9537)break;else _0x4e471d['push'](_0x4e471d['shift']());}catch(_0x4f4c84){_0x4e471d['push'](_0x4e471d['shift']());}}}(a259_0x4800,0xe3a03));let tail=Promise[a259_0x2718a9(0x12d)]();function a259_0x4800(){const _0x58169b=['4LnUhqF','7236943btNyAU','1445BWzwhr','9972UsCZqn','catch','15368DCxDZN','14030DpJDGL','601150DFCUsH','14597992vwItnU','7471158dKAUAq','resolve','446346GvbxnA'];a259_0x4800=function(){return _0x58169b;};return a259_0x4800();}export async function runSerialized(_0x2be7ad){const _0x12af44=a259_0x2718a9,_0x380b02=tail;let _0x5d221b;tail=new Promise(_0x486a22=>{_0x5d221b=_0x486a22;}),await _0x380b02[_0x12af44(0x127)](()=>undefined);try{return await _0x2be7ad();}finally{_0x5d221b();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x390987,_0x38d24d){const _0x691df6=a260_0xbea1,_0x20dbb6=_0x390987();while(!![]){try{const _0x4391f4=parseInt(_0x691df6(0xc9))/0x1*(-parseInt(_0x691df6(0xc7))/0x2)+parseInt(_0x691df6(0xca))/0x3*(parseInt(_0x691df6(0xc2))/0x4)+-parseInt(_0x691df6(0xc8))/0x5*(-parseInt(_0x691df6(0xcc))/0x6)+parseInt(_0x691df6(0xd7))/0x7+parseInt(_0x691df6(0xce))/0x8+-parseInt(_0x691df6(0xcd))/0x9+-parseInt(_0x691df6(0xcf))/0xa;if(_0x4391f4===_0x38d24d)break;else _0x20dbb6['push'](_0x20dbb6['shift']());}catch(_0x566a6e){_0x20dbb6['push'](_0x20dbb6['shift']());}}}(a260_0xbfeb,0x8f92d));function a260_0xbea1(_0x1ee39e,_0x3982fc){_0x1ee39e=_0x1ee39e-0xc2;const _0xbfeb5a=a260_0xbfeb();let _0xbea11a=_0xbfeb5a[_0x1ee39e];return _0xbea11a;}import a260_0x5c807b from'meow';function a260_0xbfeb(){const _0x36463d=['2fqNNIk','17877EMLhNR','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','6JzQuBT','27459pRHdeN','5182288iBjEPP','6737030HsYRNr','join','wildcardDef','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','input','run','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1386182bribvj','flags','444WqJmAf','slice','validation','hint','unknownCommand','1089922IbgEoA','4237460cnZbqn'];a260_0xbfeb=function(){return _0x36463d;};return a260_0xbfeb();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x415003){const _0xd45428=a260_0xbea1,_0x574a93=a260_0x5c807b('',{'importMeta':import.meta,'argv':[..._0x415003],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5455ef=[..._0x574a93[_0xd45428(0xd3)]],_0x2773dd=_0x574a93[_0xd45428(0xd8)],_0xe6c336=_0x5455ef[0x0];if(!_0xe6c336)throw CliErrors[_0xd45428(0xc4)](_0xd45428(0xd6));const _0x315de3=resolveRemovedCommand(_0xe6c336,_0x5455ef[0x1]);if(_0x315de3)throw CliErrors[_0xd45428(0xc4)](_0x315de3['message'],_0x315de3[_0xd45428(0xc5)]);if(_0xe6c336===_0xd45428(0xd4))throw CliErrors[_0xd45428(0xc4)](_0xd45428(0xd5),_0xd45428(0xcb));if(!isKnownService(_0xe6c336))throw CliErrors['unknownCommand'](_0x5455ef[_0xd45428(0xd0)]('\x20'));const _0x43a313=getServiceEntry(_0xe6c336),_0x4eeef6=_0x5455ef[0x1],_0x7e195=_0x4eeef6||_0x43a313['defaultCommand'];if(!_0x7e195){if(_0x43a313[_0xd45428(0xd1)])return{'definition':_0x43a313[_0xd45428(0xd1)],'rawFlags':_0x2773dd,'args':[]};throw CliErrors['validation'](_0xd45428(0xd2)+_0xe6c336+'\x22.');}const _0x498a7=findDefinition(_0xe6c336,_0x7e195);if(_0x498a7)return{'definition':_0x498a7,'rawFlags':_0x2773dd,'args':_0x5455ef[_0xd45428(0xc3)](0x2)};if(_0x43a313[_0xd45428(0xd1)])return{'definition':_0x43a313[_0xd45428(0xd1)],'rawFlags':_0x2773dd,'args':[_0x7e195,..._0x5455ef[_0xd45428(0xc3)](0x2)]};throw CliErrors[_0xd45428(0xc6)](_0xe6c336+'\x20'+_0x7e195);}
|
|
@@ -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_0x55fe1c=a262_0x55c7;(function(_0x4de7d7,_0x214466){const _0x13ca49=a262_0x55c7,_0xd8abd3=_0x4de7d7();while(!![]){try{const _0x56877a=parseInt(_0x13ca49(0xd2))/0x1+parseInt(_0x13ca49(0xa1))/0x2*(parseInt(_0x13ca49(0xca))/0x3)+-parseInt(_0x13ca49(0xab))/0x4+parseInt(_0x13ca49(0xa3))/0x5*(-parseInt(_0x13ca49(0xcc))/0x6)+parseInt(_0x13ca49(0xa8))/0x7+-parseInt(_0x13ca49(0xd0))/0x8*(-parseInt(_0x13ca49(0xcb))/0x9)+parseInt(_0x13ca49(0xd9))/0xa*(-parseInt(_0x13ca49(0xd3))/0xb);if(_0x56877a===_0x214466)break;else _0xd8abd3['push'](_0xd8abd3['shift']());}catch(_0x2ddd52){_0xd8abd3['push'](_0xd8abd3['shift']());}}}(a262_0x5b8d,0x71ef0));function a262_0x55c7(_0x46a2c4,_0x3cc152){_0x46a2c4=_0x46a2c4-0xa0;const _0x5b8deb=a262_0x5b8d();let _0x55c77d=_0x5b8deb[_0x46a2c4];return _0x55c77d;}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=a262_0x55fe1c(0xb0),SKILL_NAME=a262_0x55fe1c(0xd4);function frontmatterValue(_0x30a810,_0x4c4ea0){const _0x3f6d1d=a262_0x55fe1c;return _0x30a810['match'](new RegExp('^'+_0x4c4ea0+_0x3f6d1d(0xb4),'m'))?.[0x1]?.[_0x3f6d1d(0xd5)]()??'';}function listFiles(_0x52c40c,_0x5b676c=_0x52c40c){const _0x2bc84d=a262_0x55fe1c;return readdirSync(_0x5b676c,{'withFileTypes':!![]})[_0x2bc84d(0xe1)](_0x1a33ad=>{const _0x4090e6=_0x2bc84d,_0x3b5b21=join(_0x5b676c,_0x1a33ad[_0x4090e6(0xd8)]),_0x41d905=lstatSync(_0x3b5b21);if(_0x41d905['isSymbolicLink']())throw new Error(_0x4090e6(0xa2)+_0x3b5b21);if(_0x41d905['isDirectory']())return listFiles(_0x52c40c,_0x3b5b21);if(!_0x41d905[_0x4090e6(0xb3)]())throw new Error(_0x4090e6(0xac)+_0x3b5b21);return[relative(_0x52c40c,_0x3b5b21)[_0x4090e6(0xd7)](sep)[_0x4090e6(0xaa)]('/')];})[_0x2bc84d(0xb1)]((_0x14c790,_0x519f7f)=>_0x14c790<_0x519f7f?-0x1:_0x14c790>_0x519f7f?0x1:0x0);}function digestFiles(_0xb4acd5,_0x188e1c){const _0x2c6330=a262_0x55fe1c,_0xb42fda=createHash('sha256');for(const _0x2a8bf5 of _0x188e1c){if(_0x2a8bf5['startsWith']('/')||_0x2a8bf5['split']('/')['includes']('..')||_0x2a8bf5[_0x2c6330(0xbc)]('\x5c'))throw new Error(_0x2c6330(0xbd)+_0x2a8bf5);_0xb42fda[_0x2c6330(0xa6)](_0x2a8bf5),_0xb42fda[_0x2c6330(0xa6)]('\x00'),_0xb42fda[_0x2c6330(0xa6)](readFileSync(join(_0xb4acd5,..._0x2a8bf5[_0x2c6330(0xd7)]('/')))),_0xb42fda[_0x2c6330(0xa6)]('\x00');}return _0xb42fda[_0x2c6330(0xc4)](_0x2c6330(0xa0));}function sameFiles(_0xda6c10,_0x4a6194){const _0x487b7e=a262_0x55fe1c;return _0xda6c10['length']===_0x4a6194[_0x487b7e(0xb6)]&&_0xda6c10[_0x487b7e(0xc6)]((_0x11a820,_0x43ae1d)=>_0x11a820===_0x4a6194[_0x43ae1d]);}function readSource(_0xdf3060){const _0x56201a=a262_0x55fe1c,_0xf3fc8=JSON[_0x56201a(0xad)](readFileSync(join(_0xdf3060,_0x56201a(0xc1)),'utf8')),_0xb2c9b5=JSON[_0x56201a(0xad)](readFileSync(join(_0xdf3060,_0x56201a(0xe0),_0x56201a(0xdb)),_0x56201a(0xdd))),_0x320f35=join(_0xdf3060,'skills',SKILL_NAME),_0x269bd9=frontmatterValue(readFileSync(join(_0x320f35,_0x56201a(0xaf)),_0x56201a(0xdd)),_0x56201a(0xba)),_0xffd8bd=listFiles(_0x320f35);if(_0xb2c9b5['schemaVersion']!==0x1||_0xb2c9b5[_0x56201a(0xd8)]!==SKILL_NAME||!_0xf3fc8['version']||_0xb2c9b5[_0x56201a(0xb7)]!==_0xf3fc8['version']||_0xb2c9b5[_0x56201a(0xd6)]!==_0xf3fc8[_0x56201a(0xba)]||_0x269bd9!==_0xf3fc8[_0x56201a(0xba)]||!sameFiles(_0xffd8bd,_0xb2c9b5[_0x56201a(0xd1)])||digestFiles(_0x320f35,_0xffd8bd)!==_0xb2c9b5[_0x56201a(0xc4)])throw new Error(_0x56201a(0xbf));return{'packageVersion':_0xf3fc8['version'],'skillVersion':_0x269bd9,'root':_0x320f35,'manifest':_0xb2c9b5};}function installedSkillPath(_0x52a897){const _0x264472=a262_0x55fe1c,_0x16e1c4=resolveInstalledSkill(SKILL_NAME,{'home':_0x52a897});if(_0x16e1c4[_0x264472(0xa4)]==='present')return{'state':_0x264472(0xc3),'path':dirname(_0x16e1c4[_0x264472(0xa5)])};if(_0x16e1c4[_0x264472(0xa4)]==='absent')return{'state':'missing'};return{'state':_0x264472(0xb2),'reason':_0x16e1c4[_0x264472(0xcf)]};}export function inspectInstalledBuiltinSkillVersion(_0x59f24d,_0x1ec040={}){const _0x2d689b=a262_0x55fe1c,_0x3dfc12=installedSkillPath(_0x1ec040[_0x2d689b(0xae)]??homedir());if(_0x3dfc12[_0x2d689b(0xa4)]==='missing')return{'state':_0x2d689b(0xcd),'expectedVersion':_0x59f24d,'repairCommand':REPAIR_COMMAND};if(_0x3dfc12[_0x2d689b(0xa4)]===_0x2d689b(0xb2))return{'state':_0x2d689b(0xb2),'expectedVersion':_0x59f24d,'reason':_0x3dfc12['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x56ab0f=frontmatterValue(readFileSync(join(_0x3dfc12['path'],'SKILL.md'),_0x2d689b(0xdd)),'version');return{'state':_0x56ab0f===_0x59f24d?_0x2d689b(0xb9):'version_mismatch','expectedVersion':_0x59f24d,'skillVersion':_0x56ab0f,'installedPath':_0x3dfc12[_0x2d689b(0xa5)],'repairCommand':REPAIR_COMMAND};}catch(_0x18cb7c){return{'state':_0x2d689b(0xb2),'expectedVersion':_0x59f24d,'installedPath':_0x3dfc12[_0x2d689b(0xa5)],'reason':_0x18cb7c instanceof Error?_0x18cb7c[_0x2d689b(0xce)]:String(_0x18cb7c),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x248fa4={}){const _0x37f037=a262_0x55fe1c,_0x50fe10=_0x248fa4[_0x37f037(0xbe)]??DEFAULT_PACKAGE_ROOT;let _0xb3a1a7;try{_0xb3a1a7=readSource(_0x50fe10);}catch(_0xd4198e){return{'state':'unverifiable','packageVersion':_0x37f037(0xc0),'reason':_0xd4198e instanceof Error?_0xd4198e['message']:String(_0xd4198e),'repairCommand':REPAIR_COMMAND};}const _0x22188f=installedSkillPath(_0x248fa4[_0x37f037(0xae)]??homedir());if(_0x22188f[_0x37f037(0xa4)]==='missing')return{'state':'missing','packageVersion':_0xb3a1a7[_0x37f037(0xb7)],'repairCommand':REPAIR_COMMAND};if(_0x22188f[_0x37f037(0xa4)]===_0x37f037(0xb2))return{'state':_0x37f037(0xb2),'packageVersion':_0xb3a1a7[_0x37f037(0xb7)],'reason':_0x22188f['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x4ab311=frontmatterValue(readFileSync(join(_0x22188f['path'],_0x37f037(0xaf)),_0x37f037(0xdd)),_0x37f037(0xba));if(_0x4ab311!==_0xb3a1a7[_0x37f037(0xd6)])return{'state':_0x37f037(0xc9),'packageVersion':_0xb3a1a7[_0x37f037(0xb7)],'skillVersion':_0x4ab311,'installedPath':_0x22188f[_0x37f037(0xa5)],'repairCommand':REPAIR_COMMAND};const _0x49ef64=listFiles(_0x22188f[_0x37f037(0xa5)]),_0x34a5df=digestFiles(_0x22188f[_0x37f037(0xa5)],_0x49ef64);return{'state':sameFiles(_0x49ef64,_0xb3a1a7[_0x37f037(0xb5)][_0x37f037(0xd1)])&&_0x34a5df===_0xb3a1a7[_0x37f037(0xb5)]['digest']?_0x37f037(0xb9):_0x37f037(0xda),'packageVersion':_0xb3a1a7[_0x37f037(0xb7)],'skillVersion':_0x4ab311,'installedPath':_0x22188f['path'],'digest':_0x34a5df,'repairCommand':REPAIR_COMMAND};}catch(_0x3129cf){return{'state':'unverifiable','packageVersion':_0xb3a1a7['packageVersion'],'installedPath':_0x22188f[_0x37f037(0xa5)],'reason':_0x3129cf instanceof Error?_0x3129cf[_0x37f037(0xce)]:String(_0x3129cf),'repairCommand':REPAIR_COMMAND};}}function a262_0x5b8d(){const _0x280a58=['present','digest','pipe','every','error','skipped','version_mismatch','224751eqhDmg','2273814UaIFnA','6OdWqqI','missing','message','reason','24odWmFI','files','889862FDKLYv','667183EDLyHj','rabetbase','trim','skillVersion','split','name','400SXpIGb','content_mismatch','rabetbase.manifest.json','SOURCE_INVALID','utf8','installedPath','Installed\x20Skill\x20state\x20is\x20','skills','flatMap','hex','24TYEQlR','Symbolic\x20link\x20is\x20not\x20allowed:\x20','1338245HEjjtn','state','path','update','INSTALL_FAILED','5784660RytXFb','stdio','join','850972NnrOco','Unsupported\x20Skill\x20entry:\x20','parse','home','SKILL.md','rabetbase\x20cli-skill\x20install','sort','unverifiable','isFile',':\x5cs*(.+)$','manifest','length','packageVersion','root','current','version','skills@latest\x20exited\x20','includes','Unsafe\x20manifest\x20path:\x20','packageRoot','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','unknown','package.json','status'];a262_0x5b8d=function(){return _0x280a58;};return a262_0x5b8d();}function failure(_0x4de45d,_0xa7b729,_0x1f1b9e,_0x4f7ef2){return{'ok':![],'code':_0x4de45d,'packageVersion':_0xa7b729['packageVersion'],'skillVersion':_0xa7b729['skillVersion'],'installedPath':_0x4f7ef2,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1f1b9e instanceof Error?_0x1f1b9e['message']:String(_0x1f1b9e)};}export function installBuiltinSkill(_0x251549={}){const _0x4a7da3=a262_0x55fe1c,_0x14c3db=_0x251549[_0x4a7da3(0xbe)]??DEFAULT_PACKAGE_ROOT,_0x25494a=_0x251549[_0x4a7da3(0xae)]??homedir();let _0x4694cc;try{_0x4694cc=readSource(_0x14c3db);}catch(_0x44efda){return failure(_0x4a7da3(0xdc),{'packageVersion':'unknown','skillVersion':_0x4a7da3(0xc0)},_0x44efda);}const _0xdbb81=inspectBuiltinSkill({'packageRoot':_0x14c3db,'home':_0x25494a}),_0x3ea5de=runNpxSkillsAddGlobal(_0x14c3db,_0x4694cc[_0x4a7da3(0xb8)],{'stdio':_0x251549[_0x4a7da3(0xa9)]??_0x4a7da3(0xc5),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x25494a}});if(_0x3ea5de[_0x4a7da3(0xc8)])return{'ok':!![],'packageVersion':_0x4694cc[_0x4a7da3(0xb7)],'skillVersion':_0x4694cc[_0x4a7da3(0xd6)],'installedPath':_0xdbb81[_0x4a7da3(0xde)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3ea5de['ok'])return failure(_0x4a7da3(0xa7),_0x4694cc,_0x3ea5de[_0x4a7da3(0xc7)]??_0x4a7da3(0xbb)+_0x3ea5de[_0x4a7da3(0xc2)]);const _0x244dc2=inspectBuiltinSkill({'packageRoot':_0x14c3db,'home':_0x25494a});if(_0x244dc2[_0x4a7da3(0xa4)]!==_0x4a7da3(0xb9))return failure('VERIFY_FAILED',_0x4694cc,_0x244dc2[_0x4a7da3(0xcf)]??_0x4a7da3(0xdf)+_0x244dc2['state'],_0x244dc2[_0x4a7da3(0xde)]);return{'ok':!![],'packageVersion':_0x4694cc[_0x4a7da3(0xb7)],'skillVersion':_0x4694cc[_0x4a7da3(0xd6)],'installedPath':_0x244dc2[_0x4a7da3(0xde)],'changed':_0xdbb81['state']!==_0x4a7da3(0xb9),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41c3d1,_0x54b4f4){const _0xac69fc=a263_0xb630,_0x282a88=_0x41c3d1();while(!![]){try{const _0x32feb8=-parseInt(_0xac69fc(0xa9))/0x1*(parseInt(_0xac69fc(0xa2))/0x2)+parseInt(_0xac69fc(0xa7))/0x3*(parseInt(_0xac69fc(0x9f))/0x4)+-parseInt(_0xac69fc(0xa1))/0x5*(-parseInt(_0xac69fc(0x9b))/0x6)+-parseInt(_0xac69fc(0x99))/0x7*(-parseInt(_0xac69fc(0x8f))/0x8)+-parseInt(_0xac69fc(0xa4))/0x9+parseInt(_0xac69fc(0xab))/0xa+parseInt(_0xac69fc(0x93))/0xb;if(_0x32feb8===_0x54b4f4)break;else _0x282a88['push'](_0x282a88['shift']());}catch(_0x39b721){_0x282a88['push'](_0x282a88['shift']());}}}(a263_0x3ef9,0xca072));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(_0xc8bfde){const _0x4ad00a=a263_0xb630,_0x3c9433=[];for(const [_0x47a006,_0x32cf0f]of Object[_0x4ad00a(0xa3)](_0xc8bfde)){if(_0x32cf0f===!![]){const _0x407cb2=_0x47a006[_0x4ad00a(0x90)](/([A-Z])/g,_0x4ad00a(0xaa))[_0x4ad00a(0xae)]();_0x3c9433[_0x4ad00a(0xa6)](_0x407cb2);}}return _0x3c9433;}export function parseDynamicFlags(){const _0x4f9726=a263_0xb630,_0x28ad78=[];for(let _0x49d866=0x3;_0x49d866<process[_0x4f9726(0xa0)]['length'];_0x49d866++){const _0x390fcf=process[_0x4f9726(0xa0)][_0x49d866];if(_0x390fcf&&_0x390fcf[_0x4f9726(0xb0)]('--')){const _0x4eec2e=_0x390fcf[_0x4f9726(0x9d)](0x2);_0x4eec2e&&!_0x4eec2e['includes']('=')&&_0x28ad78[_0x4f9726(0xa6)](_0x4eec2e);}}return _0x28ad78;}export function getAllProvidedFlags(_0x322bca){const _0x230ddd=camelCaseFlagsToKebab(_0x322bca),_0x3c3801=parseDynamicFlags(),_0xdeae23=new Set([..._0x230ddd,..._0x3c3801]);return Array['from'](_0xdeae23);}function a263_0xb630(_0x3bd57c,_0x51f1c6){_0x3bd57c=_0x3bd57c-0x8f;const _0x3ef932=a263_0x3ef9();let _0xb630f6=_0x3ef932[_0x3bd57c];return _0xb630f6;}export function normalizeLegacyBffSaveFlags(_0xf926ee){const _0x2cf6e8=a263_0xb630,_0x4cf8e4=new Set(_0xf926ee);return _0x4cf8e4['has']('dangerously-bff-save')&&_0x4cf8e4[_0x2cf6e8(0x9c)](_0x2cf6e8(0x9e)),Array[_0x2cf6e8(0xaf)](_0x4cf8e4);}function a263_0x3ef9(){const _0x1a8ccc=['toLowerCase','from','startsWith','exit','14008GKKEmg','replace','不支持的命令:\x20','help','7282715mpFsrf','(empty)','\x0aAvailable\x20commands:','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','error','setLogPath','1652AEstnz','log','54PXiQfR','add','slice','enable-bff-save','2864532RjwkvR','argv','173105AXDsMr','10658XcgTOd','entries','11473569zCdbcq','cwd','push','3WChUga','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','2tMXXhj','-$1','99820tMYqeP','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','--help'];a263_0x3ef9=function(){return _0x1a8ccc;};return a263_0x3ef9();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5a6a47,_0x3663a3,_0x3b8035){const _0x1ed3ff=a263_0xb630;logger[_0x1ed3ff(0x98)](process[_0x1ed3ff(0xa5)]());if(_0x3b8035?.[_0x1ed3ff(0x92)]||_0x5a6a47===_0x1ed3ff(0xad)){showHelp();return;}console[_0x1ed3ff(0x97)]('Error:\x20Unsupported\x20command:\x20'+(_0x5a6a47||_0x1ed3ff(0x94))),console[_0x1ed3ff(0x9a)](_0x1ed3ff(0x95)),console[_0x1ed3ff(0x9a)]('\x20\x20'+CLI_BIN_NAME+_0x1ed3ff(0xac)),console[_0x1ed3ff(0x9a)](''),console['log']('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1ed3ff(0x97)]('skill',_0x1ed3ff(0x91)+_0x5a6a47),process[_0x1ed3ff(0xb1)](0x1);}function showHelp(){const _0x1c6ee7=a263_0xb630;console[_0x1c6ee7(0x9a)](_0x1c6ee7(0x96)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1c6ee7(0xa8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a264_0x5c13f7=a264_0x4ea4;(function(_0x6f68b2,_0x2bb4d8){const _0x2897b2=a264_0x4ea4,_0x349f86=_0x6f68b2();while(!![]){try{const _0x88a278=-parseInt(_0x2897b2(0xde))/0x1+-parseInt(_0x2897b2(0xe0))/0x2*(parseInt(_0x2897b2(0xe2))/0x3)+-parseInt(_0x2897b2(0xd2))/0x4*(parseInt(_0x2897b2(0xdf))/0x5)+parseInt(_0x2897b2(0xd3))/0x6*(-parseInt(_0x2897b2(0xd5))/0x7)+-parseInt(_0x2897b2(0xe1))/0x8+parseInt(_0x2897b2(0xf1))/0x9+parseInt(_0x2897b2(0xf8))/0xa;if(_0x88a278===_0x2bb4d8)break;else _0x349f86['push'](_0x349f86['shift']());}catch(_0xd84188){_0x349f86['push'](_0x349f86['shift']());}}}(a264_0x3190,0x9b14e));function a264_0x4ea4(_0x542de3,_0x44811e){_0x542de3=_0x542de3-0xc3;const _0x319067=a264_0x3190();let _0x4ea4bc=_0x319067[_0x542de3];return _0x4ea4bc;}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_0x5c13f7(0xd9);export const NPX_SKILLS_SUBCOMMAND_ADD=a264_0x5c13f7(0xcf);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a264_0x5c13f7(0xcc);export const LEGACY_RABETBASE_SKILL_SOURCE=a264_0x5c13f7(0xef);export const DEFAULT_RABETBASE_SKILL_NAME=a264_0x5c13f7(0xf7);function a264_0x3190(){const _0x322667=['error','stdout','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','skills@latest','\x20failed\x20target(s)','npm_config_global','absent','CHILD_TERMINATED','234331pXYNzw','1175CynOJj','2KojKca','6280432HsBBCZ','1848381ONzEGR','Installer\x20reported\x20','message','SPAWN_FAILED','match','status','EACCES','exit\x20','PERMISSION_DENIED','reason','filter','warn','rabetbase','lovrabet/lovrabet-skill','toString','3677778dlBRCH','log','Skill\x20\x22','stderr','trim','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','Lovrabet','31227680LFVMWP','!\x20Could\x20not\x20verify\x20\x22','signal','push','remove','npx','unknown','presence','state','NPM_CONFIG_GLOBAL','npx\x20terminated\x20by\x20signal\x20','yes','join','inherit','lovrabet/rabetbase','code','SKILL_NOT_INSTALLED','add','stdio','pipe','12764DtkshO','6UZelAX','skill','3575593ltTgsK'];a264_0x3190=function(){return _0x322667;};return a264_0x3190();}export const RABETBASE_GLOBAL_SKILL_NAME=a264_0x5c13f7(0xee);export const RABETBASE_SKILL_GIT_SOURCE=a264_0x5c13f7(0xf6);export function resolveGlobalSkillName(_0x16a29c){const _0x504211=a264_0x5c13f7;switch(_0x16a29c[_0x504211(0xf5)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x59f303){const _0x5b88cb=a264_0x5c13f7,_0x401b0f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x59f303&&_0x401b0f[_0x5b88cb(0xfb)](NPX_SKILLS_FLAG_SKILL,_0x59f303),_0x401b0f;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a264_0x5c13f7(0xca)]('\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]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x266d3b,_0xf3d923,_0x46fbf7){return{'ok':![],'status':_0xf3d923,'code':_0x266d3b,'error':'['+_0x266d3b+']\x20'+_0x46fbf7};}function spawnOptions(_0x2a2c5c,_0x8f181c){const _0x2c7b0a=a264_0x5c13f7,_0xabb300={...process.env};return delete _0xabb300[_0x2c7b0a(0xdb)],delete _0xabb300[_0x2c7b0a(0xc7)],{'cwd':_0x2a2c5c,'stdio':_0x8f181c,'env':_0xabb300,'shell':![],..._0x8f181c===_0x2c7b0a(0xd1)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x575c86,_0x2bcab8,_0x4bb69f,_0x2c9551){const _0x21f341=a264_0x5c13f7,_0x506d26=[_0x575c86[_0x21f341(0xd7)]?_0x575c86[_0x21f341(0xd7)]['toString']():'',_0x575c86[_0x21f341(0xf4)]?_0x575c86[_0x21f341(0xf4)][_0x21f341(0xf0)]():''][_0x21f341(0xec)](Boolean)[_0x21f341(0xca)]('\x0a')[_0x21f341(0xf5)]();_0x2c9551!==_0x21f341(0xd1)&&_0x506d26&&console['log'](_0x506d26);if(_0x575c86[_0x21f341(0xd6)]){const _0x284d2e=_0x575c86[_0x21f341(0xd6)],_0xcdcc8=_0x284d2e['code']==='ENOENT'?'NPX_NOT_FOUND':_0x284d2e[_0x21f341(0xcd)]==='EPERM'||_0x284d2e['code']===_0x21f341(0xe8)?_0x21f341(0xea):_0x21f341(0xe5);return failure(_0xcdcc8,_0x575c86[_0x21f341(0xe7)],_0x284d2e[_0x21f341(0xe4)]);}if(_0x575c86[_0x21f341(0xfa)])return failure(_0x21f341(0xdd),_0x575c86[_0x21f341(0xe7)],_0x21f341(0xc8)+_0x575c86[_0x21f341(0xfa)]);if(_0x575c86['status']!==0x0)return failure('CHILD_EXIT_NONZERO',_0x575c86[_0x21f341(0xe7)],_0x506d26||_0x21f341(0xe9)+(_0x575c86[_0x21f341(0xe7)]??_0x21f341(0xc4)));const _0x51f0e2=_0x2bcab8?resolveInstalledSkill(_0x2bcab8,_0x4bb69f):undefined,_0x54ad3c=_0x506d26[_0x21f341(0xe6)](/Failed to install\s+(\d+)/i);if(_0x54ad3c&&Number(_0x54ad3c[0x1])>0x0){const _0x480b76=_0x21f341(0xe3)+_0x54ad3c[0x1]+_0x21f341(0xda)+(_0x506d26?':\x0a'+_0x506d26:'');if(_0x51f0e2?.[_0x21f341(0xc6)]==='present')return console[_0x21f341(0xed)]('!\x20'+_0x480b76),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x480b76);}if(_0x51f0e2){if(_0x51f0e2['state']===_0x21f341(0xdc))return failure(_0x21f341(0xce),0x0,_0x21f341(0xf3)+_0x2bcab8+_0x21f341(0xd8)+_0x51f0e2['checked'][_0x21f341(0xca)](',\x20')+')');_0x51f0e2['state']==='unverifiable'&&console[_0x21f341(0xed)](_0x21f341(0xf9)+_0x2bcab8+'\x22\x20install\x20state:\x20'+_0x51f0e2[_0x21f341(0xeb)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3dfe71,_0x104209){const _0x60aa96=a264_0x5c13f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2eda0a=_0x104209?.['stdio']??_0x60aa96(0xcb),_0x2bc577=resolveNpmBin(_0x60aa96(0xc3)),_0x2ae382=buildNpxSkillsAddArgv(_0x104209?.[_0x60aa96(0xd4)]),_0x5d0619=[_0x60aa96(0xc3),..._0x2ae382]['join']('\x20');console['log']('*\x20'+_0x5d0619);const _0x2e1df4=spawnSync(_0x2bc577,_0x2ae382,spawnOptions(_0x3dfe71,_0x2eda0a));return normalizeSpawnResult(_0x2e1df4,undefined,undefined,_0x2eda0a);}export function runNpxSkillsRemove(_0x3e2a95,_0x2f9027,_0x2e02c9=LEGACY_RABETBASE_SKILL_SOURCE){const _0x47a471=a264_0x5c13f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2db3a8=_0x2f9027?.[_0x47a471(0xd0)]??_0x47a471(0xcb),_0x92f642=resolveNpmBin(_0x47a471(0xc3)),_0x262851=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x47a471(0xfc),_0x2e02c9,NPX_SKILLS_FLAG_SKILL,_0x2f9027?.[_0x47a471(0xd4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2f9027?.[_0x47a471(0xc9)]?['-y']:[]],_0x23437a=[_0x92f642,..._0x262851][_0x47a471(0xca)]('\x20');console[_0x47a471(0xf2)]('*\x20'+_0x23437a);const _0x57c300=spawnSync(_0x92f642,_0x262851,spawnOptions(_0x3e2a95,_0x2db3a8));return normalizeSpawnResult(_0x57c300,undefined,undefined,_0x2db3a8);}export function runNpxSkillsAddGlobal(_0x5b1c8b,_0x8ee3e0,_0x3cea9f){const _0xb4e3c5=a264_0x5c13f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a2a58=resolveNpmBin(_0xb4e3c5(0xc3)),_0x30f695=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x8ee3e0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x23812f=[_0xb4e3c5(0xc3),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x8ee3e0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb4e3c5(0xca)]('\x20');console['log']('*\x20'+_0x23812f);const _0x108840=spawnSync(_0x5a2a58,_0x30f695,spawnOptions(_0x5b1c8b,_0xb4e3c5(0xd1)));return normalizeSpawnResult(_0x108840,_0x3cea9f?.['expectedSkillName']??resolveGlobalSkillName(_0x8ee3e0),_0x3cea9f?.[_0xb4e3c5(0xc5)],_0x3cea9f?.[_0xb4e3c5(0xd0)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a265_0x4ef4e4=a265_0x36bc;(function(_0x281c69,_0x2d3aa5){const _0x4e5e9c=a265_0x36bc,_0x490793=_0x281c69();while(!![]){try{const _0x1e6154=parseInt(_0x4e5e9c(0x1e5))/0x1+parseInt(_0x4e5e9c(0x1e3))/0x2*(parseInt(_0x4e5e9c(0x1cd))/0x3)+-parseInt(_0x4e5e9c(0x1d3))/0x4*(parseInt(_0x4e5e9c(0x1dd))/0x5)+parseInt(_0x4e5e9c(0x1d5))/0x6*(-parseInt(_0x4e5e9c(0x1c9))/0x7)+parseInt(_0x4e5e9c(0x1db))/0x8*(-parseInt(_0x4e5e9c(0x1e0))/0x9)+parseInt(_0x4e5e9c(0x1ed))/0xa+parseInt(_0x4e5e9c(0x1da))/0xb;if(_0x1e6154===_0x2d3aa5)break;else _0x490793['push'](_0x490793['shift']());}catch(_0x19acf9){_0x490793['push'](_0x490793['shift']());}}}(a265_0x19f3,0x4f30c));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a265_0x36bc(_0x8838de,_0x82fc5d){_0x8838de=_0x8838de-0x1c9;const _0x19f3ca=a265_0x19f3();let _0x36bc04=_0x19f3ca[_0x8838de];return _0x36bc04;}export const SKILL_LOCK_RELATIVE_PATH=join(a265_0x4ef4e4(0x1cb),a265_0x4ef4e4(0x1cf));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a265_0x4ef4e4(0x1cb),a265_0x4ef4e4(0x1e8)),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2fbb0b,_0xe608e8){const _0x3e7fb=a265_0x4ef4e4;if(!existsSync(_0x2fbb0b))return{'kind':'not-recorded'};let _0x60de26;try{_0x60de26=JSON['parse'](readFileSync(_0x2fbb0b,_0x3e7fb(0x1ee)));}catch(_0x130205){return{'kind':_0x3e7fb(0x1d9),'reason':_0x2fbb0b+_0x3e7fb(0x1ef)+_0x130205[_0x3e7fb(0x1d2)]};}const _0x1f0c5b=_0x60de26;if(typeof _0x1f0c5b?.[_0x3e7fb(0x1e1)]!==_0x3e7fb(0x1d0)||!SUPPORTED_LOCK_VERSIONS[_0x3e7fb(0x1ea)](_0x1f0c5b['version']))return{'kind':_0x3e7fb(0x1d9),'reason':_0x2fbb0b+_0x3e7fb(0x1de)+String(_0x1f0c5b?.[_0x3e7fb(0x1e1)])};if(!_0x1f0c5b[_0x3e7fb(0x1e8)]||typeof _0x1f0c5b[_0x3e7fb(0x1e8)]!==_0x3e7fb(0x1d4))return{'kind':_0x3e7fb(0x1d9),'reason':_0x2fbb0b+_0x3e7fb(0x1f0)};return _0x1f0c5b['skills'][_0xe608e8]?{'kind':_0x3e7fb(0x1ce)}:{'kind':_0x3e7fb(0x1ca)};}function a265_0x19f3(){const _0xc53f55=['14788TycCHH','object','24jMbGkr','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','map','lockFile','unusable','8422370vaolUP','24eqBWNY','home','760Grkiet','\x20uses\x20unsupported\x20version\x20','unverifiable','1630611oXJZae','version','kind','2TflDjh','\x20records\x20\x22','410405UoVPek','SKILL.md','join','skills','find','includes','reason','globalSkillsDirs','4846240UksSXu','utf8','\x20is\x20unreadable:\x20','\x20has\x20no\x20skills\x20map','1120217pXpuNP','not-recorded','.agents','present','1227810GLdFEi','recorded','.skill-lock.json','number','absent','message'];a265_0x19f3=function(){return _0xc53f55;};return a265_0x19f3();}export function resolveInstalledSkill(_0x4e7750,_0x40b231){const _0x3fc924=a265_0x4ef4e4,_0x3e46e1=_0x40b231?.[_0x3fc924(0x1dc)]??homedir(),_0xa00cab=_0x40b231?.[_0x3fc924(0x1ec)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x11a249=>join(_0x3e46e1,_0x11a249)),_0x51a3dd=_0x40b231?.[_0x3fc924(0x1d8)]??join(_0x3e46e1,SKILL_LOCK_RELATIVE_PATH),_0x354ba7=_0xa00cab[_0x3fc924(0x1d7)](_0x4546a9=>join(_0x4546a9,_0x4e7750,_0x3fc924(0x1e6))),_0x5408fb=_0x354ba7[_0x3fc924(0x1e9)](_0x518d2e=>existsSync(_0x518d2e));if(_0x5408fb)return{'state':_0x3fc924(0x1cc),'path':_0x5408fb};const _0x216a49=readLockLookup(_0x51a3dd,_0x4e7750);if(_0x216a49['kind']==='unusable')return{'state':_0x3fc924(0x1df),'reason':_0x216a49[_0x3fc924(0x1eb)]};if(_0x216a49[_0x3fc924(0x1e2)]===_0x3fc924(0x1ce))return{'state':_0x3fc924(0x1df),'reason':_0x51a3dd+_0x3fc924(0x1e4)+_0x4e7750+_0x3fc924(0x1d6)+('('+_0x354ba7[_0x3fc924(0x1e7)](',\x20')+')')};return{'state':_0x3fc924(0x1d1),'checked':_0x354ba7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a266_0x42b8(_0x2433b3,_0xcb3d5e){_0x2433b3=_0x2433b3-0x169;const _0x58d735=a266_0x58d7();let _0x42b86c=_0x58d735[_0x2433b3];return _0x42b86c;}function a266_0x58d7(){const _0x5b69e2=['error','1662dKeGNh','service','1319890teScrd','5907228VRHAbZ','durationMs','77Jibhas','2323260LXxkkT','[REDACTED]','1942QJwtpJ','778128bruoGV','673576ODOWkh','some','2843370szOSHy','flags','command','rabetbase.command'];a266_0x58d7=function(){return _0x5b69e2;};return a266_0x58d7();}(function(_0x4bfa12,_0x5a881b){const _0x19890a=a266_0x42b8,_0x19a831=_0x4bfa12();while(!![]){try{const _0x15799e=-parseInt(_0x19890a(0x177))/0x1+-parseInt(_0x19890a(0x16c))/0x2*(-parseInt(_0x19890a(0x175))/0x3)+-parseInt(_0x19890a(0x16e))/0x4+-parseInt(_0x19890a(0x16a))/0x5+parseInt(_0x19890a(0x178))/0x6+-parseInt(_0x19890a(0x169))/0x7*(-parseInt(_0x19890a(0x16d))/0x8)+parseInt(_0x19890a(0x170))/0x9;if(_0x15799e===_0x5a881b)break;else _0x19a831['push'](_0x19a831['shift']());}catch(_0x4e76ae){_0x19a831['push'](_0x19a831['shift']());}}}(a266_0x58d7,0xe9400));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 isSensitiveKey(_0x51527f){const _0x51cf8e=a266_0x42b8;return SENSITIVE_PATTERNS[_0x51cf8e(0x16f)](_0x1c586c=>_0x1c586c['test'](_0x51527f));}function sanitizeFlags(_0x30f9fe){const _0x24e4c4=a266_0x42b8,_0x5a9f4c={};for(const [_0x49f11b,_0x503cd9]of Object['entries'](_0x30f9fe)){isSensitiveKey(_0x49f11b)?_0x5a9f4c[_0x49f11b]=_0x503cd9!=null&&_0x503cd9!==''?_0x24e4c4(0x16b):_0x503cd9:_0x5a9f4c[_0x49f11b]=_0x503cd9;}return _0x5a9f4c;}export async function reportCommandTrace(_0x2b5d22){const _0x242f97=a266_0x42b8;try{const _0x2fb406=sanitizeFlags(_0x2b5d22[_0x242f97(0x171)]);await sendCliTraceLog({'spanName':_0x242f97(0x173),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2b5d22[_0x242f97(0x176)],'command.name':_0x2b5d22[_0x242f97(0x172)],'command.flags':JSON['stringify'](_0x2fb406),..._0x2b5d22[_0x242f97(0x179)]!=null?{'command.duration_ms':_0x2b5d22[_0x242f97(0x179)]}:{},..._0x2b5d22[_0x242f97(0x174)]?{'command.error':_0x2b5d22[_0x242f97(0x174)]instanceof Error?_0x2b5d22[_0x242f97(0x174)]['message']:String(_0x2b5d22[_0x242f97(0x174)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a267_0x1160(){var _0x3ae977=['error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','248410PrGEzZ','633462OyZXpc','1YSjYWx','8571420WjylYp','81QUESAq','1389ioabkR','cli.help','590373aqzQSi','service','153216CZDLPF','209jgakxd','360942chMlIl','1832MpqWNe','8igVzXz','5XuGxal'];a267_0x1160=function(){return _0x3ae977;};return a267_0x1160();}(function(_0x54ba33,_0x58472f){var _0x3fa849=a267_0x3f43,_0x34af73=_0x54ba33();while(!![]){try{var _0x2f4811=-parseInt(_0x3fa849(0x1d6))/0x1*(parseInt(_0x3fa849(0x1d5))/0x2)+-parseInt(_0x3fa849(0x1d9))/0x3*(-parseInt(_0x3fa849(0x1cf))/0x4)+parseInt(_0x3fa849(0x1d1))/0x5*(parseInt(_0x3fa849(0x1ce))/0x6)+parseInt(_0x3fa849(0x1db))/0x7*(parseInt(_0x3fa849(0x1d0))/0x8)+parseInt(_0x3fa849(0x1d8))/0x9*(-parseInt(_0x3fa849(0x1d4))/0xa)+parseInt(_0x3fa849(0x1cd))/0xb*(-parseInt(_0x3fa849(0x1cc))/0xc)+parseInt(_0x3fa849(0x1d7))/0xd;if(_0x2f4811===_0x58472f)break;else _0x34af73['push'](_0x34af73['shift']());}catch(_0x3cabf7){_0x34af73['push'](_0x34af73['shift']());}}}(a267_0x1160,0x38e26));function a267_0x3f43(_0xcc5cfe,_0x3f3bec){_0xcc5cfe=_0xcc5cfe-0x1cb;var _0x11603a=a267_0x1160();var _0x3f4310=_0x11603a[_0xcc5cfe];return _0x3f4310;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x686212,_0x5183bc){var _0x15af8b=a267_0x3f43;try{await sendCliTraceLog({'spanName':_0x15af8b(0x1da),'logData':{'rabetbase.help.kind':_0x686212,..._0x5183bc?.[_0x15af8b(0x1cb)]&&{'rabetbase.help.service':_0x5183bc[_0x15af8b(0x1cb)]}}});}catch(_0x52c77d){console[_0x15af8b(0x1d2)](_0x15af8b(0x1d3),_0x52c77d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x200a8c,_0x3d90f8){const _0x31d2e7=a268_0x1af1,_0x54e758=_0x200a8c();while(!![]){try{const _0xa11607=parseInt(_0x31d2e7(0x1bd))/0x1+parseInt(_0x31d2e7(0x1c9))/0x2+-parseInt(_0x31d2e7(0x1be))/0x3*(-parseInt(_0x31d2e7(0x1c4))/0x4)+parseInt(_0x31d2e7(0x1c3))/0x5+parseInt(_0x31d2e7(0x1c7))/0x6*(-parseInt(_0x31d2e7(0x1bc))/0x7)+parseInt(_0x31d2e7(0x1bf))/0x8+-parseInt(_0x31d2e7(0x1c6))/0x9;if(_0xa11607===_0x3d90f8)break;else _0x54e758['push'](_0x54e758['shift']());}catch(_0x13490c){_0x54e758['push'](_0x54e758['shift']());}}}(a268_0x1725,0x3dcf7));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_0x1725(){const _0x4b9c02=['155637dAbZyd','3LzSjpI','720888VjUvMC','username','daily','user','195270AacRJT','540116xrLzAU','tenant_code','837198OxBXmq','2443824AhDXMc','tenant','667340RRWlei','nickname','email','7ztaLIw'];a268_0x1725=function(){return _0x4b9c02;};return a268_0x1725();}function a268_0x1af1(_0x234f0c,_0x4090aa){_0x234f0c=_0x234f0c-0x1bb;const _0x17257d=a268_0x1725();let _0x1af179=_0x17257d[_0x234f0c];return _0x1af179;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x34800b=a268_0x1af1,_0x3c6ec2=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1ff29b=_0x3c6ec2?.[_0x34800b(0x1c2)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x34800b(0x1c1):'production')}),setUserContext({'id':_0x1ff29b?.['id'],'username':_0x1ff29b?.[_0x34800b(0x1c0)],'nickname':_0x1ff29b?.[_0x34800b(0x1ca)],'email':_0x1ff29b?.[_0x34800b(0x1bb)],'tenantCode':_0x1ff29b?.[_0x34800b(0x1c8)]?.[_0x34800b(0x1c5)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3c6ec2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39c685,_0x4d5151){const _0x4d6044=a269_0x409d,_0x500191=_0x39c685();while(!![]){try{const _0x2d297f=parseInt(_0x4d6044(0x124))/0x1*(-parseInt(_0x4d6044(0x11e))/0x2)+-parseInt(_0x4d6044(0x12a))/0x3*(-parseInt(_0x4d6044(0x12b))/0x4)+-parseInt(_0x4d6044(0x12c))/0x5*(-parseInt(_0x4d6044(0x120))/0x6)+-parseInt(_0x4d6044(0x126))/0x7*(-parseInt(_0x4d6044(0x12d))/0x8)+parseInt(_0x4d6044(0x122))/0x9*(parseInt(_0x4d6044(0x11f))/0xa)+parseInt(_0x4d6044(0x123))/0xb+-parseInt(_0x4d6044(0x12e))/0xc*(parseInt(_0x4d6044(0x12f))/0xd);if(_0x2d297f===_0x4d5151)break;else _0x500191['push'](_0x500191['shift']());}catch(_0x1e85e0){_0x500191['push'](_0x500191['shift']());}}}(a269_0x5633,0x3e68c));import{shutdownTraces}from'@lovrabet/otel-logger';function a269_0x409d(_0x406655,_0x1d8a34){_0x406655=_0x406655-0x11e;const _0x5633fa=a269_0x5633();let _0x409d9b=_0x5633fa[_0x406655];return _0x409d9b;}let shutdownPromise=null;function a269_0x5633(){const _0x245ba4=['beforeExit','SIGINT','227577oXGPtg','20IfiBIm','5aSdqDZ','184VnIdpZ','60owCYZx','3581656gLCHkg','14438APxVcV','69110dpAYhT','1249206JVEecw','then','648IFbMBC','3552505gXbQpZ','7cfzXfB','once','83902LaxQAx','exit'];a269_0x5633=function(){return _0x245ba4;};return a269_0x5633();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x18d97c=a269_0x409d;process[_0x18d97c(0x125)](_0x18d97c(0x128),()=>{void flushOtelNodeIfUsed();});const _0x14e374=()=>{const _0x5b8c10=_0x18d97c;void flushOtelNodeIfUsed()[_0x5b8c10(0x121)](()=>process[_0x5b8c10(0x127)](0x0));};process[_0x18d97c(0x125)](_0x18d97c(0x129),_0x14e374),process[_0x18d97c(0x125)]('SIGTERM',_0x14e374);}export async function exitWithOtelShutdown(_0x49c36d){await flushOtelNodeIfUsed(),process['exit'](_0x49c36d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a270_0x42ac(){const _0x5f58f5=['40nanpkE','version','traceName','16535937blLBrn','1722172XlGHhg','3sMHLFF','41986MinRvK','969129FfUJTs','1198360KcEcNR','3204782uJIeGp','6JeoTTw','1701650GweCBE','12oCuoyu','manual','spanName','2mLmcNa'];a270_0x42ac=function(){return _0x5f58f5;};return a270_0x42ac();}(function(_0x34fdbf,_0x3aa0c2){const _0x569556=a270_0x5a74,_0x4e98b5=_0x34fdbf();while(!![]){try{const _0x290adb=-parseInt(_0x569556(0x1a1))/0x1*(parseInt(_0x569556(0x1a8))/0x2)+parseInt(_0x569556(0x1a7))/0x3*(parseInt(_0x569556(0x1a6))/0x4)+parseInt(_0x569556(0x19d))/0x5+parseInt(_0x569556(0x1ac))/0x6*(parseInt(_0x569556(0x1ab))/0x7)+parseInt(_0x569556(0x1aa))/0x8+parseInt(_0x569556(0x1a9))/0x9*(parseInt(_0x569556(0x1a2))/0xa)+parseInt(_0x569556(0x1a5))/0xb*(-parseInt(_0x569556(0x19e))/0xc);if(_0x290adb===_0x3aa0c2)break;else _0x4e98b5['push'](_0x4e98b5['shift']());}catch(_0x8da4a8){_0x4e98b5['push'](_0x4e98b5['shift']());}}}(a270_0x42ac,0x4071d));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a270_0x5a74(_0x291aaa,_0x154159){_0x291aaa=_0x291aaa-0x19d;const _0x42ac84=a270_0x42ac();let _0x5a7421=_0x42ac84[_0x291aaa];return _0x5a7421;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x736234){const _0x49afd1=a270_0x5a74;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x736234[_0x49afd1(0x1a4)]??DEFAULT_TRACE_NAME,'version':_0x736234[_0x49afd1(0x1a3)]??getCliVersion(),'spanName':_0x736234[_0x49afd1(0x1a0)],'eventType':_0x49afd1(0x19f),'logData':_0x736234['logData'],..._0x736234['traceparent']&&{'traceparent':_0x736234['traceparent']}});}
|