@lovrabet/rabetbase-cli 2.5.4 → 2.5.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/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/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/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.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.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/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 +2 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +35 -0
- package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
- package/skills/rabetbase-page-generation/references/generation.md +77 -0
- package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
- package/skills/rabetbase.manifest.json +3 -3
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x495a22,_0xf9fa52){const _0x4ecaa1=a323_0x2692,_0x1fd934=_0x495a22();while(!![]){try{const _0x27b42d=-parseInt(_0x4ecaa1(0x1c9))/0x1+-parseInt(_0x4ecaa1(0x1d1))/0x2*(parseInt(_0x4ecaa1(0x1be))/0x3)+parseInt(_0x4ecaa1(0x1cb))/0x4+parseInt(_0x4ecaa1(0x1c0))/0x5*(-parseInt(_0x4ecaa1(0x1c5))/0x6)+parseInt(_0x4ecaa1(0x1d3))/0x7*(parseInt(_0x4ecaa1(0x1bf))/0x8)+-parseInt(_0x4ecaa1(0x1c6))/0x9+-parseInt(_0x4ecaa1(0x1c4))/0xa*(-parseInt(_0x4ecaa1(0x1d2))/0xb);if(_0x27b42d===_0xf9fa52)break;else _0x1fd934['push'](_0x1fd934['shift']());}catch(_0x42508d){_0x1fd934['push'](_0x1fd934['shift']());}}}(a323_0x3745,0x4d927));export function canonicalRabetbaseOperation(_0x1b7f7d){const _0x571d27=a323_0x2692;return[_0x1b7f7d[_0x571d27(0x1ce)],..._0x1b7f7d[_0x571d27(0x1cd)]['trim']()[_0x571d27(0x1cf)](/\s+/)][_0x571d27(0x1c7)](Boolean)['join']('.');}function a323_0x2692(_0x41034b,_0xaf051b){_0x41034b=_0x41034b-0x1be;const _0x3745d2=a323_0x3745();let _0x2692de=_0x3745d2[_0x41034b];return _0x2692de;}export function createRabetbaseWriteMetadata(_0x473f7f,_0x101483,_0x225617,_0x1bc4ef){const _0x5d0cd5=a323_0x2692;if(_0x1bc4ef||_0x225617['ok']!==!![]||hasUnresolvedConflicts(_0x225617)||_0x473f7f[_0x5d0cd5(0x1c3)]!=='write'&&_0x473f7f[_0x5d0cd5(0x1c3)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x5d0cd5(0x1cc),'operation':_0x101483,'risk':_0x473f7f[_0x5d0cd5(0x1c3)]}}};}function hasUnresolvedConflicts(_0x40723f){const _0x6b98b6=a323_0x2692,_0x1c2190=_0x40723f[_0x6b98b6(0x1c2)];return Boolean(_0x1c2190&&typeof _0x1c2190===_0x6b98b6(0x1c1)&&!Array[_0x6b98b6(0x1c8)](_0x1c2190)&&Array[_0x6b98b6(0x1c8)](_0x1c2190['conflicts'])&&_0x1c2190[_0x6b98b6(0x1ca)][_0x6b98b6(0x1d0)]>0x0);}function a323_0x3745(){const _0x4995dc=['command','service','split','length','126VccEEd','376519PDviFF','1526eKUMsv','23799Ytcckb','14088RRpQiU','875IHOvdx','object','data','risk','340iJGmyV','16086YJTcQK','5391234Nnkoka','filter','isArray','168997KVFzkV','conflicts','2028112mMAqla','rabetbase.write.completed'];a323_0x3745=function(){return _0x4995dc;};return a323_0x3745();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb8f894,_0x1a914c){const _0x50a2fb=a324_0x5bf3,_0x18ee1b=_0xb8f894();while(!![]){try{const _0x5566d5=-parseInt(_0x50a2fb(0x180))/0x1*(-parseInt(_0x50a2fb(0x187))/0x2)+-parseInt(_0x50a2fb(0x179))/0x3*(-parseInt(_0x50a2fb(0x162))/0x4)+parseInt(_0x50a2fb(0x170))/0x5*(-parseInt(_0x50a2fb(0x186))/0x6)+parseInt(_0x50a2fb(0x17b))/0x7+parseInt(_0x50a2fb(0x184))/0x8*(parseInt(_0x50a2fb(0x16c))/0x9)+parseInt(_0x50a2fb(0x169))/0xa+parseInt(_0x50a2fb(0x16d))/0xb*(-parseInt(_0x50a2fb(0x17e))/0xc);if(_0x5566d5===_0x1a914c)break;else _0x18ee1b['push'](_0x18ee1b['shift']());}catch(_0x4a2f7a){_0x18ee1b['push'](_0x18ee1b['shift']());}}}(a324_0x4352,0x76fdd));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';function a324_0x5bf3(_0x41d07f,_0xbe78cd){_0x41d07f=_0x41d07f-0x162;const _0x4352ee=a324_0x4352();let _0x5bf32a=_0x4352ee[_0x41d07f];return _0x5bf32a;}const defaultPresentation={'present'({result:_0x1e3a17,command:_0x2a3bab,risk:_0x5c9321,dryRun:_0x3497ae}){const _0x3997df=a324_0x5bf3;return JSON[_0x3997df(0x176)]({'ok':_0x1e3a17['ok'],'command':_0x2a3bab,'risk':_0x5c9321,..._0x3497ae?{'dryRun':!![]}:{},..._0x1e3a17[_0x3997df(0x16f)]!==undefined?{'data':_0x1e3a17[_0x3997df(0x16f)]}:{},..._0x1e3a17[_0x3997df(0x16e)]?{'message':_0x1e3a17[_0x3997df(0x16e)]}:{}});}};function a324_0x4352(){const _0x4d499c=['2269112ZQJoEs','reason','96xVSgSY','2VJOTMt','presentation','12164XqVOBD','Rabetbase\x20invocation\x20aborted.','dry-run','definition','riskLevel','risk','write','2084070yVKYUk','result','isNonInteractive','27aNjqua','1705mPRZbA','message','data','197035oUdZSi','yes','high-risk-write','dryRun','service','command','stringify','rawFlags','AbortError','105utPYLQ','format','1268267xAddUr','present','signal','92676ErGspF','args','968026Ynqbhb','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','aborted'];a324_0x4352=function(){return _0x4d499c;};return a324_0x4352();}export async function invokeRabetbase(_0x320891,_0x2375ed){const _0x5a1227=a324_0x5bf3;throwIfAborted(_0x2375ed[_0x5a1227(0x17d)]);const _0x45ff45=await resolveRabetbaseInvocation(_0x320891),_0x1bea9c=canonicalRabetbaseOperation(_0x45ff45[_0x5a1227(0x165)]);return await confirmWriteBeforeQueue(_0x45ff45[_0x5a1227(0x165)],_0x45ff45[_0x5a1227(0x177)],_0x1bea9c,_0x2375ed),runSerialized(async()=>{const _0x2115fa=_0x5a1227,_0x54dafa={};try{throwIfAborted(_0x2375ed['signal']);const _0x5e3c49=buildConfigFromFlags(_0x45ff45[_0x2115fa(0x177)]);!isRoutingRecoveryService(_0x45ff45['definition'][_0x2115fa(0x174)])&&await initGlobalEnvironment(_0x5e3c49);const _0x37f4dc=createPipelineEnv(_0x5e3c49,{..._0x45ff45[_0x2115fa(0x177)],'yes':_0x45ff45[_0x2115fa(0x165)]['risk']===_0x2115fa(0x172)?!![]:_0x45ff45[_0x2115fa(0x177)][_0x2115fa(0x171)],'nonInteractive':!![]},_0x45ff45[_0x2115fa(0x17f)]);_0x37f4dc[_0x2115fa(0x16b)]=!![],_0x37f4dc[_0x2115fa(0x166)]='high-risk-write';const _0x55e19d=withAbortSignal(_0x45ff45[_0x2115fa(0x165)],_0x2375ed[_0x2115fa(0x17d)]),_0x52ab71=createRabetbaseRunnerAdapter({'formatOutput'(_0x53b463,_0x13cf3b){const _0x55c1c3=_0x2115fa;_0x54dafa[_0x55c1c3(0x16a)]=_0x53b463,_0x54dafa[_0x55c1c3(0x175)]=_0x13cf3b[_0x55c1c3(0x175)],_0x54dafa['risk']=_0x13cf3b['risk'],_0x54dafa[_0x55c1c3(0x17a)]=_0x13cf3b[_0x55c1c3(0x17a)],_0x54dafa[_0x55c1c3(0x173)]=_0x13cf3b[_0x55c1c3(0x173)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x55e19d,_0x37f4dc,_0x52ab71);if(!_0x54dafa[_0x2115fa(0x16a)]||!_0x54dafa[_0x2115fa(0x175)]||!_0x54dafa['risk']||!_0x54dafa[_0x2115fa(0x17a)])throw new Error(_0x2115fa(0x181));const _0x5af011=_0x54dafa[_0x2115fa(0x173)]===!![],_0x50369b=_0x2375ed[_0x2115fa(0x188)]??defaultPresentation,_0x209e05={'result':_0x54dafa['result'],'command':_0x54dafa[_0x2115fa(0x175)],'operation':_0x1bea9c,'risk':_0x54dafa['risk'],'format':_0x54dafa[_0x2115fa(0x17a)],'dryRun':_0x5af011},_0x3df954=createRabetbaseWriteMetadata(_0x45ff45[_0x2115fa(0x165)],_0x1bea9c,_0x54dafa['result'],_0x5af011);let _0x39c466;try{_0x39c466=await _0x50369b['present'](_0x209e05);}catch(_0x1ffe2e){if(!_0x3df954||_0x50369b===defaultPresentation)throw _0x1ffe2e;_0x39c466=await defaultPresentation[_0x2115fa(0x17c)](_0x209e05);}return{'operation':_0x1bea9c,'risk':_0x54dafa['risk'],'mode':_0x5af011?_0x2115fa(0x164):_0x2115fa(0x182),'result':_0x54dafa['result'],'output':_0x39c466,..._0x3df954?{'metadata':_0x3df954}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3d6489,_0x1e2c3f,_0x3b7710,_0x51cd54){const _0x3c3946=a324_0x5bf3;if(_0x1e2c3f[_0x3c3946(0x173)]===!![]||_0x3d6489[_0x3c3946(0x167)]!==_0x3c3946(0x168)&&_0x3d6489[_0x3c3946(0x167)]!==_0x3c3946(0x172))return;await _0x51cd54['confirmation']['confirm'](buildRabetbaseConfirmationRequest(_0x3d6489,_0x3b7710,_0x51cd54[_0x3c3946(0x17d)]));}function withAbortSignal(_0x24e63e,_0x16caea){return{..._0x24e63e,async 'execute'(_0x4a4bf1){const _0x11154c=a324_0x5bf3;return throwIfAborted(_0x16caea),_0x24e63e[_0x11154c(0x182)]({..._0x4a4bf1,'signal':_0x16caea});}};}function throwIfAborted(_0x5517e4){const _0xddfc5c=a324_0x5bf3;if(_0x5517e4?.[_0xddfc5c(0x183)])throw _0x5517e4[_0xddfc5c(0x185)]instanceof Error?_0x5517e4[_0xddfc5c(0x185)]:new DOMException(_0xddfc5c(0x163),_0xddfc5c(0x178));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a325_0x2325(){const _0x4f1e25=['104RiRDQF','11JPusOA','4922100EbETmf','59366ZcUDKU','1093244ysGtPV','1657269VbyaZJ','catch','resolve','5rHkvlW','3414906Faqzza','4097130jUfcHh','352233NPPLcM'];a325_0x2325=function(){return _0x4f1e25;};return a325_0x2325();}const a325_0x555b6a=a325_0x4276;function a325_0x4276(_0x3eba6d,_0x50d323){_0x3eba6d=_0x3eba6d-0x1ee;const _0x2325d4=a325_0x2325();let _0x427688=_0x2325d4[_0x3eba6d];return _0x427688;}(function(_0x1e8faf,_0x3fcfba){const _0x24f8c6=a325_0x4276,_0x41ede8=_0x1e8faf();while(!![]){try{const _0x3b1cea=-parseInt(_0x24f8c6(0x1f2))/0x1*(-parseInt(_0x24f8c6(0x1f4))/0x2)+-parseInt(_0x24f8c6(0x1f6))/0x3+-parseInt(_0x24f8c6(0x1f5))/0x4*(parseInt(_0x24f8c6(0x1f9))/0x5)+-parseInt(_0x24f8c6(0x1ef))/0x6+parseInt(_0x24f8c6(0x1f0))/0x7*(parseInt(_0x24f8c6(0x1f1))/0x8)+parseInt(_0x24f8c6(0x1ee))/0x9+parseInt(_0x24f8c6(0x1f3))/0xa;if(_0x3b1cea===_0x3fcfba)break;else _0x41ede8['push'](_0x41ede8['shift']());}catch(_0x5c1ef4){_0x41ede8['push'](_0x41ede8['shift']());}}}(a325_0x2325,0x53ea3));let tail=Promise[a325_0x555b6a(0x1f8)]();export async function runSerialized(_0x22c7d0){const _0xea6659=a325_0x555b6a,_0x30857d=tail;let _0x1bb847;tail=new Promise(_0x3d6258=>{_0x1bb847=_0x3d6258;}),await _0x30857d[_0xea6659(0x1f7)](()=>undefined);try{return await _0x22c7d0();}finally{_0x1bb847();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34641c,_0xb6be57){const _0x1f0ba3=a326_0x5e0f,_0x2d4d59=_0x34641c();while(!![]){try{const _0x4be9ea=-parseInt(_0x1f0ba3(0x14a))/0x1*(parseInt(_0x1f0ba3(0x13f))/0x2)+parseInt(_0x1f0ba3(0x13d))/0x3+-parseInt(_0x1f0ba3(0x140))/0x4+parseInt(_0x1f0ba3(0x14e))/0x5*(-parseInt(_0x1f0ba3(0x151))/0x6)+parseInt(_0x1f0ba3(0x14c))/0x7*(parseInt(_0x1f0ba3(0x146))/0x8)+parseInt(_0x1f0ba3(0x145))/0x9*(parseInt(_0x1f0ba3(0x142))/0xa)+-parseInt(_0x1f0ba3(0x152))/0xb;if(_0x4be9ea===_0xb6be57)break;else _0x2d4d59['push'](_0x2d4d59['shift']());}catch(_0x39587f){_0x2d4d59['push'](_0x2d4d59['shift']());}}}(a326_0x119a,0x2371e));import a326_0x24d08b from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a326_0x119a(){const _0x367144=['wildcardDef','2324110MoftZj','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','unknownCommand','9QYlziM','1016CbwQna','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','validation','input','3519PXbXlS','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','15988GWofIa','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','115XdVGzK','message','slice','43506CiVTWX','1682483CgTfjP','flags','539652kKQJfg','defaultCommand','4mSkOlM','921668mmfoil'];a326_0x119a=function(){return _0x367144;};return a326_0x119a();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a326_0x5e0f(_0xb92fa5,_0x5d21f4){_0xb92fa5=_0xb92fa5-0x13c;const _0x119a72=a326_0x119a();let _0x5e0f25=_0x119a72[_0xb92fa5];return _0x5e0f25;}export async function resolveRabetbaseInvocation(_0x563405){const _0x55a95d=a326_0x5e0f,_0x3bf14a=a326_0x24d08b('',{'importMeta':import.meta,'argv':[..._0x563405],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x16013f=[..._0x3bf14a[_0x55a95d(0x149)]],_0x1ee00f=_0x3bf14a[_0x55a95d(0x13c)],_0x5d164f=_0x16013f[0x0];if(!_0x5d164f)throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x14d));const _0x48af5f=resolveRemovedCommand(_0x5d164f,_0x16013f[0x1]);if(_0x48af5f)throw CliErrors['validation'](_0x48af5f[_0x55a95d(0x14f)],_0x48af5f['hint']);if(_0x5d164f==='run')throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x147),_0x55a95d(0x143));if(!isKnownService(_0x5d164f))throw CliErrors['unknownCommand'](_0x16013f['join']('\x20'));const _0x27e2d3=getServiceEntry(_0x5d164f),_0x3b04fc=_0x16013f[0x1],_0x2296dd=_0x3b04fc||_0x27e2d3[_0x55a95d(0x13e)];if(!_0x2296dd){if(_0x27e2d3[_0x55a95d(0x141)])return{'definition':_0x27e2d3[_0x55a95d(0x141)],'rawFlags':_0x1ee00f,'args':[]};throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x14b)+_0x5d164f+'\x22.');}const _0x153660=findDefinition(_0x5d164f,_0x2296dd);if(_0x153660)return assertSupportedCommandFlags(_0x153660,_0x1ee00f),{'definition':_0x153660,'rawFlags':_0x1ee00f,'args':_0x16013f['slice'](0x2)};if(_0x27e2d3['wildcardDef'])return{'definition':_0x27e2d3[_0x55a95d(0x141)],'rawFlags':_0x1ee00f,'args':[_0x2296dd,..._0x16013f[_0x55a95d(0x150)](0x2)]};throw CliErrors[_0x55a95d(0x144)](_0x5d164f+'\x20'+_0x2296dd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a328_0x146db3=a328_0x34f0;(function(_0x5361a9,_0xc02cfc){const _0x495b22=a328_0x34f0,_0x4e4e36=_0x5361a9();while(!![]){try{const _0x2b83eb=parseInt(_0x495b22(0x1f7))/0x1*(-parseInt(_0x495b22(0x210))/0x2)+parseInt(_0x495b22(0x1fd))/0x3+parseInt(_0x495b22(0x227))/0x4*(parseInt(_0x495b22(0x22a))/0x5)+parseInt(_0x495b22(0x205))/0x6*(-parseInt(_0x495b22(0x20d))/0x7)+-parseInt(_0x495b22(0x226))/0x8+-parseInt(_0x495b22(0x1f5))/0x9*(parseInt(_0x495b22(0x1f3))/0xa)+parseInt(_0x495b22(0x1e5))/0xb;if(_0x2b83eb===_0xc02cfc)break;else _0x4e4e36['push'](_0x4e4e36['shift']());}catch(_0xeb7f53){_0x4e4e36['push'](_0x4e4e36['shift']());}}}(a328_0x4ac3,0x5460a));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=a328_0x146db3(0x225),SKILL_NAME=a328_0x146db3(0x1f6),debug=debuglog(a328_0x146db3(0x204));function frontmatterValue(_0x260bc9,_0x294fac){const _0x1258fd=a328_0x146db3;return _0x260bc9['match'](new RegExp('^'+_0x294fac+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x1258fd(0x1fb)]()??'';}function listFiles(_0x545a79,_0x335316=_0x545a79){const _0x197258=a328_0x146db3;return readdirSync(_0x335316,{'withFileTypes':!![]})[_0x197258(0x1e6)](_0x36f9c7=>{const _0x2ff263=_0x197258,_0xe9fe84=join(_0x335316,_0x36f9c7[_0x2ff263(0x223)]),_0x332878=lstatSync(_0xe9fe84);if(_0x332878[_0x2ff263(0x1f0)]())throw new Error(_0x2ff263(0x21b)+_0xe9fe84);if(_0x332878[_0x2ff263(0x211)]())return listFiles(_0x545a79,_0xe9fe84);if(!_0x332878[_0x2ff263(0x21c)]())throw new Error(_0x2ff263(0x1f4)+_0xe9fe84);return[relative(_0x545a79,_0xe9fe84)[_0x2ff263(0x220)](sep)[_0x2ff263(0x207)]('/')];})[_0x197258(0x1fc)]((_0x59e35a,_0x1a36ab)=>_0x59e35a<_0x1a36ab?-0x1:_0x59e35a>_0x1a36ab?0x1:0x0);}function digestFiles(_0x41a9f1,_0x534804){const _0x160e6a=a328_0x146db3,_0x3ce41b=createHash(_0x160e6a(0x208));for(const _0x489017 of _0x534804){if(_0x489017[_0x160e6a(0x21e)]('/')||_0x489017[_0x160e6a(0x220)]('/')[_0x160e6a(0x229)]('..')||_0x489017[_0x160e6a(0x229)]('\x5c'))throw new Error(_0x160e6a(0x1fe)+_0x489017);_0x3ce41b[_0x160e6a(0x20f)](_0x489017),_0x3ce41b[_0x160e6a(0x20f)]('\x00'),_0x3ce41b[_0x160e6a(0x20f)](readFileSync(join(_0x41a9f1,..._0x489017[_0x160e6a(0x220)]('/')))),_0x3ce41b[_0x160e6a(0x20f)]('\x00');}return _0x3ce41b[_0x160e6a(0x221)](_0x160e6a(0x1f9));}function sameFiles(_0x946c4,_0x430645){const _0x487a75=a328_0x146db3;return _0x946c4[_0x487a75(0x21f)]===_0x430645['length']&&_0x946c4[_0x487a75(0x1e7)]((_0x66400d,_0x344914)=>_0x66400d===_0x430645[_0x344914]);}function a328_0x34f0(_0x229b4e,_0x30f19e){_0x229b4e=_0x229b4e-0x1e4;const _0x4ac3f3=a328_0x4ac3();let _0x34f027=_0x4ac3f3[_0x229b4e];return _0x34f027;}function readSource(_0x5d9986){const _0x407b44=a328_0x146db3,_0x3b2259=JSON['parse'](readFileSync(join(_0x5d9986,_0x407b44(0x209)),_0x407b44(0x20c))),_0x5debce=JSON[_0x407b44(0x224)](readFileSync(join(_0x5d9986,_0x407b44(0x21a),_0x407b44(0x1e8)),'utf8')),_0x2b6568=join(_0x5d9986,_0x407b44(0x21a),SKILL_NAME),_0x4958f9=frontmatterValue(readFileSync(join(_0x2b6568,_0x407b44(0x20e)),_0x407b44(0x20c)),'version'),_0x48a1e0=listFiles(_0x2b6568);if(_0x5debce['schemaVersion']!==0x1||_0x5debce['name']!==SKILL_NAME||!_0x3b2259[_0x407b44(0x217)]||_0x5debce[_0x407b44(0x1ee)]!==_0x3b2259[_0x407b44(0x217)]||_0x5debce[_0x407b44(0x1f2)]!==_0x3b2259[_0x407b44(0x217)]||_0x4958f9!==_0x3b2259[_0x407b44(0x217)]||!sameFiles(_0x48a1e0,_0x5debce[_0x407b44(0x1ec)])||digestFiles(_0x2b6568,_0x48a1e0)!==_0x5debce['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x3b2259['version'],'skillVersion':_0x4958f9,'root':_0x2b6568,'manifest':_0x5debce};}function installedSkillPath(_0x1d607a){const _0x4d04e6=a328_0x146db3,_0x1cb4ca=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d607a});if(_0x1cb4ca['state']===_0x4d04e6(0x213))return{'state':'present','path':dirname(_0x1cb4ca[_0x4d04e6(0x1f8)])};if(_0x1cb4ca[_0x4d04e6(0x1eb)]===_0x4d04e6(0x1ea))return{'state':_0x4d04e6(0x201)};return{'state':'unverifiable','reason':_0x1cb4ca['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x47bbdc,_0x3f42c5={}){const _0x2e5175=a328_0x146db3,_0x4dcf8c=installedSkillPath(_0x3f42c5[_0x2e5175(0x1f1)]??homedir());if(_0x4dcf8c[_0x2e5175(0x1eb)]===_0x2e5175(0x201))return{'state':_0x2e5175(0x201),'expectedVersion':_0x47bbdc,'repairCommand':REPAIR_COMMAND};if(_0x4dcf8c[_0x2e5175(0x1eb)]==='unverifiable')return{'state':_0x2e5175(0x1e4),'expectedVersion':_0x47bbdc,'reason':_0x4dcf8c[_0x2e5175(0x1fa)],'repairCommand':REPAIR_COMMAND};try{const _0x3661a6=frontmatterValue(readFileSync(join(_0x4dcf8c['path'],_0x2e5175(0x20e)),_0x2e5175(0x20c)),_0x2e5175(0x217));return{'state':_0x3661a6===_0x47bbdc?_0x2e5175(0x215):_0x2e5175(0x203),'expectedVersion':_0x47bbdc,'skillVersion':_0x3661a6,'installedPath':_0x4dcf8c[_0x2e5175(0x1f8)],'repairCommand':REPAIR_COMMAND};}catch(_0x312a11){return{'state':_0x2e5175(0x1e4),'expectedVersion':_0x47bbdc,'installedPath':_0x4dcf8c[_0x2e5175(0x1f8)],'reason':_0x312a11 instanceof Error?_0x312a11[_0x2e5175(0x214)]:String(_0x312a11),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2bca2c={}){const _0x13ad5f=a328_0x146db3,_0x1285d=_0x2bca2c[_0x13ad5f(0x218)]??DEFAULT_PACKAGE_ROOT;let _0xd24192;try{_0xd24192=readSource(_0x1285d);}catch(_0x53b08a){return{'state':_0x13ad5f(0x1e4),'packageVersion':_0x13ad5f(0x216),'reason':_0x53b08a instanceof Error?_0x53b08a[_0x13ad5f(0x214)]:String(_0x53b08a),'repairCommand':REPAIR_COMMAND};}const _0x1dcff4=installedSkillPath(_0x2bca2c[_0x13ad5f(0x1f1)]??homedir());if(_0x1dcff4[_0x13ad5f(0x1eb)]===_0x13ad5f(0x201))return{'state':'missing','packageVersion':_0xd24192['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1dcff4['state']===_0x13ad5f(0x1e4))return{'state':_0x13ad5f(0x1e4),'packageVersion':_0xd24192[_0x13ad5f(0x1ee)],'reason':_0x1dcff4[_0x13ad5f(0x1fa)],'repairCommand':REPAIR_COMMAND};try{const _0xee5513=frontmatterValue(readFileSync(join(_0x1dcff4[_0x13ad5f(0x1f8)],_0x13ad5f(0x20e)),_0x13ad5f(0x20c)),_0x13ad5f(0x217));if(_0xee5513!==_0xd24192[_0x13ad5f(0x1f2)])return{'state':'version_mismatch','packageVersion':_0xd24192[_0x13ad5f(0x1ee)],'skillVersion':_0xee5513,'installedPath':_0x1dcff4[_0x13ad5f(0x1f8)],'repairCommand':REPAIR_COMMAND};const _0x586bb6=listFiles(_0x1dcff4[_0x13ad5f(0x1f8)]),_0x5102ad=digestFiles(_0x1dcff4[_0x13ad5f(0x1f8)],_0x586bb6);return{'state':sameFiles(_0x586bb6,_0xd24192['manifest'][_0x13ad5f(0x1ec)])&&_0x5102ad===_0xd24192['manifest'][_0x13ad5f(0x221)]?'current':_0x13ad5f(0x20b),'packageVersion':_0xd24192[_0x13ad5f(0x1ee)],'skillVersion':_0xee5513,'installedPath':_0x1dcff4[_0x13ad5f(0x1f8)],'digest':_0x5102ad,'repairCommand':REPAIR_COMMAND};}catch(_0x204bf9){return{'state':_0x13ad5f(0x1e4),'packageVersion':_0xd24192['packageVersion'],'installedPath':_0x1dcff4[_0x13ad5f(0x1f8)],'reason':_0x204bf9 instanceof Error?_0x204bf9[_0x13ad5f(0x214)]:String(_0x204bf9),'repairCommand':REPAIR_COMMAND};}}function failure(_0x45f6b7,_0x4e2000,_0x1d05f7,_0x5cb856){const _0x57a18a=a328_0x146db3;return{'ok':![],'code':_0x45f6b7,'packageVersion':_0x4e2000[_0x57a18a(0x1ee)],'skillVersion':_0x4e2000[_0x57a18a(0x1f2)],'installedPath':_0x5cb856,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1d05f7 instanceof Error?_0x1d05f7['message']:String(_0x1d05f7)};}export function installBuiltinSkill(_0x47ead1={}){const _0x23d447=a328_0x146db3,_0x28534a=_0x47ead1[_0x23d447(0x218)]??DEFAULT_PACKAGE_ROOT,_0xc428d9=_0x47ead1['home']??homedir();let _0x10ebe6;try{_0x10ebe6=readSource(_0x28534a);}catch(_0x3e42be){return failure('SOURCE_INVALID',{'packageVersion':_0x23d447(0x216),'skillVersion':'unknown'},_0x3e42be);}const _0x4b4c28=inspectBuiltinSkill({'packageRoot':_0x28534a,'home':_0xc428d9}),_0x44ac88=runNpxSkillsAddGlobal(_0x28534a,_0x10ebe6[_0x23d447(0x20a)],{'stdio':_0x47ead1[_0x23d447(0x1ff)]??_0x23d447(0x222),'expectedSkillName':SKILL_NAME,'presence':{'home':_0xc428d9}});if(_0x44ac88['skipped'])return{'ok':!![],'packageVersion':_0x10ebe6[_0x23d447(0x1ee)],'skillVersion':_0x10ebe6[_0x23d447(0x1f2)],'installedPath':_0x4b4c28[_0x23d447(0x1ef)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x44ac88['ok'])return failure(_0x23d447(0x219),_0x10ebe6,_0x44ac88['error']??_0x23d447(0x200)+_0x44ac88[_0x23d447(0x1ed)]);const _0x12b568=inspectBuiltinSkill({'packageRoot':_0x28534a,'home':_0xc428d9});if(_0x12b568[_0x23d447(0x1eb)]!==_0x23d447(0x215)){const _0xf9008=_0x12b568[_0x23d447(0x1fa)]??'Installed\x20Skill\x20state\x20is\x20'+_0x12b568[_0x23d447(0x1eb)];return failure(_0x23d447(0x206),_0x10ebe6,_0x44ac88[_0x23d447(0x1e9)]?_0xf9008+'\x0a'+_0x44ac88['partialFailure'][_0x23d447(0x228)]:_0xf9008,_0x12b568[_0x23d447(0x1ef)]);}return _0x44ac88['partialFailure']&&(debug('Installer\x20reported\x20partial\x20target\x20failures:\x0a%s',_0x44ac88['partialFailure'][_0x23d447(0x228)]),console[_0x23d447(0x202)]('CLI\x20Built-in\x20Skill\x20'+_0x10ebe6[_0x23d447(0x1f2)]+'\x20verified;\x20'+_0x44ac88[_0x23d447(0x1e9)][_0x23d447(0x21d)]+_0x23d447(0x212))),{'ok':!![],'packageVersion':_0x10ebe6[_0x23d447(0x1ee)],'skillVersion':_0x10ebe6['skillVersion'],'installedPath':_0x12b568['installedPath'],'changed':_0x4b4c28[_0x23d447(0x1eb)]!==_0x23d447(0x215),'repairCommand':REPAIR_COMMAND};}function a328_0x4ac3(){const _0x353139=['parse','rabetbase\x20cli-skill\x20install','364384czCoRm','656ZqAVDk','output','includes','2165vLCOyD','unverifiable','13768469rlgnIH','flatMap','every','rabetbase.manifest.json','partialFailure','absent','state','files','status','packageVersion','installedPath','isSymbolicLink','home','skillVersion','19600fHHqTZ','Unsupported\x20Skill\x20entry:\x20','2511zhdwAu','rabetbase','58KuJtYp','path','hex','reason','trim','sort','987774QRijFr','Unsafe\x20manifest\x20path:\x20','stdio','skills@latest\x20exited\x20','missing','log','version_mismatch','rabetbase-skills','2094DMiiNd','VERIFY_FAILED','join','sha256','package.json','root','content_mismatch','utf8','5481fiNuwB','SKILL.md','update','15196cRcVEw','isDirectory','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','present','message','current','unknown','version','packageRoot','INSTALL_FAILED','skills','Symbolic\x20link\x20is\x20not\x20allowed:\x20','isFile','count','startsWith','length','split','digest','pipe','name'];a328_0x4ac3=function(){return _0x353139;};return a328_0x4ac3();}
|
|
1
|
+
function a328_0x490d(_0x7478e1,_0x1ea350){_0x7478e1=_0x7478e1-0x1dd;const _0x4d7861=a328_0x4d78();let _0x490d8c=_0x4d7861[_0x7478e1];return _0x490d8c;}const a328_0x3da4fc=a328_0x490d;(function(_0x275be4,_0x5f0d0a){const _0x4a0467=a328_0x490d,_0x11a732=_0x275be4();while(!![]){try{const _0x33c718=parseInt(_0x4a0467(0x1dd))/0x1+-parseInt(_0x4a0467(0x1f2))/0x2+-parseInt(_0x4a0467(0x1eb))/0x3*(parseInt(_0x4a0467(0x1e9))/0x4)+parseInt(_0x4a0467(0x203))/0x5*(-parseInt(_0x4a0467(0x1f5))/0x6)+-parseInt(_0x4a0467(0x211))/0x7+-parseInt(_0x4a0467(0x218))/0x8+-parseInt(_0x4a0467(0x209))/0x9*(-parseInt(_0x4a0467(0x1e0))/0xa);if(_0x33c718===_0x5f0d0a)break;else _0x11a732['push'](_0x11a732['shift']());}catch(_0x42ca54){_0x11a732['push'](_0x11a732['shift']());}}}(a328_0x4d78,0x4bc4d));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='rabetbase',debug=debuglog(a328_0x3da4fc(0x1ed));function a328_0x4d78(){const _0x16de95=['18mGFCzV','skillVersion','package.json','unverifiable','match','absent','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','skills','root','parse','name','current','utf8','update','261260QggLdW','SKILL.md','installedPath','digest','split','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','9KocucM','log','manifest','every','reason','error','Symbolic\x20link\x20is\x20not\x20allowed:\x20','isFile','2016959zjTWLi','hex','skills@latest\x20exited\x20','\x20verified;\x20','rabetbase.manifest.json','INSTALL_FAILED','message','3965112jMQUbj','Unsupported\x20Skill\x20entry:\x20','flatMap','startsWith','packageVersion','Installed\x20Skill\x20state\x20is\x20','length','packageRoot','path','Unsafe\x20manifest\x20path:\x20','status','500147uNoaud','trim','present','12742780vJumxQ','files','includes','home','version_mismatch','partialFailure','isSymbolicLink','VERIFY_FAILED','isDirectory','8248VbbYRi','missing','459ACPgmt','state','rabetbase-skills','sha256','SOURCE_INVALID','count','version','416116nTyvuJ',':\x5cs*(.+)$','unknown'];a328_0x4d78=function(){return _0x16de95;};return a328_0x4d78();}function frontmatterValue(_0x1bca89,_0xbb5503){const _0x3e8ece=a328_0x3da4fc;return _0x1bca89[_0x3e8ece(0x1f9)](new RegExp('^'+_0xbb5503+_0x3e8ece(0x1f3),'m'))?.[0x1]?.[_0x3e8ece(0x1de)]()??'';}function listFiles(_0x36b9be,_0x121d0f=_0x36b9be){const _0x2b6b5f=a328_0x3da4fc;return readdirSync(_0x121d0f,{'withFileTypes':!![]})[_0x2b6b5f(0x21a)](_0x49b2f2=>{const _0x143973=_0x2b6b5f,_0x295575=join(_0x121d0f,_0x49b2f2['name']),_0x12d930=lstatSync(_0x295575);if(_0x12d930[_0x143973(0x1e6)]())throw new Error(_0x143973(0x20f)+_0x295575);if(_0x12d930[_0x143973(0x1e8)]())return listFiles(_0x36b9be,_0x295575);if(!_0x12d930[_0x143973(0x210)]())throw new Error(_0x143973(0x219)+_0x295575);return[relative(_0x36b9be,_0x295575)[_0x143973(0x207)](sep)['join']('/')];})['sort']((_0x44e78c,_0x4f9a7d)=>_0x44e78c<_0x4f9a7d?-0x1:_0x44e78c>_0x4f9a7d?0x1:0x0);}function digestFiles(_0x291bcb,_0x2725f2){const _0x1f46c0=a328_0x3da4fc,_0x1de8bf=createHash(_0x1f46c0(0x1ee));for(const _0x24cee8 of _0x2725f2){if(_0x24cee8[_0x1f46c0(0x21b)]('/')||_0x24cee8[_0x1f46c0(0x207)]('/')[_0x1f46c0(0x1e2)]('..')||_0x24cee8[_0x1f46c0(0x1e2)]('\x5c'))throw new Error(_0x1f46c0(0x221)+_0x24cee8);_0x1de8bf[_0x1f46c0(0x202)](_0x24cee8),_0x1de8bf[_0x1f46c0(0x202)]('\x00'),_0x1de8bf[_0x1f46c0(0x202)](readFileSync(join(_0x291bcb,..._0x24cee8[_0x1f46c0(0x207)]('/')))),_0x1de8bf['update']('\x00');}return _0x1de8bf[_0x1f46c0(0x206)](_0x1f46c0(0x212));}function sameFiles(_0x494f6b,_0x45825d){const _0x4be048=a328_0x3da4fc;return _0x494f6b[_0x4be048(0x21e)]===_0x45825d[_0x4be048(0x21e)]&&_0x494f6b[_0x4be048(0x20c)]((_0x5e5b26,_0x9f75fe)=>_0x5e5b26===_0x45825d[_0x9f75fe]);}function readSource(_0xcc7090){const _0x59e55c=a328_0x3da4fc,_0x1562e6=JSON['parse'](readFileSync(join(_0xcc7090,_0x59e55c(0x1f7)),_0x59e55c(0x201))),_0x5d81c6=JSON[_0x59e55c(0x1fe)](readFileSync(join(_0xcc7090,_0x59e55c(0x1fc),_0x59e55c(0x215)),_0x59e55c(0x201))),_0x2c9bc5=join(_0xcc7090,_0x59e55c(0x1fc),SKILL_NAME),_0x2e366f=frontmatterValue(readFileSync(join(_0x2c9bc5,'SKILL.md'),_0x59e55c(0x201)),'version'),_0x5242f5=listFiles(_0x2c9bc5);if(_0x5d81c6['schemaVersion']!==0x1||_0x5d81c6[_0x59e55c(0x1ff)]!==SKILL_NAME||!_0x1562e6[_0x59e55c(0x1f1)]||_0x5d81c6[_0x59e55c(0x21c)]!==_0x1562e6['version']||_0x5d81c6[_0x59e55c(0x1f6)]!==_0x1562e6[_0x59e55c(0x1f1)]||_0x2e366f!==_0x1562e6[_0x59e55c(0x1f1)]||!sameFiles(_0x5242f5,_0x5d81c6[_0x59e55c(0x1e1)])||digestFiles(_0x2c9bc5,_0x5242f5)!==_0x5d81c6[_0x59e55c(0x206)])throw new Error(_0x59e55c(0x208));return{'packageVersion':_0x1562e6['version'],'skillVersion':_0x2e366f,'root':_0x2c9bc5,'manifest':_0x5d81c6};}function installedSkillPath(_0x329b3b){const _0x2316df=a328_0x3da4fc,_0x44d489=resolveInstalledSkill(SKILL_NAME,{'home':_0x329b3b});if(_0x44d489['state']===_0x2316df(0x1df))return{'state':'present','path':dirname(_0x44d489[_0x2316df(0x220)])};if(_0x44d489['state']===_0x2316df(0x1fa))return{'state':'missing'};return{'state':_0x2316df(0x1f8),'reason':_0x44d489[_0x2316df(0x20d)]};}export function inspectInstalledBuiltinSkillVersion(_0x5f154a,_0x1829ab={}){const _0x4e2be5=a328_0x3da4fc,_0x57ca6d=installedSkillPath(_0x1829ab['home']??homedir());if(_0x57ca6d[_0x4e2be5(0x1ec)]===_0x4e2be5(0x1ea))return{'state':_0x4e2be5(0x1ea),'expectedVersion':_0x5f154a,'repairCommand':REPAIR_COMMAND};if(_0x57ca6d['state']===_0x4e2be5(0x1f8))return{'state':_0x4e2be5(0x1f8),'expectedVersion':_0x5f154a,'reason':_0x57ca6d[_0x4e2be5(0x20d)],'repairCommand':REPAIR_COMMAND};try{const _0x3e3bc7=frontmatterValue(readFileSync(join(_0x57ca6d[_0x4e2be5(0x220)],_0x4e2be5(0x204)),_0x4e2be5(0x201)),_0x4e2be5(0x1f1));return{'state':_0x3e3bc7===_0x5f154a?_0x4e2be5(0x200):'version_mismatch','expectedVersion':_0x5f154a,'skillVersion':_0x3e3bc7,'installedPath':_0x57ca6d[_0x4e2be5(0x220)],'repairCommand':REPAIR_COMMAND};}catch(_0x34bace){return{'state':'unverifiable','expectedVersion':_0x5f154a,'installedPath':_0x57ca6d[_0x4e2be5(0x220)],'reason':_0x34bace instanceof Error?_0x34bace[_0x4e2be5(0x217)]:String(_0x34bace),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x52007b={}){const _0x49ca57=a328_0x3da4fc,_0x39d8c4=_0x52007b[_0x49ca57(0x21f)]??DEFAULT_PACKAGE_ROOT;let _0x3310d0;try{_0x3310d0=readSource(_0x39d8c4);}catch(_0x665433){return{'state':_0x49ca57(0x1f8),'packageVersion':_0x49ca57(0x1f4),'reason':_0x665433 instanceof Error?_0x665433[_0x49ca57(0x217)]:String(_0x665433),'repairCommand':REPAIR_COMMAND};}const _0x5e8fe8=installedSkillPath(_0x52007b[_0x49ca57(0x1e3)]??homedir());if(_0x5e8fe8['state']===_0x49ca57(0x1ea))return{'state':_0x49ca57(0x1ea),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'repairCommand':REPAIR_COMMAND};if(_0x5e8fe8[_0x49ca57(0x1ec)]===_0x49ca57(0x1f8))return{'state':_0x49ca57(0x1f8),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'reason':_0x5e8fe8['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x3b14f3=frontmatterValue(readFileSync(join(_0x5e8fe8[_0x49ca57(0x220)],_0x49ca57(0x204)),_0x49ca57(0x201)),'version');if(_0x3b14f3!==_0x3310d0[_0x49ca57(0x1f6)])return{'state':_0x49ca57(0x1e4),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'skillVersion':_0x3b14f3,'installedPath':_0x5e8fe8['path'],'repairCommand':REPAIR_COMMAND};const _0x3c58bb=listFiles(_0x5e8fe8[_0x49ca57(0x220)]),_0x5621a9=digestFiles(_0x5e8fe8['path'],_0x3c58bb);return{'state':sameFiles(_0x3c58bb,_0x3310d0[_0x49ca57(0x20b)][_0x49ca57(0x1e1)])&&_0x5621a9===_0x3310d0[_0x49ca57(0x20b)][_0x49ca57(0x206)]?_0x49ca57(0x200):'content_mismatch','packageVersion':_0x3310d0['packageVersion'],'skillVersion':_0x3b14f3,'installedPath':_0x5e8fe8[_0x49ca57(0x220)],'digest':_0x5621a9,'repairCommand':REPAIR_COMMAND};}catch(_0x4a255d){return{'state':_0x49ca57(0x1f8),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'installedPath':_0x5e8fe8[_0x49ca57(0x220)],'reason':_0x4a255d instanceof Error?_0x4a255d[_0x49ca57(0x217)]:String(_0x4a255d),'repairCommand':REPAIR_COMMAND};}}function failure(_0xdabeb5,_0x5e62e8,_0x81ef02,_0x100384){const _0x33f9ea=a328_0x3da4fc;return{'ok':![],'code':_0xdabeb5,'packageVersion':_0x5e62e8[_0x33f9ea(0x21c)],'skillVersion':_0x5e62e8[_0x33f9ea(0x1f6)],'installedPath':_0x100384,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x81ef02 instanceof Error?_0x81ef02[_0x33f9ea(0x217)]:String(_0x81ef02)};}export function installBuiltinSkill(_0x2cccfe={}){const _0x17983f=a328_0x3da4fc,_0x104042=_0x2cccfe[_0x17983f(0x21f)]??DEFAULT_PACKAGE_ROOT,_0x383de2=_0x2cccfe[_0x17983f(0x1e3)]??homedir();let _0x16c6df;try{_0x16c6df=readSource(_0x104042);}catch(_0x21d457){return failure(_0x17983f(0x1ef),{'packageVersion':_0x17983f(0x1f4),'skillVersion':_0x17983f(0x1f4)},_0x21d457);}const _0x4926a6=inspectBuiltinSkill({'packageRoot':_0x104042,'home':_0x383de2}),_0x28b6e8=runNpxSkillsAddGlobal(_0x104042,_0x16c6df[_0x17983f(0x1fd)],{'stdio':_0x2cccfe['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x383de2}});if(_0x28b6e8['skipped'])return{'ok':!![],'packageVersion':_0x16c6df[_0x17983f(0x21c)],'skillVersion':_0x16c6df[_0x17983f(0x1f6)],'installedPath':_0x4926a6[_0x17983f(0x205)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x28b6e8['ok'])return failure(_0x17983f(0x216),_0x16c6df,_0x28b6e8[_0x17983f(0x20e)]??_0x17983f(0x213)+_0x28b6e8[_0x17983f(0x222)]);const _0x2092a5=inspectBuiltinSkill({'packageRoot':_0x104042,'home':_0x383de2});if(_0x2092a5[_0x17983f(0x1ec)]!==_0x17983f(0x200)){const _0x56f59e=_0x2092a5['reason']??_0x17983f(0x21d)+_0x2092a5[_0x17983f(0x1ec)];return failure(_0x17983f(0x1e7),_0x16c6df,_0x28b6e8[_0x17983f(0x1e5)]?_0x56f59e+'\x0a'+_0x28b6e8['partialFailure']['output']:_0x56f59e,_0x2092a5[_0x17983f(0x205)]);}return _0x28b6e8[_0x17983f(0x1e5)]&&(debug('Installer\x20reported\x20partial\x20target\x20failures:\x0a%s',_0x28b6e8['partialFailure']['output']),console[_0x17983f(0x20a)]('CLI\x20Built-in\x20Skill\x20'+_0x16c6df['skillVersion']+_0x17983f(0x214)+_0x28b6e8[_0x17983f(0x1e5)][_0x17983f(0x1f0)]+_0x17983f(0x1fb))),{'ok':!![],'packageVersion':_0x16c6df[_0x17983f(0x21c)],'skillVersion':_0x16c6df[_0x17983f(0x1f6)],'installedPath':_0x2092a5[_0x17983f(0x205)],'changed':_0x4926a6[_0x17983f(0x1ec)]!==_0x17983f(0x200),'repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x585975,_0x3d8b83){const _0x1a6163=a329_0x1c92,_0xfe728a=_0x585975();while(!![]){try{const _0x1a362d=-parseInt(_0x1a6163(0x13e))/0x1+parseInt(_0x1a6163(0x13a))/0x2+-parseInt(_0x1a6163(0x145))/0x3*(parseInt(_0x1a6163(0x137))/0x4)+parseInt(_0x1a6163(0x13c))/0x5+parseInt(_0x1a6163(0x140))/0x6*(parseInt(_0x1a6163(0x151))/0x7)+-parseInt(_0x1a6163(0x144))/0x8*(parseInt(_0x1a6163(0x146))/0x9)+parseInt(_0x1a6163(0x13b))/0xa;if(_0x1a362d===_0x3d8b83)break;else _0xfe728a['push'](_0xfe728a['shift']());}catch(_0x3425c9){_0xfe728a['push'](_0xfe728a['shift']());}}}(a329_0x3f05,0xeef63));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(_0x3703ce){const _0x5e7000=a329_0x1c92,_0x30d53a=[];for(const [_0x448d43,_0x46d0e9]of Object['entries'](_0x3703ce)){if(_0x46d0e9===!![]){const _0x3660ac=_0x448d43[_0x5e7000(0x152)](/([A-Z])/g,_0x5e7000(0x14a))[_0x5e7000(0x139)]();_0x30d53a[_0x5e7000(0x14c)](_0x3660ac);}}return _0x30d53a;}function a329_0x3f05(){const _0x58b587=['Error:\x20Unsupported\x20command:\x20','log','cwd','76PTfyQq','help','toLowerCase','3131868aPjylq','3004240ABXOQm','6296515RLfJZy','argv','1603649YXROOG','\x0aAvailable\x20commands:','6HfHQdU','includes','add','from','8bHQFcv','9753oQzobF','13317687aFJold','exit','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','enable-bff-save','-$1','error','push','skill','setLogPath','slice','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','6988009fzhQtM','replace','Public\x20Open\x20Skill\x20source:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'];a329_0x3f05=function(){return _0x58b587;};return a329_0x3f05();}export function parseDynamicFlags(){const _0x5925c6=a329_0x1c92,_0x27d276=[];for(let _0x3d6631=0x3;_0x3d6631<process[_0x5925c6(0x13d)]['length'];_0x3d6631++){const _0x37e12b=process[_0x5925c6(0x13d)][_0x3d6631];if(_0x37e12b&&_0x37e12b['startsWith']('--')){const _0x5c70ce=_0x37e12b[_0x5925c6(0x14f)](0x2);_0x5c70ce&&!_0x5c70ce[_0x5925c6(0x141)]('=')&&_0x27d276['push'](_0x5c70ce);}}return _0x27d276;}export function getAllProvidedFlags(_0x49b149){const _0x4a9b0e=a329_0x1c92,_0x47b5f6=camelCaseFlagsToKebab(_0x49b149),_0x1b5bb5=parseDynamicFlags(),_0x3a73c0=new Set([..._0x47b5f6,..._0x1b5bb5]);return Array[_0x4a9b0e(0x143)](_0x3a73c0);}export function normalizeLegacyBffSaveFlags(_0x508f03){const _0x2aaf40=a329_0x1c92,_0x2882d4=new Set(_0x508f03);return _0x2882d4['has']('dangerously-bff-save')&&_0x2882d4[_0x2aaf40(0x142)](_0x2aaf40(0x149)),Array[_0x2aaf40(0x143)](_0x2882d4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a329_0x1c92(_0xc897c0,_0x4967d7){_0xc897c0=_0xc897c0-0x136;const _0x3f05ce=a329_0x3f05();let _0x1c9274=_0x3f05ce[_0xc897c0];return _0x1c9274;}export async function skillsCommand(_0x294444,_0x45188f,_0x224e66){const _0x31ad4c=a329_0x1c92;logger[_0x31ad4c(0x14e)](process[_0x31ad4c(0x136)]());if(_0x224e66?.[_0x31ad4c(0x138)]||_0x294444==='--help'){showHelp();return;}console[_0x31ad4c(0x14b)](_0x31ad4c(0x155)+(_0x294444||'(empty)')),console[_0x31ad4c(0x156)](_0x31ad4c(0x13f)),console[_0x31ad4c(0x156)]('\x20\x20'+CLI_BIN_NAME+_0x31ad4c(0x150)),console[_0x31ad4c(0x156)](''),console[_0x31ad4c(0x156)](_0x31ad4c(0x153)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x31ad4c(0x14b)](_0x31ad4c(0x14d),'Unsupported\x20command:\x20'+_0x294444),process[_0x31ad4c(0x147)](0x1);}function showHelp(){const _0x4b0ae0=a329_0x1c92;console[_0x4b0ae0(0x156)](_0x4b0ae0(0x154)+CLI_BIN_NAME+_0x4b0ae0(0x148)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a330_0x140d3d=a330_0x51a8;(function(_0x4d6c33,_0x2ba1bc){const _0x303935=a330_0x51a8,_0x3da83d=_0x4d6c33();while(!![]){try{const _0x16a35e=-parseInt(_0x303935(0x1eb))/0x1+parseInt(_0x303935(0x1d1))/0x2*(parseInt(_0x303935(0x1d3))/0x3)+-parseInt(_0x303935(0x1dd))/0x4*(parseInt(_0x303935(0x1f9))/0x5)+-parseInt(_0x303935(0x1d9))/0x6+parseInt(_0x303935(0x1c4))/0x7*(parseInt(_0x303935(0x1c9))/0x8)+parseInt(_0x303935(0x1d6))/0x9*(parseInt(_0x303935(0x1ec))/0xa)+parseInt(_0x303935(0x1f0))/0xb*(parseInt(_0x303935(0x1e7))/0xc);if(_0x16a35e===_0x2ba1bc)break;else _0x3da83d['push'](_0x3da83d['shift']());}catch(_0x577b22){_0x3da83d['push'](_0x3da83d['shift']());}}}(a330_0x11e5,0xb2467));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a330_0x51a8(_0x238049,_0x37e336){_0x238049=_0x238049-0x1c2;const _0x11e551=a330_0x11e5();let _0x51a808=_0x11e551[_0x238049];return _0x51a808;}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a330_0x140d3d(0x1e6);export const NPX_SKILLS_SUBCOMMAND_ADD=a330_0x140d3d(0x1ca);export const NPX_SKILLS_FLAG_SKILL='--skill';function a330_0x11e5(){const _0x2a7a03=['unknown','inherit','unverifiable','exitCode','70FLgJlE','log','trim','35854eMIkkh','npx','!\x20Could\x20not\x20verify\x20\x22','present','message','24uqpEmD','add','filter','signal','Installer\x20reported\x20','PERMISSION_DENIED','warn','npx\x20terminated\x20by\x20signal\x20','298vluGIh','absent','3666pMepWP','NPX_NOT_FOUND','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','242316MSQOiW','npx\x20failed\x20to\x20start','EACCES','8209128VzgwZq','SPAWN_FAILED','EPERM','join','31828ZcMYve','SKILL_NOT_INSTALLED','shortMessage','expectedSkillName','state','Skill\x20\x22','failed','stdout','\x20failed\x20target(s)','skills@latest','36SmipUr','stdio','code','INSTALL_PARTIAL','1248180Ebnsbs','340fnEsTZ','ENOENT','stderr','\x22\x20install\x20state:\x20','8598777DoYuEn','partialFailure','skill','pipe','push'];a330_0x11e5=function(){return _0x2a7a03;};return a330_0x11e5();}export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a330_0x140d3d(0x1d5);export function resolveGlobalSkillName(_0x266687){switch(_0x266687['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x385812){const _0x47a1e8=a330_0x140d3d,_0x299270=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x385812&&_0x299270[_0x47a1e8(0x1f4)](NPX_SKILLS_FLAG_SKILL,_0x385812),_0x299270;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a330_0x140d3d(0x1c5),...buildNpxSkillsAddArgv()][a330_0x140d3d(0x1dc)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x140d3d(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3bc3b1,_0x49be6a,_0x4e0eff){return{'ok':![],'status':_0x49be6a,'code':_0x3bc3b1,'error':'['+_0x3bc3b1+']\x20'+_0x4e0eff};}function execaOptions(_0x322b20,_0x3e383e){const _0x2c43a3={...process.env};return delete _0x2c43a3['npm_config_global'],delete _0x2c43a3['NPM_CONFIG_GLOBAL'],{'cwd':_0x322b20,'stdio':_0x3e383e,'env':_0x2c43a3,'extendEnv':![],'shell':![],'reject':![],..._0x3e383e==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x3e2848,_0x52e07c,_0x3651d0){const _0x56fdb6=a330_0x140d3d,_0x4ee103=[_0x3e2848[_0x56fdb6(0x1e4)]?String(_0x3e2848['stdout']):'',_0x3e2848[_0x56fdb6(0x1ee)]?String(_0x3e2848['stderr']):''][_0x56fdb6(0x1cb)](Boolean)[_0x56fdb6(0x1dc)]('\x0a')[_0x56fdb6(0x1c3)](),_0xeb16db=_0x3e2848[_0x56fdb6(0x1f8)]??null;if(_0x3e2848[_0x56fdb6(0x1e9)]){const _0x1acfdf=_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1ed)?_0x56fdb6(0x1d4):_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1db)||_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1d8)?_0x56fdb6(0x1ce):_0x56fdb6(0x1da);return failure(_0x1acfdf,_0xeb16db,_0x3e2848['shortMessage']??_0x3e2848[_0x56fdb6(0x1c8)]??_0x3e2848[_0x56fdb6(0x1e9)]);}if(_0x3e2848[_0x56fdb6(0x1cc)])return failure('CHILD_TERMINATED',_0xeb16db,_0x56fdb6(0x1d0)+_0x3e2848[_0x56fdb6(0x1cc)]);if(_0x3e2848[_0x56fdb6(0x1e3)]&&_0xeb16db===null)return failure('SPAWN_FAILED',_0xeb16db,_0x3e2848[_0x56fdb6(0x1df)]??_0x3e2848[_0x56fdb6(0x1c8)]??_0x56fdb6(0x1d7));if(_0xeb16db!==0x0)return failure('CHILD_EXIT_NONZERO',_0xeb16db,_0x4ee103||_0x3e2848[_0x56fdb6(0x1df)]||'exit\x20'+(_0xeb16db??_0x56fdb6(0x1f5)));const _0x3a857a=_0x52e07c?resolveInstalledSkill(_0x52e07c,_0x3651d0):undefined,_0x47d2a6=_0x4ee103['match'](/Failed to install\s+(\d+)/i);if(_0x47d2a6&&Number(_0x47d2a6[0x1])>0x0){const _0x289888=_0x56fdb6(0x1cd)+_0x47d2a6[0x1]+_0x56fdb6(0x1e5)+(_0x4ee103?':\x0a'+_0x4ee103:'');if(_0x3a857a?.[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1c7))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x47d2a6[0x1]),'output':_0x4ee103}};return failure(_0x56fdb6(0x1ea),0x0,_0x289888);}if(_0x3a857a){if(_0x3a857a[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1d2))return failure(_0x56fdb6(0x1de),0x0,_0x56fdb6(0x1e2)+_0x52e07c+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x3a857a['checked'][_0x56fdb6(0x1dc)](',\x20')+')');_0x3a857a[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1f7)&&console[_0x56fdb6(0x1cf)](_0x56fdb6(0x1c6)+_0x52e07c+_0x56fdb6(0x1ef)+_0x3a857a['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x8d8c87,_0x1ad7cb){const _0x337398=a330_0x140d3d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1137a2=_0x1ad7cb?.[_0x337398(0x1e8)]??_0x337398(0x1f6),_0x2a807a=buildNpxSkillsAddArgv(_0x1ad7cb?.[_0x337398(0x1f2)]),_0x28d242=[_0x337398(0x1c5),..._0x2a807a][_0x337398(0x1dc)]('\x20');console[_0x337398(0x1c2)]('*\x20'+_0x28d242);const _0x10ff7e=execaSync(_0x337398(0x1c5),_0x2a807a,execaOptions(_0x8d8c87,_0x1137a2));return normalizeExecaResult(_0x10ff7e);}export function runNpxSkillsAddGlobal(_0x570cff,_0x3c46b0,_0x59de73){const _0xb441b7=a330_0x140d3d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x13d1dc=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c46b0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x400f38=[_0xb441b7(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c46b0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb441b7(0x1dc)]('\x20');console['log']('*\x20'+_0x400f38);const _0x1bf7ac=execaSync(_0xb441b7(0x1c5),_0x13d1dc,execaOptions(_0x570cff,_0xb441b7(0x1f3))),_0x15c47e=normalizeExecaResult(_0x1bf7ac,_0x59de73?.[_0xb441b7(0x1e0)]??resolveGlobalSkillName(_0x3c46b0),_0x59de73?.['presence']);if(_0x59de73?.['stdio']!==_0xb441b7(0x1f3)&&!_0x15c47e[_0xb441b7(0x1f1)]){const _0x33a8a1=[_0x1bf7ac[_0xb441b7(0x1e4)],_0x1bf7ac[_0xb441b7(0x1ee)]]['filter'](Boolean)[_0xb441b7(0x1dc)]('\x0a')[_0xb441b7(0x1c3)]();if(_0x33a8a1)console[_0xb441b7(0x1c2)](_0x33a8a1);}return _0x15c47e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a331_0x2477(){const _0x514002=['utf8','recorded','find','\x20records\x20\x22','version','\x20uses\x20unsupported\x20version\x20','parse','map','message','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','504rCVMnS','join','\x20has\x20no\x20skills\x20map','989891zQcytv','kind','.skill-lock.json','1HZIscS','.claude','2573425mgTjGy','127240EiXEBA','.agents','SKILL.md','437049PeuXZl','934256psQnmi','globalSkillsDirs','8cNYsVT','reason','not-recorded','skills','881658vetFYm','\x20is\x20unreadable:\x20','2002156xgVgQP','unverifiable','absent','object','unusable','present'];a331_0x2477=function(){return _0x514002;};return a331_0x2477();}const a331_0x23cfe1=a331_0x5b7d;function a331_0x5b7d(_0x282bef,_0x9b8889){_0x282bef=_0x282bef-0x183;const _0x2477df=a331_0x2477();let _0x5b7d84=_0x2477df[_0x282bef];return _0x5b7d84;}(function(_0x3bd67b,_0x378934){const _0x39b02b=a331_0x5b7d,_0x12f64b=_0x3bd67b();while(!![]){try{const _0x32fb07=parseInt(_0x39b02b(0x185))/0x1*(-parseInt(_0x39b02b(0x18c))/0x2)+-parseInt(_0x39b02b(0x18b))/0x3+-parseInt(_0x39b02b(0x194))/0x4+parseInt(_0x39b02b(0x187))/0x5+parseInt(_0x39b02b(0x192))/0x6+parseInt(_0x39b02b(0x1a7))/0x7*(parseInt(_0x39b02b(0x18e))/0x8)+parseInt(_0x39b02b(0x1a4))/0x9*(parseInt(_0x39b02b(0x188))/0xa);if(_0x32fb07===_0x378934)break;else _0x12f64b['push'](_0x12f64b['shift']());}catch(_0x4a72c2){_0x12f64b['push'](_0x12f64b['shift']());}}}(a331_0x2477,0x6233b));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x23cfe1(0x189),a331_0x23cfe1(0x184));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x23cfe1(0x189),a331_0x23cfe1(0x191)),join(a331_0x23cfe1(0x186),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x28c800,_0x135d7b){const _0x47ac34=a331_0x23cfe1;if(!existsSync(_0x28c800))return{'kind':'not-recorded'};let _0x232eef;try{_0x232eef=JSON[_0x47ac34(0x1a0)](readFileSync(_0x28c800,_0x47ac34(0x19a)));}catch(_0x3690b2){return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x193)+_0x3690b2[_0x47ac34(0x1a2)]};}const _0x4c6110=_0x232eef;if(typeof _0x4c6110?.[_0x47ac34(0x19e)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x4c6110[_0x47ac34(0x19e)]))return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x19f)+String(_0x4c6110?.[_0x47ac34(0x19e)])};if(!_0x4c6110[_0x47ac34(0x191)]||typeof _0x4c6110[_0x47ac34(0x191)]!==_0x47ac34(0x197))return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x1a6)};return _0x4c6110[_0x47ac34(0x191)][_0x135d7b]?{'kind':_0x47ac34(0x19b)}:{'kind':_0x47ac34(0x190)};}export function resolveInstalledSkill(_0x408e49,_0x1f9c94){const _0x272033=a331_0x23cfe1,_0x9e22b1=_0x1f9c94?.['home']??homedir(),_0x26f56c=_0x1f9c94?.[_0x272033(0x18d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x272033(0x1a1)](_0x294bbd=>join(_0x9e22b1,_0x294bbd)),_0x265706=_0x1f9c94?.['lockFile']??join(_0x9e22b1,SKILL_LOCK_RELATIVE_PATH),_0x42bfc6=_0x26f56c['map'](_0xa6c95e=>join(_0xa6c95e,_0x408e49,_0x272033(0x18a))),_0x305027=_0x42bfc6[_0x272033(0x19c)](_0x2c114c=>existsSync(_0x2c114c));if(_0x305027)return{'state':_0x272033(0x199),'path':_0x305027};const _0x5c8115=readLockLookup(_0x265706,_0x408e49);if(_0x5c8115['kind']===_0x272033(0x198))return{'state':_0x272033(0x195),'reason':_0x5c8115[_0x272033(0x18f)]};if(_0x5c8115[_0x272033(0x183)]===_0x272033(0x19b))return{'state':_0x272033(0x195),'reason':_0x265706+_0x272033(0x19d)+_0x408e49+_0x272033(0x1a3)+('('+_0x42bfc6[_0x272033(0x1a5)](',\x20')+')')};return{'state':_0x272033(0x196),'checked':_0x42bfc6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5caf74,_0x103318){const _0x4c02fd=a332_0x20ea,_0x3f38a6=_0x5caf74();while(!![]){try{const _0x558991=-parseInt(_0x4c02fd(0x136))/0x1*(-parseInt(_0x4c02fd(0x142))/0x2)+parseInt(_0x4c02fd(0x139))/0x3*(-parseInt(_0x4c02fd(0x138))/0x4)+-parseInt(_0x4c02fd(0x13a))/0x5+parseInt(_0x4c02fd(0x143))/0x6+parseInt(_0x4c02fd(0x135))/0x7*(parseInt(_0x4c02fd(0x141))/0x8)+parseInt(_0x4c02fd(0x140))/0x9*(parseInt(_0x4c02fd(0x13f))/0xa)+-parseInt(_0x4c02fd(0x13c))/0xb*(parseInt(_0x4c02fd(0x134))/0xc);if(_0x558991===_0x103318)break;else _0x3f38a6['push'](_0x3f38a6['shift']());}catch(_0x58f54e){_0x3f38a6['push'](_0x3f38a6['shift']());}}}(a332_0x391f,0xe3dd2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a332_0x391f(){const _0x204830=['36tdppzs','1295VgfBEM','14042GaAABu','command','11048vslttJ','1038GSlxTO','4873830IDeAmL','some','4061321EuAgrK','durationMs','error','1160lLjzby','35523DBUahh','76232RwkZMd','48mVtCto','8481936iWfjGd','entries','rabetbase.command','flags','message'];a332_0x391f=function(){return _0x204830;};return a332_0x391f();}function a332_0x20ea(_0x57299c,_0x8f3dcc){_0x57299c=_0x57299c-0x130;const _0x391f18=a332_0x391f();let _0x20ea8e=_0x391f18[_0x57299c];return _0x20ea8e;}function isSensitiveKey(_0x5681ac){const _0x5381dc=a332_0x20ea;return SENSITIVE_PATTERNS[_0x5381dc(0x13b)](_0x10ad92=>_0x10ad92['test'](_0x5681ac));}function sanitizeFlags(_0x3dc43b){const _0x4df2ac=a332_0x20ea,_0x4082c8={};for(const [_0x32260e,_0x35dd65]of Object[_0x4df2ac(0x130)](_0x3dc43b)){isSensitiveKey(_0x32260e)?_0x4082c8[_0x32260e]=_0x35dd65!=null&&_0x35dd65!==''?'[REDACTED]':_0x35dd65:_0x4082c8[_0x32260e]=_0x35dd65;}return _0x4082c8;}export async function reportCommandTrace(_0x28b259){const _0x54270b=a332_0x20ea;try{const _0x1789dc=sanitizeFlags(_0x28b259[_0x54270b(0x132)]);await sendCliTraceLog({'spanName':_0x54270b(0x131),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x28b259['service'],'command.name':_0x28b259[_0x54270b(0x137)],'command.flags':JSON['stringify'](_0x1789dc),..._0x28b259['durationMs']!=null?{'command.duration_ms':_0x28b259[_0x54270b(0x13d)]}:{},..._0x28b259[_0x54270b(0x13e)]?{'command.error':_0x28b259[_0x54270b(0x13e)]instanceof Error?_0x28b259['error'][_0x54270b(0x133)]:String(_0x28b259[_0x54270b(0x13e)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xea10f6,_0x4fe2cd){var _0x1f1899=a333_0x497a,_0x4a5dde=_0xea10f6();while(!![]){try{var _0x6d0389=-parseInt(_0x1f1899(0x1cc))/0x1+-parseInt(_0x1f1899(0x1d1))/0x2+-parseInt(_0x1f1899(0x1d4))/0x3*(parseInt(_0x1f1899(0x1d5))/0x4)+-parseInt(_0x1f1899(0x1c8))/0x5+parseInt(_0x1f1899(0x1cb))/0x6*(-parseInt(_0x1f1899(0x1d0))/0x7)+parseInt(_0x1f1899(0x1cf))/0x8*(parseInt(_0x1f1899(0x1ce))/0x9)+-parseInt(_0x1f1899(0x1c9))/0xa*(-parseInt(_0x1f1899(0x1cd))/0xb);if(_0x6d0389===_0x4fe2cd)break;else _0x4a5dde['push'](_0x4a5dde['shift']());}catch(_0x1943aa){_0x4a5dde['push'](_0x4a5dde['shift']());}}}(a333_0x30b1,0x30d85));function a333_0x30b1(){var _0x1f7399=['113256FxxOwO','3556eAakqd','670564oXBVED','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','51VDIOTA','44116unBlWW','1882050WOFtnA','12155690EdfgBO','cli.help','2250AxsoGS','24914hWxKkw','11nRjkGa','63jpABdD'];a333_0x30b1=function(){return _0x1f7399;};return a333_0x30b1();}function a333_0x497a(_0x2aa290,_0x13fe78){_0x2aa290=_0x2aa290-0x1c8;var _0x30b1ab=a333_0x30b1();var _0x497ab4=_0x30b1ab[_0x2aa290];return _0x497ab4;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x56f1ab,_0xc26c2){var _0x3ce7cf=a333_0x497a;try{await sendCliTraceLog({'spanName':_0x3ce7cf(0x1ca),'logData':{'rabetbase.help.kind':_0x56f1ab,..._0xc26c2?.[_0x3ce7cf(0x1d2)]&&{'rabetbase.help.service':_0xc26c2[_0x3ce7cf(0x1d2)]}}});}catch(_0x2f8324){console['error'](_0x3ce7cf(0x1d3),_0x2f8324);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a334_0x37b6(){const _0x51770a=['16734rKDauf','daily','username','39670428lfHlzN','tenant','4289248wTizay','2259dIEyQJ','user','production','2YskEsq','164SjoAru','835391cMPLPo','1688793gccIpV','11QqUymA','2261gIkyPQ','nickname','18070NIWOSx','70545QAIqGv'];a334_0x37b6=function(){return _0x51770a;};return a334_0x37b6();}(function(_0x5da3e3,_0xcb9a51){const _0x3ac8cb=a334_0x4df0,_0x5187d4=_0x5da3e3();while(!![]){try{const _0x1a584e=-parseInt(_0x3ac8cb(0x183))/0x1+-parseInt(_0x3ac8cb(0x181))/0x2*(parseInt(_0x3ac8cb(0x184))/0x3)+parseInt(_0x3ac8cb(0x182))/0x4*(-parseInt(_0x3ac8cb(0x189))/0x5)+parseInt(_0x3ac8cb(0x18a))/0x6*(-parseInt(_0x3ac8cb(0x186))/0x7)+parseInt(_0x3ac8cb(0x18f))/0x8+parseInt(_0x3ac8cb(0x190))/0x9*(-parseInt(_0x3ac8cb(0x188))/0xa)+-parseInt(_0x3ac8cb(0x185))/0xb*(-parseInt(_0x3ac8cb(0x18d))/0xc);if(_0x1a584e===_0xcb9a51)break;else _0x5187d4['push'](_0x5187d4['shift']());}catch(_0x2bc25a){_0x5187d4['push'](_0x5187d4['shift']());}}}(a334_0x37b6,0x7cb6e));function a334_0x4df0(_0x1fe53a,_0x2e2a54){_0x1fe53a=_0x1fe53a-0x180;const _0x37b67c=a334_0x37b6();let _0x4df0e1=_0x37b67c[_0x1fe53a];return _0x4df0e1;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';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 _0x3fb5be=a334_0x4df0,_0xa791b8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x10c40f=_0xa791b8?.[_0x3fb5be(0x191)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3fb5be(0x18b):_0x3fb5be(0x180))}),setUserContext({'id':_0x10c40f?.['id'],'username':_0x10c40f?.[_0x3fb5be(0x18c)],'nickname':_0x10c40f?.[_0x3fb5be(0x187)],'email':_0x10c40f?.['email'],'tenantCode':_0x10c40f?.[_0x3fb5be(0x18e)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xa791b8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a335_0x5e2a(_0x4956d,_0x20c5b4){_0x4956d=_0x4956d-0x12b;const _0x1b9ad9=a335_0x1b9a();let _0x5e2a6b=_0x1b9ad9[_0x4956d];return _0x5e2a6b;}(function(_0x2136d9,_0x53e50d){const _0x208b0a=a335_0x5e2a,_0xd43deb=_0x2136d9();while(!![]){try{const _0x280f77=parseInt(_0x208b0a(0x12c))/0x1+-parseInt(_0x208b0a(0x133))/0x2*(parseInt(_0x208b0a(0x137))/0x3)+-parseInt(_0x208b0a(0x131))/0x4+parseInt(_0x208b0a(0x135))/0x5+parseInt(_0x208b0a(0x12d))/0x6*(parseInt(_0x208b0a(0x130))/0x7)+-parseInt(_0x208b0a(0x12b))/0x8*(parseInt(_0x208b0a(0x12e))/0x9)+parseInt(_0x208b0a(0x136))/0xa;if(_0x280f77===_0x53e50d)break;else _0xd43deb['push'](_0xd43deb['shift']());}catch(_0x1faf9c){_0xd43deb['push'](_0xd43deb['shift']());}}}(a335_0x1b9a,0x6ba7c));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a335_0x1b9a(){const _0x2a7933=['4127910poNslB','11571900vESLZu','45RZtijy','beforeExit','541976TMRsOa','116911vUNwIN','610806vKgIZd','63LZLZwO','SIGTERM','21utPdKt','2495624DWIYrt','once','115466kikvbC','exit'];a335_0x1b9a=function(){return _0x2a7933;};return a335_0x1b9a();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2af3dc=a335_0x5e2a;process[_0x2af3dc(0x132)](_0x2af3dc(0x138),()=>{void flushOtelNodeIfUsed();});const _0xde3bac=()=>{const _0x325fff=_0x2af3dc;void flushOtelNodeIfUsed()['then'](()=>process[_0x325fff(0x134)](0x0));};process['once']('SIGINT',_0xde3bac),process[_0x2af3dc(0x132)](_0x2af3dc(0x12f),_0xde3bac);}export async function exitWithOtelShutdown(_0x1f122e){const _0x1a0f4f=a335_0x5e2a;await flushOtelNodeIfUsed(),process[_0x1a0f4f(0x134)](_0x1f122e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24df66,_0x211735){const _0x2a16cc=a336_0x5d1c,_0x540ecf=_0x24df66();while(!![]){try{const _0x6f5556=parseInt(_0x2a16cc(0x85))/0x1*(-parseInt(_0x2a16cc(0x8f))/0x2)+-parseInt(_0x2a16cc(0x86))/0x3*(-parseInt(_0x2a16cc(0x91))/0x4)+parseInt(_0x2a16cc(0x93))/0x5+parseInt(_0x2a16cc(0x8c))/0x6*(parseInt(_0x2a16cc(0x92))/0x7)+parseInt(_0x2a16cc(0x87))/0x8+parseInt(_0x2a16cc(0x88))/0x9+-parseInt(_0x2a16cc(0x90))/0xa;if(_0x6f5556===_0x211735)break;else _0x540ecf['push'](_0x540ecf['shift']());}catch(_0x39d7c4){_0x540ecf['push'](_0x540ecf['shift']());}}}(a336_0x22d2,0x8bd6d));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='rabetbase-cli';function a336_0x22d2(){const _0x2ff9a6=['20241190reyBKs','228hIeDgL','4509988dGHsWG','4234755jiAxez','22151URcDcs','28317mGIBVr','3697512LHeePG','9920232OGcikj','manual','traceparent','spanName','6tAiZCn','traceName','logData','90WkBFId'];a336_0x22d2=function(){return _0x2ff9a6;};return a336_0x22d2();}function a336_0x5d1c(_0xf7ea52,_0x43ce77){_0xf7ea52=_0xf7ea52-0x85;const _0x22d27e=a336_0x22d2();let _0x5d1c78=_0x22d27e[_0xf7ea52];return _0x5d1c78;}export async function sendCliTraceLog(_0x4a320c){const _0x58deb6=a336_0x5d1c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4a320c[_0x58deb6(0x8d)]??DEFAULT_TRACE_NAME,'version':_0x4a320c['version']??getCliVersion(),'spanName':_0x4a320c[_0x58deb6(0x8b)],'eventType':_0x58deb6(0x89),'logData':_0x4a320c[_0x58deb6(0x8e)],..._0x4a320c[_0x58deb6(0x8a)]&&{'traceparent':_0x4a320c['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a337_0x1c47(_0x201b80,_0x11dd3f){_0x201b80=_0x201b80-0xe5;const _0x34c5c5=a337_0x34c5();let _0x1c478d=_0x34c5c5[_0x201b80];return _0x1c478d;}const a337_0x3e3c50=a337_0x1c47;(function(_0x4a593a,_0x624895){const _0xd83768=a337_0x1c47,_0x26f654=_0x4a593a();while(!![]){try{const _0x2b01d9=parseInt(_0xd83768(0xef))/0x1*(-parseInt(_0xd83768(0xf0))/0x2)+parseInt(_0xd83768(0xf3))/0x3*(parseInt(_0xd83768(0xe7))/0x4)+-parseInt(_0xd83768(0xed))/0x5*(-parseInt(_0xd83768(0xe5))/0x6)+-parseInt(_0xd83768(0xf6))/0x7*(parseInt(_0xd83768(0xf5))/0x8)+parseInt(_0xd83768(0xf1))/0x9*(parseInt(_0xd83768(0xeb))/0xa)+parseInt(_0xd83768(0xf7))/0xb*(-parseInt(_0xd83768(0xee))/0xc)+parseInt(_0xd83768(0xf2))/0xd*(parseInt(_0xd83768(0xf4))/0xe);if(_0x2b01d9===_0x624895)break;else _0x26f654['push'](_0x26f654['shift']());}catch(_0x2052eb){_0x26f654['push'](_0x26f654['shift']());}}}(a337_0x34c5,0xa4faa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a337_0x3e3c50(0xf8);export async function sendPlatformIssueCollectLog(_0x254633){const _0x3a0c66=a337_0x3e3c50;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x254633[_0x3a0c66(0xf9)],'issue.description':_0x254633['description'],..._0x254633[_0x3a0c66(0xec)]?{'issue.description_original_bytes':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe6)],'issue.description_truncated':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xea)],'issue.description_redactions':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe9)],'issue.description_redaction_kinds':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe8)]['join'](',')}:{}}});}function a337_0x34c5(){const _0x423369=['32054XfeukN','issue.log.collect','title','6BqqEtQ','originalBytes','196AOzIOf','redactionKinds','redactionCount','truncated','3650xumgCD','sanitize','3417755jsoqdE','5316JYTgGa','33739jRhxCO','2jDfwKh','9711RXGoDa','13OUshxt','18651cOVTPV','9477146ZGNVex','1928UybgEI','1701wpEgRe'];a337_0x34c5=function(){return _0x423369;};return a337_0x34c5();}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a339_0x1cc2df=a339_0x1784;(function(_0xd64efa,_0x4c3268){const _0x4c7643=a339_0x1784,_0xf0e3fd=_0xd64efa();while(!![]){try{const _0x196d58=-parseInt(_0x4c7643(0xa9))/0x1+-parseInt(_0x4c7643(0x9f))/0x2*(-parseInt(_0x4c7643(0x95))/0x3)+parseInt(_0x4c7643(0xb1))/0x4+parseInt(_0x4c7643(0x9e))/0x5*(parseInt(_0x4c7643(0x8c))/0x6)+parseInt(_0x4c7643(0x8e))/0x7*(parseInt(_0x4c7643(0xa0))/0x8)+parseInt(_0x4c7643(0x91))/0x9+-parseInt(_0x4c7643(0xab))/0xa;if(_0x196d58===_0x4c3268)break;else _0xf0e3fd['push'](_0xf0e3fd['shift']());}catch(_0x3b59cb){_0xf0e3fd['push'](_0xf0e3fd['shift']());}}}(a339_0x29f5,0xecdc0));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a339_0x1cc2df(0xac),'folders':['.cursorrules',a339_0x1cc2df(0x8f)],'files':[{'type':'file','path':a339_0x1cc2df(0x83)}]},'windsurf':{'name':a339_0x1cc2df(0xb2),'description':a339_0x1cc2df(0xb0),'folders':['.windsurf'],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x9c)}]},'claude':{'name':'Claude\x20Code','description':a339_0x1cc2df(0x7f),'folders':[a339_0x1cc2df(0x90)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0xaa)}]},'cline':{'name':a339_0x1cc2df(0x7c),'description':a339_0x1cc2df(0xa4),'folders':[a339_0x1cc2df(0x92)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x89)}]},'codex':{'name':a339_0x1cc2df(0xa7),'description':a339_0x1cc2df(0x81),'folders':[a339_0x1cc2df(0xa3)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0xaf)}]},'opencode':{'name':a339_0x1cc2df(0x9a),'description':a339_0x1cc2df(0x7d),'folders':[a339_0x1cc2df(0x97)],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a339_0x1cc2df(0x9d),'description':a339_0x1cc2df(0x7e),'folders':['.qoder'],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.qoder/rules/rabetbase.md'},{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x99)}]},'codebuddy':{'name':a339_0x1cc2df(0x8a),'description':a339_0x1cc2df(0xa6),'folders':[a339_0x1cc2df(0x94)],'files':[{'type':'file','path':a339_0x1cc2df(0xa5)}]},'trae':{'name':a339_0x1cc2df(0xa1),'description':'Trae\x20IDE','folders':[a339_0x1cc2df(0x96)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x86)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a339_0x1cc2df(0x9b),'description':a339_0x1cc2df(0x87),'folders':[a339_0x1cc2df(0x93)],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':'Antigravity','description':a339_0x1cc2df(0x8d),'folders':[a339_0x1cc2df(0x93)],'files':[{'type':'file','path':a339_0x1cc2df(0xb3)}]}};export const CORE_IDE_LIST=[a339_0x1cc2df(0x84),'cline','codebuddy',a339_0x1cc2df(0x8b),a339_0x1cc2df(0x85),a339_0x1cc2df(0xad),'qoder','trae',a339_0x1cc2df(0x82)];export const IDE_LIST=[a339_0x1cc2df(0x80),a339_0x1cc2df(0x84),a339_0x1cc2df(0xae),'codebuddy',a339_0x1cc2df(0x8b),a339_0x1cc2df(0x85),a339_0x1cc2df(0xad),a339_0x1cc2df(0xa8),a339_0x1cc2df(0x88),a339_0x1cc2df(0x82),a339_0x1cc2df(0x98)];function a339_0x1784(_0x47bd19,_0x446df8){_0x47bd19=_0x47bd19-0x7c;const _0x29f555=a339_0x29f5();let _0x1784dd=_0x29f555[_0x47bd19];return _0x1784dd;}function a339_0x29f5(){const _0x294075=['file','.codex','Cline\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Codex','qoder','1755531HvHRFQ','.claude/skills/lovrabet/SKILL.md','34067300KscYpa','Cursor\x20IDE','opencode','cline','.codex/skills/lovrabet/SKILL.md','Windsurf\x20IDE','6467532NMgIRB','Windsurf','.agent/skills/lovrabet/SKILL.md','Cline','OpenCode\x20IDE','Qoder\x20IDE','Claude\x20Code','antigravity','Codex\x20IDE','windsurf','.cursor/skills/rabetbase.md','claude','cursor','.trae/skills/lovrabet/SKILL.md','Generic\x20template\x20fallback','trae','.cline/skills/lovrabet/SKILL.md','CodeBuddy','codex','12HcaUlk','Antigravity\x20IDE','1260455xyYdef','.cursor','.claude','16653987tbkazQ','.cline','.agent','.codebuddy','6Uerkst','.trae','.opencode','agent','.qoder/skills/lovrabet/SKILL.md','OpenCode','Other\x20(generic\x20template)','.windsurf/workflows/rabetbase.md','Qoder','862590CdufHO','1059620mXpsiR','56IBbYEx','Trae'];a339_0x29f5=function(){return _0x294075;};return a339_0x29f5();}export const ALL_CORE_IDES=[a339_0x1cc2df(0x85),a339_0x1cc2df(0x82),a339_0x1cc2df(0x84),a339_0x1cc2df(0xae),'codex',a339_0x1cc2df(0xad),a339_0x1cc2df(0xa8),'codebuddy',a339_0x1cc2df(0x88)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a340_0x3a1b(){const _0x1a499d=['20PshSqf','18466dsqPju','80142niUNuo','1012768oMptvG','2994igXNYt','54tUcVWr','3356124LOzpNW','1043956SDFbrX','22613670jsWgxm','1405344uioCxu'];a340_0x3a1b=function(){return _0x1a499d;};return a340_0x3a1b();}function a340_0x2e0c(_0x42ad43,_0x8553da){_0x42ad43=_0x42ad43-0x8c;const _0x3a1b37=a340_0x3a1b();let _0x2e0c58=_0x3a1b37[_0x42ad43];return _0x2e0c58;}(function(_0x79a9e,_0x1017b7){const _0x3b6d8e=a340_0x2e0c,_0x1a1bfa=_0x79a9e();while(!![]){try{const _0x11c6bc=-parseInt(_0x3b6d8e(0x91))/0x1+-parseInt(_0x3b6d8e(0x8c))/0x2+parseInt(_0x3b6d8e(0x90))/0x3+-parseInt(_0x3b6d8e(0x8d))/0x4*(-parseInt(_0x3b6d8e(0x94))/0x5)+-parseInt(_0x3b6d8e(0x8e))/0x6*(parseInt(_0x3b6d8e(0x95))/0x7)+-parseInt(_0x3b6d8e(0x93))/0x8*(parseInt(_0x3b6d8e(0x8f))/0x9)+parseInt(_0x3b6d8e(0x92))/0xa;if(_0x11c6bc===_0x1017b7)break;else _0x1a1bfa['push'](_0x1a1bfa['shift']());}catch(_0x3be6d0){_0x1a1bfa['push'](_0x1a1bfa['shift']());}}}(a340_0x3a1b,0xe51ce));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';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(_0x3cd85c,_0x67fc0e){const _0x1ef123=a341_0x595e,_0x499a7b=_0x3cd85c();while(!![]){try{const _0x8d242=parseInt(_0x1ef123(0xd1))/0x1+parseInt(_0x1ef123(0xcf))/0x2*(parseInt(_0x1ef123(0xd4))/0x3)+-parseInt(_0x1ef123(0xd0))/0x4*(parseInt(_0x1ef123(0xc9))/0x5)+-parseInt(_0x1ef123(0xc7))/0x6*(parseInt(_0x1ef123(0xc8))/0x7)+parseInt(_0x1ef123(0xd2))/0x8+parseInt(_0x1ef123(0xce))/0x9+-parseInt(_0x1ef123(0xcb))/0xa;if(_0x8d242===_0x67fc0e)break;else _0x499a7b['push'](_0x499a7b['shift']());}catch(_0x54f665){_0x499a7b['push'](_0x499a7b['shift']());}}}(a341_0x553e,0xa5121));import{getTemplateBaseUrl}from'../utils/config.js';function a341_0x553e(){const _0x5d7f2e=['json','366558VsnoTN','stableVersion','application/json','42lDXWVO','255857zCYAJo','1346665TYLKPk','cli','8948130fZLKvN','now','/config/index.json','10989396yPkDJa','18kzNCxv','20dFaOZN','813566vxPCAm','313440iUZIxP'];a341_0x553e=function(){return _0x5d7f2e;};return a341_0x553e();}export async function fetchCdnConfig(){const _0x464d98=a341_0x595e,_0x3681d6=getTemplateBaseUrl(),_0x3517b4=[_0x3681d6+'/config.json',_0x3681d6+_0x464d98(0xcd)];for(const _0x21491a of _0x3517b4){try{const _0x1c5304=await fetch(_0x21491a,{'headers':{'Accept':_0x464d98(0xc6)}});if(!_0x1c5304['ok'])continue;const _0xcdc3ad=await _0x1c5304[_0x464d98(0xd3)]();if(!_0xcdc3ad[_0x464d98(0xca)]?.[_0x464d98(0xd5)]||!_0xcdc3ad['sdk']?.['node']?.[_0x464d98(0xd5)])continue;return _0xcdc3ad;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a341_0x595e(_0x2fb29d,_0x4e0595){_0x2fb29d=_0x2fb29d-0xc6;const _0x553e21=a341_0x553e();let _0x595e8f=_0x553e21[_0x2fb29d];return _0x595e8f;}export async function getCdnConfig(){const _0x5ed0ea=a341_0x595e,_0x1a733e=Date[_0x5ed0ea(0xcc)]();if(hasCachedConfig){const _0x414f93=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a733e-cacheTime<_0x414f93)return cachedConfig;}const _0x8d254c=await fetchCdnConfig();return cachedConfig=_0x8d254c,cacheTime=_0x1a733e,hasCachedConfig=!![],_0x8d254c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x55f131,_0x59bb67){const _0x56d72a=a342_0x2b0e,_0x223562=_0x55f131();while(!![]){try{const _0x2ab501=parseInt(_0x56d72a(0x17e))/0x1+parseInt(_0x56d72a(0x18a))/0x2*(parseInt(_0x56d72a(0x184))/0x3)+-parseInt(_0x56d72a(0x188))/0x4+parseInt(_0x56d72a(0x193))/0x5+-parseInt(_0x56d72a(0x18c))/0x6*(-parseInt(_0x56d72a(0x180))/0x7)+parseInt(_0x56d72a(0x185))/0x8*(-parseInt(_0x56d72a(0x17a))/0x9)+-parseInt(_0x56d72a(0x198))/0xa;if(_0x2ab501===_0x59bb67)break;else _0x223562['push'](_0x223562['shift']());}catch(_0x518aa1){_0x223562['push'](_0x223562['shift']());}}}(a342_0x549e,0x4597a));function a342_0x2b0e(_0x4500c8,_0x1ea85a){_0x4500c8=_0x4500c8-0x175;const _0x549eb4=a342_0x549e();let _0x2b0e1e=_0x549eb4[_0x4500c8];return _0x2b0e1e;}import a342_0x46121c from'node:fs';import a342_0x820353 from'node:path';function a342_0x549e(){const _0x73aa27=['utf8','log','packageName','365569JQzgYj','↪\x20SDK\x20update\x20available','7ZOVlqT','node','test','version','51639DJjIeX','175904Ykpvqb','sdk','some','1354572uOXnvR','existsSync','34LkZMnp','latest','587406zAYfVy','\x20\x20\x20Upgrade\x20command:\x20','dependencies','readFileSync','stableVersion','devDependencies','all','2050785xzGMXX','needsUpgrade','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','coerce','4546030tYcatg','minVersion','join','@lovrabet/sdk','package.json','utf-8','parse','36vyCyic'];a342_0x549e=function(){return _0x73aa27;};return a342_0x549e();}import a342_0x38dc63 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x36d632){const _0x1e2e13=a342_0x2b0e,_0x462797=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x462797[_0x1e2e13(0x187)](_0x442a0a=>_0x442a0a[_0x1e2e13(0x182)](_0x36d632));}function getInstalledVersion(_0x37e584,_0x3cf863){const _0x80d6b8=a342_0x2b0e;try{const _0x3d5cd1=a342_0x820353[_0x80d6b8(0x175)](_0x37e584,'node_modules',_0x3cf863,'package.json');if(a342_0x46121c['existsSync'](_0x3d5cd1)){const _0x4847ce=JSON[_0x80d6b8(0x179)](a342_0x46121c[_0x80d6b8(0x18f)](_0x3d5cd1,_0x80d6b8(0x178)));return _0x4847ce['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1ad9ec=a342_0x2b0e;try{const _0x3d1c36=await getCdnConfig();return _0x3d1c36?.[_0x1ad9ec(0x186)]?.[_0x1ad9ec(0x181)]?.[_0x1ad9ec(0x190)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1c95f1=a342_0x2b0e;try{const _0x38981c=await getCdnConfig();return _0x38981c?.[_0x1c95f1(0x186)]?.[_0x1c95f1(0x181)]?.[_0x1c95f1(0x17d)]||_0x1c95f1(0x176);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x2654fb){const _0x2d2ca0=a342_0x2b0e,_0x37e694=a342_0x820353[_0x2d2ca0(0x175)](_0x2654fb,_0x2d2ca0(0x177)),[_0x59ef05,_0x4647d0]=await Promise[_0x2d2ca0(0x192)]([getSdkStableVersion(),getSdkPackageName()]),_0x4d426e=_0x59ef05||FALLBACK_MIN_SDK_VERSION;if(!a342_0x46121c[_0x2d2ca0(0x189)](_0x37e694))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};try{const _0x2d75f9=JSON[_0x2d2ca0(0x179)](a342_0x46121c[_0x2d2ca0(0x18f)](_0x37e694,'utf8')),_0x4f35ff=_0x2d75f9[_0x2d2ca0(0x18e)]||{},_0x2a8337=_0x2d75f9[_0x2d2ca0(0x191)]||{},_0x1ad118=_0x4f35ff[_0x4647d0]||_0x2a8337[_0x4647d0];if(!_0x1ad118)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};let _0x35f09c=getInstalledVersion(_0x2654fb,_0x4647d0);!_0x35f09c&&(_0x35f09c=_0x1ad118);if(isNonNumericVersion(_0x1ad118))return{'installed':!![],'version':_0x35f09c,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};const _0x5e6871=a342_0x38dc63[_0x2d2ca0(0x197)](_0x35f09c),_0x25401a=a342_0x38dc63[_0x2d2ca0(0x197)](_0x4d426e),_0x5a7c3c=_0x5e6871&&_0x25401a?a342_0x38dc63['lt'](_0x5e6871,_0x25401a):![];return{'installed':!![],'version':_0x35f09c,'needsUpgrade':_0x5a7c3c,'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};}}export function checkSdkVersionSync(_0xf5ac3){const _0x58148e=a342_0x2b0e,_0x4c387f=a342_0x820353[_0x58148e(0x175)](_0xf5ac3,'package.json'),_0x3f180c=_0x58148e(0x176);if(!a342_0x46121c['existsSync'](_0x4c387f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};try{const _0x6ad338=JSON[_0x58148e(0x179)](a342_0x46121c[_0x58148e(0x18f)](_0x4c387f,_0x58148e(0x17b))),_0x51844e=_0x6ad338[_0x58148e(0x18e)]||{},_0x4b6315=_0x6ad338['devDependencies']||{},_0x5a6d09=_0x51844e[_0x3f180c]||_0x4b6315[_0x3f180c];if(!_0x5a6d09)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};let _0x260cc2=getInstalledVersion(_0xf5ac3,_0x3f180c);!_0x260cc2&&(_0x260cc2=_0x5a6d09);if(isNonNumericVersion(_0x5a6d09))return{'installed':!![],'version':_0x260cc2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};const _0x535b00=a342_0x38dc63[_0x58148e(0x197)](_0x260cc2),_0xa70920=_0x535b00?a342_0x38dc63['lt'](_0x535b00,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x260cc2,'needsUpgrade':_0xa70920,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x13c98c){const _0x47293e=a342_0x2b0e;if(!_0x13c98c[_0x47293e(0x194)])return;const _0x2b732e='\x1b[33m',_0x267d21='\x1b[0m',_0x224d15='\x1b[1m',_0x45ad19=_0x13c98c[_0x47293e(0x17d)]||_0x47293e(0x176),_0x3deaa1=_0x13c98c[_0x47293e(0x190)]||_0x13c98c[_0x47293e(0x199)],_0x4c1f51='npm\x20install\x20'+_0x45ad19+'@'+(_0x3deaa1||_0x47293e(0x18b));console['log'](),console[_0x47293e(0x17c)](''+_0x2b732e+_0x224d15+_0x47293e(0x17f)+_0x267d21),console[_0x47293e(0x17c)](_0x2b732e+_0x47293e(0x195)+_0x45ad19+'@'+_0x13c98c[_0x47293e(0x183)]+_0x267d21),console[_0x47293e(0x17c)](_0x2b732e+_0x47293e(0x196)+_0x3deaa1+_0x267d21),console['log'](_0x2b732e+_0x47293e(0x18d)+_0x4c1f51+_0x267d21),console['log']();}
|