@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x31af11,_0x10ef82){const _0x553572=a249_0x25e1,_0x2d8544=_0x31af11();while(!![]){try{const _0x359f0a=parseInt(_0x553572(0x80))/0x1*(-parseInt(_0x553572(0x72))/0x2)+parseInt(_0x553572(0x84))/0x3*(parseInt(_0x553572(0x7c))/0x4)+-parseInt(_0x553572(0x7f))/0x5*(-parseInt(_0x553572(0x6f))/0x6)+parseInt(_0x553572(0x7b))/0x7+-parseInt(_0x553572(0x7a))/0x8+parseInt(_0x553572(0x71))/0x9+-parseInt(_0x553572(0x82))/0xa;if(_0x359f0a===_0x10ef82)break;else _0x2d8544['push'](_0x2d8544['shift']());}catch(_0x334503){_0x2d8544['push'](_0x2d8544['shift']());}}}(a249_0x5c7c,0xa558b));function a249_0x5c7c(){const _0x5e1d2f=['6076230jINrVw','message','675018lPkEHU','jq:\x20','risk','stringify','update','json','166758CBClMu','url','11055177QOgvLE','4198HwnZvW','hint','format','trim','jqFilter','data','error','pretty','3801552zonxUw','1902607FoqqUy','12wLzvuJ','stdout','validation','5FesriX','211pszQIz','write'];a249_0x5c7c=function(){return _0x5e1d2f;};return a249_0x5c7c();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a249_0x25e1(_0x342d07,_0x191900){_0x342d07=_0x342d07-0x6e;const _0x5c7cde=a249_0x5c7c();let _0x25e1d4=_0x5c7cde[_0x342d07];return _0x25e1d4;}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1c83b2,_0x48ff25){const _0x2b9d10=a249_0x25e1,_0x472c1c=_0x1c83b2['_notice'],{_notice:_0x49b49c,..._0x241515}=_0x1c83b2;void _0x49b49c,baseFormatOutput(_0x241515,_0x48ff25),_0x48ff25['format']===_0x2b9d10(0x79)&&printPrettyNotice(_0x472c1c);}export function formatCliError(_0x1fe0be,_0x3265ea){const _0x34d73d=a249_0x25e1;if(_0x3265ea['format']===_0x34d73d(0x79))return![];const _0x3974d1=_0x1fe0be[_0x34d73d(0x77)],_0x1775dd={'ok':![],'command':_0x3265ea['command'],'risk':_0x3265ea[_0x34d73d(0x86)],'data':_0x3974d1??null,'error':{'code':_0x1fe0be['code'],'message':_0x1fe0be[_0x34d73d(0x83)],..._0x1fe0be[_0x34d73d(0x73)]?{'hint':_0x1fe0be[_0x34d73d(0x73)]}:{}}},_0x2c5c10=_0x3265ea[_0x34d73d(0x74)]===_0x34d73d(0x6e)?JSON[_0x34d73d(0x87)](_0x1775dd,null,0x2):JSON[_0x34d73d(0x87)](_0x1775dd);let _0x185330=_0x2c5c10;if(_0x3265ea['jqFilter']?.[_0x34d73d(0x75)]())try{_0x185330=applyJqFilter(_0x2c5c10,_0x3265ea[_0x34d73d(0x76)]);}catch(_0x5b9904){const _0x43d0da=_0x5b9904 instanceof CliError?_0x5b9904:CliErrors[_0x34d73d(0x7e)](_0x34d73d(0x85)+(_0x5b9904 instanceof Error?_0x5b9904['message']:String(_0x5b9904))),_0x1392d0={..._0x1775dd,'error':{'code':_0x43d0da['code'],'message':_0x43d0da[_0x34d73d(0x83)],..._0x43d0da[_0x34d73d(0x73)]?{'hint':_0x43d0da['hint']}:{},'cause':_0x1775dd[_0x34d73d(0x78)]}};_0x185330=_0x3265ea[_0x34d73d(0x74)]==='json'?JSON['stringify'](_0x1392d0,null,0x2):JSON[_0x34d73d(0x87)](_0x1392d0);}return process[_0x34d73d(0x7d)][_0x34d73d(0x81)](_0x185330['endsWith']('\x0a')?_0x185330:_0x185330+'\x0a'),!![];}function printPrettyNotice(_0x2efe06){const _0x1a483d=a249_0x25e1;if(!_0x2efe06?.[_0x1a483d(0x88)])return;console[_0x1a483d(0x78)](_0x2efe06['update'][_0x1a483d(0x83)]+'\x20('+_0x2efe06[_0x1a483d(0x88)][_0x1a483d(0x70)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a250_0x5aeb(_0x1f4356,_0x3ed298){_0x1f4356=_0x1f4356-0x9d;var _0x47b2b9=a250_0x47b2();var _0x5aebc9=_0x47b2b9[_0x1f4356];return _0x5aebc9;}(function(_0x2c67a9,_0x3d5a2a){var _0x4e43e6=a250_0x5aeb,_0x2ecf17=_0x2c67a9();while(!![]){try{var _0x2809c4=parseInt(_0x4e43e6(0x9e))/0x1+parseInt(_0x4e43e6(0xa6))/0x2*(-parseInt(_0x4e43e6(0x9d))/0x3)+-parseInt(_0x4e43e6(0xa2))/0x4*(parseInt(_0x4e43e6(0xa0))/0x5)+-parseInt(_0x4e43e6(0xa1))/0x6*(parseInt(_0x4e43e6(0xa3))/0x7)+parseInt(_0x4e43e6(0x9f))/0x8*(-parseInt(_0x4e43e6(0xa7))/0x9)+parseInt(_0x4e43e6(0xa5))/0xa+parseInt(_0x4e43e6(0xa8))/0xb*(parseInt(_0x4e43e6(0xa4))/0xc);if(_0x2809c4===_0x3d5a2a)break;else _0x2ecf17['push'](_0x2ecf17['shift']());}catch(_0x5e9f58){_0x2ecf17['push'](_0x2ecf17['shift']());}}}(a250_0x47b2,0x63f4f));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a250_0x47b2(){var _0x46b4a5=['16642065bzouYB','3375BGOspN','203854DQzXLq','1947248iVgzol','15485lxdYjc','26682QmyOFp','424XApKgx','763eXnwcw','12BOtdeY','6093770AnJSte','664fjRBPO','27Dlxmsz'];a250_0x47b2=function(){return _0x46b4a5;};return a250_0x47b2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f05ea,_0x5b8035){const _0x5aef0d=a251_0x24a8,_0x4a819b=_0x5f05ea();while(!![]){try{const _0x260c88=-parseInt(_0x5aef0d(0x1d9))/0x1*(parseInt(_0x5aef0d(0x1e5))/0x2)+-parseInt(_0x5aef0d(0x1d4))/0x3*(-parseInt(_0x5aef0d(0x1d8))/0x4)+-parseInt(_0x5aef0d(0x1da))/0x5*(-parseInt(_0x5aef0d(0x1d6))/0x6)+parseInt(_0x5aef0d(0x1ce))/0x7+parseInt(_0x5aef0d(0x1e3))/0x8*(parseInt(_0x5aef0d(0x1e4))/0x9)+-parseInt(_0x5aef0d(0x1d0))/0xa+parseInt(_0x5aef0d(0x1dc))/0xb;if(_0x260c88===_0x5b8035)break;else _0x4a819b['push'](_0x4a819b['shift']());}catch(_0x4e1278){_0x4a819b['push'](_0x4a819b['shift']());}}}(a251_0x444f,0x42458));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x62ddf7,_0x20c396,_0x18fbf7,_0x495291){const _0x87c5ba=a251_0x24a8,_0xc070e9=_0x62ddf7[_0x87c5ba(0x1df)][_0x87c5ba(0x1de)](_0x5753c5=>_0x5753c5[_0x87c5ba(0x1d1)]===_0x87c5ba(0x1e6)&&_0x5753c5[_0x87c5ba(0x1dd)]===_0x87c5ba(0x1e7)),_0x5d4faf=_0x62ddf7[_0x87c5ba(0x1df)][_0x87c5ba(0x1de)](_0x582d08=>_0x582d08[_0x87c5ba(0x1d1)]===_0x87c5ba(0x1d7)&&_0x582d08[_0x87c5ba(0x1dd)]===_0x87c5ba(0x1e7));if(!_0xc070e9||!_0x5d4faf)return;const _0x52ac4f=_0x20c396[_0x87c5ba(0x1e6)]?String(_0x20c396[_0x87c5ba(0x1e6)]):'',_0x40e5df=_0x20c396[_0x87c5ba(0x1d7)]?String(_0x20c396[_0x87c5ba(0x1d7)]):'';if(!_0x52ac4f&&!_0x40e5df)throw CliErrors['validation']('`'+_0x495291+_0x87c5ba(0x1d5));if(_0x40e5df&&!_0x52ac4f){const _0x57bc18=resolveAlias(_0x18fbf7,_0x40e5df);if(!_0x57bc18){const _0x4939ad=listAliases(_0x18fbf7)[_0x87c5ba(0x1cf)](_0x16d8ff=>_0x16d8ff[_0x87c5ba(0x1d7)]),_0x17231a=_0x4939ad['length']?_0x87c5ba(0x1e0)+_0x4939ad[_0x87c5ba(0x1db)](',\x20'):_0x87c5ba(0x1d2)+_0x18fbf7+_0x87c5ba(0x1d3)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x87c5ba(0x1e1)]('Unknown\x20alias\x20\x22'+_0x40e5df+_0x87c5ba(0x1e2)+_0x17231a);}_0x20c396[_0x87c5ba(0x1e6)]=_0x57bc18;}}function a251_0x24a8(_0x106c11,_0x1309e0){_0x106c11=_0x106c11-0x1ce;const _0x444fad=a251_0x444f();let _0x24a84d=_0x444fad[_0x106c11];return _0x24a84d;}function a251_0x444f(){const _0x289a0a=['join','4239543hZnsHB','type','some','flags','Available\x20aliases:\x20','validation','\x22.\x20','192webXhf','50733YHQSdq','55422Nhwvtn','code','string','1048012HUDBHc','map','3209540GmDwbI','name','No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','9FbsEvz','`\x20requires\x20either\x20--code\x20or\x20--alias.','252xUSseC','alias','119660MlcvuC','8HgNJWR','6420Xpbfrl'];a251_0x444f=function(){return _0x289a0a;};return a251_0x444f();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x661f62,_0x472783){const _0x4230c8=a252_0x31e9,_0x1c6de7=_0x661f62();while(!![]){try{const _0x224133=parseInt(_0x4230c8(0x13d))/0x1+parseInt(_0x4230c8(0x121))/0x2*(parseInt(_0x4230c8(0x10f))/0x3)+parseInt(_0x4230c8(0x120))/0x4+-parseInt(_0x4230c8(0x14a))/0x5+parseInt(_0x4230c8(0x140))/0x6+parseInt(_0x4230c8(0x133))/0x7+-parseInt(_0x4230c8(0x112))/0x8;if(_0x224133===_0x472783)break;else _0x1c6de7['push'](_0x1c6de7['shift']());}catch(_0x3e113b){_0x1c6de7['push'](_0x1c6de7['shift']());}}}(a252_0x202d,0x1c7e5));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a252_0x202d(){const _0xd21c6d=['Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','330729PtOWEP','format','explicitAppName','resolveCookie','apps','execute','formatOutput','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','production','has','88456EarPzt','join','update','659814HjedJZ','\x20\x20\x20Continue?\x20[y/N]\x20','nonInteractive','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','cookie','Available:\x20','name','defaultVerbose','Set\x20appcode\x20via\x20`','replace','526485BVdVkK','authRequired','meowKey','find','toUpperCase','keys','selectedAppName','catch','length','validation','verbose','includes','doctor','appcode','string','service','object','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','all','isNonInteractive','defaultPageSize','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../constant/domain.js','9dcqlCC','../core/api-client.js','_notice','1385872KMIFRD','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolve','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','configMissing','schema','currentApp','trim','mergedCli','risk','apiDir','appCode','hasFormat','requiresAppCode','260580MQITaR','56282CUIFjn','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','Edit\x20the\x20config\x20file\x20manually','rawFlags','RABETBASE_APPCODE','cancelled','Current\x20resolved\x20appcode\x20is\x20\x22','none','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','required','High-risk\x20operation\x20`','hint','some','filter','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a252_0x202d=function(){return _0xd21c6d;};return a252_0x202d();}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a252_0x4ad677}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x97fced){const _0x536503=a252_0x31e9;return typeof _0x97fced===_0x536503(0x158)&&_0x97fced[_0x536503(0x119)]()?_0x97fced[_0x536503(0x119)]():undefined;}function resolveEnvAppCode(){const _0x1d4f9d=a252_0x31e9,_0x4dad69=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4dad69)return{'name':_0x1d4f9d(0x125),'value':_0x4dad69};const _0x291390=stringFlag(process.env.LOVRABET_APPCODE);if(_0x291390)return{'name':'LOVRABET_APPCODE','value':_0x291390};return undefined;}function hasExplicitAppCode(_0x519c89,_0x28c219){const _0x3eda24=a252_0x31e9;return!!(stringFlag(_0x519c89[_0x3eda24(0x157)])||stringFlag(_0x28c219['appcode']));}function assertEnvAppCodeNotIgnored(_0x2eb680,_0x44798f,_0x285c23){const _0x4efca5=a252_0x31e9;if(!_0x44798f||_0x285c23||_0x2eb680===_0x44798f['value'])return;const _0x2bb573=_0x2eb680?_0x4efca5(0x127)+_0x2eb680+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors['validation'](_0x44798f[_0x4efca5(0x146)]+'='+_0x44798f['value']+_0x4efca5(0x113)+_0x2bb573+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x44798f['name']+'\x22.'));}export function createPipelineEnv(_0x5da54c,_0x15b554,_0x13a887=[]){const _0x17e217=a252_0x31e9;return{'rawFlags':_0x15b554,'args':_0x13a887,'resolveAppCode':()=>_0x5da54c[_0x17e217(0x11d)],'resolveCookie':()=>_0x5da54c[_0x17e217(0x144)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x4ad677(_0x15b554),'defaultFormat':_0x5da54c['format'],'defaultPageSize':_0x5da54c['pageSize'],'defaultVerbose':_0x5da54c[_0x17e217(0x154)],'apiDir':_0x5da54c[_0x17e217(0x11c)],'riskLevel':_0x5da54c['riskLevel'],'selectedAppName':_0x5da54c[_0x17e217(0x135)],'mergedCli':{'defaultApp':_0x5da54c[_0x17e217(0x15b)],'currentApp':_0x5da54c[_0x17e217(0x118)],'appCode':_0x5da54c[_0x17e217(0x11d)],'apps':_0x5da54c['apps']}};}export function createRabetbaseRunnerAdapter(_0x29e3be={}){const _0x132c9e=a252_0x31e9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x132c9e(0x130)](_0xffa50b=>PIPELINE_FLAG_NAMES[_0x132c9e(0x13c)](_0xffa50b[_0x132c9e(0x146)]))['map'](({name:_0x170c0b,type:_0x5d3c61,description:_0x2aae52})=>({'name':_0x170c0b,'type':_0x5d3c61,'description':_0x2aae52})),'formatOutput':_0x29e3be[_0x132c9e(0x139)]??formatOutput,'getCommandLabel'(_0x3a9e3e){const _0x435726=_0x132c9e;return CLI_BIN_NAME+'\x20'+_0x3a9e3e['service']+'\x20'+_0x3a9e3e[_0x435726(0x12a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3f6c3a,{def:_0x3542d9}){const _0x449205=_0x132c9e,_0x2a652f=_0x3f6c3a[_0x449205(0x155)](_0x449205(0x123))?_0x449205(0x129):_0x449205(0x115)+_0x3542d9[_0x449205(0x11b)]+_0x449205(0x12b)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x3f6c3a+'\x0a\x20\x20'+_0x2a652f);}},async 'prepare'(_0x416983,_0x235165,_0x4157d5,_0x2ed825){const _0x49f702=_0x132c9e,_0x24a039=_0x235165[_0x49f702(0x11c)]||DEFAULT_API_DIR;resolveAliasToCode(_0x416983,_0x4157d5,_0x24a039,_0x2ed825);const _0x3cd77b=resolveCommandAuthMode(_0x416983);let _0x5a30f4='';if(_0x3cd77b!==_0x49f702(0x128)){_0x5a30f4=_0x235165[_0x49f702(0x136)]()||'';if(!_0x5a30f4){if(_0x3cd77b===_0x49f702(0x12c))throw CliErrors[_0x49f702(0x14b)]();}else{const {setActiveCookie:_0x5e5bb7}=await import(_0x49f702(0x110));_0x5e5bb7(_0x5a30f4);}}const _0x1b68df=_0x235165['resolveAppCode']()??'';if(_0x416983[_0x49f702(0x11f)]!==![]){const _0x1a5eba=hasExplicitAppCode(_0x4157d5,_0x235165[_0x49f702(0x124)]),_0x2ec805=_0x235165['mergedCli']?.[_0x49f702(0x137)]??{},_0x857c10=_0x235165[_0x49f702(0x150)]||_0x235165[_0x49f702(0x11a)]?.['currentApp']||_0x235165[_0x49f702(0x11a)]?.['defaultApp'];if(!_0x1a5eba&&_0x857c10&&!_0x2ec805[_0x857c10]){const _0x41f78e=Object[_0x49f702(0x14f)](_0x2ec805);throw CliErrors[_0x49f702(0x153)]('App\x20\x22'+_0x857c10+_0x49f702(0x122),_0x41f78e[_0x49f702(0x152)]>0x0?_0x49f702(0x145)+_0x41f78e[_0x49f702(0x13e)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x49f702(0x10d):_0x49f702(0x143)+CLI_BIN_NAME+_0x49f702(0x10d));}assertEnvAppCodeNotIgnored(_0x1b68df,resolveEnvAppCode(),_0x1a5eba);if(!_0x1b68df){const _0x4ad229=Object[_0x49f702(0x14f)](_0x2ec805);if(!_0x857c10&&_0x4ad229[_0x49f702(0x152)]>0x1)throw CliErrors[_0x49f702(0x116)](_0x49f702(0x132)+CLI_BIN_NAME+_0x49f702(0x13a)+_0x4ad229[_0x49f702(0x13e)](',\x20')+'.');throw CliErrors[_0x49f702(0x116)](_0x49f702(0x148)+CLI_BIN_NAME+_0x49f702(0x131));}}return{'defaults':{'booleans':{'verbose':_0x235165[_0x49f702(0x147)]},'numbers':{'pagesize':_0x235165[_0x49f702(0x10c)]}},'extras':{'appCode':_0x1b68df,'cookie':_0x5a30f4,'apiDomain':_0x235165['resolveApiDomain'](),'apiDir':_0x24a039,'selectedAppName':_0x235165['selectedAppName'],'mergedCli':_0x235165[_0x49f702(0x11a)]}};},'confirmHighRisk':_0x29e3be['confirmHighRisk']??(async({env:_0xc6a5af,commandLabel:_0x52aa64})=>{const _0x452cce=_0x132c9e;if(_0xc6a5af[_0x452cce(0x10b)])throw CliErrors[_0x452cce(0x153)](_0x452cce(0x12d)+_0x52aa64+_0x452cce(0x15c));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x52aa64,_0x452cce(0x141)],'createCancelledError':_0x3da2e1=>CliErrors[_0x452cce(0x126)](_0x3da2e1)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0xa92e2e=a252_0x31e9,{clearActiveCookie:_0x36b891}=await import(_0xa92e2e(0x110));_0x36b891();}export async function finalizeRabetbaseRuntimeState(){const _0x4fd39a=a252_0x31e9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x6488aa},{initEnv:_0x3099a2}]=await Promise[_0x4fd39a(0x15d)]([import(_0x4fd39a(0x10e)),import('../constant/env.js')]);_0x6488aa(),_0x3099a2(_0x4fd39a(0x13b));}}export async function runCommand(_0x46a28b,_0x50e03a,_0x5868d2=terminalRunnerAdapter){assertRejectedFlags(_0x46a28b,_0x50e03a['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x46a28b)?withUpdateNotice(_0x46a28b):_0x46a28b,_0x50e03a,_0x5868d2);}function a252_0x31e9(_0x4aa0df,_0x5527ae){_0x4aa0df=_0x4aa0df-0x10b;const _0x202dda=a252_0x202d();let _0x31e992=_0x202dda[_0x4aa0df];return _0x31e992;}function assertRejectedFlags(_0x5646ed,_0x4076dd){const _0x21e21b=a252_0x31e9;for(const _0x20e47b of _0x5646ed['rejectedFlags']??[]){const _0x340cbf=GLOBAL_FLAGS[_0x21e21b(0x14d)](_0x7d3a54=>_0x7d3a54[_0x21e21b(0x146)]===_0x20e47b[_0x21e21b(0x146)]),_0x29ac94=new Set([_0x20e47b[_0x21e21b(0x146)],toCamelCase(_0x20e47b['name']),_0x340cbf?.[_0x21e21b(0x14c)]]),_0x3fe0ff=[..._0x29ac94][_0x21e21b(0x12f)](_0x46952b=>{if(!_0x46952b)return![];const _0x2e127a=_0x4076dd[_0x46952b];return _0x2e127a!==undefined&&_0x2e127a!==null&&_0x2e127a!==![];});if(_0x3fe0ff)throw CliErrors[_0x21e21b(0x153)](_0x20e47b['message'],_0x20e47b[_0x21e21b(0x12e)]);}}function toCamelCase(_0x18ee0f){const _0x3096b5=a252_0x31e9;return _0x18ee0f[_0x3096b5(0x149)](/-([a-z])/g,(_0x4771b7,_0x103fbd)=>_0x103fbd[_0x3096b5(0x14e)]());}function shouldAttachUpdateNotice(_0x43f812){const _0x162dd0=a252_0x31e9;if(_0x43f812[_0x162dd0(0x11e)]===![])return![];return![_0x162dd0(0x13f),_0x162dd0(0x117),_0x162dd0(0x156)][_0x162dd0(0x155)](_0x43f812[_0x162dd0(0x159)]);}function withUpdateNotice(_0x4f5288){return{..._0x4f5288,async 'execute'(_0x5a8544){const _0x222c82=a252_0x31e9,_0x533c44=shouldResolveUpdateNotice(_0x5a8544)?resolveLatestUpdateNotice()[_0x222c82(0x151)](()=>null):Promise[_0x222c82(0x114)](null),_0x9ab04c=await _0x4f5288[_0x222c82(0x138)](_0x5a8544);return attachUpdateNotice(_0x9ab04c,await _0x533c44);}};}function shouldResolveUpdateNotice(_0x27b076){const _0x45a620=a252_0x31e9;return _0x27b076[_0x45a620(0x134)]==='pretty'&&!_0x27b076[_0x45a620(0x142)];}function attachUpdateNotice(_0xd6a3e,_0x3bcd3e){const _0x2a25fd=a252_0x31e9;if(!_0x3bcd3e||!_0xd6a3e||typeof _0xd6a3e!==_0x2a25fd(0x15a))return _0xd6a3e;const _0x1b83b4=_0xd6a3e,_0xfde35d=typeof _0x1b83b4[_0x2a25fd(0x111)]===_0x2a25fd(0x15a)&&_0x1b83b4['_notice']!==null?_0x1b83b4['_notice']:{};return{..._0x1b83b4,'_notice':{..._0xfde35d,'update':_0x3bcd3e}};}
|
|
1
|
+
(function(_0x5fad65,_0xc92334){const _0x26a026=a252_0x395c,_0x49cc5b=_0x5fad65();while(!![]){try{const _0x6a0fee=-parseInt(_0x26a026(0xfe))/0x1+-parseInt(_0x26a026(0x105))/0x2+parseInt(_0x26a026(0x11e))/0x3+-parseInt(_0x26a026(0x139))/0x4*(-parseInt(_0x26a026(0x10f))/0x5)+-parseInt(_0x26a026(0x115))/0x6+-parseInt(_0x26a026(0x131))/0x7*(parseInt(_0x26a026(0x102))/0x8)+parseInt(_0x26a026(0x11c))/0x9;if(_0x6a0fee===_0xc92334)break;else _0x49cc5b['push'](_0x49cc5b['shift']());}catch(_0x1230fd){_0x49cc5b['push'](_0x49cc5b['shift']());}}}(a252_0x4952,0x9cd89));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a252_0x395c(_0x4a3e08,_0x587760){_0x4a3e08=_0x4a3e08-0xf4;const _0x4952de=a252_0x4952();let _0x395cb2=_0x4952de[_0x4a3e08];return _0x395cb2;}function a252_0x4952(){const _0x291303=['some','formatOutput','explicitAppName','length','300139bMfmmB','service','confirmHighRisk','appCode','LOVRABET_APPCODE','App\x20\x22','authRequired','../constant/env.js','4irtIZX','selectedAppName','apiDir','object','has','catch','map','hasFormat','mergedCli','filter','resolveAppCode','apps','resolveCookie','appcode','string','trim','production','462932tSgRVF','hint','required','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','160yoKTkI','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','schema','2563134ejrijg','defaultApp','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','defaultPageSize','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','cancelled','risk','cookie','../core/api-client.js','nonInteractive','577790DijBxt','format','currentApp','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','name','includes','1282704mCZIwk','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','\x0a\x20\x20','Set\x20appcode\x20via\x20`','verbose','join','requiresAppCode','24020505PvnTTD','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2021283ccWuQW','⚠\x20\x20High-risk\x20operation:\x20','validation','none','message','resolveApiDomain','rawFlags','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','value','toUpperCase','all','keys','resolve','RABETBASE_APPCODE','_notice'];a252_0x4952=function(){return _0x291303;};return a252_0x4952();}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a252_0x5c34b0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x41447c){const _0x50026b=a252_0x395c;return typeof _0x41447c===_0x50026b(0xfb)&&_0x41447c[_0x50026b(0xfc)]()?_0x41447c[_0x50026b(0xfc)]():undefined;}function resolveEnvAppCode(){const _0x5f2bc6=a252_0x395c,_0x34f65c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x34f65c)return{'name':_0x5f2bc6(0x12b),'value':_0x34f65c};const _0x574538=stringFlag(process.env.LOVRABET_APPCODE);if(_0x574538)return{'name':_0x5f2bc6(0x135),'value':_0x574538};return undefined;}function hasExplicitAppCode(_0x531c96,_0x2c5665){const _0x1d5e84=a252_0x395c;return!!(stringFlag(_0x531c96[_0x1d5e84(0xfa)])||stringFlag(_0x2c5665['appcode']));}function assertEnvAppCodeNotIgnored(_0x40be51,_0x2fc8d3,_0x55c443){const _0x15d737=a252_0x395c;if(!_0x2fc8d3||_0x55c443||_0x40be51===_0x2fc8d3[_0x15d737(0x126)])return;const _0x250747=_0x40be51?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x40be51+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x15d737(0x120)](_0x2fc8d3[_0x15d737(0x113)]+'='+_0x2fc8d3[_0x15d737(0x126)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x250747+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x2fc8d3['name']+'\x22.'));}export function createPipelineEnv(_0x5df6b8,_0x17cc7e,_0x550b28=[]){const _0x587443=a252_0x395c;return{'rawFlags':_0x17cc7e,'args':_0x550b28,'resolveAppCode':()=>_0x5df6b8[_0x587443(0x134)],'resolveCookie':()=>_0x5df6b8[_0x587443(0x10c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x5c34b0(_0x17cc7e),'defaultFormat':_0x5df6b8[_0x587443(0x110)],'defaultPageSize':_0x5df6b8['pageSize'],'defaultVerbose':_0x5df6b8[_0x587443(0x119)],'apiDir':_0x5df6b8[_0x587443(0x13b)],'riskLevel':_0x5df6b8['riskLevel'],'selectedAppName':_0x5df6b8[_0x587443(0x12f)],'mergedCli':{'defaultApp':_0x5df6b8[_0x587443(0x106)],'currentApp':_0x5df6b8[_0x587443(0x111)],'appCode':_0x5df6b8['appCode'],'apps':_0x5df6b8[_0x587443(0xf8)]}};}export function createRabetbaseRunnerAdapter(_0x3da1a7={}){const _0x3cc5de=a252_0x395c;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3cc5de(0xf6)](_0x11fc9a=>PIPELINE_FLAG_NAMES[_0x3cc5de(0x13d)](_0x11fc9a[_0x3cc5de(0x113)]))[_0x3cc5de(0x13f)](({name:_0x324885,type:_0x23e324,description:_0x536db8})=>({'name':_0x324885,'type':_0x23e324,'description':_0x536db8})),'formatOutput':_0x3da1a7[_0x3cc5de(0x12e)]??formatOutput,'getCommandLabel'(_0x375395){const _0x2a7fc6=_0x3cc5de;return CLI_BIN_NAME+'\x20'+_0x375395[_0x2a7fc6(0x132)]+'\x20'+_0x375395['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3cb765,{def:_0x4d908c}){const _0x55f7b5=_0x3cc5de,_0x48ece0=_0x3cb765[_0x55f7b5(0x114)]('Edit\x20the\x20config\x20file\x20manually')?_0x55f7b5(0x125):_0x55f7b5(0x112)+_0x4d908c[_0x55f7b5(0x10b)]+_0x55f7b5(0x101)+_0x55f7b5(0x125);return CliErrors[_0x55f7b5(0x120)](_0x3cb765+_0x55f7b5(0x117)+_0x48ece0);}},async 'prepare'(_0x2f4742,_0x5a39b2,_0x373ee5,_0x14f257){const _0x5a2075=_0x3cc5de,_0x3dfd91=_0x5a39b2[_0x5a2075(0x13b)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2f4742,_0x373ee5,_0x3dfd91,_0x14f257);const _0x2cfabe=resolveCommandAuthMode(_0x2f4742);let _0x1445f2='';if(_0x2cfabe!==_0x5a2075(0x121)){_0x1445f2=_0x5a39b2[_0x5a2075(0xf9)]()||'';if(!_0x1445f2){if(_0x2cfabe===_0x5a2075(0x100))throw CliErrors[_0x5a2075(0x137)]();}else{const {setActiveCookie:_0x2357ef}=await import(_0x5a2075(0x10d));_0x2357ef(_0x1445f2);}}const _0x22d80f=_0x5a39b2[_0x5a2075(0xf7)]()??'';if(_0x2f4742[_0x5a2075(0x11b)]!==![]){const _0x5e95a5=hasExplicitAppCode(_0x373ee5,_0x5a39b2['rawFlags']),_0x20f687=_0x5a39b2['mergedCli']?.[_0x5a2075(0xf8)]??{},_0x42f5a7=_0x5a39b2[_0x5a2075(0x13a)]||_0x5a39b2[_0x5a2075(0xf5)]?.[_0x5a2075(0x111)]||_0x5a39b2[_0x5a2075(0xf5)]?.['defaultApp'];if(!_0x5e95a5&&_0x42f5a7&&!_0x20f687[_0x42f5a7]){const _0x4baed3=Object[_0x5a2075(0x129)](_0x20f687);throw CliErrors['validation'](_0x5a2075(0x136)+_0x42f5a7+_0x5a2075(0x109),_0x4baed3['length']>0x0?'Available:\x20'+_0x4baed3[_0x5a2075(0x11a)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5a2075(0x116):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5a2075(0x116));}assertEnvAppCodeNotIgnored(_0x22d80f,resolveEnvAppCode(),_0x5e95a5);if(!_0x22d80f){const _0x1c08d7=Object[_0x5a2075(0x129)](_0x20f687);if(!_0x42f5a7&&_0x1c08d7[_0x5a2075(0x130)]>0x1)throw CliErrors['configMissing'](_0x5a2075(0x107)+CLI_BIN_NAME+_0x5a2075(0x103)+_0x1c08d7[_0x5a2075(0x11a)](',\x20')+'.');throw CliErrors['configMissing'](_0x5a2075(0x118)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x5a39b2['defaultVerbose']},'numbers':{'pagesize':_0x5a39b2[_0x5a2075(0x108)]}},'extras':{'appCode':_0x22d80f,'cookie':_0x1445f2,'apiDomain':_0x5a39b2[_0x5a2075(0x123)](),'apiDir':_0x3dfd91,'selectedAppName':_0x5a39b2[_0x5a2075(0x13a)],'mergedCli':_0x5a39b2[_0x5a2075(0xf5)]}};},'confirmHighRisk':_0x3da1a7[_0x3cc5de(0x133)]??(async({env:_0x3921e9,commandLabel:_0x5e6cc7})=>{const _0x12e42a=_0x3cc5de;if(_0x3921e9['isNonInteractive'])throw CliErrors[_0x12e42a(0x120)]('High-risk\x20operation\x20`'+_0x5e6cc7+_0x12e42a(0x11d));await requireConfirmationPrompt({'lines':[_0x12e42a(0x11f)+_0x5e6cc7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x39c6a2=>CliErrors[_0x12e42a(0x10a)](_0x39c6a2)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x16ab48}=await import('../core/api-client.js');_0x16ab48();}export async function finalizeRabetbaseRuntimeState(){const _0x3043e2=a252_0x395c;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2119c8},{initEnv:_0xf28cb4}]=await Promise[_0x3043e2(0x128)]([import('../constant/domain.js'),import(_0x3043e2(0x138))]);_0x2119c8(),_0xf28cb4(_0x3043e2(0xfd));}}export async function runCommand(_0x2ab24a,_0x19697d,_0x499cf3=terminalRunnerAdapter){const _0x505544=a252_0x395c;assertRejectedFlags(_0x2ab24a,_0x19697d[_0x505544(0x124)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2ab24a)?withUpdateNotice(_0x2ab24a):_0x2ab24a,_0x19697d,_0x499cf3);}function assertRejectedFlags(_0x3c34cf,_0x129b50){const _0x44a86b=a252_0x395c;for(const _0x4bec12 of _0x3c34cf['rejectedFlags']??[]){const _0x3ade16=GLOBAL_FLAGS['find'](_0x41ce45=>_0x41ce45[_0x44a86b(0x113)]===_0x4bec12[_0x44a86b(0x113)]),_0x5ce1ac=new Set([_0x4bec12['name'],toCamelCase(_0x4bec12['name']),_0x3ade16?.['meowKey']]),_0x321ed7=[..._0x5ce1ac][_0x44a86b(0x12d)](_0x440f96=>{if(!_0x440f96)return![];const _0x4c4f9f=_0x129b50[_0x440f96];return _0x4c4f9f!==undefined&&_0x4c4f9f!==null&&_0x4c4f9f!==![];});if(_0x321ed7)throw CliErrors[_0x44a86b(0x120)](_0x4bec12[_0x44a86b(0x122)],_0x4bec12[_0x44a86b(0xff)]);}}function toCamelCase(_0x15bba2){const _0x3b355e=a252_0x395c;return _0x15bba2['replace'](/-([a-z])/g,(_0x56ab1d,_0x3ec13c)=>_0x3ec13c[_0x3b355e(0x127)]());}function shouldAttachUpdateNotice(_0x3d5ff0){const _0x5404d4=a252_0x395c;if(_0x3d5ff0[_0x5404d4(0xf4)]===![])return![];return!['update',_0x5404d4(0x104),'doctor'][_0x5404d4(0x114)](_0x3d5ff0[_0x5404d4(0x132)]);}function withUpdateNotice(_0x4f6abf){return{..._0x4f6abf,async 'execute'(_0x5eb068){const _0x69b33f=a252_0x395c,_0x2f96f2=shouldResolveUpdateNotice(_0x5eb068)?resolveLatestUpdateNotice()[_0x69b33f(0x13e)](()=>null):Promise[_0x69b33f(0x12a)](null),_0x65fa7c=await _0x4f6abf['execute'](_0x5eb068);return attachUpdateNotice(_0x65fa7c,await _0x2f96f2);}};}function shouldResolveUpdateNotice(_0x5e24a1){const _0x3c6973=a252_0x395c;return _0x5e24a1['format']==='pretty'&&!_0x5e24a1[_0x3c6973(0x10e)];}function attachUpdateNotice(_0xbd797b,_0x5ab224){const _0x2fd523=a252_0x395c;if(!_0x5ab224||!_0xbd797b||typeof _0xbd797b!=='object')return _0xbd797b;const _0x217e89=_0xbd797b,_0x4f3b97=typeof _0x217e89[_0x2fd523(0x12c)]===_0x2fd523(0x13c)&&_0x217e89[_0x2fd523(0x12c)]!==null?_0x217e89[_0x2fd523(0x12c)]:{};return{..._0x217e89,'_notice':{..._0x4f3b97,'update':_0x5ab224}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x254215,_0x167756){const _0x10231b=a253_0x353e,_0x406ab1=_0x254215();while(!![]){try{const _0x3d53d6=parseInt(_0x10231b(0x107))/0x1+parseInt(_0x10231b(0x10d))/0x2*(-parseInt(_0x10231b(0x110))/0x3)+-parseInt(_0x10231b(0x108))/0x4*(-parseInt(_0x10231b(0x105))/0x5)+-parseInt(_0x10231b(0x10e))/0x6*(-parseInt(_0x10231b(0x109))/0x7)+-parseInt(_0x10231b(0x112))/0x8*(-parseInt(_0x10231b(0x10c))/0x9)+parseInt(_0x10231b(0x10b))/0xa*(-parseInt(_0x10231b(0x10a))/0xb)+-parseInt(_0x10231b(0x106))/0xc*(-parseInt(_0x10231b(0x10f))/0xd);if(_0x3d53d6===_0x167756)break;else _0x406ab1['push'](_0x406ab1['shift']());}catch(_0x44bdae){_0x406ab1['push'](_0x406ab1['shift']());}}}(a253_0x5170,0x201eb));import{buildSchemaPayload as a253_0x47fa7b}from'@lovrabet/cli-framework';function a253_0x353e(_0x1dc483,_0x30cc4e){_0x1dc483=_0x1dc483-0x105;const _0x517001=a253_0x5170();let _0x353e1e=_0x517001[_0x1dc483];return _0x353e1e;}import{buildAllFlags}from'../framework/build-all-flags.js';function a253_0x5170(){const _0x3dd484=['10iwFNxb','9khynTF','18566euXxkw','6MUUuCj','5876wpbzkp','6DNoRwE','../commands/registry.js','445336iAntvi','5HhSHjB','1164HzNXpG','81255hYgQMc','30948gqvIrp','1503481fRpIIv','2784727XtCwgR'];a253_0x5170=function(){return _0x3dd484;};return a253_0x5170();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x379c6a=a253_0x353e,{serviceRegistry:_0x118ddc,findDefinition:_0x2aea43}=await import(_0x379c6a(0x111));return a253_0x47fa7b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x118ddc,'buildAllFlags':buildAllFlags,'findDefinition':_0x2aea43});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12440c,_0x28fa3b){var _0x10e78c=a254_0x3d69,_0x583824=_0x12440c();while(!![]){try{var _0x36966a=parseInt(_0x10e78c(0xc7))/0x1+-parseInt(_0x10e78c(0xcc))/0x2*(parseInt(_0x10e78c(0xcd))/0x3)+-parseInt(_0x10e78c(0xca))/0x4+-parseInt(_0x10e78c(0xc9))/0x5+parseInt(_0x10e78c(0xc5))/0x6*(-parseInt(_0x10e78c(0xc4))/0x7)+parseInt(_0x10e78c(0xc6))/0x8+-parseInt(_0x10e78c(0xc8))/0x9*(-parseInt(_0x10e78c(0xcb))/0xa);if(_0x36966a===_0x28fa3b)break;else _0x583824['push'](_0x583824['shift']());}catch(_0x35846a){_0x583824['push'](_0x583824['shift']());}}}(a254_0x5533,0xd9dd7));function a254_0x3d69(_0x151a39,_0x2f08f9){_0x151a39=_0x151a39-0xc4;var _0x553300=a254_0x5533();var _0x3d6978=_0x553300[_0x151a39];return _0x3d6978;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a254_0x5533(){var _0x34035e=['36spujXd','154415veDDhP','6768536NsSnMh','8596070XztgVO','214730WcDsNa','33yWcITO','63lNHtfO','673422VAIPtS','5475568eSQyIl','683666Cgibyq'];a254_0x5533=function(){return _0x34035e;};return a254_0x5533();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.0-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.0-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.5.0-beta.6";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.0-beta.6";
|
|
3
|
+
export declare const GIT_COMMIT = "1d08333";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-22T13:24:48.705Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x505520=a255_0x3e1c;(function(_0x5ef51b,_0x1f2704){const _0x2ac1aa=a255_0x3e1c,_0x503042=_0x5ef51b();while(!![]){try{const _0x291240=parseInt(_0x2ac1aa(0x1e5))/0x1*(parseInt(_0x2ac1aa(0x1da))/0x2)+-parseInt(_0x2ac1aa(0x1e7))/0x3*(-parseInt(_0x2ac1aa(0x1df))/0x4)+-parseInt(_0x2ac1aa(0x1e4))/0x5*(parseInt(_0x2ac1aa(0x1e3))/0x6)+parseInt(_0x2ac1aa(0x1dd))/0x7*(parseInt(_0x2ac1aa(0x1e2))/0x8)+parseInt(_0x2ac1aa(0x1dc))/0x9*(parseInt(_0x2ac1aa(0x1e0))/0xa)+parseInt(_0x2ac1aa(0x1de))/0xb+parseInt(_0x2ac1aa(0x1db))/0xc*(-parseInt(_0x2ac1aa(0x1e6))/0xd);if(_0x291240===_0x1f2704)break;else _0x503042['push'](_0x503042['shift']());}catch(_0x88b45f){_0x503042['push'](_0x503042['shift']());}}}(a255_0x3965,0xc653d));export const VERSION='2.5.0-beta.6';export const GIT_TAG=a255_0x505520(0x1e1);export const GIT_COMMIT='1d08333';export const BUILD_TIME='2026-08-22T13:24:48.705Z';function a255_0x3e1c(_0x4e71eb,_0x13c0ae){_0x4e71eb=_0x4e71eb-0x1da;const _0x39651b=a255_0x3965();let _0x3e1c81=_0x39651b[_0x4e71eb];return _0x3e1c81;}function a255_0x3965(){const _0x66ce0b=['1oKdlei','19259604Mfozma','17448HrKYvM','998440PuzGfe','24ftwHoa','9hEdBwH','259vZUTXf','16853969npbpYJ','8rguvze','9208120eYpTgN','v2.5.0-beta.6','204576YkLRQn','807852AKjawk','5APBMLs'];a255_0x3965=function(){return _0x66ce0b;};return a255_0x3965();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x475bae,_0x5677b9){var _0x387fb5=a256_0x4541,_0x3df6fb=_0x475bae();while(!![]){try{var _0x4c5b7a=-parseInt(_0x387fb5(0x11c))/0x1*(parseInt(_0x387fb5(0x11a))/0x2)+-parseInt(_0x387fb5(0x11e))/0x3*(-parseInt(_0x387fb5(0x112))/0x4)+parseInt(_0x387fb5(0x120))/0x5*(parseInt(_0x387fb5(0x116))/0x6)+parseInt(_0x387fb5(0x113))/0x7*(parseInt(_0x387fb5(0x114))/0x8)+parseInt(_0x387fb5(0x11b))/0x9+-parseInt(_0x387fb5(0x121))/0xa+parseInt(_0x387fb5(0x117))/0xb;if(_0x4c5b7a===_0x5677b9)break;else _0x3df6fb['push'](_0x3df6fb['shift']());}catch(_0x264756){_0x3df6fb['push'](_0x3df6fb['shift']());}}}(a256_0x1bb5,0x6a69c));import a256_0x359c19 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a256_0x4541(_0x3a2869,_0x21830a){_0x3a2869=_0x3a2869-0x112;var _0x1bb576=a256_0x1bb5();var _0x454150=_0x1bb576[_0x3a2869];return _0x454150;}export function showHelp(){var _0x56c673=a256_0x4541;console['log'](),console['log'](a256_0x359c19[_0x56c673(0x118)][_0x56c673(0x11f)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x56c673(0x11d)](),console[_0x56c673(0x11d)](_0x56c673(0x119)+a256_0x359c19[_0x56c673(0x118)]['bold'](CLI_BIN_NAME+'\x20--help')+_0x56c673(0x115)),console[_0x56c673(0x11d)]();}function a256_0x1bb5(){var _0x4314c3=['10ovaVia','7787430eUGSkU','4QgbIxE','3276qxdzgD','2032cVRzBJ','\x20to\x20view\x20available\x20commands.','1272162vXLYnJ','2321913pbXxtN','green','\x20\x20Use\x20','1350526JzvpTC','2686077nHWiYf','1ISKJjf','log','2512236uYtIxf','bold'];a256_0x1bb5=function(){return _0x4314c3;};return a256_0x1bb5();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49af21,_0x47e5cc){const _0x7ef11f=a257_0x4ee8,_0x5671b0=_0x49af21();while(!![]){try{const _0x4478d5=-parseInt(_0x7ef11f(0x15e))/0x1+parseInt(_0x7ef11f(0x16e))/0x2+parseInt(_0x7ef11f(0x16b))/0x3+-parseInt(_0x7ef11f(0x16f))/0x4*(-parseInt(_0x7ef11f(0x161))/0x5)+-parseInt(_0x7ef11f(0x172))/0x6*(-parseInt(_0x7ef11f(0x16c))/0x7)+-parseInt(_0x7ef11f(0x170))/0x8+-parseInt(_0x7ef11f(0x15d))/0x9*(parseInt(_0x7ef11f(0x16a))/0xa);if(_0x4478d5===_0x47e5cc)break;else _0x5671b0['push'](_0x5671b0['shift']());}catch(_0x506a79){_0x5671b0['push'](_0x5671b0['shift']());}}}(a257_0x10b4,0xf00ac));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a257_0x4ee8(_0x3632a3,_0xf2f545){_0x3632a3=_0x3632a3-0x15c;const _0x10b4eb=a257_0x10b4();let _0x4ee86e=_0x10b4eb[_0x3632a3];return _0x4ee86e;}export async function runPostinstall(_0xa9aedd={}){const _0xd6e6f6=a257_0x4ee8,_0x3f7f3c=installBuiltinSkill(_0xa9aedd);if(_0x3f7f3c['ok']){const _0x1483a2=_0x3f7f3c['changed']?_0xd6e6f6(0x15f):_0xd6e6f6(0x168),_0x157ac0=_0x3f7f3c[_0xd6e6f6(0x15c)]?_0xd6e6f6(0x171)+_0x3f7f3c[_0xd6e6f6(0x15c)]:_0xd6e6f6(0x16d);return console[_0xd6e6f6(0x163)](_0xd6e6f6(0x169)+_0x3f7f3c[_0xd6e6f6(0x173)]+'\x20'+_0x1483a2+_0x157ac0),_0x3f7f3c;}const _0x538043=_0xd6e6f6(0x166)+(_0x3f7f3c[_0xd6e6f6(0x162)]??'FAILED')+']\x20'+(_0x3f7f3c['error']??_0xd6e6f6(0x160))+'.\x20'+('Repair\x20with:\x20'+_0x3f7f3c[_0xd6e6f6(0x164)]);if(_0x3f7f3c['code']===_0xd6e6f6(0x165))throw new Error(_0x538043);return console[_0xd6e6f6(0x167)](_0x538043),_0x3f7f3c;}function a257_0x10b4(){const _0x281ff2=['84xebjWn','\x20via\x20skills@latest','3488360fvTBjN','2543468MmqxAH','1125792BTagsi','\x20at\x20','330222iRBQsp','skillVersion','installedPath','342jWpXcK','1068427AcAliU','installed','Installation\x20failed','10ISWiYm','code','log','repairCommand','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','warn','already\x20current','Rabetbase\x20Built-in\x20Skill\x20','752310VtjvyG','4124349uLEAlR'];a257_0x10b4=function(){return _0x281ff2;};return a257_0x10b4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x227c0b,_0x2c7659){const _0xf2391b=a258_0x668e,_0x1416d4=_0x227c0b();while(!![]){try{const _0x4cbed7=parseInt(_0xf2391b(0xa0))/0x1+-parseInt(_0xf2391b(0x9c))/0x2+parseInt(_0xf2391b(0xa3))/0x3*(-parseInt(_0xf2391b(0x93))/0x4)+parseInt(_0xf2391b(0x95))/0x5*(-parseInt(_0xf2391b(0x9a))/0x6)+-parseInt(_0xf2391b(0x99))/0x7+-parseInt(_0xf2391b(0x9b))/0x8+parseInt(_0xf2391b(0x9e))/0x9;if(_0x4cbed7===_0x2c7659)break;else _0x1416d4['push'](_0x1416d4['shift']());}catch(_0xa00e10){_0x1416d4['push'](_0x1416d4['shift']());}}}(a258_0x499a,0x5ddaa));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1f841f,_0x181151,_0x46df74){const _0x13d7c6=a258_0x668e,_0x256503=normalizeText(_0x1f841f[_0x13d7c6(0xa1)],DESCRIPTION_MAX_LENGTH),_0x401ba1=_0x256503||normalizeText(defaultDescription(requireWriteRisk(_0x1f841f),_0x181151),DESCRIPTION_MAX_LENGTH);return{'operation':_0x181151,'risk':requireWriteRisk(_0x1f841f),'description':_0x401ba1,..._0x46df74?{'signal':_0x46df74}:{}};}function requireWriteRisk(_0x1aa853){const _0x23d473=a258_0x668e;if(_0x1aa853[_0x23d473(0xa4)]==='write'||_0x1aa853['risk']===_0x23d473(0x96))return _0x1aa853[_0x23d473(0xa4)];throw new Error(_0x23d473(0x9f));}function defaultDescription(_0x3071ab,_0x182597){const _0x44e243=a258_0x668e;if(_0x3071ab==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x182597+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x44e243(0xa2)+_0x182597+_0x44e243(0x94);}function a258_0x668e(_0x315257,_0x8dabf7){_0x315257=_0x315257-0x93;const _0x499a79=a258_0x499a();let _0x668ea6=_0x499a79[_0x315257];return _0x668ea6;}function normalizeText(_0x4028e1,_0x4dd360){const _0x7d3b49=a258_0x668e;if(typeof _0x4028e1!=='string')return'';return _0x4028e1[_0x7d3b49(0x98)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x7d3b49(0x98)](/\s+/g,'\x20')[_0x7d3b49(0x97)]()[_0x7d3b49(0x9d)](0x0,_0x4dd360);}function a258_0x499a(){const _0x5a8919=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','30pkXbJv','high-risk-write','trim','replace','3434473xnOlnR','147486raIBWl','6120264EphIYa','1500460WaCKqk','slice','23139765dfUdoa','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','459126CwGXQt','confirmationDescription','This\x20will\x20run\x20the\x20write\x20','1477191RsQnHB','risk','4lckrUA'];a258_0x499a=function(){return _0x5a8919;};return a258_0x499a();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19a87b,_0x161b91){var _0x343301=a259_0x3789,_0x31ec8a=_0x19a87b();while(!![]){try{var _0x5f5286=parseInt(_0x343301(0x7f))/0x1*(parseInt(_0x343301(0x7b))/0x2)+-parseInt(_0x343301(0x6f))/0x3+-parseInt(_0x343301(0x6e))/0x4*(-parseInt(_0x343301(0x75))/0x5)+parseInt(_0x343301(0x81))/0x6*(-parseInt(_0x343301(0x74))/0x7)+parseInt(_0x343301(0x73))/0x8*(-parseInt(_0x343301(0x7d))/0x9)+-parseInt(_0x343301(0x71))/0xa*(parseInt(_0x343301(0x7c))/0xb)+parseInt(_0x343301(0x76))/0xc;if(_0x5f5286===_0x161b91)break;else _0x31ec8a['push'](_0x31ec8a['shift']());}catch(_0x140ede){_0x31ec8a['push'](_0x31ec8a['shift']());}}}(a259_0x1c39,0x6b6dc));export function canonicalRabetbaseOperation(_0x3f16bb){var _0x5ba1f5=a259_0x3789;return[_0x3f16bb[_0x5ba1f5(0x7a)],..._0x3f16bb[_0x5ba1f5(0x79)][_0x5ba1f5(0x70)]()[_0x5ba1f5(0x80)](/\s+/)][_0x5ba1f5(0x78)](Boolean)[_0x5ba1f5(0x77)]('.');}export function createRabetbaseWriteMetadata(_0xb43e,_0x152b16,_0x4fec62,_0x3fd861){var _0x18d804=a259_0x3789;if(_0x3fd861||_0x4fec62['ok']!==!![]||_0xb43e[_0x18d804(0x7e)]!==_0x18d804(0x72)&&_0xb43e[_0x18d804(0x7e)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x152b16,'risk':_0xb43e[_0x18d804(0x7e)]}}};}function a259_0x3789(_0x441951,_0x444f4f){_0x441951=_0x441951-0x6e;var _0x1c39a9=a259_0x1c39();var _0x3789ef=_0x1c39a9[_0x441951];return _0x3789ef;}function a259_0x1c39(){var _0x3ec4b0=['15VyJQof','6553560uaHuJp','join','filter','command','service','229760GQoVoG','22396vNwBzb','9cmrWGt','risk','6fyKbMI','split','165288tXtZUU','1115968RxEKjD','1624545zJINpq','trim','220fvUCiP','write','2638424AVYNhR','182hedvrB'];a259_0x1c39=function(){return _0x3ec4b0;};return a259_0x1c39();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x464885,_0xfdd097){const _0x1fec02=a260_0x2c4d,_0x2b631a=_0x464885();while(!![]){try{const _0x4461ca=parseInt(_0x1fec02(0xe0))/0x1+parseInt(_0x1fec02(0xd6))/0x2+parseInt(_0x1fec02(0xcd))/0x3+-parseInt(_0x1fec02(0xe5))/0x4*(parseInt(_0x1fec02(0xe4))/0x5)+parseInt(_0x1fec02(0xe7))/0x6+-parseInt(_0x1fec02(0xe1))/0x7+-parseInt(_0x1fec02(0xdf))/0x8*(parseInt(_0x1fec02(0xe8))/0x9);if(_0x4461ca===_0xfdd097)break;else _0x2b631a['push'](_0x2b631a['shift']());}catch(_0x5ada9e){_0x2b631a['push'](_0x2b631a['shift']());}}}(a260_0x4368,0xb8a4d));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a260_0x2c4d(_0x20f064,_0x10fc89){_0x20f064=_0x20f064-0xc9;const _0x43683c=a260_0x4368();let _0x2c4df7=_0x43683c[_0x20f064];return _0x2c4df7;}function a260_0x4368(){const _0x52c9ee=['2375968kXaAUc','reason','presentation','execute','format','dryRun','rawFlags','data','signal','472VRmgZD','1090218CNYOoC','9003904HuQWkv','Rabetbase\x20invocation\x20aborted.','confirm','5RaWXqt','74732BwdYFb','aborted','5741520kRAqDw','284454KXZBlZ','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','command','dry-run','riskLevel','2072664lvmTjR','args','present','definition','yes','result','risk','high-risk-write','message'];a260_0x4368=function(){return _0x52c9ee;};return a260_0x4368();}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5f3f37,command:_0x3e4a4a,risk:_0x232f0f,dryRun:_0x536944}){const _0x433407=a260_0x2c4d;return JSON['stringify']({'ok':_0x5f3f37['ok'],'command':_0x3e4a4a,'risk':_0x232f0f,..._0x536944?{'dryRun':!![]}:{},..._0x5f3f37[_0x433407(0xdd)]!==undefined?{'data':_0x5f3f37['data']}:{},..._0x5f3f37[_0x433407(0xd5)]?{'message':_0x5f3f37[_0x433407(0xd5)]}:{}});}};export async function invokeRabetbase(_0x272b9c,_0x216748){const _0x527341=a260_0x2c4d;throwIfAborted(_0x216748[_0x527341(0xde)]);const _0x347a26=await resolveRabetbaseInvocation(_0x272b9c),_0x3483d0=canonicalRabetbaseOperation(_0x347a26['definition']);return await confirmWriteBeforeQueue(_0x347a26[_0x527341(0xd0)],_0x347a26[_0x527341(0xdc)],_0x3483d0,_0x216748),runSerialized(async()=>{const _0x55c06b=_0x527341,_0x3fd23a={};try{throwIfAborted(_0x216748[_0x55c06b(0xde)]);const _0x3670a3=buildConfigFromFlags(_0x347a26[_0x55c06b(0xdc)]);await initGlobalEnvironment(_0x3670a3);const _0x44ddb1=createPipelineEnv(_0x3670a3,{..._0x347a26[_0x55c06b(0xdc)],'yes':_0x347a26[_0x55c06b(0xd0)][_0x55c06b(0xd3)]===_0x55c06b(0xd4)?!![]:_0x347a26[_0x55c06b(0xdc)][_0x55c06b(0xd1)],'nonInteractive':!![]},_0x347a26[_0x55c06b(0xce)]);_0x44ddb1['isNonInteractive']=!![],_0x44ddb1[_0x55c06b(0xcc)]=_0x55c06b(0xd4);const _0x26a140=withAbortSignal(_0x347a26[_0x55c06b(0xd0)],_0x216748[_0x55c06b(0xde)]),_0x3c5181=createRabetbaseRunnerAdapter({'formatOutput'(_0xd12b31,_0x28e6c4){const _0xccb508=_0x55c06b;_0x3fd23a[_0xccb508(0xd2)]=_0xd12b31,_0x3fd23a[_0xccb508(0xca)]=_0x28e6c4[_0xccb508(0xca)],_0x3fd23a[_0xccb508(0xd3)]=_0x28e6c4['risk'],_0x3fd23a[_0xccb508(0xda)]=_0x28e6c4[_0xccb508(0xda)],_0x3fd23a[_0xccb508(0xdb)]=_0x28e6c4[_0xccb508(0xdb)]===!![];},async 'confirmHighRisk'(){const _0x2d983e=_0x55c06b;throw new Error(_0x2d983e(0xc9));}});await runCommand(_0x26a140,_0x44ddb1,_0x3c5181);if(!_0x3fd23a[_0x55c06b(0xd2)]||!_0x3fd23a['command']||!_0x3fd23a[_0x55c06b(0xd3)]||!_0x3fd23a[_0x55c06b(0xda)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x34b566=_0x3fd23a['dryRun']===!![],_0x5aed10=_0x216748[_0x55c06b(0xd8)]??defaultPresentation,_0x3b3f32={'result':_0x3fd23a[_0x55c06b(0xd2)],'command':_0x3fd23a[_0x55c06b(0xca)],'operation':_0x3483d0,'risk':_0x3fd23a[_0x55c06b(0xd3)],'format':_0x3fd23a[_0x55c06b(0xda)],'dryRun':_0x34b566},_0x1cd858=createRabetbaseWriteMetadata(_0x347a26[_0x55c06b(0xd0)],_0x3483d0,_0x3fd23a['result'],_0x34b566);let _0x587f33;try{_0x587f33=await _0x5aed10[_0x55c06b(0xcf)](_0x3b3f32);}catch(_0x1c5e7f){if(!_0x1cd858||_0x5aed10===defaultPresentation)throw _0x1c5e7f;_0x587f33=await defaultPresentation[_0x55c06b(0xcf)](_0x3b3f32);}return{'operation':_0x3483d0,'risk':_0x3fd23a[_0x55c06b(0xd3)],'mode':_0x34b566?_0x55c06b(0xcb):_0x55c06b(0xd9),'result':_0x3fd23a['result'],'output':_0x587f33,..._0x1cd858?{'metadata':_0x1cd858}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2427d3,_0x255fd4,_0x333b17,_0x1aedb0){const _0x3fa6ff=a260_0x2c4d;if(_0x255fd4['dryRun']===!![]||_0x2427d3[_0x3fa6ff(0xd3)]!=='write'&&_0x2427d3['risk']!==_0x3fa6ff(0xd4))return;await _0x1aedb0['confirmation'][_0x3fa6ff(0xe3)](buildRabetbaseConfirmationRequest(_0x2427d3,_0x333b17,_0x1aedb0[_0x3fa6ff(0xde)]));}function withAbortSignal(_0x425928,_0xf468a){return{..._0x425928,async 'execute'(_0x3a2dca){const _0x2446d7=a260_0x2c4d;return throwIfAborted(_0xf468a),_0x425928[_0x2446d7(0xd9)](_0x3a2dca);}};}function throwIfAborted(_0x332dd1){const _0x1104ba=a260_0x2c4d;if(_0x332dd1?.[_0x1104ba(0xe6)])throw _0x332dd1['reason']instanceof Error?_0x332dd1[_0x1104ba(0xd7)]:new DOMException(_0x1104ba(0xe2),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a261_0x10bb0f=a261_0x5ce7;(function(_0x434d52,_0xfb0bb6){const _0x50f56c=a261_0x5ce7,_0x508987=_0x434d52();while(!![]){try{const _0xfc6a5c=parseInt(_0x50f56c(0x19a))/0x1+parseInt(_0x50f56c(0x195))/0x2*(-parseInt(_0x50f56c(0x198))/0x3)+-parseInt(_0x50f56c(0x18f))/0x4+-parseInt(_0x50f56c(0x193))/0x5*(parseInt(_0x50f56c(0x194))/0x6)+parseInt(_0x50f56c(0x196))/0x7+parseInt(_0x50f56c(0x192))/0x8*(parseInt(_0x50f56c(0x191))/0x9)+parseInt(_0x50f56c(0x190))/0xa;if(_0xfc6a5c===_0xfb0bb6)break;else _0x508987['push'](_0x508987['shift']());}catch(_0x21c691){_0x508987['push'](_0x508987['shift']());}}}(a261_0x4adf,0x3b841));function a261_0x5ce7(_0x5e2610,_0x544247){_0x5e2610=_0x5e2610-0x18f;const _0x4adfd5=a261_0x4adf();let _0x5ce70a=_0x4adfd5[_0x5e2610];return _0x5ce70a;}function a261_0x4adf(){const _0x24ff76=['3918339ctisqE','8jWnCad','475JtRSDf','21174jyltEw','2QhwLpn','2666412fcPOcG','catch','988440CnjpIU','resolve','76550unMNCQ','831440BZTdTx','2235350ETMLUH'];a261_0x4adf=function(){return _0x24ff76;};return a261_0x4adf();}let tail=Promise[a261_0x10bb0f(0x199)]();export async function runSerialized(_0x275f4f){const _0x6f4471=a261_0x10bb0f,_0xbaf9f4=tail;let _0x58bd3e;tail=new Promise(_0x13e30e=>{_0x58bd3e=_0x13e30e;}),await _0xbaf9f4[_0x6f4471(0x197)](()=>undefined);try{return await _0x275f4f();}finally{_0x58bd3e();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18c143,_0x742ae8){const _0x21166a=a262_0x5ec5,_0x185c85=_0x18c143();while(!![]){try{const _0x5c061b=parseInt(_0x21166a(0x1c7))/0x1*(-parseInt(_0x21166a(0x1c6))/0x2)+parseInt(_0x21166a(0x1c1))/0x3+parseInt(_0x21166a(0x1cb))/0x4*(-parseInt(_0x21166a(0x1cf))/0x5)+-parseInt(_0x21166a(0x1cd))/0x6*(parseInt(_0x21166a(0x1d0))/0x7)+-parseInt(_0x21166a(0x1c9))/0x8*(-parseInt(_0x21166a(0x1ca))/0x9)+parseInt(_0x21166a(0x1d1))/0xa+parseInt(_0x21166a(0x1c2))/0xb;if(_0x5c061b===_0x742ae8)break;else _0x185c85['push'](_0x185c85['shift']());}catch(_0x285f74){_0x185c85['push'](_0x185c85['shift']());}}}(a262_0x220f,0x22da0));import a262_0x1a07b2 from'meow';function a262_0x5ec5(_0x458601,_0xdf2ff8){_0x458601=_0x458601-0x1b9;const _0x220fc2=a262_0x220f();let _0x5ec562=_0x220fc2[_0x458601];return _0x5ec562;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a262_0x220f(){const _0x333449=['message','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','hint','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','validation','287748pIHwzl','3478893jMwuyb','wildcardDef','slice','defaultCommand','560338kGOmnW','1SHcFcK','unknownCommand','944NeeTca','10044ckoVTN','2104kOpBym','run','6USGxbC','flags','1370lIKRTC','789796UmjNGu','1360060ckMUbA','join','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'];a262_0x220f=function(){return _0x333449;};return a262_0x220f();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x4cb7cc){const _0x2e2e5a=a262_0x5ec5,_0x13ccf8=a262_0x1a07b2('',{'importMeta':import.meta,'argv':[..._0x4cb7cc],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2449ea=[..._0x13ccf8['input']],_0x458b2e=_0x13ccf8[_0x2e2e5a(0x1ce)],_0x23286b=_0x2449ea[0x0];if(!_0x23286b)throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1bf));const _0x5da68a=resolveRemovedCommand(_0x23286b,_0x2449ea[0x1]);if(_0x5da68a)throw CliErrors['validation'](_0x5da68a[_0x2e2e5a(0x1bb)],_0x5da68a[_0x2e2e5a(0x1bd)]);if(_0x23286b===_0x2e2e5a(0x1cc))throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1bc),_0x2e2e5a(0x1be));if(!isKnownService(_0x23286b))throw CliErrors[_0x2e2e5a(0x1c8)](_0x2449ea[_0x2e2e5a(0x1b9)]('\x20'));const _0x5745c9=getServiceEntry(_0x23286b),_0x4db417=_0x2449ea[0x1],_0x5dc3da=_0x4db417||_0x5745c9[_0x2e2e5a(0x1c5)];if(!_0x5dc3da){if(_0x5745c9[_0x2e2e5a(0x1c3)])return{'definition':_0x5745c9[_0x2e2e5a(0x1c3)],'rawFlags':_0x458b2e,'args':[]};throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1ba)+_0x23286b+'\x22.');}const _0x32f8f9=findDefinition(_0x23286b,_0x5dc3da);if(_0x32f8f9)return{'definition':_0x32f8f9,'rawFlags':_0x458b2e,'args':_0x2449ea['slice'](0x2)};if(_0x5745c9[_0x2e2e5a(0x1c3)])return{'definition':_0x5745c9[_0x2e2e5a(0x1c3)],'rawFlags':_0x458b2e,'args':[_0x5dc3da,..._0x2449ea[_0x2e2e5a(0x1c4)](0x2)]};throw CliErrors[_0x2e2e5a(0x1c8)](_0x23286b+'\x20'+_0x5dc3da);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a264_0x51e9f1=a264_0x3905;(function(_0x20ed81,_0x5658e5){const _0x4841ed=a264_0x3905,_0xed4c34=_0x20ed81();while(!![]){try{const _0x566ad4=parseInt(_0x4841ed(0xd5))/0x1+-parseInt(_0x4841ed(0xea))/0x2+parseInt(_0x4841ed(0xe7))/0x3+-parseInt(_0x4841ed(0xf4))/0x4*(parseInt(_0x4841ed(0x104))/0x5)+-parseInt(_0x4841ed(0xe0))/0x6*(parseInt(_0x4841ed(0xd8))/0x7)+-parseInt(_0x4841ed(0xd3))/0x8+parseInt(_0x4841ed(0xec))/0x9*(parseInt(_0x4841ed(0xcb))/0xa);if(_0x566ad4===_0x5658e5)break;else _0xed4c34['push'](_0xed4c34['shift']());}catch(_0x4d6a15){_0xed4c34['push'](_0xed4c34['shift']());}}}(a264_0x59bd,0xd54d0));function a264_0x59bd(){const _0x30ac5c=['isSymbolicLink','files','skipped','12703432SESLAB','path','751761unBiGq','package.json','split','168Gvzeja','isDirectory','rabetbase\x20cli-skill\x20install','unverifiable','Symbolic\x20link\x20is\x20not\x20allowed:\x20','Unsafe\x20manifest\x20path:\x20','includes','absent','222978lmEwre','content_mismatch','SKILL.md','reason','unknown','Unsupported\x20Skill\x20entry:\x20','rabetbase.manifest.json','1341501fFzAQg','state','message','454068GWlcxL','current','1701xNMuex','missing','stdio','packageRoot','root','packageVersion','utf8','rabetbase','5174668QxYsEj','join','flatMap','hex','startsWith','parse','name','version',':\x5cs*(.+)$','digest','INSTALL_FAILED','skillVersion','every','installedPath','schemaVersion','skills@latest\x20exited\x20','5YjvDRz','trim','home','isFile','present','update','length','194460dOWNny','status','skills','manifest','version_mismatch'];a264_0x59bd=function(){return _0x30ac5c;};return a264_0x59bd();}import{createHash}from'node:crypto';function a264_0x3905(_0x498cba,_0x1aa893){_0x498cba=_0x498cba-0xc7;const _0x59bd34=a264_0x59bd();let _0x3905cd=_0x59bd34[_0x498cba];return _0x3905cd;}import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a264_0x51e9f1(0xda),SKILL_NAME=a264_0x51e9f1(0xf3);function frontmatterValue(_0x1a3f3f,_0x13b7e2){const _0x2ffc80=a264_0x51e9f1;return _0x1a3f3f['match'](new RegExp('^'+_0x13b7e2+_0x2ffc80(0xfc),'m'))?.[0x1]?.[_0x2ffc80(0x105)]()??'';}function listFiles(_0xa20d5d,_0x1da2ed=_0xa20d5d){const _0x16cef9=a264_0x51e9f1;return readdirSync(_0x1da2ed,{'withFileTypes':!![]})[_0x16cef9(0xf6)](_0x2504b7=>{const _0x538429=_0x16cef9,_0x37e971=join(_0x1da2ed,_0x2504b7[_0x538429(0xfa)]),_0x5060c6=lstatSync(_0x37e971);if(_0x5060c6[_0x538429(0xd0)]())throw new Error(_0x538429(0xdc)+_0x37e971);if(_0x5060c6[_0x538429(0xd9)]())return listFiles(_0xa20d5d,_0x37e971);if(!_0x5060c6[_0x538429(0xc7)]())throw new Error(_0x538429(0xe5)+_0x37e971);return[relative(_0xa20d5d,_0x37e971)[_0x538429(0xd7)](sep)[_0x538429(0xf5)]('/')];})['sort']((_0x3ffafb,_0xbac3b4)=>_0x3ffafb<_0xbac3b4?-0x1:_0x3ffafb>_0xbac3b4?0x1:0x0);}function digestFiles(_0x56e3fa,_0x3a7990){const _0x3cde5c=a264_0x51e9f1,_0x3752ca=createHash('sha256');for(const _0x2d9042 of _0x3a7990){if(_0x2d9042[_0x3cde5c(0xf8)]('/')||_0x2d9042[_0x3cde5c(0xd7)]('/')[_0x3cde5c(0xde)]('..')||_0x2d9042['includes']('\x5c'))throw new Error(_0x3cde5c(0xdd)+_0x2d9042);_0x3752ca[_0x3cde5c(0xc9)](_0x2d9042),_0x3752ca['update']('\x00'),_0x3752ca[_0x3cde5c(0xc9)](readFileSync(join(_0x56e3fa,..._0x2d9042['split']('/')))),_0x3752ca[_0x3cde5c(0xc9)]('\x00');}return _0x3752ca[_0x3cde5c(0xfd)](_0x3cde5c(0xf7));}function sameFiles(_0x4b8ecf,_0xc1ef6){const _0x673ea9=a264_0x51e9f1;return _0x4b8ecf[_0x673ea9(0xca)]===_0xc1ef6['length']&&_0x4b8ecf[_0x673ea9(0x100)]((_0x7dc8da,_0x3ed47b)=>_0x7dc8da===_0xc1ef6[_0x3ed47b]);}function readSource(_0x3ddc4f){const _0x4ae30b=a264_0x51e9f1,_0x27f233=JSON[_0x4ae30b(0xf9)](readFileSync(join(_0x3ddc4f,_0x4ae30b(0xd6)),_0x4ae30b(0xf2))),_0x14c22d=JSON[_0x4ae30b(0xf9)](readFileSync(join(_0x3ddc4f,_0x4ae30b(0xcd),_0x4ae30b(0xe6)),_0x4ae30b(0xf2))),_0x152891=join(_0x3ddc4f,_0x4ae30b(0xcd),SKILL_NAME),_0x2cbb57=frontmatterValue(readFileSync(join(_0x152891,_0x4ae30b(0xe2)),_0x4ae30b(0xf2)),_0x4ae30b(0xfb)),_0x52df67=listFiles(_0x152891);if(_0x14c22d[_0x4ae30b(0x102)]!==0x1||_0x14c22d[_0x4ae30b(0xfa)]!==SKILL_NAME||!_0x27f233[_0x4ae30b(0xfb)]||_0x14c22d[_0x4ae30b(0xf1)]!==_0x27f233['version']||_0x14c22d[_0x4ae30b(0xff)]!==_0x27f233[_0x4ae30b(0xfb)]||_0x2cbb57!==_0x27f233[_0x4ae30b(0xfb)]||!sameFiles(_0x52df67,_0x14c22d[_0x4ae30b(0xd1)])||digestFiles(_0x152891,_0x52df67)!==_0x14c22d[_0x4ae30b(0xfd)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x27f233['version'],'skillVersion':_0x2cbb57,'root':_0x152891,'manifest':_0x14c22d};}function installedSkillPath(_0x363baa){const _0x1bd4cd=a264_0x51e9f1,_0x313b52=resolveInstalledSkill(SKILL_NAME,{'home':_0x363baa});if(_0x313b52[_0x1bd4cd(0xe8)]==='present')return{'state':_0x1bd4cd(0xc8),'path':dirname(_0x313b52[_0x1bd4cd(0xd4)])};if(_0x313b52[_0x1bd4cd(0xe8)]===_0x1bd4cd(0xdf))return{'state':_0x1bd4cd(0xed)};return{'state':_0x1bd4cd(0xdb),'reason':_0x313b52['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x27a02f,_0xe9b17d={}){const _0x903fdd=a264_0x51e9f1,_0x28730c=installedSkillPath(_0xe9b17d[_0x903fdd(0x106)]??homedir());if(_0x28730c[_0x903fdd(0xe8)]===_0x903fdd(0xed))return{'state':'missing','expectedVersion':_0x27a02f,'repairCommand':REPAIR_COMMAND};if(_0x28730c[_0x903fdd(0xe8)]===_0x903fdd(0xdb))return{'state':_0x903fdd(0xdb),'expectedVersion':_0x27a02f,'reason':_0x28730c[_0x903fdd(0xe3)],'repairCommand':REPAIR_COMMAND};try{const _0x2c1942=frontmatterValue(readFileSync(join(_0x28730c[_0x903fdd(0xd4)],_0x903fdd(0xe2)),_0x903fdd(0xf2)),'version');return{'state':_0x2c1942===_0x27a02f?_0x903fdd(0xeb):'version_mismatch','expectedVersion':_0x27a02f,'skillVersion':_0x2c1942,'installedPath':_0x28730c[_0x903fdd(0xd4)],'repairCommand':REPAIR_COMMAND};}catch(_0x33bfe6){return{'state':'unverifiable','expectedVersion':_0x27a02f,'installedPath':_0x28730c[_0x903fdd(0xd4)],'reason':_0x33bfe6 instanceof Error?_0x33bfe6[_0x903fdd(0xe9)]:String(_0x33bfe6),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5ade66={}){const _0x2004b2=a264_0x51e9f1,_0x4543f9=_0x5ade66[_0x2004b2(0xef)]??DEFAULT_PACKAGE_ROOT;let _0x4d3238;try{_0x4d3238=readSource(_0x4543f9);}catch(_0x2f8101){return{'state':'unverifiable','packageVersion':'unknown','reason':_0x2f8101 instanceof Error?_0x2f8101[_0x2004b2(0xe9)]:String(_0x2f8101),'repairCommand':REPAIR_COMMAND};}const _0x2cf7e1=installedSkillPath(_0x5ade66[_0x2004b2(0x106)]??homedir());if(_0x2cf7e1['state']===_0x2004b2(0xed))return{'state':'missing','packageVersion':_0x4d3238[_0x2004b2(0xf1)],'repairCommand':REPAIR_COMMAND};if(_0x2cf7e1[_0x2004b2(0xe8)]==='unverifiable')return{'state':_0x2004b2(0xdb),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'reason':_0x2cf7e1[_0x2004b2(0xe3)],'repairCommand':REPAIR_COMMAND};try{const _0x27b8e1=frontmatterValue(readFileSync(join(_0x2cf7e1[_0x2004b2(0xd4)],_0x2004b2(0xe2)),_0x2004b2(0xf2)),'version');if(_0x27b8e1!==_0x4d3238['skillVersion'])return{'state':_0x2004b2(0xcf),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'skillVersion':_0x27b8e1,'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'repairCommand':REPAIR_COMMAND};const _0xb8d888=listFiles(_0x2cf7e1[_0x2004b2(0xd4)]),_0x4bcaa0=digestFiles(_0x2cf7e1[_0x2004b2(0xd4)],_0xb8d888);return{'state':sameFiles(_0xb8d888,_0x4d3238['manifest'][_0x2004b2(0xd1)])&&_0x4bcaa0===_0x4d3238[_0x2004b2(0xce)]['digest']?_0x2004b2(0xeb):_0x2004b2(0xe1),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'skillVersion':_0x27b8e1,'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'digest':_0x4bcaa0,'repairCommand':REPAIR_COMMAND};}catch(_0x9466d6){return{'state':_0x2004b2(0xdb),'packageVersion':_0x4d3238[_0x2004b2(0xf1)],'installedPath':_0x2cf7e1[_0x2004b2(0xd4)],'reason':_0x9466d6 instanceof Error?_0x9466d6['message']:String(_0x9466d6),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5c189e,_0x4233dd,_0x1a7fc3,_0x8ce004){const _0x11052e=a264_0x51e9f1;return{'ok':![],'code':_0x5c189e,'packageVersion':_0x4233dd['packageVersion'],'skillVersion':_0x4233dd[_0x11052e(0xff)],'installedPath':_0x8ce004,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1a7fc3 instanceof Error?_0x1a7fc3[_0x11052e(0xe9)]:String(_0x1a7fc3)};}export function installBuiltinSkill(_0x57af7f={}){const _0x1b2b66=a264_0x51e9f1,_0x5d84dc=_0x57af7f['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x517858=_0x57af7f[_0x1b2b66(0x106)]??homedir();let _0xc50de2;try{_0xc50de2=readSource(_0x5d84dc);}catch(_0x4934f4){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x1b2b66(0xe4)},_0x4934f4);}const _0x220a4a=inspectBuiltinSkill({'packageRoot':_0x5d84dc,'home':_0x517858}),_0x5661cf=runNpxSkillsAddGlobal(_0x5d84dc,_0xc50de2[_0x1b2b66(0xf0)],{'stdio':_0x57af7f[_0x1b2b66(0xee)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x517858}});if(_0x5661cf[_0x1b2b66(0xd2)])return{'ok':!![],'packageVersion':_0xc50de2[_0x1b2b66(0xf1)],'skillVersion':_0xc50de2[_0x1b2b66(0xff)],'installedPath':_0x220a4a[_0x1b2b66(0x101)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5661cf['ok'])return failure(_0x1b2b66(0xfe),_0xc50de2,_0x5661cf['error']??_0x1b2b66(0x103)+_0x5661cf[_0x1b2b66(0xcc)]);const _0x234a41=inspectBuiltinSkill({'packageRoot':_0x5d84dc,'home':_0x517858});if(_0x234a41[_0x1b2b66(0xe8)]!=='current')return failure('VERIFY_FAILED',_0xc50de2,_0x234a41[_0x1b2b66(0xe3)]??'Installed\x20Skill\x20state\x20is\x20'+_0x234a41[_0x1b2b66(0xe8)],_0x234a41[_0x1b2b66(0x101)]);return{'ok':!![],'packageVersion':_0xc50de2['packageVersion'],'skillVersion':_0xc50de2[_0x1b2b66(0xff)],'installedPath':_0x234a41[_0x1b2b66(0x101)],'changed':_0x220a4a[_0x1b2b66(0xe8)]!==_0x1b2b66(0xeb),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a264_0x576255=a264_0xd0a8;(function(_0x3b6779,_0x15e372){const _0x4e18dc=a264_0xd0a8,_0x3ebb86=_0x3b6779();while(!![]){try{const _0xdd2e70=parseInt(_0x4e18dc(0x1d8))/0x1*(-parseInt(_0x4e18dc(0x1eb))/0x2)+parseInt(_0x4e18dc(0x1dd))/0x3*(parseInt(_0x4e18dc(0x1e3))/0x4)+parseInt(_0x4e18dc(0x1ea))/0x5*(-parseInt(_0x4e18dc(0x1e7))/0x6)+-parseInt(_0x4e18dc(0x1d5))/0x7*(parseInt(_0x4e18dc(0x1ac))/0x8)+-parseInt(_0x4e18dc(0x1e2))/0x9+-parseInt(_0x4e18dc(0x1dc))/0xa+parseInt(_0x4e18dc(0x1e8))/0xb*(parseInt(_0x4e18dc(0x1b9))/0xc);if(_0xdd2e70===_0x15e372)break;else _0x3ebb86['push'](_0x3ebb86['shift']());}catch(_0xb5f1fc){_0x3ebb86['push'](_0x3ebb86['shift']());}}}(a264_0x46a8,0x54964));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=a264_0x576255(0x1ae),SKILL_NAME=a264_0x576255(0x1ad);function frontmatterValue(_0x2bb81e,_0x30aebe){const _0x400490=a264_0x576255;return _0x2bb81e[_0x400490(0x1df)](new RegExp('^'+_0x30aebe+_0x400490(0x1b6),'m'))?.[0x1]?.[_0x400490(0x1d6)]()??'';}function listFiles(_0x247d4b,_0x52d9ca=_0x247d4b){return readdirSync(_0x52d9ca,{'withFileTypes':!![]})['flatMap'](_0x41ab24=>{const _0x124299=a264_0xd0a8,_0xc2d1af=join(_0x52d9ca,_0x41ab24[_0x124299(0x1c4)]),_0x2971e4=lstatSync(_0xc2d1af);if(_0x2971e4[_0x124299(0x1be)]())throw new Error(_0x124299(0x1cb)+_0xc2d1af);if(_0x2971e4[_0x124299(0x1b2)]())return listFiles(_0x247d4b,_0xc2d1af);if(!_0x2971e4['isFile']())throw new Error(_0x124299(0x1c0)+_0xc2d1af);return[relative(_0x247d4b,_0xc2d1af)[_0x124299(0x1c8)](sep)['join']('/')];})['sort']((_0x2cc9ad,_0x256ea2)=>_0x2cc9ad<_0x256ea2?-0x1:_0x2cc9ad>_0x256ea2?0x1:0x0);}function digestFiles(_0x54fe49,_0x145893){const _0x4cf6c6=a264_0x576255,_0x5f4b7e=createHash(_0x4cf6c6(0x1b0));for(const _0x439e56 of _0x145893){if(_0x439e56[_0x4cf6c6(0x1e6)]('/')||_0x439e56['split']('/')[_0x4cf6c6(0x1af)]('..')||_0x439e56[_0x4cf6c6(0x1af)]('\x5c'))throw new Error(_0x4cf6c6(0x1d1)+_0x439e56);_0x5f4b7e['update'](_0x439e56),_0x5f4b7e[_0x4cf6c6(0x1e1)]('\x00'),_0x5f4b7e[_0x4cf6c6(0x1e1)](readFileSync(join(_0x54fe49,..._0x439e56['split']('/')))),_0x5f4b7e[_0x4cf6c6(0x1e1)]('\x00');}return _0x5f4b7e[_0x4cf6c6(0x1e5)]('hex');}function sameFiles(_0x440519,_0x502e72){const _0x363008=a264_0x576255;return _0x440519['length']===_0x502e72[_0x363008(0x1c2)]&&_0x440519[_0x363008(0x1c9)]((_0x5a5dfe,_0x2f85e9)=>_0x5a5dfe===_0x502e72[_0x2f85e9]);}function readSource(_0x581bb0){const _0x3f1a3f=a264_0x576255,_0x133dbb=JSON[_0x3f1a3f(0x1cd)](readFileSync(join(_0x581bb0,'package.json'),_0x3f1a3f(0x1b3))),_0x5e3b4e=JSON['parse'](readFileSync(join(_0x581bb0,_0x3f1a3f(0x1b7),_0x3f1a3f(0x1e4)),_0x3f1a3f(0x1b3))),_0x3c52b2=join(_0x581bb0,_0x3f1a3f(0x1b7),SKILL_NAME),_0x2d4061=frontmatterValue(readFileSync(join(_0x3c52b2,'SKILL.md'),'utf8'),_0x3f1a3f(0x1de)),_0x51bd92=listFiles(_0x3c52b2);if(_0x5e3b4e[_0x3f1a3f(0x1c6)]!==0x1||_0x5e3b4e[_0x3f1a3f(0x1c4)]!==SKILL_NAME||!_0x133dbb[_0x3f1a3f(0x1de)]||_0x5e3b4e[_0x3f1a3f(0x1d9)]!==_0x133dbb[_0x3f1a3f(0x1de)]||_0x5e3b4e[_0x3f1a3f(0x1d2)]!==_0x133dbb[_0x3f1a3f(0x1de)]||_0x2d4061!==_0x133dbb[_0x3f1a3f(0x1de)]||!sameFiles(_0x51bd92,_0x5e3b4e[_0x3f1a3f(0x1ce)])||digestFiles(_0x3c52b2,_0x51bd92)!==_0x5e3b4e[_0x3f1a3f(0x1e5)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x133dbb['version'],'skillVersion':_0x2d4061,'root':_0x3c52b2,'manifest':_0x5e3b4e};}function installedSkillPath(_0x306e43){const _0x498b4e=a264_0x576255,_0x522284=resolveInstalledSkill(SKILL_NAME,{'home':_0x306e43});if(_0x522284['state']==='present')return{'state':_0x498b4e(0x1bc),'path':dirname(_0x522284[_0x498b4e(0x1ca)])};if(_0x522284[_0x498b4e(0x1c5)]===_0x498b4e(0x1e0))return{'state':'missing'};return{'state':'unverifiable','reason':_0x522284['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x157193,_0x390a98={}){const _0x51e2a3=a264_0x576255,_0x5c7f58=installedSkillPath(_0x390a98[_0x51e2a3(0x1b1)]??homedir());if(_0x5c7f58['state']==='missing')return{'state':_0x51e2a3(0x1e9),'expectedVersion':_0x157193,'repairCommand':REPAIR_COMMAND};if(_0x5c7f58[_0x51e2a3(0x1c5)]===_0x51e2a3(0x1c1))return{'state':'unverifiable','expectedVersion':_0x157193,'reason':_0x5c7f58[_0x51e2a3(0x1bb)],'repairCommand':REPAIR_COMMAND};try{const _0x69b967=frontmatterValue(readFileSync(join(_0x5c7f58[_0x51e2a3(0x1ca)],'SKILL.md'),_0x51e2a3(0x1b3)),_0x51e2a3(0x1de));return{'state':_0x69b967===_0x157193?_0x51e2a3(0x1c3):_0x51e2a3(0x1cf),'expectedVersion':_0x157193,'skillVersion':_0x69b967,'installedPath':_0x5c7f58['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x350b76){return{'state':_0x51e2a3(0x1c1),'expectedVersion':_0x157193,'installedPath':_0x5c7f58[_0x51e2a3(0x1ca)],'reason':_0x350b76 instanceof Error?_0x350b76[_0x51e2a3(0x1bf)]:String(_0x350b76),'repairCommand':REPAIR_COMMAND};}}function a264_0x46a8(){const _0x7e0957=['version_mismatch','INSTALL_FAILED','Unsafe\x20manifest\x20path:\x20','skillVersion','skills@latest\x20exited\x20','stdio','7063DCBjpE','trim','content_mismatch','1zIxUZi','packageVersion','error','SOURCE_INVALID','5316730ZUWPuT','481599tGINwl','version','match','absent','update','5954868osHSUP','4QOlODw','rabetbase.manifest.json','digest','startsWith','12MXgEfF','528tMqbhJ','missing','1064680ElatfD','922082drfJzC','1560xmLqLl','rabetbase','rabetbase\x20cli-skill\x20install','includes','sha256','home','isDirectory','utf8','packageRoot','Installed\x20Skill\x20state\x20is\x20',':\x5cs*(.+)$','skills','unknown','615732JSTpwA','skipped','reason','present','installedPath','isSymbolicLink','message','Unsupported\x20Skill\x20entry:\x20','unverifiable','length','current','name','state','schemaVersion','manifest','split','every','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','root','parse','files'];a264_0x46a8=function(){return _0x7e0957;};return a264_0x46a8();}export function inspectBuiltinSkill(_0xa08b25={}){const _0x12d0e4=a264_0x576255,_0x459dde=_0xa08b25[_0x12d0e4(0x1b4)]??DEFAULT_PACKAGE_ROOT;let _0x5c0eed;try{_0x5c0eed=readSource(_0x459dde);}catch(_0xdd18c9){return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x12d0e4(0x1b8),'reason':_0xdd18c9 instanceof Error?_0xdd18c9['message']:String(_0xdd18c9),'repairCommand':REPAIR_COMMAND};}const _0x1995e4=installedSkillPath(_0xa08b25[_0x12d0e4(0x1b1)]??homedir());if(_0x1995e4['state']==='missing')return{'state':_0x12d0e4(0x1e9),'packageVersion':_0x5c0eed['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1995e4[_0x12d0e4(0x1c5)]==='unverifiable')return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x5c0eed[_0x12d0e4(0x1d9)],'reason':_0x1995e4[_0x12d0e4(0x1bb)],'repairCommand':REPAIR_COMMAND};try{const _0x8df6e5=frontmatterValue(readFileSync(join(_0x1995e4[_0x12d0e4(0x1ca)],'SKILL.md'),'utf8'),_0x12d0e4(0x1de));if(_0x8df6e5!==_0x5c0eed['skillVersion'])return{'state':_0x12d0e4(0x1cf),'packageVersion':_0x5c0eed['packageVersion'],'skillVersion':_0x8df6e5,'installedPath':_0x1995e4[_0x12d0e4(0x1ca)],'repairCommand':REPAIR_COMMAND};const _0x39d9f4=listFiles(_0x1995e4[_0x12d0e4(0x1ca)]),_0x158d38=digestFiles(_0x1995e4[_0x12d0e4(0x1ca)],_0x39d9f4);return{'state':sameFiles(_0x39d9f4,_0x5c0eed[_0x12d0e4(0x1c7)]['files'])&&_0x158d38===_0x5c0eed[_0x12d0e4(0x1c7)][_0x12d0e4(0x1e5)]?_0x12d0e4(0x1c3):_0x12d0e4(0x1d7),'packageVersion':_0x5c0eed['packageVersion'],'skillVersion':_0x8df6e5,'installedPath':_0x1995e4['path'],'digest':_0x158d38,'repairCommand':REPAIR_COMMAND};}catch(_0x2961e0){return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x5c0eed[_0x12d0e4(0x1d9)],'installedPath':_0x1995e4[_0x12d0e4(0x1ca)],'reason':_0x2961e0 instanceof Error?_0x2961e0['message']:String(_0x2961e0),'repairCommand':REPAIR_COMMAND};}}function a264_0xd0a8(_0xfa210f,_0x26b007){_0xfa210f=_0xfa210f-0x1ac;const _0x46a85f=a264_0x46a8();let _0xd0a833=_0x46a85f[_0xfa210f];return _0xd0a833;}function failure(_0x48270d,_0x3ba372,_0x4bb3c3,_0x44ffbf){const _0x383d24=a264_0x576255;return{'ok':![],'code':_0x48270d,'packageVersion':_0x3ba372[_0x383d24(0x1d9)],'skillVersion':_0x3ba372[_0x383d24(0x1d2)],'installedPath':_0x44ffbf,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4bb3c3 instanceof Error?_0x4bb3c3['message']:String(_0x4bb3c3)};}export function installBuiltinSkill(_0xdb876a={}){const _0x5bd9c3=a264_0x576255,_0x52925b=_0xdb876a['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x20653c=_0xdb876a[_0x5bd9c3(0x1b1)]??homedir();let _0x4c704a;try{_0x4c704a=readSource(_0x52925b);}catch(_0x265db0){return failure(_0x5bd9c3(0x1db),{'packageVersion':_0x5bd9c3(0x1b8),'skillVersion':_0x5bd9c3(0x1b8)},_0x265db0);}const _0x2d670e=inspectBuiltinSkill({'packageRoot':_0x52925b,'home':_0x20653c}),_0x37df30=runNpxSkillsAddGlobal(_0x52925b,_0x4c704a[_0x5bd9c3(0x1cc)],{'stdio':_0xdb876a[_0x5bd9c3(0x1d4)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x20653c}});if(_0x37df30[_0x5bd9c3(0x1ba)])return{'ok':!![],'packageVersion':_0x4c704a[_0x5bd9c3(0x1d9)],'skillVersion':_0x4c704a['skillVersion'],'installedPath':_0x2d670e[_0x5bd9c3(0x1bd)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x37df30['ok'])return failure(_0x5bd9c3(0x1d0),_0x4c704a,_0x37df30[_0x5bd9c3(0x1da)]??_0x5bd9c3(0x1d3)+_0x37df30['status']);const _0x48e224=inspectBuiltinSkill({'packageRoot':_0x52925b,'home':_0x20653c});if(_0x48e224['state']!==_0x5bd9c3(0x1c3))return failure('VERIFY_FAILED',_0x4c704a,_0x48e224['reason']??_0x5bd9c3(0x1b5)+_0x48e224[_0x5bd9c3(0x1c5)],_0x48e224[_0x5bd9c3(0x1bd)]);return{'ok':!![],'packageVersion':_0x4c704a[_0x5bd9c3(0x1d9)],'skillVersion':_0x4c704a[_0x5bd9c3(0x1d2)],'installedPath':_0x48e224[_0x5bd9c3(0x1bd)],'changed':_0x2d670e[_0x5bd9c3(0x1c5)]!==_0x5bd9c3(0x1c3),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a265_0x254d(){const _0x47a606=['1232019vIyDGm','add','length','-$1','Error:\x20Unsupported\x20command:\x20','792478yNykUj','cwd','1895467wFrXOm','entries','264JMerJj','144IcVBgd','enable-bff-save','slice','argv','4534480JtWjjM','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','--help','10kvhrBG','Unsupported\x20command:\x20','exit','109488RFPqsw','push','includes','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','log','toLowerCase','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','dangerously-bff-save','2tnNwHM','Public\x20Open\x20Skill\x20source:\x20','replace','help','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','has','103940MknUEf','50014118lKKaCS','\x0aAvailable\x20commands:','from'];a265_0x254d=function(){return _0x47a606;};return a265_0x254d();}(function(_0x2773c7,_0x4b7b3c){const _0x89dd21=a265_0x876c,_0x295e3d=_0x2773c7();while(!![]){try{const _0x1e3976=parseInt(_0x89dd21(0x8f))/0x1*(-parseInt(_0x89dd21(0x9e))/0x2)+-parseInt(_0x89dd21(0xa3))/0x3*(parseInt(_0x89dd21(0x86))/0x4)+-parseInt(_0x89dd21(0x95))/0x5*(parseInt(_0x89dd21(0xa2))/0x6)+-parseInt(_0x89dd21(0xa0))/0x7+-parseInt(_0x89dd21(0x80))/0x8+-parseInt(_0x89dd21(0x99))/0x9*(-parseInt(_0x89dd21(0x83))/0xa)+parseInt(_0x89dd21(0x96))/0xb;if(_0x1e3976===_0x4b7b3c)break;else _0x295e3d['push'](_0x295e3d['shift']());}catch(_0x45dd09){_0x295e3d['push'](_0x295e3d['shift']());}}}(a265_0x254d,0xc96c8));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(_0x517efa){const _0x4640fb=a265_0x876c,_0x43a929=[];for(const [_0x2df720,_0x244bc8]of Object[_0x4640fb(0xa1)](_0x517efa)){if(_0x244bc8===!![]){const _0x4eb7b2=_0x2df720[_0x4640fb(0x91)](/([A-Z])/g,_0x4640fb(0x9c))[_0x4640fb(0x8c)]();_0x43a929['push'](_0x4eb7b2);}}return _0x43a929;}export function parseDynamicFlags(){const _0x5ce09a=a265_0x876c,_0x31aa89=[];for(let _0x356054=0x3;_0x356054<process[_0x5ce09a(0x7f)][_0x5ce09a(0x9b)];_0x356054++){const _0x18b125=process[_0x5ce09a(0x7f)][_0x356054];if(_0x18b125&&_0x18b125['startsWith']('--')){const _0xd42342=_0x18b125[_0x5ce09a(0x7e)](0x2);_0xd42342&&!_0xd42342[_0x5ce09a(0x88)]('=')&&_0x31aa89[_0x5ce09a(0x87)](_0xd42342);}}return _0x31aa89;}function a265_0x876c(_0x5924b4,_0x2230aa){_0x5924b4=_0x5924b4-0x7d;const _0x254d8f=a265_0x254d();let _0x876c40=_0x254d8f[_0x5924b4];return _0x876c40;}export function getAllProvidedFlags(_0x19be9a){const _0x57a431=a265_0x876c,_0x4a976d=camelCaseFlagsToKebab(_0x19be9a),_0x229787=parseDynamicFlags(),_0x4da105=new Set([..._0x4a976d,..._0x229787]);return Array[_0x57a431(0x98)](_0x4da105);}export function normalizeLegacyBffSaveFlags(_0x3db532){const _0x1496f9=a265_0x876c,_0xad7d8=new Set(_0x3db532);return _0xad7d8[_0x1496f9(0x94)](_0x1496f9(0x8e))&&_0xad7d8[_0x1496f9(0x9a)](_0x1496f9(0x7d)),Array[_0x1496f9(0x98)](_0xad7d8);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x36bac4,_0x284e51,_0x83518c){const _0x549d76=a265_0x876c;logger['setLogPath'](process[_0x549d76(0x9f)]());if(_0x83518c?.[_0x549d76(0x92)]||_0x36bac4===_0x549d76(0x82)){showHelp();return;}console[_0x549d76(0x89)](_0x549d76(0x9d)+(_0x36bac4||'(empty)')),console['log'](_0x549d76(0x97)),console[_0x549d76(0x8b)]('\x20\x20'+CLI_BIN_NAME+_0x549d76(0x8d)),console[_0x549d76(0x8b)](''),console[_0x549d76(0x8b)](_0x549d76(0x90)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x549d76(0x89)]('skill',_0x549d76(0x84)+_0x36bac4),process[_0x549d76(0x85)](0x1);}function showHelp(){const _0x50bf77=a265_0x876c;console[_0x50bf77(0x8b)](_0x50bf77(0x8a)+CLI_BIN_NAME+_0x50bf77(0x93)+SKILLS_INSTALL_COMMAND_LINE+_0x50bf77(0x81));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x53a05a=a266_0xc9aa;(function(_0x4bbcd4,_0x3c701a){const _0x9b005=a266_0xc9aa,_0x3c39a1=_0x4bbcd4();while(!![]){try{const _0x201831=-parseInt(_0x9b005(0x114))/0x1+-parseInt(_0x9b005(0x13c))/0x2*(parseInt(_0x9b005(0x13d))/0x3)+parseInt(_0x9b005(0x128))/0x4*(-parseInt(_0x9b005(0x11b))/0x5)+-parseInt(_0x9b005(0x118))/0x6+parseInt(_0x9b005(0x126))/0x7*(-parseInt(_0x9b005(0x13b))/0x8)+-parseInt(_0x9b005(0x136))/0x9+parseInt(_0x9b005(0x12f))/0xa;if(_0x201831===_0x3c701a)break;else _0x3c39a1['push'](_0x3c39a1['shift']());}catch(_0x363e42){_0x3c39a1['push'](_0x3c39a1['shift']());}}}(a266_0x4f2c,0x75fd4));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a266_0x53a05a(0x11e);function a266_0xc9aa(_0x5b96d4,_0x34cfb8){_0x5b96d4=_0x5b96d4-0x10a;const _0x4f2c59=a266_0x4f2c();let _0xc9aaab=_0x4f2c59[_0x5b96d4];return _0xc9aaab;}export const NPX_SKILLS_SUBCOMMAND_ADD=a266_0x53a05a(0x137);function a266_0x4f2c(){const _0x6c998f=['1669338ToRycG','add','unknown','Lovrabet','yes','1304UUJhus','1363300NbeVcl','3GxthHV','message','match','INSTALL_PARTIAL','--skill','filter','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','EPERM','stdout','unverifiable','error','expectedSkillName','SKILL_NOT_INSTALLED','inherit','468531Wmmffr','toString','!\x20Could\x20not\x20verify\x20\x22','presence','3554208agtwIH','push','\x22\x20install\x20state:\x20','261110QbfeLb','PERMISSION_DENIED','lovrabet/lovrabet-skill','skills@latest','EACCES','ENOENT','warn','CHILD_EXIT_NONZERO','CHILD_TERMINATED','\x20failed\x20target(s)','state','36904XQBhny','join','12WJWDjD','absent','npx','stdio','skill','signal','status','34273170yUHqVu','log','stderr','remove','pipe','code','reason'];a266_0x4f2c=function(){return _0x6c998f;};return a266_0x4f2c();}export const NPX_SKILLS_FLAG_SKILL=a266_0x53a05a(0x10a);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a266_0x53a05a(0x11d);export const DEFAULT_RABETBASE_SKILL_NAME=a266_0x53a05a(0x139);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x593044){switch(_0x593044['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x7da8c5){const _0x1bbe7e=a266_0x53a05a,_0x2f2bb9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x7da8c5&&_0x2f2bb9[_0x1bbe7e(0x119)](NPX_SKILLS_FLAG_SKILL,_0x7da8c5),_0x2f2bb9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a266_0x53a05a(0x12a),...buildNpxSkillsAddArgv()][a266_0x53a05a(0x127)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a266_0x53a05a(0x127)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3c885d,_0x36208d,_0x1a8ee7){return{'ok':![],'status':_0x36208d,'code':_0x3c885d,'error':'['+_0x3c885d+']\x20'+_0x1a8ee7};}function spawnOptions(_0x552ff5,_0x46c9ed){const _0x1f0957=a266_0x53a05a,_0x2996b3={...process.env};return delete _0x2996b3['npm_config_global'],delete _0x2996b3['NPM_CONFIG_GLOBAL'],{'cwd':_0x552ff5,'stdio':_0x46c9ed,'env':_0x2996b3,'shell':![],..._0x46c9ed===_0x1f0957(0x133)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4db4df,_0x214bae,_0x30f3cd,_0x24c072){const _0x5e8c56=a266_0x53a05a,_0x425637=[_0x4db4df[_0x5e8c56(0x10e)]?_0x4db4df[_0x5e8c56(0x10e)][_0x5e8c56(0x115)]():'',_0x4db4df[_0x5e8c56(0x131)]?_0x4db4df['stderr'][_0x5e8c56(0x115)]():''][_0x5e8c56(0x10b)](Boolean)[_0x5e8c56(0x127)]('\x0a')['trim']();_0x24c072!=='pipe'&&_0x425637&&console[_0x5e8c56(0x130)](_0x425637);if(_0x4db4df[_0x5e8c56(0x110)]){const _0x275f80=_0x4db4df['error'],_0x43861f=_0x275f80[_0x5e8c56(0x134)]===_0x5e8c56(0x120)?'NPX_NOT_FOUND':_0x275f80['code']===_0x5e8c56(0x10d)||_0x275f80[_0x5e8c56(0x134)]===_0x5e8c56(0x11f)?_0x5e8c56(0x11c):'SPAWN_FAILED';return failure(_0x43861f,_0x4db4df[_0x5e8c56(0x12e)],_0x275f80[_0x5e8c56(0x13e)]);}if(_0x4db4df[_0x5e8c56(0x12d)])return failure(_0x5e8c56(0x123),_0x4db4df['status'],'npx\x20terminated\x20by\x20signal\x20'+_0x4db4df[_0x5e8c56(0x12d)]);if(_0x4db4df[_0x5e8c56(0x12e)]!==0x0)return failure(_0x5e8c56(0x122),_0x4db4df['status'],_0x425637||'exit\x20'+(_0x4db4df[_0x5e8c56(0x12e)]??_0x5e8c56(0x138)));const _0x24d02e=_0x214bae?resolveInstalledSkill(_0x214bae,_0x30f3cd):undefined,_0x57c729=_0x425637[_0x5e8c56(0x13f)](/Failed to install\s+(\d+)/i);if(_0x57c729&&Number(_0x57c729[0x1])>0x0){const _0x578277='Installer\x20reported\x20'+_0x57c729[0x1]+_0x5e8c56(0x124)+(_0x425637?':\x0a'+_0x425637:'');if(_0x24d02e?.[_0x5e8c56(0x125)]==='present')return console[_0x5e8c56(0x121)]('!\x20'+_0x578277),{'ok':!![],'status':0x0};return failure(_0x5e8c56(0x140),0x0,_0x578277);}if(_0x24d02e){if(_0x24d02e[_0x5e8c56(0x125)]===_0x5e8c56(0x129))return failure(_0x5e8c56(0x112),0x0,'Skill\x20\x22'+_0x214bae+_0x5e8c56(0x10c)+_0x24d02e['checked']['join'](',\x20')+')');_0x24d02e['state']===_0x5e8c56(0x10f)&&console[_0x5e8c56(0x121)](_0x5e8c56(0x116)+_0x214bae+_0x5e8c56(0x11a)+_0x24d02e[_0x5e8c56(0x135)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4e8a56,_0x27f4c8){const _0xf2468f=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3a725e=_0x27f4c8?.[_0xf2468f(0x12b)]??_0xf2468f(0x113),_0x584ee0=resolveNpmBin(_0xf2468f(0x12a)),_0x26eb51=buildNpxSkillsAddArgv(_0x27f4c8?.['skill']),_0x70ae2f=['npx',..._0x26eb51][_0xf2468f(0x127)]('\x20');console[_0xf2468f(0x130)]('*\x20'+_0x70ae2f);const _0x14e953=spawnSync(_0x584ee0,_0x26eb51,spawnOptions(_0x4e8a56,_0x3a725e));return normalizeSpawnResult(_0x14e953,undefined,undefined,_0x3a725e);}export function runNpxSkillsRemove(_0x226c56,_0x95b26b,_0x3b1bf3=LEGACY_RABETBASE_SKILL_SOURCE){const _0x579c92=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x13af8e=_0x95b26b?.[_0x579c92(0x12b)]??'inherit',_0x309d3b=resolveNpmBin(_0x579c92(0x12a)),_0x409f45=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x579c92(0x132),_0x3b1bf3,NPX_SKILLS_FLAG_SKILL,_0x95b26b?.[_0x579c92(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x95b26b?.[_0x579c92(0x13a)]?['-y']:[]],_0x287d22=[_0x309d3b,..._0x409f45][_0x579c92(0x127)]('\x20');console[_0x579c92(0x130)]('*\x20'+_0x287d22);const _0x59fa31=spawnSync(_0x309d3b,_0x409f45,spawnOptions(_0x226c56,_0x13af8e));return normalizeSpawnResult(_0x59fa31,undefined,undefined,_0x13af8e);}export function runNpxSkillsAddGlobal(_0x27e761,_0x4ac489,_0xf3a9f){const _0x4b0740=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x456466=resolveNpmBin(_0x4b0740(0x12a)),_0x59e8b6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4ac489,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x59d362=[_0x4b0740(0x12a),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4ac489,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x59d362);const _0x33f77d=spawnSync(_0x456466,_0x59e8b6,spawnOptions(_0x27e761,_0x4b0740(0x133)));return normalizeSpawnResult(_0x33f77d,_0xf3a9f?.[_0x4b0740(0x111)]??resolveGlobalSkillName(_0x4ac489),_0xf3a9f?.[_0x4b0740(0x117)],_0xf3a9f?.[_0x4b0740(0x12b)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x38423b=a267_0xbb09;(function(_0xdee6b0,_0x496a42){const _0x5381d4=a267_0xbb09,_0x4e48d3=_0xdee6b0();while(!![]){try{const _0x89f62f=parseInt(_0x5381d4(0x1a0))/0x1*(parseInt(_0x5381d4(0x198))/0x2)+parseInt(_0x5381d4(0x1bb))/0x3*(-parseInt(_0x5381d4(0x1a5))/0x4)+-parseInt(_0x5381d4(0x1ac))/0x5+-parseInt(_0x5381d4(0x1b3))/0x6*(-parseInt(_0x5381d4(0x19f))/0x7)+-parseInt(_0x5381d4(0x199))/0x8*(parseInt(_0x5381d4(0x19d))/0x9)+parseInt(_0x5381d4(0x1b5))/0xa+parseInt(_0x5381d4(0x1ab))/0xb;if(_0x89f62f===_0x496a42)break;else _0x4e48d3['push'](_0x4e48d3['shift']());}catch(_0x5e47d5){_0x4e48d3['push'](_0x4e48d3['shift']());}}}(a267_0x2c4a,0xa5388));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a267_0x38423b(0x1a1),'.skill-lock.json');function a267_0x2c4a(){const _0x2e8276=['utf8','not-recorded','present','10029294XSfqJQ','4145975SVOjgQ','kind','join','reason','skills','\x20records\x20\x22','SKILL.md','6285030upMJdT','\x20has\x20no\x20skills\x20map','9143460hBCgdo','unusable','find','globalSkillsDirs','\x20is\x20unreadable:\x20','lockFile','6WAWXkd','absent','250MMQoDR','555848HBrUJr','message','home','recorded','162rAhzdt','version','7DMAFmt','5774qBTGYI','.agents','unverifiable','includes','parse','1677516uJjQhF','map','number'];a267_0x2c4a=function(){return _0x2e8276;};return a267_0x2c4a();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a267_0x38423b(0x1a1),'skills'),join('.claude',a267_0x38423b(0x1b0))];function a267_0xbb09(_0x4e6c60,_0x58bb3f){_0x4e6c60=_0x4e6c60-0x198;const _0x2c4ad4=a267_0x2c4a();let _0xbb0965=_0x2c4ad4[_0x4e6c60];return _0xbb0965;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x20dea2,_0xc3c32b){const _0x5c3890=a267_0x38423b;if(!existsSync(_0x20dea2))return{'kind':_0x5c3890(0x1a9)};let _0x3dde33;try{_0x3dde33=JSON[_0x5c3890(0x1a4)](readFileSync(_0x20dea2,_0x5c3890(0x1a8)));}catch(_0x24c4f5){return{'kind':_0x5c3890(0x1b6),'reason':_0x20dea2+_0x5c3890(0x1b9)+_0x24c4f5[_0x5c3890(0x19a)]};}const _0x30e43b=_0x3dde33;if(typeof _0x30e43b?.[_0x5c3890(0x19e)]!==_0x5c3890(0x1a7)||!SUPPORTED_LOCK_VERSIONS[_0x5c3890(0x1a3)](_0x30e43b[_0x5c3890(0x19e)]))return{'kind':_0x5c3890(0x1b6),'reason':_0x20dea2+'\x20uses\x20unsupported\x20version\x20'+String(_0x30e43b?.[_0x5c3890(0x19e)])};if(!_0x30e43b[_0x5c3890(0x1b0)]||typeof _0x30e43b[_0x5c3890(0x1b0)]!=='object')return{'kind':'unusable','reason':_0x20dea2+_0x5c3890(0x1b4)};return _0x30e43b[_0x5c3890(0x1b0)][_0xc3c32b]?{'kind':_0x5c3890(0x19c)}:{'kind':_0x5c3890(0x1a9)};}export function resolveInstalledSkill(_0x49df72,_0x2def3e){const _0x590c64=a267_0x38423b,_0x21718e=_0x2def3e?.[_0x590c64(0x19b)]??homedir(),_0x53961d=_0x2def3e?.[_0x590c64(0x1b8)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x590c64(0x1a6)](_0x222daa=>join(_0x21718e,_0x222daa)),_0x2dfb9d=_0x2def3e?.[_0x590c64(0x1ba)]??join(_0x21718e,SKILL_LOCK_RELATIVE_PATH),_0x52fe8d=_0x53961d['map'](_0x96eaa0=>join(_0x96eaa0,_0x49df72,_0x590c64(0x1b2))),_0x162c9c=_0x52fe8d[_0x590c64(0x1b7)](_0x418972=>existsSync(_0x418972));if(_0x162c9c)return{'state':_0x590c64(0x1aa),'path':_0x162c9c};const _0x26b5e4=readLockLookup(_0x2dfb9d,_0x49df72);if(_0x26b5e4[_0x590c64(0x1ad)]===_0x590c64(0x1b6))return{'state':_0x590c64(0x1a2),'reason':_0x26b5e4[_0x590c64(0x1af)]};if(_0x26b5e4[_0x590c64(0x1ad)]===_0x590c64(0x19c))return{'state':_0x590c64(0x1a2),'reason':_0x2dfb9d+_0x590c64(0x1b1)+_0x49df72+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x52fe8d[_0x590c64(0x1ae)](',\x20')+')')};return{'state':_0x590c64(0x1bc),'checked':_0x52fe8d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x466171,_0x285304){const _0x43e7f2=a268_0x1aaa,_0x5f4ed3=_0x466171();while(!![]){try{const _0xe2d1b7=parseInt(_0x43e7f2(0x10c))/0x1*(parseInt(_0x43e7f2(0x105))/0x2)+-parseInt(_0x43e7f2(0x107))/0x3+parseInt(_0x43e7f2(0x10b))/0x4*(parseInt(_0x43e7f2(0x10e))/0x5)+parseInt(_0x43e7f2(0x110))/0x6+parseInt(_0x43e7f2(0x106))/0x7*(-parseInt(_0x43e7f2(0x10a))/0x8)+-parseInt(_0x43e7f2(0x112))/0x9+parseInt(_0x43e7f2(0x103))/0xa;if(_0xe2d1b7===_0x285304)break;else _0x5f4ed3['push'](_0x5f4ed3['shift']());}catch(_0x9f31a2){_0x5f4ed3['push'](_0x5f4ed3['shift']());}}}(a268_0x20b9,0x33c9e));function a268_0x20b9(){const _0x5e7a79=['32635RdQrrZ','[REDACTED]','30RXqRYd','error','1786398jAwCKE','some','3534237SUsFPL','message','flags','4995510TlCNyA','rabetbase.command','2uZWcIT','19103IxUxrV','556236QRjAit','service','command','592mfpZBR','108172GtosPT'];a268_0x20b9=function(){return _0x5e7a79;};return a268_0x20b9();}function a268_0x1aaa(_0x24e203,_0x3a687c){_0x24e203=_0x24e203-0x101;const _0x20b9d0=a268_0x20b9();let _0x1aaa9e=_0x20b9d0[_0x24e203];return _0x1aaa9e;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4fae98){const _0x2f8d2b=a268_0x1aaa;return SENSITIVE_PATTERNS[_0x2f8d2b(0x111)](_0x18a36f=>_0x18a36f['test'](_0x4fae98));}function sanitizeFlags(_0x14c73c){const _0x289d86=a268_0x1aaa,_0x3e0c88={};for(const [_0x3c97ed,_0x90e52d]of Object['entries'](_0x14c73c)){isSensitiveKey(_0x3c97ed)?_0x3e0c88[_0x3c97ed]=_0x90e52d!=null&&_0x90e52d!==''?_0x289d86(0x10d):_0x90e52d:_0x3e0c88[_0x3c97ed]=_0x90e52d;}return _0x3e0c88;}export async function reportCommandTrace(_0x1310bc){const _0x5d4346=a268_0x1aaa;try{const _0x58eed=sanitizeFlags(_0x1310bc[_0x5d4346(0x102)]);await sendCliTraceLog({'spanName':_0x5d4346(0x104),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1310bc[_0x5d4346(0x108)],'command.name':_0x1310bc[_0x5d4346(0x109)],'command.flags':JSON['stringify'](_0x58eed),..._0x1310bc['durationMs']!=null?{'command.duration_ms':_0x1310bc['durationMs']}:{},..._0x1310bc[_0x5d4346(0x10f)]?{'command.error':_0x1310bc['error']instanceof Error?_0x1310bc[_0x5d4346(0x10f)][_0x5d4346(0x101)]:String(_0x1310bc[_0x5d4346(0x10f)])}:{}}});}catch{}}
|