@lovrabet/rabetbase-cli 2.5.0-beta.2 → 2.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/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/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/guides/custom-page-workflow.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a248_0x5e1e(_0x37c5a9,_0x4bcc53){_0x37c5a9=_0x37c5a9-0x13e;const _0x3778e1=a248_0x3778();let _0x5e1edd=_0x3778e1[_0x37c5a9];return _0x5e1edd;}(function(_0x2bd822,_0x24a53b){const _0x12ec66=a248_0x5e1e,_0x5b9dd4=_0x2bd822();while(!![]){try{const _0x5e1125=-parseInt(_0x12ec66(0x147))/0x1*(-parseInt(_0x12ec66(0x14c))/0x2)+-parseInt(_0x12ec66(0x151))/0x3+-parseInt(_0x12ec66(0x145))/0x4+parseInt(_0x12ec66(0x143))/0x5*(parseInt(_0x12ec66(0x14e))/0x6)+-parseInt(_0x12ec66(0x154))/0x7*(parseInt(_0x12ec66(0x156))/0x8)+-parseInt(_0x12ec66(0x141))/0x9*(-parseInt(_0x12ec66(0x149))/0xa)+parseInt(_0x12ec66(0x148))/0xb;if(_0x5e1125===_0x24a53b)break;else _0x5b9dd4['push'](_0x5b9dd4['shift']());}catch(_0x1d63d0){_0x5b9dd4['push'](_0x5b9dd4['shift']());}}}(a248_0x3778,0x99ba1));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x45e045,_0x27c90e){const _0x366efc=a248_0x5e1e,_0x2ca8ec=_0x45e045[_0x366efc(0x152)],{_notice:_0x126115,..._0x566000}=_0x45e045;void _0x126115,baseFormatOutput(_0x566000,_0x27c90e),_0x27c90e[_0x366efc(0x158)]===_0x366efc(0x14a)&&printPrettyNotice(_0x2ca8ec);}export function formatCliError(_0x3a6708,_0xf496bc){const _0x1b6461=a248_0x5e1e;if(_0xf496bc[_0x1b6461(0x158)]===_0x1b6461(0x14a))return![];const _0x4478db=_0x3a6708['data'],_0x54094c={'ok':![],'command':_0xf496bc[_0x1b6461(0x142)],'risk':_0xf496bc[_0x1b6461(0x140)],'data':_0x4478db??null,'error':{'code':_0x3a6708[_0x1b6461(0x150)],'message':_0x3a6708[_0x1b6461(0x155)],..._0x3a6708[_0x1b6461(0x13e)]?{'hint':_0x3a6708[_0x1b6461(0x13e)]}:{}}},_0x38a084=_0xf496bc[_0x1b6461(0x158)]===_0x1b6461(0x14f)?JSON[_0x1b6461(0x14d)](_0x54094c,null,0x2):JSON['stringify'](_0x54094c);let _0x223618=_0x38a084;if(_0xf496bc[_0x1b6461(0x157)]?.['trim']())try{_0x223618=applyJqFilter(_0x38a084,_0xf496bc['jqFilter']);}catch(_0x2f48bc){const _0x2bf9ea=_0x2f48bc instanceof CliError?_0x2f48bc:CliErrors[_0x1b6461(0x13f)]('jq:\x20'+(_0x2f48bc instanceof Error?_0x2f48bc[_0x1b6461(0x155)]:String(_0x2f48bc))),_0x672fa2={..._0x54094c,'error':{'code':_0x2bf9ea[_0x1b6461(0x150)],'message':_0x2bf9ea[_0x1b6461(0x155)],..._0x2bf9ea[_0x1b6461(0x13e)]?{'hint':_0x2bf9ea[_0x1b6461(0x13e)]}:{},'cause':_0x54094c[_0x1b6461(0x14b)]}};_0x223618=_0xf496bc['format']===_0x1b6461(0x14f)?JSON[_0x1b6461(0x14d)](_0x672fa2,null,0x2):JSON[_0x1b6461(0x14d)](_0x672fa2);}return process[_0x1b6461(0x146)]['write'](_0x223618[_0x1b6461(0x153)]('\x0a')?_0x223618:_0x223618+'\x0a'),!![];}function printPrettyNotice(_0x1228ec){const _0x47fd8c=a248_0x5e1e;if(!_0x1228ec?.[_0x47fd8c(0x144)])return;console['error'](_0x1228ec['update'][_0x47fd8c(0x155)]+'\x20('+_0x1228ec[_0x47fd8c(0x144)]['url']+')');}function a248_0x3778(){const _0x49c812=['262539jNdMWD','command','5JMPogj','update','2988788yrQowX','stdout','474231dPotBG','10673641eJnpWz','270gVwPXR','pretty','error','2ZAvqYe','stringify','3994644vkjjpb','json','code','3636759baEYMa','_notice','endsWith','1080933fyHzfa','message','16sOvscP','jqFilter','format','hint','validation','risk'];a248_0x3778=function(){return _0x49c812;};return a248_0x3778();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32bc57,_0x530749){var _0x3e8495=a249_0xbbed,_0x216824=_0x32bc57();while(!![]){try{var _0xb89d81=parseInt(_0x3e8495(0x6b))/0x1*(-parseInt(_0x3e8495(0x6c))/0x2)+parseInt(_0x3e8495(0x68))/0x3+parseInt(_0x3e8495(0x67))/0x4+parseInt(_0x3e8495(0x6d))/0x5+parseInt(_0x3e8495(0x69))/0x6*(-parseInt(_0x3e8495(0x66))/0x7)+parseInt(_0x3e8495(0x6a))/0x8+-parseInt(_0x3e8495(0x65))/0x9;if(_0xb89d81===_0x530749)break;else _0x216824['push'](_0x216824['shift']());}catch(_0x3916b4){_0x216824['push'](_0x216824['shift']());}}}(a249_0x448e,0x2c1c7));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a249_0xbbed(_0x5c413c,_0x20af01){_0x5c413c=_0x5c413c-0x65;var _0x448e44=a249_0x448e();var _0xbbedbc=_0x448e44[_0x5c413c];return _0xbbedbc;}function a249_0x448e(){var _0x5af312=['156345xNqvFD','518751BHPQBL','7XhTBKJ','560748ursAfW','1037913KLpMzC','298746ZsIHRW','539888IsauyA','148402OMMMhI','4xnHUXY'];a249_0x448e=function(){return _0x5af312;};return a249_0x448e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31439f,_0x2d6e10){const _0x43dbfd=a250_0x4d0a,_0x5a461d=_0x31439f();while(!![]){try{const _0x7944e3=-parseInt(_0x43dbfd(0x12e))/0x1*(-parseInt(_0x43dbfd(0x139))/0x2)+-parseInt(_0x43dbfd(0x13b))/0x3*(-parseInt(_0x43dbfd(0x131))/0x4)+-parseInt(_0x43dbfd(0x134))/0x5+-parseInt(_0x43dbfd(0x13f))/0x6+-parseInt(_0x43dbfd(0x140))/0x7+parseInt(_0x43dbfd(0x13e))/0x8+-parseInt(_0x43dbfd(0x13c))/0x9*(parseInt(_0x43dbfd(0x138))/0xa);if(_0x7944e3===_0x2d6e10)break;else _0x5a461d['push'](_0x5a461d['shift']());}catch(_0x112088){_0x5a461d['push'](_0x5a461d['shift']());}}}(a250_0x56f2,0x978b5));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a250_0x4d0a(_0x3fa55c,_0x45e42d){_0x3fa55c=_0x3fa55c-0x12c;const _0x56f2de=a250_0x56f2();let _0x4d0ac3=_0x56f2de[_0x3fa55c];return _0x4d0ac3;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1ee2c2,_0x3ec8bb,_0x3cc63d,_0x51f541){const _0x8fef9f=a250_0x4d0a,_0x1732e4=_0x1ee2c2['flags'][_0x8fef9f(0x136)](_0x2598f9=>_0x2598f9['name']==='code'&&_0x2598f9['type']==='string'),_0x298802=_0x1ee2c2[_0x8fef9f(0x130)][_0x8fef9f(0x136)](_0x5f5412=>_0x5f5412[_0x8fef9f(0x12c)]===_0x8fef9f(0x137)&&_0x5f5412[_0x8fef9f(0x135)]===_0x8fef9f(0x13a));if(!_0x1732e4||!_0x298802)return;const _0x369fe3=_0x3ec8bb[_0x8fef9f(0x133)]?String(_0x3ec8bb[_0x8fef9f(0x133)]):'',_0x5da6c2=_0x3ec8bb[_0x8fef9f(0x137)]?String(_0x3ec8bb[_0x8fef9f(0x137)]):'';if(!_0x369fe3&&!_0x5da6c2)throw CliErrors[_0x8fef9f(0x12f)]('`'+_0x51f541+_0x8fef9f(0x12d));if(_0x5da6c2&&!_0x369fe3){const _0x3d04b9=resolveAlias(_0x3cc63d,_0x5da6c2);if(!_0x3d04b9){const _0x453202=listAliases(_0x3cc63d)['map'](_0x54bbdf=>_0x54bbdf[_0x8fef9f(0x137)]),_0x2dcdd3=_0x453202[_0x8fef9f(0x132)]?'Available\x20aliases:\x20'+_0x453202[_0x8fef9f(0x141)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3cc63d+_0x8fef9f(0x13d)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x8fef9f(0x12f)]('Unknown\x20alias\x20\x22'+_0x5da6c2+'\x22.\x20'+_0x2dcdd3);}_0x3ec8bb[_0x8fef9f(0x133)]=_0x3d04b9;}}function a250_0x56f2(){const _0xdd44f4=['`\x20requires\x20either\x20--code\x20or\x20--alias.','2BnCLKo','validation','flags','4yZiwoi','length','code','3465705itjKJJ','type','some','alias','1617690vpWquF','745486vnfzRo','string','1128975gteTBT','9UhPnbj','.\x20Run\x20`','9254656QewZlZ','4543170XKNaYK','320691mkyObf','join','name'];a250_0x56f2=function(){return _0xdd44f4;};return a250_0x56f2();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x134d81,_0xf4f8fb){const _0x3c8341=a251_0x164b,_0x5a6ccf=_0x134d81();while(!![]){try{const _0x2b7f3c=parseInt(_0x3c8341(0x1d8))/0x1*(parseInt(_0x3c8341(0x1fe))/0x2)+parseInt(_0x3c8341(0x1ef))/0x3*(-parseInt(_0x3c8341(0x1db))/0x4)+parseInt(_0x3c8341(0x1e5))/0x5+-parseInt(_0x3c8341(0x1e0))/0x6+-parseInt(_0x3c8341(0x1f7))/0x7*(-parseInt(_0x3c8341(0x1ff))/0x8)+parseInt(_0x3c8341(0x1ea))/0x9*(-parseInt(_0x3c8341(0x21b))/0xa)+parseInt(_0x3c8341(0x219))/0xb*(parseInt(_0x3c8341(0x1d5))/0xc);if(_0x2b7f3c===_0xf4f8fb)break;else _0x5a6ccf['push'](_0x5a6ccf['shift']());}catch(_0x4de5d5){_0x5a6ccf['push'](_0x5a6ccf['shift']());}}}(a251_0x3de7,0x867a5));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a251_0x10ab79}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2ca706){const _0xdefb5f=a251_0x164b;return typeof _0x2ca706==='string'&&_0x2ca706['trim']()?_0x2ca706[_0xdefb5f(0x1da)]():undefined;}function resolveEnvAppCode(){const _0x288e8e=a251_0x164b,_0xbe1a38=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbe1a38)return{'name':_0x288e8e(0x213),'value':_0xbe1a38};const _0x251b65=stringFlag(process.env.LOVRABET_APPCODE);if(_0x251b65)return{'name':_0x288e8e(0x1ec),'value':_0x251b65};return undefined;}function hasExplicitAppCode(_0x3d402f,_0x28b188){const _0x440ec0=a251_0x164b;return!!(stringFlag(_0x3d402f[_0x440ec0(0x20c)])||stringFlag(_0x28b188['appcode']));}function assertEnvAppCodeNotIgnored(_0x3cf2a9,_0x3176e7,_0x32f03b){const _0x5b6a67=a251_0x164b;if(!_0x3176e7||_0x32f03b||_0x3cf2a9===_0x3176e7['value'])return;const _0x696b31=_0x3cf2a9?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3cf2a9+'\x22.':_0x5b6a67(0x1fc);throw CliErrors[_0x5b6a67(0x200)](_0x3176e7[_0x5b6a67(0x1d4)]+'='+_0x3176e7['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x696b31+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3176e7[_0x5b6a67(0x1d4)]+'\x22.'));}export function createPipelineEnv(_0x446bc9,_0x51984f,_0x33e58c=[]){const _0x3a4d29=a251_0x164b;return{'rawFlags':_0x51984f,'args':_0x33e58c,'resolveAppCode':()=>_0x446bc9[_0x3a4d29(0x20e)],'resolveCookie':()=>_0x446bc9['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x10ab79(_0x51984f),'defaultFormat':_0x446bc9[_0x3a4d29(0x20b)],'defaultPageSize':_0x446bc9[_0x3a4d29(0x1e6)],'defaultVerbose':_0x446bc9[_0x3a4d29(0x20d)],'apiDir':_0x446bc9[_0x3a4d29(0x1df)],'riskLevel':_0x446bc9[_0x3a4d29(0x207)],'selectedAppName':_0x446bc9[_0x3a4d29(0x1fa)],'mergedCli':{'defaultApp':_0x446bc9[_0x3a4d29(0x1e9)],'currentApp':_0x446bc9['currentApp'],'appCode':_0x446bc9[_0x3a4d29(0x20e)],'apps':_0x446bc9[_0x3a4d29(0x1ce)]}};}export function createRabetbaseRunnerAdapter(_0x7ca00f={}){const _0x30a520=a251_0x164b;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x30a520(0x1fb)](_0x1f8cd9=>PIPELINE_FLAG_NAMES[_0x30a520(0x1cd)](_0x1f8cd9['name']))[_0x30a520(0x221)](({name:_0x38da93,type:_0x4966ad,description:_0x415034})=>({'name':_0x38da93,'type':_0x4966ad,'description':_0x415034})),'formatOutput':_0x7ca00f[_0x30a520(0x21f)]??formatOutput,'getCommandLabel'(_0x3391a4){const _0x27ad1d=_0x30a520;return CLI_BIN_NAME+'\x20'+_0x3391a4[_0x27ad1d(0x21a)]+'\x20'+_0x3391a4['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3082e5,{def:_0x3d2d21}){const _0x57d69f=_0x30a520,_0x56610f=_0x3082e5[_0x57d69f(0x217)]('Edit\x20the\x20config\x20file\x20manually')?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x57d69f(0x1d0)+_0x3d2d21[_0x57d69f(0x1f8)]+_0x57d69f(0x211)+_0x57d69f(0x1eb);return CliErrors[_0x57d69f(0x200)](_0x3082e5+'\x0a\x20\x20'+_0x56610f);}},async 'prepare'(_0x2220dc,_0x4adef0,_0x138714,_0x287bbc){const _0x3c3722=_0x30a520,_0xb24c10=_0x4adef0[_0x3c3722(0x1df)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2220dc,_0x138714,_0xb24c10,_0x287bbc);const _0x1e2245=resolveCommandAuthMode(_0x2220dc);let _0x18985b='';if(_0x1e2245!==_0x3c3722(0x1d9)){_0x18985b=_0x4adef0[_0x3c3722(0x208)]()||'';if(!_0x18985b){if(_0x1e2245==='required')throw CliErrors[_0x3c3722(0x206)]();}else{const {setActiveCookie:_0x1576ef}=await import('../core/api-client.js');_0x1576ef(_0x18985b);}}const _0x2d2648=_0x4adef0[_0x3c3722(0x212)]()??'';if(_0x2220dc[_0x3c3722(0x203)]!==![]){const _0x312451=hasExplicitAppCode(_0x138714,_0x4adef0[_0x3c3722(0x1f4)]),_0x503d1a=_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1ce)]??{},_0xa416d2=_0x4adef0['selectedAppName']||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1f9)]||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1e9)];if(!_0x312451&&_0xa416d2&&!_0x503d1a[_0xa416d2]){const _0x5bd355=Object['keys'](_0x503d1a);throw CliErrors[_0x3c3722(0x200)](_0x3c3722(0x1f0)+_0xa416d2+_0x3c3722(0x1f3),_0x5bd355['length']>0x0?_0x3c3722(0x1ee)+_0x5bd355[_0x3c3722(0x1e3)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c3722(0x215):_0x3c3722(0x210)+CLI_BIN_NAME+_0x3c3722(0x215));}assertEnvAppCodeNotIgnored(_0x2d2648,resolveEnvAppCode(),_0x312451);if(!_0x2d2648){const _0x23947e=Object[_0x3c3722(0x1e7)](_0x503d1a);if(!_0xa416d2&&_0x23947e[_0x3c3722(0x216)]>0x1)throw CliErrors['configMissing'](_0x3c3722(0x1fd)+CLI_BIN_NAME+_0x3c3722(0x20a)+_0x23947e[_0x3c3722(0x1e3)](',\x20')+'.');throw CliErrors[_0x3c3722(0x1cc)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3c3722(0x21d));}}return{'defaults':{'booleans':{'verbose':_0x4adef0[_0x3c3722(0x1d3)]},'numbers':{'pagesize':_0x4adef0[_0x3c3722(0x1cf)]}},'extras':{'appCode':_0x2d2648,'cookie':_0x18985b,'apiDomain':_0x4adef0[_0x3c3722(0x1d7)](),'apiDir':_0xb24c10,'selectedAppName':_0x4adef0[_0x3c3722(0x205)],'mergedCli':_0x4adef0[_0x3c3722(0x204)]}};},'confirmHighRisk':_0x7ca00f[_0x30a520(0x202)]??(async({env:_0x2c8bda,commandLabel:_0x1defd6})=>{const _0x22fcf6=_0x30a520;if(_0x2c8bda[_0x22fcf6(0x1e1)])throw CliErrors['validation'](_0x22fcf6(0x1dd)+_0x1defd6+_0x22fcf6(0x1d2));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1defd6,_0x22fcf6(0x1e2)],'createCancelledError':_0x54d327=>CliErrors['cancelled'](_0x54d327)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a251_0x3de7(){const _0x3d21b9=['\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','format','appcode','verbose','appCode','message','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','resolveAppCode','RABETBASE_APPCODE','_notice','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','length','includes','all','44gspGvV','service','246190acWGjb','production','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','formatOutput','rejectedFlags','map','../constant/domain.js','configMissing','has','apps','defaultPageSize','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','execute','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultVerbose','name','2916192DTPJHG','nonInteractive','resolveApiDomain','70TEHMMC','none','trim','92kKjqtn','resolve','High-risk\x20operation\x20`','doctor','apiDir','6511956rvojqk','isNonInteractive','\x20\x20\x20Continue?\x20[y/N]\x20','join','update','3538835ehFUSj','pageSize','keys','replace','defaultApp','72DmQIdm','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','LOVRABET_APPCODE','schema','Available:\x20','124569ogLjCg','App\x20\x22','hasFormat','hint','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','rawFlags','pretty','../constant/env.js','7bIfGrM','risk','currentApp','explicitAppName','filter','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','30366TnLNex','363896XvThXe','validation','catch','confirmHighRisk','requiresAppCode','mergedCli','selectedAppName','authRequired','riskLevel','resolveCookie','find'];a251_0x3de7=function(){return _0x3d21b9;};return a251_0x3de7();}async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x5f581b}=await import('../core/api-client.js');_0x5f581b();}export async function finalizeRabetbaseRuntimeState(){const _0x127bdc=a251_0x164b;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5df0e6},{initEnv:_0x184e34}]=await Promise[_0x127bdc(0x218)]([import(_0x127bdc(0x1cb)),import(_0x127bdc(0x1f6))]);_0x5df0e6(),_0x184e34(_0x127bdc(0x21c));}}export async function runCommand(_0x11c6fe,_0x471340,_0x3f5eec=terminalRunnerAdapter){const _0xcf3f48=a251_0x164b;assertRejectedFlags(_0x11c6fe,_0x471340[_0xcf3f48(0x1f4)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x11c6fe)?withUpdateNotice(_0x11c6fe):_0x11c6fe,_0x471340,_0x3f5eec);}function assertRejectedFlags(_0x39d2b2,_0x78abbb){const _0x21bfc9=a251_0x164b;for(const _0x2f7873 of _0x39d2b2[_0x21bfc9(0x220)]??[]){const _0x4cea8e=GLOBAL_FLAGS[_0x21bfc9(0x209)](_0x389089=>_0x389089[_0x21bfc9(0x1d4)]===_0x2f7873['name']),_0x4f38bd=new Set([_0x2f7873[_0x21bfc9(0x1d4)],toCamelCase(_0x2f7873[_0x21bfc9(0x1d4)]),_0x4cea8e?.['meowKey']]),_0x30ad85=[..._0x4f38bd]['some'](_0x74c186=>{if(!_0x74c186)return![];const _0x287145=_0x78abbb[_0x74c186];return _0x287145!==undefined&&_0x287145!==null&&_0x287145!==![];});if(_0x30ad85)throw CliErrors[_0x21bfc9(0x200)](_0x2f7873[_0x21bfc9(0x20f)],_0x2f7873[_0x21bfc9(0x1f2)]);}}function toCamelCase(_0x128ef8){const _0x1e6c12=a251_0x164b;return _0x128ef8[_0x1e6c12(0x1e8)](/-([a-z])/g,(_0x1c0738,_0x45c976)=>_0x45c976['toUpperCase']());}function shouldAttachUpdateNotice(_0x1e5252){const _0x14132f=a251_0x164b;if(_0x1e5252[_0x14132f(0x1f1)]===![])return![];return![_0x14132f(0x1e4),_0x14132f(0x1ed),_0x14132f(0x1de)][_0x14132f(0x217)](_0x1e5252['service']);}function withUpdateNotice(_0x7376a5){return{..._0x7376a5,async 'execute'(_0x5c5573){const _0x3f906f=a251_0x164b,_0x5be25d=shouldResolveUpdateNotice(_0x5c5573)?resolveLatestUpdateNotice()[_0x3f906f(0x201)](()=>null):Promise[_0x3f906f(0x1dc)](null),_0x52bec0=await _0x7376a5[_0x3f906f(0x1d1)](_0x5c5573);return attachUpdateNotice(_0x52bec0,await _0x5be25d);}};}function a251_0x164b(_0x3ea169,_0x100d97){_0x3ea169=_0x3ea169-0x1cb;const _0x3de7a4=a251_0x3de7();let _0x164b97=_0x3de7a4[_0x3ea169];return _0x164b97;}function shouldResolveUpdateNotice(_0x21cf5d){const _0x11752a=a251_0x164b;return _0x21cf5d[_0x11752a(0x20b)]===_0x11752a(0x1f5)&&!_0x21cf5d[_0x11752a(0x1d6)];}function attachUpdateNotice(_0x3c9aa8,_0x255764){const _0x3595a7=a251_0x164b;if(!_0x255764||!_0x3c9aa8||typeof _0x3c9aa8!==_0x3595a7(0x21e))return _0x3c9aa8;const _0x4b6b2c=_0x3c9aa8,_0xbf88d5=typeof _0x4b6b2c[_0x3595a7(0x214)]===_0x3595a7(0x21e)&&_0x4b6b2c[_0x3595a7(0x214)]!==null?_0x4b6b2c[_0x3595a7(0x214)]:{};return{..._0x4b6b2c,'_notice':{..._0xbf88d5,'update':_0x255764}};}
|
|
1
|
+
(function(_0x5af3ee,_0x6dbb07){const _0x3ef921=a251_0x24ad,_0x2e9674=_0x5af3ee();while(!![]){try{const _0x10dba7=parseInt(_0x3ef921(0x19a))/0x1+-parseInt(_0x3ef921(0x195))/0x2+-parseInt(_0x3ef921(0x190))/0x3*(-parseInt(_0x3ef921(0x18e))/0x4)+parseInt(_0x3ef921(0x15a))/0x5*(parseInt(_0x3ef921(0x162))/0x6)+-parseInt(_0x3ef921(0x180))/0x7+parseInt(_0x3ef921(0x192))/0x8*(parseInt(_0x3ef921(0x185))/0x9)+-parseInt(_0x3ef921(0x160))/0xa;if(_0x10dba7===_0x6dbb07)break;else _0x2e9674['push'](_0x2e9674['shift']());}catch(_0x49b6db){_0x2e9674['push'](_0x2e9674['shift']());}}}(a251_0x3aba,0x4e290));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a251_0x722a86}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x44c320){const _0x41ea86=a251_0x24ad;return typeof _0x44c320===_0x41ea86(0x175)&&_0x44c320[_0x41ea86(0x170)]()?_0x44c320['trim']():undefined;}function resolveEnvAppCode(){const _0x5615c4=a251_0x24ad,_0x30c1d3=stringFlag(process.env.RABETBASE_APPCODE);if(_0x30c1d3)return{'name':_0x5615c4(0x17a),'value':_0x30c1d3};const _0x50f632=stringFlag(process.env.LOVRABET_APPCODE);if(_0x50f632)return{'name':_0x5615c4(0x19f),'value':_0x50f632};return undefined;}function hasExplicitAppCode(_0x521f32,_0x333e36){const _0x2a3a53=a251_0x24ad;return!!(stringFlag(_0x521f32[_0x2a3a53(0x16e)])||stringFlag(_0x333e36['appcode']));}function assertEnvAppCodeNotIgnored(_0xf8a92d,_0x5aa45d,_0x29f13a){const _0x360914=a251_0x24ad;if(!_0x5aa45d||_0x29f13a||_0xf8a92d===_0x5aa45d[_0x360914(0x163)])return;const _0x219728=_0xf8a92d?_0x360914(0x16b)+_0xf8a92d+'\x22.':_0x360914(0x17c);throw CliErrors[_0x360914(0x198)](_0x5aa45d[_0x360914(0x179)]+'='+_0x5aa45d['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x219728+'\x20'+(_0x360914(0x177)+_0x5aa45d[_0x360914(0x179)]+'\x22.'));}export function createPipelineEnv(_0x3c6e9a,_0x1a34a2,_0x1b9b73=[]){const _0x15bf50=a251_0x24ad;return{'rawFlags':_0x1a34a2,'args':_0x1b9b73,'resolveAppCode':()=>_0x3c6e9a[_0x15bf50(0x19c)],'resolveCookie':()=>_0x3c6e9a[_0x15bf50(0x1a1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x722a86(_0x1a34a2),'defaultFormat':_0x3c6e9a[_0x15bf50(0x174)],'defaultPageSize':_0x3c6e9a[_0x15bf50(0x18b)],'defaultVerbose':_0x3c6e9a['verbose'],'apiDir':_0x3c6e9a[_0x15bf50(0x193)],'riskLevel':_0x3c6e9a[_0x15bf50(0x19e)],'selectedAppName':_0x3c6e9a[_0x15bf50(0x167)],'mergedCli':{'defaultApp':_0x3c6e9a[_0x15bf50(0x15b)],'currentApp':_0x3c6e9a[_0x15bf50(0x16f)],'appCode':_0x3c6e9a[_0x15bf50(0x19c)],'apps':_0x3c6e9a[_0x15bf50(0x17e)]}};}export function createRabetbaseRunnerAdapter(_0x2a08b5={}){const _0x2add15=a251_0x24ad;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3efb71=>PIPELINE_FLAG_NAMES[_0x2add15(0x15f)](_0x3efb71[_0x2add15(0x179)]))['map'](({name:_0x144536,type:_0xd05d06,description:_0x50a54b})=>({'name':_0x144536,'type':_0xd05d06,'description':_0x50a54b})),'formatOutput':_0x2a08b5['formatOutput']??formatOutput,'getCommandLabel'(_0x5adfd5){const _0x12d99f=_0x2add15;return CLI_BIN_NAME+'\x20'+_0x5adfd5[_0x12d99f(0x19d)]+'\x20'+_0x5adfd5[_0x12d99f(0x16c)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xd04178,{def:_0x1bc021}){const _0x3689a5=_0x2add15,_0xc0085a=_0xd04178[_0x3689a5(0x194)](_0x3689a5(0x1a5))?_0x3689a5(0x17f):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x1bc021[_0x3689a5(0x173)]+_0x3689a5(0x1a0)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0xd04178+_0x3689a5(0x166)+_0xc0085a);}},async 'prepare'(_0x5de5c7,_0x1bef76,_0x3e7a5c,_0x17edbe){const _0x41f9c6=_0x2add15,_0x14e28e=_0x1bef76['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x5de5c7,_0x3e7a5c,_0x14e28e,_0x17edbe);const _0x31c785=resolveCommandAuthMode(_0x5de5c7);let _0x47150f='';if(_0x31c785!==_0x41f9c6(0x16a)){_0x47150f=_0x1bef76[_0x41f9c6(0x186)]()||'';if(!_0x47150f){if(_0x31c785==='required')throw CliErrors[_0x41f9c6(0x165)]();}else{const {setActiveCookie:_0x432a29}=await import(_0x41f9c6(0x1a7));_0x432a29(_0x47150f);}}const _0x5cd9ce=_0x1bef76[_0x41f9c6(0x18c)]()??'';if(_0x5de5c7['requiresAppCode']!==![]){const _0x10d33a=hasExplicitAppCode(_0x3e7a5c,_0x1bef76[_0x41f9c6(0x18a)]),_0xb537aa=_0x1bef76[_0x41f9c6(0x191)]?.[_0x41f9c6(0x17e)]??{},_0x136902=_0x1bef76[_0x41f9c6(0x187)]||_0x1bef76[_0x41f9c6(0x191)]?.[_0x41f9c6(0x16f)]||_0x1bef76[_0x41f9c6(0x191)]?.[_0x41f9c6(0x15b)];if(!_0x10d33a&&_0x136902&&!_0xb537aa[_0x136902]){const _0x5ea92c=Object[_0x41f9c6(0x18f)](_0xb537aa);throw CliErrors['validation'](_0x41f9c6(0x161)+_0x136902+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x5ea92c[_0x41f9c6(0x178)]>0x0?_0x41f9c6(0x16d)+_0x5ea92c[_0x41f9c6(0x196)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x41f9c6(0x199)+CLI_BIN_NAME+_0x41f9c6(0x169));}assertEnvAppCodeNotIgnored(_0x5cd9ce,resolveEnvAppCode(),_0x10d33a);if(!_0x5cd9ce){const _0x3cb928=Object[_0x41f9c6(0x18f)](_0xb537aa);if(!_0x136902&&_0x3cb928['length']>0x1)throw CliErrors['configMissing'](_0x41f9c6(0x1a4)+CLI_BIN_NAME+_0x41f9c6(0x159)+_0x3cb928[_0x41f9c6(0x196)](',\x20')+'.');throw CliErrors[_0x41f9c6(0x182)](_0x41f9c6(0x17d)+CLI_BIN_NAME+_0x41f9c6(0x197));}}return{'defaults':{'booleans':{'verbose':_0x1bef76[_0x41f9c6(0x189)]},'numbers':{'pagesize':_0x1bef76[_0x41f9c6(0x176)]}},'extras':{'appCode':_0x5cd9ce,'cookie':_0x47150f,'apiDomain':_0x1bef76[_0x41f9c6(0x188)](),'apiDir':_0x14e28e,'selectedAppName':_0x1bef76['selectedAppName'],'mergedCli':_0x1bef76[_0x41f9c6(0x191)]}};},'confirmHighRisk':_0x2a08b5[_0x2add15(0x19b)]??(async({env:_0x47e6b8,commandLabel:_0x4f5a3f})=>{const _0x27d1e5=_0x2add15;if(_0x47e6b8[_0x27d1e5(0x184)])throw CliErrors[_0x27d1e5(0x198)]('High-risk\x20operation\x20`'+_0x4f5a3f+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x27d1e5(0x172)+_0x4f5a3f,_0x27d1e5(0x1a8)],'createCancelledError':_0x466f6e=>CliErrors['cancelled'](_0x466f6e)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}function a251_0x3aba(){const _0xf0b6a7=['cookie','schema','hint','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Edit\x20the\x20config\x20file\x20manually','object','../core/api-client.js','\x20\x20\x20Continue?\x20[y/N]\x20','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','666060jTYgym','defaultApp','meowKey','some','message','has','1767590PWGsmf','App\x20\x22','12jBvnjO','value','replace','authRequired','\x0a\x20\x20','explicitAppName','all','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','none','Current\x20resolved\x20appcode\x20is\x20\x22','command','Available:\x20','appcode','currentApp','trim','catch','⚠\x20\x20High-risk\x20operation:\x20','risk','format','string','defaultPageSize','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','length','name','RABETBASE_APPCODE','../constant/domain.js','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Set\x20appcode\x20via\x20`','apps','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','3083451bVANBr','nonInteractive','configMissing','_notice','isNonInteractive','387oKnkJz','resolveCookie','selectedAppName','resolveApiDomain','defaultVerbose','rawFlags','pageSize','resolveAppCode','toUpperCase','1716332MtMsYf','keys','3gMRgyk','mergedCli','21664rzshin','apiDir','includes','217064ZliDNx','join','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','validation','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','233977XChaAY','confirmHighRisk','appCode','service','riskLevel','LOVRABET_APPCODE','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'];a251_0x3aba=function(){return _0xf0b6a7;};return a251_0x3aba();}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x3838a0=a251_0x24ad,{clearActiveCookie:_0x5047d4}=await import(_0x3838a0(0x1a7));_0x5047d4();}export async function finalizeRabetbaseRuntimeState(){const _0x20e9bc=a251_0x24ad;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1cf273},{initEnv:_0x5d8d8d}]=await Promise[_0x20e9bc(0x168)]([import(_0x20e9bc(0x17b)),import('../constant/env.js')]);_0x1cf273(),_0x5d8d8d('production');}}export async function runCommand(_0x2776a0,_0xaa8576,_0x55f0f2=terminalRunnerAdapter){const _0x582dd0=a251_0x24ad;assertRejectedFlags(_0x2776a0,_0xaa8576[_0x582dd0(0x18a)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2776a0)?withUpdateNotice(_0x2776a0):_0x2776a0,_0xaa8576,_0x55f0f2);}function a251_0x24ad(_0x2f81df,_0x16e9ee){_0x2f81df=_0x2f81df-0x159;const _0x3aba5e=a251_0x3aba();let _0x24ad30=_0x3aba5e[_0x2f81df];return _0x24ad30;}function assertRejectedFlags(_0x561ad3,_0x467580){const _0x40c781=a251_0x24ad;for(const _0x58971e of _0x561ad3['rejectedFlags']??[]){const _0x327164=GLOBAL_FLAGS['find'](_0x349a0e=>_0x349a0e[_0x40c781(0x179)]===_0x58971e[_0x40c781(0x179)]),_0x5628e3=new Set([_0x58971e['name'],toCamelCase(_0x58971e[_0x40c781(0x179)]),_0x327164?.[_0x40c781(0x15c)]]),_0x1153d5=[..._0x5628e3][_0x40c781(0x15d)](_0x5e5c27=>{if(!_0x5e5c27)return![];const _0x2c5ab0=_0x467580[_0x5e5c27];return _0x2c5ab0!==undefined&&_0x2c5ab0!==null&&_0x2c5ab0!==![];});if(_0x1153d5)throw CliErrors[_0x40c781(0x198)](_0x58971e[_0x40c781(0x15e)],_0x58971e[_0x40c781(0x1a3)]);}}function toCamelCase(_0x3ea05a){const _0xc3686f=a251_0x24ad;return _0x3ea05a[_0xc3686f(0x164)](/-([a-z])/g,(_0x3146ef,_0x4702a4)=>_0x4702a4[_0xc3686f(0x18d)]());}function shouldAttachUpdateNotice(_0x2ca877){const _0x1b9ab1=a251_0x24ad;if(_0x2ca877['hasFormat']===![])return![];return!['update',_0x1b9ab1(0x1a2),'doctor'][_0x1b9ab1(0x194)](_0x2ca877[_0x1b9ab1(0x19d)]);}function withUpdateNotice(_0x3180af){return{..._0x3180af,async 'execute'(_0x4fedfb){const _0x121489=a251_0x24ad,_0x1c05e4=shouldResolveUpdateNotice(_0x4fedfb)?resolveLatestUpdateNotice()[_0x121489(0x171)](()=>null):Promise['resolve'](null),_0x36b5e3=await _0x3180af['execute'](_0x4fedfb);return attachUpdateNotice(_0x36b5e3,await _0x1c05e4);}};}function shouldResolveUpdateNotice(_0x1b90e5){const _0x35b6db=a251_0x24ad;return _0x1b90e5[_0x35b6db(0x174)]==='pretty'&&!_0x1b90e5[_0x35b6db(0x181)];}function attachUpdateNotice(_0x84e348,_0xbe2efc){const _0x520020=a251_0x24ad;if(!_0xbe2efc||!_0x84e348||typeof _0x84e348!=='object')return _0x84e348;const _0x2369f8=_0x84e348,_0x2e330c=typeof _0x2369f8[_0x520020(0x183)]===_0x520020(0x1a6)&&_0x2369f8[_0x520020(0x183)]!==null?_0x2369f8[_0x520020(0x183)]:{};return{..._0x2369f8,'_notice':{..._0x2e330c,'update':_0xbe2efc}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x441c23,_0x1a475b){const _0x470628=a252_0x34e0,_0x5eb318=_0x441c23();while(!![]){try{const _0x57d0cb=-parseInt(_0x470628(0x106))/0x1*(-parseInt(_0x470628(0x10c))/0x2)+parseInt(_0x470628(0x10d))/0x3+-parseInt(_0x470628(0x109))/0x4*(parseInt(_0x470628(0x108))/0x5)+parseInt(_0x470628(0x10a))/0x6*(-parseInt(_0x470628(0x10f))/0x7)+parseInt(_0x470628(0x10b))/0x8*(-parseInt(_0x470628(0x10e))/0x9)+parseInt(_0x470628(0x104))/0xa+parseInt(_0x470628(0x107))/0xb;if(_0x57d0cb===_0x1a475b)break;else _0x5eb318['push'](_0x5eb318['shift']());}catch(_0x28c33d){_0x5eb318['push'](_0x5eb318['shift']());}}}(a252_0x3a03,0x68e5a));import{buildSchemaPayload as a252_0x44d4bd}from'@lovrabet/cli-framework';function a252_0x3a03(){const _0x3122c3=['5730428QaEBSO','955dkOfTD','6356UXIyrV','25524OyKAjw','169464zBoOdl','4BbsgyR','1355388UWdGAz','279OypSmd','21AFsckA','393660NlJgeW','../commands/registry.js','195241sWCeGI'];a252_0x3a03=function(){return _0x3122c3;};return a252_0x3a03();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a252_0x34e0(_0x47f17e,_0x4df77f){_0x47f17e=_0x47f17e-0x104;const _0x3a032a=a252_0x3a03();let _0x34e07d=_0x3a032a[_0x47f17e];return _0x34e07d;}export async function buildSchemaPayload(){const _0x30aba9=a252_0x34e0,{serviceRegistry:_0x1c6fea,findDefinition:_0x3a1848}=await import(_0x30aba9(0x105));return a252_0x44d4bd({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1c6fea,'buildAllFlags':buildAllFlags,'findDefinition':_0x3a1848});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a253_0x53aa(_0x3b747c,_0x22ef35){_0x3b747c=_0x3b747c-0xb8;var _0x4f696f=a253_0x4f69();var _0x53aaa3=_0x4f696f[_0x3b747c];return _0x53aaa3;}(function(_0x4350f9,_0x3b6de5){var _0x5731c4=a253_0x53aa,_0x2fbd96=_0x4350f9();while(!![]){try{var _0x47da34=-parseInt(_0x5731c4(0xb8))/0x1*(parseInt(_0x5731c4(0xbd))/0x2)+-parseInt(_0x5731c4(0xc1))/0x3+parseInt(_0x5731c4(0xb9))/0x4*(-parseInt(_0x5731c4(0xba))/0x5)+parseInt(_0x5731c4(0xbc))/0x6+-parseInt(_0x5731c4(0xc2))/0x7*(-parseInt(_0x5731c4(0xbe))/0x8)+parseInt(_0x5731c4(0xbf))/0x9*(parseInt(_0x5731c4(0xbb))/0xa)+parseInt(_0x5731c4(0xc0))/0xb;if(_0x47da34===_0x3b6de5)break;else _0x2fbd96['push'](_0x2fbd96['shift']());}catch(_0x5716b5){_0x2fbd96['push'](_0x2fbd96['shift']());}}}(a253_0x4f69,0xcacf3));function a253_0x4f69(){var _0x24e160=['4352544MRyYaV','7JvUjxK','1522wpcBuF','3066708itZUna','5awPnzY','970JQziwA','30048wwvNFr','1294iqSSbX','13015592sFBQyr','133659QGxARw','10565082BQFxzX'];a253_0x4f69=function(){return _0x24e160;};return a253_0x4f69();}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.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.0-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "fb59cf5";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-22T06:09:33.895Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a254_0xf0cc58=a254_0x5529;(function(_0x3ac4df,_0xcc509f){const _0x4cbe80=a254_0x5529,_0x4e2197=_0x3ac4df();while(!![]){try{const _0x4c840c=parseInt(_0x4cbe80(0xb5))/0x1+parseInt(_0x4cbe80(0xbc))/0x2+parseInt(_0x4cbe80(0xbe))/0x3*(-parseInt(_0x4cbe80(0xbd))/0x4)+-parseInt(_0x4cbe80(0xbf))/0x5*(parseInt(_0x4cbe80(0xc0))/0x6)+parseInt(_0x4cbe80(0xb9))/0x7+-parseInt(_0x4cbe80(0xb6))/0x8+-parseInt(_0x4cbe80(0xba))/0x9*(-parseInt(_0x4cbe80(0xbb))/0xa);if(_0x4c840c===_0xcc509f)break;else _0x4e2197['push'](_0x4e2197['shift']());}catch(_0x870e51){_0x4e2197['push'](_0x4e2197['shift']());}}}(a254_0x454e,0xc9800));function a254_0x454e(){const _0x5c72d8=['797754loZvdK','486571sXNSgc','4171416HGCYCm','fb59cf5','2026-08-22T06:09:33.895Z','6764751GzQTba','19611198hTCsgV','10pJUMRk','620954aBkcgB','4532572dVlrvc','3EOHMfs','55lEbHHX'];a254_0x454e=function(){return _0x5c72d8;};return a254_0x454e();}export const VERSION='2.5.0-beta.3';export const GIT_TAG='v2.5.0-beta.3';export const GIT_COMMIT=a254_0xf0cc58(0xb7);function a254_0x5529(_0x300727,_0x54030d){_0x300727=_0x300727-0xb5;const _0x454e08=a254_0x454e();let _0x552913=_0x454e08[_0x300727];return _0x552913;}export const BUILD_TIME=a254_0xf0cc58(0xb8);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41cf5d,_0x2275ae){var _0x155e13=a255_0x1d05,_0x23041f=_0x41cf5d();while(!![]){try{var _0x1f91e0=parseInt(_0x155e13(0xa5))/0x1+parseInt(_0x155e13(0xaa))/0x2*(parseInt(_0x155e13(0xa4))/0x3)+parseInt(_0x155e13(0xa6))/0x4*(parseInt(_0x155e13(0xa9))/0x5)+parseInt(_0x155e13(0x9c))/0x6+parseInt(_0x155e13(0xa3))/0x7+parseInt(_0x155e13(0xa0))/0x8*(-parseInt(_0x155e13(0x9b))/0x9)+parseInt(_0x155e13(0x9d))/0xa*(-parseInt(_0x155e13(0xa7))/0xb);if(_0x1f91e0===_0x2275ae)break;else _0x23041f['push'](_0x23041f['shift']());}catch(_0x47c307){_0x23041f['push'](_0x23041f['shift']());}}}(a255_0x417a,0x5e469));import a255_0x54dc9d from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a255_0x1d05(_0x4a9877,_0x174369){_0x4a9877=_0x4a9877-0x9a;var _0x417a62=a255_0x417a();var _0x1d0587=_0x417a62[_0x4a9877];return _0x1d0587;}function a255_0x417a(){var _0x6e9e72=['\x20\x20Use\x20','4278323XjRZnZ','1782rUUFQQ','38536OnNwAi','4OiGJgB','1485aRVwqO','bold','246005pLxeUN','1252CLbvHg','log','99vGADQu','898806tNFxIU','58930mSYIVr','\x20--help','\x20to\x20view\x20available\x20commands.','28264PeUtxK','green'];a255_0x417a=function(){return _0x6e9e72;};return a255_0x417a();}export function showHelp(){var _0x2b08fc=a255_0x1d05;console[_0x2b08fc(0x9a)](),console[_0x2b08fc(0x9a)](a255_0x54dc9d[_0x2b08fc(0xa1)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x2b08fc(0x9a)](_0x2b08fc(0xa2)+a255_0x54dc9d[_0x2b08fc(0xa1)][_0x2b08fc(0xa8)](CLI_BIN_NAME+_0x2b08fc(0x9e))+_0x2b08fc(0x9f)),console[_0x2b08fc(0x9a)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a256_0xe8ab(){const _0x5d545c=['369560IjJVcQ','1930077wHvNEm','394339kkESSy','already\x20current','changed','Installation\x20failed','skillVersion','error','525958qVgXhU','\x20at\x20','10TTYyyR','code','installed','15438972dYgNwn','12pYdfqU','FAILED','70fHowxj','warn','35RFJObZ','975036MbNlLp','1PPjDFa','log','253074qHEDis','SOURCE_INVALID'];a256_0xe8ab=function(){return _0x5d545c;};return a256_0xe8ab();}(function(_0x343d03,_0x14473b){const _0x1d5795=a256_0x3ece,_0x43f122=_0x343d03();while(!![]){try{const _0x14b939=parseInt(_0x1d5795(0x1ea))/0x1*(-parseInt(_0x1d5795(0x1de))/0x2)+parseInt(_0x1d5795(0x1ec))/0x3*(parseInt(_0x1d5795(0x1e4))/0x4)+parseInt(_0x1d5795(0x1e0))/0x5*(-parseInt(_0x1d5795(0x1e9))/0x6)+parseInt(_0x1d5795(0x1e8))/0x7*(-parseInt(_0x1d5795(0x1ee))/0x8)+-parseInt(_0x1d5795(0x1ef))/0x9+parseInt(_0x1d5795(0x1e6))/0xa*(-parseInt(_0x1d5795(0x1f0))/0xb)+parseInt(_0x1d5795(0x1e3))/0xc;if(_0x14b939===_0x14473b)break;else _0x43f122['push'](_0x43f122['shift']());}catch(_0x26b991){_0x43f122['push'](_0x43f122['shift']());}}}(a256_0xe8ab,0x3e53d));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a256_0x3ece(_0x43d9e7,_0x325e85){_0x43d9e7=_0x43d9e7-0x1de;const _0xe8ab50=a256_0xe8ab();let _0x3ece7c=_0xe8ab50[_0x43d9e7];return _0x3ece7c;}export async function runPostinstall(_0x331d50={}){const _0x56cb08=a256_0x3ece,_0x4bb8c8=installBuiltinSkill(_0x331d50);if(_0x4bb8c8['ok']){const _0x419e03=_0x4bb8c8[_0x56cb08(0x1f2)]?_0x56cb08(0x1e2):_0x56cb08(0x1f1),_0x180b6f=_0x4bb8c8['installedPath']?_0x56cb08(0x1df)+_0x4bb8c8['installedPath']:'\x20via\x20skills@latest';return console[_0x56cb08(0x1eb)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x4bb8c8[_0x56cb08(0x1f4)]+'\x20'+_0x419e03+_0x180b6f),_0x4bb8c8;}const _0x52436b='[BUILTIN_SKILL_INSTALL_'+(_0x4bb8c8[_0x56cb08(0x1e1)]??_0x56cb08(0x1e5))+']\x20'+(_0x4bb8c8[_0x56cb08(0x1f5)]??_0x56cb08(0x1f3))+'.\x20'+('Repair\x20with:\x20'+_0x4bb8c8['repairCommand']);if(_0x4bb8c8[_0x56cb08(0x1e1)]===_0x56cb08(0x1ed))throw new Error(_0x52436b);return console[_0x56cb08(0x1e7)](_0x52436b),_0x4bb8c8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a257_0x4d4e(){const _0x420ac0=['8GKqBBu','323416lGJeVb','16YJAUkR','high-risk-write','6CnWIuT','This\x20will\x20run\x20the\x20write\x20','127331CgGUHQ','2444580ajvqwS','3301193OgWHqa','replace','trim','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','17271300sImvTd','slice','4507835hFwmwg','risk','8763129POsXrm'];a257_0x4d4e=function(){return _0x420ac0;};return a257_0x4d4e();}(function(_0x2f01b9,_0x3d9dac){const _0x1f2ef5=a257_0x4b65,_0x199835=_0x2f01b9();while(!![]){try{const _0x59ac1e=-parseInt(_0x1f2ef5(0x145))/0x1*(-parseInt(_0x1f2ef5(0x141))/0x2)+parseInt(_0x1f2ef5(0x146))/0x3+-parseInt(_0x1f2ef5(0x140))/0x4+-parseInt(_0x1f2ef5(0x14e))/0x5*(parseInt(_0x1f2ef5(0x143))/0x6)+-parseInt(_0x1f2ef5(0x147))/0x7*(-parseInt(_0x1f2ef5(0x13f))/0x8)+parseInt(_0x1f2ef5(0x13e))/0x9+-parseInt(_0x1f2ef5(0x14c))/0xa;if(_0x59ac1e===_0x3d9dac)break;else _0x199835['push'](_0x199835['shift']());}catch(_0x549ff2){_0x199835['push'](_0x199835['shift']());}}}(a257_0x4d4e,0x8af95));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x511c18,_0x4a637b,_0x5b3597){const _0x30e05f=normalizeText(_0x511c18['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x4667e9=_0x30e05f||normalizeText(defaultDescription(requireWriteRisk(_0x511c18),_0x4a637b),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4a637b,'risk':requireWriteRisk(_0x511c18),'description':_0x4667e9,..._0x5b3597?{'signal':_0x5b3597}:{}};}function a257_0x4b65(_0x2feb0a,_0x5c7a23){_0x2feb0a=_0x2feb0a-0x13d;const _0x4d4e75=a257_0x4d4e();let _0x4b655c=_0x4d4e75[_0x2feb0a];return _0x4b655c;}function requireWriteRisk(_0x195abd){const _0x5ea26e=a257_0x4b65;if(_0x195abd['risk']==='write'||_0x195abd[_0x5ea26e(0x13d)]===_0x5ea26e(0x142))return _0x195abd[_0x5ea26e(0x13d)];throw new Error(_0x5ea26e(0x14a));}function defaultDescription(_0x314654,_0x501ada){const _0x2e34d1=a257_0x4b65;if(_0x314654==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x501ada+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x2e34d1(0x144)+_0x501ada+_0x2e34d1(0x14b);}function normalizeText(_0x562a2d,_0x3270ab){const _0x2aedc3=a257_0x4b65;if(typeof _0x562a2d!=='string')return'';return _0x562a2d[_0x2aedc3(0x148)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2aedc3(0x148)](/\s+/g,'\x20')[_0x2aedc3(0x149)]()[_0x2aedc3(0x14d)](0x0,_0x3270ab);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4dceae,_0x5ddd4e){var _0x1b7e8a=a258_0x2c05,_0x68ff8d=_0x4dceae();while(!![]){try{var _0x4ee39f=-parseInt(_0x1b7e8a(0x16e))/0x1*(-parseInt(_0x1b7e8a(0x16d))/0x2)+parseInt(_0x1b7e8a(0x161))/0x3*(parseInt(_0x1b7e8a(0x166))/0x4)+parseInt(_0x1b7e8a(0x171))/0x5+-parseInt(_0x1b7e8a(0x15e))/0x6*(parseInt(_0x1b7e8a(0x160))/0x7)+parseInt(_0x1b7e8a(0x164))/0x8*(-parseInt(_0x1b7e8a(0x170))/0x9)+-parseInt(_0x1b7e8a(0x162))/0xa*(-parseInt(_0x1b7e8a(0x163))/0xb)+-parseInt(_0x1b7e8a(0x169))/0xc;if(_0x4ee39f===_0x5ddd4e)break;else _0x68ff8d['push'](_0x68ff8d['shift']());}catch(_0x19874b){_0x68ff8d['push'](_0x68ff8d['shift']());}}}(a258_0x3be6,0x3be67));function a258_0x3be6(){var _0x37c49e=['278564TEPLpS','4120AYzFqq','command','155920kKXDEw','join','trim','4729500RXiqer','write','rabetbase.write.completed','risk','6BDAqAp','158791RAMWZj','filter','7596gNMdqJ','1617070OomgwS','423042PYAOMj','split','7HRGfVk','9stIsOf','90cwlRSr'];a258_0x3be6=function(){return _0x37c49e;};return a258_0x3be6();}function a258_0x2c05(_0x61b1aa,_0x4d5626){_0x61b1aa=_0x61b1aa-0x15e;var _0x3be677=a258_0x3be6();var _0x2c05f7=_0x3be677[_0x61b1aa];return _0x2c05f7;}export function canonicalRabetbaseOperation(_0x17ae90){var _0x425fc0=a258_0x2c05;return[_0x17ae90['service'],..._0x17ae90[_0x425fc0(0x165)][_0x425fc0(0x168)]()[_0x425fc0(0x15f)](/\s+/)][_0x425fc0(0x16f)](Boolean)[_0x425fc0(0x167)]('.');}export function createRabetbaseWriteMetadata(_0x2b5d59,_0x20925b,_0x21d120,_0x24e612){var _0x3226b9=a258_0x2c05;if(_0x24e612||_0x21d120['ok']!==!![]||_0x2b5d59[_0x3226b9(0x16c)]!==_0x3226b9(0x16a)&&_0x2b5d59[_0x3226b9(0x16c)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3226b9(0x16b),'operation':_0x20925b,'risk':_0x2b5d59[_0x3226b9(0x16c)]}}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d853b,_0x59ea16){const _0xd7c07c=a259_0x2a72,_0x3470dd=_0x2d853b();while(!![]){try{const _0x5d63a4=parseInt(_0xd7c07c(0x8d))/0x1+parseInt(_0xd7c07c(0x82))/0x2+parseInt(_0xd7c07c(0x90))/0x3*(-parseInt(_0xd7c07c(0x8a))/0x4)+-parseInt(_0xd7c07c(0x96))/0x5*(parseInt(_0xd7c07c(0x8f))/0x6)+parseInt(_0xd7c07c(0x79))/0x7*(parseInt(_0xd7c07c(0x7e))/0x8)+parseInt(_0xd7c07c(0x84))/0x9+-parseInt(_0xd7c07c(0x93))/0xa*(parseInt(_0xd7c07c(0x98))/0xb);if(_0x5d63a4===_0x59ea16)break;else _0x3470dd['push'](_0x3470dd['shift']());}catch(_0x5009ee){_0x3470dd['push'](_0x3470dd['shift']());}}}(a259_0x2805,0x9639f));function a259_0x2805(){const _0x24f761=['52829lfYdNz','data','yes','dry-run','present','584GsssZL','aborted','reason','result','1859876vTdBKo','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','643167msbTtN','stringify','definition','write','signal','risk','21116sZCCjq','confirmation','rawFlags','1183730cvNLUW','confirm','24072BiHNwF','612HbGDVV','dryRun','Rabetbase\x20invocation\x20aborted.','1210590AWaApa','format','message','1150JDvIzi','high-risk-write','11OOPmXw','execute','AbortError','command','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.'];a259_0x2805=function(){return _0x24f761;};return a259_0x2805();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a259_0x2a72(_0x3c3b7d,_0x553a2f){_0x3c3b7d=_0x3c3b7d-0x76;const _0x280531=a259_0x2805();let _0x2a72ad=_0x280531[_0x3c3b7d];return _0x2a72ad;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x9337ba,command:_0x398385,risk:_0x20a214,dryRun:_0x252c94}){const _0x581e6f=a259_0x2a72;return JSON[_0x581e6f(0x85)]({'ok':_0x9337ba['ok'],'command':_0x398385,'risk':_0x20a214,..._0x252c94?{'dryRun':!![]}:{},..._0x9337ba[_0x581e6f(0x7a)]!==undefined?{'data':_0x9337ba['data']}:{},..._0x9337ba[_0x581e6f(0x95)]?{'message':_0x9337ba['message']}:{}});}};export async function invokeRabetbase(_0x1ae5d4,_0x3fa450){const _0x40a3ab=a259_0x2a72;throwIfAborted(_0x3fa450['signal']);const _0x16f31e=await resolveRabetbaseInvocation(_0x1ae5d4),_0x2c9a11=canonicalRabetbaseOperation(_0x16f31e['definition']);return await confirmWriteBeforeQueue(_0x16f31e[_0x40a3ab(0x86)],_0x16f31e[_0x40a3ab(0x8c)],_0x2c9a11,_0x3fa450),runSerialized(async()=>{const _0x2a89fd=_0x40a3ab,_0x3788fc={};try{throwIfAborted(_0x3fa450['signal']);const _0xd8e928=buildConfigFromFlags(_0x16f31e['rawFlags']);await initGlobalEnvironment(_0xd8e928);const _0x3f4d1a=createPipelineEnv(_0xd8e928,{..._0x16f31e[_0x2a89fd(0x8c)],'yes':_0x16f31e[_0x2a89fd(0x86)][_0x2a89fd(0x89)]===_0x2a89fd(0x97)?!![]:_0x16f31e['rawFlags'][_0x2a89fd(0x7b)],'nonInteractive':!![]},_0x16f31e['args']);_0x3f4d1a['isNonInteractive']=!![],_0x3f4d1a['riskLevel']=_0x2a89fd(0x97);const _0x4155b5=withAbortSignal(_0x16f31e['definition'],_0x3fa450[_0x2a89fd(0x88)]),_0x256bcd=createRabetbaseRunnerAdapter({'formatOutput'(_0x16dca3,_0x1c9104){const _0x2bc2d6=_0x2a89fd;_0x3788fc[_0x2bc2d6(0x81)]=_0x16dca3,_0x3788fc[_0x2bc2d6(0x77)]=_0x1c9104[_0x2bc2d6(0x77)],_0x3788fc[_0x2bc2d6(0x89)]=_0x1c9104[_0x2bc2d6(0x89)],_0x3788fc[_0x2bc2d6(0x94)]=_0x1c9104[_0x2bc2d6(0x94)],_0x3788fc[_0x2bc2d6(0x91)]=_0x1c9104[_0x2bc2d6(0x91)]===!![];},async 'confirmHighRisk'(){const _0x11cad2=_0x2a89fd;throw new Error(_0x11cad2(0x83));}});await runCommand(_0x4155b5,_0x3f4d1a,_0x256bcd);if(!_0x3788fc[_0x2a89fd(0x81)]||!_0x3788fc[_0x2a89fd(0x77)]||!_0x3788fc[_0x2a89fd(0x89)]||!_0x3788fc[_0x2a89fd(0x94)])throw new Error(_0x2a89fd(0x78));const _0x5ae2c2=_0x3788fc[_0x2a89fd(0x91)]===!![],_0x1d8678=_0x3fa450['presentation']??defaultPresentation,_0x5190ca={'result':_0x3788fc['result'],'command':_0x3788fc[_0x2a89fd(0x77)],'operation':_0x2c9a11,'risk':_0x3788fc[_0x2a89fd(0x89)],'format':_0x3788fc[_0x2a89fd(0x94)],'dryRun':_0x5ae2c2},_0x86b256=createRabetbaseWriteMetadata(_0x16f31e[_0x2a89fd(0x86)],_0x2c9a11,_0x3788fc['result'],_0x5ae2c2);let _0x4b3e99;try{_0x4b3e99=await _0x1d8678[_0x2a89fd(0x7d)](_0x5190ca);}catch(_0x3a39de){if(!_0x86b256||_0x1d8678===defaultPresentation)throw _0x3a39de;_0x4b3e99=await defaultPresentation[_0x2a89fd(0x7d)](_0x5190ca);}return{'operation':_0x2c9a11,'risk':_0x3788fc[_0x2a89fd(0x89)],'mode':_0x5ae2c2?_0x2a89fd(0x7c):_0x2a89fd(0x99),'result':_0x3788fc['result'],'output':_0x4b3e99,..._0x86b256?{'metadata':_0x86b256}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1200f5,_0x3b5457,_0xf9831a,_0xa7bdf5){const _0x1df448=a259_0x2a72;if(_0x3b5457[_0x1df448(0x91)]===!![]||_0x1200f5[_0x1df448(0x89)]!==_0x1df448(0x87)&&_0x1200f5[_0x1df448(0x89)]!==_0x1df448(0x97))return;await _0xa7bdf5[_0x1df448(0x8b)][_0x1df448(0x8e)](buildRabetbaseConfirmationRequest(_0x1200f5,_0xf9831a,_0xa7bdf5[_0x1df448(0x88)]));}function withAbortSignal(_0x193e32,_0x28b64d){return{..._0x193e32,async 'execute'(_0x19a9d3){const _0x29283b=a259_0x2a72;return throwIfAborted(_0x28b64d),_0x193e32[_0x29283b(0x99)](_0x19a9d3);}};}function throwIfAborted(_0x3fa30d){const _0x10ba8f=a259_0x2a72;if(_0x3fa30d?.[_0x10ba8f(0x7f)])throw _0x3fa30d[_0x10ba8f(0x80)]instanceof Error?_0x3fa30d[_0x10ba8f(0x80)]:new DOMException(_0x10ba8f(0x92),_0x10ba8f(0x76));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a260_0x8564=a260_0x3b1c;(function(_0x528618,_0x325fdc){const _0x10a01e=a260_0x3b1c,_0x7daa45=_0x528618();while(!![]){try{const _0x1a4ea6=parseInt(_0x10a01e(0xe8))/0x1+parseInt(_0x10a01e(0xef))/0x2+-parseInt(_0x10a01e(0xee))/0x3*(-parseInt(_0x10a01e(0xeb))/0x4)+parseInt(_0x10a01e(0xea))/0x5+-parseInt(_0x10a01e(0xed))/0x6+-parseInt(_0x10a01e(0xe9))/0x7*(-parseInt(_0x10a01e(0xec))/0x8)+-parseInt(_0x10a01e(0xf1))/0x9;if(_0x1a4ea6===_0x325fdc)break;else _0x7daa45['push'](_0x7daa45['shift']());}catch(_0x30a7a0){_0x7daa45['push'](_0x7daa45['shift']());}}}(a260_0x2d62,0x2a0c0));function a260_0x2d62(){const _0x16a579=['21CVTXhP','870925bLdRZf','8AyMEvR','725496yeejbX','1410342dWjyHA','426261EwmFmH','262308fPbjse','resolve','5882508WGhaNL','catch','199319KxuZMB'];a260_0x2d62=function(){return _0x16a579;};return a260_0x2d62();}let tail=Promise[a260_0x8564(0xf0)]();function a260_0x3b1c(_0x2d9bef,_0x349d3e){_0x2d9bef=_0x2d9bef-0xe7;const _0x2d62c1=a260_0x2d62();let _0x3b1cc0=_0x2d62c1[_0x2d9bef];return _0x3b1cc0;}export async function runSerialized(_0x29f8fb){const _0x1c65c5=a260_0x8564,_0x305bb0=tail;let _0x34e710;tail=new Promise(_0x4ff86e=>{_0x34e710=_0x4ff86e;}),await _0x305bb0[_0x1c65c5(0xe7)](()=>undefined);try{return await _0x29f8fb();}finally{_0x34e710();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a261_0x2305(_0x19bf59,_0x596c5b){_0x19bf59=_0x19bf59-0x1c9;const _0x1d7f4a=a261_0x1d7f();let _0x2305ba=_0x1d7f4a[_0x19bf59];return _0x2305ba;}(function(_0x47b071,_0x41707b){const _0x52d9d7=a261_0x2305,_0x487d54=_0x47b071();while(!![]){try{const _0x102a25=-parseInt(_0x52d9d7(0x1d0))/0x1+-parseInt(_0x52d9d7(0x1dc))/0x2*(parseInt(_0x52d9d7(0x1d6))/0x3)+-parseInt(_0x52d9d7(0x1d5))/0x4*(-parseInt(_0x52d9d7(0x1d7))/0x5)+parseInt(_0x52d9d7(0x1df))/0x6*(parseInt(_0x52d9d7(0x1da))/0x7)+-parseInt(_0x52d9d7(0x1de))/0x8*(parseInt(_0x52d9d7(0x1cf))/0x9)+-parseInt(_0x52d9d7(0x1ce))/0xa+parseInt(_0x52d9d7(0x1d3))/0xb*(parseInt(_0x52d9d7(0x1cd))/0xc);if(_0x102a25===_0x41707b)break;else _0x487d54['push'](_0x487d54['shift']());}catch(_0x770726){_0x487d54['push'](_0x487d54['shift']());}}}(a261_0x1d7f,0x6ae83));import a261_0x1290a6 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a261_0x1d7f(){const _0x4523b6=['`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','unknownCommand','slice','2856SyVqNl','2706510fOlsqB','375138vZcEnb','834983MnPEJF','message','wildcardDef','95084hFrIZZ','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','9036DDyZec','828420DSxwdt','410HdBpFn','hint','input','140161uYAQSc','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','4EVTqPt','validation','32KmwqlQ','6YZbptU','defaultCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.'];a261_0x1d7f=function(){return _0x4523b6;};return a261_0x1d7f();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x3de1f2){const _0x5bc28e=a261_0x2305,_0x5012cb=a261_0x1290a6('',{'importMeta':import.meta,'argv':[..._0x3de1f2],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4a66d8=[..._0x5012cb[_0x5bc28e(0x1d9)]],_0x3aac8d=_0x5012cb['flags'],_0xf8dea5=_0x4a66d8[0x0];if(!_0xf8dea5)throw CliErrors['validation'](_0x5bc28e(0x1d4));const _0xdaf864=resolveRemovedCommand(_0xf8dea5,_0x4a66d8[0x1]);if(_0xdaf864)throw CliErrors[_0x5bc28e(0x1dd)](_0xdaf864[_0x5bc28e(0x1d1)],_0xdaf864[_0x5bc28e(0x1d8)]);if(_0xf8dea5==='run')throw CliErrors[_0x5bc28e(0x1dd)](_0x5bc28e(0x1ca),_0x5bc28e(0x1c9));if(!isKnownService(_0xf8dea5))throw CliErrors[_0x5bc28e(0x1cb)](_0x4a66d8['join']('\x20'));const _0x110996=getServiceEntry(_0xf8dea5),_0x10bd11=_0x4a66d8[0x1],_0x3d1777=_0x10bd11||_0x110996[_0x5bc28e(0x1e0)];if(!_0x3d1777){if(_0x110996[_0x5bc28e(0x1d2)])return{'definition':_0x110996['wildcardDef'],'rawFlags':_0x3aac8d,'args':[]};throw CliErrors['validation'](_0x5bc28e(0x1db)+_0xf8dea5+'\x22.');}const _0x222d90=findDefinition(_0xf8dea5,_0x3d1777);if(_0x222d90)return{'definition':_0x222d90,'rawFlags':_0x3aac8d,'args':_0x4a66d8[_0x5bc28e(0x1cc)](0x2)};if(_0x110996[_0x5bc28e(0x1d2)])return{'definition':_0x110996[_0x5bc28e(0x1d2)],'rawFlags':_0x3aac8d,'args':[_0x3d1777,..._0x4a66d8['slice'](0x2)]};throw CliErrors['unknownCommand'](_0xf8dea5+'\x20'+_0x3d1777);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a263_0xab2093=a263_0x3187;(function(_0x41c66e,_0x4b5219){const _0x537329=a263_0x3187,_0x2c225b=_0x41c66e();while(!![]){try{const _0xfc2286=-parseInt(_0x537329(0x1af))/0x1*(-parseInt(_0x537329(0x1e9))/0x2)+-parseInt(_0x537329(0x1c0))/0x3*(-parseInt(_0x537329(0x1e5))/0x4)+parseInt(_0x537329(0x1e3))/0x5+-parseInt(_0x537329(0x1c3))/0x6*(-parseInt(_0x537329(0x1b5))/0x7)+parseInt(_0x537329(0x1de))/0x8+-parseInt(_0x537329(0x1c8))/0x9*(parseInt(_0x537329(0x1ea))/0xa)+parseInt(_0x537329(0x1c5))/0xb*(-parseInt(_0x537329(0x1db))/0xc);if(_0xfc2286===_0x4b5219)break;else _0x2c225b['push'](_0x2c225b['shift']());}catch(_0x383679){_0x2c225b['push'](_0x2c225b['shift']());}}}(a263_0x47f6,0xd9057));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';function a263_0x3187(_0x2f59db,_0x352d4c){_0x2f59db=_0x2f59db-0x1af;const _0x47f624=a263_0x47f6();let _0x3187ca=_0x47f624[_0x2f59db];return _0x3187ca;}import{homedir}from'node:os';function a263_0x47f6(){const _0xbc756=['101213PCpShM','current','update','error','name','manifest',':\x5cs*(.+)$','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','version','version_mismatch','installedPath','9SmVqnF','unknown','SOURCE_INVALID','30DXzLjj','match','11012705opYVMm','skipped','present','2201382IamMWL','message','skills','rabetbase.manifest.json','state','startsWith','sha256','digest','SKILL.md','reason','split','trim','unverifiable','Unsafe\x20manifest\x20path:\x20','package.json','missing','skills@latest\x20exited\x20','Unsupported\x20Skill\x20entry:\x20','absent','24pykUUX','packageRoot','Installed\x20Skill\x20state\x20is\x20','7483200BmFfQq','includes','packageVersion','utf8','length','8124545JoypIP','join','386872bWrPMZ','hex','files','rabetbase\x20cli-skill\x20install','6UPWymm','70qTlpPc','560219itothT','parse','content_mismatch','every','skillVersion','path'];a263_0x47f6=function(){return _0xbc756;};return a263_0x47f6();}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=a263_0xab2093(0x1e8),SKILL_NAME='rabetbase';function frontmatterValue(_0x4041e7,_0xa89e28){const _0x4c758e=a263_0xab2093;return _0x4041e7[_0x4c758e(0x1c4)](new RegExp('^'+_0xa89e28+_0x4c758e(0x1bb),'m'))?.[0x1]?.[_0x4c758e(0x1d3)]()??'';}function listFiles(_0x564139,_0x147657=_0x564139){return readdirSync(_0x147657,{'withFileTypes':!![]})['flatMap'](_0x528255=>{const _0x2d0ba8=a263_0x3187,_0x2d64ad=join(_0x147657,_0x528255[_0x2d0ba8(0x1b9)]),_0x40fb16=lstatSync(_0x2d64ad);if(_0x40fb16['isSymbolicLink']())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2d64ad);if(_0x40fb16['isDirectory']())return listFiles(_0x564139,_0x2d64ad);if(!_0x40fb16['isFile']())throw new Error(_0x2d0ba8(0x1d9)+_0x2d64ad);return[relative(_0x564139,_0x2d64ad)[_0x2d0ba8(0x1d2)](sep)[_0x2d0ba8(0x1e4)]('/')];})['sort']((_0x37d65f,_0x460191)=>_0x37d65f<_0x460191?-0x1:_0x37d65f>_0x460191?0x1:0x0);}function digestFiles(_0x5c0d39,_0x1ead1d){const _0x598ea8=a263_0xab2093,_0x4bb961=createHash(_0x598ea8(0x1ce));for(const _0x1ec934 of _0x1ead1d){if(_0x1ec934[_0x598ea8(0x1cd)]('/')||_0x1ec934['split']('/')[_0x598ea8(0x1df)]('..')||_0x1ec934[_0x598ea8(0x1df)]('\x5c'))throw new Error(_0x598ea8(0x1d5)+_0x1ec934);_0x4bb961['update'](_0x1ec934),_0x4bb961[_0x598ea8(0x1b7)]('\x00'),_0x4bb961[_0x598ea8(0x1b7)](readFileSync(join(_0x5c0d39,..._0x1ec934[_0x598ea8(0x1d2)]('/')))),_0x4bb961[_0x598ea8(0x1b7)]('\x00');}return _0x4bb961[_0x598ea8(0x1cf)](_0x598ea8(0x1e6));}function sameFiles(_0x16b34a,_0xb5acea){const _0x1ea284=a263_0xab2093;return _0x16b34a[_0x1ea284(0x1e2)]===_0xb5acea['length']&&_0x16b34a[_0x1ea284(0x1b2)]((_0x28091f,_0x3277e7)=>_0x28091f===_0xb5acea[_0x3277e7]);}function readSource(_0x1b32f6){const _0x127696=a263_0xab2093,_0x518670=JSON['parse'](readFileSync(join(_0x1b32f6,_0x127696(0x1d6)),_0x127696(0x1e1))),_0x51304f=JSON[_0x127696(0x1b0)](readFileSync(join(_0x1b32f6,_0x127696(0x1ca),_0x127696(0x1cb)),_0x127696(0x1e1))),_0x414cdc=join(_0x1b32f6,_0x127696(0x1ca),SKILL_NAME),_0x2fbfc1=frontmatterValue(readFileSync(join(_0x414cdc,'SKILL.md'),_0x127696(0x1e1)),_0x127696(0x1bd)),_0x45be41=listFiles(_0x414cdc);if(_0x51304f['schemaVersion']!==0x1||_0x51304f[_0x127696(0x1b9)]!==SKILL_NAME||!_0x518670[_0x127696(0x1bd)]||_0x51304f[_0x127696(0x1e0)]!==_0x518670[_0x127696(0x1bd)]||_0x51304f['skillVersion']!==_0x518670[_0x127696(0x1bd)]||_0x2fbfc1!==_0x518670[_0x127696(0x1bd)]||!sameFiles(_0x45be41,_0x51304f[_0x127696(0x1e7)])||digestFiles(_0x414cdc,_0x45be41)!==_0x51304f[_0x127696(0x1cf)])throw new Error(_0x127696(0x1bc));return{'packageVersion':_0x518670[_0x127696(0x1bd)],'skillVersion':_0x2fbfc1,'root':_0x414cdc,'manifest':_0x51304f};}function installedSkillPath(_0x3c9160){const _0x5b4af1=a263_0xab2093,_0x54e1b3=resolveInstalledSkill(SKILL_NAME,{'home':_0x3c9160});if(_0x54e1b3[_0x5b4af1(0x1cc)]==='present')return{'state':_0x5b4af1(0x1c7),'path':dirname(_0x54e1b3['path'])};if(_0x54e1b3['state']===_0x5b4af1(0x1da))return{'state':_0x5b4af1(0x1d7)};return{'state':_0x5b4af1(0x1d4),'reason':_0x54e1b3[_0x5b4af1(0x1d1)]};}export function inspectInstalledBuiltinSkillVersion(_0x271a4b,_0x3b12ce={}){const _0x13f573=a263_0xab2093,_0x3a2833=installedSkillPath(_0x3b12ce['home']??homedir());if(_0x3a2833[_0x13f573(0x1cc)]===_0x13f573(0x1d7))return{'state':_0x13f573(0x1d7),'expectedVersion':_0x271a4b,'repairCommand':REPAIR_COMMAND};if(_0x3a2833['state']===_0x13f573(0x1d4))return{'state':'unverifiable','expectedVersion':_0x271a4b,'reason':_0x3a2833[_0x13f573(0x1d1)],'repairCommand':REPAIR_COMMAND};try{const _0x43d11a=frontmatterValue(readFileSync(join(_0x3a2833['path'],'SKILL.md'),_0x13f573(0x1e1)),_0x13f573(0x1bd));return{'state':_0x43d11a===_0x271a4b?_0x13f573(0x1b6):_0x13f573(0x1be),'expectedVersion':_0x271a4b,'skillVersion':_0x43d11a,'installedPath':_0x3a2833[_0x13f573(0x1b4)],'repairCommand':REPAIR_COMMAND};}catch(_0x47de28){return{'state':_0x13f573(0x1d4),'expectedVersion':_0x271a4b,'installedPath':_0x3a2833['path'],'reason':_0x47de28 instanceof Error?_0x47de28[_0x13f573(0x1c9)]:String(_0x47de28),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x239c55={}){const _0xaf6add=a263_0xab2093,_0x70629e=_0x239c55[_0xaf6add(0x1dc)]??DEFAULT_PACKAGE_ROOT;let _0x9f952b;try{_0x9f952b=readSource(_0x70629e);}catch(_0x5f2f4f){return{'state':'unverifiable','packageVersion':_0xaf6add(0x1c1),'reason':_0x5f2f4f instanceof Error?_0x5f2f4f[_0xaf6add(0x1c9)]:String(_0x5f2f4f),'repairCommand':REPAIR_COMMAND};}const _0x4282f1=installedSkillPath(_0x239c55['home']??homedir());if(_0x4282f1['state']===_0xaf6add(0x1d7))return{'state':'missing','packageVersion':_0x9f952b[_0xaf6add(0x1e0)],'repairCommand':REPAIR_COMMAND};if(_0x4282f1[_0xaf6add(0x1cc)]===_0xaf6add(0x1d4))return{'state':_0xaf6add(0x1d4),'packageVersion':_0x9f952b[_0xaf6add(0x1e0)],'reason':_0x4282f1['reason'],'repairCommand':REPAIR_COMMAND};try{const _0xa9ef9d=frontmatterValue(readFileSync(join(_0x4282f1['path'],_0xaf6add(0x1d0)),_0xaf6add(0x1e1)),'version');if(_0xa9ef9d!==_0x9f952b[_0xaf6add(0x1b3)])return{'state':_0xaf6add(0x1be),'packageVersion':_0x9f952b[_0xaf6add(0x1e0)],'skillVersion':_0xa9ef9d,'installedPath':_0x4282f1['path'],'repairCommand':REPAIR_COMMAND};const _0x50b662=listFiles(_0x4282f1[_0xaf6add(0x1b4)]),_0x100788=digestFiles(_0x4282f1[_0xaf6add(0x1b4)],_0x50b662);return{'state':sameFiles(_0x50b662,_0x9f952b[_0xaf6add(0x1ba)][_0xaf6add(0x1e7)])&&_0x100788===_0x9f952b['manifest'][_0xaf6add(0x1cf)]?_0xaf6add(0x1b6):_0xaf6add(0x1b1),'packageVersion':_0x9f952b['packageVersion'],'skillVersion':_0xa9ef9d,'installedPath':_0x4282f1['path'],'digest':_0x100788,'repairCommand':REPAIR_COMMAND};}catch(_0x42315b){return{'state':_0xaf6add(0x1d4),'packageVersion':_0x9f952b[_0xaf6add(0x1e0)],'installedPath':_0x4282f1[_0xaf6add(0x1b4)],'reason':_0x42315b instanceof Error?_0x42315b[_0xaf6add(0x1c9)]:String(_0x42315b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x51360c,_0x4f0880,_0x379b07,_0x225e4d){const _0x5ab7ad=a263_0xab2093;return{'ok':![],'code':_0x51360c,'packageVersion':_0x4f0880[_0x5ab7ad(0x1e0)],'skillVersion':_0x4f0880[_0x5ab7ad(0x1b3)],'installedPath':_0x225e4d,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x379b07 instanceof Error?_0x379b07[_0x5ab7ad(0x1c9)]:String(_0x379b07)};}export function installBuiltinSkill(_0xd97cd3={}){const _0x3770ff=a263_0xab2093,_0x2f580b=_0xd97cd3['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x5ecf40=_0xd97cd3['home']??homedir();let _0x410ba1;try{_0x410ba1=readSource(_0x2f580b);}catch(_0x43eacc){return failure(_0x3770ff(0x1c2),{'packageVersion':_0x3770ff(0x1c1),'skillVersion':_0x3770ff(0x1c1)},_0x43eacc);}const _0x2a5c5b=inspectBuiltinSkill({'packageRoot':_0x2f580b,'home':_0x5ecf40}),_0xcd5bb3=runNpxSkillsAddGlobal(_0x2f580b,_0x410ba1['root'],{'stdio':_0xd97cd3['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x5ecf40}});if(_0xcd5bb3[_0x3770ff(0x1c6)])return{'ok':!![],'packageVersion':_0x410ba1[_0x3770ff(0x1e0)],'skillVersion':_0x410ba1[_0x3770ff(0x1b3)],'installedPath':_0x2a5c5b[_0x3770ff(0x1bf)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xcd5bb3['ok'])return failure('INSTALL_FAILED',_0x410ba1,_0xcd5bb3[_0x3770ff(0x1b8)]??_0x3770ff(0x1d8)+_0xcd5bb3['status']);const _0x5af612=inspectBuiltinSkill({'packageRoot':_0x2f580b,'home':_0x5ecf40});if(_0x5af612[_0x3770ff(0x1cc)]!==_0x3770ff(0x1b6))return failure('VERIFY_FAILED',_0x410ba1,_0x5af612[_0x3770ff(0x1d1)]??_0x3770ff(0x1dd)+_0x5af612[_0x3770ff(0x1cc)],_0x5af612['installedPath']);return{'ok':!![],'packageVersion':_0x410ba1[_0x3770ff(0x1e0)],'skillVersion':_0x410ba1['skillVersion'],'installedPath':_0x5af612[_0x3770ff(0x1bf)],'changed':_0x2a5c5b[_0x3770ff(0x1cc)]!==_0x3770ff(0x1b6),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56aa82,_0x1e1632){const _0x2a3b91=a264_0x3831,_0x5fb06a=_0x56aa82();while(!![]){try{const _0x3d126f=-parseInt(_0x2a3b91(0x159))/0x1+parseInt(_0x2a3b91(0x162))/0x2+parseInt(_0x2a3b91(0x167))/0x3*(-parseInt(_0x2a3b91(0x16d))/0x4)+parseInt(_0x2a3b91(0x157))/0x5+parseInt(_0x2a3b91(0x151))/0x6+parseInt(_0x2a3b91(0x152))/0x7*(-parseInt(_0x2a3b91(0x161))/0x8)+-parseInt(_0x2a3b91(0x16a))/0x9*(parseInt(_0x2a3b91(0x16f))/0xa);if(_0x3d126f===_0x1e1632)break;else _0x5fb06a['push'](_0x5fb06a['shift']());}catch(_0x1430fe){_0x5fb06a['push'](_0x5fb06a['shift']());}}}(a264_0x4cc7,0xeb4f6));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a264_0x4cc7(){const _0x168df5=['entries','setLogPath','--help','slice','\x0aAvailable\x20commands:','toLowerCase','19224WoWoiv','3811840AudRpf','-$1','enable-bff-save','push','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','75dnmtRV','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','startsWith','9jjLkNn','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','log','297404VnStne','error','2326710NOVoeH','add','exit','Public\x20Open\x20Skill\x20source:\x20','dangerously-bff-save','skill','length','Unsupported\x20command:\x20','2159772HNepnR','1253rydbRz','help','includes','from','argv','6543910PbobfT','has','89251rJedgi','replace'];a264_0x4cc7=function(){return _0x168df5;};return a264_0x4cc7();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x49afda){const _0x474397=a264_0x3831,_0x1a7fcc=[];for(const [_0x15a6fb,_0x1aba5f]of Object[_0x474397(0x15b)](_0x49afda)){if(_0x1aba5f===!![]){const _0x1c5993=_0x15a6fb[_0x474397(0x15a)](/([A-Z])/g,_0x474397(0x163))[_0x474397(0x160)]();_0x1a7fcc[_0x474397(0x165)](_0x1c5993);}}return _0x1a7fcc;}export function parseDynamicFlags(){const _0xd7092b=a264_0x3831,_0x2bde64=[];for(let _0x109c35=0x3;_0x109c35<process[_0xd7092b(0x156)][_0xd7092b(0x14f)];_0x109c35++){const _0x535d85=process['argv'][_0x109c35];if(_0x535d85&&_0x535d85[_0xd7092b(0x169)]('--')){const _0x11f4a8=_0x535d85[_0xd7092b(0x15e)](0x2);_0x11f4a8&&!_0x11f4a8[_0xd7092b(0x154)]('=')&&_0x2bde64[_0xd7092b(0x165)](_0x11f4a8);}}return _0x2bde64;}export function getAllProvidedFlags(_0x8c73e0){const _0x254983=a264_0x3831,_0x1a7ef5=camelCaseFlagsToKebab(_0x8c73e0),_0x60ca72=parseDynamicFlags(),_0x48edf2=new Set([..._0x1a7ef5,..._0x60ca72]);return Array[_0x254983(0x155)](_0x48edf2);}export function normalizeLegacyBffSaveFlags(_0x1ff59f){const _0x1165f5=a264_0x3831,_0x2686bf=new Set(_0x1ff59f);return _0x2686bf[_0x1165f5(0x158)](_0x1165f5(0x173))&&_0x2686bf[_0x1165f5(0x170)](_0x1165f5(0x164)),Array[_0x1165f5(0x155)](_0x2686bf);}function a264_0x3831(_0x14ff0b,_0x203196){_0x14ff0b=_0x14ff0b-0x14e;const _0x4cc732=a264_0x4cc7();let _0x3831fb=_0x4cc732[_0x14ff0b];return _0x3831fb;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5f3291,_0x5631a0,_0x18caff){const _0x366bd5=a264_0x3831;logger[_0x366bd5(0x15c)](process['cwd']());if(_0x18caff?.[_0x366bd5(0x153)]||_0x5f3291===_0x366bd5(0x15d)){showHelp();return;}console[_0x366bd5(0x16e)]('Error:\x20Unsupported\x20command:\x20'+(_0x5f3291||'(empty)')),console['log'](_0x366bd5(0x15f)),console[_0x366bd5(0x16c)]('\x20\x20'+CLI_BIN_NAME+_0x366bd5(0x166)),console[_0x366bd5(0x16c)](''),console['log'](_0x366bd5(0x172)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x366bd5(0x16e)](_0x366bd5(0x14e),_0x366bd5(0x150)+_0x5f3291),process[_0x366bd5(0x171)](0x1);}function showHelp(){const _0x36da93=a264_0x3831;console['log']('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x36da93(0x16b)+SKILLS_INSTALL_COMMAND_LINE+_0x36da93(0x168));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x4586fe=a265_0x3c88;(function(_0x176e5b,_0x4744ec){const _0x4a9155=a265_0x3c88,_0x3cb9cb=_0x176e5b();while(!![]){try{const _0x5af1b1=-parseInt(_0x4a9155(0x1af))/0x1*(-parseInt(_0x4a9155(0x1a9))/0x2)+parseInt(_0x4a9155(0x1b0))/0x3*(-parseInt(_0x4a9155(0x1a0))/0x4)+parseInt(_0x4a9155(0x1b9))/0x5*(parseInt(_0x4a9155(0x195))/0x6)+parseInt(_0x4a9155(0x1a6))/0x7+-parseInt(_0x4a9155(0x1bd))/0x8*(-parseInt(_0x4a9155(0x19a))/0x9)+-parseInt(_0x4a9155(0x19f))/0xa*(parseInt(_0x4a9155(0x1c2))/0xb)+parseInt(_0x4a9155(0x1b5))/0xc;if(_0x5af1b1===_0x4744ec)break;else _0x3cb9cb['push'](_0x3cb9cb['shift']());}catch(_0x141cbe){_0x3cb9cb['push'](_0x3cb9cb['shift']());}}}(a265_0x3b49,0x88d3b));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='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x4586fe(0x1a7);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a265_0x4586fe(0x1be);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x4586fe(0x1c4);export const DEFAULT_RABETBASE_SKILL_NAME=a265_0x4586fe(0x1ad);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x34f742){const _0x22662e=a265_0x4586fe;switch(_0x34f742[_0x22662e(0x1b2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x29c998){const _0x2c990a=a265_0x4586fe,_0x124b49=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x29c998&&_0x124b49[_0x2c990a(0x1ac)](NPX_SKILLS_FLAG_SKILL,_0x29c998),_0x124b49;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x4586fe(0x1c5),...buildNpxSkillsAddArgv()][a265_0x4586fe(0x1b8)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x4586fe(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');function a265_0x3c88(_0x1ff64e,_0x42c546){_0x1ff64e=_0x1ff64e-0x190;const _0x3b493f=a265_0x3b49();let _0x3c8800=_0x3b493f[_0x1ff64e];return _0x3c8800;}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x24cb17,_0x3509bf,_0x19e1c6){return{'ok':![],'status':_0x3509bf,'code':_0x24cb17,'error':'['+_0x24cb17+']\x20'+_0x19e1c6};}function spawnOptions(_0x2e753f,_0x57fcb6){const _0x1a20df=a265_0x4586fe,_0x3c31f1={...process.env};return delete _0x3c31f1['npm_config_global'],delete _0x3c31f1['NPM_CONFIG_GLOBAL'],{'cwd':_0x2e753f,'stdio':_0x57fcb6,'env':_0x3c31f1,'shell':![],..._0x57fcb6===_0x1a20df(0x1a1)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4f6124,_0x2737f1,_0x3c43f7,_0x185ea1){const _0x34ae80=a265_0x4586fe,_0x587ae2=[_0x4f6124[_0x34ae80(0x1a3)]?_0x4f6124[_0x34ae80(0x1a3)]['toString']():'',_0x4f6124['stderr']?_0x4f6124[_0x34ae80(0x199)][_0x34ae80(0x1ae)]():''][_0x34ae80(0x1c3)](Boolean)['join']('\x0a')[_0x34ae80(0x1b2)]();_0x185ea1!=='pipe'&&_0x587ae2&&console['log'](_0x587ae2);if(_0x4f6124['error']){const _0x38f9=_0x4f6124['error'],_0x18b640=_0x38f9[_0x34ae80(0x1c1)]==='ENOENT'?_0x34ae80(0x198):_0x38f9[_0x34ae80(0x1c1)]===_0x34ae80(0x196)||_0x38f9[_0x34ae80(0x1c1)]===_0x34ae80(0x1c0)?_0x34ae80(0x19c):_0x34ae80(0x1b6);return failure(_0x18b640,_0x4f6124['status'],_0x38f9[_0x34ae80(0x1b4)]);}if(_0x4f6124[_0x34ae80(0x193)])return failure(_0x34ae80(0x194),_0x4f6124['status'],_0x34ae80(0x1a5)+_0x4f6124[_0x34ae80(0x193)]);if(_0x4f6124[_0x34ae80(0x1aa)]!==0x0)return failure(_0x34ae80(0x1b1),_0x4f6124[_0x34ae80(0x1aa)],_0x587ae2||'exit\x20'+(_0x4f6124[_0x34ae80(0x1aa)]??'unknown'));const _0x27aa67=_0x2737f1?resolveInstalledSkill(_0x2737f1,_0x3c43f7):undefined,_0x24c6ef=_0x587ae2[_0x34ae80(0x1c6)](/Failed to install\s+(\d+)/i);if(_0x24c6ef&&Number(_0x24c6ef[0x1])>0x0){const _0x1aa04d=_0x34ae80(0x197)+_0x24c6ef[0x1]+'\x20failed\x20target(s)'+(_0x587ae2?':\x0a'+_0x587ae2:'');if(_0x27aa67?.[_0x34ae80(0x191)]===_0x34ae80(0x1bc))return console[_0x34ae80(0x1b7)]('!\x20'+_0x1aa04d),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x1aa04d);}if(_0x27aa67){if(_0x27aa67['state']===_0x34ae80(0x1ab))return failure(_0x34ae80(0x19e),0x0,_0x34ae80(0x19b)+_0x2737f1+_0x34ae80(0x1a4)+_0x27aa67[_0x34ae80(0x1a2)][_0x34ae80(0x1b8)](',\x20')+')');_0x27aa67[_0x34ae80(0x191)]===_0x34ae80(0x19d)&&console['warn'](_0x34ae80(0x1a8)+_0x2737f1+_0x34ae80(0x1ba)+_0x27aa67['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x45df2a,_0x23aefd){const _0x16def2=a265_0x4586fe;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4e9ff1=_0x23aefd?.[_0x16def2(0x190)]??_0x16def2(0x192),_0x44a94b=resolveNpmBin(_0x16def2(0x1c5)),_0xc94361=buildNpxSkillsAddArgv(_0x23aefd?.[_0x16def2(0x1bb)]),_0x5ebe83=['npx',..._0xc94361][_0x16def2(0x1b8)]('\x20');console[_0x16def2(0x1c7)]('*\x20'+_0x5ebe83);const _0x373b71=spawnSync(_0x44a94b,_0xc94361,spawnOptions(_0x45df2a,_0x4e9ff1));return normalizeSpawnResult(_0x373b71,undefined,undefined,_0x4e9ff1);}function a265_0x3b49(){const _0xcbd8b9=['SPAWN_FAILED','warn','join','1407990aEqLnR','\x22\x20install\x20state:\x20','skill','present','1275320KAuTDo','lovrabet/rabetbase','expectedSkillName','EACCES','code','9979948ZmbKqL','filter','lovrabet/lovrabet-skill','npx','match','log','stdio','state','inherit','signal','CHILD_TERMINATED','6Iflljd','EPERM','Installer\x20reported\x20','NPX_NOT_FOUND','stderr','9oTnVXp','Skill\x20\x22','PERMISSION_DENIED','unverifiable','SKILL_NOT_INSTALLED','10mxwdRy','116YhLKOy','pipe','checked','stdout','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','npx\x20terminated\x20by\x20signal\x20','1978452AFWxjm','add','!\x20Could\x20not\x20verify\x20\x22','56oqHwDk','status','absent','push','Lovrabet','toString','33773rwQfUh','85233OBSBFA','CHILD_EXIT_NONZERO','trim','remove','message','7468044sCtIlu'];a265_0x3b49=function(){return _0xcbd8b9;};return a265_0x3b49();}export function runNpxSkillsRemove(_0x489018,_0x332b27,_0x40ef0e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2cc12a=a265_0x4586fe;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4fc5e6=_0x332b27?.['stdio']??_0x2cc12a(0x192),_0x4dbbf5=resolveNpmBin('npx'),_0x5cba77=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2cc12a(0x1b3),_0x40ef0e,NPX_SKILLS_FLAG_SKILL,_0x332b27?.[_0x2cc12a(0x1bb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x332b27?.['yes']?['-y']:[]],_0x31f73a=[_0x4dbbf5,..._0x5cba77][_0x2cc12a(0x1b8)]('\x20');console[_0x2cc12a(0x1c7)]('*\x20'+_0x31f73a);const _0x5a9be8=spawnSync(_0x4dbbf5,_0x5cba77,spawnOptions(_0x489018,_0x4fc5e6));return normalizeSpawnResult(_0x5a9be8,undefined,undefined,_0x4fc5e6);}export function runNpxSkillsAddGlobal(_0x21815c,_0x4d8505,_0x17e022){const _0xb0a4e7=a265_0x4586fe;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1dd62f=resolveNpmBin(_0xb0a4e7(0x1c5)),_0x39bca4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8505,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x47f6d9=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8505,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb0a4e7(0x1b8)]('\x20');console[_0xb0a4e7(0x1c7)]('*\x20'+_0x47f6d9);const _0x3cf2df=spawnSync(_0x1dd62f,_0x39bca4,spawnOptions(_0x21815c,_0xb0a4e7(0x1a1)));return normalizeSpawnResult(_0x3cf2df,_0x17e022?.[_0xb0a4e7(0x1bf)]??resolveGlobalSkillName(_0x4d8505),_0x17e022?.['presence'],_0x17e022?.['stdio']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x37eac7=a266_0x3295;(function(_0x2d8cea,_0xfd099f){const _0x13811b=a266_0x3295,_0x376c7b=_0x2d8cea();while(!![]){try{const _0x4f31f4=-parseInt(_0x13811b(0x194))/0x1*(-parseInt(_0x13811b(0x178))/0x2)+parseInt(_0x13811b(0x181))/0x3+parseInt(_0x13811b(0x195))/0x4+parseInt(_0x13811b(0x189))/0x5*(parseInt(_0x13811b(0x179))/0x6)+parseInt(_0x13811b(0x174))/0x7*(-parseInt(_0x13811b(0x17a))/0x8)+parseInt(_0x13811b(0x171))/0x9+-parseInt(_0x13811b(0x193))/0xa;if(_0x4f31f4===_0xfd099f)break;else _0x376c7b['push'](_0x376c7b['shift']());}catch(_0x202c15){_0x376c7b['push'](_0x376c7b['shift']());}}}(a266_0x4875,0x56f37));import{existsSync,readFileSync}from'node:fs';function a266_0x3295(_0x2622a0,_0x49e6bc){_0x2622a0=_0x2622a0-0x171;const _0x487506=a266_0x4875();let _0x329558=_0x487506[_0x2622a0];return _0x329558;}import{homedir}from'node:os';function a266_0x4875(){const _0x2bf207=['unusable','present','object','4686100QIqhUj','165962jWmvLR','680760rNzpKs','\x20has\x20no\x20skills\x20map','reason','5592393WhbluT','not-recorded','number','4026421KtvVWi','utf8','kind','parse','2NIQnaM','4026CfbugB','8XfaKMs','unverifiable','lockFile','.agents','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','recorded','message','979056MHkTcg','home','absent','SKILL.md','\x20is\x20unreadable:\x20','find','globalSkillsDirs','.claude','865QsRDnk','version','includes','\x20uses\x20unsupported\x20version\x20','.skill-lock.json','skills','map'];a266_0x4875=function(){return _0x2bf207;};return a266_0x4875();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a266_0x37eac7(0x18d));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x37eac7(0x17d),a266_0x37eac7(0x18e)),join(a266_0x37eac7(0x188),a266_0x37eac7(0x18e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3e7e1b,_0x9adaa9){const _0x8e0e0c=a266_0x37eac7;if(!existsSync(_0x3e7e1b))return{'kind':_0x8e0e0c(0x172)};let _0x130624;try{_0x130624=JSON[_0x8e0e0c(0x177)](readFileSync(_0x3e7e1b,_0x8e0e0c(0x175)));}catch(_0x40506f){return{'kind':'unusable','reason':_0x3e7e1b+_0x8e0e0c(0x185)+_0x40506f[_0x8e0e0c(0x180)]};}const _0x2cc175=_0x130624;if(typeof _0x2cc175?.[_0x8e0e0c(0x18a)]!==_0x8e0e0c(0x173)||!SUPPORTED_LOCK_VERSIONS[_0x8e0e0c(0x18b)](_0x2cc175[_0x8e0e0c(0x18a)]))return{'kind':_0x8e0e0c(0x190),'reason':_0x3e7e1b+_0x8e0e0c(0x18c)+String(_0x2cc175?.[_0x8e0e0c(0x18a)])};if(!_0x2cc175[_0x8e0e0c(0x18e)]||typeof _0x2cc175[_0x8e0e0c(0x18e)]!==_0x8e0e0c(0x192))return{'kind':'unusable','reason':_0x3e7e1b+_0x8e0e0c(0x196)};return _0x2cc175['skills'][_0x9adaa9]?{'kind':'recorded'}:{'kind':_0x8e0e0c(0x172)};}export function resolveInstalledSkill(_0x4ef96c,_0x3cc9b7){const _0x504543=a266_0x37eac7,_0x257509=_0x3cc9b7?.[_0x504543(0x182)]??homedir(),_0x3c2065=_0x3cc9b7?.[_0x504543(0x187)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x504543(0x18f)](_0x23302b=>join(_0x257509,_0x23302b)),_0x4da51a=_0x3cc9b7?.[_0x504543(0x17c)]??join(_0x257509,SKILL_LOCK_RELATIVE_PATH),_0x4486d2=_0x3c2065[_0x504543(0x18f)](_0x33cd03=>join(_0x33cd03,_0x4ef96c,_0x504543(0x184))),_0x4d9c5c=_0x4486d2[_0x504543(0x186)](_0x12ff18=>existsSync(_0x12ff18));if(_0x4d9c5c)return{'state':_0x504543(0x191),'path':_0x4d9c5c};const _0x3fb1d1=readLockLookup(_0x4da51a,_0x4ef96c);if(_0x3fb1d1[_0x504543(0x176)]===_0x504543(0x190))return{'state':_0x504543(0x17b),'reason':_0x3fb1d1[_0x504543(0x197)]};if(_0x3fb1d1[_0x504543(0x176)]===_0x504543(0x17f))return{'state':_0x504543(0x17b),'reason':_0x4da51a+'\x20records\x20\x22'+_0x4ef96c+_0x504543(0x17e)+('('+_0x4486d2['join'](',\x20')+')')};return{'state':_0x504543(0x183),'checked':_0x4486d2};}
|