@lovrabet/rabetbase-cli 2.5.5 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- 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/detail.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.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/design-context.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- 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/cross-db-analysis-shared.d.ts +40 -0
- package/lib/commands/db/cross-db-analysis-shared.js +1 -0
- package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-latest.js +1 -0
- package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-start.js +1 -0
- package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-status.js +1 -0
- 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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +18 -0
- 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-analysis.d.ts +17 -0
- package/lib/core/cross-db-analysis.js +1 -0
- 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.js +1 -1
- 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/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/skills/rabetbase/SKILL.md +9 -7
- package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
- package/skills/rabetbase/guides/independent-deployment.md +10 -2
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a328_0x126958=a328_0x1be9;(function(_0xc1ec3a,_0x47701b){const _0x56a92c=a328_0x1be9,_0x4e0049=_0xc1ec3a();while(!![]){try{const _0x1177b1=-parseInt(_0x56a92c(0x1c4))/0x1+parseInt(_0x56a92c(0x1d7))/0x2+parseInt(_0x56a92c(0x1e2))/0x3+parseInt(_0x56a92c(0x1a4))/0x4+parseInt(_0x56a92c(0x1a6))/0x5+-parseInt(_0x56a92c(0x1a7))/0x6*(-parseInt(_0x56a92c(0x1cf))/0x7)+parseInt(_0x56a92c(0x1b2))/0x8*(-parseInt(_0x56a92c(0x1ab))/0x9);if(_0x1177b1===_0x47701b)break;else _0x4e0049['push'](_0x4e0049['shift']());}catch(_0x2ec3cb){_0x4e0049['push'](_0x4e0049['shift']());}}}(a328_0x2cbe,0x76df2));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='rabetbase\x20cli-skill\x20install',SKILL_NAME=a328_0x126958(0x1cb),debug=debuglog(a328_0x126958(0x1e0));function frontmatterValue(_0x52451d,_0xb56a5){const _0x52ea67=a328_0x126958;return _0x52451d[_0x52ea67(0x1dd)](new RegExp('^'+_0xb56a5+_0x52ea67(0x1a3),'m'))?.[0x1]?.[_0x52ea67(0x1c6)]()??'';}function listFiles(_0x3132f0,_0x98d5d8=_0x3132f0){const _0x200f95=a328_0x126958;return readdirSync(_0x98d5d8,{'withFileTypes':!![]})[_0x200f95(0x1c2)](_0x41e87c=>{const _0x1237fe=_0x200f95,_0x294573=join(_0x98d5d8,_0x41e87c[_0x1237fe(0x19a)]),_0x26b673=lstatSync(_0x294573);if(_0x26b673[_0x1237fe(0x1c5)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x294573);if(_0x26b673[_0x1237fe(0x1c9)]())return listFiles(_0x3132f0,_0x294573);if(!_0x26b673[_0x1237fe(0x1ca)]())throw new Error(_0x1237fe(0x1de)+_0x294573);return[relative(_0x3132f0,_0x294573)[_0x1237fe(0x1ae)](sep)[_0x1237fe(0x1bd)]('/')];})[_0x200f95(0x1be)]((_0x2c3c70,_0x4c93ee)=>_0x2c3c70<_0x4c93ee?-0x1:_0x2c3c70>_0x4c93ee?0x1:0x0);}function a328_0x1be9(_0x5b3bdc,_0x357999){_0x5b3bdc=_0x5b3bdc-0x19a;const _0x2cbef1=a328_0x2cbe();let _0x1be929=_0x2cbef1[_0x5b3bdc];return _0x1be929;}function digestFiles(_0x2bb293,_0xc9211){const _0x20a3cd=a328_0x126958,_0xdcd04d=createHash(_0x20a3cd(0x1b7));for(const _0x228070 of _0xc9211){if(_0x228070[_0x20a3cd(0x1ac)]('/')||_0x228070[_0x20a3cd(0x1ae)]('/')['includes']('..')||_0x228070[_0x20a3cd(0x19b)]('\x5c'))throw new Error(_0x20a3cd(0x1c8)+_0x228070);_0xdcd04d[_0x20a3cd(0x1a1)](_0x228070),_0xdcd04d[_0x20a3cd(0x1a1)]('\x00'),_0xdcd04d[_0x20a3cd(0x1a1)](readFileSync(join(_0x2bb293,..._0x228070[_0x20a3cd(0x1ae)]('/')))),_0xdcd04d[_0x20a3cd(0x1a1)]('\x00');}return _0xdcd04d[_0x20a3cd(0x1b1)](_0x20a3cd(0x1bf));}function sameFiles(_0x477f2b,_0x17cf2c){const _0x592efc=a328_0x126958;return _0x477f2b[_0x592efc(0x1c3)]===_0x17cf2c[_0x592efc(0x1c3)]&&_0x477f2b[_0x592efc(0x1bc)]((_0x5e815f,_0x4f935a)=>_0x5e815f===_0x17cf2c[_0x4f935a]);}function a328_0x2cbe(){const _0x3a7a2a=['pipe','partialFailure','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','missing','skillVersion','1897576vBisdR','skills','manifest','installedPath','current','log','match','Unsupported\x20Skill\x20entry:\x20','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','rabetbase-skills','error','1632651oVhOYT','name','includes','state','home','VERIFY_FAILED','reason','skills@latest\x20exited\x20','update','SKILL.md',':\x5cs*(.+)$','1485580UrKclQ','path','3912220xpIguc','276ALIccq','packageRoot','unverifiable','version_mismatch','74133wbwCaJ','startsWith','root','split','Installed\x20Skill\x20state\x20is\x20','\x20verified;\x20','digest','2248hOSoUE','files','schemaVersion','stdio','content_mismatch','sha256','package.json','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','message','version','every','join','sort','hex','output','parse','flatMap','length','578819kSkopD','isSymbolicLink','trim','count','Unsafe\x20manifest\x20path:\x20','isDirectory','isFile','rabetbase','packageVersion','INSTALL_FAILED','utf8','111615ArRXHW','status','unknown'];a328_0x2cbe=function(){return _0x3a7a2a;};return a328_0x2cbe();}function readSource(_0x104e94){const _0x2978a8=a328_0x126958,_0x5d4169=JSON[_0x2978a8(0x1c1)](readFileSync(join(_0x104e94,_0x2978a8(0x1b8)),_0x2978a8(0x1ce))),_0x1198aa=JSON[_0x2978a8(0x1c1)](readFileSync(join(_0x104e94,_0x2978a8(0x1d8),'rabetbase.manifest.json'),'utf8')),_0x35267d=join(_0x104e94,'skills',SKILL_NAME),_0x481d30=frontmatterValue(readFileSync(join(_0x35267d,_0x2978a8(0x1a2)),_0x2978a8(0x1ce)),_0x2978a8(0x1bb)),_0x143afc=listFiles(_0x35267d);if(_0x1198aa[_0x2978a8(0x1b4)]!==0x1||_0x1198aa[_0x2978a8(0x19a)]!==SKILL_NAME||!_0x5d4169[_0x2978a8(0x1bb)]||_0x1198aa['packageVersion']!==_0x5d4169[_0x2978a8(0x1bb)]||_0x1198aa['skillVersion']!==_0x5d4169[_0x2978a8(0x1bb)]||_0x481d30!==_0x5d4169[_0x2978a8(0x1bb)]||!sameFiles(_0x143afc,_0x1198aa[_0x2978a8(0x1b3)])||digestFiles(_0x35267d,_0x143afc)!==_0x1198aa[_0x2978a8(0x1b1)])throw new Error(_0x2978a8(0x1df));return{'packageVersion':_0x5d4169['version'],'skillVersion':_0x481d30,'root':_0x35267d,'manifest':_0x1198aa};}function installedSkillPath(_0x44d1c6){const _0x567b02=a328_0x126958,_0xfef6f6=resolveInstalledSkill(SKILL_NAME,{'home':_0x44d1c6});if(_0xfef6f6[_0x567b02(0x19c)]==='present')return{'state':'present','path':dirname(_0xfef6f6['path'])};if(_0xfef6f6[_0x567b02(0x19c)]==='absent')return{'state':_0x567b02(0x1d5)};return{'state':_0x567b02(0x1a9),'reason':_0xfef6f6['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x22e739,_0x5ab8a9={}){const _0x427ecd=a328_0x126958,_0x19599c=installedSkillPath(_0x5ab8a9[_0x427ecd(0x19d)]??homedir());if(_0x19599c['state']===_0x427ecd(0x1d5))return{'state':_0x427ecd(0x1d5),'expectedVersion':_0x22e739,'repairCommand':REPAIR_COMMAND};if(_0x19599c[_0x427ecd(0x19c)]==='unverifiable')return{'state':_0x427ecd(0x1a9),'expectedVersion':_0x22e739,'reason':_0x19599c[_0x427ecd(0x19f)],'repairCommand':REPAIR_COMMAND};try{const _0x343a4d=frontmatterValue(readFileSync(join(_0x19599c[_0x427ecd(0x1a5)],_0x427ecd(0x1a2)),_0x427ecd(0x1ce)),_0x427ecd(0x1bb));return{'state':_0x343a4d===_0x22e739?_0x427ecd(0x1db):_0x427ecd(0x1aa),'expectedVersion':_0x22e739,'skillVersion':_0x343a4d,'installedPath':_0x19599c['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x5f2276){return{'state':'unverifiable','expectedVersion':_0x22e739,'installedPath':_0x19599c[_0x427ecd(0x1a5)],'reason':_0x5f2276 instanceof Error?_0x5f2276['message']:String(_0x5f2276),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x404377={}){const _0x1fae4=a328_0x126958,_0x27729e=_0x404377[_0x1fae4(0x1a8)]??DEFAULT_PACKAGE_ROOT;let _0x1f599b;try{_0x1f599b=readSource(_0x27729e);}catch(_0x564973){return{'state':_0x1fae4(0x1a9),'packageVersion':_0x1fae4(0x1d1),'reason':_0x564973 instanceof Error?_0x564973[_0x1fae4(0x1ba)]:String(_0x564973),'repairCommand':REPAIR_COMMAND};}const _0x1ead61=installedSkillPath(_0x404377[_0x1fae4(0x19d)]??homedir());if(_0x1ead61['state']==='missing')return{'state':_0x1fae4(0x1d5),'packageVersion':_0x1f599b['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1ead61['state']===_0x1fae4(0x1a9))return{'state':_0x1fae4(0x1a9),'packageVersion':_0x1f599b[_0x1fae4(0x1cc)],'reason':_0x1ead61[_0x1fae4(0x19f)],'repairCommand':REPAIR_COMMAND};try{const _0x299c63=frontmatterValue(readFileSync(join(_0x1ead61['path'],'SKILL.md'),_0x1fae4(0x1ce)),_0x1fae4(0x1bb));if(_0x299c63!==_0x1f599b[_0x1fae4(0x1d6)])return{'state':_0x1fae4(0x1aa),'packageVersion':_0x1f599b[_0x1fae4(0x1cc)],'skillVersion':_0x299c63,'installedPath':_0x1ead61[_0x1fae4(0x1a5)],'repairCommand':REPAIR_COMMAND};const _0x1ad3aa=listFiles(_0x1ead61['path']),_0x4465c2=digestFiles(_0x1ead61['path'],_0x1ad3aa);return{'state':sameFiles(_0x1ad3aa,_0x1f599b[_0x1fae4(0x1d9)][_0x1fae4(0x1b3)])&&_0x4465c2===_0x1f599b[_0x1fae4(0x1d9)]['digest']?_0x1fae4(0x1db):_0x1fae4(0x1b6),'packageVersion':_0x1f599b[_0x1fae4(0x1cc)],'skillVersion':_0x299c63,'installedPath':_0x1ead61['path'],'digest':_0x4465c2,'repairCommand':REPAIR_COMMAND};}catch(_0x192ab1){return{'state':_0x1fae4(0x1a9),'packageVersion':_0x1f599b['packageVersion'],'installedPath':_0x1ead61[_0x1fae4(0x1a5)],'reason':_0x192ab1 instanceof Error?_0x192ab1[_0x1fae4(0x1ba)]:String(_0x192ab1),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2eb4a5,_0x5909a4,_0xd3857f,_0x5e28f8){const _0x2668c9=a328_0x126958;return{'ok':![],'code':_0x2eb4a5,'packageVersion':_0x5909a4[_0x2668c9(0x1cc)],'skillVersion':_0x5909a4['skillVersion'],'installedPath':_0x5e28f8,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0xd3857f instanceof Error?_0xd3857f[_0x2668c9(0x1ba)]:String(_0xd3857f)};}export function installBuiltinSkill(_0x4cecb5={}){const _0x264220=a328_0x126958,_0xcb6703=_0x4cecb5[_0x264220(0x1a8)]??DEFAULT_PACKAGE_ROOT,_0x557b39=_0x4cecb5[_0x264220(0x19d)]??homedir();let _0x3fc26b;try{_0x3fc26b=readSource(_0xcb6703);}catch(_0x4065b0){return failure('SOURCE_INVALID',{'packageVersion':_0x264220(0x1d1),'skillVersion':_0x264220(0x1d1)},_0x4065b0);}const _0x2a414f=inspectBuiltinSkill({'packageRoot':_0xcb6703,'home':_0x557b39}),_0xac494f=runNpxSkillsAddGlobal(_0xcb6703,_0x3fc26b[_0x264220(0x1ad)],{'stdio':_0x4cecb5[_0x264220(0x1b5)]??_0x264220(0x1d2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x557b39}});if(_0xac494f['skipped'])return{'ok':!![],'packageVersion':_0x3fc26b[_0x264220(0x1cc)],'skillVersion':_0x3fc26b['skillVersion'],'installedPath':_0x2a414f[_0x264220(0x1da)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xac494f['ok'])return failure(_0x264220(0x1cd),_0x3fc26b,_0xac494f[_0x264220(0x1e1)]??_0x264220(0x1a0)+_0xac494f[_0x264220(0x1d0)]);const _0x25ec8=inspectBuiltinSkill({'packageRoot':_0xcb6703,'home':_0x557b39});if(_0x25ec8[_0x264220(0x19c)]!==_0x264220(0x1db)){const _0x2846de=_0x25ec8['reason']??_0x264220(0x1af)+_0x25ec8['state'];return failure(_0x264220(0x19e),_0x3fc26b,_0xac494f[_0x264220(0x1d3)]?_0x2846de+'\x0a'+_0xac494f[_0x264220(0x1d3)][_0x264220(0x1c0)]:_0x2846de,_0x25ec8['installedPath']);}return _0xac494f[_0x264220(0x1d3)]&&(debug(_0x264220(0x1b9),_0xac494f[_0x264220(0x1d3)][_0x264220(0x1c0)]),console[_0x264220(0x1dc)]('CLI\x20Built-in\x20Skill\x20'+_0x3fc26b['skillVersion']+_0x264220(0x1b0)+_0xac494f[_0x264220(0x1d3)][_0x264220(0x1c7)]+_0x264220(0x1d4))),{'ok':!![],'packageVersion':_0x3fc26b[_0x264220(0x1cc)],'skillVersion':_0x3fc26b[_0x264220(0x1d6)],'installedPath':_0x25ec8[_0x264220(0x1da)],'changed':_0x2a414f['state']!==_0x264220(0x1db),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
function a342_0x4e55(){const _0x4f2540=['name','skipped','Symbolic\x20link\x20is\x20not\x20allowed:\x20',':\x5cs*(.+)$','14OzWBVC','rabetbase\x20cli-skill\x20install','parse','1716XNuMPr','sha256','digest','count','skillVersion','utf8','manifest','every','packageRoot','20673toggpj','isDirectory','skills','INSTALL_FAILED','isFile','5nzrerE','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','startsWith','unverifiable','log','unknown','stdio','match','path','installedPath','isSymbolicLink','missing','rabetbase-skills','1036676UpKCoy','SKILL.md','message','packageVersion','partialFailure','output','root','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','trim','files','join','flatMap','version_mismatch','sort','content_mismatch','449CxhdbI','136296axkUzR','package.json','9092413TSdtOd','length','Unsafe\x20manifest\x20path:\x20','rabetbase.manifest.json','split','478qrJOua','hex','CLI\x20Built-in\x20Skill\x20','home','1432GbeKvN','pipe','state','absent','includes','10hYTEpw','633336tbiCuA','reason','\x20verified;\x20','Installed\x20Skill\x20state\x20is\x20','schemaVersion','update','version','SOURCE_INVALID','rabetbase','status','present','current','211476kXQzFU'];a342_0x4e55=function(){return _0x4f2540;};return a342_0x4e55();}const a342_0x4b01fe=a342_0x4d46;(function(_0x3e2842,_0x18ec84){const _0x3331b9=a342_0x4d46,_0x3a8a80=_0x3e2842();while(!![]){try{const _0x388a97=parseInt(_0x3331b9(0xa9))/0x1*(-parseInt(_0x3331b9(0xb1))/0x2)+-parseInt(_0x3331b9(0xbb))/0x3+-parseInt(_0x3331b9(0x9a))/0x4*(parseInt(_0x3331b9(0x8d))/0x5)+parseInt(_0x3331b9(0xaa))/0x6*(parseInt(_0x3331b9(0x7c))/0x7)+-parseInt(_0x3331b9(0xb5))/0x8*(parseInt(_0x3331b9(0x88))/0x9)+parseInt(_0x3331b9(0xba))/0xa*(-parseInt(_0x3331b9(0xac))/0xb)+parseInt(_0x3331b9(0x77))/0xc*(parseInt(_0x3331b9(0x7f))/0xd);if(_0x388a97===_0x18ec84)break;else _0x3a8a80['push'](_0x3a8a80['shift']());}catch(_0xbd5b32){_0x3a8a80['push'](_0x3a8a80['shift']());}}}(a342_0x4e55,0x87d2a));import{createHash}from'node:crypto';function a342_0x4d46(_0x1f2561,_0x562c26){_0x1f2561=_0x1f2561-0x6d;const _0x4e5535=a342_0x4e55();let _0x4d4618=_0x4e5535[_0x1f2561];return _0x4d4618;}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=a342_0x4b01fe(0x7d),SKILL_NAME=a342_0x4b01fe(0x73),debug=debuglog(a342_0x4b01fe(0x99));function frontmatterValue(_0x4c7809,_0x4c020){const _0x1b3126=a342_0x4b01fe;return _0x4c7809[_0x1b3126(0x94)](new RegExp('^'+_0x4c020+_0x1b3126(0x7b),'m'))?.[0x1]?.[_0x1b3126(0xa2)]()??'';}function listFiles(_0x56ad9c,_0xd54b3=_0x56ad9c){const _0x21e14d=a342_0x4b01fe;return readdirSync(_0xd54b3,{'withFileTypes':!![]})[_0x21e14d(0xa5)](_0x3ed492=>{const _0x5ea6ef=_0x21e14d,_0x11aa35=join(_0xd54b3,_0x3ed492['name']),_0x8ab3a8=lstatSync(_0x11aa35);if(_0x8ab3a8[_0x5ea6ef(0x97)]())throw new Error(_0x5ea6ef(0x7a)+_0x11aa35);if(_0x8ab3a8[_0x5ea6ef(0x89)]())return listFiles(_0x56ad9c,_0x11aa35);if(!_0x8ab3a8[_0x5ea6ef(0x8c)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x11aa35);return[relative(_0x56ad9c,_0x11aa35)[_0x5ea6ef(0xb0)](sep)[_0x5ea6ef(0xa4)]('/')];})[_0x21e14d(0xa7)]((_0xc99d90,_0x19da94)=>_0xc99d90<_0x19da94?-0x1:_0xc99d90>_0x19da94?0x1:0x0);}function digestFiles(_0x4d451b,_0x403a21){const _0x47a4f4=a342_0x4b01fe,_0x40b3d0=createHash(_0x47a4f4(0x80));for(const _0x118173 of _0x403a21){if(_0x118173[_0x47a4f4(0x8f)]('/')||_0x118173[_0x47a4f4(0xb0)]('/')[_0x47a4f4(0xb9)]('..')||_0x118173[_0x47a4f4(0xb9)]('\x5c'))throw new Error(_0x47a4f4(0xae)+_0x118173);_0x40b3d0['update'](_0x118173),_0x40b3d0[_0x47a4f4(0x70)]('\x00'),_0x40b3d0[_0x47a4f4(0x70)](readFileSync(join(_0x4d451b,..._0x118173[_0x47a4f4(0xb0)]('/')))),_0x40b3d0['update']('\x00');}return _0x40b3d0[_0x47a4f4(0x81)](_0x47a4f4(0xb2));}function sameFiles(_0x420671,_0x401342){const _0x9c221e=a342_0x4b01fe;return _0x420671[_0x9c221e(0xad)]===_0x401342[_0x9c221e(0xad)]&&_0x420671[_0x9c221e(0x86)]((_0x4ceac3,_0xf65a5a)=>_0x4ceac3===_0x401342[_0xf65a5a]);}function readSource(_0x3a2640){const _0x3b6861=a342_0x4b01fe,_0x598550=JSON[_0x3b6861(0x7e)](readFileSync(join(_0x3a2640,_0x3b6861(0xab)),_0x3b6861(0x84))),_0x19aeb7=JSON[_0x3b6861(0x7e)](readFileSync(join(_0x3a2640,_0x3b6861(0x8a),_0x3b6861(0xaf)),_0x3b6861(0x84))),_0x11d34f=join(_0x3a2640,_0x3b6861(0x8a),SKILL_NAME),_0xe045f7=frontmatterValue(readFileSync(join(_0x11d34f,_0x3b6861(0x9b)),_0x3b6861(0x84)),_0x3b6861(0x71)),_0x2cb1a3=listFiles(_0x11d34f);if(_0x19aeb7[_0x3b6861(0x6f)]!==0x1||_0x19aeb7[_0x3b6861(0x78)]!==SKILL_NAME||!_0x598550['version']||_0x19aeb7[_0x3b6861(0x9d)]!==_0x598550['version']||_0x19aeb7[_0x3b6861(0x83)]!==_0x598550[_0x3b6861(0x71)]||_0xe045f7!==_0x598550[_0x3b6861(0x71)]||!sameFiles(_0x2cb1a3,_0x19aeb7[_0x3b6861(0xa3)])||digestFiles(_0x11d34f,_0x2cb1a3)!==_0x19aeb7[_0x3b6861(0x81)])throw new Error(_0x3b6861(0x8e));return{'packageVersion':_0x598550[_0x3b6861(0x71)],'skillVersion':_0xe045f7,'root':_0x11d34f,'manifest':_0x19aeb7};}function installedSkillPath(_0x1a7c0b){const _0x4a9a2c=a342_0x4b01fe,_0xd1c7f9=resolveInstalledSkill(SKILL_NAME,{'home':_0x1a7c0b});if(_0xd1c7f9[_0x4a9a2c(0xb7)]===_0x4a9a2c(0x75))return{'state':'present','path':dirname(_0xd1c7f9[_0x4a9a2c(0x95)])};if(_0xd1c7f9[_0x4a9a2c(0xb7)]===_0x4a9a2c(0xb8))return{'state':_0x4a9a2c(0x98)};return{'state':_0x4a9a2c(0x90),'reason':_0xd1c7f9[_0x4a9a2c(0xbc)]};}export function inspectInstalledBuiltinSkillVersion(_0x5f59aa,_0x5a131a={}){const _0x212558=a342_0x4b01fe,_0x9828b4=installedSkillPath(_0x5a131a[_0x212558(0xb4)]??homedir());if(_0x9828b4[_0x212558(0xb7)]===_0x212558(0x98))return{'state':_0x212558(0x98),'expectedVersion':_0x5f59aa,'repairCommand':REPAIR_COMMAND};if(_0x9828b4[_0x212558(0xb7)]===_0x212558(0x90))return{'state':'unverifiable','expectedVersion':_0x5f59aa,'reason':_0x9828b4[_0x212558(0xbc)],'repairCommand':REPAIR_COMMAND};try{const _0x4607d7=frontmatterValue(readFileSync(join(_0x9828b4[_0x212558(0x95)],_0x212558(0x9b)),'utf8'),_0x212558(0x71));return{'state':_0x4607d7===_0x5f59aa?_0x212558(0x76):_0x212558(0xa6),'expectedVersion':_0x5f59aa,'skillVersion':_0x4607d7,'installedPath':_0x9828b4[_0x212558(0x95)],'repairCommand':REPAIR_COMMAND};}catch(_0x281e94){return{'state':'unverifiable','expectedVersion':_0x5f59aa,'installedPath':_0x9828b4[_0x212558(0x95)],'reason':_0x281e94 instanceof Error?_0x281e94[_0x212558(0x9c)]:String(_0x281e94),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x41d64c={}){const _0x1b1bd5=a342_0x4b01fe,_0x46f2c0=_0x41d64c[_0x1b1bd5(0x87)]??DEFAULT_PACKAGE_ROOT;let _0x46699d;try{_0x46699d=readSource(_0x46f2c0);}catch(_0x42cf34){return{'state':_0x1b1bd5(0x90),'packageVersion':'unknown','reason':_0x42cf34 instanceof Error?_0x42cf34[_0x1b1bd5(0x9c)]:String(_0x42cf34),'repairCommand':REPAIR_COMMAND};}const _0x1a013b=installedSkillPath(_0x41d64c['home']??homedir());if(_0x1a013b[_0x1b1bd5(0xb7)]===_0x1b1bd5(0x98))return{'state':_0x1b1bd5(0x98),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'repairCommand':REPAIR_COMMAND};if(_0x1a013b[_0x1b1bd5(0xb7)]===_0x1b1bd5(0x90))return{'state':'unverifiable','packageVersion':_0x46699d['packageVersion'],'reason':_0x1a013b[_0x1b1bd5(0xbc)],'repairCommand':REPAIR_COMMAND};try{const _0x1feee0=frontmatterValue(readFileSync(join(_0x1a013b[_0x1b1bd5(0x95)],_0x1b1bd5(0x9b)),_0x1b1bd5(0x84)),_0x1b1bd5(0x71));if(_0x1feee0!==_0x46699d['skillVersion'])return{'state':_0x1b1bd5(0xa6),'packageVersion':_0x46699d['packageVersion'],'skillVersion':_0x1feee0,'installedPath':_0x1a013b['path'],'repairCommand':REPAIR_COMMAND};const _0x2a4664=listFiles(_0x1a013b[_0x1b1bd5(0x95)]),_0x47da5b=digestFiles(_0x1a013b[_0x1b1bd5(0x95)],_0x2a4664);return{'state':sameFiles(_0x2a4664,_0x46699d[_0x1b1bd5(0x85)][_0x1b1bd5(0xa3)])&&_0x47da5b===_0x46699d[_0x1b1bd5(0x85)][_0x1b1bd5(0x81)]?_0x1b1bd5(0x76):_0x1b1bd5(0xa8),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'skillVersion':_0x1feee0,'installedPath':_0x1a013b[_0x1b1bd5(0x95)],'digest':_0x47da5b,'repairCommand':REPAIR_COMMAND};}catch(_0x3e2471){return{'state':_0x1b1bd5(0x90),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'installedPath':_0x1a013b[_0x1b1bd5(0x95)],'reason':_0x3e2471 instanceof Error?_0x3e2471[_0x1b1bd5(0x9c)]:String(_0x3e2471),'repairCommand':REPAIR_COMMAND};}}function failure(_0x34877e,_0x386d43,_0x4908d0,_0x164020){const _0x477d52=a342_0x4b01fe;return{'ok':![],'code':_0x34877e,'packageVersion':_0x386d43['packageVersion'],'skillVersion':_0x386d43[_0x477d52(0x83)],'installedPath':_0x164020,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4908d0 instanceof Error?_0x4908d0[_0x477d52(0x9c)]:String(_0x4908d0)};}export function installBuiltinSkill(_0x1bd608={}){const _0x51fe86=a342_0x4b01fe,_0x5ab30e=_0x1bd608[_0x51fe86(0x87)]??DEFAULT_PACKAGE_ROOT,_0x5d543e=_0x1bd608['home']??homedir();let _0x3a8545;try{_0x3a8545=readSource(_0x5ab30e);}catch(_0x4a2f72){return failure(_0x51fe86(0x72),{'packageVersion':_0x51fe86(0x92),'skillVersion':_0x51fe86(0x92)},_0x4a2f72);}const _0x249f29=inspectBuiltinSkill({'packageRoot':_0x5ab30e,'home':_0x5d543e}),_0xb3449f=runNpxSkillsAddGlobal(_0x5ab30e,_0x3a8545[_0x51fe86(0xa0)],{'stdio':_0x1bd608[_0x51fe86(0x93)]??_0x51fe86(0xb6),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x5d543e}});if(_0xb3449f[_0x51fe86(0x79)])return{'ok':!![],'packageVersion':_0x3a8545['packageVersion'],'skillVersion':_0x3a8545[_0x51fe86(0x83)],'installedPath':_0x249f29['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xb3449f['ok'])return failure(_0x51fe86(0x8b),_0x3a8545,_0xb3449f['error']??'skills@latest\x20exited\x20'+_0xb3449f[_0x51fe86(0x74)]);const _0xc9f887=inspectBuiltinSkill({'packageRoot':_0x5ab30e,'home':_0x5d543e});if(_0xc9f887[_0x51fe86(0xb7)]!==_0x51fe86(0x76)){const _0x22e0f2=_0xc9f887[_0x51fe86(0xbc)]??_0x51fe86(0x6e)+_0xc9f887['state'];return failure('VERIFY_FAILED',_0x3a8545,_0xb3449f[_0x51fe86(0x9e)]?_0x22e0f2+'\x0a'+_0xb3449f['partialFailure']['output']:_0x22e0f2,_0xc9f887[_0x51fe86(0x96)]);}return _0xb3449f[_0x51fe86(0x9e)]&&(debug(_0x51fe86(0xa1),_0xb3449f[_0x51fe86(0x9e)][_0x51fe86(0x9f)]),console[_0x51fe86(0x91)](_0x51fe86(0xb3)+_0x3a8545['skillVersion']+_0x51fe86(0x6d)+_0xb3449f[_0x51fe86(0x9e)][_0x51fe86(0x82)]+'\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.')),{'ok':!![],'packageVersion':_0x3a8545[_0x51fe86(0x9d)],'skillVersion':_0x3a8545[_0x51fe86(0x83)],'installedPath':_0xc9f887[_0x51fe86(0x96)],'changed':_0x249f29[_0x51fe86(0xb7)]!=='current','repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58c1ba,_0xc39fea){const _0x433db9=a343_0x1725,_0x574aed=_0x58c1ba();while(!![]){try{const _0x3d41da=parseInt(_0x433db9(0x90))/0x1*(parseInt(_0x433db9(0x8d))/0x2)+parseInt(_0x433db9(0x94))/0x3+parseInt(_0x433db9(0x9d))/0x4+parseInt(_0x433db9(0x85))/0x5+parseInt(_0x433db9(0x8e))/0x6+parseInt(_0x433db9(0x8a))/0x7+parseInt(_0x433db9(0x83))/0x8*(-parseInt(_0x433db9(0x97))/0x9);if(_0x3d41da===_0xc39fea)break;else _0x574aed['push'](_0x574aed['shift']());}catch(_0x15366e){_0x574aed['push'](_0x574aed['shift']());}}}(a343_0x35dc,0x1cf0c));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(_0x21bd12){const _0xd5b6b9=a343_0x1725,_0x35ac4d=[];for(const [_0x2aff8f,_0x1d7c60]of Object['entries'](_0x21bd12)){if(_0x1d7c60===!![]){const _0x24d603=_0x2aff8f[_0xd5b6b9(0x96)](/([A-Z])/g,_0xd5b6b9(0x8f))[_0xd5b6b9(0x91)]();_0x35ac4d['push'](_0x24d603);}}return _0x35ac4d;}export function parseDynamicFlags(){const _0x29c163=a343_0x1725,_0x5d8ce2=[];for(let _0xf4fea1=0x3;_0xf4fea1<process[_0x29c163(0x95)][_0x29c163(0x93)];_0xf4fea1++){const _0x48b9e8=process[_0x29c163(0x95)][_0xf4fea1];if(_0x48b9e8&&_0x48b9e8[_0x29c163(0x7e)]('--')){const _0x4108b1=_0x48b9e8['slice'](0x2);_0x4108b1&&!_0x4108b1[_0x29c163(0x87)]('=')&&_0x5d8ce2[_0x29c163(0x7d)](_0x4108b1);}}return _0x5d8ce2;}export function getAllProvidedFlags(_0x3a4e85){const _0x4f71fa=a343_0x1725,_0x5bbd14=camelCaseFlagsToKebab(_0x3a4e85),_0x3cb807=parseDynamicFlags(),_0x175639=new Set([..._0x5bbd14,..._0x3cb807]);return Array[_0x4f71fa(0x80)](_0x175639);}export function normalizeLegacyBffSaveFlags(_0x539985){const _0x19f7cf=a343_0x1725,_0x109ff2=new Set(_0x539985);return _0x109ff2[_0x19f7cf(0x88)](_0x19f7cf(0x82))&&_0x109ff2[_0x19f7cf(0x8b)](_0x19f7cf(0x92)),Array[_0x19f7cf(0x80)](_0x109ff2);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a343_0x1725(_0x98b934,_0x9afe5d){_0x98b934=_0x98b934-0x7c;const _0x35dcb0=a343_0x35dc();let _0x1725c2=_0x35dcb0[_0x98b934];return _0x1725c2;}export async function skillsCommand(_0x28d53e,_0x4cc735,_0x12096c){const _0x5a9333=a343_0x1725;logger['setLogPath'](process[_0x5a9333(0x81)]());if(_0x12096c?.[_0x5a9333(0x84)]||_0x28d53e===_0x5a9333(0x9b)){showHelp();return;}console['error'](_0x5a9333(0x7f)+(_0x28d53e||_0x5a9333(0x98))),console[_0x5a9333(0x9f)]('\x0aAvailable\x20commands:'),console[_0x5a9333(0x9f)]('\x20\x20'+CLI_BIN_NAME+_0x5a9333(0x89)),console[_0x5a9333(0x9f)](''),console['log'](_0x5a9333(0x8c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5a9333(0x99)](_0x5a9333(0x7c),_0x5a9333(0x86)+_0x28d53e),process[_0x5a9333(0x9c)](0x1);}function showHelp(){const _0xac5136=a343_0x1725;console[_0xac5136(0x9f)](_0xac5136(0x9e)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0xac5136(0x9a));}function a343_0x35dc(){const _0x4d0605=['argv','replace','45MlyPjT','(empty)','error','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','--help','exit','831248KInwck','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','log','skill','push','startsWith','Error:\x20Unsupported\x20command:\x20','from','cwd','dangerously-bff-save','744744iOkxBx','help','323290wKzcou','Unsupported\x20command:\x20','includes','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','197855xImYdR','add','Public\x20Open\x20Skill\x20source:\x20','29324XaOPmh','274002BzWmnO','-$1','11tpUynt','toLowerCase','enable-bff-save','length','228963KWPdMd'];a343_0x35dc=function(){return _0x4d0605;};return a343_0x35dc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a344_0xd1b445=a344_0x19eb;(function(_0x4c59a9,_0xace61f){const _0x1ff1e7=a344_0x19eb,_0x524989=_0x4c59a9();while(!![]){try{const _0x471a19=-parseInt(_0x1ff1e7(0x1c7))/0x1+-parseInt(_0x1ff1e7(0x1f6))/0x2+-parseInt(_0x1ff1e7(0x1cc))/0x3*(parseInt(_0x1ff1e7(0x1ef))/0x4)+parseInt(_0x1ff1e7(0x1da))/0x5+parseInt(_0x1ff1e7(0x1e1))/0x6+parseInt(_0x1ff1e7(0x1ee))/0x7+parseInt(_0x1ff1e7(0x1ea))/0x8;if(_0x471a19===_0xace61f)break;else _0x524989['push'](_0x524989['shift']());}catch(_0x1ef9e2){_0x524989['push'](_0x524989['shift']());}}}(a344_0x54ba,0xdd0a3));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';function a344_0x19eb(_0x1844c9,_0x36a0cf){_0x1844c9=_0x1844c9-0x1bf;const _0x54ba59=a344_0x54ba();let _0x19eb75=_0x54ba59[_0x1844c9];return _0x19eb75;}export const NPX_SKILLS_SUBCOMMAND_ADD=a344_0xd1b445(0x1f9);export const NPX_SKILLS_FLAG_SKILL=a344_0xd1b445(0x1c6);export const RABETBASE_SKILL_SOURCE=a344_0xd1b445(0x1d1);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a344_0xd1b445(0x1e4);export function resolveGlobalSkillName(_0x50381b){const _0x380f41=a344_0xd1b445;switch(_0x50381b[_0x380f41(0x1e9)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x55c7ea){const _0x48e1d2=a344_0xd1b445,_0x237b0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x55c7ea&&_0x237b0e[_0x48e1d2(0x1e8)](NPX_SKILLS_FLAG_SKILL,_0x55c7ea),_0x237b0e;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a344_0xd1b445(0x1c5),...buildNpxSkillsAddArgv()][a344_0xd1b445(0x1eb)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a344_0xd1b445(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a344_0xd1b445(0x1eb)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x50fa95,_0x24d421,_0xcb77e2){return{'ok':![],'status':_0x24d421,'code':_0x50fa95,'error':'['+_0x50fa95+']\x20'+_0xcb77e2};}function a344_0x54ba(){const _0x279894=['filter','state','exitCode','ENOENT','checked','2352395kqajNc','absent','npm_config_global','stdio','pipe','log','skill','6002676SeHRoi','CHILD_TERMINATED','PERMISSION_DENIED','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','Skill\x20\x22','unknown','\x20failed\x20target(s)','push','trim','17085944vogfmw','join','message','present','2902865JqosuK','4DOxafI','npx\x20failed\x20to\x20start','SKILL_NOT_INSTALLED','stdout','CHILD_EXIT_NONZERO','warn','expectedSkillName','3096472lysTqP','EPERM','\x22\x20install\x20state:\x20','add','!\x20Could\x20not\x20verify\x20\x22','partialFailure','stderr','code','unverifiable','shortMessage','npx','--skill','1258657MeuoFO','NPX_NOT_FOUND','Installer\x20reported\x20','signal','EACCES','927273xkWyCb','match','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','lovrabet/rabetbase','presence','reason','INSTALL_PARTIAL'];a344_0x54ba=function(){return _0x279894;};return a344_0x54ba();}function execaOptions(_0x2760ca,_0x1755a8){const _0x15470b=a344_0xd1b445,_0x5d1b97={...process.env};return delete _0x5d1b97[_0x15470b(0x1dc)],delete _0x5d1b97['NPM_CONFIG_GLOBAL'],{'cwd':_0x2760ca,'stdio':_0x1755a8,'env':_0x5d1b97,'extendEnv':![],'shell':![],'reject':![],..._0x1755a8==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x39c8a6,_0x7d2067,_0x2c0536){const _0x53a53e=a344_0xd1b445,_0x2b385b=[_0x39c8a6[_0x53a53e(0x1f2)]?String(_0x39c8a6[_0x53a53e(0x1f2)]):'',_0x39c8a6[_0x53a53e(0x1c1)]?String(_0x39c8a6[_0x53a53e(0x1c1)]):'']['filter'](Boolean)[_0x53a53e(0x1eb)]('\x0a')['trim'](),_0x246c25=_0x39c8a6[_0x53a53e(0x1d7)]??null;if(_0x39c8a6['code']){const _0x183c0b=_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1d8)?_0x53a53e(0x1c8):_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1f7)||_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1cb)?_0x53a53e(0x1e3):_0x53a53e(0x1d0);return failure(_0x183c0b,_0x246c25,_0x39c8a6[_0x53a53e(0x1c4)]??_0x39c8a6[_0x53a53e(0x1ec)]??_0x39c8a6[_0x53a53e(0x1c2)]);}if(_0x39c8a6[_0x53a53e(0x1ca)])return failure(_0x53a53e(0x1e2),_0x246c25,_0x53a53e(0x1cf)+_0x39c8a6['signal']);if(_0x39c8a6['failed']&&_0x246c25===null)return failure(_0x53a53e(0x1d0),_0x246c25,_0x39c8a6[_0x53a53e(0x1c4)]??_0x39c8a6[_0x53a53e(0x1ec)]??_0x53a53e(0x1f0));if(_0x246c25!==0x0)return failure(_0x53a53e(0x1f3),_0x246c25,_0x2b385b||_0x39c8a6[_0x53a53e(0x1c4)]||'exit\x20'+(_0x246c25??_0x53a53e(0x1e6)));const _0xce2f1e=_0x7d2067?resolveInstalledSkill(_0x7d2067,_0x2c0536):undefined,_0xc418ff=_0x2b385b[_0x53a53e(0x1cd)](/Failed to install\s+(\d+)/i);if(_0xc418ff&&Number(_0xc418ff[0x1])>0x0){const _0x1456f3=_0x53a53e(0x1c9)+_0xc418ff[0x1]+_0x53a53e(0x1e7)+(_0x2b385b?':\x0a'+_0x2b385b:'');if(_0xce2f1e?.[_0x53a53e(0x1d6)]===_0x53a53e(0x1ed))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0xc418ff[0x1]),'output':_0x2b385b}};return failure(_0x53a53e(0x1d4),0x0,_0x1456f3);}if(_0xce2f1e){if(_0xce2f1e[_0x53a53e(0x1d6)]===_0x53a53e(0x1db))return failure(_0x53a53e(0x1f1),0x0,_0x53a53e(0x1e5)+_0x7d2067+_0x53a53e(0x1ce)+_0xce2f1e[_0x53a53e(0x1d9)][_0x53a53e(0x1eb)](',\x20')+')');_0xce2f1e['state']===_0x53a53e(0x1c3)&&console[_0x53a53e(0x1f4)](_0x53a53e(0x1bf)+_0x7d2067+_0x53a53e(0x1f8)+_0xce2f1e[_0x53a53e(0x1d3)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x487250,_0x422d97){const _0x4c7d31=a344_0xd1b445;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57c9e8=_0x422d97?.[_0x4c7d31(0x1dd)]??'inherit',_0x3202d1=buildNpxSkillsAddArgv(_0x422d97?.[_0x4c7d31(0x1e0)]),_0x4a63fd=['npx',..._0x3202d1]['join']('\x20');console[_0x4c7d31(0x1df)]('*\x20'+_0x4a63fd);const _0x620615=execaSync(_0x4c7d31(0x1c5),_0x3202d1,execaOptions(_0x487250,_0x57c9e8));return normalizeExecaResult(_0x620615);}export function runNpxSkillsAddGlobal(_0x48ca94,_0x3805ce,_0x5ae16b){const _0x656fe0=a344_0xd1b445;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5078b2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3805ce,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3ee123=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3805ce,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x656fe0(0x1eb)]('\x20');console[_0x656fe0(0x1df)]('*\x20'+_0x3ee123);const _0x3ec99d=execaSync(_0x656fe0(0x1c5),_0x5078b2,execaOptions(_0x48ca94,'pipe')),_0x322f6a=normalizeExecaResult(_0x3ec99d,_0x5ae16b?.[_0x656fe0(0x1f5)]??resolveGlobalSkillName(_0x3805ce),_0x5ae16b?.[_0x656fe0(0x1d2)]);if(_0x5ae16b?.['stdio']!==_0x656fe0(0x1de)&&!_0x322f6a[_0x656fe0(0x1c0)]){const _0x5f1094=[_0x3ec99d['stdout'],_0x3ec99d[_0x656fe0(0x1c1)]][_0x656fe0(0x1d5)](Boolean)[_0x656fe0(0x1eb)]('\x0a')[_0x656fe0(0x1e9)]();if(_0x5f1094)console[_0x656fe0(0x1df)](_0x5f1094);}return _0x322f6a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a345_0x13793c=a345_0x2c58;(function(_0x1af803,_0x13bbff){const _0x4a6093=a345_0x2c58,_0xaf66b8=_0x1af803();while(!![]){try{const _0x56b59c=parseInt(_0x4a6093(0xf3))/0x1*(-parseInt(_0x4a6093(0xd4))/0x2)+parseInt(_0x4a6093(0xe1))/0x3+-parseInt(_0x4a6093(0xd1))/0x4*(-parseInt(_0x4a6093(0xf5))/0x5)+-parseInt(_0x4a6093(0xe9))/0x6*(-parseInt(_0x4a6093(0xf2))/0x7)+-parseInt(_0x4a6093(0xe4))/0x8+-parseInt(_0x4a6093(0xdb))/0x9+parseInt(_0x4a6093(0xf0))/0xa*(parseInt(_0x4a6093(0xdd))/0xb);if(_0x56b59c===_0x13bbff)break;else _0xaf66b8['push'](_0xaf66b8['shift']());}catch(_0x37ad57){_0xaf66b8['push'](_0xaf66b8['shift']());}}}(a345_0x50e5,0xa97cd));function a345_0x50e5(){const _0xfbe9d5=['skills','49DEBBvy','843GaAXHi','version','475CkbYHT','32476CCsFCI','\x20is\x20unreadable:\x20','join','2330iEalYR','absent','SKILL.md','\x20records\x20\x22','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','message','.agents','6738570bsHPgO','not-recorded','2332748fdjVrw','present','map','kind','3989760DsbWrY','parse','object','9086744LCVnOb','\x20uses\x20unsupported\x20version\x20','utf8','reason','.claude','1069368WxyMrg','unusable','number','find','includes','unverifiable','globalSkillsDirs','10BSDIWs'];a345_0x50e5=function(){return _0xfbe9d5;};return a345_0x50e5();}function a345_0x2c58(_0x5ced0e,_0x589f49){_0x5ced0e=_0x5ced0e-0xd1;const _0x50e5c1=a345_0x50e5();let _0x2c584e=_0x50e5c1[_0x5ced0e];return _0x2c584e;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a345_0x13793c(0xda),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join(a345_0x13793c(0xe8),a345_0x13793c(0xf1))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2cc9c3,_0x5870f4){const _0x2fbda0=a345_0x13793c;if(!existsSync(_0x2cc9c3))return{'kind':_0x2fbda0(0xdc)};let _0x236bc5;try{_0x236bc5=JSON[_0x2fbda0(0xe2)](readFileSync(_0x2cc9c3,_0x2fbda0(0xe6)));}catch(_0x3ce6bb){return{'kind':'unusable','reason':_0x2cc9c3+_0x2fbda0(0xd2)+_0x3ce6bb[_0x2fbda0(0xd9)]};}const _0x4a4fcc=_0x236bc5;if(typeof _0x4a4fcc?.[_0x2fbda0(0xf4)]!==_0x2fbda0(0xeb)||!SUPPORTED_LOCK_VERSIONS[_0x2fbda0(0xed)](_0x4a4fcc[_0x2fbda0(0xf4)]))return{'kind':'unusable','reason':_0x2cc9c3+_0x2fbda0(0xe5)+String(_0x4a4fcc?.['version'])};if(!_0x4a4fcc['skills']||typeof _0x4a4fcc['skills']!==_0x2fbda0(0xe3))return{'kind':_0x2fbda0(0xea),'reason':_0x2cc9c3+'\x20has\x20no\x20skills\x20map'};return _0x4a4fcc[_0x2fbda0(0xf1)][_0x5870f4]?{'kind':'recorded'}:{'kind':_0x2fbda0(0xdc)};}export function resolveInstalledSkill(_0x15f2c9,_0x19ddd6){const _0x46cd71=a345_0x13793c,_0x1dbab4=_0x19ddd6?.['home']??homedir(),_0x39147a=_0x19ddd6?.[_0x46cd71(0xef)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x46cd71(0xdf)](_0x19e76f=>join(_0x1dbab4,_0x19e76f)),_0x3dda51=_0x19ddd6?.['lockFile']??join(_0x1dbab4,SKILL_LOCK_RELATIVE_PATH),_0x2a22d0=_0x39147a['map'](_0x1195d4=>join(_0x1195d4,_0x15f2c9,_0x46cd71(0xd6))),_0x4410ac=_0x2a22d0[_0x46cd71(0xec)](_0x35b759=>existsSync(_0x35b759));if(_0x4410ac)return{'state':_0x46cd71(0xde),'path':_0x4410ac};const _0x114af0=readLockLookup(_0x3dda51,_0x15f2c9);if(_0x114af0[_0x46cd71(0xe0)]===_0x46cd71(0xea))return{'state':_0x46cd71(0xee),'reason':_0x114af0[_0x46cd71(0xe7)]};if(_0x114af0[_0x46cd71(0xe0)]==='recorded')return{'state':_0x46cd71(0xee),'reason':_0x3dda51+_0x46cd71(0xd7)+_0x15f2c9+_0x46cd71(0xd8)+('('+_0x2a22d0[_0x46cd71(0xd3)](',\x20')+')')};return{'state':_0x46cd71(0xd5),'checked':_0x2a22d0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17ab6c,_0x3ba2a0){const _0x5c9998=a346_0x53ae,_0x53feaf=_0x17ab6c();while(!![]){try{const _0x5dcaf9=-parseInt(_0x5c9998(0x196))/0x1*(-parseInt(_0x5c9998(0x19f))/0x2)+parseInt(_0x5c9998(0x19d))/0x3+-parseInt(_0x5c9998(0x197))/0x4+parseInt(_0x5c9998(0x193))/0x5+parseInt(_0x5c9998(0x19b))/0x6+parseInt(_0x5c9998(0x190))/0x7+-parseInt(_0x5c9998(0x1a2))/0x8;if(_0x5dcaf9===_0x3ba2a0)break;else _0x53feaf['push'](_0x53feaf['shift']());}catch(_0x3923df){_0x53feaf['push'](_0x53feaf['shift']());}}}(a346_0x51df,0xa1af3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a346_0x53ae(_0x28f20d,_0x340d74){_0x28f20d=_0x28f20d-0x190;const _0x51df37=a346_0x51df();let _0x53ae8f=_0x51df37[_0x28f20d];return _0x53ae8f;}import{getCliVersion}from'../utils/version.js';function a346_0x51df(){const _0x3822aa=['14780624wMhadh','8871940sdcYtD','stringify','service','5302430dkvqsa','entries','message','465137fSyUSv','5073028afoWDp','rabetbase.command','command','some','5680662yVeWCe','error','114822bEnsug','durationMs','2QjmaPJ','test','flags'];a346_0x51df=function(){return _0x3822aa;};return a346_0x51df();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x358eab){const _0x57182c=a346_0x53ae;return SENSITIVE_PATTERNS[_0x57182c(0x19a)](_0x131881=>_0x131881[_0x57182c(0x1a0)](_0x358eab));}function sanitizeFlags(_0x53b017){const _0x2091e1=a346_0x53ae,_0x13d45f={};for(const [_0x438afe,_0x2871d9]of Object[_0x2091e1(0x194)](_0x53b017)){isSensitiveKey(_0x438afe)?_0x13d45f[_0x438afe]=_0x2871d9!=null&&_0x2871d9!==''?'[REDACTED]':_0x2871d9:_0x13d45f[_0x438afe]=_0x2871d9;}return _0x13d45f;}export async function reportCommandTrace(_0x330f30){const _0x58ddf4=a346_0x53ae;try{const _0x1f2ca1=sanitizeFlags(_0x330f30[_0x58ddf4(0x1a1)]);await sendCliTraceLog({'spanName':_0x58ddf4(0x198),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x330f30[_0x58ddf4(0x192)],'command.name':_0x330f30[_0x58ddf4(0x199)],'command.flags':JSON[_0x58ddf4(0x191)](_0x1f2ca1),..._0x330f30[_0x58ddf4(0x19e)]!=null?{'command.duration_ms':_0x330f30[_0x58ddf4(0x19e)]}:{},..._0x330f30[_0x58ddf4(0x19c)]?{'command.error':_0x330f30[_0x58ddf4(0x19c)]instanceof Error?_0x330f30[_0x58ddf4(0x19c)][_0x58ddf4(0x195)]:String(_0x330f30[_0x58ddf4(0x19c)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a347_0x405b(_0xa9e2b5,_0x595980){_0xa9e2b5=_0xa9e2b5-0x72;var _0x4f59cf=a347_0x4f59();var _0x405b52=_0x4f59cf[_0xa9e2b5];return _0x405b52;}(function(_0x2e50da,_0x3a935e){var _0x5963f2=a347_0x405b,_0x5a984a=_0x2e50da();while(!![]){try{var _0x3857fd=-parseInt(_0x5963f2(0x72))/0x1*(parseInt(_0x5963f2(0x7c))/0x2)+parseInt(_0x5963f2(0x7b))/0x3+-parseInt(_0x5963f2(0x7a))/0x4*(-parseInt(_0x5963f2(0x79))/0x5)+parseInt(_0x5963f2(0x7d))/0x6*(parseInt(_0x5963f2(0x78))/0x7)+-parseInt(_0x5963f2(0x76))/0x8+-parseInt(_0x5963f2(0x77))/0x9+parseInt(_0x5963f2(0x75))/0xa;if(_0x3857fd===_0x3a935e)break;else _0x5a984a['push'](_0x5a984a['shift']());}catch(_0x4be6fb){_0x5a984a['push'](_0x5a984a['shift']());}}}(a347_0x4f59,0x2f91f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a347_0x4f59(){var _0x1f02f5=['14GycuOt','5zzCJQD','747484seGkSn','40449eeceNx','2842HmHaYi','380748ERKPKk','Failed\x20to\x20report\x20CLI\x20help\x20trace:','12JCzoJP','service','cli.help','1446530ZgQktc','100544eOxvda','2227104PjmmCb'];a347_0x4f59=function(){return _0x1f02f5;};return a347_0x4f59();}export async function reportCliHelpTrace(_0x1154eb,_0x2f16bc){var _0x5333a7=a347_0x405b;try{await sendCliTraceLog({'spanName':_0x5333a7(0x74),'logData':{'rabetbase.help.kind':_0x1154eb,..._0x2f16bc?.[_0x5333a7(0x73)]&&{'rabetbase.help.service':_0x2f16bc['service']}}});}catch(_0x78971f){console['error'](_0x5333a7(0x7e),_0x78971f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5abece,_0x287495){const _0x431fe8=a348_0x1b9c,_0xf31296=_0x5abece();while(!![]){try{const _0x4a3115=-parseInt(_0x431fe8(0x17d))/0x1*(-parseInt(_0x431fe8(0x17e))/0x2)+-parseInt(_0x431fe8(0x183))/0x3*(-parseInt(_0x431fe8(0x176))/0x4)+-parseInt(_0x431fe8(0x180))/0x5+-parseInt(_0x431fe8(0x171))/0x6*(-parseInt(_0x431fe8(0x172))/0x7)+-parseInt(_0x431fe8(0x177))/0x8*(parseInt(_0x431fe8(0x17a))/0x9)+parseInt(_0x431fe8(0x17f))/0xa+parseInt(_0x431fe8(0x173))/0xb*(-parseInt(_0x431fe8(0x182))/0xc);if(_0x4a3115===_0x287495)break;else _0xf31296['push'](_0xf31296['shift']());}catch(_0x448cfc){_0xf31296['push'](_0xf31296['shift']());}}}(a348_0x4c0d,0xc8d03));function a348_0x1b9c(_0xac5dad,_0x186ee8){_0xac5dad=_0xac5dad-0x171;const _0x4c0d3d=a348_0x4c0d();let _0x1b9c13=_0x4c0d3d[_0xac5dad];return _0x1b9c13;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a348_0x4c0d(){const _0x2882a2=['31737qaFGmk','6ykkCQN','6592754Jrmijn','1111HnqqDB','user','username','436TbfvdL','144nxKHyK','email','daily','207171kfppKA','nickname','production','116989hCRJKo','2gaccgY','3943550XCgoqy','5783995uRzAYi','tenant','25260wHVBWX'];a348_0x4c0d=function(){return _0x2882a2;};return a348_0x4c0d();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x35e333=a348_0x1b9c,_0x3e883f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xdc3a7a=_0x3e883f?.[_0x35e333(0x174)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x35e333(0x179):_0x35e333(0x17c))}),setUserContext({'id':_0xdc3a7a?.['id'],'username':_0xdc3a7a?.[_0x35e333(0x175)],'nickname':_0xdc3a7a?.[_0x35e333(0x17b)],'email':_0xdc3a7a?.[_0x35e333(0x178)],'tenantCode':_0xdc3a7a?.[_0x35e333(0x181)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3e883f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9899cd,_0x293647){const _0x5baeb7=a349_0x5341,_0x5aaaaa=_0x9899cd();while(!![]){try{const _0x3353fe=-parseInt(_0x5baeb7(0x1be))/0x1*(parseInt(_0x5baeb7(0x1bf))/0x2)+-parseInt(_0x5baeb7(0x1c5))/0x3+-parseInt(_0x5baeb7(0x1b9))/0x4+-parseInt(_0x5baeb7(0x1c8))/0x5*(parseInt(_0x5baeb7(0x1c6))/0x6)+parseInt(_0x5baeb7(0x1c0))/0x7*(-parseInt(_0x5baeb7(0x1c4))/0x8)+-parseInt(_0x5baeb7(0x1c3))/0x9*(parseInt(_0x5baeb7(0x1bc))/0xa)+-parseInt(_0x5baeb7(0x1bb))/0xb*(-parseInt(_0x5baeb7(0x1ba))/0xc);if(_0x3353fe===_0x293647)break;else _0x5aaaaa['push'](_0x5aaaaa['shift']());}catch(_0x2ed43f){_0x5aaaaa['push'](_0x5aaaaa['shift']());}}}(a349_0x5667,0xecb78));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a349_0x5667(){const _0x25c00b=['once','8135937DZZGhV','24VQKAUT','5603868VMFdRB','8214IHrHTb','SIGINT','145wIbExw','SIGTERM','339856VLxYqN','1812Dlfiiy','373978pWWyju','10JtuauH','beforeExit','540743UBuWEw','4UbtlRO','434014jSlYBd','exit'];a349_0x5667=function(){return _0x25c00b;};return a349_0x5667();}function a349_0x5341(_0x23e34e,_0x5f4320){_0x23e34e=_0x23e34e-0x1b9;const _0x56673b=a349_0x5667();let _0x5341e0=_0x56673b[_0x23e34e];return _0x5341e0;}export function registerOtelShutdownOnExit(){const _0x1ef796=a349_0x5341;process[_0x1ef796(0x1c2)](_0x1ef796(0x1bd),()=>{void flushOtelNodeIfUsed();});const _0x1104fe=()=>{const _0xfebf95=_0x1ef796;void flushOtelNodeIfUsed()['then'](()=>process[_0xfebf95(0x1c1)](0x0));};process[_0x1ef796(0x1c2)](_0x1ef796(0x1c7),_0x1104fe),process[_0x1ef796(0x1c2)](_0x1ef796(0x1c9),_0x1104fe);}export async function exitWithOtelShutdown(_0x2c7831){const _0x3e4ea6=a349_0x5341;await flushOtelNodeIfUsed(),process[_0x3e4ea6(0x1c1)](_0x2c7831);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a350_0x4da2(_0x147cd5,_0x220c86){_0x147cd5=_0x147cd5-0x1e1;const _0x350783=a350_0x3507();let _0x4da2b8=_0x350783[_0x147cd5];return _0x4da2b8;}const a350_0x2f7f56=a350_0x4da2;(function(_0x302e0d,_0x15b9a5){const _0x74fc96=a350_0x4da2,_0x3bb611=_0x302e0d();while(!![]){try{const _0x1f02ae=parseInt(_0x74fc96(0x1e5))/0x1+parseInt(_0x74fc96(0x1ed))/0x2+-parseInt(_0x74fc96(0x1e9))/0x3*(parseInt(_0x74fc96(0x1ea))/0x4)+parseInt(_0x74fc96(0x1e1))/0x5+-parseInt(_0x74fc96(0x1ec))/0x6*(-parseInt(_0x74fc96(0x1e7))/0x7)+-parseInt(_0x74fc96(0x1e2))/0x8+-parseInt(_0x74fc96(0x1e3))/0x9;if(_0x1f02ae===_0x15b9a5)break;else _0x3bb611['push'](_0x3bb611['shift']());}catch(_0x2d7a9f){_0x3bb611['push'](_0x3bb611['shift']());}}}(a350_0x3507,0x7d188));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a350_0x2f7f56(0x1e8);export async function sendCliTraceLog(_0x4b837d){const _0x291935=a350_0x2f7f56;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4b837d[_0x291935(0x1ef)]??DEFAULT_TRACE_NAME,'version':_0x4b837d[_0x291935(0x1e6)]??getCliVersion(),'spanName':_0x4b837d[_0x291935(0x1e4)],'eventType':_0x291935(0x1eb),'logData':_0x4b837d['logData'],..._0x4b837d[_0x291935(0x1ee)]&&{'traceparent':_0x4b837d[_0x291935(0x1ee)]}});}function a350_0x3507(){const _0x1c1294=['9675369YrSlWX','spanName','734482lPPkWe','version','1910153lKKHoB','rabetbase-cli','60qbcUJC','125096rAHqvp','manual','12aBDKEd','1577972xxApBF','traceparent','traceName','3995630GPHYVj','5243512NLOcbZ'];a350_0x3507=function(){return _0x1c1294;};return a350_0x3507();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a351_0x35e0d6=a351_0xdfe2;(function(_0x2e6929,_0x370f2e){const _0x38256d=a351_0xdfe2,_0x41a057=_0x2e6929();while(!![]){try{const _0x4079cf=parseInt(_0x38256d(0x1f4))/0x1*(-parseInt(_0x38256d(0x1f3))/0x2)+-parseInt(_0x38256d(0x1f2))/0x3+-parseInt(_0x38256d(0x1eb))/0x4+-parseInt(_0x38256d(0x1e7))/0x5+-parseInt(_0x38256d(0x1ea))/0x6+parseInt(_0x38256d(0x1e9))/0x7+-parseInt(_0x38256d(0x1e5))/0x8*(-parseInt(_0x38256d(0x1ed))/0x9);if(_0x4079cf===_0x370f2e)break;else _0x41a057['push'](_0x41a057['shift']());}catch(_0x5b6f62){_0x41a057['push'](_0x41a057['shift']());}}}(a351_0x2479,0x7f4ea));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a351_0x35e0d6(0x1ef);function a351_0xdfe2(_0x173916,_0x5d1645){_0x173916=_0x173916-0x1e4;const _0x2479b2=a351_0x2479();let _0xdfe272=_0x2479b2[_0x173916];return _0xdfe272;}export const PLATFORM_ISSUE_SPAN_NAME=a351_0x35e0d6(0x1f0);export async function sendPlatformIssueCollectLog(_0xfed9fa){const _0x3b2310=a351_0x35e0d6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xfed9fa[_0x3b2310(0x1e8)],'issue.description':_0xfed9fa['description'],..._0xfed9fa[_0x3b2310(0x1e6)]?{'issue.description_original_bytes':_0xfed9fa['sanitize'][_0x3b2310(0x1f1)],'issue.description_truncated':_0xfed9fa[_0x3b2310(0x1e6)]['truncated'],'issue.description_redactions':_0xfed9fa[_0x3b2310(0x1e6)][_0x3b2310(0x1ee)],'issue.description_redaction_kinds':_0xfed9fa['sanitize'][_0x3b2310(0x1e4)][_0x3b2310(0x1ec)](',')}:{}}});}function a351_0x2479(){const _0x3693db=['platform-issue-log-collect','issue.log.collect','originalBytes','2972205XUphIo','1262WjFNrQ','499TjeEIw','redactionKinds','8499424EKpedR','sanitize','4719510UzSbJx','title','901152OLyIej','5119140GcHrPH','3017208FLlqor','join','36JkIgFD','redactionCount'];a351_0x2479=function(){return _0x3693db;};return a351_0x2479();}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a353_0x2f555a=a353_0x1bc6;(function(_0x12945b,_0x1ab679){const _0x4ba4f4=a353_0x1bc6,_0x5c00dd=_0x12945b();while(!![]){try{const _0xd1b071=-parseInt(_0x4ba4f4(0xa3))/0x1+-parseInt(_0x4ba4f4(0xb1))/0x2+-parseInt(_0x4ba4f4(0xc4))/0x3+parseInt(_0x4ba4f4(0xb3))/0x4+-parseInt(_0x4ba4f4(0xa4))/0x5+parseInt(_0x4ba4f4(0xac))/0x6*(parseInt(_0x4ba4f4(0xbf))/0x7)+-parseInt(_0x4ba4f4(0xb5))/0x8*(-parseInt(_0x4ba4f4(0xc7))/0x9);if(_0xd1b071===_0x1ab679)break;else _0x5c00dd['push'](_0x5c00dd['shift']());}catch(_0x2f8b63){_0x5c00dd['push'](_0x5c00dd['shift']());}}}(a353_0x36ea,0x1e099));export const CORE_IDE_CONFIGS={'cursor':{'name':a353_0x2f555a(0x9d),'description':a353_0x2f555a(0xba),'folders':[a353_0x2f555a(0xd3),a353_0x2f555a(0x9e)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xcd)}]},'windsurf':{'name':a353_0x2f555a(0xad),'description':a353_0x2f555a(0xa0),'folders':[a353_0x2f555a(0xa8)],'files':[{'type':a353_0x2f555a(0xcb),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a353_0x2f555a(0x9f),'folders':[a353_0x2f555a(0xc9)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc2)}]},'cline':{'name':a353_0x2f555a(0xb0),'description':a353_0x2f555a(0xd1),'folders':[a353_0x2f555a(0xca)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xb4)}]},'codex':{'name':a353_0x2f555a(0xa2),'description':'Codex\x20IDE','folders':[a353_0x2f555a(0xa5)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xaa)}]},'opencode':{'name':a353_0x2f555a(0xc0),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':'file','path':a353_0x2f555a(0xce)}]},'qoder':{'name':a353_0x2f555a(0xa6),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc1)},{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xcc)}]},'codebuddy':{'name':a353_0x2f555a(0xbe),'description':a353_0x2f555a(0xc8),'folders':[a353_0x2f555a(0xb9)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc3)}]},'trae':{'name':a353_0x2f555a(0xbc),'description':a353_0x2f555a(0xae),'folders':[a353_0x2f555a(0xa7)],'files':[{'type':a353_0x2f555a(0xcb),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a353_0x2f555a(0xa1),'folders':['.agent'],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xbb)}]},'antigravity':{'name':a353_0x2f555a(0xb8),'description':a353_0x2f555a(0xd2),'folders':['.agent'],'files':[{'type':'file','path':a353_0x2f555a(0xbb)}]}};export const CORE_IDE_LIST=[a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),'codebuddy',a353_0x2f555a(0xa9),'cursor',a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xcf),a353_0x2f555a(0xb2)];export const IDE_LIST=[a353_0x2f555a(0xbd),a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),a353_0x2f555a(0xab),a353_0x2f555a(0xa9),a353_0x2f555a(0xaf),a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xcf),a353_0x2f555a(0xb2),a353_0x2f555a(0xb7)];function a353_0x36ea(){const _0xa77e93=['Windsurf\x20IDE','Generic\x20template\x20fallback','Codex','100964BlWzWO','160380cwlEQg','.codex','Qoder','.trae','.windsurf','codex','.codex/skills/lovrabet/SKILL.md','codebuddy','12EWpDMx','Windsurf','Trae\x20IDE','cursor','Cline','159820jUlejR','windsurf','751784dHXkjm','.cline/skills/lovrabet/SKILL.md','149936qBujNt','qoder','agent','Antigravity','.codebuddy','Cursor\x20IDE','.agent/skills/lovrabet/SKILL.md','Trae','antigravity','CodeBuddy','276297PeQeym','OpenCode','.qoder/rules/rabetbase.md','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','17619ByfkRG','claude','cline','36UqiYOd','CodeBuddy\x20IDE','.claude','.cline','file','.qoder/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','trae','opencode','Cline\x20IDE','Antigravity\x20IDE','.cursorrules','Cursor','.cursor','Claude\x20Code'];a353_0x36ea=function(){return _0xa77e93;};return a353_0x36ea();}function a353_0x1bc6(_0x2e9c50,_0xce0e92){_0x2e9c50=_0x2e9c50-0x9d;const _0x36ea24=a353_0x36ea();let _0x1bc646=_0x36ea24[_0x2e9c50];return _0x1bc646;}export const ALL_CORE_IDES=[a353_0x2f555a(0xaf),a353_0x2f555a(0xb2),a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),a353_0x2f555a(0xa9),a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xab),a353_0x2f555a(0xcf)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5167af,_0xca316c){const _0x56f807=a354_0x5db5,_0x4a07b3=_0x5167af();while(!![]){try{const _0x22fad0=-parseInt(_0x56f807(0xf7))/0x1+parseInt(_0x56f807(0xf9))/0x2*(-parseInt(_0x56f807(0xfc))/0x3)+-parseInt(_0x56f807(0xf8))/0x4+-parseInt(_0x56f807(0xfd))/0x5+parseInt(_0x56f807(0xfe))/0x6+-parseInt(_0x56f807(0xfb))/0x7+parseInt(_0x56f807(0xfa))/0x8;if(_0x22fad0===_0xca316c)break;else _0x4a07b3['push'](_0x4a07b3['shift']());}catch(_0x2d1650){_0x4a07b3['push'](_0x4a07b3['shift']());}}}(a354_0x3376,0xe5d21));function a354_0x3376(){const _0x320074=['2956612jOYTiY','1916TBlIsC','23849000GODnzC','347368mePMYX','3225bQSyVH','1056260YOGuhW','4159980zziSUY','703231CsEtRr'];a354_0x3376=function(){return _0x320074;};return a354_0x3376();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a354_0x5db5(_0x33ab41,_0x23c6af){_0x33ab41=_0x33ab41-0xf7;const _0x33766c=a354_0x3376();let _0x5db505=_0x33766c[_0x33ab41];return _0x5db505;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a355_0x2a82(){const _0x45b9f8=['now','20ERvytg','2025558sjhmAl','2337404IbKDme','stableVersion','1509114yyPASj','application/json','11802028IURBuc','35033440dKRnGn','node','json','cli','1648405xLshgH','2196912GrPgqc','sdk'];a355_0x2a82=function(){return _0x45b9f8;};return a355_0x2a82();}(function(_0x1466d2,_0x28b8cc){const _0x3b2f9f=a355_0x1870,_0x57fb78=_0x1466d2();while(!![]){try{const _0x414192=parseInt(_0x3b2f9f(0xbc))/0x1+-parseInt(_0x3b2f9f(0xb5))/0x2+parseInt(_0x3b2f9f(0xc1))/0x3+parseInt(_0x3b2f9f(0xc2))/0x4+parseInt(_0x3b2f9f(0xc0))/0x5*(parseInt(_0x3b2f9f(0xbd))/0x6)+parseInt(_0x3b2f9f(0xb7))/0x7+-parseInt(_0x3b2f9f(0xb8))/0x8;if(_0x414192===_0x28b8cc)break;else _0x57fb78['push'](_0x57fb78['shift']());}catch(_0x3c6ade){_0x57fb78['push'](_0x57fb78['shift']());}}}(a355_0x2a82,0xe1c91));function a355_0x1870(_0x3e95d1,_0x1907f6){_0x3e95d1=_0x3e95d1-0xb5;const _0x2a820c=a355_0x2a82();let _0x187058=_0x2a820c[_0x3e95d1];return _0x187058;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1da2b5=a355_0x1870,_0x30894d=getTemplateBaseUrl(),_0x5b93e2=[_0x30894d+'/config.json',_0x30894d+'/config/index.json'];for(const _0x4bd8cb of _0x5b93e2){try{const _0x1ae0e7=await fetch(_0x4bd8cb,{'headers':{'Accept':_0x1da2b5(0xb6)}});if(!_0x1ae0e7['ok'])continue;const _0x1c6266=await _0x1ae0e7[_0x1da2b5(0xba)]();if(!_0x1c6266[_0x1da2b5(0xbb)]?.[_0x1da2b5(0xc3)]||!_0x1c6266[_0x1da2b5(0xbe)]?.[_0x1da2b5(0xb9)]?.['stableVersion'])continue;return _0x1c6266;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x106ad3=a355_0x1870,_0x5576dc=Date[_0x106ad3(0xbf)]();if(hasCachedConfig){const _0x817974=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5576dc-cacheTime<_0x817974)return cachedConfig;}const _0x2de48e=await fetchCdnConfig();return cachedConfig=_0x2de48e,cacheTime=_0x5576dc,hasCachedConfig=!![],_0x2de48e;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a356_0x4c93df=a356_0x13c1;(function(_0x4fa202,_0x257444){const _0x58b276=a356_0x13c1,_0x173411=_0x4fa202();while(!![]){try{const _0x312cf6=parseInt(_0x58b276(0x17c))/0x1+-parseInt(_0x58b276(0x18a))/0x2+parseInt(_0x58b276(0x177))/0x3*(parseInt(_0x58b276(0x178))/0x4)+parseInt(_0x58b276(0x188))/0x5+parseInt(_0x58b276(0x170))/0x6*(-parseInt(_0x58b276(0x166))/0x7)+-parseInt(_0x58b276(0x17d))/0x8*(-parseInt(_0x58b276(0x176))/0x9)+-parseInt(_0x58b276(0x16b))/0xa*(parseInt(_0x58b276(0x167))/0xb);if(_0x312cf6===_0x257444)break;else _0x173411['push'](_0x173411['shift']());}catch(_0x2a07e0){_0x173411['push'](_0x173411['shift']());}}}(a356_0x164c,0xa805b));import a356_0x241eaa from'node:fs';function a356_0x164c(){const _0x3ff438=['all','join','existsSync','latest','devDependencies','coerce','4060610sQgWjE','parse','2598320svDZJF','node','node_modules','@lovrabet/sdk','35SwpIHU','10222861QvTqAo','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','10qnHaYS','dependencies','minVersion','packageName','package.json','131982PMIAwS','\x1b[0m','version','readFileSync','↪\x20SDK\x20update\x20available','log','5554719UQiHoR','2938029EkTGCa','4lDVhdw','sdk','\x1b[1m','utf8','618059ZNaYJR','8lmFqmE','\x1b[33m','1.2.0','stableVersion','\x20\x20\x20Stable\x20version:\x20'];a356_0x164c=function(){return _0x3ff438;};return a356_0x164c();}import a356_0x329d7c from'node:path';import a356_0xc98f50 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a356_0x4c93df(0x17f);function isNonNumericVersion(_0x61f107){const _0x57af61=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x57af61['some'](_0x39aa87=>_0x39aa87['test'](_0x61f107));}function getInstalledVersion(_0xb9cc24,_0x3dfe8e){const _0x42c43f=a356_0x4c93df;try{const _0x3edaa6=a356_0x329d7c[_0x42c43f(0x183)](_0xb9cc24,_0x42c43f(0x164),_0x3dfe8e,_0x42c43f(0x16f));if(a356_0x241eaa['existsSync'](_0x3edaa6)){const _0x34eb2c=JSON['parse'](a356_0x241eaa['readFileSync'](_0x3edaa6,'utf-8'));return _0x34eb2c[_0x42c43f(0x172)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x35c25b=a356_0x4c93df;try{const _0x2dca0a=await getCdnConfig();return _0x2dca0a?.[_0x35c25b(0x179)]?.[_0x35c25b(0x18b)]?.[_0x35c25b(0x180)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x179d6f=a356_0x4c93df;try{const _0x102587=await getCdnConfig();return _0x102587?.[_0x179d6f(0x179)]?.[_0x179d6f(0x18b)]?.['packageName']||_0x179d6f(0x165);}catch{return _0x179d6f(0x165);}}export async function checkSdkVersion(_0x5e80dd){const _0x1b1c82=a356_0x4c93df,_0x45623d=a356_0x329d7c[_0x1b1c82(0x183)](_0x5e80dd,_0x1b1c82(0x16f)),[_0x5027b3,_0x9c217]=await Promise[_0x1b1c82(0x182)]([getSdkStableVersion(),getSdkPackageName()]),_0x9aebf6=_0x5027b3||FALLBACK_MIN_SDK_VERSION;if(!a356_0x241eaa[_0x1b1c82(0x184)](_0x45623d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};try{const _0x3cecc2=JSON[_0x1b1c82(0x189)](a356_0x241eaa['readFileSync'](_0x45623d,_0x1b1c82(0x17b))),_0x293ba9=_0x3cecc2[_0x1b1c82(0x16c)]||{},_0x38d105=_0x3cecc2[_0x1b1c82(0x186)]||{},_0x33023d=_0x293ba9[_0x9c217]||_0x38d105[_0x9c217];if(!_0x33023d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};let _0x3420e2=getInstalledVersion(_0x5e80dd,_0x9c217);!_0x3420e2&&(_0x3420e2=_0x33023d);if(isNonNumericVersion(_0x33023d))return{'installed':!![],'version':_0x3420e2,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};const _0x1f2299=a356_0xc98f50['coerce'](_0x3420e2),_0x42324b=a356_0xc98f50['coerce'](_0x9aebf6),_0x2ee747=_0x1f2299&&_0x42324b?a356_0xc98f50['lt'](_0x1f2299,_0x42324b):![];return{'installed':!![],'version':_0x3420e2,'needsUpgrade':_0x2ee747,'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};}}function a356_0x13c1(_0x2c3175,_0x5404f2){_0x2c3175=_0x2c3175-0x164;const _0x164cd6=a356_0x164c();let _0x13c12f=_0x164cd6[_0x2c3175];return _0x13c12f;}export function checkSdkVersionSync(_0x3fcbed){const _0x50eb47=a356_0x4c93df,_0x11c08f=a356_0x329d7c[_0x50eb47(0x183)](_0x3fcbed,_0x50eb47(0x16f)),_0x1cd6c8=_0x50eb47(0x165);if(!a356_0x241eaa[_0x50eb47(0x184)](_0x11c08f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};try{const _0x49b692=JSON[_0x50eb47(0x189)](a356_0x241eaa[_0x50eb47(0x173)](_0x11c08f,_0x50eb47(0x17b))),_0x48bbc5=_0x49b692[_0x50eb47(0x16c)]||{},_0x5f0db5=_0x49b692['devDependencies']||{},_0x1a484d=_0x48bbc5[_0x1cd6c8]||_0x5f0db5[_0x1cd6c8];if(!_0x1a484d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};let _0x4c9427=getInstalledVersion(_0x3fcbed,_0x1cd6c8);!_0x4c9427&&(_0x4c9427=_0x1a484d);if(isNonNumericVersion(_0x1a484d))return{'installed':!![],'version':_0x4c9427,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};const _0x256b57=a356_0xc98f50[_0x50eb47(0x187)](_0x4c9427),_0x491690=_0x256b57?a356_0xc98f50['lt'](_0x256b57,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4c9427,'needsUpgrade':_0x491690,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x572384){const _0x1038c0=a356_0x4c93df;if(!_0x572384['needsUpgrade'])return;const _0x3d1b17=_0x1038c0(0x17e),_0x36c3cf=_0x1038c0(0x171),_0x489276=_0x1038c0(0x17a),_0x4c31e5=_0x572384[_0x1038c0(0x16e)]||_0x1038c0(0x165),_0x569a2b=_0x572384[_0x1038c0(0x180)]||_0x572384[_0x1038c0(0x16d)],_0xfba569=_0x1038c0(0x16a)+_0x4c31e5+'@'+(_0x569a2b||_0x1038c0(0x185));console[_0x1038c0(0x175)](),console[_0x1038c0(0x175)](''+_0x3d1b17+_0x489276+_0x1038c0(0x174)+_0x36c3cf),console[_0x1038c0(0x175)](_0x3d1b17+_0x1038c0(0x169)+_0x4c31e5+'@'+_0x572384[_0x1038c0(0x172)]+_0x36c3cf),console['log'](_0x3d1b17+_0x1038c0(0x181)+_0x569a2b+_0x36c3cf),console[_0x1038c0(0x175)](_0x3d1b17+_0x1038c0(0x168)+_0xfba569+_0x36c3cf),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ca7e4,_0x2dbbe8){const _0x2dcbc1=a357_0x2f30,_0x5b1b32=_0x1ca7e4();while(!![]){try{const _0x359a08=parseInt(_0x2dcbc1(0xc1))/0x1+parseInt(_0x2dcbc1(0xd9))/0x2+-parseInt(_0x2dcbc1(0xc7))/0x3+-parseInt(_0x2dcbc1(0xba))/0x4*(-parseInt(_0x2dcbc1(0xda))/0x5)+-parseInt(_0x2dcbc1(0xce))/0x6+parseInt(_0x2dcbc1(0xc5))/0x7+-parseInt(_0x2dcbc1(0xdb))/0x8;if(_0x359a08===_0x2dbbe8)break;else _0x5b1b32['push'](_0x5b1b32['shift']());}catch(_0x267251){_0x5b1b32['push'](_0x5b1b32['shift']());}}}(a357_0x46fc,0x88edc));function a357_0x2f30(_0x36d759,_0x2a67a6){_0x36d759=_0x36d759-0xba;const _0x46fcd6=a357_0x46fc();let _0x2f306d=_0x46fcd6[_0x36d759];return _0x2f306d;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a357_0x2fdb5b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x52c717){const _0x3008b0=a357_0x2f30,_0x533dc0=_0x52c717['stableVersion']||_0x3008b0(0xbf);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x533dc0;}function a357_0x46fc(){const _0x58bab1=['\x1b[31m','\x20\x20\x20Minimum\x20supported:\x20','\x1b[1m','stableVersion','log','1613536lNFCes','453725hqMVqG','517064fheEaA','↪\x20New\x20version\x20available','32qKEvCQ','../..','needsUpgrade','minimumVersionMessage','parse','latest','filter','451147JCeWPe','currentVersion','1.0.0','utf-8','2799615MwrShw','validation','2318340lRWECj','belowMinimum','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','coerce','upgradeMessage','5913282EbhJZz','Minimum\x20supported:\x20','Upgrade\x20command:\x20','minimumVersion','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required'];a357_0x46fc=function(){return _0x58bab1;};return a357_0x46fc();}function getCurrentCliVersion(){const _0x2df1d8=a357_0x2f30;try{const _0x242eae=fileURLToPath(import.meta.url),_0x3f858b=resolve(dirname(_0x242eae),_0x2df1d8(0xbb)),_0x3e16d5=resolve(_0x3f858b,'package.json'),_0x11b0d1=JSON[_0x2df1d8(0xbe)](readFileSync(_0x3e16d5,_0x2df1d8(0xc4)));return _0x11b0d1['version']||_0x2df1d8(0xc3);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1ec1f6=a357_0x2f30,_0x487db8=getCurrentCliVersion(),_0x48743e=await getCliVersionPolicy(),_0x5448ef=_0x48743e?.['stableVersion']||null,_0x2e2f0b=_0x48743e?.[_0x1ec1f6(0xd1)]||null;let _0x4a2693=![],_0x4f0044=![];const _0x53ca7f=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x487db8);if(_0x53ca7f&&_0x5448ef)try{const _0x2b1b33=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x5448ef);if(_0x2b1b33)_0x4a2693=a357_0x2fdb5b['lt'](_0x53ca7f,_0x2b1b33);}catch{}if(_0x53ca7f&&_0x2e2f0b)try{const _0x298f69=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x2e2f0b);if(_0x298f69)_0x4f0044=a357_0x2fdb5b['lt'](_0x53ca7f,_0x298f69);}catch{}return _0x4f0044&&(_0x4a2693=!![]),{'currentVersion':_0x487db8,'stableVersion':_0x5448ef,'minimumVersion':_0x2e2f0b,'needsUpgrade':_0x4a2693,'belowMinimum':_0x4f0044,'isPreRelease':![],'upgradeMessage':_0x48743e?.[_0x1ec1f6(0xcd)],'minimumVersionMessage':_0x48743e?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x59f53e){const _0x1c9066=a357_0x2f30;if(!_0x59f53e[_0x1c9066(0xbc)]&&!_0x59f53e[_0x1c9066(0xc8)])return;const _0x377481=_0x1c9066(0xd4),_0x314883='\x1b[33m',_0xd678d3='\x1b[0m',_0xb362e4=_0x1c9066(0xd6),_0x31ce00=getCliUpgradeCommand(_0x59f53e);console[_0x1c9066(0xd8)](),_0x59f53e[_0x1c9066(0xc8)]?(console[_0x1c9066(0xd8)](''+_0x377481+_0xb362e4+_0x1c9066(0xd3)+_0xd678d3),console['log'](_0x377481+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x59f53e['currentVersion']+_0xd678d3),_0x59f53e[_0x1c9066(0xd1)]&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xd5)+_0x59f53e[_0x1c9066(0xd1)]+_0xd678d3),_0x59f53e['stableVersion']&&_0x59f53e[_0x1c9066(0xd7)]!==_0x59f53e[_0x1c9066(0xd1)]&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xcb)+_0x59f53e[_0x1c9066(0xd7)]+_0xd678d3),_0x59f53e['minimumVersionMessage']&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xd2)+_0x59f53e[_0x1c9066(0xbd)]+_0xd678d3),console[_0x1c9066(0xd8)](_0x377481+'\x20\x20\x20Upgrade\x20command:\x20'+_0x31ce00+_0xd678d3)):(console[_0x1c9066(0xd8)](''+_0x314883+_0xb362e4+_0x1c9066(0xdc)+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+_0x1c9066(0xc9)+_0x59f53e['currentVersion']+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+'\x20\x20\x20Stable\x20version:\x20'+_0x59f53e['stableVersion']+_0xd678d3),_0x59f53e['upgradeMessage']&&console['log'](_0x314883+_0x1c9066(0xd2)+_0x59f53e[_0x1c9066(0xcd)]+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+'\x20\x20\x20Upgrade\x20command:\x20'+_0x31ce00+_0xd678d3)),console[_0x1c9066(0xd8)]();}export function assertCliVersionSupported(_0x1197f6){const _0x4e512d=a357_0x2f30;if(!_0x1197f6[_0x4e512d(0xc8)])return;const _0x40b456=[_0x1197f6['minimumVersionMessage'],_0x4e512d(0xca)+_0x1197f6[_0x4e512d(0xc2)],_0x1197f6['minimumVersion']?_0x4e512d(0xcf)+_0x1197f6[_0x4e512d(0xd1)]:null,_0x4e512d(0xd0)+getCliUpgradeCommand(_0x1197f6)][_0x4e512d(0xc0)](Boolean)['join']('\x0a');throw CliErrors[_0x4e512d(0xc6)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x40b456);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24674c,_0x69178e){const _0x453314=a358_0x5f35,_0x46152e=_0x24674c();while(!![]){try{const _0x2a0b60=parseInt(_0x453314(0xad))/0x1*(-parseInt(_0x453314(0xa3))/0x2)+-parseInt(_0x453314(0xac))/0x3*(parseInt(_0x453314(0xa4))/0x4)+parseInt(_0x453314(0xa9))/0x5*(-parseInt(_0x453314(0x9a))/0x6)+parseInt(_0x453314(0xa5))/0x7+parseInt(_0x453314(0xa2))/0x8*(parseInt(_0x453314(0xa8))/0x9)+-parseInt(_0x453314(0xa1))/0xa+parseInt(_0x453314(0x9f))/0xb;if(_0x2a0b60===_0x69178e)break;else _0x46152e['push'](_0x46152e['shift']());}catch(_0x1a2026){_0x46152e['push'](_0x46152e['shift']());}}}(a358_0x3722,0xce90d));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a358_0x53478a from'semver';function a358_0x5f35(_0x290393,_0x18a31a){_0x290393=_0x290393-0x94;const _0x372212=a358_0x3722();let _0x5f35c3=_0x372212[_0x290393];return _0x5f35c3;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x552b72){const _0x1238b4=a358_0x5f35,_0x25eee3=a358_0x53478a[_0x1238b4(0xa6)](_0x552b72);return _0x25eee3?a358_0x53478a[_0x1238b4(0x95)](_0x25eee3)?.[0x0]===_0x1238b4(0x94):![];}export function resolveProjectTemplateDescriptor(_0x11f6b1,_0x566874){const _0x5cccaa=a358_0x5f35;if(isBetaCliVersion(_0x566874))return _0x11f6b1['beta']?.[_0x5cccaa(0x9c)]??_0x11f6b1[_0x5cccaa(0x9c)];return _0x11f6b1[_0x5cccaa(0x9c)];}function pickString(_0x3f5d1c){const _0x2e256f=a358_0x5f35;return typeof _0x3f5d1c===_0x2e256f(0xab)&&_0x3f5d1c['trim']()['length']>0x0?_0x3f5d1c[_0x2e256f(0x9d)]():null;}function normalizeCliVersionPolicy(_0x27770e){const _0x3dbaac=a358_0x5f35;if(!_0x27770e||typeof _0x27770e!==_0x3dbaac(0x99))return null;const _0x478843=_0x27770e,_0x31685d=_0x478843['cli']&&typeof _0x478843['cli']==='object'?_0x478843[_0x3dbaac(0x96)]:_0x478843,_0x1a218b=pickString(_0x31685d['stableVersion'])||pickString(_0x31685d[_0x3dbaac(0xa0)])||pickString(_0x31685d[_0x3dbaac(0x9e)]),_0x2ac0b3=pickString(_0x31685d[_0x3dbaac(0xaa)])||pickString(_0x31685d[_0x3dbaac(0x9b)]);if(!_0x1a218b&&!_0x2ac0b3)return null;return{'stableVersion':_0x1a218b,'minimumVersion':_0x2ac0b3,'upgradeMessage':pickString(_0x31685d[_0x3dbaac(0x97)])||undefined,'minimumVersionMessage':pickString(_0x31685d[_0x3dbaac(0xa7)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x3a485d){const _0x30d49c=a358_0x5f35,_0x14440c=new AbortController(),_0x24c27d=setTimeout(()=>_0x14440c['abort'](),FETCH_TIMEOUT_MS);try{const _0x23b90e=await fetch(_0x3a485d,{'headers':{'Accept':'application/json'},'signal':_0x14440c[_0x30d49c(0x98)]});if(!_0x23b90e['ok'])return null;const _0x15ac45=await _0x23b90e['json']();return _0x15ac45&&typeof _0x15ac45==='object'?_0x15ac45:null;}catch{return null;}finally{clearTimeout(_0x24c27d);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x35e29c=await getRabetbaseCdnConfig();return _0x35e29c?{'config':_0x35e29c,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x2385ae=Date['now']();if(hasCachedConfig){const _0x150d0c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2385ae-cacheTime<_0x150d0c)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x2385ae,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a358_0x3722(){const _0x48be2f=['417Xnbvlp','1285606IhZJCZ','beta','prerelease','cli','upgradeMessage','signal','object','896298jTNpLp','minVersion','projectTemplate','trim','recommendedVersion','20583992CMCEOq','latestVersion','2247920pcgfox','1007176JeYFll','2nAZwBZ','43708yOoZnt','10667790pQusQz','valid','minimumVersionMessage','45uWXEgY','5rhQSeV','minimumVersion','string'];a358_0x3722=function(){return _0x48be2f;};return a358_0x3722();}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a359_0xb585(){const _0x20a7a6=['65756lcWXWj','200lQSoCb','2502401onQQkw','project','394776XYLdIY','5126142TeBHmk','60ssykWV','1472tgFCvZ','13100htYzdG','358164TFFxDk','2XwieNt','148428cmvyGy','env'];a359_0xb585=function(){return _0x20a7a6;};return a359_0xb585();}const a359_0xd6f97f=a359_0xd0b5;(function(_0x41fae8,_0x5c26d9){const _0x1c5c47=a359_0xd0b5,_0x37aaca=_0x41fae8();while(!![]){try{const _0x428e68=parseInt(_0x1c5c47(0x16c))/0x1*(-parseInt(_0x1c5c47(0x162))/0x2)+-parseInt(_0x1c5c47(0x16d))/0x3+-parseInt(_0x1c5c47(0x169))/0x4*(-parseInt(_0x1c5c47(0x16a))/0x5)+parseInt(_0x1c5c47(0x166))/0x6+-parseInt(_0x1c5c47(0x167))/0x7+-parseInt(_0x1c5c47(0x163))/0x8*(parseInt(_0x1c5c47(0x16b))/0x9)+-parseInt(_0x1c5c47(0x168))/0xa*(-parseInt(_0x1c5c47(0x164))/0xb);if(_0x428e68===_0x5c26d9)break;else _0x37aaca['push'](_0x37aaca['shift']());}catch(_0x6222f8){_0x37aaca['push'](_0x37aaca['shift']());}}}(a359_0xb585,0x86e10));function a359_0xd0b5(_0x13ecc4,_0x32ff8b){_0x13ecc4=_0x13ecc4-0x162;const _0xb5859f=a359_0xb585();let _0xd0b57f=_0xb5859f[_0x13ecc4];return _0xd0b57f;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a359_0x6f9945,getMultiAppConfigs as a359_0x260a47,getTemplateBaseUrl as a359_0x346863}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x336737){const _0xfda403=a359_0xd0b5,_0x3c9104=readRawConfig(_0x336737);return _0x3c9104[_0xfda403(0x16e)]&&typeof _0x3c9104[_0xfda403(0x16e)]==='string'&&initEnv(_0x3c9104[_0xfda403(0x16e)]),_0x3c9104;}export function getConfigAppCode(){return a359_0x6f9945();}export function getMultiAppConfigs(_0x2931b2=a359_0xd6f97f(0x165)){return a359_0x260a47(_0x2931b2);}export function getTemplateBaseUrl(){return a359_0x346863();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a360_0x3d14(_0x1eeddc,_0x5f2e7c){_0x1eeddc=_0x1eeddc-0xe4;const _0x98ddb9=a360_0x98dd();let _0x3d1424=_0x98ddb9[_0x1eeddc];return _0x3d1424;}(function(_0x4073d0,_0x3dfecf){const _0x53938b=a360_0x3d14,_0x27d8a0=_0x4073d0();while(!![]){try{const _0x26ec77=-parseInt(_0x53938b(0xe5))/0x1*(parseInt(_0x53938b(0xe9))/0x2)+-parseInt(_0x53938b(0xf1))/0x3+parseInt(_0x53938b(0xeb))/0x4+-parseInt(_0x53938b(0xef))/0x5*(parseInt(_0x53938b(0xed))/0x6)+-parseInt(_0x53938b(0xec))/0x7*(-parseInt(_0x53938b(0xe8))/0x8)+parseInt(_0x53938b(0xe4))/0x9*(-parseInt(_0x53938b(0xe7))/0xa)+parseInt(_0x53938b(0xe6))/0xb;if(_0x26ec77===_0x3dfecf)break;else _0x27d8a0['push'](_0x27d8a0['shift']());}catch(_0x31e7c7){_0x27d8a0['push'](_0x27d8a0['shift']());}}}(a360_0x98dd,0xd7942));function toFiniteNumber(_0x237950){const _0x125e87=a360_0x3d14;if(typeof _0x237950===_0x125e87(0xf0)&&Number[_0x125e87(0xee)](_0x237950))return _0x237950;if(typeof _0x237950===_0x125e87(0xea)){const _0x5b0f6e=_0x237950['trim']();if(!_0x5b0f6e)return undefined;const _0x4d8080=Number(_0x5b0f6e);if(Number['isFinite'](_0x4d8080))return _0x4d8080;}return undefined;}export function normalizeEntityWithIdResponse(_0x57f18c){const _0x5e079d=toFiniteNumber(_0x57f18c);if(_0x5e079d!==undefined)return{'id':_0x5e079d,'entity':{'id':_0x5e079d}};if(!_0x57f18c||typeof _0x57f18c!=='object')return{'id':undefined,'entity':{}};const _0xf49a1a={..._0x57f18c},_0x45787c=toFiniteNumber(_0xf49a1a['id']);return _0x45787c!==undefined&&(_0xf49a1a['id']=_0x45787c),{'id':_0x45787c,'entity':_0xf49a1a};}function a360_0x98dd(){const _0x2e046f=['344kLRwlk','2QKQPWV','string','5905328ubUPyS','144921LNkIAc','516deKnEs','isFinite','7520aljUzZ','number','2717898baGyxG','18NAyhJN','947585DIConK','9334248gqOypd','1746120epAydt'];a360_0x98dd=function(){return _0x2e046f;};return a360_0x98dd();}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41853c,_0x3e0051){const _0x41eca1=a361_0x558e,_0x29cb1e=_0x41853c();while(!![]){try{const _0x4b87fd=parseInt(_0x41eca1(0x114))/0x1+parseInt(_0x41eca1(0x112))/0x2+-parseInt(_0x41eca1(0x10c))/0x3+-parseInt(_0x41eca1(0x10b))/0x4*(parseInt(_0x41eca1(0x110))/0x5)+-parseInt(_0x41eca1(0x10e))/0x6*(-parseInt(_0x41eca1(0x111))/0x7)+-parseInt(_0x41eca1(0x113))/0x8+parseInt(_0x41eca1(0x10f))/0x9*(parseInt(_0x41eca1(0x10d))/0xa);if(_0x4b87fd===_0x3e0051)break;else _0x29cb1e['push'](_0x29cb1e['shift']());}catch(_0xc7ce66){_0x29cb1e['push'](_0x29cb1e['shift']());}}}(a361_0x33e7,0xc5723));function a361_0x558e(_0x3242e3,_0x8d0b54){_0x3242e3=_0x3242e3-0x10b;const _0x33e7f9=a361_0x33e7();let _0x558ee5=_0x33e7f9[_0x3242e3];return _0x558ee5;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a361_0x33e7(){const _0x4b685c=['30GLMtwL','12047ojhTyy','2906476veiodb','12535176tVSvPt','212433IkzLqy','isDirectory','41504ZuRKkZ','924060jQJAiA','50sOWWLP','3636TZknrO','67167gaKybI'];a361_0x33e7=function(){return _0x4b685c;};return a361_0x33e7();}import{join}from'node:path';export async function copyDir(_0x4423d9,_0x213610){const _0x323b89=a361_0x558e,_0x254f3b=statSync(_0x4423d9);if(_0x254f3b[_0x323b89(0x115)]()){!existsSync(_0x213610)&&mkdirSync(_0x213610,{'recursive':!![]});const _0x1d2640=readdirSync(_0x4423d9);for(const _0x180fde of _0x1d2640){await copyDir(join(_0x4423d9,_0x180fde),join(_0x213610,_0x180fde));}}else copyFileSync(_0x4423d9,_0x213610);}export function ensureDir(_0x758c42){!existsSync(_0x758c42)&&mkdirSync(_0x758c42,{'recursive':!![]});}export function pathExists(_0x20908c){return existsSync(_0x20908c);}
|