@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.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/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/logs.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.d.ts +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/batch-design.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/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.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-restore.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/dataset/user-deleted-field-list.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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.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/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/api-architecture-upgrade.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/domain-routing-sync.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +4 -0
- 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.d.ts +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +14 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +1 -0
- 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/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.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/supported-flags.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/generated/official-routing.d.ts +15 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- package/lib/generated/routing-contract.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.d.ts +5 -0
- 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/guides/sql-creation-workflow.md +1 -1
- package/skills/rabetbase/guides/sql-mybatis.md +12 -8
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +8 -6
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x3e5ef4=a313_0x29b3;function a313_0x29b3(_0x136adc,_0x1bf2bf){_0x136adc=_0x136adc-0x14e;const _0x233978=a313_0x2339();let _0x29b3b4=_0x233978[_0x136adc];return _0x29b3b4;}(function(_0x1a5aa1,_0xb21515){const _0x169f0c=a313_0x29b3,_0x1ed37b=_0x1a5aa1();while(!![]){try{const _0x586f6e=parseInt(_0x169f0c(0x15b))/0x1+-parseInt(_0x169f0c(0x151))/0x2+parseInt(_0x169f0c(0x152))/0x3*(parseInt(_0x169f0c(0x160))/0x4)+parseInt(_0x169f0c(0x15c))/0x5*(-parseInt(_0x169f0c(0x156))/0x6)+parseInt(_0x169f0c(0x14f))/0x7*(parseInt(_0x169f0c(0x15d))/0x8)+parseInt(_0x169f0c(0x155))/0x9*(parseInt(_0x169f0c(0x14e))/0xa)+parseInt(_0x169f0c(0x159))/0xb*(-parseInt(_0x169f0c(0x161))/0xc);if(_0x586f6e===_0xb21515)break;else _0x1ed37b['push'](_0x1ed37b['shift']());}catch(_0x5da822){_0x1ed37b['push'](_0x1ed37b['shift']());}}}(a313_0x2339,0xca695));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a313_0x3e5ef4(0x154);export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x3e5ef4(0x15a);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a313_0x3e5ef4(0x15f),a313_0x3e5ef4(0x15e),a313_0x3e5ef4(0x150),a313_0x3e5ef4(0x153),'kbServiceDomain','appDomain','localDomain','certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x3e5ef4(0x162),'apiDomain',a313_0x3e5ef4(0x15e),a313_0x3e5ef4(0x150),a313_0x3e5ef4(0x153),'appDomain'];function a313_0x2339(){const _0x486bb1=['lovrabet','3786673FAyfBF','lovrabet-routing/v1','1417064ZvYmZP','245yDZoNN','32PMaevS','runtimeDomain','apiDomain','14876OBGonO','84BRbQDF','userDomain','90VCCpRp','1234583YMvcYB','skillDomain','505842nLDgWm','822PCGaHa','kbDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','1427859nPCuKx','131964CdDUKx','libraries'];a313_0x2339=function(){return _0x486bb1;};return a313_0x2339();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x3e5ef4(0x157),a313_0x3e5ef4(0x158)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x3e5ef4(0x157),a313_0x3e5ef4(0x158)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x231dda,_0x33218c){var _0x4d2792=a314_0x2e2f,_0xfbe043=_0x231dda();while(!![]){try{var _0x3d3004=-parseInt(_0x4d2792(0x9a))/0x1+parseInt(_0x4d2792(0x9c))/0x2+-parseInt(_0x4d2792(0xa0))/0x3+-parseInt(_0x4d2792(0x99))/0x4*(parseInt(_0x4d2792(0x9d))/0x5)+parseInt(_0x4d2792(0x95))/0x6+-parseInt(_0x4d2792(0x9f))/0x7+-parseInt(_0x4d2792(0x98))/0x8*(-parseInt(_0x4d2792(0x9e))/0x9);if(_0x3d3004===_0x33218c)break;else _0xfbe043['push'](_0xfbe043['shift']());}catch(_0x594b71){_0xfbe043['push'](_0xfbe043['shift']());}}}(a314_0x30fb,0xdc82c));function a314_0x2e2f(_0x438b34,_0x31829a){_0x438b34=_0x438b34-0x95;var _0x30fb59=a314_0x30fb();var _0x2e2f2b=_0x30fb59[_0x438b34];return _0x2e2f2b;}function a314_0x30fb(){var _0x5a4894=['523019rwWqAJ','28539LdaRkp','\x20--help','\x20\x20Use\x20','green','7822860sBbtjz','log','bold','8XNEstZ','8aJkfFS','700726evFWfc','\x20to\x20view\x20available\x20commands.','2283922WxBNmg','3477275IPyXCt','5699763dbBhiM'];a314_0x30fb=function(){return _0x5a4894;};return a314_0x30fb();}import a314_0x6127b5 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x186140=a314_0x2e2f;console[_0x186140(0x96)](),console[_0x186140(0x96)](a314_0x6127b5[_0x186140(0xa3)][_0x186140(0x97)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x186140(0x96)](),console[_0x186140(0x96)](_0x186140(0xa2)+a314_0x6127b5[_0x186140(0xa3)][_0x186140(0x97)](CLI_BIN_NAME+_0x186140(0xa1))+_0x186140(0x9b)),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a315_0xe24a(_0x138edc,_0x694323){_0x138edc=_0x138edc-0x170;const _0x591530=a315_0x5915();let _0xe24a20=_0x591530[_0x138edc];return _0xe24a20;}(function(_0x36d2b0,_0x383563){const _0x172b15=a315_0xe24a,_0x342d0d=_0x36d2b0();while(!![]){try{const _0x48215e=-parseInt(_0x172b15(0x171))/0x1+parseInt(_0x172b15(0x178))/0x2+-parseInt(_0x172b15(0x17b))/0x3*(-parseInt(_0x172b15(0x17f))/0x4)+-parseInt(_0x172b15(0x181))/0x5+parseInt(_0x172b15(0x182))/0x6+-parseInt(_0x172b15(0x17c))/0x7*(parseInt(_0x172b15(0x183))/0x8)+-parseInt(_0x172b15(0x17a))/0x9*(-parseInt(_0x172b15(0x170))/0xa);if(_0x48215e===_0x383563)break;else _0x342d0d['push'](_0x342d0d['shift']());}catch(_0x2bc4fe){_0x342d0d['push'](_0x342d0d['shift']());}}}(a315_0x5915,0x9afcd));function a315_0x5915(){const _0x1bb9db=['error','SOURCE_INVALID','already\x20current','Repair\x20with:\x20','installedPath','log','503858OGBFjL','code','666hORVOu','12QCFVtC','1393nCQAad','\x20at\x20','skillVersion','990364aNPFLR','\x20via\x20skills@latest','2698280VJialS','3174720wGOIsw','18624WkHOAw','repairCommand','135250XHemKG','1134506IIaRkG'];a315_0x5915=function(){return _0x1bb9db;};return a315_0x5915();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x247fa4={}){const _0x309de8=a315_0xe24a,_0xd9a3ea=installBuiltinSkill(_0x247fa4);if(_0xd9a3ea['ok']){const _0xc5d1d9=_0xd9a3ea['changed']?'installed':_0x309de8(0x174),_0x59db8a=_0xd9a3ea[_0x309de8(0x176)]?_0x309de8(0x17d)+_0xd9a3ea[_0x309de8(0x176)]:_0x309de8(0x180);return console[_0x309de8(0x177)]('Rabetbase\x20Built-in\x20Skill\x20'+_0xd9a3ea[_0x309de8(0x17e)]+'\x20'+_0xc5d1d9+_0x59db8a),_0xd9a3ea;}const _0x5b7343='[BUILTIN_SKILL_INSTALL_'+(_0xd9a3ea[_0x309de8(0x179)]??'FAILED')+']\x20'+(_0xd9a3ea[_0x309de8(0x172)]??'Installation\x20failed')+'.\x20'+(_0x309de8(0x175)+_0xd9a3ea[_0x309de8(0x184)]);if(_0xd9a3ea[_0x309de8(0x179)]===_0x309de8(0x173))throw new Error(_0x5b7343);return console['warn'](_0x5b7343),_0xd9a3ea;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc76bfc,_0x242c6d){const _0x355c04=a316_0x1423,_0x571b68=_0xc76bfc();while(!![]){try{const _0x3b0916=-parseInt(_0x355c04(0xc9))/0x1*(-parseInt(_0x355c04(0xbe))/0x2)+-parseInt(_0x355c04(0xcc))/0x3*(parseInt(_0x355c04(0xc7))/0x4)+-parseInt(_0x355c04(0xbb))/0x5+-parseInt(_0x355c04(0xcb))/0x6*(-parseInt(_0x355c04(0xbc))/0x7)+-parseInt(_0x355c04(0xca))/0x8+parseInt(_0x355c04(0xb9))/0x9+parseInt(_0x355c04(0xc8))/0xa*(parseInt(_0x355c04(0xc2))/0xb);if(_0x3b0916===_0x242c6d)break;else _0x571b68['push'](_0x571b68['shift']());}catch(_0x526d0a){_0x571b68['push'](_0x571b68['shift']());}}}(a316_0x3a93,0x6393e));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x45bf22,_0x593d9f,_0x141d76){const _0x5502b0=a316_0x1423,_0x8ebbfb=normalizeText(_0x45bf22[_0x5502b0(0xc6)],DESCRIPTION_MAX_LENGTH),_0x9f8509=_0x8ebbfb||normalizeText(defaultDescription(requireWriteRisk(_0x45bf22),_0x593d9f),DESCRIPTION_MAX_LENGTH);return{'operation':_0x593d9f,'risk':requireWriteRisk(_0x45bf22),'description':_0x9f8509,..._0x141d76?{'signal':_0x141d76}:{}};}function requireWriteRisk(_0x5d95f0){const _0x4d107d=a316_0x1423;if(_0x5d95f0['risk']===_0x4d107d(0xb7)||_0x5d95f0[_0x4d107d(0xc5)]===_0x4d107d(0xc3))return _0x5d95f0[_0x4d107d(0xc5)];throw new Error(_0x4d107d(0xc4));}function defaultDescription(_0x4601ce,_0x50451f){const _0x1f8e46=a316_0x1423;if(_0x4601ce===_0x1f8e46(0xc3))return _0x1f8e46(0xba)+_0x50451f+_0x1f8e46(0xc1);return'This\x20will\x20run\x20the\x20write\x20'+_0x50451f+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function a316_0x1423(_0x5810da,_0x74edce){_0x5810da=_0x5810da-0xb7;const _0x3a9382=a316_0x3a93();let _0x142331=_0x3a9382[_0x5810da];return _0x142331;}function a316_0x3a93(){const _0x9cb21e=['risk','confirmationDescription','160ZGzwgN','10fKFnFB','577867szikla','6424768UYWZbf','1596drRIDe','37209pjksTd','write','trim','5365917dmBBCH','This\x20will\x20run\x20the\x20high-risk\x20write\x20','1657375VvAJwh','7686FHYMGi','slice','2qaDRum','replace','string','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','6296543IzWLFn','high-risk-write','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.'];a316_0x3a93=function(){return _0x9cb21e;};return a316_0x3a93();}function normalizeText(_0x27e2c2,_0x3db308){const _0x15b908=a316_0x1423;if(typeof _0x27e2c2!==_0x15b908(0xc0))return'';return _0x27e2c2[_0x15b908(0xbf)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x15b908(0xb8)]()[_0x15b908(0xbd)](0x0,_0x3db308);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a317_0x9515(){const _0x4260cc=['service','4822909azDpzP','753NDqkiE','6PLHRRC','6953940ipepAL','44072LyEKGS','55egMpaH','2498utbsPS','object','177AIVJin','data','risk','1896110QNkeEm','198OrIlkF','20xKpswd','filter','rabetbase.write.completed','isArray','conflicts','split','8487984WQDdAp'];a317_0x9515=function(){return _0x4260cc;};return a317_0x9515();}(function(_0xd80a75,_0x1843b8){const _0x57bf6d=a317_0x56ca,_0x462d9d=_0xd80a75();while(!![]){try{const _0x185595=parseInt(_0x57bf6d(0x8e))/0x1*(-parseInt(_0x57bf6d(0x93))/0x2)+-parseInt(_0x57bf6d(0x95))/0x3*(parseInt(_0x57bf6d(0x91))/0x4)+-parseInt(_0x57bf6d(0x98))/0x5+parseInt(_0x57bf6d(0x8f))/0x6*(parseInt(_0x57bf6d(0x8d))/0x7)+-parseInt(_0x57bf6d(0x8b))/0x8+-parseInt(_0x57bf6d(0x99))/0x9*(parseInt(_0x57bf6d(0x9a))/0xa)+parseInt(_0x57bf6d(0x92))/0xb*(parseInt(_0x57bf6d(0x90))/0xc);if(_0x185595===_0x1843b8)break;else _0x462d9d['push'](_0x462d9d['shift']());}catch(_0x375c25){_0x462d9d['push'](_0x462d9d['shift']());}}}(a317_0x9515,0x87a77));export function canonicalRabetbaseOperation(_0x5eca07){const _0x550827=a317_0x56ca;return[_0x5eca07[_0x550827(0x8c)],..._0x5eca07['command']['trim']()[_0x550827(0x8a)](/\s+/)][_0x550827(0x9b)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x417a5d,_0x320b4b,_0x416288,_0x923432){const _0x395125=a317_0x56ca;if(_0x923432||_0x416288['ok']!==!![]||hasUnresolvedConflicts(_0x416288)||_0x417a5d['risk']!=='write'&&_0x417a5d[_0x395125(0x97)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x395125(0x87),'operation':_0x320b4b,'risk':_0x417a5d[_0x395125(0x97)]}}};}function a317_0x56ca(_0x4c0495,_0x43eb9b){_0x4c0495=_0x4c0495-0x87;const _0x951592=a317_0x9515();let _0x56ca72=_0x951592[_0x4c0495];return _0x56ca72;}function hasUnresolvedConflicts(_0x176d0){const _0x24e9e2=a317_0x56ca,_0x372065=_0x176d0[_0x24e9e2(0x96)];return Boolean(_0x372065&&typeof _0x372065===_0x24e9e2(0x94)&&!Array[_0x24e9e2(0x88)](_0x372065)&&Array['isArray'](_0x372065['conflicts'])&&_0x372065[_0x24e9e2(0x89)]['length']>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a318_0x5988(){const _0xedd559=['873027uxMOqu','result','2540732RtJYkY','88rQpJKJ','riskLevel','112434LIAOug','1983560lLSTYI','format','8vDPjfy','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','483jFsAXx','confirm','args','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','11908oUvTpV','signal','execute','dryRun','message','reason','stringify','6842045sjnrNB','rawFlags','present','risk','8751906oxMoED','write','data','143kecoLh','service','command'];a318_0x5988=function(){return _0xedd559;};return a318_0x5988();}(function(_0x511015,_0x5c846d){const _0x2dffb9=a318_0x44bb,_0x2fa00d=_0x511015();while(!![]){try{const _0x245daa=-parseInt(_0x2dffb9(0xd9))/0x1*(parseInt(_0x2dffb9(0xcb))/0x2)+parseInt(_0x2dffb9(0xdc))/0x3+parseInt(_0x2dffb9(0xde))/0x4+parseInt(_0x2dffb9(0xd2))/0x5+parseInt(_0x2dffb9(0xe1))/0x6*(-parseInt(_0x2dffb9(0xc6))/0x7)+parseInt(_0x2dffb9(0xe4))/0x8*(-parseInt(_0x2dffb9(0xd6))/0x9)+parseInt(_0x2dffb9(0xe2))/0xa*(parseInt(_0x2dffb9(0xdf))/0xb);if(_0x245daa===_0x5c846d)break;else _0x2fa00d['push'](_0x2fa00d['shift']());}catch(_0x531681){_0x2fa00d['push'](_0x2fa00d['shift']());}}}(a318_0x5988,0xbaaba));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a318_0x44bb(_0x3e0ff0,_0x12c69f){_0x3e0ff0=_0x3e0ff0-0xc6;const _0x598837=a318_0x5988();let _0x44bb25=_0x598837[_0x3e0ff0];return _0x44bb25;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3fb8b7,command:_0x478aec,risk:_0x205fb1,dryRun:_0x149768}){const _0x25d75c=a318_0x44bb;return JSON[_0x25d75c(0xd1)]({'ok':_0x3fb8b7['ok'],'command':_0x478aec,'risk':_0x205fb1,..._0x149768?{'dryRun':!![]}:{},..._0x3fb8b7[_0x25d75c(0xd8)]!==undefined?{'data':_0x3fb8b7[_0x25d75c(0xd8)]}:{},..._0x3fb8b7[_0x25d75c(0xcf)]?{'message':_0x3fb8b7[_0x25d75c(0xcf)]}:{}});}};export async function invokeRabetbase(_0x56a893,_0x43c314){const _0x22dc3a=a318_0x44bb;throwIfAborted(_0x43c314[_0x22dc3a(0xcc)]);const _0x5f0d21=await resolveRabetbaseInvocation(_0x56a893),_0x1497bd=canonicalRabetbaseOperation(_0x5f0d21[_0x22dc3a(0xca)]);return await confirmWriteBeforeQueue(_0x5f0d21[_0x22dc3a(0xca)],_0x5f0d21[_0x22dc3a(0xd3)],_0x1497bd,_0x43c314),runSerialized(async()=>{const _0x2e817c=_0x22dc3a,_0x36b8fc={};try{throwIfAborted(_0x43c314['signal']);const _0x4213ce=buildConfigFromFlags(_0x5f0d21['rawFlags']);!isRoutingRecoveryService(_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xda)])&&await initGlobalEnvironment(_0x4213ce);const _0x410ea0=createPipelineEnv(_0x4213ce,{..._0x5f0d21['rawFlags'],'yes':_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xd5)]===_0x2e817c(0xe6)?!![]:_0x5f0d21[_0x2e817c(0xd3)]['yes'],'nonInteractive':!![]},_0x5f0d21[_0x2e817c(0xc8)]);_0x410ea0['isNonInteractive']=!![],_0x410ea0[_0x2e817c(0xe0)]=_0x2e817c(0xe6);const _0x58f53c=withAbortSignal(_0x5f0d21[_0x2e817c(0xca)],_0x43c314['signal']),_0x18600e=createRabetbaseRunnerAdapter({'formatOutput'(_0x3925d7,_0x55af70){const _0x3200df=_0x2e817c;_0x36b8fc['result']=_0x3925d7,_0x36b8fc[_0x3200df(0xdb)]=_0x55af70[_0x3200df(0xdb)],_0x36b8fc[_0x3200df(0xd5)]=_0x55af70[_0x3200df(0xd5)],_0x36b8fc[_0x3200df(0xe3)]=_0x55af70[_0x3200df(0xe3)],_0x36b8fc[_0x3200df(0xce)]=_0x55af70['dryRun']===!![];},async 'confirmHighRisk'(){const _0x225752=_0x2e817c;throw new Error(_0x225752(0xc9));}});await runCommand(_0x58f53c,_0x410ea0,_0x18600e);if(!_0x36b8fc[_0x2e817c(0xdd)]||!_0x36b8fc[_0x2e817c(0xdb)]||!_0x36b8fc[_0x2e817c(0xd5)]||!_0x36b8fc[_0x2e817c(0xe3)])throw new Error(_0x2e817c(0xe5));const _0x1ae55b=_0x36b8fc['dryRun']===!![],_0x490ca7=_0x43c314['presentation']??defaultPresentation,_0x11f6ec={'result':_0x36b8fc['result'],'command':_0x36b8fc[_0x2e817c(0xdb)],'operation':_0x1497bd,'risk':_0x36b8fc[_0x2e817c(0xd5)],'format':_0x36b8fc[_0x2e817c(0xe3)],'dryRun':_0x1ae55b},_0x12a91f=createRabetbaseWriteMetadata(_0x5f0d21['definition'],_0x1497bd,_0x36b8fc[_0x2e817c(0xdd)],_0x1ae55b);let _0x3dde95;try{_0x3dde95=await _0x490ca7[_0x2e817c(0xd4)](_0x11f6ec);}catch(_0x49c3cc){if(!_0x12a91f||_0x490ca7===defaultPresentation)throw _0x49c3cc;_0x3dde95=await defaultPresentation[_0x2e817c(0xd4)](_0x11f6ec);}return{'operation':_0x1497bd,'risk':_0x36b8fc['risk'],'mode':_0x1ae55b?'dry-run':_0x2e817c(0xcd),'result':_0x36b8fc['result'],'output':_0x3dde95,..._0x12a91f?{'metadata':_0x12a91f}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5c0eef,_0x26ff0b,_0x20ca48,_0x4ba735){const _0x13488b=a318_0x44bb;if(_0x26ff0b[_0x13488b(0xce)]===!![]||_0x5c0eef[_0x13488b(0xd5)]!==_0x13488b(0xd7)&&_0x5c0eef['risk']!=='high-risk-write')return;await _0x4ba735['confirmation'][_0x13488b(0xc7)](buildRabetbaseConfirmationRequest(_0x5c0eef,_0x20ca48,_0x4ba735[_0x13488b(0xcc)]));}function withAbortSignal(_0x68b788,_0x42444e){return{..._0x68b788,async 'execute'(_0x50ff8b){const _0x4a9d11=a318_0x44bb;return throwIfAborted(_0x42444e),_0x68b788[_0x4a9d11(0xcd)]({..._0x50ff8b,'signal':_0x42444e});}};}function throwIfAborted(_0x5978ca){const _0x4b6095=a318_0x44bb;if(_0x5978ca?.['aborted'])throw _0x5978ca[_0x4b6095(0xd0)]instanceof Error?_0x5978ca[_0x4b6095(0xd0)]:new DOMException('Rabetbase\x20invocation\x20aborted.','AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a319_0x3e2f8e=a319_0x5438;function a319_0x5438(_0x5277a5,_0x47a8b1){_0x5277a5=_0x5277a5-0x71;const _0x1f9ac9=a319_0x1f9a();let _0x543857=_0x1f9ac9[_0x5277a5];return _0x543857;}(function(_0xbccfc6,_0x4a77e2){const _0x277f72=a319_0x5438,_0x1a994e=_0xbccfc6();while(!![]){try{const _0x42743c=parseInt(_0x277f72(0x7b))/0x1*(parseInt(_0x277f72(0x7d))/0x2)+-parseInt(_0x277f72(0x7c))/0x3*(parseInt(_0x277f72(0x77))/0x4)+parseInt(_0x277f72(0x74))/0x5+-parseInt(_0x277f72(0x76))/0x6+parseInt(_0x277f72(0x72))/0x7*(parseInt(_0x277f72(0x73))/0x8)+parseInt(_0x277f72(0x7a))/0x9+parseInt(_0x277f72(0x79))/0xa*(-parseInt(_0x277f72(0x71))/0xb);if(_0x42743c===_0x4a77e2)break;else _0x1a994e['push'](_0x1a994e['shift']());}catch(_0x34357b){_0x1a994e['push'](_0x1a994e['shift']());}}}(a319_0x1f9a,0x58f58));let tail=Promise[a319_0x3e2f8e(0x75)]();function a319_0x1f9a(){const _0x2353b9=['catch','1695110dRvHAc','5682213LHssMo','15851ehnXCP','12eFhIEk','38zhbwOc','22jIFbXt','9961TxHUWA','968lWbpHx','1375240GzXBiF','resolve','2218002QJxsSF','306692qpbJYx'];a319_0x1f9a=function(){return _0x2353b9;};return a319_0x1f9a();}export async function runSerialized(_0x1b06db){const _0x62bb62=a319_0x3e2f8e,_0x529052=tail;let _0x20bd13;tail=new Promise(_0x1be429=>{_0x20bd13=_0x1be429;}),await _0x529052[_0x62bb62(0x78)](()=>undefined);try{return await _0x1b06db();}finally{_0x20bd13();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56d6b4,_0x5a5473){const _0x113800=a320_0x3f77,_0x24e0f9=_0x56d6b4();while(!![]){try{const _0xf43521=parseInt(_0x113800(0xaa))/0x1*(parseInt(_0x113800(0xad))/0x2)+-parseInt(_0x113800(0xa0))/0x3+parseInt(_0x113800(0xa1))/0x4*(-parseInt(_0x113800(0xa6))/0x5)+-parseInt(_0x113800(0xae))/0x6*(parseInt(_0x113800(0xac))/0x7)+-parseInt(_0x113800(0xab))/0x8*(parseInt(_0x113800(0xa8))/0x9)+parseInt(_0x113800(0xa7))/0xa*(-parseInt(_0x113800(0xaf))/0xb)+parseInt(_0x113800(0xa5))/0xc;if(_0xf43521===_0x5a5473)break;else _0x24e0f9['push'](_0x24e0f9['shift']());}catch(_0x2acb6d){_0x24e0f9['push'](_0x24e0f9['shift']());}}}(a320_0x23c3,0xd2671));import a320_0x1ba1e2 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a320_0x23c3(){const _0x4a2305=['flags','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','input','5162622PnsNOC','4TuvkbV','wildcardDef','run','message','41458572iKbFWP','1484750TVuovI','20NHjEWv','3321873rgMHof','slice','2293KiqOGu','16tXywPr','7793849qoQdSy','1286yMOiOG','6SQwkee','1089253mzniTU','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','unknownCommand'];a320_0x23c3=function(){return _0x4a2305;};return a320_0x23c3();}import{buildMeowFlags}from'../constant/cli.js';function a320_0x3f77(_0x1c81bd,_0x111d50){_0x1c81bd=_0x1c81bd-0x9a;const _0x23c3ed=a320_0x23c3();let _0x3f7758=_0x23c3ed[_0x1c81bd];return _0x3f7758;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x26f2e8){const _0x35b144=a320_0x3f77,_0x14380c=a320_0x1ba1e2('',{'importMeta':import.meta,'argv':[..._0x26f2e8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x395bc2=[..._0x14380c[_0x35b144(0x9f)]],_0x4fa914=_0x14380c[_0x35b144(0x9c)],_0x55c6a9=_0x395bc2[0x0];if(!_0x55c6a9)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x144b72=resolveRemovedCommand(_0x55c6a9,_0x395bc2[0x1]);if(_0x144b72)throw CliErrors[_0x35b144(0x9e)](_0x144b72[_0x35b144(0xa4)],_0x144b72['hint']);if(_0x55c6a9===_0x35b144(0xa3))throw CliErrors[_0x35b144(0x9e)](_0x35b144(0xb0),_0x35b144(0x9d));if(!isKnownService(_0x55c6a9))throw CliErrors[_0x35b144(0x9b)](_0x395bc2['join']('\x20'));const _0x30e3e2=getServiceEntry(_0x55c6a9),_0x2c6644=_0x395bc2[0x1],_0x55b1f7=_0x2c6644||_0x30e3e2['defaultCommand'];if(!_0x55b1f7){if(_0x30e3e2['wildcardDef'])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[]};throw CliErrors[_0x35b144(0x9e)](_0x35b144(0x9a)+_0x55c6a9+'\x22.');}const _0x2977a5=findDefinition(_0x55c6a9,_0x55b1f7);if(_0x2977a5)return assertSupportedCommandFlags(_0x2977a5,_0x4fa914),{'definition':_0x2977a5,'rawFlags':_0x4fa914,'args':_0x395bc2[_0x35b144(0xa9)](0x2)};if(_0x30e3e2[_0x35b144(0xa2)])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[_0x55b1f7,..._0x395bc2['slice'](0x2)]};throw CliErrors[_0x35b144(0x9b)](_0x55c6a9+'\x20'+_0x55b1f7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a322_0x23601e=a322_0x55d4;(function(_0x357500,_0x37dbee){const _0x262824=a322_0x55d4,_0x392b77=_0x357500();while(!![]){try{const _0x28cdb9=parseInt(_0x262824(0x12e))/0x1+-parseInt(_0x262824(0x120))/0x2*(parseInt(_0x262824(0x138))/0x3)+parseInt(_0x262824(0x107))/0x4*(parseInt(_0x262824(0x143))/0x5)+parseInt(_0x262824(0x133))/0x6*(-parseInt(_0x262824(0x116))/0x7)+-parseInt(_0x262824(0x13b))/0x8*(-parseInt(_0x262824(0x10a))/0x9)+-parseInt(_0x262824(0x10b))/0xa*(-parseInt(_0x262824(0x119))/0xb)+-parseInt(_0x262824(0x134))/0xc;if(_0x28cdb9===_0x37dbee)break;else _0x392b77['push'](_0x392b77['shift']());}catch(_0x46e0ae){_0x392b77['push'](_0x392b77['shift']());}}}(a322_0x39f9,0x93763));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';function a322_0x39f9(){const _0x491a9a=['name','3WmAleB','message','sort','28936etWNRj','Unsupported\x20Skill\x20entry:\x20','files','present','packageVersion','schemaVersion','unknown','hex','30yQJLZl','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','183252AEmxKn','flatMap','unverifiable','1593NjqCEH','2770xqzmtf','state','skills','content_mismatch','VERIFY_FAILED','root','INSTALL_FAILED','installedPath','parse','isDirectory','version_mismatch','14qZYtQS','version','every','46981hDSxIB','absent','rabetbase.manifest.json','isSymbolicLink','pipe','Installed\x20Skill\x20state\x20is\x20','startsWith','1233858EWDrYn','rabetbase','digest','Unsafe\x20manifest\x20path:\x20','reason','update','utf8','missing','skillVersion','SKILL.md','includes','isFile','split','home','157503VXmjfo','path','current','packageRoot','manifest','120606atweJR','11934276yTfTpi','rabetbase\x20cli-skill\x20install','match'];a322_0x39f9=function(){return _0x491a9a;};return a322_0x39f9();}import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a322_0x55d4(_0xf2fc17,_0x4f6927){_0xf2fc17=_0xf2fc17-0x105;const _0x39f9d3=a322_0x39f9();let _0x55d4b7=_0x39f9d3[_0xf2fc17];return _0x55d4b7;}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a322_0x23601e(0x135),SKILL_NAME=a322_0x23601e(0x121);function frontmatterValue(_0x4743d7,_0x147761){const _0x2a318e=a322_0x23601e;return _0x4743d7[_0x2a318e(0x136)](new RegExp('^'+_0x147761+':\x5cs*(.+)$','m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x15e41b,_0xe7823f=_0x15e41b){const _0x487b06=a322_0x23601e;return readdirSync(_0xe7823f,{'withFileTypes':!![]})[_0x487b06(0x108)](_0x24798d=>{const _0x2230e8=_0x487b06,_0x7af8f9=join(_0xe7823f,_0x24798d[_0x2230e8(0x137)]),_0xbede21=lstatSync(_0x7af8f9);if(_0xbede21[_0x2230e8(0x11c)]())throw new Error(_0x2230e8(0x106)+_0x7af8f9);if(_0xbede21[_0x2230e8(0x114)]())return listFiles(_0x15e41b,_0x7af8f9);if(!_0xbede21[_0x2230e8(0x12b)]())throw new Error(_0x2230e8(0x13c)+_0x7af8f9);return[relative(_0x15e41b,_0x7af8f9)['split'](sep)['join']('/')];})[_0x487b06(0x13a)]((_0x4af0a7,_0x5e4efa)=>_0x4af0a7<_0x5e4efa?-0x1:_0x4af0a7>_0x5e4efa?0x1:0x0);}function digestFiles(_0x40afd7,_0x4f29e9){const _0x140315=a322_0x23601e,_0x5ea64a=createHash('sha256');for(const _0x56b485 of _0x4f29e9){if(_0x56b485[_0x140315(0x11f)]('/')||_0x56b485[_0x140315(0x12c)]('/')[_0x140315(0x12a)]('..')||_0x56b485[_0x140315(0x12a)]('\x5c'))throw new Error(_0x140315(0x123)+_0x56b485);_0x5ea64a['update'](_0x56b485),_0x5ea64a[_0x140315(0x125)]('\x00'),_0x5ea64a['update'](readFileSync(join(_0x40afd7,..._0x56b485[_0x140315(0x12c)]('/')))),_0x5ea64a['update']('\x00');}return _0x5ea64a[_0x140315(0x122)](_0x140315(0x142));}function sameFiles(_0x18a2d9,_0x280b07){const _0x5ac75a=a322_0x23601e;return _0x18a2d9['length']===_0x280b07['length']&&_0x18a2d9[_0x5ac75a(0x118)]((_0x5ba9f7,_0x5c88a6)=>_0x5ba9f7===_0x280b07[_0x5c88a6]);}function readSource(_0x43208e){const _0x57ed2a=a322_0x23601e,_0x1eabe2=JSON['parse'](readFileSync(join(_0x43208e,'package.json'),'utf8')),_0x152681=JSON[_0x57ed2a(0x113)](readFileSync(join(_0x43208e,_0x57ed2a(0x10d),_0x57ed2a(0x11b)),_0x57ed2a(0x126))),_0x21b7ac=join(_0x43208e,'skills',SKILL_NAME),_0x175e0=frontmatterValue(readFileSync(join(_0x21b7ac,_0x57ed2a(0x129)),_0x57ed2a(0x126)),_0x57ed2a(0x117)),_0x50c3dc=listFiles(_0x21b7ac);if(_0x152681[_0x57ed2a(0x140)]!==0x1||_0x152681[_0x57ed2a(0x137)]!==SKILL_NAME||!_0x1eabe2[_0x57ed2a(0x117)]||_0x152681[_0x57ed2a(0x13f)]!==_0x1eabe2[_0x57ed2a(0x117)]||_0x152681[_0x57ed2a(0x128)]!==_0x1eabe2[_0x57ed2a(0x117)]||_0x175e0!==_0x1eabe2[_0x57ed2a(0x117)]||!sameFiles(_0x50c3dc,_0x152681[_0x57ed2a(0x13d)])||digestFiles(_0x21b7ac,_0x50c3dc)!==_0x152681[_0x57ed2a(0x122)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x1eabe2[_0x57ed2a(0x117)],'skillVersion':_0x175e0,'root':_0x21b7ac,'manifest':_0x152681};}function installedSkillPath(_0x1d8267){const _0x2c401c=a322_0x23601e,_0x1782ee=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d8267});if(_0x1782ee[_0x2c401c(0x10c)]===_0x2c401c(0x13e))return{'state':_0x2c401c(0x13e),'path':dirname(_0x1782ee[_0x2c401c(0x12f)])};if(_0x1782ee['state']===_0x2c401c(0x11a))return{'state':_0x2c401c(0x127)};return{'state':_0x2c401c(0x109),'reason':_0x1782ee[_0x2c401c(0x124)]};}export function inspectInstalledBuiltinSkillVersion(_0x466076,_0x222299={}){const _0xf2c60f=a322_0x23601e,_0x57736c=installedSkillPath(_0x222299[_0xf2c60f(0x12d)]??homedir());if(_0x57736c[_0xf2c60f(0x10c)]==='missing')return{'state':'missing','expectedVersion':_0x466076,'repairCommand':REPAIR_COMMAND};if(_0x57736c[_0xf2c60f(0x10c)]===_0xf2c60f(0x109))return{'state':'unverifiable','expectedVersion':_0x466076,'reason':_0x57736c[_0xf2c60f(0x124)],'repairCommand':REPAIR_COMMAND};try{const _0x200b7=frontmatterValue(readFileSync(join(_0x57736c['path'],_0xf2c60f(0x129)),_0xf2c60f(0x126)),_0xf2c60f(0x117));return{'state':_0x200b7===_0x466076?_0xf2c60f(0x130):'version_mismatch','expectedVersion':_0x466076,'skillVersion':_0x200b7,'installedPath':_0x57736c['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x18a560){return{'state':_0xf2c60f(0x109),'expectedVersion':_0x466076,'installedPath':_0x57736c[_0xf2c60f(0x12f)],'reason':_0x18a560 instanceof Error?_0x18a560['message']:String(_0x18a560),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5c87e3={}){const _0x2fa67c=a322_0x23601e,_0x36cf2f=_0x5c87e3[_0x2fa67c(0x131)]??DEFAULT_PACKAGE_ROOT;let _0x5e951a;try{_0x5e951a=readSource(_0x36cf2f);}catch(_0x1135f9){return{'state':_0x2fa67c(0x109),'packageVersion':_0x2fa67c(0x141),'reason':_0x1135f9 instanceof Error?_0x1135f9[_0x2fa67c(0x139)]:String(_0x1135f9),'repairCommand':REPAIR_COMMAND};}const _0x3e403e=installedSkillPath(_0x5c87e3[_0x2fa67c(0x12d)]??homedir());if(_0x3e403e[_0x2fa67c(0x10c)]===_0x2fa67c(0x127))return{'state':_0x2fa67c(0x127),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'repairCommand':REPAIR_COMMAND};if(_0x3e403e[_0x2fa67c(0x10c)]==='unverifiable')return{'state':_0x2fa67c(0x109),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'reason':_0x3e403e[_0x2fa67c(0x124)],'repairCommand':REPAIR_COMMAND};try{const _0x554680=frontmatterValue(readFileSync(join(_0x3e403e[_0x2fa67c(0x12f)],_0x2fa67c(0x129)),_0x2fa67c(0x126)),_0x2fa67c(0x117));if(_0x554680!==_0x5e951a['skillVersion'])return{'state':_0x2fa67c(0x115),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'skillVersion':_0x554680,'installedPath':_0x3e403e[_0x2fa67c(0x12f)],'repairCommand':REPAIR_COMMAND};const _0x2a7a6c=listFiles(_0x3e403e[_0x2fa67c(0x12f)]),_0x2e21f0=digestFiles(_0x3e403e[_0x2fa67c(0x12f)],_0x2a7a6c);return{'state':sameFiles(_0x2a7a6c,_0x5e951a[_0x2fa67c(0x132)][_0x2fa67c(0x13d)])&&_0x2e21f0===_0x5e951a['manifest'][_0x2fa67c(0x122)]?_0x2fa67c(0x130):_0x2fa67c(0x10e),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'skillVersion':_0x554680,'installedPath':_0x3e403e['path'],'digest':_0x2e21f0,'repairCommand':REPAIR_COMMAND};}catch(_0x292182){return{'state':'unverifiable','packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'installedPath':_0x3e403e[_0x2fa67c(0x12f)],'reason':_0x292182 instanceof Error?_0x292182[_0x2fa67c(0x139)]:String(_0x292182),'repairCommand':REPAIR_COMMAND};}}function failure(_0x49651b,_0x12f33b,_0xb16d92,_0x2fab20){const _0x2bc602=a322_0x23601e;return{'ok':![],'code':_0x49651b,'packageVersion':_0x12f33b[_0x2bc602(0x13f)],'skillVersion':_0x12f33b['skillVersion'],'installedPath':_0x2fab20,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0xb16d92 instanceof Error?_0xb16d92['message']:String(_0xb16d92)};}export function installBuiltinSkill(_0x53175b={}){const _0x333b45=a322_0x23601e,_0x133bc5=_0x53175b['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x2738bb=_0x53175b[_0x333b45(0x12d)]??homedir();let _0x3b3061;try{_0x3b3061=readSource(_0x133bc5);}catch(_0x38d06a){return failure('SOURCE_INVALID',{'packageVersion':_0x333b45(0x141),'skillVersion':_0x333b45(0x141)},_0x38d06a);}const _0x4d23b1=inspectBuiltinSkill({'packageRoot':_0x133bc5,'home':_0x2738bb}),_0x52038a=runNpxSkillsAddGlobal(_0x133bc5,_0x3b3061[_0x333b45(0x110)],{'stdio':_0x53175b['stdio']??_0x333b45(0x11d),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x2738bb}});if(_0x52038a['skipped'])return{'ok':!![],'packageVersion':_0x3b3061[_0x333b45(0x13f)],'skillVersion':_0x3b3061[_0x333b45(0x128)],'installedPath':_0x4d23b1[_0x333b45(0x112)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x52038a['ok'])return failure(_0x333b45(0x111),_0x3b3061,_0x52038a['error']??'skills@latest\x20exited\x20'+_0x52038a[_0x333b45(0x105)]);const _0x1630d2=inspectBuiltinSkill({'packageRoot':_0x133bc5,'home':_0x2738bb});if(_0x1630d2[_0x333b45(0x10c)]!==_0x333b45(0x130))return failure(_0x333b45(0x10f),_0x3b3061,_0x1630d2[_0x333b45(0x124)]??_0x333b45(0x11e)+_0x1630d2['state'],_0x1630d2['installedPath']);return{'ok':!![],'packageVersion':_0x3b3061['packageVersion'],'skillVersion':_0x3b3061[_0x333b45(0x128)],'installedPath':_0x1630d2['installedPath'],'changed':_0x4d23b1[_0x333b45(0x10c)]!=='current','repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a322_0x136cdc=a322_0x4c44;(function(_0xf423bd,_0x50fa56){const _0x5cc27a=a322_0x4c44,_0x15fc49=_0xf423bd();while(!![]){try{const _0x45d02c=-parseInt(_0x5cc27a(0x1dc))/0x1+parseInt(_0x5cc27a(0x1b3))/0x2+-parseInt(_0x5cc27a(0x1b0))/0x3+parseInt(_0x5cc27a(0x1ac))/0x4+-parseInt(_0x5cc27a(0x1a3))/0x5*(parseInt(_0x5cc27a(0x1c8))/0x6)+parseInt(_0x5cc27a(0x1b6))/0x7*(parseInt(_0x5cc27a(0x1ce))/0x8)+parseInt(_0x5cc27a(0x1a7))/0x9*(parseInt(_0x5cc27a(0x1a4))/0xa);if(_0x45d02c===_0x50fa56)break;else _0x15fc49['push'](_0x15fc49['shift']());}catch(_0x588bed){_0x15fc49['push'](_0x15fc49['shift']());}}}(a322_0x4990,0x39e6d));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{debuglog}from'node:util';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=a322_0x136cdc(0x1e2),SKILL_NAME=a322_0x136cdc(0x1c9),debug=debuglog(a322_0x136cdc(0x1e7));function frontmatterValue(_0x293df9,_0x4348a5){const _0x229b18=a322_0x136cdc;return _0x293df9['match'](new RegExp('^'+_0x4348a5+_0x229b18(0x1be),'m'))?.[0x1]?.[_0x229b18(0x1c2)]()??'';}function listFiles(_0x433487,_0x15135c=_0x433487){const _0x24dbc9=a322_0x136cdc;return readdirSync(_0x15135c,{'withFileTypes':!![]})[_0x24dbc9(0x1c4)](_0xa3c2bb=>{const _0xc75865=_0x24dbc9,_0x5cb35a=join(_0x15135c,_0xa3c2bb[_0xc75865(0x1e5)]),_0x352540=lstatSync(_0x5cb35a);if(_0x352540['isSymbolicLink']())throw new Error(_0xc75865(0x1d2)+_0x5cb35a);if(_0x352540['isDirectory']())return listFiles(_0x433487,_0x5cb35a);if(!_0x352540[_0xc75865(0x1cf)]())throw new Error(_0xc75865(0x1cc)+_0x5cb35a);return[relative(_0x433487,_0x5cb35a)['split'](sep)[_0xc75865(0x1bd)]('/')];})[_0x24dbc9(0x1d1)]((_0x3e6def,_0x530a0d)=>_0x3e6def<_0x530a0d?-0x1:_0x3e6def>_0x530a0d?0x1:0x0);}function digestFiles(_0xb52023,_0x4afb91){const _0x50cc73=a322_0x136cdc,_0x361f62=createHash(_0x50cc73(0x1db));for(const _0x37dbed of _0x4afb91){if(_0x37dbed[_0x50cc73(0x1da)]('/')||_0x37dbed[_0x50cc73(0x1bb)]('/')['includes']('..')||_0x37dbed[_0x50cc73(0x1a0)]('\x5c'))throw new Error(_0x50cc73(0x1b1)+_0x37dbed);_0x361f62[_0x50cc73(0x1a8)](_0x37dbed),_0x361f62[_0x50cc73(0x1a8)]('\x00'),_0x361f62[_0x50cc73(0x1a8)](readFileSync(join(_0xb52023,..._0x37dbed['split']('/')))),_0x361f62[_0x50cc73(0x1a8)]('\x00');}return _0x361f62['digest']('hex');}function sameFiles(_0x75b41f,_0x32ba90){const _0x476473=a322_0x136cdc;return _0x75b41f[_0x476473(0x1b7)]===_0x32ba90[_0x476473(0x1b7)]&&_0x75b41f['every']((_0x508bb9,_0x1d64b6)=>_0x508bb9===_0x32ba90[_0x1d64b6]);}function readSource(_0x16befb){const _0x4e5bea=a322_0x136cdc,_0x501380=JSON[_0x4e5bea(0x1b4)](readFileSync(join(_0x16befb,_0x4e5bea(0x1d9)),_0x4e5bea(0x1e9))),_0x329f65=JSON['parse'](readFileSync(join(_0x16befb,_0x4e5bea(0x1ca),'rabetbase.manifest.json'),'utf8')),_0x47612b=join(_0x16befb,_0x4e5bea(0x1ca),SKILL_NAME),_0x5df50d=frontmatterValue(readFileSync(join(_0x47612b,_0x4e5bea(0x1a1)),_0x4e5bea(0x1e9)),'version'),_0x58d3af=listFiles(_0x47612b);if(_0x329f65[_0x4e5bea(0x1b5)]!==0x1||_0x329f65['name']!==SKILL_NAME||!_0x501380[_0x4e5bea(0x1aa)]||_0x329f65[_0x4e5bea(0x1de)]!==_0x501380[_0x4e5bea(0x1aa)]||_0x329f65[_0x4e5bea(0x1ae)]!==_0x501380[_0x4e5bea(0x1aa)]||_0x5df50d!==_0x501380[_0x4e5bea(0x1aa)]||!sameFiles(_0x58d3af,_0x329f65['files'])||digestFiles(_0x47612b,_0x58d3af)!==_0x329f65['digest'])throw new Error(_0x4e5bea(0x1df));return{'packageVersion':_0x501380['version'],'skillVersion':_0x5df50d,'root':_0x47612b,'manifest':_0x329f65};}function installedSkillPath(_0x511d1e){const _0x50b366=a322_0x136cdc,_0x2fd63f=resolveInstalledSkill(SKILL_NAME,{'home':_0x511d1e});if(_0x2fd63f[_0x50b366(0x1d7)]===_0x50b366(0x1e1))return{'state':_0x50b366(0x1e1),'path':dirname(_0x2fd63f['path'])};if(_0x2fd63f[_0x50b366(0x1d7)]===_0x50b366(0x1bf))return{'state':'missing'};return{'state':_0x50b366(0x1d3),'reason':_0x2fd63f[_0x50b366(0x1ad)]};}export function inspectInstalledBuiltinSkillVersion(_0x3b2e1a,_0x4e9599={}){const _0x49a614=a322_0x136cdc,_0x333d20=installedSkillPath(_0x4e9599[_0x49a614(0x1e3)]??homedir());if(_0x333d20[_0x49a614(0x1d7)]==='missing')return{'state':_0x49a614(0x1b2),'expectedVersion':_0x3b2e1a,'repairCommand':REPAIR_COMMAND};if(_0x333d20[_0x49a614(0x1d7)]===_0x49a614(0x1d3))return{'state':_0x49a614(0x1d3),'expectedVersion':_0x3b2e1a,'reason':_0x333d20['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1932a3=frontmatterValue(readFileSync(join(_0x333d20['path'],_0x49a614(0x1a1)),_0x49a614(0x1e9)),_0x49a614(0x1aa));return{'state':_0x1932a3===_0x3b2e1a?_0x49a614(0x1c7):_0x49a614(0x1c0),'expectedVersion':_0x3b2e1a,'skillVersion':_0x1932a3,'installedPath':_0x333d20[_0x49a614(0x1c5)],'repairCommand':REPAIR_COMMAND};}catch(_0x53b1d1){return{'state':_0x49a614(0x1d3),'expectedVersion':_0x3b2e1a,'installedPath':_0x333d20[_0x49a614(0x1c5)],'reason':_0x53b1d1 instanceof Error?_0x53b1d1['message']:String(_0x53b1d1),'repairCommand':REPAIR_COMMAND};}}function a322_0x4990(){const _0xbe1730=['pipe','15WCbDXv','51620PTSSzr','error','count','279aAhbIE','update','unknown','version','status','953044znbxEv','reason','skillVersion','message','1203579cJHKNu','Unsafe\x20manifest\x20path:\x20','missing','370504SkohzF','parse','schemaVersion','2953517fkcHFb','length','CLI\x20Built-in\x20Skill\x20','\x20verified;\x20','SOURCE_INVALID','split','partialFailure','join',':\x5cs*(.+)$','absent','version_mismatch','files','trim','VERIFY_FAILED','flatMap','path','skipped','current','53796VyhOGd','rabetbase','skills','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','Unsupported\x20Skill\x20entry:\x20','manifest','8YRLoZI','isFile','digest','sort','Symbolic\x20link\x20is\x20not\x20allowed:\x20','unverifiable','packageRoot','content_mismatch','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','state','Installed\x20Skill\x20state\x20is\x20','package.json','startsWith','sha256','340210ZRmVQa','root','packageVersion','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','output','present','rabetbase\x20cli-skill\x20install','home','INSTALL_FAILED','name','installedPath','rabetbase-skills','log','utf8','includes','SKILL.md'];a322_0x4990=function(){return _0xbe1730;};return a322_0x4990();}export function inspectBuiltinSkill(_0x5bfe34={}){const _0x201755=a322_0x136cdc,_0x2e4249=_0x5bfe34[_0x201755(0x1d4)]??DEFAULT_PACKAGE_ROOT;let _0x6293c7;try{_0x6293c7=readSource(_0x2e4249);}catch(_0x156739){return{'state':_0x201755(0x1d3),'packageVersion':'unknown','reason':_0x156739 instanceof Error?_0x156739['message']:String(_0x156739),'repairCommand':REPAIR_COMMAND};}const _0x3f387e=installedSkillPath(_0x5bfe34[_0x201755(0x1e3)]??homedir());if(_0x3f387e[_0x201755(0x1d7)]===_0x201755(0x1b2))return{'state':_0x201755(0x1b2),'packageVersion':_0x6293c7[_0x201755(0x1de)],'repairCommand':REPAIR_COMMAND};if(_0x3f387e['state']===_0x201755(0x1d3))return{'state':_0x201755(0x1d3),'packageVersion':_0x6293c7[_0x201755(0x1de)],'reason':_0x3f387e[_0x201755(0x1ad)],'repairCommand':REPAIR_COMMAND};try{const _0x36434d=frontmatterValue(readFileSync(join(_0x3f387e['path'],'SKILL.md'),_0x201755(0x1e9)),_0x201755(0x1aa));if(_0x36434d!==_0x6293c7['skillVersion'])return{'state':_0x201755(0x1c0),'packageVersion':_0x6293c7[_0x201755(0x1de)],'skillVersion':_0x36434d,'installedPath':_0x3f387e['path'],'repairCommand':REPAIR_COMMAND};const _0x5e08cc=listFiles(_0x3f387e[_0x201755(0x1c5)]),_0x4d8f74=digestFiles(_0x3f387e['path'],_0x5e08cc);return{'state':sameFiles(_0x5e08cc,_0x6293c7[_0x201755(0x1cd)][_0x201755(0x1c1)])&&_0x4d8f74===_0x6293c7[_0x201755(0x1cd)][_0x201755(0x1d0)]?_0x201755(0x1c7):_0x201755(0x1d5),'packageVersion':_0x6293c7[_0x201755(0x1de)],'skillVersion':_0x36434d,'installedPath':_0x3f387e['path'],'digest':_0x4d8f74,'repairCommand':REPAIR_COMMAND};}catch(_0x558203){return{'state':'unverifiable','packageVersion':_0x6293c7[_0x201755(0x1de)],'installedPath':_0x3f387e[_0x201755(0x1c5)],'reason':_0x558203 instanceof Error?_0x558203['message']:String(_0x558203),'repairCommand':REPAIR_COMMAND};}}function a322_0x4c44(_0x27667f,_0x3644c9){_0x27667f=_0x27667f-0x1a0;const _0x49907d=a322_0x4990();let _0x4c4447=_0x49907d[_0x27667f];return _0x4c4447;}function failure(_0x41a57a,_0x321ef4,_0x1966f0,_0x164f5b){const _0x370049=a322_0x136cdc;return{'ok':![],'code':_0x41a57a,'packageVersion':_0x321ef4[_0x370049(0x1de)],'skillVersion':_0x321ef4[_0x370049(0x1ae)],'installedPath':_0x164f5b,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1966f0 instanceof Error?_0x1966f0[_0x370049(0x1af)]:String(_0x1966f0)};}export function installBuiltinSkill(_0x4c0bec={}){const _0x4e32cf=a322_0x136cdc,_0x3746ed=_0x4c0bec[_0x4e32cf(0x1d4)]??DEFAULT_PACKAGE_ROOT,_0x1ed05d=_0x4c0bec[_0x4e32cf(0x1e3)]??homedir();let _0x1dcecf;try{_0x1dcecf=readSource(_0x3746ed);}catch(_0x24926){return failure(_0x4e32cf(0x1ba),{'packageVersion':_0x4e32cf(0x1a9),'skillVersion':_0x4e32cf(0x1a9)},_0x24926);}const _0x470750=inspectBuiltinSkill({'packageRoot':_0x3746ed,'home':_0x1ed05d}),_0x38f78f=runNpxSkillsAddGlobal(_0x3746ed,_0x1dcecf[_0x4e32cf(0x1dd)],{'stdio':_0x4c0bec['stdio']??_0x4e32cf(0x1a2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1ed05d}});if(_0x38f78f[_0x4e32cf(0x1c6)])return{'ok':!![],'packageVersion':_0x1dcecf[_0x4e32cf(0x1de)],'skillVersion':_0x1dcecf['skillVersion'],'installedPath':_0x470750[_0x4e32cf(0x1e6)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x38f78f['ok'])return failure(_0x4e32cf(0x1e4),_0x1dcecf,_0x38f78f[_0x4e32cf(0x1a5)]??'skills@latest\x20exited\x20'+_0x38f78f[_0x4e32cf(0x1ab)]);const _0x11c78f=inspectBuiltinSkill({'packageRoot':_0x3746ed,'home':_0x1ed05d});if(_0x11c78f[_0x4e32cf(0x1d7)]!==_0x4e32cf(0x1c7)){const _0x3ab1c1=_0x11c78f[_0x4e32cf(0x1ad)]??_0x4e32cf(0x1d8)+_0x11c78f['state'];return failure(_0x4e32cf(0x1c3),_0x1dcecf,_0x38f78f[_0x4e32cf(0x1bc)]?_0x3ab1c1+'\x0a'+_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1e0)]:_0x3ab1c1,_0x11c78f['installedPath']);}return _0x38f78f[_0x4e32cf(0x1bc)]&&(debug(_0x4e32cf(0x1d6),_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1e0)]),console[_0x4e32cf(0x1e8)](_0x4e32cf(0x1b8)+_0x1dcecf[_0x4e32cf(0x1ae)]+_0x4e32cf(0x1b9)+_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1a6)]+_0x4e32cf(0x1cb))),{'ok':!![],'packageVersion':_0x1dcecf[_0x4e32cf(0x1de)],'skillVersion':_0x1dcecf[_0x4e32cf(0x1ae)],'installedPath':_0x11c78f[_0x4e32cf(0x1e6)],'changed':_0x470750[_0x4e32cf(0x1d7)]!==_0x4e32cf(0x1c7),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1355ed,_0x351998){const _0x2c98f5=a323_0x43e0,_0x4ca2a8=_0x1355ed();while(!![]){try{const _0x469329=-parseInt(_0x2c98f5(0x1ca))/0x1*(parseInt(_0x2c98f5(0x1d3))/0x2)+parseInt(_0x2c98f5(0x1ec))/0x3*(parseInt(_0x2c98f5(0x1e1))/0x4)+parseInt(_0x2c98f5(0x1c9))/0x5*(parseInt(_0x2c98f5(0x1d0))/0x6)+-parseInt(_0x2c98f5(0x1de))/0x7+parseInt(_0x2c98f5(0x1d8))/0x8+parseInt(_0x2c98f5(0x1cf))/0x9*(-parseInt(_0x2c98f5(0x1ce))/0xa)+parseInt(_0x2c98f5(0x1df))/0xb*(parseInt(_0x2c98f5(0x1e8))/0xc);if(_0x469329===_0x351998)break;else _0x4ca2a8['push'](_0x4ca2a8['shift']());}catch(_0x59f6cd){_0x4ca2a8['push'](_0x4ca2a8['shift']());}}}(a323_0x31f5,0x8f006));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(_0x37d8b6){const _0x2489cb=a323_0x43e0,_0x293dcc=[];for(const [_0x178a8e,_0x4a1f8a]of Object[_0x2489cb(0x1e2)](_0x37d8b6)){if(_0x4a1f8a===!![]){const _0x4c467c=_0x178a8e['replace'](/([A-Z])/g,'-$1')[_0x2489cb(0x1db)]();_0x293dcc[_0x2489cb(0x1d2)](_0x4c467c);}}return _0x293dcc;}export function parseDynamicFlags(){const _0x111571=a323_0x43e0,_0x3e8401=[];for(let _0x2a86c2=0x3;_0x2a86c2<process['argv'][_0x111571(0x1c8)];_0x2a86c2++){const _0x2cba1e=process[_0x111571(0x1cc)][_0x2a86c2];if(_0x2cba1e&&_0x2cba1e[_0x111571(0x1e5)]('--')){const _0x2c16b4=_0x2cba1e[_0x111571(0x1da)](0x2);_0x2c16b4&&!_0x2c16b4[_0x111571(0x1dd)]('=')&&_0x3e8401['push'](_0x2c16b4);}}return _0x3e8401;}export function getAllProvidedFlags(_0x1edec6){const _0x24d7ac=a323_0x43e0,_0x4d6f40=camelCaseFlagsToKebab(_0x1edec6),_0xf6d657=parseDynamicFlags(),_0x2c2d0e=new Set([..._0x4d6f40,..._0xf6d657]);return Array[_0x24d7ac(0x1e6)](_0x2c2d0e);}function a323_0x31f5(){const _0x32b1f2=['\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','3330240fYVwGv','cwd','slice','toLowerCase','--help','includes','1670634ZNoIWe','293557lYdoHi','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','130220RrBfoi','entries','Error:\x20Unsupported\x20command:\x20','Unsupported\x20command:\x20','startsWith','from','help','216dZXxqX','setLogPath','(empty)','\x0aAvailable\x20commands:','39bRiNNt','length','35YpPtIV','5946KwaNdz','log','argv','exit','280ttqxix','50238dJZGgN','514542FnUUVm','Public\x20Open\x20Skill\x20source:\x20','push','316hRAtZc'];a323_0x31f5=function(){return _0x32b1f2;};return a323_0x31f5();}export function normalizeLegacyBffSaveFlags(_0x131ccc){const _0x4a0cf8=a323_0x43e0,_0x1d00aa=new Set(_0x131ccc);return _0x1d00aa[_0x4a0cf8(0x1d6)](_0x4a0cf8(0x1d5))&&_0x1d00aa['add']('enable-bff-save'),Array[_0x4a0cf8(0x1e6)](_0x1d00aa);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a323_0x43e0(_0x4e08a7,_0x5c0ebb){_0x4e08a7=_0x4e08a7-0x1c8;const _0x31f5b7=a323_0x31f5();let _0x43e0e8=_0x31f5b7[_0x4e08a7];return _0x43e0e8;}export async function skillsCommand(_0x3c19ed,_0x285638,_0x2f598){const _0x42788a=a323_0x43e0;logger[_0x42788a(0x1e9)](process[_0x42788a(0x1d9)]());if(_0x2f598?.[_0x42788a(0x1e7)]||_0x3c19ed===_0x42788a(0x1dc)){showHelp();return;}console['error'](_0x42788a(0x1e3)+(_0x3c19ed||_0x42788a(0x1ea))),console['log'](_0x42788a(0x1eb)),console[_0x42788a(0x1cb)]('\x20\x20'+CLI_BIN_NAME+_0x42788a(0x1d7)),console[_0x42788a(0x1cb)](''),console[_0x42788a(0x1cb)](_0x42788a(0x1d1)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x42788a(0x1e4)+_0x3c19ed),process[_0x42788a(0x1cd)](0x1);}function showHelp(){const _0x4d77e1=a323_0x43e0;console[_0x4d77e1(0x1cb)](_0x4d77e1(0x1d4)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4d77e1(0x1e0));}
|
|
@@ -51,6 +51,11 @@ export interface RunNpxSkillsAddResult {
|
|
|
51
51
|
status: number | null;
|
|
52
52
|
code?: NpxSkillsErrorCode;
|
|
53
53
|
error?: string;
|
|
54
|
+
/** 自动目标部分失败但产物存在;调用方完成内容校验后再决定最终展示。 */
|
|
55
|
+
partialFailure?: {
|
|
56
|
+
count: number;
|
|
57
|
+
output: string;
|
|
58
|
+
};
|
|
54
59
|
/** 未执行 npx(RABETBASE_SKIP_NPX_SKILLS=1),仅用于测试或离线假定已安装 */
|
|
55
60
|
skipped?: boolean;
|
|
56
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a324_0x48a031=a324_0x45c4;(function(_0x14fa9e,_0x4ce47e){const _0x22f183=a324_0x45c4,_0x412d86=_0x14fa9e();while(!![]){try{const _0x13f2cf=parseInt(_0x22f183(0x127))/0x1*(parseInt(_0x22f183(0x11d))/0x2)+parseInt(_0x22f183(0x13b))/0x3*(parseInt(_0x22f183(0x136))/0x4)+parseInt(_0x22f183(0x13c))/0x5*(-parseInt(_0x22f183(0x110))/0x6)+parseInt(_0x22f183(0x11f))/0x7*(-parseInt(_0x22f183(0x142))/0x8)+-parseInt(_0x22f183(0x12a))/0x9*(-parseInt(_0x22f183(0x114))/0xa)+-parseInt(_0x22f183(0x130))/0xb+parseInt(_0x22f183(0x12e))/0xc;if(_0x13f2cf===_0x4ce47e)break;else _0x412d86['push'](_0x412d86['shift']());}catch(_0x225951){_0x412d86['push'](_0x412d86['shift']());}}}(a324_0x31f7,0xd105e));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a324_0x45c4(_0x173d33,_0x1202ac){_0x173d33=_0x173d33-0x10f;const _0x31f790=a324_0x31f7();let _0x45c47c=_0x31f790[_0x173d33];return _0x45c47c;}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a324_0x48a031(0x12b);export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x48a031(0x111);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a324_0x48a031(0x145);export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x48a031(0x134);function a324_0x31f7(){const _0x24729c=['state','signal','presence','1682958jmvaEI','unverifiable','747145qeAxnc','stdout','INSTALL_PARTIAL','warn','push','pipe','ENOENT','message','1hLnhnj','PERMISSION_DENIED','CHILD_EXIT_NONZERO','1908ByKfCH','skills@latest','unknown','EPERM','8380416NVEncL','code','10004005qyhvoZ','log','present','npx','rabetbase','filter','1215176RIQvZu','partialFailure','exit\x20','join','CHILD_TERMINATED','15NsaGTz','1159825BvQHjV','exitCode','npm_config_global','failed','Installer\x20reported\x20','SKILL_NOT_INSTALLED','80PCkpPk','match','SPAWN_FAILED','lovrabet/rabetbase','expectedSkillName','12HJEBiO','add','stdio','npx\x20failed\x20to\x20start','11230ethQCP','shortMessage','trim','inherit','NPX_NOT_FOUND','skill'];a324_0x31f7=function(){return _0x24729c;};return a324_0x31f7();}export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x461da8){switch(_0x461da8['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1d087b){const _0x3752e5=a324_0x48a031,_0xd2c18f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1d087b&&_0xd2c18f[_0x3752e5(0x123)](NPX_SKILLS_FLAG_SKILL,_0x1d087b),_0xd2c18f;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a324_0x48a031(0x139)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a324_0x48a031(0x133),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a324_0x48a031(0x139)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x50fddd,_0x2e676c,_0xc352e6){return{'ok':![],'status':_0x2e676c,'code':_0x50fddd,'error':'['+_0x50fddd+']\x20'+_0xc352e6};}function execaOptions(_0xc78c0e,_0x2ad897){const _0x541ab8=a324_0x48a031,_0x3ddd76={...process.env};return delete _0x3ddd76[_0x541ab8(0x13e)],delete _0x3ddd76['NPM_CONFIG_GLOBAL'],{'cwd':_0xc78c0e,'stdio':_0x2ad897,'env':_0x3ddd76,'extendEnv':![],'shell':![],'reject':![],..._0x2ad897===_0x541ab8(0x124)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x3464a1,_0x24e233,_0x57afad){const _0x401a15=a324_0x48a031,_0x59d291=[_0x3464a1['stdout']?String(_0x3464a1[_0x401a15(0x120)]):'',_0x3464a1['stderr']?String(_0x3464a1['stderr']):'']['filter'](Boolean)['join']('\x0a')[_0x401a15(0x116)](),_0x2f51bd=_0x3464a1[_0x401a15(0x13d)]??null;if(_0x3464a1[_0x401a15(0x12f)]){const _0x820ef7=_0x3464a1[_0x401a15(0x12f)]===_0x401a15(0x125)?_0x401a15(0x118):_0x3464a1[_0x401a15(0x12f)]===_0x401a15(0x12d)||_0x3464a1[_0x401a15(0x12f)]==='EACCES'?_0x401a15(0x128):'SPAWN_FAILED';return failure(_0x820ef7,_0x2f51bd,_0x3464a1[_0x401a15(0x115)]??_0x3464a1[_0x401a15(0x126)]??_0x3464a1[_0x401a15(0x12f)]);}if(_0x3464a1[_0x401a15(0x11b)])return failure(_0x401a15(0x13a),_0x2f51bd,'npx\x20terminated\x20by\x20signal\x20'+_0x3464a1[_0x401a15(0x11b)]);if(_0x3464a1[_0x401a15(0x13f)]&&_0x2f51bd===null)return failure(_0x401a15(0x144),_0x2f51bd,_0x3464a1['shortMessage']??_0x3464a1[_0x401a15(0x126)]??_0x401a15(0x113));if(_0x2f51bd!==0x0)return failure(_0x401a15(0x129),_0x2f51bd,_0x59d291||_0x3464a1[_0x401a15(0x115)]||_0x401a15(0x138)+(_0x2f51bd??_0x401a15(0x12c)));const _0x44fd4f=_0x24e233?resolveInstalledSkill(_0x24e233,_0x57afad):undefined,_0x398aed=_0x59d291[_0x401a15(0x143)](/Failed to install\s+(\d+)/i);if(_0x398aed&&Number(_0x398aed[0x1])>0x0){const _0x552dd4=_0x401a15(0x140)+_0x398aed[0x1]+'\x20failed\x20target(s)'+(_0x59d291?':\x0a'+_0x59d291:'');if(_0x44fd4f?.[_0x401a15(0x11a)]===_0x401a15(0x132))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x398aed[0x1]),'output':_0x59d291}};return failure(_0x401a15(0x121),0x0,_0x552dd4);}if(_0x44fd4f){if(_0x44fd4f[_0x401a15(0x11a)]==='absent')return failure(_0x401a15(0x141),0x0,'Skill\x20\x22'+_0x24e233+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x44fd4f['checked'][_0x401a15(0x139)](',\x20')+')');_0x44fd4f['state']===_0x401a15(0x11e)&&console[_0x401a15(0x122)]('!\x20Could\x20not\x20verify\x20\x22'+_0x24e233+'\x22\x20install\x20state:\x20'+_0x44fd4f['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x331f3c,_0x2aa4c7){const _0x579579=a324_0x48a031;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3581ac=_0x2aa4c7?.[_0x579579(0x112)]??_0x579579(0x117),_0x5b06e0=buildNpxSkillsAddArgv(_0x2aa4c7?.[_0x579579(0x119)]),_0x5c78cc=[_0x579579(0x133),..._0x5b06e0][_0x579579(0x139)]('\x20');console[_0x579579(0x131)]('*\x20'+_0x5c78cc);const _0x5a2058=execaSync(_0x579579(0x133),_0x5b06e0,execaOptions(_0x331f3c,_0x3581ac));return normalizeExecaResult(_0x5a2058);}export function runNpxSkillsAddGlobal(_0x472042,_0x32b672,_0x29ee56){const _0x14b9c1=a324_0x48a031;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x248961=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x32b672,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x151cc5=[_0x14b9c1(0x133),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x32b672,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x14b9c1(0x139)]('\x20');console[_0x14b9c1(0x131)]('*\x20'+_0x151cc5);const _0x232b77=execaSync(_0x14b9c1(0x133),_0x248961,execaOptions(_0x472042,_0x14b9c1(0x124))),_0x28d6f1=normalizeExecaResult(_0x232b77,_0x29ee56?.[_0x14b9c1(0x10f)]??resolveGlobalSkillName(_0x32b672),_0x29ee56?.[_0x14b9c1(0x11c)]);if(_0x29ee56?.[_0x14b9c1(0x112)]!=='pipe'&&!_0x28d6f1[_0x14b9c1(0x137)]){const _0x5a9a91=[_0x232b77[_0x14b9c1(0x120)],_0x232b77['stderr']][_0x14b9c1(0x135)](Boolean)[_0x14b9c1(0x139)]('\x0a')[_0x14b9c1(0x116)]();if(_0x5a9a91)console[_0x14b9c1(0x131)](_0x5a9a91);}return _0x28d6f1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a325_0x2dc0b2=a325_0x2a1f;(function(_0x4603e8,_0x225f1e){const _0x5eb849=a325_0x2a1f,_0x23dec3=_0x4603e8();while(!![]){try{const _0x37dbd9=parseInt(_0x5eb849(0xb1))/0x1+-parseInt(_0x5eb849(0xa3))/0x2*(-parseInt(_0x5eb849(0x9e))/0x3)+parseInt(_0x5eb849(0xa7))/0x4*(parseInt(_0x5eb849(0xa9))/0x5)+parseInt(_0x5eb849(0xb9))/0x6*(parseInt(_0x5eb849(0xaa))/0x7)+-parseInt(_0x5eb849(0xba))/0x8+parseInt(_0x5eb849(0xac))/0x9+-parseInt(_0x5eb849(0xb0))/0xa;if(_0x37dbd9===_0x225f1e)break;else _0x23dec3['push'](_0x23dec3['shift']());}catch(_0x2ccd31){_0x23dec3['push'](_0x23dec3['shift']());}}}(a325_0x2379,0x4996a));function a325_0x2379(){const _0x415b75=['reason','includes','6SNxUzq','4076824YmFoGV','home','not-recorded','\x20records\x20\x22','object','version','absent','9DHjoKD','unusable','\x20has\x20no\x20skills\x20map','.claude','.agents','303130GEITBG','\x20uses\x20unsupported\x20version\x20','message','globalSkillsDirs','407684hnIZtk','.skill-lock.json','20eVPxfp','3770529RqDoHs','lockFile','1252458LQsefe','find','kind','number','11772720qrEgcQ','448105pAQREF','SKILL.md','present','skills','map','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'];a325_0x2379=function(){return _0x415b75;};return a325_0x2379();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a325_0x2dc0b2(0xa2),a325_0x2dc0b2(0xa8));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join(a325_0x2dc0b2(0xa1),'skills')];function a325_0x2a1f(_0x474fbf,_0x3b6b47){_0x474fbf=_0x474fbf-0x99;const _0x2379f7=a325_0x2379();let _0x2a1fd9=_0x2379f7[_0x474fbf];return _0x2a1fd9;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3e7d44,_0x5143bb){const _0x5d2c7b=a325_0x2dc0b2;if(!existsSync(_0x3e7d44))return{'kind':_0x5d2c7b(0x99)};let _0x314bbd;try{_0x314bbd=JSON['parse'](readFileSync(_0x3e7d44,'utf8'));}catch(_0x59f3ad){return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+'\x20is\x20unreadable:\x20'+_0x59f3ad[_0x5d2c7b(0xa5)]};}const _0x2e536b=_0x314bbd;if(typeof _0x2e536b?.[_0x5d2c7b(0x9c)]!==_0x5d2c7b(0xaf)||!SUPPORTED_LOCK_VERSIONS[_0x5d2c7b(0xb8)](_0x2e536b[_0x5d2c7b(0x9c)]))return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+_0x5d2c7b(0xa4)+String(_0x2e536b?.[_0x5d2c7b(0x9c)])};if(!_0x2e536b['skills']||typeof _0x2e536b['skills']!==_0x5d2c7b(0x9b))return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+_0x5d2c7b(0xa0)};return _0x2e536b[_0x5d2c7b(0xb4)][_0x5143bb]?{'kind':'recorded'}:{'kind':_0x5d2c7b(0x99)};}export function resolveInstalledSkill(_0x1ff181,_0x5f261c){const _0x43f369=a325_0x2dc0b2,_0x1b21aa=_0x5f261c?.[_0x43f369(0xbb)]??homedir(),_0x436abf=_0x5f261c?.[_0x43f369(0xa6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x43f369(0xb5)](_0x17c1d8=>join(_0x1b21aa,_0x17c1d8)),_0x59962a=_0x5f261c?.[_0x43f369(0xab)]??join(_0x1b21aa,SKILL_LOCK_RELATIVE_PATH),_0x3346a6=_0x436abf[_0x43f369(0xb5)](_0x1e6a46=>join(_0x1e6a46,_0x1ff181,_0x43f369(0xb2))),_0x30bb2c=_0x3346a6[_0x43f369(0xad)](_0xf71e0d=>existsSync(_0xf71e0d));if(_0x30bb2c)return{'state':_0x43f369(0xb3),'path':_0x30bb2c};const _0x1669ba=readLockLookup(_0x59962a,_0x1ff181);if(_0x1669ba[_0x43f369(0xae)]===_0x43f369(0x9f))return{'state':'unverifiable','reason':_0x1669ba[_0x43f369(0xb7)]};if(_0x1669ba[_0x43f369(0xae)]==='recorded')return{'state':'unverifiable','reason':_0x59962a+_0x43f369(0x9a)+_0x1ff181+_0x43f369(0xb6)+('('+_0x3346a6['join'](',\x20')+')')};return{'state':_0x43f369(0x9d),'checked':_0x3346a6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52e648,_0x5979d9){const _0xaefeb3=a326_0x36a6,_0x242b2b=_0x52e648();while(!![]){try{const _0x32c5f1=-parseInt(_0xaefeb3(0x92))/0x1+parseInt(_0xaefeb3(0x84))/0x2*(-parseInt(_0xaefeb3(0x8f))/0x3)+parseInt(_0xaefeb3(0x86))/0x4+-parseInt(_0xaefeb3(0x98))/0x5*(parseInt(_0xaefeb3(0x8c))/0x6)+parseInt(_0xaefeb3(0x8b))/0x7*(-parseInt(_0xaefeb3(0x89))/0x8)+parseInt(_0xaefeb3(0x85))/0x9*(parseInt(_0xaefeb3(0x8a))/0xa)+parseInt(_0xaefeb3(0x91))/0xb;if(_0x32c5f1===_0x5979d9)break;else _0x242b2b['push'](_0x242b2b['shift']());}catch(_0x6ed8d7){_0x242b2b['push'](_0x242b2b['shift']());}}}(a326_0x4282,0xc1017));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a326_0x4282(){const _0xeacb06=['6252016KuBosF','130LSFtQL','14BqoHGw','7339044TcfaMK','service','command','195ybUrPD','entries','43517617VolePA','182594QieXQR','test','stringify','error','[REDACTED]','flags','5AEguYs','48634cghgQb','402066auNkgx','3212076rczfAQ','durationMs','message'];a326_0x4282=function(){return _0xeacb06;};return a326_0x4282();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x104f42){const _0x1b0108=a326_0x36a6;return SENSITIVE_PATTERNS['some'](_0x4c53f9=>_0x4c53f9[_0x1b0108(0x93)](_0x104f42));}function a326_0x36a6(_0x4bb452,_0x14b8de){_0x4bb452=_0x4bb452-0x84;const _0x42827e=a326_0x4282();let _0x36a6c4=_0x42827e[_0x4bb452];return _0x36a6c4;}function sanitizeFlags(_0x90db15){const _0x47c9ac=a326_0x36a6,_0xfdea95={};for(const [_0x29bd5b,_0x29f708]of Object[_0x47c9ac(0x90)](_0x90db15)){isSensitiveKey(_0x29bd5b)?_0xfdea95[_0x29bd5b]=_0x29f708!=null&&_0x29f708!==''?_0x47c9ac(0x96):_0x29f708:_0xfdea95[_0x29bd5b]=_0x29f708;}return _0xfdea95;}export async function reportCommandTrace(_0x3af120){const _0x4f5b27=a326_0x36a6;try{const _0x3577c1=sanitizeFlags(_0x3af120[_0x4f5b27(0x97)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x3af120[_0x4f5b27(0x8d)],'command.name':_0x3af120[_0x4f5b27(0x8e)],'command.flags':JSON[_0x4f5b27(0x94)](_0x3577c1),..._0x3af120['durationMs']!=null?{'command.duration_ms':_0x3af120[_0x4f5b27(0x87)]}:{},..._0x3af120[_0x4f5b27(0x95)]?{'command.error':_0x3af120[_0x4f5b27(0x95)]instanceof Error?_0x3af120[_0x4f5b27(0x95)][_0x4f5b27(0x88)]:String(_0x3af120[_0x4f5b27(0x95)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35b7d5,_0x254703){var _0x2ba5c5=a327_0x3b35,_0xff5d59=_0x35b7d5();while(!![]){try{var _0x277f0f=parseInt(_0x2ba5c5(0x1b1))/0x1*(-parseInt(_0x2ba5c5(0x1bb))/0x2)+-parseInt(_0x2ba5c5(0x1b9))/0x3+-parseInt(_0x2ba5c5(0x1b2))/0x4*(-parseInt(_0x2ba5c5(0x1ba))/0x5)+parseInt(_0x2ba5c5(0x1bc))/0x6+-parseInt(_0x2ba5c5(0x1b7))/0x7+parseInt(_0x2ba5c5(0x1b4))/0x8+-parseInt(_0x2ba5c5(0x1af))/0x9*(-parseInt(_0x2ba5c5(0x1b8))/0xa);if(_0x277f0f===_0x254703)break;else _0xff5d59['push'](_0xff5d59['shift']());}catch(_0x36103c){_0xff5d59['push'](_0xff5d59['shift']());}}}(a327_0x102d,0xc61a2));function a327_0x102d(){var _0x4d81f1=['25NlxNXe','125530RtjhoX','6313248fsYfYY','1266741ubrpUC','Failed\x20to\x20report\x20CLI\x20help\x20trace:','17FmchGq','212956AISDph','service','3599304jQGnRb','error','cli.help','9809268hQEQcO','170yJedYS','2643882PhRrGB'];a327_0x102d=function(){return _0x4d81f1;};return a327_0x102d();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a327_0x3b35(_0x2c395d,_0xd3a938){_0x2c395d=_0x2c395d-0x1af;var _0x102d4a=a327_0x102d();var _0x3b3576=_0x102d4a[_0x2c395d];return _0x3b3576;}export async function reportCliHelpTrace(_0x524639,_0x24e8aa){var _0x1860ae=a327_0x3b35;try{await sendCliTraceLog({'spanName':_0x1860ae(0x1b6),'logData':{'rabetbase.help.kind':_0x524639,..._0x24e8aa?.[_0x1860ae(0x1b3)]&&{'rabetbase.help.service':_0x24e8aa[_0x1860ae(0x1b3)]}}});}catch(_0x4c22dd){console[_0x1860ae(0x1b5)](_0x1860ae(0x1b0),_0x4c22dd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x392b46,_0x4325bd){const _0x8d95ed=a328_0x216a,_0x24d8da=_0x392b46();while(!![]){try{const _0x20bc9a=-parseInt(_0x8d95ed(0xd7))/0x1+parseInt(_0x8d95ed(0xd2))/0x2+-parseInt(_0x8d95ed(0xd5))/0x3+-parseInt(_0x8d95ed(0xda))/0x4+-parseInt(_0x8d95ed(0xd1))/0x5+-parseInt(_0x8d95ed(0xd6))/0x6+-parseInt(_0x8d95ed(0xdb))/0x7*(-parseInt(_0x8d95ed(0xcd))/0x8);if(_0x20bc9a===_0x4325bd)break;else _0x24d8da['push'](_0x24d8da['shift']());}catch(_0x565834){_0x24d8da['push'](_0x24d8da['shift']());}}}(a328_0x3412,0xf1f20));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a328_0x3412(){const _0x23d889=['567091zephol','392ncDtec','email','tenant','username','5629565JOSXwj','179400ffJRlC','user','daily','27453LROOIK','8411538tmxeWJ','67166ypxzrp','nickname','unknown','1856704TFuLfO'];a328_0x3412=function(){return _0x23d889;};return a328_0x3412();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a328_0x216a(_0x469c2e,_0x48c20c){_0x469c2e=_0x469c2e-0xcd;const _0x3412ab=a328_0x3412();let _0x216a99=_0x3412ab[_0x469c2e];return _0x216a99;}export async function ensureCliOtelTraceConfig(){const _0x1246d=a328_0x216a,_0x5736db=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5eb0e7=_0x5736db?.[_0x1246d(0xd3)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1246d(0xd9)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1246d(0xd4):'production')}),setUserContext({'id':_0x5eb0e7?.['id'],'username':_0x5eb0e7?.[_0x1246d(0xd0)],'nickname':_0x5eb0e7?.[_0x1246d(0xd8)],'email':_0x5eb0e7?.[_0x1246d(0xce)],'tenantCode':_0x5eb0e7?.[_0x1246d(0xcf)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5736db;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dfaac,_0x49d9b4){const _0x16806b=a329_0x2ccf,_0x5b6e04=_0x3dfaac();while(!![]){try{const _0x42d5ab=-parseInt(_0x16806b(0x1bb))/0x1+parseInt(_0x16806b(0x1bf))/0x2+parseInt(_0x16806b(0x1bd))/0x3+parseInt(_0x16806b(0x1b8))/0x4+parseInt(_0x16806b(0x1b9))/0x5+-parseInt(_0x16806b(0x1b7))/0x6*(parseInt(_0x16806b(0x1b3))/0x7)+-parseInt(_0x16806b(0x1ba))/0x8*(-parseInt(_0x16806b(0x1be))/0x9);if(_0x42d5ab===_0x49d9b4)break;else _0x5b6e04['push'](_0x5b6e04['shift']());}catch(_0x47c61f){_0x5b6e04['push'](_0x5b6e04['shift']());}}}(a329_0x4c58,0x59699));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a329_0x2ccf(_0x3f7c0e,_0x1281fc){_0x3f7c0e=_0x3f7c0e-0x1b2;const _0x4c5890=a329_0x4c58();let _0x2ccf57=_0x4c5890[_0x3f7c0e];return _0x2ccf57;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3aede3=a329_0x2ccf;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x218741=()=>{const _0x5031f7=a329_0x2ccf;void flushOtelNodeIfUsed()[_0x5031f7(0x1b5)](()=>process[_0x5031f7(0x1bc)](0x0));};process['once'](_0x3aede3(0x1b2),_0x218741),process[_0x3aede3(0x1b4)](_0x3aede3(0x1b6),_0x218741);}function a329_0x4c58(){const _0x5db0c7=['42021pKyaYB','once','then','SIGTERM','606bucsbu','861884xqkdQa','537630rAJWiF','40OKrPWe','488014aHQsCP','exit','1393410XuFnKd','759015UTdHXb','502816PdfSwP','SIGINT'];a329_0x4c58=function(){return _0x5db0c7;};return a329_0x4c58();}export async function exitWithOtelShutdown(_0xfb6945){await flushOtelNodeIfUsed(),process['exit'](_0xfb6945);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a330_0x3ba101=a330_0x1394;(function(_0x2549cb,_0x1221a1){const _0x1f1156=a330_0x1394,_0x324222=_0x2549cb();while(!![]){try{const _0x11c514=parseInt(_0x1f1156(0x1b1))/0x1+-parseInt(_0x1f1156(0x1bd))/0x2*(parseInt(_0x1f1156(0x1be))/0x3)+parseInt(_0x1f1156(0x1b7))/0x4+parseInt(_0x1f1156(0x1af))/0x5*(-parseInt(_0x1f1156(0x1ba))/0x6)+parseInt(_0x1f1156(0x1b0))/0x7+-parseInt(_0x1f1156(0x1b8))/0x8+parseInt(_0x1f1156(0x1b6))/0x9*(parseInt(_0x1f1156(0x1b2))/0xa);if(_0x11c514===_0x1221a1)break;else _0x324222['push'](_0x324222['shift']());}catch(_0x568c57){_0x324222['push'](_0x324222['shift']());}}}(a330_0x27eb,0xd2e14));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a330_0x1394(_0x26f520,_0xbdaffb){_0x26f520=_0x26f520-0x1af;const _0x27ebfd=a330_0x27eb();let _0x139415=_0x27ebfd[_0x26f520];return _0x139415;}import{getCliVersion}from'../utils/version.js';function a330_0x27eb(){const _0xb97740=['244090hKMmOf','traceName','manual','spanName','153WnUdtf','43568iYCcCU','10582808JSVtnj','rabetbase-cli','34344FGFDNA','traceparent','logData','2rqfrxo','351774hqzegZ','180QBLbqh','2898931HFSVAJ','1669959VkjSbs'];a330_0x27eb=function(){return _0xb97740;};return a330_0x27eb();}const DEFAULT_TRACE_NAME=a330_0x3ba101(0x1b9);export async function sendCliTraceLog(_0x31eeb5){const _0x186492=a330_0x3ba101;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x31eeb5[_0x186492(0x1b3)]??DEFAULT_TRACE_NAME,'version':_0x31eeb5['version']??getCliVersion(),'spanName':_0x31eeb5[_0x186492(0x1b5)],'eventType':_0x186492(0x1b4),'logData':_0x31eeb5[_0x186492(0x1bc)],..._0x31eeb5[_0x186492(0x1bb)]&&{'traceparent':_0x31eeb5[_0x186492(0x1bb)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a331_0xbdf2d6=a331_0x15ae;(function(_0x2fffd2,_0x41b896){const _0x390e76=a331_0x15ae,_0x51cf62=_0x2fffd2();while(!![]){try{const _0x440198=parseInt(_0x390e76(0xf2))/0x1+parseInt(_0x390e76(0xf3))/0x2+parseInt(_0x390e76(0xf7))/0x3*(-parseInt(_0x390e76(0xfa))/0x4)+parseInt(_0x390e76(0xf6))/0x5+-parseInt(_0x390e76(0xfb))/0x6*(-parseInt(_0x390e76(0xf1))/0x7)+-parseInt(_0x390e76(0xf5))/0x8*(-parseInt(_0x390e76(0xf8))/0x9)+parseInt(_0x390e76(0xfc))/0xa*(-parseInt(_0x390e76(0xee))/0xb);if(_0x440198===_0x41b896)break;else _0x51cf62['push'](_0x51cf62['shift']());}catch(_0x552e89){_0x51cf62['push'](_0x51cf62['shift']());}}}(a331_0x38fe,0x30c48));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a331_0xbdf2d6(0xef);export async function sendPlatformIssueCollectLog(_0x47ecb0){const _0x17a292=a331_0xbdf2d6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x47ecb0[_0x17a292(0xf9)],'issue.description':_0x47ecb0['description'],..._0x47ecb0[_0x17a292(0xed)]?{'issue.description_original_bytes':_0x47ecb0[_0x17a292(0xed)][_0x17a292(0xf0)],'issue.description_truncated':_0x47ecb0[_0x17a292(0xed)][_0x17a292(0xf4)],'issue.description_redactions':_0x47ecb0[_0x17a292(0xed)]['redactionCount'],'issue.description_redaction_kinds':_0x47ecb0[_0x17a292(0xed)]['redactionKinds']['join'](',')}:{}}});}function a331_0x15ae(_0x2e7e1f,_0x473433){_0x2e7e1f=_0x2e7e1f-0xed;const _0x38fef5=a331_0x38fe();let _0x15aeb8=_0x38fef5[_0x2e7e1f];return _0x15aeb8;}function a331_0x38fe(){const _0x407096=['1229655xFiCTE','2634AZZIty','54927cFDcoT','title','1808gnpHnw','117444RdaJcB','2620YnjArP','sanitize','1716cwiFmQ','issue.log.collect','originalBytes','7pInTtN','50763SSuZyC','239626YvxuCO','truncated','264kWqgzi'];a331_0x38fe=function(){return _0x407096;};return a331_0x38fe();}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x3cf228=a333_0x5103;(function(_0x4b6dbc,_0x226b66){const _0x2fdd45=a333_0x5103,_0x1aa05b=_0x4b6dbc();while(!![]){try{const _0x1c76ee=parseInt(_0x2fdd45(0x179))/0x1*(parseInt(_0x2fdd45(0x1a0))/0x2)+parseInt(_0x2fdd45(0x197))/0x3+-parseInt(_0x2fdd45(0x19d))/0x4+-parseInt(_0x2fdd45(0x182))/0x5+-parseInt(_0x2fdd45(0x196))/0x6+parseInt(_0x2fdd45(0x18e))/0x7+-parseInt(_0x2fdd45(0x17b))/0x8;if(_0x1c76ee===_0x226b66)break;else _0x1aa05b['push'](_0x1aa05b['shift']());}catch(_0x38d2d4){_0x1aa05b['push'](_0x1aa05b['shift']());}}}(a333_0x4202,0x196ba));export const CORE_IDE_CONFIGS={'cursor':{'name':a333_0x3cf228(0x178),'description':a333_0x3cf228(0x18d),'folders':['.cursorrules',a333_0x3cf228(0x1a6)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x183)}]},'windsurf':{'name':'Windsurf','description':a333_0x3cf228(0x190),'folders':[a333_0x3cf228(0x189)],'files':[{'type':'file','path':a333_0x3cf228(0x19e)}]},'claude':{'name':a333_0x3cf228(0x195),'description':a333_0x3cf228(0x195),'folders':[a333_0x3cf228(0x19a)],'files':[{'type':a333_0x3cf228(0x1a1),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':a333_0x3cf228(0x18c),'folders':[a333_0x3cf228(0x176)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a3)}]},'codex':{'name':a333_0x3cf228(0x180),'description':'Codex\x20IDE','folders':[a333_0x3cf228(0x19b)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x18b)}]},'opencode':{'name':a333_0x3cf228(0x193),'description':a333_0x3cf228(0x173),'folders':[a333_0x3cf228(0x177)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x186)}]},'qoder':{'name':'Qoder','description':a333_0x3cf228(0x184),'folders':[a333_0x3cf228(0x1a5)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x19c)},{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a4)}]},'codebuddy':{'name':a333_0x3cf228(0x185),'description':a333_0x3cf228(0x174),'folders':[a333_0x3cf228(0x17c)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x187)}]},'trae':{'name':a333_0x3cf228(0x18a),'description':'Trae\x20IDE','folders':[a333_0x3cf228(0x18f)],'files':[{'type':a333_0x3cf228(0x1a1),'path':'.trae/skills/lovrabet/SKILL.md'}]}};function a333_0x5103(_0x2d9972,_0x1f1ba3){_0x2d9972=_0x2d9972-0x173;const _0x420215=a333_0x4202();let _0x51032a=_0x420215[_0x2d9972];return _0x51032a;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x3cf228(0x17e),'description':a333_0x3cf228(0x199),'folders':[a333_0x3cf228(0x194)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a7)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a7)}]}};export const CORE_IDE_LIST=[a333_0x3cf228(0x188),a333_0x3cf228(0x17f),a333_0x3cf228(0x19f),a333_0x3cf228(0x1a2),'cursor',a333_0x3cf228(0x17d),a333_0x3cf228(0x198),a333_0x3cf228(0x191),a333_0x3cf228(0x181)];function a333_0x4202(){const _0x342cb5=['Cursor','1PIEXFM','agent','477984pXAdxG','.codebuddy','opencode','Other\x20(generic\x20template)','cline','Codex','windsurf','174295RUwRCV','.cursor/skills/rabetbase.md','Qoder\x20IDE','CodeBuddy','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','claude','.windsurf','Trae','.codex/skills/lovrabet/SKILL.md','Cline\x20IDE','Cursor\x20IDE','53270Zkyzsb','.trae','Windsurf\x20IDE','trae','cursor','OpenCode','.agent','Claude\x20Code','98760WDxFQj','245475kONqEe','qoder','Generic\x20template\x20fallback','.claude','.codex','.qoder/rules/rabetbase.md','51680zominb','.windsurf/workflows/rabetbase.md','codebuddy','277348cmdJhS','file','codex','.cline/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','.qoder','.cursor','.agent/skills/lovrabet/SKILL.md','OpenCode\x20IDE','CodeBuddy\x20IDE','antigravity','.cline','.opencode'];a333_0x4202=function(){return _0x342cb5;};return a333_0x4202();}export const IDE_LIST=[a333_0x3cf228(0x175),a333_0x3cf228(0x188),a333_0x3cf228(0x17f),'codebuddy',a333_0x3cf228(0x1a2),a333_0x3cf228(0x192),'opencode','qoder',a333_0x3cf228(0x191),a333_0x3cf228(0x181),a333_0x3cf228(0x17a)];export const ALL_CORE_IDES=[a333_0x3cf228(0x192),a333_0x3cf228(0x181),a333_0x3cf228(0x188),a333_0x3cf228(0x17f),a333_0x3cf228(0x1a2),'opencode',a333_0x3cf228(0x198),a333_0x3cf228(0x19f),a333_0x3cf228(0x191)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1fda74,_0x20f017){const _0x1e8dbf=a334_0x4cb6,_0x5a34d0=_0x1fda74();while(!![]){try{const _0x5b724e=parseInt(_0x1e8dbf(0x1fd))/0x1*(parseInt(_0x1e8dbf(0x1f5))/0x2)+parseInt(_0x1e8dbf(0x1fa))/0x3*(-parseInt(_0x1e8dbf(0x1fc))/0x4)+-parseInt(_0x1e8dbf(0x1f3))/0x5+parseInt(_0x1e8dbf(0x1f4))/0x6*(-parseInt(_0x1e8dbf(0x1fb))/0x7)+-parseInt(_0x1e8dbf(0x1f7))/0x8*(parseInt(_0x1e8dbf(0x1f6))/0x9)+parseInt(_0x1e8dbf(0x1f2))/0xa+parseInt(_0x1e8dbf(0x1f8))/0xb*(parseInt(_0x1e8dbf(0x1f9))/0xc);if(_0x5b724e===_0x20f017)break;else _0x5a34d0['push'](_0x5a34d0['shift']());}catch(_0x45538f){_0x5a34d0['push'](_0x5a34d0['shift']());}}}(a334_0x2e19,0x6ab00));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a334_0x4cb6(_0x433b6b,_0x16b04a){_0x433b6b=_0x433b6b-0x1f2;const _0x2e1989=a334_0x2e19();let _0x4cb68b=_0x2e1989[_0x433b6b];return _0x4cb68b;}import{CliErrors}from'../errors.js';function a334_0x2e19(){const _0x4b43b3=['12blaLGM','3mzLHms','518VqoeIU','2921768UDLYiG','1WGqhQn','6633980bbxMHE','1369110hRKtbZ','44922RJKLVq','1096526EiKMsC','63dLWTmP','788960PvMAUI','16213703kVHHnp'];a334_0x2e19=function(){return _0x4b43b3;};return a334_0x2e19();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|