@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/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/table-diff-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/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/search.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/domain-config.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/region.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/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 +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x661f62,_0x472783){const _0x4230c8=a252_0x31e9,_0x1c6de7=_0x661f62();while(!![]){try{const _0x224133=parseInt(_0x4230c8(0x13d))/0x1+parseInt(_0x4230c8(0x121))/0x2*(parseInt(_0x4230c8(0x10f))/0x3)+parseInt(_0x4230c8(0x120))/0x4+-parseInt(_0x4230c8(0x14a))/0x5+parseInt(_0x4230c8(0x140))/0x6+parseInt(_0x4230c8(0x133))/0x7+-parseInt(_0x4230c8(0x112))/0x8;if(_0x224133===_0x472783)break;else _0x1c6de7['push'](_0x1c6de7['shift']());}catch(_0x3e113b){_0x1c6de7['push'](_0x1c6de7['shift']());}}}(a252_0x202d,0x1c7e5));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';function a252_0x202d(){const _0xd21c6d=['Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','330729PtOWEP','format','explicitAppName','resolveCookie','apps','execute','formatOutput','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','production','has','88456EarPzt','join','update','659814HjedJZ','\x20\x20\x20Continue?\x20[y/N]\x20','nonInteractive','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','cookie','Available:\x20','name','defaultVerbose','Set\x20appcode\x20via\x20`','replace','526485BVdVkK','authRequired','meowKey','find','toUpperCase','keys','selectedAppName','catch','length','validation','verbose','includes','doctor','appcode','string','service','object','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','all','isNonInteractive','defaultPageSize','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../constant/domain.js','9dcqlCC','../core/api-client.js','_notice','1385872KMIFRD','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolve','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','configMissing','schema','currentApp','trim','mergedCli','risk','apiDir','appCode','hasFormat','requiresAppCode','260580MQITaR','56282CUIFjn','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','Edit\x20the\x20config\x20file\x20manually','rawFlags','RABETBASE_APPCODE','cancelled','Current\x20resolved\x20appcode\x20is\x20\x22','none','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','required','High-risk\x20operation\x20`','hint','some','filter','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a252_0x202d=function(){return _0xd21c6d;};return a252_0x202d();}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 a252_0x4ad677}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x97fced){const _0x536503=a252_0x31e9;return typeof _0x97fced===_0x536503(0x158)&&_0x97fced[_0x536503(0x119)]()?_0x97fced[_0x536503(0x119)]():undefined;}function resolveEnvAppCode(){const _0x1d4f9d=a252_0x31e9,_0x4dad69=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4dad69)return{'name':_0x1d4f9d(0x125),'value':_0x4dad69};const _0x291390=stringFlag(process.env.LOVRABET_APPCODE);if(_0x291390)return{'name':'LOVRABET_APPCODE','value':_0x291390};return undefined;}function hasExplicitAppCode(_0x519c89,_0x28c219){const _0x3eda24=a252_0x31e9;return!!(stringFlag(_0x519c89[_0x3eda24(0x157)])||stringFlag(_0x28c219['appcode']));}function assertEnvAppCodeNotIgnored(_0x2eb680,_0x44798f,_0x285c23){const _0x4efca5=a252_0x31e9;if(!_0x44798f||_0x285c23||_0x2eb680===_0x44798f['value'])return;const _0x2bb573=_0x2eb680?_0x4efca5(0x127)+_0x2eb680+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors['validation'](_0x44798f[_0x4efca5(0x146)]+'='+_0x44798f['value']+_0x4efca5(0x113)+_0x2bb573+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x44798f['name']+'\x22.'));}export function createPipelineEnv(_0x5da54c,_0x15b554,_0x13a887=[]){const _0x17e217=a252_0x31e9;return{'rawFlags':_0x15b554,'args':_0x13a887,'resolveAppCode':()=>_0x5da54c[_0x17e217(0x11d)],'resolveCookie':()=>_0x5da54c[_0x17e217(0x144)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x4ad677(_0x15b554),'defaultFormat':_0x5da54c['format'],'defaultPageSize':_0x5da54c['pageSize'],'defaultVerbose':_0x5da54c[_0x17e217(0x154)],'apiDir':_0x5da54c[_0x17e217(0x11c)],'riskLevel':_0x5da54c['riskLevel'],'selectedAppName':_0x5da54c[_0x17e217(0x135)],'mergedCli':{'defaultApp':_0x5da54c[_0x17e217(0x15b)],'currentApp':_0x5da54c[_0x17e217(0x118)],'appCode':_0x5da54c[_0x17e217(0x11d)],'apps':_0x5da54c['apps']}};}export function createRabetbaseRunnerAdapter(_0x29e3be={}){const _0x132c9e=a252_0x31e9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x132c9e(0x130)](_0xffa50b=>PIPELINE_FLAG_NAMES[_0x132c9e(0x13c)](_0xffa50b[_0x132c9e(0x146)]))['map'](({name:_0x170c0b,type:_0x5d3c61,description:_0x2aae52})=>({'name':_0x170c0b,'type':_0x5d3c61,'description':_0x2aae52})),'formatOutput':_0x29e3be[_0x132c9e(0x139)]??formatOutput,'getCommandLabel'(_0x3a9e3e){const _0x435726=_0x132c9e;return CLI_BIN_NAME+'\x20'+_0x3a9e3e['service']+'\x20'+_0x3a9e3e[_0x435726(0x12a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3f6c3a,{def:_0x3542d9}){const _0x449205=_0x132c9e,_0x2a652f=_0x3f6c3a[_0x449205(0x155)](_0x449205(0x123))?_0x449205(0x129):_0x449205(0x115)+_0x3542d9[_0x449205(0x11b)]+_0x449205(0x12b)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x3f6c3a+'\x0a\x20\x20'+_0x2a652f);}},async 'prepare'(_0x416983,_0x235165,_0x4157d5,_0x2ed825){const _0x49f702=_0x132c9e,_0x24a039=_0x235165[_0x49f702(0x11c)]||DEFAULT_API_DIR;resolveAliasToCode(_0x416983,_0x4157d5,_0x24a039,_0x2ed825);const _0x3cd77b=resolveCommandAuthMode(_0x416983);let _0x5a30f4='';if(_0x3cd77b!==_0x49f702(0x128)){_0x5a30f4=_0x235165[_0x49f702(0x136)]()||'';if(!_0x5a30f4){if(_0x3cd77b===_0x49f702(0x12c))throw CliErrors[_0x49f702(0x14b)]();}else{const {setActiveCookie:_0x5e5bb7}=await import(_0x49f702(0x110));_0x5e5bb7(_0x5a30f4);}}const _0x1b68df=_0x235165['resolveAppCode']()??'';if(_0x416983[_0x49f702(0x11f)]!==![]){const _0x1a5eba=hasExplicitAppCode(_0x4157d5,_0x235165[_0x49f702(0x124)]),_0x2ec805=_0x235165['mergedCli']?.[_0x49f702(0x137)]??{},_0x857c10=_0x235165[_0x49f702(0x150)]||_0x235165[_0x49f702(0x11a)]?.['currentApp']||_0x235165[_0x49f702(0x11a)]?.['defaultApp'];if(!_0x1a5eba&&_0x857c10&&!_0x2ec805[_0x857c10]){const _0x41f78e=Object[_0x49f702(0x14f)](_0x2ec805);throw CliErrors[_0x49f702(0x153)]('App\x20\x22'+_0x857c10+_0x49f702(0x122),_0x41f78e[_0x49f702(0x152)]>0x0?_0x49f702(0x145)+_0x41f78e[_0x49f702(0x13e)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x49f702(0x10d):_0x49f702(0x143)+CLI_BIN_NAME+_0x49f702(0x10d));}assertEnvAppCodeNotIgnored(_0x1b68df,resolveEnvAppCode(),_0x1a5eba);if(!_0x1b68df){const _0x4ad229=Object[_0x49f702(0x14f)](_0x2ec805);if(!_0x857c10&&_0x4ad229[_0x49f702(0x152)]>0x1)throw CliErrors[_0x49f702(0x116)](_0x49f702(0x132)+CLI_BIN_NAME+_0x49f702(0x13a)+_0x4ad229[_0x49f702(0x13e)](',\x20')+'.');throw CliErrors[_0x49f702(0x116)](_0x49f702(0x148)+CLI_BIN_NAME+_0x49f702(0x131));}}return{'defaults':{'booleans':{'verbose':_0x235165[_0x49f702(0x147)]},'numbers':{'pagesize':_0x235165[_0x49f702(0x10c)]}},'extras':{'appCode':_0x1b68df,'cookie':_0x5a30f4,'apiDomain':_0x235165['resolveApiDomain'](),'apiDir':_0x24a039,'selectedAppName':_0x235165['selectedAppName'],'mergedCli':_0x235165[_0x49f702(0x11a)]}};},'confirmHighRisk':_0x29e3be['confirmHighRisk']??(async({env:_0xc6a5af,commandLabel:_0x52aa64})=>{const _0x452cce=_0x132c9e;if(_0xc6a5af[_0x452cce(0x10b)])throw CliErrors[_0x452cce(0x153)](_0x452cce(0x12d)+_0x52aa64+_0x452cce(0x15c));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x52aa64,_0x452cce(0x141)],'createCancelledError':_0x3da2e1=>CliErrors[_0x452cce(0x126)](_0x3da2e1)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0xa92e2e=a252_0x31e9,{clearActiveCookie:_0x36b891}=await import(_0xa92e2e(0x110));_0x36b891();}export async function finalizeRabetbaseRuntimeState(){const _0x4fd39a=a252_0x31e9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x6488aa},{initEnv:_0x3099a2}]=await Promise[_0x4fd39a(0x15d)]([import(_0x4fd39a(0x10e)),import('../constant/env.js')]);_0x6488aa(),_0x3099a2(_0x4fd39a(0x13b));}}export async function runCommand(_0x46a28b,_0x50e03a,_0x5868d2=terminalRunnerAdapter){assertRejectedFlags(_0x46a28b,_0x50e03a['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x46a28b)?withUpdateNotice(_0x46a28b):_0x46a28b,_0x50e03a,_0x5868d2);}function a252_0x31e9(_0x4aa0df,_0x5527ae){_0x4aa0df=_0x4aa0df-0x10b;const _0x202dda=a252_0x202d();let _0x31e992=_0x202dda[_0x4aa0df];return _0x31e992;}function assertRejectedFlags(_0x5646ed,_0x4076dd){const _0x21e21b=a252_0x31e9;for(const _0x20e47b of _0x5646ed['rejectedFlags']??[]){const _0x340cbf=GLOBAL_FLAGS[_0x21e21b(0x14d)](_0x7d3a54=>_0x7d3a54[_0x21e21b(0x146)]===_0x20e47b[_0x21e21b(0x146)]),_0x29ac94=new Set([_0x20e47b[_0x21e21b(0x146)],toCamelCase(_0x20e47b['name']),_0x340cbf?.[_0x21e21b(0x14c)]]),_0x3fe0ff=[..._0x29ac94][_0x21e21b(0x12f)](_0x46952b=>{if(!_0x46952b)return![];const _0x2e127a=_0x4076dd[_0x46952b];return _0x2e127a!==undefined&&_0x2e127a!==null&&_0x2e127a!==![];});if(_0x3fe0ff)throw CliErrors[_0x21e21b(0x153)](_0x20e47b['message'],_0x20e47b[_0x21e21b(0x12e)]);}}function toCamelCase(_0x18ee0f){const _0x3096b5=a252_0x31e9;return _0x18ee0f[_0x3096b5(0x149)](/-([a-z])/g,(_0x4771b7,_0x103fbd)=>_0x103fbd[_0x3096b5(0x14e)]());}function shouldAttachUpdateNotice(_0x43f812){const _0x162dd0=a252_0x31e9;if(_0x43f812[_0x162dd0(0x11e)]===![])return![];return![_0x162dd0(0x13f),_0x162dd0(0x117),_0x162dd0(0x156)][_0x162dd0(0x155)](_0x43f812[_0x162dd0(0x159)]);}function withUpdateNotice(_0x4f5288){return{..._0x4f5288,async 'execute'(_0x5a8544){const _0x222c82=a252_0x31e9,_0x533c44=shouldResolveUpdateNotice(_0x5a8544)?resolveLatestUpdateNotice()[_0x222c82(0x151)](()=>null):Promise[_0x222c82(0x114)](null),_0x9ab04c=await _0x4f5288[_0x222c82(0x138)](_0x5a8544);return attachUpdateNotice(_0x9ab04c,await _0x533c44);}};}function shouldResolveUpdateNotice(_0x27b076){const _0x45a620=a252_0x31e9;return _0x27b076[_0x45a620(0x134)]==='pretty'&&!_0x27b076[_0x45a620(0x142)];}function attachUpdateNotice(_0xd6a3e,_0x3bcd3e){const _0x2a25fd=a252_0x31e9;if(!_0x3bcd3e||!_0xd6a3e||typeof _0xd6a3e!==_0x2a25fd(0x15a))return _0xd6a3e;const _0x1b83b4=_0xd6a3e,_0xfde35d=typeof _0x1b83b4[_0x2a25fd(0x111)]===_0x2a25fd(0x15a)&&_0x1b83b4['_notice']!==null?_0x1b83b4['_notice']:{};return{..._0x1b83b4,'_notice':{..._0xfde35d,'update':_0x3bcd3e}};}
|
|
1
|
+
(function(_0x171aba,_0x570c90){const _0x476469=a252_0x5737,_0x2d4583=_0x171aba();while(!![]){try{const _0x1be36d=parseInt(_0x476469(0x15d))/0x1*(parseInt(_0x476469(0x154))/0x2)+-parseInt(_0x476469(0x150))/0x3+parseInt(_0x476469(0x14c))/0x4*(parseInt(_0x476469(0x17d))/0x5)+-parseInt(_0x476469(0x14e))/0x6+parseInt(_0x476469(0x153))/0x7*(parseInt(_0x476469(0x17e))/0x8)+parseInt(_0x476469(0x148))/0x9+-parseInt(_0x476469(0x162))/0xa;if(_0x1be36d===_0x570c90)break;else _0x2d4583['push'](_0x2d4583['shift']());}catch(_0x204346){_0x2d4583['push'](_0x2d4583['shift']());}}}(a252_0x3c82,0x9f9bb));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a252_0x5737(_0x30067e,_0x104842){_0x30067e=_0x30067e-0x146;const _0x3c8270=a252_0x3c82();let _0x573791=_0x3c8270[_0x30067e];return _0x573791;}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 a252_0x3069b6}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3dc97c){const _0x5dfc9d=a252_0x5737;return typeof _0x3dc97c===_0x5dfc9d(0x194)&&_0x3dc97c[_0x5dfc9d(0x189)]()?_0x3dc97c[_0x5dfc9d(0x189)]():undefined;}function resolveEnvAppCode(){const _0x4e041e=a252_0x5737,_0xa68865=stringFlag(process.env.RABETBASE_APPCODE);if(_0xa68865)return{'name':_0x4e041e(0x155),'value':_0xa68865};const _0x3a7b94=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3a7b94)return{'name':_0x4e041e(0x161),'value':_0x3a7b94};return undefined;}function a252_0x3c82(){const _0x12aa02=['filter','High-risk\x20operation\x20`','requiresAppCode','production','../core/api-client.js','includes','verbose','none','_notice','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','5914900gnuwex','1356728CaJRlU','execute','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','service','resolveApiDomain','Edit\x20the\x20config\x20file\x20manually','all','value','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','hasFormat','nonInteractive','trim','message','apps','apiDir','object','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','defaultVerbose','Set\x20appcode\x20via\x20`','hint','formatOutput','appcode','string','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','../constant/domain.js','update','../constant/env.js','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','mergedCli','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','Available:\x20','length','replace','2805984OZTIdn','\x20\x20\x20Continue?\x20[y/N]\x20','join','pretty','4lZFanP','resolve','2958882bgIaxW','isNonInteractive','121782KFpGhk','name','keys','42PakBqT','3692cFguVH','RABETBASE_APPCODE','appCode','currentApp','Current\x20resolved\x20appcode\x20is\x20\x22','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','some','resolveCookie','\x0a\x20\x20','243eoiVMJ','App\x20\x22','cancelled','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','LOVRABET_APPCODE','17733840xlaccM','pageSize','doctor','selectedAppName','configMissing','map','resolveAppCode','rawFlags','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','risk','schema','has','toUpperCase','validation','cookie','meowKey'];a252_0x3c82=function(){return _0x12aa02;};return a252_0x3c82();}function hasExplicitAppCode(_0x27dedf,_0x56904f){const _0x30e1a8=a252_0x5737;return!!(stringFlag(_0x27dedf[_0x30e1a8(0x193)])||stringFlag(_0x56904f[_0x30e1a8(0x193)]));}function assertEnvAppCodeNotIgnored(_0x517a35,_0x4b0b1,_0x384e60){const _0x1f951d=a252_0x5737;if(!_0x4b0b1||_0x384e60||_0x517a35===_0x4b0b1[_0x1f951d(0x185)])return;const _0x534286=_0x517a35?_0x1f951d(0x158)+_0x517a35+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x1f951d(0x170)](_0x4b0b1['name']+'='+_0x4b0b1['value']+_0x1f951d(0x159)+_0x534286+'\x20'+(_0x1f951d(0x180)+_0x4b0b1[_0x1f951d(0x151)]+'\x22.'));}export function createPipelineEnv(_0xe6600a,_0x2589ff,_0x149923=[]){const _0x3f1369=a252_0x5737;return{'rawFlags':_0x2589ff,'args':_0x149923,'resolveAppCode':()=>_0xe6600a[_0x3f1369(0x156)],'resolveCookie':()=>_0xe6600a[_0x3f1369(0x171)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x3069b6(_0x2589ff),'defaultFormat':_0xe6600a['format'],'defaultPageSize':_0xe6600a[_0x3f1369(0x163)],'defaultVerbose':_0xe6600a[_0x3f1369(0x179)],'apiDir':_0xe6600a[_0x3f1369(0x18c)],'riskLevel':_0xe6600a['riskLevel'],'selectedAppName':_0xe6600a['explicitAppName'],'mergedCli':{'defaultApp':_0xe6600a[_0x3f1369(0x16a)],'currentApp':_0xe6600a[_0x3f1369(0x157)],'appCode':_0xe6600a[_0x3f1369(0x156)],'apps':_0xe6600a['apps']}};}export function createRabetbaseRunnerAdapter(_0x5c27ba={}){const _0xdde3d6=a252_0x5737;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xdde3d6(0x173)](_0x53fba9=>PIPELINE_FLAG_NAMES[_0xdde3d6(0x16e)](_0x53fba9['name']))[_0xdde3d6(0x167)](({name:_0x5ac96c,type:_0x2fe219,description:_0x353632})=>({'name':_0x5ac96c,'type':_0x2fe219,'description':_0x353632})),'formatOutput':_0x5c27ba[_0xdde3d6(0x192)]??formatOutput,'getCommandLabel'(_0x1fb144){const _0xfcbd7b=_0xdde3d6;return CLI_BIN_NAME+'\x20'+_0x1fb144[_0xfcbd7b(0x181)]+'\x20'+_0x1fb144['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xb1c69c,{def:_0x493ceb}){const _0x5a1e4a=_0xdde3d6,_0x3b99d7=_0xb1c69c[_0x5a1e4a(0x178)](_0x5a1e4a(0x183))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x5a1e4a(0x199)+_0x493ceb[_0x5a1e4a(0x16c)]+_0x5a1e4a(0x195)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x5a1e4a(0x170)](_0xb1c69c+_0x5a1e4a(0x15c)+_0x3b99d7);}},async 'prepare'(_0x2e22fd,_0x14b62b,_0x3cfb59,_0x522ea0){const _0x1ea650=_0xdde3d6,_0x2971df=_0x14b62b['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x2e22fd,_0x3cfb59,_0x2971df,_0x522ea0);const _0x5d2179=resolveCommandAuthMode(_0x2e22fd);let _0x313203='';if(_0x5d2179!==_0x1ea650(0x17a)){_0x313203=_0x14b62b[_0x1ea650(0x15b)]()||'';if(!_0x313203){if(_0x5d2179==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x206188}=await import(_0x1ea650(0x177));_0x206188(_0x313203);}}const _0x52fdf8=_0x14b62b[_0x1ea650(0x168)]()??'';if(_0x2e22fd[_0x1ea650(0x175)]!==![]){const _0x3e5070=hasExplicitAppCode(_0x3cfb59,_0x14b62b['rawFlags']),_0x547dd1=_0x14b62b['mergedCli']?.[_0x1ea650(0x18b)]??{},_0xeb10a1=_0x14b62b['selectedAppName']||_0x14b62b[_0x1ea650(0x19a)]?.[_0x1ea650(0x157)]||_0x14b62b[_0x1ea650(0x19a)]?.[_0x1ea650(0x16a)];if(!_0x3e5070&&_0xeb10a1&&!_0x547dd1[_0xeb10a1]){const _0x3adf02=Object[_0x1ea650(0x152)](_0x547dd1);throw CliErrors[_0x1ea650(0x170)](_0x1ea650(0x15e)+_0xeb10a1+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x3adf02[_0x1ea650(0x146)]>0x0?_0x1ea650(0x19c)+_0x3adf02[_0x1ea650(0x14a)](',\x20')+_0x1ea650(0x17c)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x1ea650(0x19b)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x52fdf8,resolveEnvAppCode(),_0x3e5070);if(!_0x52fdf8){const _0x5eaa3a=Object[_0x1ea650(0x152)](_0x547dd1);if(!_0xeb10a1&&_0x5eaa3a[_0x1ea650(0x146)]>0x1)throw CliErrors[_0x1ea650(0x166)](_0x1ea650(0x18e)+CLI_BIN_NAME+_0x1ea650(0x160)+_0x5eaa3a[_0x1ea650(0x14a)](',\x20')+'.');throw CliErrors[_0x1ea650(0x166)](_0x1ea650(0x190)+CLI_BIN_NAME+_0x1ea650(0x186));}}return{'defaults':{'booleans':{'verbose':_0x14b62b[_0x1ea650(0x18f)]},'numbers':{'pagesize':_0x14b62b['defaultPageSize']}},'extras':{'appCode':_0x52fdf8,'cookie':_0x313203,'apiDomain':_0x14b62b[_0x1ea650(0x182)](),'apiDir':_0x2971df,'selectedAppName':_0x14b62b[_0x1ea650(0x165)],'mergedCli':_0x14b62b['mergedCli']}};},'confirmHighRisk':_0x5c27ba['confirmHighRisk']??(async({env:_0x32164c,commandLabel:_0x187e16})=>{const _0x307d0d=_0xdde3d6;if(_0x32164c[_0x307d0d(0x14f)])throw CliErrors['validation'](_0x307d0d(0x174)+_0x187e16+_0x307d0d(0x16b));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x187e16,_0x307d0d(0x149)],'createCancelledError':_0xde2749=>CliErrors[_0x307d0d(0x15f)](_0xde2749)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x50db4e=a252_0x5737,{clearActiveCookie:_0x47c230}=await import(_0x50db4e(0x177));_0x47c230();}export async function finalizeRabetbaseRuntimeState(){const _0x28de38=a252_0x5737;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4abf8b},{initEnv:_0x35702d}]=await Promise[_0x28de38(0x184)]([import(_0x28de38(0x196)),import(_0x28de38(0x198))]);_0x4abf8b(),_0x35702d(_0x28de38(0x176));}}export async function runCommand(_0x29434c,_0x2c8fcb,_0x334196=terminalRunnerAdapter){const _0x5bd7d8=a252_0x5737;assertRejectedFlags(_0x29434c,_0x2c8fcb[_0x5bd7d8(0x169)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x29434c)?withUpdateNotice(_0x29434c):_0x29434c,_0x2c8fcb,_0x334196);}function assertRejectedFlags(_0x5d5399,_0x1bfd27){const _0x112eda=a252_0x5737;for(const _0x50814b of _0x5d5399['rejectedFlags']??[]){const _0x5c1f5a=GLOBAL_FLAGS['find'](_0x1d4769=>_0x1d4769[_0x112eda(0x151)]===_0x50814b['name']),_0x5acc8f=new Set([_0x50814b[_0x112eda(0x151)],toCamelCase(_0x50814b['name']),_0x5c1f5a?.[_0x112eda(0x172)]]),_0x36058c=[..._0x5acc8f][_0x112eda(0x15a)](_0x38bba4=>{if(!_0x38bba4)return![];const _0xa4da5d=_0x1bfd27[_0x38bba4];return _0xa4da5d!==undefined&&_0xa4da5d!==null&&_0xa4da5d!==![];});if(_0x36058c)throw CliErrors[_0x112eda(0x170)](_0x50814b[_0x112eda(0x18a)],_0x50814b[_0x112eda(0x191)]);}}function toCamelCase(_0x40a101){const _0x135e57=a252_0x5737;return _0x40a101[_0x135e57(0x147)](/-([a-z])/g,(_0x489723,_0x2ce7ea)=>_0x2ce7ea[_0x135e57(0x16f)]());}function shouldAttachUpdateNotice(_0x304c57){const _0x2e72ff=a252_0x5737;if(_0x304c57[_0x2e72ff(0x187)]===![])return![];return![_0x2e72ff(0x197),_0x2e72ff(0x16d),_0x2e72ff(0x164)][_0x2e72ff(0x178)](_0x304c57[_0x2e72ff(0x181)]);}function withUpdateNotice(_0x229a00){return{..._0x229a00,async 'execute'(_0x37e151){const _0x3a6403=a252_0x5737,_0x5177f6=shouldResolveUpdateNotice(_0x37e151)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3a6403(0x14d)](null),_0x59f83e=await _0x229a00[_0x3a6403(0x17f)](_0x37e151);return attachUpdateNotice(_0x59f83e,await _0x5177f6);}};}function shouldResolveUpdateNotice(_0x2ad9c8){const _0x3b2299=a252_0x5737;return _0x2ad9c8['format']===_0x3b2299(0x14b)&&!_0x2ad9c8[_0x3b2299(0x188)];}function attachUpdateNotice(_0x17cf91,_0x3ed492){const _0x5c1c93=a252_0x5737;if(!_0x3ed492||!_0x17cf91||typeof _0x17cf91!=='object')return _0x17cf91;const _0x70807b=_0x17cf91,_0x344814=typeof _0x70807b[_0x5c1c93(0x17b)]===_0x5c1c93(0x18d)&&_0x70807b['_notice']!==null?_0x70807b['_notice']:{};return{..._0x70807b,'_notice':{..._0x344814,'update':_0x3ed492}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ac046,_0x135402){const _0x68e8da=a253_0x34d8,_0x1be68f=_0x3ac046();while(!![]){try{const _0x3dfb96=-parseInt(_0x68e8da(0x115))/0x1*(parseInt(_0x68e8da(0x111))/0x2)+parseInt(_0x68e8da(0x10c))/0x3+parseInt(_0x68e8da(0x10b))/0x4*(parseInt(_0x68e8da(0x110))/0x5)+parseInt(_0x68e8da(0x112))/0x6*(parseInt(_0x68e8da(0x10e))/0x7)+parseInt(_0x68e8da(0x114))/0x8+-parseInt(_0x68e8da(0x116))/0x9*(-parseInt(_0x68e8da(0x10d))/0xa)+-parseInt(_0x68e8da(0x10f))/0xb;if(_0x3dfb96===_0x135402)break;else _0x1be68f['push'](_0x1be68f['shift']());}catch(_0x43e466){_0x1be68f['push'](_0x1be68f['shift']());}}}(a253_0x2f6d,0xb11ee));import{buildSchemaPayload as a253_0x4472fa}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 a253_0x34d8(_0x320b50,_0x30b93b){_0x320b50=_0x320b50-0x10b;const _0x2f6dd2=a253_0x2f6d();let _0x34d8e3=_0x2f6dd2[_0x320b50];return _0x34d8e3;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x182d2d=a253_0x34d8,{serviceRegistry:_0x273c34,findDefinition:_0x48d50f}=await import(_0x182d2d(0x113));return a253_0x4472fa({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x273c34,'buildAllFlags':buildAllFlags,'findDefinition':_0x48d50f});}function a253_0x2f6d(){const _0x324a46=['2295zQTksL','8VAskPr','162921pLIFpr','51370ynCwnr','10430fSGvjh','21902210WXztAg','3302365DAQiex','422UxSNNx','426xItscW','../commands/registry.js','6519864XsYIgK','4215VqXaOQ'];a253_0x2f6d=function(){return _0x324a46;};return a253_0x2f6d();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a254_0x3585(){var _0x45e398=['6456009OACbYR','4415460RXZgWF','13307789RlGLcx','60jDjmwa','532aJtyow','722259MPetGo','530232YAAmKO','6FzjaEn','1vgSobl','12435TybDNr','2361586Lcibgt'];a254_0x3585=function(){return _0x45e398;};return a254_0x3585();}(function(_0x3c97dc,_0x3e753b){var _0x2cf58a=a254_0xd49c,_0xb8070f=_0x3c97dc();while(!![]){try{var _0x5694c1=parseInt(_0x2cf58a(0x12b))/0x1*(parseInt(_0x2cf58a(0x12d))/0x2)+-parseInt(_0x2cf58a(0x12f))/0x3+-parseInt(_0x2cf58a(0x127))/0x4*(-parseInt(_0x2cf58a(0x12c))/0x5)+parseInt(_0x2cf58a(0x12a))/0x6*(-parseInt(_0x2cf58a(0x12e))/0x7)+-parseInt(_0x2cf58a(0x129))/0x8+-parseInt(_0x2cf58a(0x128))/0x9*(-parseInt(_0x2cf58a(0x126))/0xa)+parseInt(_0x2cf58a(0x125))/0xb;if(_0x5694c1===_0x3e753b)break;else _0xb8070f['push'](_0xb8070f['shift']());}catch(_0x26e779){_0xb8070f['push'](_0xb8070f['shift']());}}}(a254_0x3585,0xb5453));function a254_0xd49c(_0xca8e8b,_0x1e72e7){_0xca8e8b=_0xca8e8b-0x125;var _0x35852e=a254_0x3585();var _0xd49c78=_0x35852e[_0xca8e8b];return _0xd49c78;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.0-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.0-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.5.0-beta.5";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.0-beta.5";
|
|
3
|
+
export declare const GIT_COMMIT = "ae8513b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-22T11:50:07.643Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x490011=a255_0xfc72;function a255_0xfc72(_0x4043d,_0x27cb47){_0x4043d=_0x4043d-0x1df;const _0x259c2b=a255_0x259c();let _0xfc7252=_0x259c2b[_0x4043d];return _0xfc7252;}(function(_0xba6696,_0x5ec5af){const _0x260962=a255_0xfc72,_0x434855=_0xba6696();while(!![]){try{const _0x154981=parseInt(_0x260962(0x1e4))/0x1*(parseInt(_0x260962(0x1e7))/0x2)+-parseInt(_0x260962(0x1eb))/0x3+parseInt(_0x260962(0x1ea))/0x4*(-parseInt(_0x260962(0x1e2))/0x5)+parseInt(_0x260962(0x1e5))/0x6+parseInt(_0x260962(0x1e3))/0x7+-parseInt(_0x260962(0x1e8))/0x8*(parseInt(_0x260962(0x1e1))/0x9)+parseInt(_0x260962(0x1e6))/0xa;if(_0x154981===_0x5ec5af)break;else _0x434855['push'](_0x434855['shift']());}catch(_0x4a0fe3){_0x434855['push'](_0x434855['shift']());}}}(a255_0x259c,0x6f098));export const VERSION=a255_0x490011(0x1e0);export const GIT_TAG=a255_0x490011(0x1ec);export const GIT_COMMIT=a255_0x490011(0x1e9);export const BUILD_TIME=a255_0x490011(0x1df);function a255_0x259c(){const _0x339072=['2352411KRiruK','822215AqRerr','1735258gjUuxC','107xQAnTr','5286822cQFtqj','1713480NOunHk','12406NMrKQJ','8HvSrOr','ae8513b','12FQWDQP','2263752bfxbHm','v2.5.0-beta.5','2026-08-22T11:50:07.643Z','2.5.0-beta.5'];a255_0x259c=function(){return _0x339072;};return a255_0x259c();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c1359,_0x314646){var _0x1d57a7=a256_0x2dae,_0x34bbc1=_0x4c1359();while(!![]){try{var _0x39b89a=parseInt(_0x1d57a7(0xb0))/0x1*(parseInt(_0x1d57a7(0xb3))/0x2)+parseInt(_0x1d57a7(0xaf))/0x3+-parseInt(_0x1d57a7(0xb6))/0x4+-parseInt(_0x1d57a7(0xb7))/0x5+-parseInt(_0x1d57a7(0xb9))/0x6*(-parseInt(_0x1d57a7(0xbc))/0x7)+parseInt(_0x1d57a7(0xbe))/0x8*(parseInt(_0x1d57a7(0xb2))/0x9)+-parseInt(_0x1d57a7(0xb5))/0xa;if(_0x39b89a===_0x314646)break;else _0x34bbc1['push'](_0x34bbc1['shift']());}catch(_0x55efa4){_0x34bbc1['push'](_0x34bbc1['shift']());}}}(a256_0x29f0,0xf07f7));import a256_0x559e38 from'chalk';function a256_0x2dae(_0x488161,_0xc34aea){_0x488161=_0x488161-0xaf;var _0x29f016=a256_0x29f0();var _0x2dae9e=_0x29f016[_0x488161];return _0x2dae9e;}function a256_0x29f0(){var _0x7b4416=['1665112eZZYmx','6185500TnumPf','bold','6DQUqrG','green','\x20to\x20view\x20available\x20commands.','10002643tbtpDo','log','16YuStdN','4335918UteYgr','1OsUDoc','\x20\x20Use\x20','3002679gQPDHo','3414498hjNeSW','\x20--help','26103090mPoZIX'];a256_0x29f0=function(){return _0x7b4416;};return a256_0x29f0();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x5166dd=a256_0x2dae;console[_0x5166dd(0xbd)](),console[_0x5166dd(0xbd)](a256_0x559e38[_0x5166dd(0xba)][_0x5166dd(0xb8)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5166dd(0xbd)](),console[_0x5166dd(0xbd)](_0x5166dd(0xb1)+a256_0x559e38[_0x5166dd(0xba)][_0x5166dd(0xb8)](CLI_BIN_NAME+_0x5166dd(0xb4))+_0x5166dd(0xbb)),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc46c0f,_0x1fcdf8){const _0x1e0413=a257_0x49bc,_0x130882=_0xc46c0f();while(!![]){try{const _0x94826d=parseInt(_0x1e0413(0x84))/0x1*(parseInt(_0x1e0413(0x6e))/0x2)+parseInt(_0x1e0413(0x6d))/0x3*(parseInt(_0x1e0413(0x7a))/0x4)+parseInt(_0x1e0413(0x7d))/0x5*(parseInt(_0x1e0413(0x70))/0x6)+parseInt(_0x1e0413(0x72))/0x7+-parseInt(_0x1e0413(0x6f))/0x8*(-parseInt(_0x1e0413(0x81))/0x9)+parseInt(_0x1e0413(0x7b))/0xa*(-parseInt(_0x1e0413(0x74))/0xb)+parseInt(_0x1e0413(0x82))/0xc*(-parseInt(_0x1e0413(0x75))/0xd);if(_0x94826d===_0x1fcdf8)break;else _0x130882['push'](_0x130882['shift']());}catch(_0x3831a0){_0x130882['push'](_0x130882['shift']());}}}(a257_0x3a4f,0x928f4));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a257_0x49bc(_0x247cdb,_0xdf7f57){_0x247cdb=_0x247cdb-0x6c;const _0x3a4ffc=a257_0x3a4f();let _0x49bc8a=_0x3a4ffc[_0x247cdb];return _0x49bc8a;}function a257_0x3a4f(){const _0x137274=['log','\x20via\x20skills@latest','skillVersion','105390CRvnvP','84NjfQNq','FAILED','849KzSrqk','Repair\x20with:\x20','installed','installedPath','\x20at\x20','7989axTOwo','1466zCbxKx','392haETqE','6100356RNIhhd','Installation\x20failed','190204ZcnOeS','Rabetbase\x20Built-in\x20Skill\x20','11IosUji','2103153AxXRFI','code','error','[BUILTIN_SKILL_INSTALL_','repairCommand','28rqTtIf','5258710rniLZq','warn','5MglEgW'];a257_0x3a4f=function(){return _0x137274;};return a257_0x3a4f();}export async function runPostinstall(_0x47d9fa={}){const _0xb43103=a257_0x49bc,_0xb2d967=installBuiltinSkill(_0x47d9fa);if(_0xb2d967['ok']){const _0x8b624b=_0xb2d967['changed']?_0xb43103(0x86):'already\x20current',_0x560762=_0xb2d967['installedPath']?_0xb43103(0x6c)+_0xb2d967[_0xb43103(0x87)]:_0xb43103(0x7f);return console[_0xb43103(0x7e)](_0xb43103(0x73)+_0xb2d967[_0xb43103(0x80)]+'\x20'+_0x8b624b+_0x560762),_0xb2d967;}const _0x26dff6=_0xb43103(0x78)+(_0xb2d967[_0xb43103(0x76)]??_0xb43103(0x83))+']\x20'+(_0xb2d967[_0xb43103(0x77)]??_0xb43103(0x71))+'.\x20'+(_0xb43103(0x85)+_0xb2d967[_0xb43103(0x79)]);if(_0xb2d967[_0xb43103(0x76)]==='SOURCE_INVALID')throw new Error(_0x26dff6);return console[_0xb43103(0x7c)](_0x26dff6),_0xb2d967;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a258_0x2ef0(){const _0x2b912f=['2598645uVBzly','confirmationDescription','replace','127572mJBghQ','risk','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','369957pLdYrS','697356NiElrX','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','183270wFmYpo','slice','This\x20will\x20run\x20the\x20write\x20','5WWTUPv','938208ZmYbCk','high-risk-write','8ySIefl','This\x20will\x20run\x20the\x20high-risk\x20write\x20','string','3883086fcjYlM','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','10GgnstU','trim'];a258_0x2ef0=function(){return _0x2b912f;};return a258_0x2ef0();}(function(_0x5582f,_0x4b8eb0){const _0x10f208=a258_0x1abe,_0x25faa0=_0x5582f();while(!![]){try{const _0x538137=-parseInt(_0x10f208(0xc9))/0x1+parseInt(_0x10f208(0xca))/0x2+-parseInt(_0x10f208(0xcc))/0x3+parseInt(_0x10f208(0xd0))/0x4*(parseInt(_0x10f208(0xcf))/0x5)+-parseInt(_0x10f208(0xc6))/0x6+parseInt(_0x10f208(0xd9))/0x7*(-parseInt(_0x10f208(0xd2))/0x8)+-parseInt(_0x10f208(0xd5))/0x9*(-parseInt(_0x10f208(0xd7))/0xa);if(_0x538137===_0x4b8eb0)break;else _0x25faa0['push'](_0x25faa0['shift']());}catch(_0x1f563c){_0x25faa0['push'](_0x25faa0['shift']());}}}(a258_0x2ef0,0x2eaa4));function a258_0x1abe(_0x2e875d,_0x53097c){_0x2e875d=_0x2e875d-0xc4;const _0x2ef0cc=a258_0x2ef0();let _0x1abeca=_0x2ef0cc[_0x2e875d];return _0x1abeca;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x5e7596,_0xb4e268,_0x271022){const _0x20200d=a258_0x1abe,_0x5ad21c=normalizeText(_0x5e7596[_0x20200d(0xc4)],DESCRIPTION_MAX_LENGTH),_0xdafe5=_0x5ad21c||normalizeText(defaultDescription(requireWriteRisk(_0x5e7596),_0xb4e268),DESCRIPTION_MAX_LENGTH);return{'operation':_0xb4e268,'risk':requireWriteRisk(_0x5e7596),'description':_0xdafe5,..._0x271022?{'signal':_0x271022}:{}};}function requireWriteRisk(_0x492b8a){const _0x44ef08=a258_0x1abe;if(_0x492b8a[_0x44ef08(0xc7)]==='write'||_0x492b8a['risk']===_0x44ef08(0xd1))return _0x492b8a[_0x44ef08(0xc7)];throw new Error(_0x44ef08(0xcb));}function defaultDescription(_0x4a6b3e,_0x43cd59){const _0xaa9e61=a258_0x1abe;if(_0x4a6b3e===_0xaa9e61(0xd1))return _0xaa9e61(0xd3)+_0x43cd59+_0xaa9e61(0xd6);return _0xaa9e61(0xce)+_0x43cd59+_0xaa9e61(0xc8);}function normalizeText(_0x219348,_0x47e0a9){const _0x14f969=a258_0x1abe;if(typeof _0x219348!==_0x14f969(0xd4))return'';return _0x219348['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x14f969(0xc5)](/\s+/g,'\x20')[_0x14f969(0xd8)]()[_0x14f969(0xcd)](0x0,_0x47e0a9);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a259_0x277f(){var _0x517fab=['621655JjAOVt','service','write','420806OPhfEz','3jctKQj','join','21kQhzlq','command','rabetbase.write.completed','risk','6CEFAhu','590192mLAIlm','450ptxfrK','312367NVYjAq','split','filter','446787nfyCnN','3676052jaMYmY','158499YuDeXu','high-risk-write','trim'];a259_0x277f=function(){return _0x517fab;};return a259_0x277f();}function a259_0x70e3(_0xcdc2a1,_0xab255){_0xcdc2a1=_0xcdc2a1-0x93;var _0x277f61=a259_0x277f();var _0x70e319=_0x277f61[_0xcdc2a1];return _0x70e319;}(function(_0x251ce5,_0xae6679){var _0x4bf35e=a259_0x70e3,_0x3567af=_0x251ce5();while(!![]){try{var _0x170921=parseInt(_0x4bf35e(0x93))/0x1+parseInt(_0x4bf35e(0x99))/0x2*(parseInt(_0x4bf35e(0x9a))/0x3)+-parseInt(_0x4bf35e(0xa7))/0x4+-parseInt(_0x4bf35e(0x96))/0x5*(-parseInt(_0x4bf35e(0xa0))/0x6)+parseInt(_0x4bf35e(0x9c))/0x7*(-parseInt(_0x4bf35e(0xa1))/0x8)+parseInt(_0x4bf35e(0xa6))/0x9+-parseInt(_0x4bf35e(0xa2))/0xa*(-parseInt(_0x4bf35e(0xa3))/0xb);if(_0x170921===_0xae6679)break;else _0x3567af['push'](_0x3567af['shift']());}catch(_0x534a5b){_0x3567af['push'](_0x3567af['shift']());}}}(a259_0x277f,0xa61d6));export function canonicalRabetbaseOperation(_0xbdb039){var _0x43bca0=a259_0x70e3;return[_0xbdb039[_0x43bca0(0x97)],..._0xbdb039[_0x43bca0(0x9d)][_0x43bca0(0x95)]()[_0x43bca0(0xa4)](/\s+/)][_0x43bca0(0xa5)](Boolean)[_0x43bca0(0x9b)]('.');}export function createRabetbaseWriteMetadata(_0x4d9b54,_0x4e3000,_0x129363,_0x155903){var _0x1ab2f9=a259_0x70e3;if(_0x155903||_0x129363['ok']!==!![]||_0x4d9b54['risk']!==_0x1ab2f9(0x98)&&_0x4d9b54[_0x1ab2f9(0x9f)]!==_0x1ab2f9(0x94))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x1ab2f9(0x9e),'operation':_0x4e3000,'risk':_0x4d9b54[_0x1ab2f9(0x9f)]}}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b92e4,_0x5c70a5){const _0x57a839=a260_0x3308,_0x47c2da=_0x2b92e4();while(!![]){try{const _0x3e6965=-parseInt(_0x57a839(0x13f))/0x1+parseInt(_0x57a839(0x145))/0x2+-parseInt(_0x57a839(0x127))/0x3+parseInt(_0x57a839(0x13a))/0x4+parseInt(_0x57a839(0x12d))/0x5+parseInt(_0x57a839(0x13b))/0x6*(-parseInt(_0x57a839(0x12a))/0x7)+-parseInt(_0x57a839(0x126))/0x8;if(_0x3e6965===_0x5c70a5)break;else _0x47c2da['push'](_0x47c2da['shift']());}catch(_0x562b6b){_0x47c2da['push'](_0x47c2da['shift']());}}}(a260_0x555d,0x4955c));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a260_0x3308(_0x2bdd40,_0x3059a8){_0x2bdd40=_0x2bdd40-0x126;const _0x555d49=a260_0x555d();let _0x3308e1=_0x555d49[_0x2bdd40];return _0x3308e1;}function a260_0x555d(){const _0x383d8e=['present','dry-run','yes','225511sPqESR','result','presentation','format','rawFlags','args','230434FnEkYe','data','risk','475016YaWdsX','224595trMXkO','definition','write','7wPsSyl','riskLevel','aborted','1440535hlilgR','Rabetbase\x20invocation\x20aborted.','execute','dryRun','stringify','command','AbortError','message','confirm','confirmation','reason','high-risk-write','signal','1143576Lhvsfy','174510nGAbfr'];a260_0x555d=function(){return _0x383d8e;};return a260_0x555d();}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x129079,command:_0x58d6db,risk:_0x2052b7,dryRun:_0x5931c6}){const _0x48f0a8=a260_0x3308;return JSON[_0x48f0a8(0x131)]({'ok':_0x129079['ok'],'command':_0x58d6db,'risk':_0x2052b7,..._0x5931c6?{'dryRun':!![]}:{},..._0x129079[_0x48f0a8(0x146)]!==undefined?{'data':_0x129079[_0x48f0a8(0x146)]}:{},..._0x129079[_0x48f0a8(0x134)]?{'message':_0x129079[_0x48f0a8(0x134)]}:{}});}};export async function invokeRabetbase(_0x381c3e,_0x427af4){const _0x390706=a260_0x3308;throwIfAborted(_0x427af4['signal']);const _0x5187aa=await resolveRabetbaseInvocation(_0x381c3e),_0x2141c9=canonicalRabetbaseOperation(_0x5187aa[_0x390706(0x128)]);return await confirmWriteBeforeQueue(_0x5187aa[_0x390706(0x128)],_0x5187aa[_0x390706(0x143)],_0x2141c9,_0x427af4),runSerialized(async()=>{const _0x32da79=_0x390706,_0x2d86a8={};try{throwIfAborted(_0x427af4[_0x32da79(0x139)]);const _0x3387ce=buildConfigFromFlags(_0x5187aa[_0x32da79(0x143)]);await initGlobalEnvironment(_0x3387ce);const _0x382255=createPipelineEnv(_0x3387ce,{..._0x5187aa[_0x32da79(0x143)],'yes':_0x5187aa[_0x32da79(0x128)]['risk']===_0x32da79(0x138)?!![]:_0x5187aa['rawFlags'][_0x32da79(0x13e)],'nonInteractive':!![]},_0x5187aa[_0x32da79(0x144)]);_0x382255['isNonInteractive']=!![],_0x382255[_0x32da79(0x12b)]='high-risk-write';const _0x59d25d=withAbortSignal(_0x5187aa['definition'],_0x427af4['signal']),_0x4ee610=createRabetbaseRunnerAdapter({'formatOutput'(_0x4ac966,_0x2cde86){const _0x5b782e=_0x32da79;_0x2d86a8[_0x5b782e(0x140)]=_0x4ac966,_0x2d86a8[_0x5b782e(0x132)]=_0x2cde86[_0x5b782e(0x132)],_0x2d86a8['risk']=_0x2cde86['risk'],_0x2d86a8[_0x5b782e(0x142)]=_0x2cde86[_0x5b782e(0x142)],_0x2d86a8['dryRun']=_0x2cde86['dryRun']===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x59d25d,_0x382255,_0x4ee610);if(!_0x2d86a8['result']||!_0x2d86a8['command']||!_0x2d86a8[_0x32da79(0x147)]||!_0x2d86a8[_0x32da79(0x142)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x2c468d=_0x2d86a8['dryRun']===!![],_0x5ac1dc=_0x427af4[_0x32da79(0x141)]??defaultPresentation,_0xc15617={'result':_0x2d86a8[_0x32da79(0x140)],'command':_0x2d86a8['command'],'operation':_0x2141c9,'risk':_0x2d86a8[_0x32da79(0x147)],'format':_0x2d86a8[_0x32da79(0x142)],'dryRun':_0x2c468d},_0x230c58=createRabetbaseWriteMetadata(_0x5187aa[_0x32da79(0x128)],_0x2141c9,_0x2d86a8[_0x32da79(0x140)],_0x2c468d);let _0x768894;try{_0x768894=await _0x5ac1dc['present'](_0xc15617);}catch(_0x35c193){if(!_0x230c58||_0x5ac1dc===defaultPresentation)throw _0x35c193;_0x768894=await defaultPresentation[_0x32da79(0x13c)](_0xc15617);}return{'operation':_0x2141c9,'risk':_0x2d86a8[_0x32da79(0x147)],'mode':_0x2c468d?_0x32da79(0x13d):_0x32da79(0x12f),'result':_0x2d86a8['result'],'output':_0x768894,..._0x230c58?{'metadata':_0x230c58}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3a8d63,_0x33e23a,_0x47e3b8,_0x333ab8){const _0x1e6366=a260_0x3308;if(_0x33e23a[_0x1e6366(0x130)]===!![]||_0x3a8d63['risk']!==_0x1e6366(0x129)&&_0x3a8d63[_0x1e6366(0x147)]!==_0x1e6366(0x138))return;await _0x333ab8[_0x1e6366(0x136)][_0x1e6366(0x135)](buildRabetbaseConfirmationRequest(_0x3a8d63,_0x47e3b8,_0x333ab8['signal']));}function withAbortSignal(_0x11c33e,_0x3b8db0){return{..._0x11c33e,async 'execute'(_0x194788){return throwIfAborted(_0x3b8db0),_0x11c33e['execute'](_0x194788);}};}function throwIfAborted(_0x1d7541){const _0x554b8c=a260_0x3308;if(_0x1d7541?.[_0x554b8c(0x12c)])throw _0x1d7541['reason']instanceof Error?_0x1d7541[_0x554b8c(0x137)]:new DOMException(_0x554b8c(0x12e),_0x554b8c(0x133));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f90b1,_0x291f88){const _0x26b193=a261_0x4d25,_0x4d16b3=_0x4f90b1();while(!![]){try{const _0x23a2ad=-parseInt(_0x26b193(0x1d0))/0x1+parseInt(_0x26b193(0x1d3))/0x2+parseInt(_0x26b193(0x1d1))/0x3+parseInt(_0x26b193(0x1ce))/0x4+-parseInt(_0x26b193(0x1d2))/0x5+parseInt(_0x26b193(0x1cf))/0x6+parseInt(_0x26b193(0x1d4))/0x7;if(_0x23a2ad===_0x291f88)break;else _0x4d16b3['push'](_0x4d16b3['shift']());}catch(_0x119ce4){_0x4d16b3['push'](_0x4d16b3['shift']());}}}(a261_0x1b4a,0xd2d52));function a261_0x4d25(_0x5b5519,_0x4cf94e){_0x5b5519=_0x5b5519-0x1ce;const _0x1b4aeb=a261_0x1b4a();let _0x4d259b=_0x1b4aeb[_0x5b5519];return _0x4d259b;}let tail=Promise['resolve']();export async function runSerialized(_0x2409b4){const _0x36bd9f=tail;let _0x5ab7a8;tail=new Promise(_0x59a492=>{_0x5ab7a8=_0x59a492;}),await _0x36bd9f['catch'](()=>undefined);try{return await _0x2409b4();}finally{_0x5ab7a8();}}function a261_0x1b4a(){const _0x277247=['510080jJpxUZ','4320932QeNfIc','4415156rAceQY','2649744sZkSKP','1474170kSaRkn','4761720OjejWS','8336145SHVoFR'];a261_0x1b4a=function(){return _0x277247;};return a261_0x1b4a();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a262_0x5d56(_0x843a64,_0x4dad08){_0x843a64=_0x843a64-0x1e6;const _0x154be8=a262_0x154b();let _0x5d5636=_0x154be8[_0x843a64];return _0x5d5636;}(function(_0x3525cd,_0xbb0e22){const _0x3255ba=a262_0x5d56,_0x317907=_0x3525cd();while(!![]){try{const _0x18f81a=-parseInt(_0x3255ba(0x1e8))/0x1+-parseInt(_0x3255ba(0x1e7))/0x2+-parseInt(_0x3255ba(0x1ef))/0x3+-parseInt(_0x3255ba(0x1f4))/0x4+parseInt(_0x3255ba(0x1eb))/0x5*(-parseInt(_0x3255ba(0x1ea))/0x6)+parseInt(_0x3255ba(0x1fa))/0x7*(parseInt(_0x3255ba(0x1ec))/0x8)+parseInt(_0x3255ba(0x1f3))/0x9*(parseInt(_0x3255ba(0x1f8))/0xa);if(_0x18f81a===_0xbb0e22)break;else _0x317907['push'](_0x317907['shift']());}catch(_0x5c0593){_0x317907['push'](_0x317907['shift']());}}}(a262_0x154b,0x5d350));import a262_0x368adb from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a262_0x154b(){const _0xf57933=['join','2281458CMAOqw','message','flags','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','3786039cdQJRP','438352mIqwfw','wildcardDef','hint','defaultCommand','50hVXSyG','slice','182ItWGHy','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','1305830NFzELy','92311EkYTYN','unknownCommand','10614WeSjPQ','1775wNqVLm','160528jrHpal','validation'];a262_0x154b=function(){return _0xf57933;};return a262_0x154b();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x4b26b3){const _0x39dc25=a262_0x5d56,_0x4c2b5a=a262_0x368adb('',{'importMeta':import.meta,'argv':[..._0x4b26b3],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x424bd5=[..._0x4c2b5a['input']],_0x315116=_0x4c2b5a[_0x39dc25(0x1f1)],_0x566644=_0x424bd5[0x0];if(!_0x566644)throw CliErrors[_0x39dc25(0x1ed)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x2e1753=resolveRemovedCommand(_0x566644,_0x424bd5[0x1]);if(_0x2e1753)throw CliErrors[_0x39dc25(0x1ed)](_0x2e1753[_0x39dc25(0x1f0)],_0x2e1753[_0x39dc25(0x1f6)]);if(_0x566644==='run')throw CliErrors['validation'](_0x39dc25(0x1f2),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x566644))throw CliErrors[_0x39dc25(0x1e9)](_0x424bd5[_0x39dc25(0x1ee)]('\x20'));const _0x2bc594=getServiceEntry(_0x566644),_0x18d23c=_0x424bd5[0x1],_0x3edc91=_0x18d23c||_0x2bc594[_0x39dc25(0x1f7)];if(!_0x3edc91){if(_0x2bc594['wildcardDef'])return{'definition':_0x2bc594[_0x39dc25(0x1f5)],'rawFlags':_0x315116,'args':[]};throw CliErrors[_0x39dc25(0x1ed)](_0x39dc25(0x1e6)+_0x566644+'\x22.');}const _0x2f71d5=findDefinition(_0x566644,_0x3edc91);if(_0x2f71d5)return{'definition':_0x2f71d5,'rawFlags':_0x315116,'args':_0x424bd5[_0x39dc25(0x1f9)](0x2)};if(_0x2bc594['wildcardDef'])return{'definition':_0x2bc594[_0x39dc25(0x1f5)],'rawFlags':_0x315116,'args':[_0x3edc91,..._0x424bd5[_0x39dc25(0x1f9)](0x2)]};throw CliErrors[_0x39dc25(0x1e9)](_0x566644+'\x20'+_0x3edc91);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a264_0x51e9f1=a264_0x3905;(function(_0x20ed81,_0x5658e5){const _0x4841ed=a264_0x3905,_0xed4c34=_0x20ed81();while(!![]){try{const _0x566ad4=parseInt(_0x4841ed(0xd5))/0x1+-parseInt(_0x4841ed(0xea))/0x2+parseInt(_0x4841ed(0xe7))/0x3+-parseInt(_0x4841ed(0xf4))/0x4*(parseInt(_0x4841ed(0x104))/0x5)+-parseInt(_0x4841ed(0xe0))/0x6*(parseInt(_0x4841ed(0xd8))/0x7)+-parseInt(_0x4841ed(0xd3))/0x8+parseInt(_0x4841ed(0xec))/0x9*(parseInt(_0x4841ed(0xcb))/0xa);if(_0x566ad4===_0x5658e5)break;else _0xed4c34['push'](_0xed4c34['shift']());}catch(_0x4d6a15){_0xed4c34['push'](_0xed4c34['shift']());}}}(a264_0x59bd,0xd54d0));function a264_0x59bd(){const _0x30ac5c=['isSymbolicLink','files','skipped','12703432SESLAB','path','751761unBiGq','package.json','split','168Gvzeja','isDirectory','rabetbase\x20cli-skill\x20install','unverifiable','Symbolic\x20link\x20is\x20not\x20allowed:\x20','Unsafe\x20manifest\x20path:\x20','includes','absent','222978lmEwre','content_mismatch','SKILL.md','reason','unknown','Unsupported\x20Skill\x20entry:\x20','rabetbase.manifest.json','1341501fFzAQg','state','message','454068GWlcxL','current','1701xNMuex','missing','stdio','packageRoot','root','packageVersion','utf8','rabetbase','5174668QxYsEj','join','flatMap','hex','startsWith','parse','name','version',':\x5cs*(.+)$','digest','INSTALL_FAILED','skillVersion','every','installedPath','schemaVersion','skills@latest\x20exited\x20','5YjvDRz','trim','home','isFile','present','update','length','194460dOWNny','status','skills','manifest','version_mismatch'];a264_0x59bd=function(){return _0x30ac5c;};return a264_0x59bd();}import{createHash}from'node:crypto';function a264_0x3905(_0x498cba,_0x1aa893){_0x498cba=_0x498cba-0xc7;const _0x59bd34=a264_0x59bd();let _0x3905cd=_0x59bd34[_0x498cba];return _0x3905cd;}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=a264_0x51e9f1(0xda),SKILL_NAME=a264_0x51e9f1(0xf3);function frontmatterValue(_0x1a3f3f,_0x13b7e2){const _0x2ffc80=a264_0x51e9f1;return _0x1a3f3f['match'](new RegExp('^'+_0x13b7e2+_0x2ffc80(0xfc),'m'))?.[0x1]?.[_0x2ffc80(0x105)]()??'';}function listFiles(_0xa20d5d,_0x1da2ed=_0xa20d5d){const _0x16cef9=a264_0x51e9f1;return readdirSync(_0x1da2ed,{'withFileTypes':!![]})[_0x16cef9(0xf6)](_0x2504b7=>{const _0x538429=_0x16cef9,_0x37e971=join(_0x1da2ed,_0x2504b7[_0x538429(0xfa)]),_0x5060c6=lstatSync(_0x37e971);if(_0x5060c6[_0x538429(0xd0)]())throw new Error(_0x538429(0xdc)+_0x37e971);if(_0x5060c6[_0x538429(0xd9)]())return listFiles(_0xa20d5d,_0x37e971);if(!_0x5060c6[_0x538429(0xc7)]())throw new Error(_0x538429(0xe5)+_0x37e971);return[relative(_0xa20d5d,_0x37e971)[_0x538429(0xd7)](sep)[_0x538429(0xf5)]('/')];})['sort']((_0x3ffafb,_0xbac3b4)=>_0x3ffafb<_0xbac3b4?-0x1:_0x3ffafb>_0xbac3b4?0x1:0x0);}function digestFiles(_0x56e3fa,_0x3a7990){const _0x3cde5c=a264_0x51e9f1,_0x3752ca=createHash('sha256');for(const _0x2d9042 of _0x3a7990){if(_0x2d9042[_0x3cde5c(0xf8)]('/')||_0x2d9042[_0x3cde5c(0xd7)]('/')[_0x3cde5c(0xde)]('..')||_0x2d9042['includes']('\x5c'))throw new Error(_0x3cde5c(0xdd)+_0x2d9042);_0x3752ca[_0x3cde5c(0xc9)](_0x2d9042),_0x3752ca['update']('\x00'),_0x3752ca[_0x3cde5c(0xc9)](readFileSync(join(_0x56e3fa,..._0x2d9042['split']('/')))),_0x3752ca[_0x3cde5c(0xc9)]('\x00');}return _0x3752ca[_0x3cde5c(0xfd)](_0x3cde5c(0xf7));}function sameFiles(_0x4b8ecf,_0xc1ef6){const _0x673ea9=a264_0x51e9f1;return _0x4b8ecf[_0x673ea9(0xca)]===_0xc1ef6['length']&&_0x4b8ecf[_0x673ea9(0x100)]((_0x7dc8da,_0x3ed47b)=>_0x7dc8da===_0xc1ef6[_0x3ed47b]);}function readSource(_0x3ddc4f){const _0x4ae30b=a264_0x51e9f1,_0x27f233=JSON[_0x4ae30b(0xf9)](readFileSync(join(_0x3ddc4f,_0x4ae30b(0xd6)),_0x4ae30b(0xf2))),_0x14c22d=JSON[_0x4ae30b(0xf9)](readFileSync(join(_0x3ddc4f,_0x4ae30b(0xcd),_0x4ae30b(0xe6)),_0x4ae30b(0xf2))),_0x152891=join(_0x3ddc4f,_0x4ae30b(0xcd),SKILL_NAME),_0x2cbb57=frontmatterValue(readFileSync(join(_0x152891,_0x4ae30b(0xe2)),_0x4ae30b(0xf2)),_0x4ae30b(0xfb)),_0x52df67=listFiles(_0x152891);if(_0x14c22d[_0x4ae30b(0x102)]!==0x1||_0x14c22d[_0x4ae30b(0xfa)]!==SKILL_NAME||!_0x27f233[_0x4ae30b(0xfb)]||_0x14c22d[_0x4ae30b(0xf1)]!==_0x27f233['version']||_0x14c22d[_0x4ae30b(0xff)]!==_0x27f233[_0x4ae30b(0xfb)]||_0x2cbb57!==_0x27f233[_0x4ae30b(0xfb)]||!sameFiles(_0x52df67,_0x14c22d[_0x4ae30b(0xd1)])||digestFiles(_0x152891,_0x52df67)!==_0x14c22d[_0x4ae30b(0xfd)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x27f233['version'],'skillVersion':_0x2cbb57,'root':_0x152891,'manifest':_0x14c22d};}function installedSkillPath(_0x363baa){const _0x1bd4cd=a264_0x51e9f1,_0x313b52=resolveInstalledSkill(SKILL_NAME,{'home':_0x363baa});if(_0x313b52[_0x1bd4cd(0xe8)]==='present')return{'state':_0x1bd4cd(0xc8),'path':dirname(_0x313b52[_0x1bd4cd(0xd4)])};if(_0x313b52[_0x1bd4cd(0xe8)]===_0x1bd4cd(0xdf))return{'state':_0x1bd4cd(0xed)};return{'state':_0x1bd4cd(0xdb),'reason':_0x313b52['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x27a02f,_0xe9b17d={}){const _0x903fdd=a264_0x51e9f1,_0x28730c=installedSkillPath(_0xe9b17d[_0x903fdd(0x106)]??homedir());if(_0x28730c[_0x903fdd(0xe8)]===_0x903fdd(0xed))return{'state':'missing','expectedVersion':_0x27a02f,'repairCommand':REPAIR_COMMAND};if(_0x28730c[_0x903fdd(0xe8)]===_0x903fdd(0xdb))return{'state':_0x903fdd(0xdb),'expectedVersion':_0x27a02f,'reason':_0x28730c[_0x903fdd(0xe3)],'repairCommand':REPAIR_COMMAND};try{const _0x2c1942=frontmatterValue(readFileSync(join(_0x28730c[_0x903fdd(0xd4)],_0x903fdd(0xe2)),_0x903fdd(0xf2)),'version');return{'state':_0x2c1942===_0x27a02f?_0x903fdd(0xeb):'version_mismatch','expectedVersion':_0x27a02f,'skillVersion':_0x2c1942,'installedPath':_0x28730c[_0x903fdd(0xd4)],'repairCommand':REPAIR_COMMAND};}catch(_0x33bfe6){return{'state':'unverifiable','expectedVersion':_0x27a02f,'installedPath':_0x28730c[_0x903fdd(0xd4)],'reason':_0x33bfe6 instanceof Error?_0x33bfe6[_0x903fdd(0xe9)]:String(_0x33bfe6),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5ade66={}){const _0x2004b2=a264_0x51e9f1,_0x4543f9=_0x5ade66[_0x2004b2(0xef)]??DEFAULT_PACKAGE_ROOT;let _0x4d3238;try{_0x4d3238=readSource(_0x4543f9);}catch(_0x2f8101){return{'state':'unverifiable','packageVersion':'unknown','reason':_0x2f8101 instanceof Error?_0x2f8101[_0x2004b2(0xe9)]:String(_0x2f8101),'repairCommand':REPAIR_COMMAND};}const _0x2cf7e1=installedSkillPath(_0x5ade66[_0x2004b2(0x106)]??homedir());if(_0x2cf7e1['state']===_0x2004b2(0xed))return{'state':'missing','packageVersion':_0x4d3238[_0x2004b2(0xf1)],'repairCommand':REPAIR_COMMAND};if(_0x2cf7e1[_0x2004b2(0xe8)]==='unverifiable')return{'state':_0x2004b2(0xdb),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'reason':_0x2cf7e1[_0x2004b2(0xe3)],'repairCommand':REPAIR_COMMAND};try{const _0x27b8e1=frontmatterValue(readFileSync(join(_0x2cf7e1[_0x2004b2(0xd4)],_0x2004b2(0xe2)),_0x2004b2(0xf2)),'version');if(_0x27b8e1!==_0x4d3238['skillVersion'])return{'state':_0x2004b2(0xcf),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'skillVersion':_0x27b8e1,'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'repairCommand':REPAIR_COMMAND};const _0xb8d888=listFiles(_0x2cf7e1[_0x2004b2(0xd4)]),_0x4bcaa0=digestFiles(_0x2cf7e1[_0x2004b2(0xd4)],_0xb8d888);return{'state':sameFiles(_0xb8d888,_0x4d3238['manifest'][_0x2004b2(0xd1)])&&_0x4bcaa0===_0x4d3238[_0x2004b2(0xce)]['digest']?_0x2004b2(0xeb):_0x2004b2(0xe1),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'skillVersion':_0x27b8e1,'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'digest':_0x4bcaa0,'repairCommand':REPAIR_COMMAND};}catch(_0x9466d6){return{'state':_0x2004b2(0xdb),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'reason':_0x9466d6 instanceof Error?_0x9466d6['message']:String(_0x9466d6),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5c189e,_0x4233dd,_0x1a7fc3,_0x8ce004){const _0x11052e=a264_0x51e9f1;return{'ok':![],'code':_0x5c189e,'packageVersion':_0x4233dd['packageVersion'],'skillVersion':_0x4233dd[_0x11052e(0xff)],'installedPath':_0x8ce004,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1a7fc3 instanceof Error?_0x1a7fc3[_0x11052e(0xe9)]:String(_0x1a7fc3)};}export function installBuiltinSkill(_0x57af7f={}){const _0x1b2b66=a264_0x51e9f1,_0x5d84dc=_0x57af7f['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x517858=_0x57af7f[_0x1b2b66(0x106)]??homedir();let _0xc50de2;try{_0xc50de2=readSource(_0x5d84dc);}catch(_0x4934f4){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x1b2b66(0xe4)},_0x4934f4);}const _0x220a4a=inspectBuiltinSkill({'packageRoot':_0x5d84dc,'home':_0x517858}),_0x5661cf=runNpxSkillsAddGlobal(_0x5d84dc,_0xc50de2[_0x1b2b66(0xf0)],{'stdio':_0x57af7f[_0x1b2b66(0xee)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x517858}});if(_0x5661cf[_0x1b2b66(0xd2)])return{'ok':!![],'packageVersion':_0xc50de2[_0x1b2b66(0xf1)],'skillVersion':_0xc50de2[_0x1b2b66(0xff)],'installedPath':_0x220a4a[_0x1b2b66(0x101)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5661cf['ok'])return failure(_0x1b2b66(0xfe),_0xc50de2,_0x5661cf['error']??_0x1b2b66(0x103)+_0x5661cf[_0x1b2b66(0xcc)]);const _0x234a41=inspectBuiltinSkill({'packageRoot':_0x5d84dc,'home':_0x517858});if(_0x234a41[_0x1b2b66(0xe8)]!=='current')return failure('VERIFY_FAILED',_0xc50de2,_0x234a41[_0x1b2b66(0xe3)]??'Installed\x20Skill\x20state\x20is\x20'+_0x234a41[_0x1b2b66(0xe8)],_0x234a41[_0x1b2b66(0x101)]);return{'ok':!![],'packageVersion':_0xc50de2['packageVersion'],'skillVersion':_0xc50de2[_0x1b2b66(0xff)],'installedPath':_0x234a41[_0x1b2b66(0x101)],'changed':_0x220a4a[_0x1b2b66(0xe8)]!==_0x1b2b66(0xeb),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a264_0x594012=a264_0x270d;(function(_0x4b575b,_0x31cb54){const _0x15d4c3=a264_0x270d,_0x275b15=_0x4b575b();while(!![]){try{const _0x185875=-parseInt(_0x15d4c3(0x1d3))/0x1+-parseInt(_0x15d4c3(0x1d8))/0x2*(parseInt(_0x15d4c3(0x1fe))/0x3)+parseInt(_0x15d4c3(0x1c8))/0x4*(parseInt(_0x15d4c3(0x1fa))/0x5)+parseInt(_0x15d4c3(0x1c9))/0x6+parseInt(_0x15d4c3(0x1de))/0x7+parseInt(_0x15d4c3(0x1e9))/0x8+parseInt(_0x15d4c3(0x1e5))/0x9*(parseInt(_0x15d4c3(0x1f4))/0xa);if(_0x185875===_0x31cb54)break;else _0x275b15['push'](_0x275b15['shift']());}catch(_0xb1f474){_0x275b15['push'](_0x275b15['shift']());}}}(a264_0xf20c,0x9c782));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 a264_0x270d(_0x5912b3,_0x407d8d){_0x5912b3=_0x5912b3-0x1c7;const _0xf20c7b=a264_0xf20c();let _0x270db2=_0xf20c7b[_0x5912b3];return _0x270db2;}import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a264_0x594012(0x1e1);function frontmatterValue(_0x42c243,_0x3daba4){const _0x10a227=a264_0x594012;return _0x42c243[_0x10a227(0x1e6)](new RegExp('^'+_0x3daba4+_0x10a227(0x1f3),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x39d3b6,_0x5f38f6=_0x39d3b6){const _0x1a4d9b=a264_0x594012;return readdirSync(_0x5f38f6,{'withFileTypes':!![]})[_0x1a4d9b(0x200)](_0x1d8955=>{const _0x44aaf1=_0x1a4d9b,_0x301567=join(_0x5f38f6,_0x1d8955[_0x44aaf1(0x1f0)]),_0x1f4780=lstatSync(_0x301567);if(_0x1f4780[_0x44aaf1(0x207)]())throw new Error(_0x44aaf1(0x1cc)+_0x301567);if(_0x1f4780[_0x44aaf1(0x1d4)]())return listFiles(_0x39d3b6,_0x301567);if(!_0x1f4780[_0x44aaf1(0x1f2)]())throw new Error(_0x44aaf1(0x1e8)+_0x301567);return[relative(_0x39d3b6,_0x301567)['split'](sep)['join']('/')];})[_0x1a4d9b(0x1c7)]((_0xbc2163,_0x112459)=>_0xbc2163<_0x112459?-0x1:_0xbc2163>_0x112459?0x1:0x0);}function digestFiles(_0x51aef0,_0x3fd5d6){const _0x47ac66=a264_0x594012,_0x217e24=createHash(_0x47ac66(0x1f5));for(const _0x1e3da6 of _0x3fd5d6){if(_0x1e3da6[_0x47ac66(0x1fc)]('/')||_0x1e3da6['split']('/')['includes']('..')||_0x1e3da6[_0x47ac66(0x1f1)]('\x5c'))throw new Error(_0x47ac66(0x203)+_0x1e3da6);_0x217e24[_0x47ac66(0x201)](_0x1e3da6),_0x217e24[_0x47ac66(0x201)]('\x00'),_0x217e24[_0x47ac66(0x201)](readFileSync(join(_0x51aef0,..._0x1e3da6[_0x47ac66(0x1ec)]('/')))),_0x217e24['update']('\x00');}return _0x217e24['digest'](_0x47ac66(0x1d1));}function sameFiles(_0x35f109,_0x5915d7){const _0x180d67=a264_0x594012;return _0x35f109[_0x180d67(0x1f7)]===_0x5915d7[_0x180d67(0x1f7)]&&_0x35f109[_0x180d67(0x1ee)]((_0x4d84e5,_0x545618)=>_0x4d84e5===_0x5915d7[_0x545618]);}function readSource(_0x47a0e5){const _0x4c6c15=a264_0x594012,_0x533abc=JSON[_0x4c6c15(0x1fd)](readFileSync(join(_0x47a0e5,_0x4c6c15(0x1d7)),_0x4c6c15(0x1cf))),_0x51d298=JSON[_0x4c6c15(0x1fd)](readFileSync(join(_0x47a0e5,'skills',_0x4c6c15(0x1db)),_0x4c6c15(0x1cf))),_0x35c01d=join(_0x47a0e5,'skills',SKILL_NAME),_0x46cdf9=frontmatterValue(readFileSync(join(_0x35c01d,_0x4c6c15(0x1cb)),_0x4c6c15(0x1cf)),_0x4c6c15(0x1ef)),_0x3443c0=listFiles(_0x35c01d);if(_0x51d298[_0x4c6c15(0x1dd)]!==0x1||_0x51d298[_0x4c6c15(0x1f0)]!==SKILL_NAME||!_0x533abc[_0x4c6c15(0x1ef)]||_0x51d298[_0x4c6c15(0x1eb)]!==_0x533abc['version']||_0x51d298[_0x4c6c15(0x1e3)]!==_0x533abc[_0x4c6c15(0x1ef)]||_0x46cdf9!==_0x533abc[_0x4c6c15(0x1ef)]||!sameFiles(_0x3443c0,_0x51d298['files'])||digestFiles(_0x35c01d,_0x3443c0)!==_0x51d298[_0x4c6c15(0x1e7)])throw new Error(_0x4c6c15(0x1d6));return{'packageVersion':_0x533abc[_0x4c6c15(0x1ef)],'skillVersion':_0x46cdf9,'root':_0x35c01d,'manifest':_0x51d298};}function installedSkillPath(_0x3ce6a0){const _0x1b8e84=a264_0x594012,_0x5dde95=resolveInstalledSkill(SKILL_NAME,{'home':_0x3ce6a0});if(_0x5dde95[_0x1b8e84(0x1d9)]===_0x1b8e84(0x1f8))return{'state':_0x1b8e84(0x1f8),'path':dirname(_0x5dde95[_0x1b8e84(0x202)])};if(_0x5dde95['state']===_0x1b8e84(0x1df))return{'state':'missing'};return{'state':_0x1b8e84(0x1d0),'reason':_0x5dde95[_0x1b8e84(0x1f6)]};}export function inspectInstalledBuiltinSkillVersion(_0x3e5ce7,_0x3eb850={}){const _0x2f9167=a264_0x594012,_0x195891=installedSkillPath(_0x3eb850['home']??homedir());if(_0x195891[_0x2f9167(0x1d9)]==='missing')return{'state':_0x2f9167(0x1dc),'expectedVersion':_0x3e5ce7,'repairCommand':REPAIR_COMMAND};if(_0x195891[_0x2f9167(0x1d9)]==='unverifiable')return{'state':_0x2f9167(0x1d0),'expectedVersion':_0x3e5ce7,'reason':_0x195891[_0x2f9167(0x1f6)],'repairCommand':REPAIR_COMMAND};try{const _0x5d84ee=frontmatterValue(readFileSync(join(_0x195891[_0x2f9167(0x202)],_0x2f9167(0x1cb)),_0x2f9167(0x1cf)),'version');return{'state':_0x5d84ee===_0x3e5ce7?_0x2f9167(0x1d2):'version_mismatch','expectedVersion':_0x3e5ce7,'skillVersion':_0x5d84ee,'installedPath':_0x195891[_0x2f9167(0x202)],'repairCommand':REPAIR_COMMAND};}catch(_0x2d1e34){return{'state':_0x2f9167(0x1d0),'expectedVersion':_0x3e5ce7,'installedPath':_0x195891[_0x2f9167(0x202)],'reason':_0x2d1e34 instanceof Error?_0x2d1e34[_0x2f9167(0x1ed)]:String(_0x2d1e34),'repairCommand':REPAIR_COMMAND};}}function a264_0xf20c(){const _0x207a5b=['rabetbase.manifest.json','missing','schemaVersion','3378760nLLMVf','absent','home','rabetbase','INSTALL_FAILED','skillVersion','Installed\x20Skill\x20state\x20is\x20','6471jjGhxK','match','digest','Unsupported\x20Skill\x20entry:\x20','2358568LvOfpA','stdio','packageVersion','split','message','every','version','name','includes','isFile',':\x5cs*(.+)$','14450XoDiZe','sha256','reason','length','present','packageRoot','139585ueTzVp','unknown','startsWith','parse','2668863gXHTVQ','status','flatMap','update','path','Unsafe\x20manifest\x20path:\x20','VERIFY_FAILED','skills@latest\x20exited\x20','error','isSymbolicLink','sort','92AqNYuc','2093568vORVJx','files','SKILL.md','Symbolic\x20link\x20is\x20not\x20allowed:\x20','pipe','manifest','utf8','unverifiable','hex','current','1276956MDhWId','isDirectory','skipped','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','package.json','2ehyluv','state','content_mismatch'];a264_0xf20c=function(){return _0x207a5b;};return a264_0xf20c();}export function inspectBuiltinSkill(_0x29443d={}){const _0xc7df6a=a264_0x594012,_0x142451=_0x29443d[_0xc7df6a(0x1f9)]??DEFAULT_PACKAGE_ROOT;let _0x211062;try{_0x211062=readSource(_0x142451);}catch(_0x404901){return{'state':_0xc7df6a(0x1d0),'packageVersion':_0xc7df6a(0x1fb),'reason':_0x404901 instanceof Error?_0x404901['message']:String(_0x404901),'repairCommand':REPAIR_COMMAND};}const _0x4e4b47=installedSkillPath(_0x29443d['home']??homedir());if(_0x4e4b47[_0xc7df6a(0x1d9)]===_0xc7df6a(0x1dc))return{'state':'missing','packageVersion':_0x211062[_0xc7df6a(0x1eb)],'repairCommand':REPAIR_COMMAND};if(_0x4e4b47['state']===_0xc7df6a(0x1d0))return{'state':_0xc7df6a(0x1d0),'packageVersion':_0x211062[_0xc7df6a(0x1eb)],'reason':_0x4e4b47['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x14ccfe=frontmatterValue(readFileSync(join(_0x4e4b47[_0xc7df6a(0x202)],_0xc7df6a(0x1cb)),'utf8'),_0xc7df6a(0x1ef));if(_0x14ccfe!==_0x211062[_0xc7df6a(0x1e3)])return{'state':'version_mismatch','packageVersion':_0x211062[_0xc7df6a(0x1eb)],'skillVersion':_0x14ccfe,'installedPath':_0x4e4b47['path'],'repairCommand':REPAIR_COMMAND};const _0x33a9cc=listFiles(_0x4e4b47[_0xc7df6a(0x202)]),_0xd37aa0=digestFiles(_0x4e4b47[_0xc7df6a(0x202)],_0x33a9cc);return{'state':sameFiles(_0x33a9cc,_0x211062[_0xc7df6a(0x1ce)][_0xc7df6a(0x1ca)])&&_0xd37aa0===_0x211062[_0xc7df6a(0x1ce)][_0xc7df6a(0x1e7)]?_0xc7df6a(0x1d2):_0xc7df6a(0x1da),'packageVersion':_0x211062[_0xc7df6a(0x1eb)],'skillVersion':_0x14ccfe,'installedPath':_0x4e4b47['path'],'digest':_0xd37aa0,'repairCommand':REPAIR_COMMAND};}catch(_0x2848cd){return{'state':_0xc7df6a(0x1d0),'packageVersion':_0x211062[_0xc7df6a(0x1eb)],'installedPath':_0x4e4b47[_0xc7df6a(0x202)],'reason':_0x2848cd instanceof Error?_0x2848cd[_0xc7df6a(0x1ed)]:String(_0x2848cd),'repairCommand':REPAIR_COMMAND};}}function failure(_0x30b097,_0x3bfb09,_0x3795ac,_0x38e881){const _0x170a1d=a264_0x594012;return{'ok':![],'code':_0x30b097,'packageVersion':_0x3bfb09[_0x170a1d(0x1eb)],'skillVersion':_0x3bfb09[_0x170a1d(0x1e3)],'installedPath':_0x38e881,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x3795ac instanceof Error?_0x3795ac[_0x170a1d(0x1ed)]:String(_0x3795ac)};}export function installBuiltinSkill(_0x228623={}){const _0x538edf=a264_0x594012,_0x4c60fa=_0x228623[_0x538edf(0x1f9)]??DEFAULT_PACKAGE_ROOT,_0x80fb54=_0x228623[_0x538edf(0x1e0)]??homedir();let _0x1fe67b;try{_0x1fe67b=readSource(_0x4c60fa);}catch(_0x54a46a){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':'unknown'},_0x54a46a);}const _0x23ed30=inspectBuiltinSkill({'packageRoot':_0x4c60fa,'home':_0x80fb54}),_0xfc412b=runNpxSkillsAddGlobal(_0x4c60fa,_0x1fe67b['root'],{'stdio':_0x228623[_0x538edf(0x1ea)]??_0x538edf(0x1cd),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x80fb54}});if(_0xfc412b[_0x538edf(0x1d5)])return{'ok':!![],'packageVersion':_0x1fe67b['packageVersion'],'skillVersion':_0x1fe67b['skillVersion'],'installedPath':_0x23ed30['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xfc412b['ok'])return failure(_0x538edf(0x1e2),_0x1fe67b,_0xfc412b[_0x538edf(0x206)]??_0x538edf(0x205)+_0xfc412b[_0x538edf(0x1ff)]);const _0x5633fd=inspectBuiltinSkill({'packageRoot':_0x4c60fa,'home':_0x80fb54});if(_0x5633fd[_0x538edf(0x1d9)]!=='current')return failure(_0x538edf(0x204),_0x1fe67b,_0x5633fd['reason']??_0x538edf(0x1e4)+_0x5633fd[_0x538edf(0x1d9)],_0x5633fd['installedPath']);return{'ok':!![],'packageVersion':_0x1fe67b[_0x538edf(0x1eb)],'skillVersion':_0x1fe67b[_0x538edf(0x1e3)],'installedPath':_0x5633fd['installedPath'],'changed':_0x23ed30[_0x538edf(0x1d9)]!==_0x538edf(0x1d2),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x162336,_0x471df9){const _0x1f2825=a265_0x4815,_0x532352=_0x162336();while(!![]){try{const _0x149a49=parseInt(_0x1f2825(0x15a))/0x1*(-parseInt(_0x1f2825(0x17d))/0x2)+-parseInt(_0x1f2825(0x172))/0x3*(parseInt(_0x1f2825(0x166))/0x4)+parseInt(_0x1f2825(0x177))/0x5+-parseInt(_0x1f2825(0x15e))/0x6*(parseInt(_0x1f2825(0x175))/0x7)+-parseInt(_0x1f2825(0x161))/0x8*(-parseInt(_0x1f2825(0x173))/0x9)+-parseInt(_0x1f2825(0x17e))/0xa+parseInt(_0x1f2825(0x169))/0xb*(parseInt(_0x1f2825(0x160))/0xc);if(_0x149a49===_0x471df9)break;else _0x532352['push'](_0x532352['shift']());}catch(_0x1cd1d0){_0x532352['push'](_0x532352['shift']());}}}(a265_0x79e1,0x2b9d3));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(_0x215a5a){const _0x431957=a265_0x4815,_0xa559b9=[];for(const [_0x50478c,_0xf9cf0f]of Object[_0x431957(0x15f)](_0x215a5a)){if(_0xf9cf0f===!![]){const _0x2aae4e=_0x50478c['replace'](/([A-Z])/g,_0x431957(0x16f))['toLowerCase']();_0xa559b9['push'](_0x2aae4e);}}return _0xa559b9;}export function parseDynamicFlags(){const _0x486080=a265_0x4815,_0x2e74b8=[];for(let _0x22873e=0x3;_0x22873e<process[_0x486080(0x16e)][_0x486080(0x16a)];_0x22873e++){const _0x1e0707=process[_0x486080(0x16e)][_0x22873e];if(_0x1e0707&&_0x1e0707[_0x486080(0x178)]('--')){const _0x1a25df=_0x1e0707[_0x486080(0x164)](0x2);_0x1a25df&&!_0x1a25df['includes']('=')&&_0x2e74b8[_0x486080(0x170)](_0x1a25df);}}return _0x2e74b8;}export function getAllProvidedFlags(_0x2b1c44){const _0x29de50=a265_0x4815,_0x487d78=camelCaseFlagsToKebab(_0x2b1c44),_0x2e4d79=parseDynamicFlags(),_0x5a7cf4=new Set([..._0x487d78,..._0x2e4d79]);return Array[_0x29de50(0x15b)](_0x5a7cf4);}function a265_0x4815(_0x5a61fc,_0x18b9d7){_0x5a61fc=_0x5a61fc-0x15a;const _0x79e143=a265_0x79e1();let _0x481520=_0x79e143[_0x5a61fc];return _0x481520;}function a265_0x79e1(){const _0x161e8b=['entries','6000asFaVt','119896wNhiqg','Public\x20Open\x20Skill\x20source:\x20','log','slice','(empty)','685668WaKaUw','Unsupported\x20command:\x20','enable-bff-save','9152OgFRtA','length','dangerously-bff-save','error','--help','argv','-$1','push','help','3DThyLa','171sPSCtF','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','23093SvhAjl','skill','1497440hZKaco','startsWith','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','exit','cwd','\x0aAvailable\x20commands:','4OvhlgA','3124810hQlAGt','add','has','125963EAWSnD','from','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','156oeDQkz'];a265_0x79e1=function(){return _0x161e8b;};return a265_0x79e1();}export function normalizeLegacyBffSaveFlags(_0x24c55b){const _0x11464b=a265_0x4815,_0x24d87b=new Set(_0x24c55b);return _0x24d87b[_0x11464b(0x180)](_0x11464b(0x16b))&&_0x24d87b[_0x11464b(0x17f)](_0x11464b(0x168)),Array[_0x11464b(0x15b)](_0x24d87b);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x33bd36,_0x94805a,_0x488319){const _0xb87c0b=a265_0x4815;logger['setLogPath'](process[_0xb87c0b(0x17b)]());if(_0x488319?.[_0xb87c0b(0x171)]||_0x33bd36===_0xb87c0b(0x16d)){showHelp();return;}console[_0xb87c0b(0x16c)]('Error:\x20Unsupported\x20command:\x20'+(_0x33bd36||_0xb87c0b(0x165))),console[_0xb87c0b(0x163)](_0xb87c0b(0x17c)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xb87c0b(0x179)),console[_0xb87c0b(0x163)](''),console[_0xb87c0b(0x163)](_0xb87c0b(0x162)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xb87c0b(0x16c)](_0xb87c0b(0x176),_0xb87c0b(0x167)+_0x33bd36),process[_0xb87c0b(0x17a)](0x1);}function showHelp(){const _0x13ef0f=a265_0x4815;console[_0x13ef0f(0x163)](_0x13ef0f(0x15c)+CLI_BIN_NAME+_0x13ef0f(0x15d)+SKILLS_INSTALL_COMMAND_LINE+_0x13ef0f(0x174));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x4d5b63=a266_0x19fe;(function(_0x5b1a62,_0x433d59){const _0x92c9b5=a266_0x19fe,_0x2a7c9f=_0x5b1a62();while(!![]){try{const _0x1306b7=parseInt(_0x92c9b5(0x17b))/0x1+parseInt(_0x92c9b5(0x159))/0x2+parseInt(_0x92c9b5(0x17f))/0x3+parseInt(_0x92c9b5(0x18f))/0x4*(-parseInt(_0x92c9b5(0x157))/0x5)+parseInt(_0x92c9b5(0x18c))/0x6+-parseInt(_0x92c9b5(0x181))/0x7+-parseInt(_0x92c9b5(0x15d))/0x8;if(_0x1306b7===_0x433d59)break;else _0x2a7c9f['push'](_0x2a7c9f['shift']());}catch(_0x4a4fd9){_0x2a7c9f['push'](_0x2a7c9f['shift']());}}}(a266_0x1057,0xafe25));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=a266_0x4d5b63(0x15c);export const NPX_SKILLS_SUBCOMMAND_ADD=a266_0x4d5b63(0x155);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a266_0x4d5b63(0x186);export const DEFAULT_RABETBASE_SKILL_NAME=a266_0x4d5b63(0x156);export const RABETBASE_GLOBAL_SKILL_NAME=a266_0x4d5b63(0x168);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x306f4a){const _0x2b3b58=a266_0x4d5b63;switch(_0x306f4a[_0x2b3b58(0x178)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1a8515){const _0x4330e4=a266_0x4d5b63,_0x4360ed=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1a8515&&_0x4360ed[_0x4330e4(0x166)](NPX_SKILLS_FLAG_SKILL,_0x1a8515),_0x4360ed;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a266_0x4d5b63(0x15e),...buildNpxSkillsAddArgv()][a266_0x4d5b63(0x16b)]('\x20');function a266_0x19fe(_0x4e8fb5,_0x28461f){_0x4e8fb5=_0x4e8fb5-0x153;const _0x10575f=a266_0x1057();let _0x19fe81=_0x10575f[_0x4e8fb5];return _0x19fe81;}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][a266_0x4d5b63(0x16b)]('\x20');function a266_0x1057(){const _0xcc6df5=['log','NPX_NOT_FOUND','filter','CHILD_TERMINATED','Skill\x20\x22','toString','trim','present','checked','480603bdILQg','!\x20Could\x20not\x20verify\x20\x22','Installer\x20reported\x20','npx\x20terminated\x20by\x20signal\x20','2993298eUQaWu','reason','4618992kEMJcu','expectedSkillName','yes','SPAWN_FAILED','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','lovrabet/lovrabet-skill','warn','\x20failed\x20target(s)','stderr','signal','error','2735814NYUWoD','EACCES','exit\x20','2523784iaAJap','ENOENT','unknown','add','Lovrabet','5arrQMu','match','888352hdgyLD','unverifiable','\x22\x20install\x20state:\x20','skills@latest','2938328jiyeHi','npx','code','remove','skill','stdio','state','stdout','message','push','status','rabetbase','npm_config_global','INSTALL_PARTIAL','join','pipe','EPERM','SKILL_NOT_INSTALLED','CHILD_EXIT_NONZERO','NPM_CONFIG_GLOBAL','inherit'];a266_0x1057=function(){return _0xcc6df5;};return a266_0x1057();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x30f823,_0x17a25f,_0x591b98){return{'ok':![],'status':_0x17a25f,'code':_0x30f823,'error':'['+_0x30f823+']\x20'+_0x591b98};}function spawnOptions(_0x5604fe,_0xacd430){const _0x5bbe45=a266_0x4d5b63,_0x6f02fb={...process.env};return delete _0x6f02fb[_0x5bbe45(0x169)],delete _0x6f02fb[_0x5bbe45(0x170)],{'cwd':_0x5604fe,'stdio':_0xacd430,'env':_0x6f02fb,'shell':![],..._0xacd430===_0x5bbe45(0x16c)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x36ee3d,_0x1c2d7e,_0x2d390d,_0x4fc714){const _0x4afac9=a266_0x4d5b63,_0x53209a=[_0x36ee3d[_0x4afac9(0x164)]?_0x36ee3d[_0x4afac9(0x164)][_0x4afac9(0x177)]():'',_0x36ee3d[_0x4afac9(0x189)]?_0x36ee3d[_0x4afac9(0x189)][_0x4afac9(0x177)]():''][_0x4afac9(0x174)](Boolean)[_0x4afac9(0x16b)]('\x0a')['trim']();_0x4fc714!=='pipe'&&_0x53209a&&console['log'](_0x53209a);if(_0x36ee3d[_0x4afac9(0x18b)]){const _0x4af96c=_0x36ee3d[_0x4afac9(0x18b)],_0x21afcf=_0x4af96c['code']===_0x4afac9(0x153)?_0x4afac9(0x173):_0x4af96c[_0x4afac9(0x15f)]===_0x4afac9(0x16d)||_0x4af96c[_0x4afac9(0x15f)]===_0x4afac9(0x18d)?'PERMISSION_DENIED':_0x4afac9(0x184);return failure(_0x21afcf,_0x36ee3d[_0x4afac9(0x167)],_0x4af96c[_0x4afac9(0x165)]);}if(_0x36ee3d[_0x4afac9(0x18a)])return failure(_0x4afac9(0x175),_0x36ee3d[_0x4afac9(0x167)],_0x4afac9(0x17e)+_0x36ee3d[_0x4afac9(0x18a)]);if(_0x36ee3d[_0x4afac9(0x167)]!==0x0)return failure(_0x4afac9(0x16f),_0x36ee3d[_0x4afac9(0x167)],_0x53209a||_0x4afac9(0x18e)+(_0x36ee3d['status']??_0x4afac9(0x154)));const _0x5d07ac=_0x1c2d7e?resolveInstalledSkill(_0x1c2d7e,_0x2d390d):undefined,_0x240efe=_0x53209a[_0x4afac9(0x158)](/Failed to install\s+(\d+)/i);if(_0x240efe&&Number(_0x240efe[0x1])>0x0){const _0x19603a=_0x4afac9(0x17d)+_0x240efe[0x1]+_0x4afac9(0x188)+(_0x53209a?':\x0a'+_0x53209a:'');if(_0x5d07ac?.[_0x4afac9(0x163)]===_0x4afac9(0x179))return console['warn']('!\x20'+_0x19603a),{'ok':!![],'status':0x0};return failure(_0x4afac9(0x16a),0x0,_0x19603a);}if(_0x5d07ac){if(_0x5d07ac[_0x4afac9(0x163)]==='absent')return failure(_0x4afac9(0x16e),0x0,_0x4afac9(0x176)+_0x1c2d7e+_0x4afac9(0x185)+_0x5d07ac[_0x4afac9(0x17a)][_0x4afac9(0x16b)](',\x20')+')');_0x5d07ac[_0x4afac9(0x163)]===_0x4afac9(0x15a)&&console[_0x4afac9(0x187)](_0x4afac9(0x17c)+_0x1c2d7e+_0x4afac9(0x15b)+_0x5d07ac[_0x4afac9(0x180)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x183ab4,_0x32e8aa){const _0x87711a=a266_0x4d5b63;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2a92fb=_0x32e8aa?.[_0x87711a(0x162)]??'inherit',_0x542b8e=resolveNpmBin(_0x87711a(0x15e)),_0x21b3bf=buildNpxSkillsAddArgv(_0x32e8aa?.[_0x87711a(0x161)]),_0x48184f=[_0x87711a(0x15e),..._0x21b3bf][_0x87711a(0x16b)]('\x20');console['log']('*\x20'+_0x48184f);const _0x2d07bf=spawnSync(_0x542b8e,_0x21b3bf,spawnOptions(_0x183ab4,_0x2a92fb));return normalizeSpawnResult(_0x2d07bf,undefined,undefined,_0x2a92fb);}export function runNpxSkillsRemove(_0x4e0114,_0x10a345,_0xf0a70b=LEGACY_RABETBASE_SKILL_SOURCE){const _0xe9e267=a266_0x4d5b63;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x18bd5d=_0x10a345?.[_0xe9e267(0x162)]??_0xe9e267(0x171),_0x57594=resolveNpmBin(_0xe9e267(0x15e)),_0x434e2a=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xe9e267(0x160),_0xf0a70b,NPX_SKILLS_FLAG_SKILL,_0x10a345?.[_0xe9e267(0x161)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x10a345?.[_0xe9e267(0x183)]?['-y']:[]],_0x1fb62f=[_0x57594,..._0x434e2a][_0xe9e267(0x16b)]('\x20');console['log']('*\x20'+_0x1fb62f);const _0x1dbf6e=spawnSync(_0x57594,_0x434e2a,spawnOptions(_0x4e0114,_0x18bd5d));return normalizeSpawnResult(_0x1dbf6e,undefined,undefined,_0x18bd5d);}export function runNpxSkillsAddGlobal(_0x1f1ccf,_0x1df1b2,_0x26ea4f){const _0x421088=a266_0x4d5b63;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2d1bae=resolveNpmBin(_0x421088(0x15e)),_0x3c01e9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1df1b2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x55aa57=[_0x421088(0x15e),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1df1b2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x421088(0x172)]('*\x20'+_0x55aa57);const _0x58e35f=spawnSync(_0x2d1bae,_0x3c01e9,spawnOptions(_0x1f1ccf,_0x421088(0x16c)));return normalizeSpawnResult(_0x58e35f,_0x26ea4f?.[_0x421088(0x182)]??resolveGlobalSkillName(_0x1df1b2),_0x26ea4f?.['presence'],_0x26ea4f?.[_0x421088(0x162)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x5ed069=a267_0x6ac6;(function(_0x14378c,_0x38452d){const _0x182cce=a267_0x6ac6,_0x12ab2d=_0x14378c();while(!![]){try{const _0x27b37f=-parseInt(_0x182cce(0x84))/0x1*(parseInt(_0x182cce(0x78))/0x2)+parseInt(_0x182cce(0x73))/0x3*(-parseInt(_0x182cce(0x80))/0x4)+-parseInt(_0x182cce(0x77))/0x5+-parseInt(_0x182cce(0x79))/0x6*(parseInt(_0x182cce(0x85))/0x7)+-parseInt(_0x182cce(0x90))/0x8+-parseInt(_0x182cce(0x8f))/0x9*(parseInt(_0x182cce(0x8e))/0xa)+parseInt(_0x182cce(0x6e))/0xb*(parseInt(_0x182cce(0x91))/0xc);if(_0x27b37f===_0x38452d)break;else _0x12ab2d['push'](_0x12ab2d['shift']());}catch(_0x14c8e5){_0x12ab2d['push'](_0x12ab2d['shift']());}}}(a267_0x2ddf,0x219ff));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a267_0x5ed069(0x6c),a267_0x5ed069(0x70));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a267_0x5ed069(0x6c),'skills'),join(a267_0x5ed069(0x7b),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a267_0x6ac6(_0x48fb4c,_0x396cb5){_0x48fb4c=_0x48fb4c-0x6c;const _0x2ddf23=a267_0x2ddf();let _0x6ac637=_0x2ddf23[_0x48fb4c];return _0x6ac637;}function readLockLookup(_0x3ba7e9,_0x1fb13f){const _0x4d6c69=a267_0x5ed069;if(!existsSync(_0x3ba7e9))return{'kind':_0x4d6c69(0x7f)};let _0x4d54de;try{_0x4d54de=JSON[_0x4d6c69(0x7a)](readFileSync(_0x3ba7e9,_0x4d6c69(0x75)));}catch(_0x5399d1){return{'kind':_0x4d6c69(0x72),'reason':_0x3ba7e9+'\x20is\x20unreadable:\x20'+_0x5399d1['message']};}const _0x124ce3=_0x4d54de;if(typeof _0x124ce3?.[_0x4d6c69(0x82)]!==_0x4d6c69(0x7d)||!SUPPORTED_LOCK_VERSIONS[_0x4d6c69(0x8c)](_0x124ce3['version']))return{'kind':_0x4d6c69(0x72),'reason':_0x3ba7e9+_0x4d6c69(0x81)+String(_0x124ce3?.[_0x4d6c69(0x82)])};if(!_0x124ce3[_0x4d6c69(0x76)]||typeof _0x124ce3[_0x4d6c69(0x76)]!==_0x4d6c69(0x83))return{'kind':_0x4d6c69(0x72),'reason':_0x3ba7e9+_0x4d6c69(0x7c)};return _0x124ce3[_0x4d6c69(0x76)][_0x1fb13f]?{'kind':_0x4d6c69(0x92)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x2836f2,_0x17c235){const _0x3968ac=a267_0x5ed069,_0x5196b0=_0x17c235?.[_0x3968ac(0x89)]??homedir(),_0x2a6b56=_0x17c235?.[_0x3968ac(0x74)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3968ac(0x8a)](_0x1b2b08=>join(_0x5196b0,_0x1b2b08)),_0x31770c=_0x17c235?.[_0x3968ac(0x86)]??join(_0x5196b0,SKILL_LOCK_RELATIVE_PATH),_0xc11541=_0x2a6b56[_0x3968ac(0x8a)](_0x58d6e2=>join(_0x58d6e2,_0x2836f2,_0x3968ac(0x8b))),_0x48e208=_0xc11541[_0x3968ac(0x6f)](_0x3466e6=>existsSync(_0x3466e6));if(_0x48e208)return{'state':'present','path':_0x48e208};const _0x39e7c2=readLockLookup(_0x31770c,_0x2836f2);if(_0x39e7c2[_0x3968ac(0x87)]===_0x3968ac(0x72))return{'state':'unverifiable','reason':_0x39e7c2[_0x3968ac(0x88)]};if(_0x39e7c2[_0x3968ac(0x87)]===_0x3968ac(0x92))return{'state':_0x3968ac(0x71),'reason':_0x31770c+_0x3968ac(0x7e)+_0x2836f2+_0x3968ac(0x8d)+('('+_0xc11541['join'](',\x20')+')')};return{'state':_0x3968ac(0x6d),'checked':_0xc11541};}function a267_0x2ddf(){const _0x3c1a85=['map','SKILL.md','includes','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','1020730sXXKWl','9zzfxWq','1325808rIRUCd','3653148obRLvB','recorded','.agents','absent','33GPRyxj','find','.skill-lock.json','unverifiable','unusable','545253QXJvpb','globalSkillsDirs','utf8','skills','801095qCAHFz','500YQXZhZ','88746aaAdRj','parse','.claude','\x20has\x20no\x20skills\x20map','number','\x20records\x20\x22','not-recorded','4SryjWw','\x20uses\x20unsupported\x20version\x20','version','object','604VqLRBM','7lsKjCF','lockFile','kind','reason','home'];a267_0x2ddf=function(){return _0x3c1a85;};return a267_0x2ddf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a268_0x2271(_0x7a87b2,_0x4b3107){_0x7a87b2=_0x7a87b2-0x1b5;const _0x112523=a268_0x1125();let _0x22712a=_0x112523[_0x7a87b2];return _0x22712a;}(function(_0x1a5cfd,_0x333be3){const _0x19dbf3=a268_0x2271,_0x1897a7=_0x1a5cfd();while(!![]){try{const _0x4f394c=parseInt(_0x19dbf3(0x1b5))/0x1+-parseInt(_0x19dbf3(0x1b9))/0x2*(-parseInt(_0x19dbf3(0x1c6))/0x3)+parseInt(_0x19dbf3(0x1c4))/0x4+parseInt(_0x19dbf3(0x1b8))/0x5*(parseInt(_0x19dbf3(0x1c2))/0x6)+parseInt(_0x19dbf3(0x1b7))/0x7*(parseInt(_0x19dbf3(0x1bc))/0x8)+-parseInt(_0x19dbf3(0x1bd))/0x9*(parseInt(_0x19dbf3(0x1c0))/0xa)+parseInt(_0x19dbf3(0x1bb))/0xb*(-parseInt(_0x19dbf3(0x1be))/0xc);if(_0x4f394c===_0x333be3)break;else _0x1897a7['push'](_0x1897a7['shift']());}catch(_0x463983){_0x1897a7['push'](_0x1897a7['shift']());}}}(a268_0x1125,0x50323));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(_0x529195){return SENSITIVE_PATTERNS['some'](_0x4cca1b=>_0x4cca1b['test'](_0x529195));}function sanitizeFlags(_0x75547c){const _0x16d944=a268_0x2271,_0xaf4d3a={};for(const [_0x59e308,_0xd2bcb]of Object[_0x16d944(0x1c5)](_0x75547c)){isSensitiveKey(_0x59e308)?_0xaf4d3a[_0x59e308]=_0xd2bcb!=null&&_0xd2bcb!==''?_0x16d944(0x1ba):_0xd2bcb:_0xaf4d3a[_0x59e308]=_0xd2bcb;}return _0xaf4d3a;}export async function reportCommandTrace(_0x26291a){const _0xc5503e=a268_0x2271;try{const _0x5ee467=sanitizeFlags(_0x26291a['flags']);await sendCliTraceLog({'spanName':_0xc5503e(0x1c7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x26291a[_0xc5503e(0x1b6)],'command.name':_0x26291a[_0xc5503e(0x1c1)],'command.flags':JSON['stringify'](_0x5ee467),..._0x26291a[_0xc5503e(0x1c8)]!=null?{'command.duration_ms':_0x26291a[_0xc5503e(0x1c8)]}:{},..._0x26291a[_0xc5503e(0x1c3)]?{'command.error':_0x26291a['error']instanceof Error?_0x26291a[_0xc5503e(0x1c3)][_0xc5503e(0x1bf)]:String(_0x26291a[_0xc5503e(0x1c3)])}:{}}});}catch{}}function a268_0x1125(){const _0x39db7c=['service','7KDAQwc','15Qcnyzy','399136bSoXpC','[REDACTED]','2620277smOGMP','169896cdkaOj','45UZQygg','24YtBCBN','message','1238270bJrbqz','command','742506rsBSrM','error','1371940qUnWMQ','entries','6DvIfTT','rabetbase.command','durationMs','289421ElXIjO'];a268_0x1125=function(){return _0x39db7c;};return a268_0x1125();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4650f4,_0x26dc07){var _0x14b525=a269_0x1ff1,_0xb3982e=_0x4650f4();while(!![]){try{var _0x2d2e09=-parseInt(_0x14b525(0x153))/0x1*(parseInt(_0x14b525(0x152))/0x2)+parseInt(_0x14b525(0x14a))/0x3*(parseInt(_0x14b525(0x14c))/0x4)+parseInt(_0x14b525(0x147))/0x5+-parseInt(_0x14b525(0x14b))/0x6+parseInt(_0x14b525(0x14d))/0x7+-parseInt(_0x14b525(0x155))/0x8*(parseInt(_0x14b525(0x14f))/0x9)+-parseInt(_0x14b525(0x14e))/0xa*(-parseInt(_0x14b525(0x149))/0xb);if(_0x2d2e09===_0x26dc07)break;else _0xb3982e['push'](_0xb3982e['shift']());}catch(_0x5d96e6){_0xb3982e['push'](_0xb3982e['shift']());}}}(a269_0x5f80,0x8e680));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x1ff1(_0x310cc3,_0x55e458){_0x310cc3=_0x310cc3-0x147;var _0x5f8037=a269_0x5f80();var _0x1ff1d3=_0x5f8037[_0x310cc3];return _0x1ff1d3;}export async function reportCliHelpTrace(_0x54ecc2,_0x53e5db){var _0x58c4af=a269_0x1ff1;try{await sendCliTraceLog({'spanName':_0x58c4af(0x150),'logData':{'rabetbase.help.kind':_0x54ecc2,..._0x53e5db?.[_0x58c4af(0x148)]&&{'rabetbase.help.service':_0x53e5db['service']}}});}catch(_0x2f538b){console[_0x58c4af(0x154)](_0x58c4af(0x151),_0x2f538b);}}function a269_0x5f80(){var _0x35eb7b=['service','44RHstpb','20160VgHkAz','6037032Lieklb','136gQNcMr','4178811PcReNu','1016060vZbJWu','1657620lfyOlo','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','358YSPtHE','827qDWbQk','error','8VbWydf','3449020lSbAZH'];a269_0x5f80=function(){return _0x35eb7b;};return a269_0x5f80();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51debf,_0x2b30ec){const _0x4b26d2=a270_0x546c,_0x3d39e8=_0x51debf();while(!![]){try{const _0x5083bf=-parseInt(_0x4b26d2(0x193))/0x1*(parseInt(_0x4b26d2(0x1a2))/0x2)+parseInt(_0x4b26d2(0x19f))/0x3*(-parseInt(_0x4b26d2(0x19e))/0x4)+-parseInt(_0x4b26d2(0x1a0))/0x5*(parseInt(_0x4b26d2(0x199))/0x6)+parseInt(_0x4b26d2(0x197))/0x7*(-parseInt(_0x4b26d2(0x19b))/0x8)+-parseInt(_0x4b26d2(0x196))/0x9*(-parseInt(_0x4b26d2(0x19c))/0xa)+-parseInt(_0x4b26d2(0x1a1))/0xb*(parseInt(_0x4b26d2(0x19a))/0xc)+parseInt(_0x4b26d2(0x194))/0xd;if(_0x5083bf===_0x2b30ec)break;else _0x3d39e8['push'](_0x3d39e8['shift']());}catch(_0x1397ef){_0x3d39e8['push'](_0x3d39e8['shift']());}}}(a270_0x2259,0x99bdb));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a270_0x546c(_0x3fd6fa,_0x1856ce){_0x3fd6fa=_0x3fd6fa-0x190;const _0x22591f=a270_0x2259();let _0x546cb6=_0x22591f[_0x3fd6fa];return _0x546cb6;}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 a270_0x2259(){const _0x51f6bc=['tenant','608ihAJMI','15054kWTPrC','5xTBbAo','14795hYJjIz','288eCamGO','email','daily','user','nickname','3189RhPASn','41445144lDDJJQ','username','1467WDBYrE','84wyWufv','production','967158mltptK','9084CmozGl','261944Zpnfob','14470vGyQzx'];a270_0x2259=function(){return _0x51f6bc;};return a270_0x2259();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x16ba28=a270_0x546c,_0x54880c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5a126e=_0x54880c?.[_0x16ba28(0x191)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x16ba28(0x190):_0x16ba28(0x198))}),setUserContext({'id':_0x5a126e?.['id'],'username':_0x5a126e?.[_0x16ba28(0x195)],'nickname':_0x5a126e?.[_0x16ba28(0x192)],'email':_0x5a126e?.[_0x16ba28(0x1a3)],'tenantCode':_0x5a126e?.[_0x16ba28(0x19d)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x54880c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b85f6,_0x451d44){const _0x4e8c7f=a271_0x115d,_0x3a59ad=_0x1b85f6();while(!![]){try{const _0x1d6380=parseInt(_0x4e8c7f(0xc9))/0x1*(-parseInt(_0x4e8c7f(0xd4))/0x2)+parseInt(_0x4e8c7f(0xd0))/0x3+-parseInt(_0x4e8c7f(0xd3))/0x4+parseInt(_0x4e8c7f(0xd6))/0x5*(parseInt(_0x4e8c7f(0xd8))/0x6)+parseInt(_0x4e8c7f(0xcc))/0x7*(-parseInt(_0x4e8c7f(0xd2))/0x8)+parseInt(_0x4e8c7f(0xd7))/0x9*(parseInt(_0x4e8c7f(0xcb))/0xa)+parseInt(_0x4e8c7f(0xd9))/0xb*(parseInt(_0x4e8c7f(0xcf))/0xc);if(_0x1d6380===_0x451d44)break;else _0x3a59ad['push'](_0x3a59ad['shift']());}catch(_0x1017a3){_0x3a59ad['push'](_0x3a59ad['shift']());}}}(a271_0x3caa,0x1ca69));function a271_0x3caa(){const _0x143150=['once','SIGTERM','96oMWFLZ','254679PiCqEC','exit','8Qzoicp','544916ksTKah','46kLVPjv','beforeExit','849260rNZDRB','153OhbmsG','6oWedTb','183689HPuRbN','3167GQdOSY','SIGINT','87470FYLpiL','1474291DjzMop'];a271_0x3caa=function(){return _0x143150;};return a271_0x3caa();}function a271_0x115d(_0x5e34a9,_0x5c8010){_0x5e34a9=_0x5e34a9-0xc9;const _0x3caac2=a271_0x3caa();let _0x115d9=_0x3caac2[_0x5e34a9];return _0x115d9;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2e6525=a271_0x115d;process[_0x2e6525(0xcd)](_0x2e6525(0xd5),()=>{void flushOtelNodeIfUsed();});const _0x3381d2=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x2e6525(0xcd)](_0x2e6525(0xca),_0x3381d2),process['once'](_0x2e6525(0xce),_0x3381d2);}export async function exitWithOtelShutdown(_0x26a8e6){const _0x1687ef=a271_0x115d;await flushOtelNodeIfUsed(),process[_0x1687ef(0xd1)](_0x26a8e6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a272_0xb808(_0x1fbd3c,_0x58617e){_0x1fbd3c=_0x1fbd3c-0x10e;const _0x1c42f4=a272_0x1c42();let _0xb808fd=_0x1c42f4[_0x1fbd3c];return _0xb808fd;}const a272_0x2ea2fe=a272_0xb808;(function(_0x2cb1af,_0x2afa7c){const _0x3b5301=a272_0xb808,_0x2b6e56=_0x2cb1af();while(!![]){try{const _0x53c7c3=-parseInt(_0x3b5301(0x110))/0x1+-parseInt(_0x3b5301(0x111))/0x2*(-parseInt(_0x3b5301(0x10f))/0x3)+parseInt(_0x3b5301(0x11c))/0x4*(-parseInt(_0x3b5301(0x119))/0x5)+-parseInt(_0x3b5301(0x114))/0x6+-parseInt(_0x3b5301(0x113))/0x7*(parseInt(_0x3b5301(0x11a))/0x8)+parseInt(_0x3b5301(0x117))/0x9*(-parseInt(_0x3b5301(0x118))/0xa)+parseInt(_0x3b5301(0x11b))/0xb*(parseInt(_0x3b5301(0x116))/0xc);if(_0x53c7c3===_0x2afa7c)break;else _0x2b6e56['push'](_0x2b6e56['shift']());}catch(_0x5be1cd){_0x2b6e56['push'](_0x2b6e56['shift']());}}}(a272_0x1c42,0xd396c));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a272_0x1c42(){const _0x5edb56=['manual','spanName','traceName','39MJXuMq','1189377yELZZF','181178waDfAw','traceparent','1526iLpQMG','7437036grWNaC','logData','12zYBhXi','7501212xSQvvr','10jKCARU','35eFoqFd','48088rzdJkX','56240327blaSQr','486284vrgToh','rabetbase-cli'];a272_0x1c42=function(){return _0x5edb56;};return a272_0x1c42();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a272_0x2ea2fe(0x11d);export async function sendCliTraceLog(_0x419080){const _0x37bcee=a272_0x2ea2fe;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x419080[_0x37bcee(0x10e)]??DEFAULT_TRACE_NAME,'version':_0x419080['version']??getCliVersion(),'spanName':_0x419080[_0x37bcee(0x11f)],'eventType':_0x37bcee(0x11e),'logData':_0x419080[_0x37bcee(0x115)],..._0x419080[_0x37bcee(0x112)]&&{'traceparent':_0x419080[_0x37bcee(0x112)]}});}
|