@lovrabet/rabetbase-cli 2.4.5 → 2.4.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +8 -7
- 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/types.d.ts +17 -2
- 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/{page/standard-page-status.d.ts → menu/visibility-update.d.ts} +1 -1
- package/lib/commands/menu/visibility-update.js +1 -0
- 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.d.ts +2 -0
- package/lib/commands/page/create.js +1 -0
- package/lib/commands/page/{react → custom}/detail.d.ts +1 -1
- package/lib/commands/page/custom/detail.js +1 -0
- package/lib/commands/page/{react → custom}/list.d.ts +1 -1
- package/lib/commands/page/custom/list.js +1 -0
- package/lib/commands/page/{react → custom}/publish.d.ts +1 -1
- package/lib/commands/page/custom/publish.js +1 -0
- package/lib/commands/page/{react → custom}/shared.d.ts +15 -15
- package/lib/commands/page/custom/shared.js +1 -0
- package/lib/commands/page/{react → custom}/syntax.d.ts +2 -2
- package/lib/commands/page/custom/syntax.js +1 -0
- package/lib/commands/page/custom/template.js +1 -0
- package/lib/commands/page/{react → custom}/update.d.ts +1 -1
- package/lib/commands/page/custom/update.js +1 -0
- package/lib/commands/page/data-list-status.d.ts +2 -0
- package/lib/commands/page/data-list-status.js +1 -0
- 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.d.ts +18 -18
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +43 -43
- 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.d.ts +3 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +35 -34
- package/skills/rabetbase/guides/backend-function.md +63 -18
- package/skills/rabetbase/guides/bff-creation-workflow.md +2 -0
- package/skills/rabetbase/guides/{react-custom-page-workflow.md → custom-page-workflow.md} +45 -45
- package/skills/rabetbase/guides/page-development-workflow.md +22 -22
- package/skills/rabetbase/knowledge/{react-page → custom-page}/components.md +2 -2
- package/skills/rabetbase/knowledge/{react-page → custom-page}/generation-standards.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-create.md +2 -0
- package/skills/rabetbase/references/{rabetbase-standard-page-status.md → rabetbase-data-list-status.md} +6 -6
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +1 -1
- package/skills/rabetbase/references/rabetbase-menu-list.md +4 -2
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +31 -0
- package/skills/rabetbase/references/{rabetbase-page-react-detail.md → rabetbase-page-custom-detail.md} +5 -5
- package/skills/rabetbase/references/{rabetbase-page-react-list.md → rabetbase-page-custom-list.md} +4 -4
- package/skills/rabetbase/references/{rabetbase-page-react-publish.md → rabetbase-page-custom-publish.md} +6 -6
- package/skills/rabetbase/references/{rabetbase-page-react-update.md → rabetbase-page-custom-update.md} +6 -6
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -4
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +4 -4
- package/skills/rabetbase/references/rabetbase-page-pull.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-restore.md +7 -7
- package/skills/rabetbase/references/rabetbase-page-sync.md +3 -3
- package/skills/rabetbase.manifest.json +13 -12
- package/lib/commands/page/react/create.d.ts +0 -2
- package/lib/commands/page/react/create.js +0 -1
- package/lib/commands/page/react/detail.js +0 -1
- package/lib/commands/page/react/list.js +0 -1
- package/lib/commands/page/react/publish.js +0 -1
- package/lib/commands/page/react/shared.js +0 -1
- package/lib/commands/page/react/syntax.js +0 -1
- package/lib/commands/page/react/template.js +0 -1
- package/lib/commands/page/react/update.js +0 -1
- package/lib/commands/page/standard-page-status.js +0 -1
- package/skills/rabetbase/references/rabetbase-page-react-create.md +0 -29
- /package/lib/commands/page/{react → custom}/template.d.ts +0 -0
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a240_0x1212(){const _0x4326a8=['432740ImjeGN','12UdqnSv','4NxgHHH','1458672HAamZP','Run\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','479385pryKNO','2849580wJCRWt','Set\x20appcode\x20via\x20`','1140771GTaIPS','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','join','642582WdSgAb','7721fVhYoc','15qnywEy','7wZUPJO','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a240_0x1212=function(){return _0x4326a8;};return a240_0x1212();}const a240_0x597810=a240_0x54ee;function a240_0x54ee(_0x265e35,_0x1213ad){_0x265e35=_0x265e35-0x110;const _0x1212a2=a240_0x1212();let _0x54ee58=_0x1212a2[_0x265e35];return _0x54ee58;}(function(_0x343187,_0x29a949){const _0xba5f41=a240_0x54ee,_0x564fc6=_0x343187();while(!![]){try{const _0x200138=-parseInt(_0xba5f41(0x114))/0x1*(-parseInt(_0xba5f41(0x11a))/0x2)+parseInt(_0xba5f41(0x110))/0x3*(parseInt(_0xba5f41(0x11b))/0x4)+parseInt(_0xba5f41(0x115))/0x5*(-parseInt(_0xba5f41(0x113))/0x6)+parseInt(_0xba5f41(0x116))/0x7*(-parseInt(_0xba5f41(0x11c))/0x8)+-parseInt(_0xba5f41(0x11f))/0x9+parseInt(_0xba5f41(0x120))/0xa+parseInt(_0xba5f41(0x119))/0xb;if(_0x200138===_0x29a949)break;else _0x564fc6['push'](_0x564fc6['shift']());}catch(_0xe8f846){_0x564fc6['push'](_0x564fc6['shift']());}}}(a240_0x1212,0x2f5c7));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a240_0x597810(0x11d)+CLI_BIN_NAME+a240_0x597810(0x117),'configMissingHint':[a240_0x597810(0x121)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Tip:\x20`'+CLI_BIN_NAME+a240_0x597810(0x118)][a240_0x597810(0x112)](a240_0x597810(0x11e)),'notInProjectHint':a240_0x597810(0x111)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d7c0b,_0x4a708d){const _0x611cfa=a241_0x25df,_0x1c03e2=_0x4d7c0b();while(!![]){try{const _0x54e867=parseInt(_0x611cfa(0x162))/0x1+parseInt(_0x611cfa(0x167))/0x2*(-parseInt(_0x611cfa(0x166))/0x3)+parseInt(_0x611cfa(0x16a))/0x4+-parseInt(_0x611cfa(0x164))/0x5+-parseInt(_0x611cfa(0x16b))/0x6+-parseInt(_0x611cfa(0x168))/0x7+parseInt(_0x611cfa(0x163))/0x8;if(_0x54e867===_0x4a708d)break;else _0x1c03e2['push'](_0x1c03e2['shift']());}catch(_0x1b114a){_0x1c03e2['push'](_0x1c03e2['shift']());}}}(a241_0x31ae,0xb8c60));function a241_0x25df(_0xc15727,_0x59ff19){_0xc15727=_0xc15727-0x162;const _0x31ae54=a241_0x31ae();let _0x25dfde=_0x31ae54[_0xc15727];return _0x25dfde;}function a241_0x31ae(){const _0xb8c074=['map','5971004CVUPgd','6488952GmTinq','341763mPqrqF','15142056dWuyWI','4766760DemJLa','yes','13821TQcBpf','10NPVnZK','6387920BkFadD'];a241_0x31ae=function(){return _0xb8c074;};return a241_0x31ae();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a241_0x306c80}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x3cde80){const _0x2ffa92=a241_0x25df,_0x20902b=a241_0x306c80(_0x3cde80,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x3cde80))return _0x20902b;return _0x20902b[_0x2ffa92(0x169)](_0x2389bc=>_0x2389bc['name']===_0x2ffa92(0x165)?{..._0x2389bc,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x2389bc);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a242_0x24b0(){var _0x1ae71b=['def','77980BokVhB','defaultFormat','4432ZGEvwR','5UhIbsH','16767hfIWYo','13295928GONzbN','format','3422188PQVphd','3hHqvio','40tYADVB','12IrPMKE','structuredErrors','1722133tVxkyM','627442ewbepH','13725iNiIRF'];a242_0x24b0=function(){return _0x1ae71b;};return a242_0x24b0();}function a242_0x18c9(_0x24ff59,_0x3ad1d1){_0x24ff59=_0x24ff59-0x1a3;var _0x24b0db=a242_0x24b0();var _0x18c9b0=_0x24b0db[_0x24ff59];return _0x18c9b0;}(function(_0x2ff785,_0x299f8c){var _0x34c3c1=a242_0x18c9,_0x26a716=_0x2ff785();while(!![]){try{var _0xe5a24f=-parseInt(_0x34c3c1(0x1ab))/0x1*(parseInt(_0x34c3c1(0x1b0))/0x2)+parseInt(_0x34c3c1(0x1b1))/0x3+-parseInt(_0x34c3c1(0x1a3))/0x4*(parseInt(_0x34c3c1(0x1a6))/0x5)+-parseInt(_0x34c3c1(0x1ad))/0x6*(-parseInt(_0x34c3c1(0x1af))/0x7)+parseInt(_0x34c3c1(0x1a5))/0x8*(parseInt(_0x34c3c1(0x1a7))/0x9)+-parseInt(_0x34c3c1(0x1ac))/0xa*(-parseInt(_0x34c3c1(0x1aa))/0xb)+-parseInt(_0x34c3c1(0x1a8))/0xc;if(_0xe5a24f===_0x299f8c)break;else _0x26a716['push'](_0x26a716['shift']());}catch(_0x2e41b5){_0x26a716['push'](_0x26a716['shift']());}}}(a242_0x24b0,0xabfef));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x44e93){var _0x32bc82=a242_0x18c9;return _0x44e93?.[_0x32bc82(0x1ae)]===!![];}export function resolveErrorOutputFormat(_0x170814){var _0x2743d9=a242_0x18c9;if(!_0x170814[_0x2743d9(0x1b2)])return _0x170814['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x170814['flags']??{},'def':_0x170814[_0x2743d9(0x1b2)],'configDefault':_0x170814[_0x2743d9(0x1a4)]})[_0x2743d9(0x1a9)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a243_0x152bb3=a243_0x42d3;(function(_0xef1ea0,_0x25c011){const _0x28a3c8=a243_0x42d3,_0x2070cd=_0xef1ea0();while(!![]){try{const _0x5d095e=parseInt(_0x28a3c8(0xad))/0x1*(-parseInt(_0x28a3c8(0xb7))/0x2)+parseInt(_0x28a3c8(0xa7))/0x3+parseInt(_0x28a3c8(0xac))/0x4+-parseInt(_0x28a3c8(0xb0))/0x5+parseInt(_0x28a3c8(0xb5))/0x6*(parseInt(_0x28a3c8(0xaf))/0x7)+-parseInt(_0x28a3c8(0xaa))/0x8*(-parseInt(_0x28a3c8(0xab))/0x9)+parseInt(_0x28a3c8(0xb1))/0xa;if(_0x5d095e===_0x25c011)break;else _0x2070cd['push'](_0x2070cd['shift']());}catch(_0x302cc1){_0x2070cd['push'](_0x2070cd['shift']());}}}(a243_0xb8fd,0x342a6));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20delete',a243_0x152bb3(0xa8),a243_0x152bb3(0xb6),a243_0x152bb3(0xb4)]);function a243_0x42d3(_0x2415a2,_0x327a0d){_0x2415a2=_0x2415a2-0xa7;const _0xb8fd71=a243_0xb8fd();let _0x42d3ed=_0xb8fd71[_0x2415a2];return _0x42d3ed;}export const EXPLICIT_YES_FLAG_DESCRIPTION=a243_0x152bb3(0xa9);export function requiresExplicitYes(_0x13345f){const _0x29092e=a243_0x152bb3;return EXPLICIT_YES_COMMANDS[_0x29092e(0xae)](_0x13345f[_0x29092e(0xb3)]+'\x20'+_0x13345f[_0x29092e(0xb2)]);}function a243_0xb8fd(){const _0x319906=['kb\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','375352rZmxza','18dDZIhz','1273260jBmfOr','17qHIVeI','has','14KWHamx','2035890azFzZJ','449970nIHUqT','command','service','notification\x20config-delete','1026930UmUjEn','notification\x20config-update','29220pnBxXf','209274FIyZvq'];a243_0xb8fd=function(){return _0x319906;};return a243_0xb8fd();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a244_0x5dea54=a244_0x35aa;(function(_0x1af0d6,_0x171059){const _0x9fbdfe=a244_0x35aa,_0x4572e3=_0x1af0d6();while(!![]){try{const _0x374245=-parseInt(_0x9fbdfe(0x12d))/0x1*(-parseInt(_0x9fbdfe(0x133))/0x2)+-parseInt(_0x9fbdfe(0x12e))/0x3+parseInt(_0x9fbdfe(0x12f))/0x4*(-parseInt(_0x9fbdfe(0x130))/0x5)+parseInt(_0x9fbdfe(0x135))/0x6*(-parseInt(_0x9fbdfe(0x12b))/0x7)+-parseInt(_0x9fbdfe(0x132))/0x8*(-parseInt(_0x9fbdfe(0x134))/0x9)+-parseInt(_0x9fbdfe(0x12a))/0xa*(parseInt(_0x9fbdfe(0x138))/0xb)+-parseInt(_0x9fbdfe(0x131))/0xc*(-parseInt(_0x9fbdfe(0x12c))/0xd);if(_0x374245===_0x171059)break;else _0x4572e3['push'](_0x4572e3['shift']());}catch(_0x50aed4){_0x4572e3['push'](_0x4572e3['shift']());}}}(a244_0x5f01,0x2e817));import{createFlagHelpers}from'@lovrabet/cli-framework';function a244_0x35aa(_0x3e171c,_0x46499d){_0x3e171c=_0x3e171c-0x12a;const _0x5f0191=a244_0x5f01();let _0x35aa35=_0x5f0191[_0x3e171c];return _0x35aa35;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a244_0x5f01(){const _0x518759=['128DRewkI','9986ZuIZfm','53955SNnPJl','1095090nAvzWv','parseFlags','validateFlags','81037wYAdnm','70xwRgrC','7WyVIrL','26FAUAoy','17pNcCpf','435183nzFcVQ','716OdMJjO','6355HaoXNa','3698040deajFc'];a244_0x5f01=function(){return _0x518759;};return a244_0x5f01();}export const parseFlags=helpers[a244_0x5dea54(0x136)];export const validateFlags=helpers[a244_0x5dea54(0x137)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a245_0x1e8fcc=a245_0x5a0c;(function(_0x29d588,_0x3b82dd){const _0x2321f1=a245_0x5a0c,_0x459137=_0x29d588();while(!![]){try{const _0x411790=parseInt(_0x2321f1(0x1b2))/0x1+parseInt(_0x2321f1(0x1b4))/0x2*(-parseInt(_0x2321f1(0x1b9))/0x3)+-parseInt(_0x2321f1(0x1ae))/0x4+-parseInt(_0x2321f1(0x1b5))/0x5*(parseInt(_0x2321f1(0x1ad))/0x6)+parseInt(_0x2321f1(0x1bb))/0x7+-parseInt(_0x2321f1(0x1bc))/0x8+parseInt(_0x2321f1(0x1b7))/0x9;if(_0x411790===_0x3b82dd)break;else _0x459137['push'](_0x459137['shift']());}catch(_0x2efd59){_0x459137['push'](_0x459137['shift']());}}}(a245_0x4c4c,0x2e521));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a245_0x4c4c(){const _0x17b104=['210225MIAPNE','Requires\x20appcode\x20(set\x20via\x20`','166UvhUUC','105285DbgbSz','generateCommandHelp','270054TMfuCl','generateFullHelp','4377ElDRVg','\x20[args]\x20[flags]','2271682zGzPJS','91344fCWzmI','generateServiceHelp','replace','36GrLIwE','464684pzojvD','\x20workspace\x20init`\x20or\x20--appcode).','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.'];a245_0x4c4c=function(){return _0x17b104;};return a245_0x4c4c();}import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2d925a=>serviceGroups['get'](_0x2d925a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a245_0x1e8fcc(0x1b3)+CLI_BIN_NAME+a245_0x1e8fcc(0x1af),'serviceUsageSuffix':a245_0x1e8fcc(0x1ba)});function a245_0x5a0c(_0x359d92,_0x31a93e){_0x359d92=_0x359d92-0x1ab;const _0x4c4c2b=a245_0x4c4c();let _0x5a0c56=_0x4c4c2b[_0x359d92];return _0x5a0c56;}export function generateCommandHelp(_0x4cca5a){const _0xce829f=a245_0x1e8fcc,_0x4e5f1c=generators[_0xce829f(0x1b6)](_0x4cca5a);if(!requiresExplicitYes(_0x4cca5a))return _0x4e5f1c;return _0x4e5f1c[_0xce829f(0x1ac)](_0xce829f(0x1b0),_0xce829f(0x1b1));}export const generateServiceHelp=generators[a245_0x1e8fcc(0x1ab)];export const generateFullHelp=generators[a245_0x1e8fcc(0x1b8)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13fec1,_0x44007f){var _0x5d3ecf=a246_0x8a62,_0x5b57c1=_0x13fec1();while(!![]){try{var _0x5a7f85=-parseInt(_0x5d3ecf(0xae))/0x1*(-parseInt(_0x5d3ecf(0xb8))/0x2)+parseInt(_0x5d3ecf(0xb0))/0x3*(-parseInt(_0x5d3ecf(0xb3))/0x4)+-parseInt(_0x5d3ecf(0xb9))/0x5*(parseInt(_0x5d3ecf(0xb4))/0x6)+-parseInt(_0x5d3ecf(0xb2))/0x7+parseInt(_0x5d3ecf(0xb6))/0x8*(parseInt(_0x5d3ecf(0xb1))/0x9)+parseInt(_0x5d3ecf(0xb7))/0xa+-parseInt(_0x5d3ecf(0xb5))/0xb*(-parseInt(_0x5d3ecf(0xaf))/0xc);if(_0x5a7f85===_0x44007f)break;else _0x5b57c1['push'](_0x5b57c1['shift']());}catch(_0x4b060c){_0x5b57c1['push'](_0x5b57c1['shift']());}}}(a246_0x3bef,0xbed67));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a246_0x8a62(_0x24c88c,_0x5766f2){_0x24c88c=_0x24c88c-0xae;var _0x3bef54=a246_0x3bef();var _0x8a62a7=_0x3bef54[_0x24c88c];return _0x8a62a7;}function a246_0x3bef(){var _0x35c597=['5030AluIRo','247675JztSUS','467wSXpFT','240qeqSVk','1677EbDGjk','7089777NivfHx','2763362VEJrSn','9492VgrUMp','126odyFdN','614361whzlRT','8CyBVgj','4639010WQGmpX'];a246_0x3bef=function(){return _0x35c597;};return a246_0x3bef();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x64ec0a,_0xdc3baa){const _0x3dad51=a247_0xde0e,_0x3994ce=_0x64ec0a();while(!![]){try{const _0x154d53=-parseInt(_0x3dad51(0x108))/0x1+parseInt(_0x3dad51(0x110))/0x2*(-parseInt(_0x3dad51(0x112))/0x3)+parseInt(_0x3dad51(0x101))/0x4*(parseInt(_0x3dad51(0xff))/0x5)+-parseInt(_0x3dad51(0x100))/0x6*(-parseInt(_0x3dad51(0xf8))/0x7)+-parseInt(_0x3dad51(0x102))/0x8+parseInt(_0x3dad51(0x10b))/0x9*(parseInt(_0x3dad51(0x114))/0xa)+-parseInt(_0x3dad51(0xfe))/0xb*(-parseInt(_0x3dad51(0x10c))/0xc);if(_0x154d53===_0xdc3baa)break;else _0x3994ce['push'](_0x3994ce['shift']());}catch(_0x4906d7){_0x3994ce['push'](_0x3994ce['shift']());}}}(a247_0x4520,0xc6497));function a247_0xde0e(_0x286c53,_0x536733){_0x286c53=_0x286c53-0xf7;const _0x45208e=a247_0x4520();let _0xde0e33=_0x45208e[_0x286c53];return _0xde0e33;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a247_0x4520(){const _0x247ebd=['9064wcumhw','691100VnBaMK','324282qdZNfe','20KonZeh','12591168fxPYHa','error','write','url','format','jqFilter','363049rkSemi','validation','command','9NySqEz','17268XbJceI','update','pretty','stringify','2EsJvYo','endsWith','2244024VQyARx','data','9176890OKuqvS','message','91bIlpUB','trim','stdout','json','code','hint'];a247_0x4520=function(){return _0x247ebd;};return a247_0x4520();}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(_0x94ab90,_0x4629e1){const _0x403152=a247_0xde0e,_0x219f7f=_0x94ab90['_notice'],{_notice:_0x32c8a0,..._0x2cba2b}=_0x94ab90;void _0x32c8a0,baseFormatOutput(_0x2cba2b,_0x4629e1),_0x4629e1[_0x403152(0x106)]==='pretty'&&printPrettyNotice(_0x219f7f);}export function formatCliError(_0x4e592a,_0x309729){const _0xc941e6=a247_0xde0e;if(_0x309729['format']===_0xc941e6(0x10e))return![];const _0x3e3077=_0x4e592a[_0xc941e6(0x113)],_0x2b8943={'ok':![],'command':_0x309729[_0xc941e6(0x10a)],'risk':_0x309729['risk'],'data':_0x3e3077??null,'error':{'code':_0x4e592a[_0xc941e6(0xfc)],'message':_0x4e592a[_0xc941e6(0xf7)],..._0x4e592a[_0xc941e6(0xfd)]?{'hint':_0x4e592a[_0xc941e6(0xfd)]}:{}}},_0x178c63=_0x309729['format']===_0xc941e6(0xfb)?JSON['stringify'](_0x2b8943,null,0x2):JSON[_0xc941e6(0x10f)](_0x2b8943);let _0x4981f9=_0x178c63;if(_0x309729[_0xc941e6(0x107)]?.[_0xc941e6(0xf9)]())try{_0x4981f9=applyJqFilter(_0x178c63,_0x309729['jqFilter']);}catch(_0x322b5b){const _0x1b9020=_0x322b5b instanceof CliError?_0x322b5b:CliErrors[_0xc941e6(0x109)]('jq:\x20'+(_0x322b5b instanceof Error?_0x322b5b[_0xc941e6(0xf7)]:String(_0x322b5b))),_0x1c6bc2={..._0x2b8943,'error':{'code':_0x1b9020['code'],'message':_0x1b9020[_0xc941e6(0xf7)],..._0x1b9020['hint']?{'hint':_0x1b9020[_0xc941e6(0xfd)]}:{},'cause':_0x2b8943[_0xc941e6(0x103)]}};_0x4981f9=_0x309729[_0xc941e6(0x106)]===_0xc941e6(0xfb)?JSON['stringify'](_0x1c6bc2,null,0x2):JSON[_0xc941e6(0x10f)](_0x1c6bc2);}return process[_0xc941e6(0xfa)][_0xc941e6(0x104)](_0x4981f9[_0xc941e6(0x111)]('\x0a')?_0x4981f9:_0x4981f9+'\x0a'),!![];}function printPrettyNotice(_0x515d88){const _0x3fc04f=a247_0xde0e;if(!_0x515d88?.['update'])return;console[_0x3fc04f(0x103)](_0x515d88[_0x3fc04f(0x10d)]['message']+'\x20('+_0x515d88[_0x3fc04f(0x10d)][_0x3fc04f(0x105)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a248_0x69e6(_0x31fcd4,_0x37a07f){_0x31fcd4=_0x31fcd4-0x165;var _0x112074=a248_0x1120();var _0x69e6d9=_0x112074[_0x31fcd4];return _0x69e6d9;}(function(_0x3f3932,_0x33ddb1){var _0x356d13=a248_0x69e6,_0x32fa76=_0x3f3932();while(!![]){try{var _0x412b40=parseInt(_0x356d13(0x168))/0x1*(parseInt(_0x356d13(0x166))/0x2)+-parseInt(_0x356d13(0x167))/0x3+parseInt(_0x356d13(0x16e))/0x4+parseInt(_0x356d13(0x169))/0x5*(parseInt(_0x356d13(0x16b))/0x6)+parseInt(_0x356d13(0x16a))/0x7+parseInt(_0x356d13(0x165))/0x8*(parseInt(_0x356d13(0x16d))/0x9)+-parseInt(_0x356d13(0x16c))/0xa;if(_0x412b40===_0x33ddb1)break;else _0x32fa76['push'](_0x32fa76['shift']());}catch(_0x22476b){_0x32fa76['push'](_0x32fa76['shift']());}}}(a248_0x1120,0xb0271));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a248_0x1120(){var _0x22ca16=['9jwJjLC','2052092lKbuDV','612328yGfVjp','46xpSBio','2669640hLjXIJ','19538OZYptz','85kPXrge','6839308uARUFs','371502HsEnRB','14571700tWduig'];a248_0x1120=function(){return _0x22ca16;};return a248_0x1120();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a249_0x29cf(){const _0x4959a5=['type','2177188crExyU','733100uBVmjC','alias','validation','19914nttDPQ','4pRdtDE','code','9936bEJlAW','\x22.\x20','map','`\x20requires\x20either\x20--code\x20or\x20--alias.','join','127947AmyPjX','Unknown\x20alias\x20\x22','some','\x20api\x20pull`\x20first.','flags','Available\x20aliases:\x20','1737AzDswE','4869280QHXpbL','name','1204blOIpL','11181830QUHXQT'];a249_0x29cf=function(){return _0x4959a5;};return a249_0x29cf();}(function(_0x3afd41,_0x296aeb){const _0x425ed2=a249_0x35da,_0x58b18b=_0x3afd41();while(!![]){try{const _0x3216a8=parseInt(_0x425ed2(0x12a))/0x1+-parseInt(_0x425ed2(0x116))/0x2*(parseInt(_0x425ed2(0x11d))/0x3)+-parseInt(_0x425ed2(0x129))/0x4+-parseInt(_0x425ed2(0x124))/0x5+parseInt(_0x425ed2(0x115))/0x6*(parseInt(_0x425ed2(0x126))/0x7)+-parseInt(_0x425ed2(0x118))/0x8*(parseInt(_0x425ed2(0x123))/0x9)+parseInt(_0x425ed2(0x127))/0xa;if(_0x3216a8===_0x296aeb)break;else _0x58b18b['push'](_0x58b18b['shift']());}catch(_0x25e1f7){_0x58b18b['push'](_0x58b18b['shift']());}}}(a249_0x29cf,0x8d5b2));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a249_0x35da(_0x2502a9,_0x5412ae){_0x2502a9=_0x2502a9-0x115;const _0x29cff4=a249_0x29cf();let _0x35da52=_0x29cff4[_0x2502a9];return _0x35da52;}export function resolveAliasToCode(_0x465843,_0x57ba2c,_0x2be9f3,_0x2f01ea){const _0x1b32b3=a249_0x35da,_0x20854f=_0x465843[_0x1b32b3(0x121)][_0x1b32b3(0x11f)](_0x20c94b=>_0x20c94b[_0x1b32b3(0x125)]===_0x1b32b3(0x117)&&_0x20c94b[_0x1b32b3(0x128)]==='string'),_0x1ee35b=_0x465843[_0x1b32b3(0x121)][_0x1b32b3(0x11f)](_0x45542b=>_0x45542b[_0x1b32b3(0x125)]===_0x1b32b3(0x12b)&&_0x45542b['type']==='string');if(!_0x20854f||!_0x1ee35b)return;const _0x1d3436=_0x57ba2c[_0x1b32b3(0x117)]?String(_0x57ba2c['code']):'',_0x43c510=_0x57ba2c[_0x1b32b3(0x12b)]?String(_0x57ba2c[_0x1b32b3(0x12b)]):'';if(!_0x1d3436&&!_0x43c510)throw CliErrors['validation']('`'+_0x2f01ea+_0x1b32b3(0x11b));if(_0x43c510&&!_0x1d3436){const _0x209a25=resolveAlias(_0x2be9f3,_0x43c510);if(!_0x209a25){const _0x7e1e7b=listAliases(_0x2be9f3)[_0x1b32b3(0x11a)](_0x10f3dc=>_0x10f3dc['alias']),_0x367752=_0x7e1e7b['length']?_0x1b32b3(0x122)+_0x7e1e7b[_0x1b32b3(0x11c)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x2be9f3+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1b32b3(0x120);throw CliErrors[_0x1b32b3(0x12c)](_0x1b32b3(0x11e)+_0x43c510+_0x1b32b3(0x119)+_0x367752);}_0x57ba2c[_0x1b32b3(0x117)]=_0x209a25;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3e78ee,_0x1001a8){const _0x408afc=a249_0x18fd,_0x5f5b2c=_0x3e78ee();while(!![]){try{const _0x4f2bc6=-parseInt(_0x408afc(0xb4))/0x1+parseInt(_0x408afc(0xea))/0x2*(-parseInt(_0x408afc(0xb1))/0x3)+parseInt(_0x408afc(0xaf))/0x4*(parseInt(_0x408afc(0xd0))/0x5)+parseInt(_0x408afc(0xd4))/0x6*(-parseInt(_0x408afc(0xc2))/0x7)+-parseInt(_0x408afc(0xd7))/0x8*(parseInt(_0x408afc(0xa5))/0x9)+parseInt(_0x408afc(0xe0))/0xa+parseInt(_0x408afc(0xc9))/0xb*(parseInt(_0x408afc(0xba))/0xc);if(_0x4f2bc6===_0x1001a8)break;else _0x5f5b2c['push'](_0x5f5b2c['shift']());}catch(_0xdcc0d8){_0x5f5b2c['push'](_0x5f5b2c['shift']());}}}(a249_0x5096,0x209a3));function a249_0x18fd(_0x37b608,_0xc0d17e){_0x37b608=_0x37b608-0xa1;const _0x50960b=a249_0x5096();let _0x18fd05=_0x50960b[_0x37b608];return _0x18fd05;}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 a249_0x122218}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x20dd86){const _0x4a4e8f=a249_0x18fd;return typeof _0x20dd86===_0x4a4e8f(0xa8)&&_0x20dd86[_0x4a4e8f(0xa9)]()?_0x20dd86[_0x4a4e8f(0xa9)]():undefined;}function resolveEnvAppCode(){const _0x2463f3=a249_0x18fd,_0x534a86=stringFlag(process.env.RABETBASE_APPCODE);if(_0x534a86)return{'name':_0x2463f3(0xa2),'value':_0x534a86};const _0x57e706=stringFlag(process.env.LOVRABET_APPCODE);if(_0x57e706)return{'name':'LOVRABET_APPCODE','value':_0x57e706};return undefined;}function hasExplicitAppCode(_0x137ae9,_0x41cb25){const _0x155c45=a249_0x18fd;return!!(stringFlag(_0x137ae9['appcode'])||stringFlag(_0x41cb25[_0x155c45(0xe3)]));}function assertEnvAppCodeNotIgnored(_0x5d82a7,_0x5cb25e,_0x4cbc59){const _0x337cdc=a249_0x18fd;if(!_0x5cb25e||_0x4cbc59||_0x5d82a7===_0x5cb25e[_0x337cdc(0xb8)])return;const _0x4ae174=_0x5d82a7?_0x337cdc(0xcf)+_0x5d82a7+'\x22.':_0x337cdc(0xe2);throw CliErrors[_0x337cdc(0xe7)](_0x5cb25e[_0x337cdc(0xcd)]+'='+_0x5cb25e[_0x337cdc(0xb8)]+_0x337cdc(0xa1)+_0x4ae174+'\x20'+(_0x337cdc(0xce)+_0x5cb25e[_0x337cdc(0xcd)]+'\x22.'));}export function createPipelineEnv(_0x1d1a17,_0x2ac139,_0x1e9d63=[]){const _0x1c9fbb=a249_0x18fd;return{'rawFlags':_0x2ac139,'args':_0x1e9d63,'resolveAppCode':()=>_0x1d1a17[_0x1c9fbb(0xb7)],'resolveCookie':()=>_0x1d1a17['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a249_0x122218(_0x2ac139),'defaultFormat':_0x1d1a17[_0x1c9fbb(0xe5)],'defaultPageSize':_0x1d1a17[_0x1c9fbb(0xe1)],'defaultVerbose':_0x1d1a17['verbose'],'apiDir':_0x1d1a17[_0x1c9fbb(0xab)],'riskLevel':_0x1d1a17[_0x1c9fbb(0xb5)],'selectedAppName':_0x1d1a17['explicitAppName'],'mergedCli':{'defaultApp':_0x1d1a17[_0x1c9fbb(0xac)],'currentApp':_0x1d1a17['currentApp'],'appCode':_0x1d1a17[_0x1c9fbb(0xb7)],'apps':_0x1d1a17['apps']}};}export function createRabetbaseRunnerAdapter(_0x4ac4a9={}){const _0x57e960=a249_0x18fd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x57e960(0xa7)](_0x8ad591=>PIPELINE_FLAG_NAMES[_0x57e960(0xc0)](_0x8ad591[_0x57e960(0xcd)]))['map'](({name:_0x51b673,type:_0x3d25a1,description:_0x2060d0})=>({'name':_0x51b673,'type':_0x3d25a1,'description':_0x2060d0})),'formatOutput':_0x4ac4a9[_0x57e960(0xa6)]??formatOutput,'getCommandLabel'(_0x259ba1){const _0xcf935c=_0x57e960;return CLI_BIN_NAME+'\x20'+_0x259ba1['service']+'\x20'+_0x259ba1[_0xcf935c(0xc4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x413499,{def:_0x30b73e}){const _0x415742=_0x57e960,_0x3ff6d5=_0x413499[_0x415742(0xb6)](_0x415742(0xe4))?_0x415742(0xc6):_0x415742(0xd1)+_0x30b73e[_0x415742(0xa3)]+_0x415742(0xae)+_0x415742(0xc6);return CliErrors['validation'](_0x413499+_0x415742(0xda)+_0x3ff6d5);}},async 'prepare'(_0x57d806,_0x11e4e9,_0x33e2df,_0x122ba7){const _0x9aacf3=_0x57e960,_0x20f4a5=_0x11e4e9[_0x9aacf3(0xab)]||DEFAULT_API_DIR;resolveAliasToCode(_0x57d806,_0x33e2df,_0x20f4a5,_0x122ba7);const _0x36290a=resolveCommandAuthMode(_0x57d806);let _0x4042b5='';if(_0x36290a!=='none'){_0x4042b5=_0x11e4e9[_0x9aacf3(0xd8)]()||'';if(!_0x4042b5){if(_0x36290a==='required')throw CliErrors[_0x9aacf3(0xc5)]();}else{const {setActiveCookie:_0x3960aa}=await import(_0x9aacf3(0xdf));_0x3960aa(_0x4042b5);}}const _0x413158=_0x11e4e9[_0x9aacf3(0xaa)]()??'';if(_0x57d806['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x413158,resolveEnvAppCode(),hasExplicitAppCode(_0x33e2df,_0x11e4e9['rawFlags']));if(!_0x413158)throw CliErrors[_0x9aacf3(0xad)](_0x9aacf3(0xdd)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x11e4e9[_0x9aacf3(0xdb)]},'numbers':{'pagesize':_0x11e4e9[_0x9aacf3(0xd6)]}},'extras':{'appCode':_0x413158,'cookie':_0x4042b5,'apiDomain':_0x11e4e9['resolveApiDomain'](),'apiDir':_0x20f4a5,'selectedAppName':_0x11e4e9[_0x9aacf3(0xca)],'mergedCli':_0x11e4e9[_0x9aacf3(0xe9)]}};},'confirmHighRisk':_0x4ac4a9[_0x57e960(0xbb)]??(async({env:_0x3cf054,commandLabel:_0x13761b})=>{const _0x24e7d5=_0x57e960;if(_0x3cf054[_0x24e7d5(0xdc)])throw CliErrors[_0x24e7d5(0xe7)](_0x24e7d5(0xc7)+_0x13761b+_0x24e7d5(0xb2));await requireConfirmationPrompt({'lines':[_0x24e7d5(0xbf)+_0x13761b,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x5d1525=>CliErrors[_0x24e7d5(0xd3)](_0x5d1525)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0xf276a6=a249_0x18fd,{clearActiveCookie:_0x372b8f}=await import(_0xf276a6(0xdf));_0x372b8f();}export async function finalizeRabetbaseRuntimeState(){const _0x1e6694=a249_0x18fd;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5d6f4d},{initEnv:_0x3940d9}]=await Promise[_0x1e6694(0xc8)]([import(_0x1e6694(0xbe)),import(_0x1e6694(0xd9))]);_0x5d6f4d(),_0x3940d9(_0x1e6694(0xb3));}}export async function runCommand(_0xbcffbc,_0x55ebc1,_0x1266dc=terminalRunnerAdapter){const _0x46e6a3=a249_0x18fd;assertRejectedFlags(_0xbcffbc,_0x55ebc1[_0x46e6a3(0xd5)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xbcffbc)?withUpdateNotice(_0xbcffbc):_0xbcffbc,_0x55ebc1,_0x1266dc);}function a249_0x5096(){const _0x415046=['\x0a\x20\x20','defaultVerbose','isNonInteractive','Set\x20appcode\x20via\x20`','nonInteractive','../core/api-client.js','294440lNUfMd','pageSize','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appcode','Edit\x20the\x20config\x20file\x20manually','format','object','validation','hasFormat','mergedCli','5314uiaoLx','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','RABETBASE_APPCODE','risk','toUpperCase','9mLUbfT','formatOutput','filter','string','trim','resolveAppCode','apiDir','defaultApp','configMissing','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','670856KGMlBX','catch','57ueCteE','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','production','38945tHpTer','riskLevel','includes','appCode','value','_notice','1638012ObtFcW','confirmHighRisk','pretty','some','../constant/domain.js','⚠\x20\x20High-risk\x20operation:\x20','has','execute','105KMtFct','replace','command','authRequired','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','High-risk\x20operation\x20`','all','33ikngcD','selectedAppName','find','doctor','name','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','Current\x20resolved\x20appcode\x20is\x20\x22','5zCXVQq','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','schema','cancelled','74484jfqAmx','rawFlags','defaultPageSize','1579872QwxVTp','resolveCookie','../constant/env.js'];a249_0x5096=function(){return _0x415046;};return a249_0x5096();}function assertRejectedFlags(_0x2e3a14,_0x4cd821){const _0x3db6e3=a249_0x18fd;for(const _0x4966f9 of _0x2e3a14['rejectedFlags']??[]){const _0x191d8d=GLOBAL_FLAGS[_0x3db6e3(0xcb)](_0x1d8f69=>_0x1d8f69[_0x3db6e3(0xcd)]===_0x4966f9[_0x3db6e3(0xcd)]),_0x124fdb=new Set([_0x4966f9[_0x3db6e3(0xcd)],toCamelCase(_0x4966f9['name']),_0x191d8d?.['meowKey']]),_0x407edf=[..._0x124fdb][_0x3db6e3(0xbd)](_0xb1a045=>{if(!_0xb1a045)return![];const _0x36a28f=_0x4cd821[_0xb1a045];return _0x36a28f!==undefined&&_0x36a28f!==null&&_0x36a28f!==![];});if(_0x407edf)throw CliErrors[_0x3db6e3(0xe7)](_0x4966f9['message'],_0x4966f9['hint']);}}function toCamelCase(_0xb5f3f7){const _0x11cd3b=a249_0x18fd;return _0xb5f3f7[_0x11cd3b(0xc3)](/-([a-z])/g,(_0x87ade9,_0x4462e3)=>_0x4462e3[_0x11cd3b(0xa4)]());}function shouldAttachUpdateNotice(_0x13ad93){const _0x503737=a249_0x18fd;if(_0x13ad93[_0x503737(0xe8)]===![])return![];return!['update',_0x503737(0xd2),_0x503737(0xcc)][_0x503737(0xb6)](_0x13ad93['service']);}function withUpdateNotice(_0x14d929){return{..._0x14d929,async 'execute'(_0x90817){const _0x3d047f=a249_0x18fd,_0x1ed06c=shouldResolveUpdateNotice(_0x90817)?resolveLatestUpdateNotice()[_0x3d047f(0xb0)](()=>null):Promise['resolve'](null),_0x5c28a9=await _0x14d929[_0x3d047f(0xc1)](_0x90817);return attachUpdateNotice(_0x5c28a9,await _0x1ed06c);}};}function shouldResolveUpdateNotice(_0x1f8352){const _0x5d3e4b=a249_0x18fd;return _0x1f8352[_0x5d3e4b(0xe5)]===_0x5d3e4b(0xbc)&&!_0x1f8352[_0x5d3e4b(0xde)];}function attachUpdateNotice(_0x41666f,_0x279ea9){const _0x240df3=a249_0x18fd;if(!_0x279ea9||!_0x41666f||typeof _0x41666f!==_0x240df3(0xe6))return _0x41666f;const _0x53e119=_0x41666f,_0x4e2299=typeof _0x53e119['_notice']===_0x240df3(0xe6)&&_0x53e119[_0x240df3(0xb9)]!==null?_0x53e119['_notice']:{};return{..._0x53e119,'_notice':{..._0x4e2299,'update':_0x279ea9}};}
|
|
1
|
+
(function(_0x57f8f7,_0x5517fc){const _0x3779f1=a250_0x2737,_0x3f54cc=_0x57f8f7();while(!![]){try{const _0x1d956a=parseInt(_0x3779f1(0x18e))/0x1+-parseInt(_0x3779f1(0x162))/0x2*(-parseInt(_0x3779f1(0x18d))/0x3)+-parseInt(_0x3779f1(0x181))/0x4*(parseInt(_0x3779f1(0x17d))/0x5)+-parseInt(_0x3779f1(0x164))/0x6+-parseInt(_0x3779f1(0x15d))/0x7+parseInt(_0x3779f1(0x175))/0x8+-parseInt(_0x3779f1(0x182))/0x9;if(_0x1d956a===_0x5517fc)break;else _0x3f54cc['push'](_0x3f54cc['shift']());}catch(_0x291422){_0x3f54cc['push'](_0x3f54cc['shift']());}}}(a250_0x55a0,0x60caa));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a250_0x2737(_0x1d0ca0,_0x547967){_0x1d0ca0=_0x1d0ca0-0x153;const _0x55a008=a250_0x55a0();let _0x2737e5=_0x55a008[_0x1d0ca0];return _0x2737e5;}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a250_0x5d13d9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xd8efd2){const _0x3e2cfc=a250_0x2737;return typeof _0xd8efd2===_0x3e2cfc(0x163)&&_0xd8efd2[_0x3e2cfc(0x165)]()?_0xd8efd2[_0x3e2cfc(0x165)]():undefined;}function resolveEnvAppCode(){const _0x510242=a250_0x2737,_0x170cad=stringFlag(process.env.RABETBASE_APPCODE);if(_0x170cad)return{'name':_0x510242(0x183),'value':_0x170cad};const _0x5f53bd=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5f53bd)return{'name':_0x510242(0x15c),'value':_0x5f53bd};return undefined;}function hasExplicitAppCode(_0x26b527,_0xdb02c1){const _0x322f16=a250_0x2737;return!!(stringFlag(_0x26b527[_0x322f16(0x190)])||stringFlag(_0xdb02c1[_0x322f16(0x190)]));}function assertEnvAppCodeNotIgnored(_0x1ed768,_0x3e1695,_0x506ce2){const _0x5cdd3b=a250_0x2737;if(!_0x3e1695||_0x506ce2||_0x1ed768===_0x3e1695['value'])return;const _0x46fae4=_0x1ed768?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x1ed768+'\x22.':_0x5cdd3b(0x15b);throw CliErrors[_0x5cdd3b(0x154)](_0x3e1695['name']+'='+_0x3e1695['value']+_0x5cdd3b(0x196)+_0x46fae4+'\x20'+(_0x5cdd3b(0x17b)+_0x3e1695['name']+'\x22.'));}export function createPipelineEnv(_0x388f38,_0x498b57,_0x21b58f=[]){const _0x3edd23=a250_0x2737;return{'rawFlags':_0x498b57,'args':_0x21b58f,'resolveAppCode':()=>_0x388f38[_0x3edd23(0x15e)],'resolveCookie':()=>_0x388f38['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x5d13d9(_0x498b57),'defaultFormat':_0x388f38[_0x3edd23(0x198)],'defaultPageSize':_0x388f38[_0x3edd23(0x159)],'defaultVerbose':_0x388f38[_0x3edd23(0x178)],'apiDir':_0x388f38[_0x3edd23(0x155)],'riskLevel':_0x388f38[_0x3edd23(0x166)],'selectedAppName':_0x388f38[_0x3edd23(0x18f)],'mergedCli':{'defaultApp':_0x388f38[_0x3edd23(0x19c)],'currentApp':_0x388f38['currentApp'],'appCode':_0x388f38[_0x3edd23(0x15e)],'apps':_0x388f38[_0x3edd23(0x192)]}};}export function createRabetbaseRunnerAdapter(_0x7f72e5={}){const _0x1a2030=a250_0x2737;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1a2030(0x191)](_0x45ef3a=>PIPELINE_FLAG_NAMES[_0x1a2030(0x17a)](_0x45ef3a[_0x1a2030(0x158)]))[_0x1a2030(0x187)](({name:_0x35ffcb,type:_0x2807cb,description:_0x5701eb})=>({'name':_0x35ffcb,'type':_0x2807cb,'description':_0x5701eb})),'formatOutput':_0x7f72e5[_0x1a2030(0x160)]??formatOutput,'getCommandLabel'(_0xa5c58c){const _0x3bd5d3=_0x1a2030;return CLI_BIN_NAME+'\x20'+_0xa5c58c[_0x3bd5d3(0x18c)]+'\x20'+_0xa5c58c[_0x3bd5d3(0x168)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1875f9,{def:_0x1e00ad}){const _0x30bfdb=_0x1a2030,_0x498bea=_0x1875f9['includes'](_0x30bfdb(0x180))?_0x30bfdb(0x17f):_0x30bfdb(0x16d)+_0x1e00ad[_0x30bfdb(0x157)]+_0x30bfdb(0x16b)+_0x30bfdb(0x17f);return CliErrors[_0x30bfdb(0x154)](_0x1875f9+'\x0a\x20\x20'+_0x498bea);}},async 'prepare'(_0xd50179,_0x1f4c62,_0x1450fa,_0x20f836){const _0x1878e8=_0x1a2030,_0x1abbfa=_0x1f4c62[_0x1878e8(0x155)]||DEFAULT_API_DIR;resolveAliasToCode(_0xd50179,_0x1450fa,_0x1abbfa,_0x20f836);const _0x3de3f0=resolveCommandAuthMode(_0xd50179);let _0x2007fe='';if(_0x3de3f0!=='none'){_0x2007fe=_0x1f4c62[_0x1878e8(0x189)]()||'';if(!_0x2007fe){if(_0x3de3f0===_0x1878e8(0x16f))throw CliErrors[_0x1878e8(0x186)]();}else{const {setActiveCookie:_0x4f3db7}=await import(_0x1878e8(0x16e));_0x4f3db7(_0x2007fe);}}const _0xcabe43=_0x1f4c62[_0x1878e8(0x17c)]()??'';if(_0xd50179[_0x1878e8(0x176)]!==![]){assertEnvAppCodeNotIgnored(_0xcabe43,resolveEnvAppCode(),hasExplicitAppCode(_0x1450fa,_0x1f4c62[_0x1878e8(0x199)]));if(!_0xcabe43)throw CliErrors[_0x1878e8(0x161)](_0x1878e8(0x18b)+CLI_BIN_NAME+_0x1878e8(0x185));}return{'defaults':{'booleans':{'verbose':_0x1f4c62[_0x1878e8(0x188)]},'numbers':{'pagesize':_0x1f4c62['defaultPageSize']}},'extras':{'appCode':_0xcabe43,'cookie':_0x2007fe,'apiDomain':_0x1f4c62[_0x1878e8(0x172)](),'apiDir':_0x1abbfa,'selectedAppName':_0x1f4c62[_0x1878e8(0x15f)],'mergedCli':_0x1f4c62[_0x1878e8(0x173)]}};},'confirmHighRisk':_0x7f72e5['confirmHighRisk']??(async({env:_0x4dc40b,commandLabel:_0x279408})=>{const _0x2afe59=_0x1a2030;if(_0x4dc40b[_0x2afe59(0x170)])throw CliErrors[_0x2afe59(0x154)]('High-risk\x20operation\x20`'+_0x279408+_0x2afe59(0x153));await requireConfirmationPrompt({'lines':[_0x2afe59(0x19a)+_0x279408,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x113cea=>CliErrors[_0x2afe59(0x193)](_0x113cea)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3148a8}=await import('../core/api-client.js');_0x3148a8();}export async function finalizeRabetbaseRuntimeState(){const _0x6a0361=a250_0x2737;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5b4cea},{initEnv:_0xff9c50}]=await Promise['all']([import(_0x6a0361(0x17e)),import(_0x6a0361(0x195))]);_0x5b4cea(),_0xff9c50(_0x6a0361(0x197));}}function a250_0x55a0(){const _0x118dd1=['authRequired','map','defaultVerbose','resolveCookie','execute','Set\x20appcode\x20via\x20`','service','3TJQeFZ','602439LmjxjV','explicitAppName','appcode','filter','apps','cancelled','_notice','../constant/env.js','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','production','format','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','message','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','validation','apiDir','find','risk','name','pageSize','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','LOVRABET_APPCODE','4525920JoSJIe','appCode','selectedAppName','formatOutput','configMissing','215044GkUguh','string','580506VkzMCD','trim','riskLevel','meowKey','command','object','nonInteractive','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','includes','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','../core/api-client.js','required','isNonInteractive','update','resolveApiDomain','mergedCli','replace','6014144wxlVIL','requiresAppCode','hint','verbose','doctor','has','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveAppCode','35KgXrnK','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','89384twcneJ','1489842xOXNMN','RABETBASE_APPCODE','resolve','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a250_0x55a0=function(){return _0x118dd1;};return a250_0x55a0();}export async function runCommand(_0x94c9fa,_0x5253ad,_0x504b25=terminalRunnerAdapter){const _0x49052b=a250_0x2737;assertRejectedFlags(_0x94c9fa,_0x5253ad[_0x49052b(0x199)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x94c9fa)?withUpdateNotice(_0x94c9fa):_0x94c9fa,_0x5253ad,_0x504b25);}function assertRejectedFlags(_0x3f24a6,_0x473cc5){const _0x3501a1=a250_0x2737;for(const _0x27ae4e of _0x3f24a6['rejectedFlags']??[]){const _0x466550=GLOBAL_FLAGS[_0x3501a1(0x156)](_0x6b7911=>_0x6b7911['name']===_0x27ae4e[_0x3501a1(0x158)]),_0x34f548=new Set([_0x27ae4e[_0x3501a1(0x158)],toCamelCase(_0x27ae4e[_0x3501a1(0x158)]),_0x466550?.[_0x3501a1(0x167)]]),_0xb27d53=[..._0x34f548]['some'](_0x3677cc=>{if(!_0x3677cc)return![];const _0x357f08=_0x473cc5[_0x3677cc];return _0x357f08!==undefined&&_0x357f08!==null&&_0x357f08!==![];});if(_0xb27d53)throw CliErrors[_0x3501a1(0x154)](_0x27ae4e[_0x3501a1(0x19b)],_0x27ae4e[_0x3501a1(0x177)]);}}function toCamelCase(_0x37d970){const _0x252d02=a250_0x2737;return _0x37d970[_0x252d02(0x174)](/-([a-z])/g,(_0x31a747,_0x4ed9e9)=>_0x4ed9e9[_0x252d02(0x15a)]());}function shouldAttachUpdateNotice(_0x1d6ab8){const _0x5ea33d=a250_0x2737;if(_0x1d6ab8['hasFormat']===![])return![];return![_0x5ea33d(0x171),'schema',_0x5ea33d(0x179)][_0x5ea33d(0x16c)](_0x1d6ab8[_0x5ea33d(0x18c)]);}function withUpdateNotice(_0x10566f){return{..._0x10566f,async 'execute'(_0x2b192a){const _0x26cb2c=a250_0x2737,_0x7addb9=shouldResolveUpdateNotice(_0x2b192a)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x26cb2c(0x184)](null),_0x496f14=await _0x10566f[_0x26cb2c(0x18a)](_0x2b192a);return attachUpdateNotice(_0x496f14,await _0x7addb9);}};}function shouldResolveUpdateNotice(_0xce8ed5){const _0x1ccff4=a250_0x2737;return _0xce8ed5[_0x1ccff4(0x198)]==='pretty'&&!_0xce8ed5[_0x1ccff4(0x16a)];}function attachUpdateNotice(_0x1837e6,_0x53f2b2){const _0x391c3c=a250_0x2737;if(!_0x53f2b2||!_0x1837e6||typeof _0x1837e6!==_0x391c3c(0x169))return _0x1837e6;const _0x178925=_0x1837e6,_0x384175=typeof _0x178925['_notice']===_0x391c3c(0x169)&&_0x178925[_0x391c3c(0x194)]!==null?_0x178925['_notice']:{};return{..._0x178925,'_notice':{..._0x384175,'update':_0x53f2b2}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b316,_0x43ae69){const _0x45300c=a251_0x2ed9,_0x4faaef=_0x49b316();while(!![]){try{const _0x34e7c3=-parseInt(_0x45300c(0x173))/0x1+-parseInt(_0x45300c(0x171))/0x2+parseInt(_0x45300c(0x179))/0x3*(-parseInt(_0x45300c(0x178))/0x4)+-parseInt(_0x45300c(0x174))/0x5*(-parseInt(_0x45300c(0x175))/0x6)+parseInt(_0x45300c(0x170))/0x7+-parseInt(_0x45300c(0x177))/0x8+-parseInt(_0x45300c(0x172))/0x9*(parseInt(_0x45300c(0x16f))/0xa);if(_0x34e7c3===_0x43ae69)break;else _0x4faaef['push'](_0x4faaef['shift']());}catch(_0x38e286){_0x4faaef['push'](_0x4faaef['shift']());}}}(a251_0x2bee,0x8158b));import{buildSchemaPayload as a251_0x545161}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a251_0x2ed9(_0x1af9b7,_0x246704){_0x1af9b7=_0x1af9b7-0x16f;const _0x2bee0e=a251_0x2bee();let _0x2ed9a1=_0x2bee0e[_0x1af9b7];return _0x2ed9a1;}function a251_0x2bee(){const _0x23623e=['2891660ODYDTw','6051990NDuNMS','318582Mykdzr','9miZOwZ','59650wygrUB','2210965AqTvCj','6HcePTk','../commands/registry.js','2131968QidOBM','9428yQMfow','3GUBFcx'];a251_0x2bee=function(){return _0x23623e;};return a251_0x2bee();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xb82e88=a251_0x2ed9,{serviceRegistry:_0x3a8451,findDefinition:_0x51ee06}=await import(_0xb82e88(0x176));return a251_0x545161({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3a8451,'buildAllFlags':buildAllFlags,'findDefinition':_0x51ee06});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a252_0x4824(_0x3d61bb,_0x60b6e5){_0x3d61bb=_0x3d61bb-0x1ca;var _0x5a90f8=a252_0x5a90();var _0x482437=_0x5a90f8[_0x3d61bb];return _0x482437;}function a252_0x5a90(){var _0xaa1dd=['463388LHQZWm','3jkfJpQ','488CCFboO','471552VqDxhJ','3104016owPBOs','231687BWOIoT','1993346LizDWQ','2575985uEpSGO','2124255mHsbfT'];a252_0x5a90=function(){return _0xaa1dd;};return a252_0x5a90();}(function(_0x470ed2,_0x4cd698){var _0x59d4c5=a252_0x4824,_0x208640=_0x470ed2();while(!![]){try{var _0x49f450=parseInt(_0x59d4c5(0x1ca))/0x1+parseInt(_0x59d4c5(0x1d0))/0x2*(parseInt(_0x59d4c5(0x1cb))/0x3)+-parseInt(_0x59d4c5(0x1cd))/0x4+parseInt(_0x59d4c5(0x1d1))/0x5+parseInt(_0x59d4c5(0x1ce))/0x6+-parseInt(_0x59d4c5(0x1d2))/0x7+-parseInt(_0x59d4c5(0x1cc))/0x8*(parseInt(_0x59d4c5(0x1cf))/0x9);if(_0x49f450===_0x4cd698)break;else _0x208640['push'](_0x208640['shift']());}catch(_0x7a4532){_0x208640['push'](_0x208640['shift']());}}}(a252_0x5a90,0x7a4b6));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.4.
|
|
2
|
-
export declare const GIT_TAG = "v2.4.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.4.6-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.4.6-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "35318b1";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-17T01:39:21.684Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a253_0x2582bb=a253_0x17db;(function(_0x3c4e06,_0x1255c5){const _0x3f9bf9=a253_0x17db,_0x54e82f=_0x3c4e06();while(!![]){try{const _0x343ad7=-parseInt(_0x3f9bf9(0x140))/0x1*(-parseInt(_0x3f9bf9(0x144))/0x2)+parseInt(_0x3f9bf9(0x149))/0x3*(-parseInt(_0x3f9bf9(0x148))/0x4)+-parseInt(_0x3f9bf9(0x147))/0x5*(-parseInt(_0x3f9bf9(0x14c))/0x6)+-parseInt(_0x3f9bf9(0x13f))/0x7*(parseInt(_0x3f9bf9(0x146))/0x8)+parseInt(_0x3f9bf9(0x14b))/0x9+-parseInt(_0x3f9bf9(0x143))/0xa+-parseInt(_0x3f9bf9(0x13d))/0xb*(-parseInt(_0x3f9bf9(0x141))/0xc);if(_0x343ad7===_0x1255c5)break;else _0x54e82f['push'](_0x54e82f['shift']());}catch(_0x51276f){_0x54e82f['push'](_0x54e82f['shift']());}}}(a253_0x52e0,0x732e1));function a253_0x17db(_0x327ea7,_0xbf7f8f){_0x327ea7=_0x327ea7-0x13d;const _0x52e041=a253_0x52e0();let _0x17db8c=_0x52e041[_0x327ea7];return _0x17db8c;}export const VERSION=a253_0x2582bb(0x13e);export const GIT_TAG=a253_0x2582bb(0x142);export const GIT_COMMIT=a253_0x2582bb(0x14a);function a253_0x52e0(){const _0x169e49=['3UYOraa','35318b1','59823ahVoZA','6wFZgXd','4119643xuDmEY','2.4.6-beta.2','2104186XuEtRc','46515eylCiw','24BTRdpc','v2.4.6-beta.2','5136780WmRIiy','2mwdfRI','2026-08-17T01:39:21.684Z','8runOMw','2942475oedgxx','418520PQqweW'];a253_0x52e0=function(){return _0x169e49;};return a253_0x52e0();}export const BUILD_TIME=a253_0x2582bb(0x145);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3de2a1,_0x54c62b){var _0xb5a60d=a254_0x5d85,_0x1ae62c=_0x3de2a1();while(!![]){try{var _0x20a8a3=parseInt(_0xb5a60d(0x152))/0x1*(parseInt(_0xb5a60d(0x14f))/0x2)+parseInt(_0xb5a60d(0x154))/0x3*(parseInt(_0xb5a60d(0x151))/0x4)+parseInt(_0xb5a60d(0x149))/0x5*(parseInt(_0xb5a60d(0x146))/0x6)+-parseInt(_0xb5a60d(0x14e))/0x7+-parseInt(_0xb5a60d(0x155))/0x8*(parseInt(_0xb5a60d(0x153))/0x9)+parseInt(_0xb5a60d(0x14b))/0xa+parseInt(_0xb5a60d(0x150))/0xb;if(_0x20a8a3===_0x54c62b)break;else _0x1ae62c['push'](_0x1ae62c['shift']());}catch(_0x162d3d){_0x1ae62c['push'](_0x1ae62c['shift']());}}}(a254_0x1eb1,0xd7ec7));function a254_0x5d85(_0x381459,_0x38dcaf){_0x381459=_0x381459-0x146;var _0x1eb1ad=a254_0x1eb1();var _0x5d855e=_0x1eb1ad[_0x381459];return _0x5d855e;}import a254_0x26105c from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x113643=a254_0x5d85;console['log'](),console[_0x113643(0x14c)](a254_0x26105c[_0x113643(0x14d)][_0x113643(0x147)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x113643(0x148)+a254_0x26105c[_0x113643(0x14d)][_0x113643(0x147)](CLI_BIN_NAME+_0x113643(0x14a))+'\x20to\x20view\x20available\x20commands.'),console[_0x113643(0x14c)]();}function a254_0x1eb1(){var _0x2a0f37=['1864vtRnJd','9190062VTEvab','bold','\x20\x20Use\x20','5mxLRvk','\x20--help','5561750PfZHLP','log','green','11035332xMlsbU','64474sofHlq','6285719ZObRBy','1961700TkHDDg','11WUxDnx','59247PFbPmX','6iftIKt'];a254_0x1eb1=function(){return _0x2a0f37;};return a254_0x1eb1();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e097e,_0x296145){const _0x24b42a=a255_0x1bd0,_0x32c07b=_0x4e097e();while(!![]){try{const _0x251852=-parseInt(_0x24b42a(0xb4))/0x1+-parseInt(_0x24b42a(0xa5))/0x2+-parseInt(_0x24b42a(0xa7))/0x3+parseInt(_0x24b42a(0xa6))/0x4*(parseInt(_0x24b42a(0xaa))/0x5)+-parseInt(_0x24b42a(0xb2))/0x6*(-parseInt(_0x24b42a(0xb3))/0x7)+parseInt(_0x24b42a(0xb5))/0x8*(-parseInt(_0x24b42a(0xac))/0x9)+parseInt(_0x24b42a(0xba))/0xa;if(_0x251852===_0x296145)break;else _0x32c07b['push'](_0x32c07b['shift']());}catch(_0x24aa99){_0x32c07b['push'](_0x32c07b['shift']());}}}(a255_0x279e,0x77773));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a255_0x1bd0(_0x4fa226,_0x29d1f9){_0x4fa226=_0x4fa226-0xa5;const _0x279ef1=a255_0x279e();let _0x1bd0d6=_0x279ef1[_0x4fa226];return _0x1bd0d6;}function a255_0x279e(){const _0x2dd074=['code','70826yncGUT','144CjsUhF','2602731GTAUjb','repairCommand','Rabetbase\x20Built-in\x20Skill\x20','56495HDwhjE','Repair\x20with:\x20','447399YqcEjX','changed','SOURCE_INVALID','log','error','\x20at\x20','127866WIVsFZ','77HfubQV','33455EMTQfJ','88HrBBao','warn','\x20via\x20skills@latest','installed','Installation\x20failed','13314120FBTRyD','[BUILTIN_SKILL_INSTALL_'];a255_0x279e=function(){return _0x2dd074;};return a255_0x279e();}export async function runPostinstall(_0x58d581={}){const _0x2754c9=a255_0x1bd0,_0x447f5d=installBuiltinSkill(_0x58d581);if(_0x447f5d['ok']){const _0x5d7f6b=_0x447f5d[_0x2754c9(0xad)]?_0x2754c9(0xb8):'already\x20current',_0x3dcd9e=_0x447f5d['installedPath']?_0x2754c9(0xb1)+_0x447f5d['installedPath']:_0x2754c9(0xb7);return console[_0x2754c9(0xaf)](_0x2754c9(0xa9)+_0x447f5d['skillVersion']+'\x20'+_0x5d7f6b+_0x3dcd9e),_0x447f5d;}const _0x393679=_0x2754c9(0xbb)+(_0x447f5d[_0x2754c9(0xbc)]??'FAILED')+']\x20'+(_0x447f5d[_0x2754c9(0xb0)]??_0x2754c9(0xb9))+'.\x20'+(_0x2754c9(0xab)+_0x447f5d[_0x2754c9(0xa8)]);if(_0x447f5d[_0x2754c9(0xbc)]===_0x2754c9(0xae))throw new Error(_0x393679);return console[_0x2754c9(0xb6)](_0x393679),_0x447f5d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x30457f,_0x55552d){const _0x8db10a=a256_0x3c44,_0x355190=_0x30457f();while(!![]){try{const _0x3f19f1=parseInt(_0x8db10a(0x1cd))/0x1*(parseInt(_0x8db10a(0x1d1))/0x2)+-parseInt(_0x8db10a(0x1e1))/0x3*(-parseInt(_0x8db10a(0x1db))/0x4)+parseInt(_0x8db10a(0x1ce))/0x5+parseInt(_0x8db10a(0x1d9))/0x6+-parseInt(_0x8db10a(0x1dc))/0x7+-parseInt(_0x8db10a(0x1d4))/0x8*(parseInt(_0x8db10a(0x1d6))/0x9)+parseInt(_0x8db10a(0x1cf))/0xa*(-parseInt(_0x8db10a(0x1d7))/0xb);if(_0x3f19f1===_0x55552d)break;else _0x355190['push'](_0x355190['shift']());}catch(_0x6a31f7){_0x355190['push'](_0x355190['shift']());}}}(a256_0x76b6,0xef106));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2c9c43,_0x52e3da,_0x31de13){const _0x25128d=a256_0x3c44,_0x50e9c6=normalizeText(_0x2c9c43[_0x25128d(0x1d0)],DESCRIPTION_MAX_LENGTH),_0x5cb97b=_0x50e9c6||normalizeText(defaultDescription(requireWriteRisk(_0x2c9c43),_0x52e3da),DESCRIPTION_MAX_LENGTH);return{'operation':_0x52e3da,'risk':requireWriteRisk(_0x2c9c43),'description':_0x5cb97b,..._0x31de13?{'signal':_0x31de13}:{}};}function a256_0x3c44(_0x39cc80,_0x4beabe){_0x39cc80=_0x39cc80-0x1cc;const _0x76b69e=a256_0x76b6();let _0x3c44ba=_0x76b69e[_0x39cc80];return _0x3c44ba;}function requireWriteRisk(_0x552970){const _0x564dac=a256_0x3c44;if(_0x552970['risk']===_0x564dac(0x1dd)||_0x552970[_0x564dac(0x1d5)]===_0x564dac(0x1df))return _0x552970['risk'];throw new Error(_0x564dac(0x1cc));}function defaultDescription(_0x177439,_0x1ef974){const _0xa67f75=a256_0x3c44;if(_0x177439===_0xa67f75(0x1df))return'将执行高风险写入操作\x20'+_0x1ef974+_0xa67f75(0x1d2);return _0xa67f75(0x1de)+_0x1ef974+_0xa67f75(0x1e2);}function a256_0x76b6(){const _0x56a210=['10691928gzAlpo','trim','4Pdfgux','4857223bsGjNh','write','将执行写入操作\x20','high-risk-write','string','1980144LksYNS',';该操作可能创建或修改业务数据或本地配置。','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','65909kDKyIP','1793315TWDpVN','2287790DcipNJ','confirmationDescription','2wwHPIx',';该操作可能覆盖、删除或明显影响线上运行行为。','slice','318168fEpCOg','risk','63bqOhKn','44hIdCoL','replace'];a256_0x76b6=function(){return _0x56a210;};return a256_0x76b6();}function normalizeText(_0x2fb20d,_0x95ab8c){const _0x371992=a256_0x3c44;if(typeof _0x2fb20d!==_0x371992(0x1e0))return'';return _0x2fb20d['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x371992(0x1d8)](/\s+/g,'\x20')[_0x371992(0x1da)]()[_0x371992(0x1d3)](0x0,_0x95ab8c);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a257_0x1b14(_0x1e5a63,_0x45d2e0){_0x1e5a63=_0x1e5a63-0x157;var _0x4e8425=a257_0x4e84();var _0x1b1420=_0x4e8425[_0x1e5a63];return _0x1b1420;}(function(_0x5300af,_0x40ec4b){var _0x2d2f75=a257_0x1b14,_0x1e65f4=_0x5300af();while(!![]){try{var _0x186378=-parseInt(_0x2d2f75(0x168))/0x1+parseInt(_0x2d2f75(0x15a))/0x2*(parseInt(_0x2d2f75(0x164))/0x3)+parseInt(_0x2d2f75(0x166))/0x4*(-parseInt(_0x2d2f75(0x163))/0x5)+parseInt(_0x2d2f75(0x15f))/0x6+parseInt(_0x2d2f75(0x167))/0x7*(-parseInt(_0x2d2f75(0x162))/0x8)+-parseInt(_0x2d2f75(0x169))/0x9+parseInt(_0x2d2f75(0x15e))/0xa*(parseInt(_0x2d2f75(0x165))/0xb);if(_0x186378===_0x40ec4b)break;else _0x1e65f4['push'](_0x1e65f4['shift']());}catch(_0x4771a7){_0x1e65f4['push'](_0x1e65f4['shift']());}}}(a257_0x4e84,0xecf2d));export function canonicalRabetbaseOperation(_0x2794fe){var _0x101ea9=a257_0x1b14;return[_0x2794fe[_0x101ea9(0x159)],..._0x2794fe['command'][_0x101ea9(0x15d)]()[_0x101ea9(0x157)](/\s+/)][_0x101ea9(0x158)](Boolean)[_0x101ea9(0x15c)]('.');}export function createRabetbaseWriteMetadata(_0xf6cddc,_0x544045,_0x2d0b61,_0x19c718){var _0x3f3eab=a257_0x1b14;if(_0x19c718||_0x2d0b61['ok']!==!![]||_0xf6cddc['risk']!==_0x3f3eab(0x15b)&&_0xf6cddc[_0x3f3eab(0x161)]!==_0x3f3eab(0x160))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x544045,'risk':_0xf6cddc[_0x3f3eab(0x161)]}}};}function a257_0x4e84(){var _0x3de1fb=['1048ZRitfq','5vKfjYU','60nUCudn','913IXhSpm','4719452AgmuZy','33159FlVwld','1237523idfiBX','16540290LSKvHj','split','filter','service','109218AWtnFq','write','join','trim','378710uYKyes','9664866ZdrVKn','high-risk-write','risk'];a257_0x4e84=function(){return _0x3de1fb;};return a257_0x4e84();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x483678,_0x29cd0b){const _0x5947ad=a258_0x107d,_0x938e24=_0x483678();while(!![]){try{const _0x3d6866=-parseInt(_0x5947ad(0xd7))/0x1*(-parseInt(_0x5947ad(0xf5))/0x2)+-parseInt(_0x5947ad(0xe8))/0x3*(parseInt(_0x5947ad(0xed))/0x4)+-parseInt(_0x5947ad(0xe0))/0x5+parseInt(_0x5947ad(0xe9))/0x6*(parseInt(_0x5947ad(0xf0))/0x7)+parseInt(_0x5947ad(0xdc))/0x8+parseInt(_0x5947ad(0xfa))/0x9+-parseInt(_0x5947ad(0xe5))/0xa*(parseInt(_0x5947ad(0xf9))/0xb);if(_0x3d6866===_0x29cd0b)break;else _0x938e24['push'](_0x938e24['shift']());}catch(_0x34272f){_0x938e24['push'](_0x938e24['shift']());}}}(a258_0x2bb7,0xca401));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a258_0x107d(_0x367353,_0x360ea7){_0x367353=_0x367353-0xd7;const _0x2bb740=a258_0x2bb7();let _0x107d28=_0x2bb740[_0x367353];return _0x107d28;}function a258_0x2bb7(){const _0xc06f32=['confirm','8303752tIHLhc','format','dry-run','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1478340XHLvce','result','aborted','presentation','write','8917890nKEPyq','isNonInteractive','command','73434RDZXLj','6Cvedmg','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','data','84GBZmaa','reason','present','4210801TCxqZh','rawFlags','AbortError','risk','riskLevel','1832238THTKZc','execute','high-risk-write','dryRun','22QsHDWu','7794630BSzeiq','1xZYWRK','message','confirmation','signal'];a258_0x2bb7=function(){return _0xc06f32;};return a258_0x2bb7();}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5e3ded,command:_0x104ccc,risk:_0x2bdad9,dryRun:_0x5701d9}){const _0x45864c=a258_0x107d;return JSON['stringify']({'ok':_0x5e3ded['ok'],'command':_0x104ccc,'risk':_0x2bdad9,..._0x5701d9?{'dryRun':!![]}:{},..._0x5e3ded[_0x45864c(0xec)]!==undefined?{'data':_0x5e3ded[_0x45864c(0xec)]}:{},..._0x5e3ded['message']?{'message':_0x5e3ded[_0x45864c(0xd8)]}:{}});}};export async function invokeRabetbase(_0x373c7d,_0x3c63bb){const _0x2bd8a2=a258_0x107d;throwIfAborted(_0x3c63bb[_0x2bd8a2(0xda)]);const _0x19593a=await resolveRabetbaseInvocation(_0x373c7d),_0xbcab95=canonicalRabetbaseOperation(_0x19593a['definition']);return await confirmWriteBeforeQueue(_0x19593a[_0x2bd8a2(0xeb)],_0x19593a[_0x2bd8a2(0xf1)],_0xbcab95,_0x3c63bb),runSerialized(async()=>{const _0x5d09ca=_0x2bd8a2,_0x30a95f={};try{throwIfAborted(_0x3c63bb[_0x5d09ca(0xda)]);const _0xc9c9a3=buildConfigFromFlags(_0x19593a['rawFlags']);await initGlobalEnvironment(_0xc9c9a3);const _0x7b4af9=createPipelineEnv(_0xc9c9a3,{..._0x19593a[_0x5d09ca(0xf1)],'yes':_0x19593a[_0x5d09ca(0xeb)][_0x5d09ca(0xf3)]===_0x5d09ca(0xf7)?!![]:_0x19593a[_0x5d09ca(0xf1)]['yes'],'nonInteractive':!![]},_0x19593a['args']);_0x7b4af9[_0x5d09ca(0xe6)]=!![],_0x7b4af9[_0x5d09ca(0xf4)]=_0x5d09ca(0xf7);const _0x2f428c=withAbortSignal(_0x19593a[_0x5d09ca(0xeb)],_0x3c63bb['signal']),_0x1ac91b=createRabetbaseRunnerAdapter({'formatOutput'(_0x1458fa,_0x5a1362){const _0x8790fa=_0x5d09ca;_0x30a95f[_0x8790fa(0xe1)]=_0x1458fa,_0x30a95f[_0x8790fa(0xe7)]=_0x5a1362[_0x8790fa(0xe7)],_0x30a95f[_0x8790fa(0xf3)]=_0x5a1362[_0x8790fa(0xf3)],_0x30a95f[_0x8790fa(0xdd)]=_0x5a1362['format'],_0x30a95f[_0x8790fa(0xf8)]=_0x5a1362[_0x8790fa(0xf8)]===!![];},async 'confirmHighRisk'(){const _0x48994c=_0x5d09ca;throw new Error(_0x48994c(0xea));}});await runCommand(_0x2f428c,_0x7b4af9,_0x1ac91b);if(!_0x30a95f[_0x5d09ca(0xe1)]||!_0x30a95f[_0x5d09ca(0xe7)]||!_0x30a95f[_0x5d09ca(0xf3)]||!_0x30a95f['format'])throw new Error(_0x5d09ca(0xdf));const _0x5ae995=_0x30a95f[_0x5d09ca(0xf8)]===!![],_0x59f9f9=_0x3c63bb[_0x5d09ca(0xe3)]??defaultPresentation,_0x26f8ad={'result':_0x30a95f[_0x5d09ca(0xe1)],'command':_0x30a95f[_0x5d09ca(0xe7)],'operation':_0xbcab95,'risk':_0x30a95f[_0x5d09ca(0xf3)],'format':_0x30a95f[_0x5d09ca(0xdd)],'dryRun':_0x5ae995},_0x14e9d0=createRabetbaseWriteMetadata(_0x19593a[_0x5d09ca(0xeb)],_0xbcab95,_0x30a95f[_0x5d09ca(0xe1)],_0x5ae995);let _0x3fb530;try{_0x3fb530=await _0x59f9f9['present'](_0x26f8ad);}catch(_0x50703f){if(!_0x14e9d0||_0x59f9f9===defaultPresentation)throw _0x50703f;_0x3fb530=await defaultPresentation[_0x5d09ca(0xef)](_0x26f8ad);}return{'operation':_0xbcab95,'risk':_0x30a95f[_0x5d09ca(0xf3)],'mode':_0x5ae995?_0x5d09ca(0xde):_0x5d09ca(0xf6),'result':_0x30a95f[_0x5d09ca(0xe1)],'output':_0x3fb530,..._0x14e9d0?{'metadata':_0x14e9d0}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3d2b6c,_0x22afdf,_0x264bf8,_0x5185c8){const _0x548410=a258_0x107d;if(_0x22afdf[_0x548410(0xf8)]===!![]||_0x3d2b6c[_0x548410(0xf3)]!==_0x548410(0xe4)&&_0x3d2b6c[_0x548410(0xf3)]!==_0x548410(0xf7))return;await _0x5185c8[_0x548410(0xd9)][_0x548410(0xdb)](buildRabetbaseConfirmationRequest(_0x3d2b6c,_0x264bf8,_0x5185c8[_0x548410(0xda)]));}function withAbortSignal(_0x52b112,_0x2db501){return{..._0x52b112,async 'execute'(_0x22574a){const _0x3a0866=a258_0x107d;return throwIfAborted(_0x2db501),_0x52b112[_0x3a0866(0xf6)](_0x22574a);}};}function throwIfAborted(_0x532060){const _0x4377b6=a258_0x107d;if(_0x532060?.[_0x4377b6(0xe2)])throw _0x532060[_0x4377b6(0xee)]instanceof Error?_0x532060[_0x4377b6(0xee)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x4377b6(0xf2));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a259_0x1500(){const _0x28916a=['10wOljzb','52648owrEqG','810134hJWqop','477AqORFt','resolve','8WVizEt','10121771OLepvT','1968662ITETWu','2399127ABArCC','431571DTOwAf','935095tANnrQ','54ClxaVM','catch'];a259_0x1500=function(){return _0x28916a;};return a259_0x1500();}const a259_0x41c9fd=a259_0x189d;function a259_0x189d(_0x533df6,_0x4b5e94){_0x533df6=_0x533df6-0x1e3;const _0x1500ad=a259_0x1500();let _0x189d8c=_0x1500ad[_0x533df6];return _0x189d8c;}(function(_0x50aec5,_0x101fe8){const _0xd34ba=a259_0x189d,_0x3ae133=_0x50aec5();while(!![]){try{const _0x1e8366=-parseInt(_0xd34ba(0x1ec))/0x1+-parseInt(_0xd34ba(0x1e4))/0x2+parseInt(_0xd34ba(0x1e5))/0x3+parseInt(_0xd34ba(0x1ef))/0x4*(parseInt(_0xd34ba(0x1e7))/0x5)+parseInt(_0xd34ba(0x1e8))/0x6*(parseInt(_0xd34ba(0x1e6))/0x7)+parseInt(_0xd34ba(0x1eb))/0x8*(-parseInt(_0xd34ba(0x1ed))/0x9)+-parseInt(_0xd34ba(0x1ea))/0xa*(-parseInt(_0xd34ba(0x1e3))/0xb);if(_0x1e8366===_0x101fe8)break;else _0x3ae133['push'](_0x3ae133['shift']());}catch(_0x58a766){_0x3ae133['push'](_0x3ae133['shift']());}}}(a259_0x1500,0x7b6b7));let tail=Promise[a259_0x41c9fd(0x1ee)]();export async function runSerialized(_0x1a0b45){const _0x4a078a=a259_0x41c9fd,_0x2eea9e=tail;let _0x19cf45;tail=new Promise(_0x121d7c=>{_0x19cf45=_0x121d7c;}),await _0x2eea9e[_0x4a078a(0x1e9)](()=>undefined);try{return await _0x1a0b45();}finally{_0x19cf45();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f6779,_0x1ebcea){const _0x37e762=a260_0x32c4,_0x12f358=_0x1f6779();while(!![]){try{const _0x156581=-parseInt(_0x37e762(0xe1))/0x1*(-parseInt(_0x37e762(0xe3))/0x2)+-parseInt(_0x37e762(0xe5))/0x3+-parseInt(_0x37e762(0xe7))/0x4+-parseInt(_0x37e762(0xe6))/0x5*(parseInt(_0x37e762(0xde))/0x6)+parseInt(_0x37e762(0xe4))/0x7+parseInt(_0x37e762(0xeb))/0x8*(parseInt(_0x37e762(0xdb))/0x9)+-parseInt(_0x37e762(0xef))/0xa*(-parseInt(_0x37e762(0xe8))/0xb);if(_0x156581===_0x1ebcea)break;else _0x12f358['push'](_0x12f358['shift']());}catch(_0x3f5afc){_0x12f358['push'](_0x12f358['shift']());}}}(a260_0x5b6c,0x87eed));import a260_0x272d52 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a260_0x5b6c(){const _0x257f45=['670yibVaX','2898MKbuGA','slice','run','5898IbbiKR','defaultCommand','flags','569fUVIem','wildcardDef','2450qJqaMW','740845DYiwra','2963052DzqjMh','5515wBNUGY','3385172gngvpd','398057qiTXFV','message','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','6152rtqEJg','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','input'];a260_0x5b6c=function(){return _0x257f45;};return a260_0x5b6c();}function a260_0x32c4(_0x297d46,_0x3fa4cc){_0x297d46=_0x297d46-0xdb;const _0x5b6cd8=a260_0x5b6c();let _0x32c432=_0x5b6cd8[_0x297d46];return _0x32c432;}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x514bbc){const _0x56c12b=a260_0x32c4,_0x270a0a=a260_0x272d52('',{'importMeta':import.meta,'argv':[..._0x514bbc],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x36573f=[..._0x270a0a[_0x56c12b(0xee)]],_0x2e1285=_0x270a0a[_0x56c12b(0xe0)],_0x5a527c=_0x36573f[0x0];if(!_0x5a527c)throw CliErrors[_0x56c12b(0xed)](_0x56c12b(0xea));const _0x251cb0=resolveRemovedCommand(_0x5a527c,_0x36573f[0x1]);if(_0x251cb0)throw CliErrors['validation'](_0x251cb0[_0x56c12b(0xe9)],_0x251cb0['hint']);if(_0x5a527c===_0x56c12b(0xdd))throw CliErrors[_0x56c12b(0xed)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x56c12b(0xec));if(!isKnownService(_0x5a527c))throw CliErrors['unknownCommand'](_0x36573f['join']('\x20'));const _0x4c69e1=getServiceEntry(_0x5a527c),_0x4ef8cc=_0x36573f[0x1],_0x1243c4=_0x4ef8cc||_0x4c69e1[_0x56c12b(0xdf)];if(!_0x1243c4){if(_0x4c69e1[_0x56c12b(0xe2)])return{'definition':_0x4c69e1[_0x56c12b(0xe2)],'rawFlags':_0x2e1285,'args':[]};throw CliErrors[_0x56c12b(0xed)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x5a527c+'\x22.');}const _0xc6a0a4=findDefinition(_0x5a527c,_0x1243c4);if(_0xc6a0a4)return{'definition':_0xc6a0a4,'rawFlags':_0x2e1285,'args':_0x36573f['slice'](0x2)};if(_0x4c69e1[_0x56c12b(0xe2)])return{'definition':_0x4c69e1[_0x56c12b(0xe2)],'rawFlags':_0x2e1285,'args':[_0x1243c4,..._0x36573f[_0x56c12b(0xdc)](0x2)]};throw CliErrors['unknownCommand'](_0x5a527c+'\x20'+_0x1243c4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a261_0x5db183=a261_0x2345;function a261_0x2345(_0x30ab6b,_0x4d367d){_0x30ab6b=_0x30ab6b-0x120;const _0x337114=a261_0x3371();let _0x2345bb=_0x337114[_0x30ab6b];return _0x2345bb;}(function(_0x54876b,_0x22996e){const _0x45de8a=a261_0x2345,_0x4f9051=_0x54876b();while(!![]){try{const _0x57db70=-parseInt(_0x45de8a(0x140))/0x1*(parseInt(_0x45de8a(0x13a))/0x2)+parseInt(_0x45de8a(0x142))/0x3+-parseInt(_0x45de8a(0x129))/0x4*(-parseInt(_0x45de8a(0x158))/0x5)+-parseInt(_0x45de8a(0x15a))/0x6*(parseInt(_0x45de8a(0x138))/0x7)+parseInt(_0x45de8a(0x152))/0x8*(-parseInt(_0x45de8a(0x159))/0x9)+parseInt(_0x45de8a(0x13d))/0xa+-parseInt(_0x45de8a(0x153))/0xb*(parseInt(_0x45de8a(0x121))/0xc);if(_0x57db70===_0x22996e)break;else _0x4f9051['push'](_0x4f9051['shift']());}catch(_0x5a9d8f){_0x4f9051['push'](_0x4f9051['shift']());}}}(a261_0x3371,0xcd277));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a261_0x5db183(0x15f),SKILL_NAME=a261_0x5db183(0x139);function frontmatterValue(_0x24f3ce,_0x5c8fd4){const _0x5dac4e=a261_0x5db183;return _0x24f3ce[_0x5dac4e(0x124)](new RegExp('^'+_0x5c8fd4+_0x5dac4e(0x150),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x203785,_0x2b768e=_0x203785){const _0x166c45=a261_0x5db183;return readdirSync(_0x2b768e,{'withFileTypes':!![]})[_0x166c45(0x130)](_0x189780=>{const _0x121ea9=_0x166c45,_0x24ca5e=join(_0x2b768e,_0x189780[_0x121ea9(0x12d)]),_0x55940c=lstatSync(_0x24ca5e);if(_0x55940c[_0x121ea9(0x147)]())throw new Error(_0x121ea9(0x14c)+_0x24ca5e);if(_0x55940c['isDirectory']())return listFiles(_0x203785,_0x24ca5e);if(!_0x55940c[_0x121ea9(0x133)]())throw new Error(_0x121ea9(0x134)+_0x24ca5e);return[relative(_0x203785,_0x24ca5e)[_0x121ea9(0x136)](sep)[_0x121ea9(0x15b)]('/')];})[_0x166c45(0x14b)]((_0x3a43ba,_0x2e1e80)=>_0x3a43ba<_0x2e1e80?-0x1:_0x3a43ba>_0x2e1e80?0x1:0x0);}function digestFiles(_0x218243,_0x73b7bd){const _0x3ea5b6=a261_0x5db183,_0x47beb4=createHash('sha256');for(const _0x4664d9 of _0x73b7bd){if(_0x4664d9[_0x3ea5b6(0x151)]('/')||_0x4664d9['split']('/')[_0x3ea5b6(0x15c)]('..')||_0x4664d9[_0x3ea5b6(0x15c)]('\x5c'))throw new Error(_0x3ea5b6(0x13f)+_0x4664d9);_0x47beb4[_0x3ea5b6(0x161)](_0x4664d9),_0x47beb4[_0x3ea5b6(0x161)]('\x00'),_0x47beb4[_0x3ea5b6(0x161)](readFileSync(join(_0x218243,..._0x4664d9[_0x3ea5b6(0x136)]('/')))),_0x47beb4[_0x3ea5b6(0x161)]('\x00');}return _0x47beb4['digest'](_0x3ea5b6(0x160));}function a261_0x3371(){const _0x43696e=['path','message','schemaVersion','5400vAdPbL','manifest','version','match','unknown','pipe','digest','error','1377276pHeunE','files','absent','reason','name','every','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','flatMap','installedPath','packageRoot','isFile','Unsupported\x20Skill\x20entry:\x20','length','split','unverifiable','68978xnsDfB','rabetbase','34yFJlgp','state','parse','14849090eQbcFJ','root','Unsafe\x20manifest\x20path:\x20','54437nWzglL','skillVersion','3152133KSFCLO','stdio','present','skills@latest\x20exited\x20','SKILL.md','isSymbolicLink','version_mismatch','utf8','rabetbase.manifest.json','sort','Symbolic\x20link\x20is\x20not\x20allowed:\x20','home','current','status',':\x5cs*(.+)$','startsWith','8lhmlvW','7359MeuKnz','skills','INSTALL_FAILED','SOURCE_INVALID','skipped','15PBlJin','3849309PYcVns','654vLnbPN','join','includes','missing','packageVersion','rabetbase\x20cli-skill\x20install','hex','update'];a261_0x3371=function(){return _0x43696e;};return a261_0x3371();}function sameFiles(_0x1d8704,_0x3b9ec3){const _0x34746c=a261_0x5db183;return _0x1d8704[_0x34746c(0x135)]===_0x3b9ec3[_0x34746c(0x135)]&&_0x1d8704[_0x34746c(0x12e)]((_0x435b66,_0x390057)=>_0x435b66===_0x3b9ec3[_0x390057]);}function readSource(_0x30db36){const _0x58d353=a261_0x5db183,_0xe5418d=JSON[_0x58d353(0x13c)](readFileSync(join(_0x30db36,'package.json'),_0x58d353(0x149))),_0x1eb18a=JSON['parse'](readFileSync(join(_0x30db36,'skills',_0x58d353(0x14a)),_0x58d353(0x149))),_0xc5a821=join(_0x30db36,_0x58d353(0x154),SKILL_NAME),_0x3d93c1=frontmatterValue(readFileSync(join(_0xc5a821,_0x58d353(0x146)),_0x58d353(0x149)),_0x58d353(0x123)),_0x13131b=listFiles(_0xc5a821);if(_0x1eb18a[_0x58d353(0x120)]!==0x1||_0x1eb18a[_0x58d353(0x12d)]!==SKILL_NAME||!_0xe5418d[_0x58d353(0x123)]||_0x1eb18a[_0x58d353(0x15e)]!==_0xe5418d[_0x58d353(0x123)]||_0x1eb18a[_0x58d353(0x141)]!==_0xe5418d['version']||_0x3d93c1!==_0xe5418d[_0x58d353(0x123)]||!sameFiles(_0x13131b,_0x1eb18a[_0x58d353(0x12a)])||digestFiles(_0xc5a821,_0x13131b)!==_0x1eb18a[_0x58d353(0x127)])throw new Error(_0x58d353(0x12f));return{'packageVersion':_0xe5418d['version'],'skillVersion':_0x3d93c1,'root':_0xc5a821,'manifest':_0x1eb18a};}function installedSkillPath(_0x309bad){const _0x3a3c1d=a261_0x5db183,_0x75fa71=resolveInstalledSkill(SKILL_NAME,{'home':_0x309bad});if(_0x75fa71[_0x3a3c1d(0x13b)]===_0x3a3c1d(0x144))return{'state':_0x3a3c1d(0x144),'path':dirname(_0x75fa71[_0x3a3c1d(0x162)])};if(_0x75fa71[_0x3a3c1d(0x13b)]===_0x3a3c1d(0x12b))return{'state':_0x3a3c1d(0x15d)};return{'state':_0x3a3c1d(0x137),'reason':_0x75fa71[_0x3a3c1d(0x12c)]};}export function inspectInstalledBuiltinSkillVersion(_0x530353,_0x2c33c4={}){const _0x22d3f2=a261_0x5db183,_0x4653e9=installedSkillPath(_0x2c33c4[_0x22d3f2(0x14d)]??homedir());if(_0x4653e9[_0x22d3f2(0x13b)]===_0x22d3f2(0x15d))return{'state':_0x22d3f2(0x15d),'expectedVersion':_0x530353,'repairCommand':REPAIR_COMMAND};if(_0x4653e9[_0x22d3f2(0x13b)]===_0x22d3f2(0x137))return{'state':_0x22d3f2(0x137),'expectedVersion':_0x530353,'reason':_0x4653e9[_0x22d3f2(0x12c)],'repairCommand':REPAIR_COMMAND};try{const _0x4cb617=frontmatterValue(readFileSync(join(_0x4653e9[_0x22d3f2(0x162)],_0x22d3f2(0x146)),_0x22d3f2(0x149)),_0x22d3f2(0x123));return{'state':_0x4cb617===_0x530353?_0x22d3f2(0x14e):'version_mismatch','expectedVersion':_0x530353,'skillVersion':_0x4cb617,'installedPath':_0x4653e9[_0x22d3f2(0x162)],'repairCommand':REPAIR_COMMAND};}catch(_0xafd1c1){return{'state':'unverifiable','expectedVersion':_0x530353,'installedPath':_0x4653e9['path'],'reason':_0xafd1c1 instanceof Error?_0xafd1c1['message']:String(_0xafd1c1),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x22e13f={}){const _0x2e273a=a261_0x5db183,_0x1ff509=_0x22e13f[_0x2e273a(0x132)]??DEFAULT_PACKAGE_ROOT;let _0x5c14db;try{_0x5c14db=readSource(_0x1ff509);}catch(_0x4b3bf4){return{'state':'unverifiable','packageVersion':_0x2e273a(0x125),'reason':_0x4b3bf4 instanceof Error?_0x4b3bf4[_0x2e273a(0x163)]:String(_0x4b3bf4),'repairCommand':REPAIR_COMMAND};}const _0x1cb508=installedSkillPath(_0x22e13f[_0x2e273a(0x14d)]??homedir());if(_0x1cb508[_0x2e273a(0x13b)]==='missing')return{'state':_0x2e273a(0x15d),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'repairCommand':REPAIR_COMMAND};if(_0x1cb508[_0x2e273a(0x13b)]==='unverifiable')return{'state':_0x2e273a(0x137),'packageVersion':_0x5c14db['packageVersion'],'reason':_0x1cb508[_0x2e273a(0x12c)],'repairCommand':REPAIR_COMMAND};try{const _0x2e3af1=frontmatterValue(readFileSync(join(_0x1cb508[_0x2e273a(0x162)],'SKILL.md'),_0x2e273a(0x149)),'version');if(_0x2e3af1!==_0x5c14db[_0x2e273a(0x141)])return{'state':_0x2e273a(0x148),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'skillVersion':_0x2e3af1,'installedPath':_0x1cb508[_0x2e273a(0x162)],'repairCommand':REPAIR_COMMAND};const _0x56e784=listFiles(_0x1cb508[_0x2e273a(0x162)]),_0x32c3af=digestFiles(_0x1cb508['path'],_0x56e784);return{'state':sameFiles(_0x56e784,_0x5c14db[_0x2e273a(0x122)][_0x2e273a(0x12a)])&&_0x32c3af===_0x5c14db['manifest'][_0x2e273a(0x127)]?_0x2e273a(0x14e):'content_mismatch','packageVersion':_0x5c14db[_0x2e273a(0x15e)],'skillVersion':_0x2e3af1,'installedPath':_0x1cb508[_0x2e273a(0x162)],'digest':_0x32c3af,'repairCommand':REPAIR_COMMAND};}catch(_0x1bb064){return{'state':_0x2e273a(0x137),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'installedPath':_0x1cb508[_0x2e273a(0x162)],'reason':_0x1bb064 instanceof Error?_0x1bb064[_0x2e273a(0x163)]:String(_0x1bb064),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5f238d,_0xe760e9,_0x322f0f,_0x2ba205){const _0x7cd544=a261_0x5db183;return{'ok':![],'code':_0x5f238d,'packageVersion':_0xe760e9[_0x7cd544(0x15e)],'skillVersion':_0xe760e9[_0x7cd544(0x141)],'installedPath':_0x2ba205,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x322f0f instanceof Error?_0x322f0f[_0x7cd544(0x163)]:String(_0x322f0f)};}export function installBuiltinSkill(_0x44cd12={}){const _0x22e23d=a261_0x5db183,_0x598c7e=_0x44cd12[_0x22e23d(0x132)]??DEFAULT_PACKAGE_ROOT,_0x412e73=_0x44cd12[_0x22e23d(0x14d)]??homedir();let _0x2c3b55;try{_0x2c3b55=readSource(_0x598c7e);}catch(_0x495ba7){return failure(_0x22e23d(0x156),{'packageVersion':_0x22e23d(0x125),'skillVersion':'unknown'},_0x495ba7);}const _0x4dfdeb=inspectBuiltinSkill({'packageRoot':_0x598c7e,'home':_0x412e73}),_0x52a0b3=runNpxSkillsAddGlobal(_0x598c7e,_0x2c3b55[_0x22e23d(0x13e)],{'stdio':_0x44cd12[_0x22e23d(0x143)]??_0x22e23d(0x126),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x412e73}});if(_0x52a0b3[_0x22e23d(0x157)])return{'ok':!![],'packageVersion':_0x2c3b55[_0x22e23d(0x15e)],'skillVersion':_0x2c3b55['skillVersion'],'installedPath':_0x4dfdeb[_0x22e23d(0x131)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x52a0b3['ok'])return failure(_0x22e23d(0x155),_0x2c3b55,_0x52a0b3[_0x22e23d(0x128)]??_0x22e23d(0x145)+_0x52a0b3[_0x22e23d(0x14f)]);const _0x583871=inspectBuiltinSkill({'packageRoot':_0x598c7e,'home':_0x412e73});if(_0x583871[_0x22e23d(0x13b)]!==_0x22e23d(0x14e))return failure('VERIFY_FAILED',_0x2c3b55,_0x583871[_0x22e23d(0x12c)]??'Installed\x20Skill\x20state\x20is\x20'+_0x583871[_0x22e23d(0x13b)],_0x583871[_0x22e23d(0x131)]);return{'ok':!![],'packageVersion':_0x2c3b55[_0x22e23d(0x15e)],'skillVersion':_0x2c3b55[_0x22e23d(0x141)],'installedPath':_0x583871[_0x22e23d(0x131)],'changed':_0x4dfdeb[_0x22e23d(0x13b)]!==_0x22e23d(0x14e),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a262_0x15ea5d=a262_0x424f;(function(_0x4f9512,_0x388323){const _0x1dd664=a262_0x424f,_0x3c1071=_0x4f9512();while(!![]){try{const _0x437664=parseInt(_0x1dd664(0x16e))/0x1*(-parseInt(_0x1dd664(0x17d))/0x2)+-parseInt(_0x1dd664(0x19d))/0x3+-parseInt(_0x1dd664(0x197))/0x4*(parseInt(_0x1dd664(0x176))/0x5)+-parseInt(_0x1dd664(0x183))/0x6+-parseInt(_0x1dd664(0x195))/0x7+-parseInt(_0x1dd664(0x18b))/0x8+-parseInt(_0x1dd664(0x16b))/0x9*(-parseInt(_0x1dd664(0x196))/0xa);if(_0x437664===_0x388323)break;else _0x3c1071['push'](_0x3c1071['shift']());}catch(_0x516bc9){_0x3c1071['push'](_0x3c1071['shift']());}}}(a262_0x1ea3,0x7126a));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';function a262_0x424f(_0xb06262,_0xf451a4){_0xb06262=_0xb06262-0x163;const _0x1ea31a=a262_0x1ea3();let _0x424fd1=_0x1ea31a[_0xb06262];return _0x424fd1;}import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a262_0x15ea5d(0x172),SKILL_NAME=a262_0x15ea5d(0x199);function frontmatterValue(_0x521602,_0x54f58d){const _0x4fc134=a262_0x15ea5d;return _0x521602[_0x4fc134(0x18a)](new RegExp('^'+_0x54f58d+_0x4fc134(0x1a0),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x41aa47,_0x5bb0c6=_0x41aa47){const _0x434b7f=a262_0x15ea5d;return readdirSync(_0x5bb0c6,{'withFileTypes':!![]})[_0x434b7f(0x17b)](_0x3f5e38=>{const _0xd0b931=_0x434b7f,_0x2c5bb8=join(_0x5bb0c6,_0x3f5e38[_0xd0b931(0x168)]),_0x1823a2=lstatSync(_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x18e)]())throw new Error(_0xd0b931(0x180)+_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x193)]())return listFiles(_0x41aa47,_0x2c5bb8);if(!_0x1823a2[_0xd0b931(0x175)]())throw new Error(_0xd0b931(0x184)+_0x2c5bb8);return[relative(_0x41aa47,_0x2c5bb8)[_0xd0b931(0x19e)](sep)[_0xd0b931(0x16a)]('/')];})[_0x434b7f(0x171)]((_0x4d56ee,_0x1055c7)=>_0x4d56ee<_0x1055c7?-0x1:_0x4d56ee>_0x1055c7?0x1:0x0);}function digestFiles(_0x242d25,_0x3b7df5){const _0x27b956=a262_0x15ea5d,_0x43c2f9=createHash(_0x27b956(0x164));for(const _0x267931 of _0x3b7df5){if(_0x267931[_0x27b956(0x166)]('/')||_0x267931['split']('/')[_0x27b956(0x19f)]('..')||_0x267931[_0x27b956(0x19f)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x267931);_0x43c2f9['update'](_0x267931),_0x43c2f9[_0x27b956(0x17f)]('\x00'),_0x43c2f9[_0x27b956(0x17f)](readFileSync(join(_0x242d25,..._0x267931['split']('/')))),_0x43c2f9['update']('\x00');}return _0x43c2f9['digest']('hex');}function sameFiles(_0x55e7f4,_0x50389b){const _0x1f72a9=a262_0x15ea5d;return _0x55e7f4['length']===_0x50389b[_0x1f72a9(0x169)]&&_0x55e7f4[_0x1f72a9(0x187)]((_0x464bef,_0x3ab812)=>_0x464bef===_0x50389b[_0x3ab812]);}function readSource(_0x597109){const _0x1838f5=a262_0x15ea5d,_0xd66a18=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x177)),'utf8')),_0x173373=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x170),_0x1838f5(0x179)),'utf8')),_0xc26154=join(_0x597109,'skills',SKILL_NAME),_0xb6ce9d=frontmatterValue(readFileSync(join(_0xc26154,'SKILL.md'),_0x1838f5(0x19c)),_0x1838f5(0x198)),_0x25727f=listFiles(_0xc26154);if(_0x173373['schemaVersion']!==0x1||_0x173373[_0x1838f5(0x168)]!==SKILL_NAME||!_0xd66a18[_0x1838f5(0x198)]||_0x173373[_0x1838f5(0x17e)]!==_0xd66a18[_0x1838f5(0x198)]||_0x173373['skillVersion']!==_0xd66a18['version']||_0xb6ce9d!==_0xd66a18[_0x1838f5(0x198)]||!sameFiles(_0x25727f,_0x173373['files'])||digestFiles(_0xc26154,_0x25727f)!==_0x173373[_0x1838f5(0x165)])throw new Error(_0x1838f5(0x174));return{'packageVersion':_0xd66a18['version'],'skillVersion':_0xb6ce9d,'root':_0xc26154,'manifest':_0x173373};}function installedSkillPath(_0x1d6607){const _0x1c82da=a262_0x15ea5d,_0xb9ea67=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d6607});if(_0xb9ea67[_0x1c82da(0x188)]==='present')return{'state':'present','path':dirname(_0xb9ea67[_0x1c82da(0x194)])};if(_0xb9ea67[_0x1c82da(0x188)]===_0x1c82da(0x186))return{'state':_0x1c82da(0x16d)};return{'state':_0x1c82da(0x163),'reason':_0xb9ea67[_0x1c82da(0x17a)]};}export function inspectInstalledBuiltinSkillVersion(_0x56b7ea,_0x44231f={}){const _0x4982c1=a262_0x15ea5d,_0xf95ce6=installedSkillPath(_0x44231f[_0x4982c1(0x18d)]??homedir());if(_0xf95ce6[_0x4982c1(0x188)]==='missing')return{'state':_0x4982c1(0x16d),'expectedVersion':_0x56b7ea,'repairCommand':REPAIR_COMMAND};if(_0xf95ce6[_0x4982c1(0x188)]===_0x4982c1(0x163))return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'reason':_0xf95ce6['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1360bf=frontmatterValue(readFileSync(join(_0xf95ce6['path'],_0x4982c1(0x189)),_0x4982c1(0x19c)),_0x4982c1(0x198));return{'state':_0x1360bf===_0x56b7ea?_0x4982c1(0x191):_0x4982c1(0x1a1),'expectedVersion':_0x56b7ea,'skillVersion':_0x1360bf,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'repairCommand':REPAIR_COMMAND};}catch(_0x232fda){return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'reason':_0x232fda instanceof Error?_0x232fda[_0x4982c1(0x167)]:String(_0x232fda),'repairCommand':REPAIR_COMMAND};}}function a262_0x1ea3(){const _0xbcac9d=['version_mismatch','pipe','SOURCE_INVALID','INSTALL_FAILED','unverifiable','sha256','digest','startsWith','message','name','length','join','9DLeuPH','skillVersion','missing','262934KCjBoB','skills@latest\x20exited\x20','skills','sort','rabetbase\x20cli-skill\x20install','root','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isFile','54525MbZmTJ','package.json','packageRoot','rabetbase.manifest.json','reason','flatMap','Installed\x20Skill\x20state\x20is\x20','2NSbjKU','packageVersion','update','Symbolic\x20link\x20is\x20not\x20allowed:\x20','installedPath','error','2599008iZJKgJ','Unsupported\x20Skill\x20entry:\x20','content_mismatch','absent','every','state','SKILL.md','match','1013616rDdgYn','status','home','isSymbolicLink','VERIFY_FAILED','stdio','current','unknown','isDirectory','path','6390328DbYrxv','39278270bySZuv','316wFGjJd','version','rabetbase','parse','manifest','utf8','2601474YjnMdC','split','includes',':\x5cs*(.+)$'];a262_0x1ea3=function(){return _0xbcac9d;};return a262_0x1ea3();}export function inspectBuiltinSkill(_0x4106a0={}){const _0x15a976=a262_0x15ea5d,_0x3a506b=_0x4106a0[_0x15a976(0x178)]??DEFAULT_PACKAGE_ROOT;let _0x2f3fdf;try{_0x2f3fdf=readSource(_0x3a506b);}catch(_0x4a3274){return{'state':_0x15a976(0x163),'packageVersion':_0x15a976(0x192),'reason':_0x4a3274 instanceof Error?_0x4a3274[_0x15a976(0x167)]:String(_0x4a3274),'repairCommand':REPAIR_COMMAND};}const _0x15f641=installedSkillPath(_0x4106a0[_0x15a976(0x18d)]??homedir());if(_0x15f641[_0x15a976(0x188)]===_0x15a976(0x16d))return{'state':'missing','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'repairCommand':REPAIR_COMMAND};if(_0x15f641['state']===_0x15a976(0x163))return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'reason':_0x15f641[_0x15a976(0x17a)],'repairCommand':REPAIR_COMMAND};try{const _0x51d2b4=frontmatterValue(readFileSync(join(_0x15f641[_0x15a976(0x194)],_0x15a976(0x189)),_0x15a976(0x19c)),_0x15a976(0x198));if(_0x51d2b4!==_0x2f3fdf[_0x15a976(0x16c)])return{'state':'version_mismatch','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'repairCommand':REPAIR_COMMAND};const _0x4695ca=listFiles(_0x15f641[_0x15a976(0x194)]),_0x1ca77a=digestFiles(_0x15f641[_0x15a976(0x194)],_0x4695ca);return{'state':sameFiles(_0x4695ca,_0x2f3fdf[_0x15a976(0x19b)]['files'])&&_0x1ca77a===_0x2f3fdf[_0x15a976(0x19b)][_0x15a976(0x165)]?'current':_0x15a976(0x185),'packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'digest':_0x1ca77a,'repairCommand':REPAIR_COMMAND};}catch(_0x55f99b){return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'installedPath':_0x15f641[_0x15a976(0x194)],'reason':_0x55f99b instanceof Error?_0x55f99b[_0x15a976(0x167)]:String(_0x55f99b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1e6d19,_0xafd63f,_0x2d7d6e,_0x4ff146){const _0x5f2699=a262_0x15ea5d;return{'ok':![],'code':_0x1e6d19,'packageVersion':_0xafd63f[_0x5f2699(0x17e)],'skillVersion':_0xafd63f[_0x5f2699(0x16c)],'installedPath':_0x4ff146,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x2d7d6e instanceof Error?_0x2d7d6e['message']:String(_0x2d7d6e)};}export function installBuiltinSkill(_0x38d304={}){const _0x1f6dbc=a262_0x15ea5d,_0x492f92=_0x38d304['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9fa3a8=_0x38d304['home']??homedir();let _0x1d411d;try{_0x1d411d=readSource(_0x492f92);}catch(_0x515057){return failure(_0x1f6dbc(0x1a3),{'packageVersion':_0x1f6dbc(0x192),'skillVersion':_0x1f6dbc(0x192)},_0x515057);}const _0x5d3d76=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8}),_0x5c6595=runNpxSkillsAddGlobal(_0x492f92,_0x1d411d[_0x1f6dbc(0x173)],{'stdio':_0x38d304[_0x1f6dbc(0x190)]??_0x1f6dbc(0x1a2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x9fa3a8}});if(_0x5c6595['skipped'])return{'ok':!![],'packageVersion':_0x1d411d['packageVersion'],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0x5d3d76[_0x1f6dbc(0x181)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5c6595['ok'])return failure(_0x1f6dbc(0x1a4),_0x1d411d,_0x5c6595[_0x1f6dbc(0x182)]??_0x1f6dbc(0x16f)+_0x5c6595[_0x1f6dbc(0x18c)]);const _0xffc58a=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8});if(_0xffc58a['state']!==_0x1f6dbc(0x191))return failure(_0x1f6dbc(0x18f),_0x1d411d,_0xffc58a[_0x1f6dbc(0x17a)]??_0x1f6dbc(0x17c)+_0xffc58a[_0x1f6dbc(0x188)],_0xffc58a[_0x1f6dbc(0x181)]);return{'ok':!![],'packageVersion':_0x1d411d[_0x1f6dbc(0x17e)],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0xffc58a['installedPath'],'changed':_0x5d3d76[_0x1f6dbc(0x188)]!==_0x1f6dbc(0x191),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x570c81,_0x2dba30){const _0x324aa4=a263_0x3935,_0x266289=_0x570c81();while(!![]){try{const _0x3f3edd=parseInt(_0x324aa4(0x1f0))/0x1+-parseInt(_0x324aa4(0x1ee))/0x2*(parseInt(_0x324aa4(0x1f1))/0x3)+parseInt(_0x324aa4(0x1d6))/0x4*(parseInt(_0x324aa4(0x1ec))/0x5)+parseInt(_0x324aa4(0x1da))/0x6+parseInt(_0x324aa4(0x1f2))/0x7*(-parseInt(_0x324aa4(0x1e7))/0x8)+parseInt(_0x324aa4(0x1e4))/0x9*(parseInt(_0x324aa4(0x1fc))/0xa)+parseInt(_0x324aa4(0x1dd))/0xb*(parseInt(_0x324aa4(0x1fe))/0xc);if(_0x3f3edd===_0x2dba30)break;else _0x266289['push'](_0x266289['shift']());}catch(_0x542be9){_0x266289['push'](_0x266289['shift']());}}}(a263_0x4cc3,0xa3ab5));function a263_0x4cc3(){const _0x27d3cf=['1198283pbElEt','3AWfwZI','4174583TjLfHV','skill','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','replace','enable-bff-save','不支持的命令:\x20','has','startsWith','log','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','12280ynarAq','toLowerCase','440388qIARWU','Error:\x20Unsupported\x20command:\x20','setLogPath','60WDzaCa','\x0aAvailable\x20commands:','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','639396mNXCte','from','--help','220LgjHxu','argv','cwd','length','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','-$1','slice','36LszwAt','Public\x20Open\x20Skill\x20source:\x20','push','16oXIoQu','(empty)','includes','exit','help','325355KBQzNW','entries','2313358HKtgZL','dangerously-bff-save'];a263_0x4cc3=function(){return _0x27d3cf;};return a263_0x4cc3();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x44e828){const _0x5b378c=a263_0x3935,_0x1cf654=[];for(const [_0xf51f45,_0x2de822]of Object[_0x5b378c(0x1ed)](_0x44e828)){if(_0x2de822===!![]){const _0x56a9d7=_0xf51f45[_0x5b378c(0x1f5)](/([A-Z])/g,_0x5b378c(0x1e2))[_0x5b378c(0x1fd)]();_0x1cf654[_0x5b378c(0x1e6)](_0x56a9d7);}}return _0x1cf654;}export function parseDynamicFlags(){const _0x5bd006=a263_0x3935,_0x25727a=[];for(let _0x1ba425=0x3;_0x1ba425<process[_0x5bd006(0x1de)][_0x5bd006(0x1e0)];_0x1ba425++){const _0x510da1=process['argv'][_0x1ba425];if(_0x510da1&&_0x510da1[_0x5bd006(0x1f9)]('--')){const _0x4fad3d=_0x510da1[_0x5bd006(0x1e3)](0x2);_0x4fad3d&&!_0x4fad3d[_0x5bd006(0x1e9)]('=')&&_0x25727a[_0x5bd006(0x1e6)](_0x4fad3d);}}return _0x25727a;}export function getAllProvidedFlags(_0x45259f){const _0x782f8e=a263_0x3935,_0x500b49=camelCaseFlagsToKebab(_0x45259f),_0x83176c=parseDynamicFlags(),_0x12a494=new Set([..._0x500b49,..._0x83176c]);return Array[_0x782f8e(0x1db)](_0x12a494);}export function normalizeLegacyBffSaveFlags(_0x1598d5){const _0x537d3e=a263_0x3935,_0x21e41e=new Set(_0x1598d5);return _0x21e41e[_0x537d3e(0x1f8)](_0x537d3e(0x1ef))&&_0x21e41e['add'](_0x537d3e(0x1f6)),Array[_0x537d3e(0x1db)](_0x21e41e);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a263_0x3935(_0x16ef4c,_0x2716e6){_0x16ef4c=_0x16ef4c-0x1d5;const _0x4cc32f=a263_0x4cc3();let _0x3935d1=_0x4cc32f[_0x16ef4c];return _0x3935d1;}export async function skillsCommand(_0x1dec40,_0x30c411,_0x281b80){const _0x1a5547=a263_0x3935;logger[_0x1a5547(0x1d5)](process[_0x1a5547(0x1df)]());if(_0x281b80?.[_0x1a5547(0x1eb)]||_0x1dec40===_0x1a5547(0x1dc)){showHelp();return;}console[_0x1a5547(0x1d8)](_0x1a5547(0x1ff)+(_0x1dec40||_0x1a5547(0x1e8))),console[_0x1a5547(0x1fa)](_0x1a5547(0x1d7)),console[_0x1a5547(0x1fa)]('\x20\x20'+CLI_BIN_NAME+_0x1a5547(0x1f4)),console[_0x1a5547(0x1fa)](''),console[_0x1a5547(0x1fa)](_0x1a5547(0x1e5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1a5547(0x1d8)](_0x1a5547(0x1f3),_0x1a5547(0x1f7)+_0x1dec40),process[_0x1a5547(0x1ea)](0x1);}function showHelp(){const _0x52d9e2=a263_0x3935;console[_0x52d9e2(0x1fa)](_0x52d9e2(0x1d9)+CLI_BIN_NAME+_0x52d9e2(0x1fb)+SKILLS_INSTALL_COMMAND_LINE+_0x52d9e2(0x1e1));}
|