@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.d.ts +7 -0
- package/lib/commands/bff/logs.js +1 -0
- 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.d.ts +21 -0
- package/lib/commands/dataset/batch-design.js +1 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-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.d.ts +2 -0
- package/lib/commands/flow/create.js +1 -0
- package/lib/commands/flow/detail.d.ts +2 -0
- package/lib/commands/flow/detail.js +1 -0
- package/lib/commands/flow/index.d.ts +3 -0
- package/lib/commands/flow/index.js +1 -0
- package/lib/commands/flow/list.d.ts +2 -0
- package/lib/commands/flow/list.js +1 -0
- package/lib/commands/flow/publish.d.ts +2 -0
- package/lib/commands/flow/publish.js +1 -0
- package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
- package/lib/commands/flow/runtime-resources-shared.js +1 -0
- package/lib/commands/flow/runtime-role-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-list.js +1 -0
- package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-user-list.js +1 -0
- package/lib/commands/flow/runtime-user-search.d.ts +2 -0
- package/lib/commands/flow/runtime-user-search.js +1 -0
- package/lib/commands/flow/shared.d.ts +41 -0
- package/lib/commands/flow/shared.js +1 -0
- package/lib/commands/flow/update.d.ts +2 -0
- package/lib/commands/flow/update.js +1 -0
- package/lib/commands/flow/validate.d.ts +3 -0
- package/lib/commands/flow/validate.js +1 -0
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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.d.ts +6 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +172 -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.d.ts +55 -0
- package/lib/core/bff/hook-directory.js +1 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +15 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +628 -0
- package/lib/core/flow-config.js +1 -0
- 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.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- 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/types/index.d.ts +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.d.ts +2 -8
- 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.d.ts +2 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +27 -8
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
- package/skills/rabetbase/guides/backend-function.md +19 -9
- package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
- package/skills/rabetbase/guides/conflict-detection.md +2 -0
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
- package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +9 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a301_0x14c646=a301_0xf314;(function(_0x36654c,_0xc8973){const _0x4237e6=a301_0xf314,_0x65957a=_0x36654c();while(!![]){try{const _0x1a81da=parseInt(_0x4237e6(0x17a))/0x1*(parseInt(_0x4237e6(0x16d))/0x2)+-parseInt(_0x4237e6(0x16f))/0x3+-parseInt(_0x4237e6(0x177))/0x4*(parseInt(_0x4237e6(0x175))/0x5)+-parseInt(_0x4237e6(0x17b))/0x6+-parseInt(_0x4237e6(0x172))/0x7+parseInt(_0x4237e6(0x17c))/0x8+parseInt(_0x4237e6(0x171))/0x9;if(_0x1a81da===_0xc8973)break;else _0x65957a['push'](_0x65957a['shift']());}catch(_0x4de9a2){_0x65957a['push'](_0x65957a['shift']());}}}(a301_0x5259,0xeaecd));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a301_0x14c646(0x174);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a301_0x14c646(0x170);function a301_0xf314(_0x4f2df4,_0x17ce6e){_0x4f2df4=_0x4f2df4-0x16c;const _0x52597d=a301_0x5259();let _0xf3141a=_0x52597d[_0x4f2df4];return _0xf3141a;}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a301_0x14c646(0x17d),a301_0x14c646(0x179),'runtimeDomain',a301_0x14c646(0x16c),'kbDomain','appDomain',a301_0x14c646(0x16e),a301_0x14c646(0x178)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a301_0x14c646(0x17d),a301_0x14c646(0x179),a301_0x14c646(0x17e),a301_0x14c646(0x16c),'kbDomain',a301_0x14c646(0x173)];export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a301_0x14c646(0x176)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a301_0x14c646(0x176)];function a301_0x5259(){const _0x502a0c=['13319894kNzGXS','appDomain','d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc','15qgonJF','lovrabet','2451052WuWIeZ','certificateDomain','apiDomain','1051uPnAUv','11053002bRFRFA','5127440IYCNCZ','userDomain','runtimeDomain','skillDomain','2078Leyddz','localDomain','3913071xyltZx','enterprise','55052901MeXagG'];a301_0x5259=function(){return _0x502a0c;};return a301_0x5259();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a302_0x14a5(_0xe4d219,_0x2d0e66){_0xe4d219=_0xe4d219-0xfa;var _0x32d106=a302_0x32d1();var _0x14a513=_0x32d106[_0xe4d219];return _0x14a513;}(function(_0xf8c728,_0x557f77){var _0x1f64e2=a302_0x14a5,_0x3b6dd1=_0xf8c728();while(!![]){try{var _0x1d8b1f=parseInt(_0x1f64e2(0x100))/0x1*(-parseInt(_0x1f64e2(0x105))/0x2)+-parseInt(_0x1f64e2(0x109))/0x3*(parseInt(_0x1f64e2(0x10a))/0x4)+parseInt(_0x1f64e2(0xfe))/0x5*(parseInt(_0x1f64e2(0x10b))/0x6)+parseInt(_0x1f64e2(0x106))/0x7*(-parseInt(_0x1f64e2(0xfc))/0x8)+-parseInt(_0x1f64e2(0xfa))/0x9+-parseInt(_0x1f64e2(0xfb))/0xa*(parseInt(_0x1f64e2(0x107))/0xb)+parseInt(_0x1f64e2(0x102))/0xc;if(_0x1d8b1f===_0x557f77)break;else _0x3b6dd1['push'](_0x3b6dd1['shift']());}catch(_0x2f1026){_0x3b6dd1['push'](_0x3b6dd1['shift']());}}}(a302_0x32d1,0xeac9e));function a302_0x32d1(){var _0x231a06=['546thLRYS','24CZokDP','36vYRtxH','16835715pqmRzF','253090IiCRog','24qgkJvA','\x20to\x20view\x20available\x20commands.','306845lXkkLR','\x20--help','295eKhGzT','green','74826468kUMbCH','\x20\x20Use\x20','log','6494TIEwXI','4436467hZvxnW','396YzYedZ','bold'];a302_0x32d1=function(){return _0x231a06;};return a302_0x32d1();}import a302_0x2aad66 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x479a95=a302_0x14a5;console[_0x479a95(0x104)](),console[_0x479a95(0x104)](a302_0x2aad66['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x479a95(0x104)](),console[_0x479a95(0x104)](_0x479a95(0x103)+a302_0x2aad66[_0x479a95(0x101)][_0x479a95(0x108)](CLI_BIN_NAME+_0x479a95(0xff))+_0x479a95(0xfd)),console[_0x479a95(0x104)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a303_0x1724(){const _0x593ed3=['changed','FAILED','Rabetbase\x20Built-in\x20Skill\x20','5pIwsgz','code','4197172OisiQk','16cqqAOd','1947bQBixM','544634FUeGrR','2385sbcUad','repairCommand','2164tQaOPg','already\x20current','Installation\x20failed','816739HzNUTt','15970YHlcMv','[BUILTIN_SKILL_INSTALL_','installed','12vRsFMw','\x20via\x20skills@latest','skillVersion','installedPath','SOURCE_INVALID','1BjHcBC','error','2212638xAKUBF','42310216VexOVp','warn','\x20at\x20'];a303_0x1724=function(){return _0x593ed3;};return a303_0x1724();}(function(_0x5eebfa,_0x46fe57){const _0x39ca4c=a303_0x5dac,_0x1e1819=_0x5eebfa();while(!![]){try{const _0x2ba731=parseInt(_0x39ca4c(0x182))/0x1*(-parseInt(_0x39ca4c(0x173))/0x2)+-parseInt(_0x39ca4c(0x172))/0x3*(parseInt(_0x39ca4c(0x176))/0x4)+-parseInt(_0x39ca4c(0x16e))/0x5*(parseInt(_0x39ca4c(0x184))/0x6)+-parseInt(_0x39ca4c(0x170))/0x7*(parseInt(_0x39ca4c(0x171))/0x8)+parseInt(_0x39ca4c(0x174))/0x9*(-parseInt(_0x39ca4c(0x17a))/0xa)+-parseInt(_0x39ca4c(0x179))/0xb*(-parseInt(_0x39ca4c(0x17d))/0xc)+parseInt(_0x39ca4c(0x185))/0xd;if(_0x2ba731===_0x46fe57)break;else _0x1e1819['push'](_0x1e1819['shift']());}catch(_0x415001){_0x1e1819['push'](_0x1e1819['shift']());}}}(a303_0x1724,0xae62d));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a303_0x5dac(_0x34224f,_0x5607b1){_0x34224f=_0x34224f-0x16d;const _0x1724d5=a303_0x1724();let _0x5dacb4=_0x1724d5[_0x34224f];return _0x5dacb4;}export async function runPostinstall(_0x6ab075={}){const _0x208399=a303_0x5dac,_0x14c1c8=installBuiltinSkill(_0x6ab075);if(_0x14c1c8['ok']){const _0x1a2524=_0x14c1c8[_0x208399(0x188)]?_0x208399(0x17c):_0x208399(0x177),_0x374cf1=_0x14c1c8['installedPath']?_0x208399(0x187)+_0x14c1c8[_0x208399(0x180)]:_0x208399(0x17e);return console['log'](_0x208399(0x16d)+_0x14c1c8[_0x208399(0x17f)]+'\x20'+_0x1a2524+_0x374cf1),_0x14c1c8;}const _0x3d1707=_0x208399(0x17b)+(_0x14c1c8[_0x208399(0x16f)]??_0x208399(0x189))+']\x20'+(_0x14c1c8[_0x208399(0x183)]??_0x208399(0x178))+'.\x20'+('Repair\x20with:\x20'+_0x14c1c8[_0x208399(0x175)]);if(_0x14c1c8[_0x208399(0x16f)]===_0x208399(0x181))throw new Error(_0x3d1707);return console[_0x208399(0x186)](_0x3d1707),_0x14c1c8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd1bc10,_0x2872e4){const _0x5923d0=a304_0x5163,_0xca5e67=_0xd1bc10();while(!![]){try{const _0x41cfa0=-parseInt(_0x5923d0(0x181))/0x1*(-parseInt(_0x5923d0(0x184))/0x2)+parseInt(_0x5923d0(0x183))/0x3*(-parseInt(_0x5923d0(0x187))/0x4)+-parseInt(_0x5923d0(0x17a))/0x5+-parseInt(_0x5923d0(0x178))/0x6+parseInt(_0x5923d0(0x17f))/0x7*(parseInt(_0x5923d0(0x180))/0x8)+parseInt(_0x5923d0(0x17d))/0x9+parseInt(_0x5923d0(0x17e))/0xa;if(_0x41cfa0===_0x2872e4)break;else _0xca5e67['push'](_0xca5e67['shift']());}catch(_0xb60b23){_0xca5e67['push'](_0xca5e67['shift']());}}}(a304_0x1d0d,0xda606));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x5375aa,_0x2d00c,_0x1f924e){const _0x3333ce=a304_0x5163,_0x1645ee=normalizeText(_0x5375aa[_0x3333ce(0x189)],DESCRIPTION_MAX_LENGTH),_0x5ed1bf=_0x1645ee||normalizeText(defaultDescription(requireWriteRisk(_0x5375aa),_0x2d00c),DESCRIPTION_MAX_LENGTH);return{'operation':_0x2d00c,'risk':requireWriteRisk(_0x5375aa),'description':_0x5ed1bf,..._0x1f924e?{'signal':_0x1f924e}:{}};}function a304_0x5163(_0x960e97,_0x2b4812){_0x960e97=_0x960e97-0x175;const _0x1d0d9b=a304_0x1d0d();let _0x516360=_0x1d0d9b[_0x960e97];return _0x516360;}function requireWriteRisk(_0x3012ff){const _0x53f89f=a304_0x5163;if(_0x3012ff['risk']===_0x53f89f(0x188)||_0x3012ff[_0x53f89f(0x186)]===_0x53f89f(0x182))return _0x3012ff['risk'];throw new Error(_0x53f89f(0x177));}function defaultDescription(_0x18862f,_0x155469){const _0x384581=a304_0x5163;if(_0x18862f===_0x384581(0x182))return _0x384581(0x185)+_0x155469+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x384581(0x17b)+_0x155469+_0x384581(0x175);}function a304_0x1d0d(){const _0x5ba4be=['confirmationDescription','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','5851890VvTJQW','trim','2958160QJUZVz','This\x20will\x20run\x20the\x20write\x20','slice','4172769uBdCtf','18666310sMWPhb','1413272XpRJau','8ABJVwV','1831PycoSz','high-risk-write','50598nXiOnt','1286bQHLuV','This\x20will\x20run\x20the\x20high-risk\x20write\x20','risk','296YCWyaQ','write'];a304_0x1d0d=function(){return _0x5ba4be;};return a304_0x1d0d();}function normalizeText(_0x4e8b3e,_0xcdbc86){const _0x17c755=a304_0x5163;if(typeof _0x4e8b3e!=='string')return'';return _0x4e8b3e[_0x17c755(0x176)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x17c755(0x179)]()[_0x17c755(0x17c)](0x0,_0xcdbc86);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x254d01,_0x5d9861){const _0x1543c9=a305_0x2ef4,_0x46d766=_0x254d01();while(!![]){try{const _0x41cf67=-parseInt(_0x1543c9(0x1be))/0x1*(-parseInt(_0x1543c9(0x1d4))/0x2)+parseInt(_0x1543c9(0x1cc))/0x3+parseInt(_0x1543c9(0x1c8))/0x4*(parseInt(_0x1543c9(0x1cf))/0x5)+parseInt(_0x1543c9(0x1c9))/0x6*(-parseInt(_0x1543c9(0x1d2))/0x7)+-parseInt(_0x1543c9(0x1c7))/0x8+parseInt(_0x1543c9(0x1bd))/0x9*(-parseInt(_0x1543c9(0x1d3))/0xa)+parseInt(_0x1543c9(0x1c2))/0xb*(parseInt(_0x1543c9(0x1c1))/0xc);if(_0x41cf67===_0x5d9861)break;else _0x46d766['push'](_0x46d766['shift']());}catch(_0x1b4955){_0x46d766['push'](_0x46d766['shift']());}}}(a305_0xa08f,0x5add3));export function canonicalRabetbaseOperation(_0x5b7c55){const _0x28417f=a305_0x2ef4;return[_0x5b7c55[_0x28417f(0x1d0)],..._0x5b7c55[_0x28417f(0x1c3)]['trim']()[_0x28417f(0x1ce)](/\s+/)][_0x28417f(0x1c4)](Boolean)[_0x28417f(0x1cb)]('.');}export function createRabetbaseWriteMetadata(_0x3b1901,_0x4e5c95,_0x2fc8b3,_0x50117f){const _0x39dc76=a305_0x2ef4;if(_0x50117f||_0x2fc8b3['ok']!==!![]||hasUnresolvedConflicts(_0x2fc8b3)||_0x3b1901[_0x39dc76(0x1cd)]!==_0x39dc76(0x1c0)&&_0x3b1901[_0x39dc76(0x1cd)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x4e5c95,'risk':_0x3b1901[_0x39dc76(0x1cd)]}}};}function a305_0xa08f(){const _0x5ecbfa=['length','14vqKnCc','10qXiyux','12884qySaVB','5589162BtVIaE','17NnQlvJ','data','write','3650100xeBYHP','55bSSmGA','command','filter','isArray','conflicts','2003776UrMiwl','272276nINEyB','1626834xnakbU','object','join','262467COFLrG','risk','split','5LlgsqU','service'];a305_0xa08f=function(){return _0x5ecbfa;};return a305_0xa08f();}function a305_0x2ef4(_0x34b62a,_0x634805){_0x34b62a=_0x34b62a-0x1bd;const _0xa08fa0=a305_0xa08f();let _0x2ef4fe=_0xa08fa0[_0x34b62a];return _0x2ef4fe;}function hasUnresolvedConflicts(_0xf998dd){const _0x1a27ec=a305_0x2ef4,_0x4ee7b4=_0xf998dd[_0x1a27ec(0x1bf)];return Boolean(_0x4ee7b4&&typeof _0x4ee7b4===_0x1a27ec(0x1ca)&&!Array[_0x1a27ec(0x1c5)](_0x4ee7b4)&&Array[_0x1a27ec(0x1c5)](_0x4ee7b4[_0x1a27ec(0x1c6)])&&_0x4ee7b4[_0x1a27ec(0x1c6)][_0x1a27ec(0x1d1)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc87a23,_0x40f05a){const _0x55e0ba=a306_0x5c12,_0x39e6b9=_0xc87a23();while(!![]){try{const _0x35a0d2=-parseInt(_0x55e0ba(0x194))/0x1*(-parseInt(_0x55e0ba(0x197))/0x2)+-parseInt(_0x55e0ba(0x196))/0x3*(-parseInt(_0x55e0ba(0x19d))/0x4)+-parseInt(_0x55e0ba(0x1a9))/0x5*(-parseInt(_0x55e0ba(0x1a5))/0x6)+parseInt(_0x55e0ba(0x19f))/0x7*(parseInt(_0x55e0ba(0x1a7))/0x8)+parseInt(_0x55e0ba(0x1a8))/0x9+-parseInt(_0x55e0ba(0x1a0))/0xa*(-parseInt(_0x55e0ba(0x1ae))/0xb)+-parseInt(_0x55e0ba(0x1aa))/0xc;if(_0x35a0d2===_0x40f05a)break;else _0x39e6b9['push'](_0x39e6b9['shift']());}catch(_0xcf25ca){_0x39e6b9['push'](_0x39e6b9['shift']());}}}(a306_0x28b4,0xa55e3));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';function a306_0x5c12(_0x3a45a6,_0x10ccca){_0x3a45a6=_0x3a45a6-0x194;const _0x28b4d8=a306_0x28b4();let _0x5c1208=_0x28b4d8[_0x3a45a6];return _0x5c1208;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x532268,command:_0x30779f,risk:_0x302fd1,dryRun:_0x3105ed}){const _0x3150e9=a306_0x5c12;return JSON['stringify']({'ok':_0x532268['ok'],'command':_0x30779f,'risk':_0x302fd1,..._0x3105ed?{'dryRun':!![]}:{},..._0x532268[_0x3150e9(0x1a2)]!==undefined?{'data':_0x532268['data']}:{},..._0x532268[_0x3150e9(0x1b8)]?{'message':_0x532268['message']}:{}});}};function a306_0x28b4(){const _0x57467f=['62072148FmLDRi','riskLevel','yes','result','22tcbRwH','definition','confirm','signal','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','present','service','dry-run','rawFlags','format','message','write','50NrBLww','command','1689858kneWig','25586xmfqsK','dryRun','reason','risk','isNonInteractive','high-risk-write','8svYKSr','args','6301883dfkCeZ','6226890ErLHsK','confirmation','data','presentation','execute','14766COGsRY','AbortError','8LHpyTc','10555074jwLhEi','1555THipwm'];a306_0x28b4=function(){return _0x57467f;};return a306_0x28b4();}export async function invokeRabetbase(_0x507f17,_0x19e16a){const _0x245354=a306_0x5c12;throwIfAborted(_0x19e16a[_0x245354(0x1b1)]);const _0x280bb7=await resolveRabetbaseInvocation(_0x507f17),_0x3bcf98=canonicalRabetbaseOperation(_0x280bb7[_0x245354(0x1af)]);return await confirmWriteBeforeQueue(_0x280bb7[_0x245354(0x1af)],_0x280bb7['rawFlags'],_0x3bcf98,_0x19e16a),runSerialized(async()=>{const _0x551a24=_0x245354,_0x4a914d={};try{throwIfAborted(_0x19e16a[_0x551a24(0x1b1)]);const _0x13d4bb=buildConfigFromFlags(_0x280bb7[_0x551a24(0x1b6)]);!isRoutingRecoveryService(_0x280bb7['definition'][_0x551a24(0x1b4)])&&await initGlobalEnvironment(_0x13d4bb);const _0x44a71c=createPipelineEnv(_0x13d4bb,{..._0x280bb7[_0x551a24(0x1b6)],'yes':_0x280bb7[_0x551a24(0x1af)][_0x551a24(0x19a)]===_0x551a24(0x19c)?!![]:_0x280bb7[_0x551a24(0x1b6)][_0x551a24(0x1ac)],'nonInteractive':!![]},_0x280bb7[_0x551a24(0x19e)]);_0x44a71c[_0x551a24(0x19b)]=!![],_0x44a71c[_0x551a24(0x1ab)]=_0x551a24(0x19c);const _0x430bd1=withAbortSignal(_0x280bb7[_0x551a24(0x1af)],_0x19e16a[_0x551a24(0x1b1)]),_0x35a7d6=createRabetbaseRunnerAdapter({'formatOutput'(_0x4c4ffa,_0x36c707){const _0x53c945=_0x551a24;_0x4a914d[_0x53c945(0x1ad)]=_0x4c4ffa,_0x4a914d['command']=_0x36c707['command'],_0x4a914d['risk']=_0x36c707[_0x53c945(0x19a)],_0x4a914d[_0x53c945(0x1b7)]=_0x36c707[_0x53c945(0x1b7)],_0x4a914d['dryRun']=_0x36c707[_0x53c945(0x198)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x430bd1,_0x44a71c,_0x35a7d6);if(!_0x4a914d['result']||!_0x4a914d[_0x551a24(0x195)]||!_0x4a914d['risk']||!_0x4a914d[_0x551a24(0x1b7)])throw new Error(_0x551a24(0x1b2));const _0x4243a8=_0x4a914d[_0x551a24(0x198)]===!![],_0x19dff1=_0x19e16a[_0x551a24(0x1a3)]??defaultPresentation,_0x2d629c={'result':_0x4a914d[_0x551a24(0x1ad)],'command':_0x4a914d[_0x551a24(0x195)],'operation':_0x3bcf98,'risk':_0x4a914d['risk'],'format':_0x4a914d[_0x551a24(0x1b7)],'dryRun':_0x4243a8},_0x46ef4d=createRabetbaseWriteMetadata(_0x280bb7[_0x551a24(0x1af)],_0x3bcf98,_0x4a914d['result'],_0x4243a8);let _0x583a9f;try{_0x583a9f=await _0x19dff1[_0x551a24(0x1b3)](_0x2d629c);}catch(_0x4d9960){if(!_0x46ef4d||_0x19dff1===defaultPresentation)throw _0x4d9960;_0x583a9f=await defaultPresentation[_0x551a24(0x1b3)](_0x2d629c);}return{'operation':_0x3bcf98,'risk':_0x4a914d['risk'],'mode':_0x4243a8?_0x551a24(0x1b5):'execute','result':_0x4a914d['result'],'output':_0x583a9f,..._0x46ef4d?{'metadata':_0x46ef4d}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0xc9c8b1,_0x57e5b4,_0x5cf084,_0x4ea737){const _0x42a8e8=a306_0x5c12;if(_0x57e5b4[_0x42a8e8(0x198)]===!![]||_0xc9c8b1['risk']!==_0x42a8e8(0x1b9)&&_0xc9c8b1[_0x42a8e8(0x19a)]!==_0x42a8e8(0x19c))return;await _0x4ea737[_0x42a8e8(0x1a1)][_0x42a8e8(0x1b0)](buildRabetbaseConfirmationRequest(_0xc9c8b1,_0x5cf084,_0x4ea737[_0x42a8e8(0x1b1)]));}function withAbortSignal(_0x5bceb1,_0x51536b){return{..._0x5bceb1,async 'execute'(_0x36e3de){const _0x1deca5=a306_0x5c12;return throwIfAborted(_0x51536b),_0x5bceb1[_0x1deca5(0x1a4)]({..._0x36e3de,'signal':_0x51536b});}};}function throwIfAborted(_0x37b62a){const _0xa5fdac=a306_0x5c12;if(_0x37b62a?.['aborted'])throw _0x37b62a[_0xa5fdac(0x199)]instanceof Error?_0x37b62a[_0xa5fdac(0x199)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0xa5fdac(0x1a6));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a307_0x2ddc(){const _0x5d48db=['3VeOJYM','2394216JEZvOf','1749785UVfWQP','resolve','catch','26411229vUdIxy','8jlOwxJ','1889085QzlcJb','2351912lDQUbi','4836870OhcyON','9101680oAPbWu'];a307_0x2ddc=function(){return _0x5d48db;};return a307_0x2ddc();}const a307_0x1054c0=a307_0x35e5;(function(_0x5afc2b,_0xc28556){const _0x44c947=a307_0x35e5,_0x109e77=_0x5afc2b();while(!![]){try{const _0x31f457=-parseInt(_0x44c947(0x1b9))/0x1+parseInt(_0x44c947(0x1b8))/0x2+parseInt(_0x44c947(0x1c2))/0x3*(-parseInt(_0x44c947(0x1bf))/0x4)+-parseInt(_0x44c947(0x1be))/0x5+parseInt(_0x44c947(0x1c0))/0x6+-parseInt(_0x44c947(0x1c1))/0x7+parseInt(_0x44c947(0x1bd))/0x8*(parseInt(_0x44c947(0x1bc))/0x9);if(_0x31f457===_0xc28556)break;else _0x109e77['push'](_0x109e77['shift']());}catch(_0x1635ca){_0x109e77['push'](_0x109e77['shift']());}}}(a307_0x2ddc,0xe119e));function a307_0x35e5(_0x41ff94,_0x4c9076){_0x41ff94=_0x41ff94-0x1b8;const _0x2ddc0d=a307_0x2ddc();let _0x35e5dc=_0x2ddc0d[_0x41ff94];return _0x35e5dc;}let tail=Promise[a307_0x1054c0(0x1ba)]();export async function runSerialized(_0xa2cc10){const _0x429229=a307_0x1054c0,_0x595b0b=tail;let _0x2e4b9d;tail=new Promise(_0x58469b=>{_0x2e4b9d=_0x58469b;}),await _0x595b0b[_0x429229(0x1bb)](()=>undefined);try{return await _0xa2cc10();}finally{_0x2e4b9d();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a8a59,_0x2b68d7){const _0x1d01bf=a308_0x1a27,_0x3f47ad=_0x2a8a59();while(!![]){try{const _0x4980f0=-parseInt(_0x1d01bf(0x1d2))/0x1+parseInt(_0x1d01bf(0x1dd))/0x2*(parseInt(_0x1d01bf(0x1db))/0x3)+parseInt(_0x1d01bf(0x1d7))/0x4*(-parseInt(_0x1d01bf(0x1d9))/0x5)+parseInt(_0x1d01bf(0x1dc))/0x6+-parseInt(_0x1d01bf(0x1c8))/0x7+parseInt(_0x1d01bf(0x1ca))/0x8*(-parseInt(_0x1d01bf(0x1cd))/0x9)+-parseInt(_0x1d01bf(0x1cf))/0xa*(-parseInt(_0x1d01bf(0x1ce))/0xb);if(_0x4980f0===_0x2b68d7)break;else _0x3f47ad['push'](_0x3f47ad['shift']());}catch(_0x6695c7){_0x3f47ad['push'](_0x3f47ad['shift']());}}}(a308_0x1904,0x7834b));import a308_0x4660c3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a308_0x1904(){const _0x4bf3ca=['hint','816690cfulUg','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','slice','wildcardDef','34044CQGhhv','run','370wjCzUa','flags','526782XQtKaX','1687398mrxWBi','4WgUIaF','unknownCommand','3551744iDxerp','join','94184CFyfGm','defaultCommand','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','315mJadQl','11LPisit','22258930CceARQ','validation'];a308_0x1904=function(){return _0x4bf3ca;};return a308_0x1904();}import{CliErrors}from'../errors.js';function a308_0x1a27(_0x21af77,_0xf4d43){_0x21af77=_0x21af77-0x1c7;const _0x190497=a308_0x1904();let _0x1a2794=_0x190497[_0x21af77];return _0x1a2794;}import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x3a98fb){const _0x43b485=a308_0x1a27,_0x52d636=a308_0x4660c3('',{'importMeta':import.meta,'argv':[..._0x3a98fb],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x456d9b=[..._0x52d636['input']],_0x395acc=_0x52d636[_0x43b485(0x1da)],_0x17a883=_0x456d9b[0x0];if(!_0x17a883)throw CliErrors[_0x43b485(0x1d0)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x51995b=resolveRemovedCommand(_0x17a883,_0x456d9b[0x1]);if(_0x51995b)throw CliErrors[_0x43b485(0x1d0)](_0x51995b[_0x43b485(0x1d4)],_0x51995b[_0x43b485(0x1d1)]);if(_0x17a883===_0x43b485(0x1d8))throw CliErrors[_0x43b485(0x1d0)](_0x43b485(0x1d3),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x17a883))throw CliErrors['unknownCommand'](_0x456d9b[_0x43b485(0x1c9)]('\x20'));const _0x7fed0c=getServiceEntry(_0x17a883),_0x3c6bf2=_0x456d9b[0x1],_0x3baf25=_0x3c6bf2||_0x7fed0c[_0x43b485(0x1cb)];if(!_0x3baf25){if(_0x7fed0c[_0x43b485(0x1d6)])return{'definition':_0x7fed0c[_0x43b485(0x1d6)],'rawFlags':_0x395acc,'args':[]};throw CliErrors[_0x43b485(0x1d0)](_0x43b485(0x1cc)+_0x17a883+'\x22.');}const _0x512352=findDefinition(_0x17a883,_0x3baf25);if(_0x512352)return assertSupportedCommandFlags(_0x512352,_0x395acc),{'definition':_0x512352,'rawFlags':_0x395acc,'args':_0x456d9b[_0x43b485(0x1d5)](0x2)};if(_0x7fed0c[_0x43b485(0x1d6)])return{'definition':_0x7fed0c['wildcardDef'],'rawFlags':_0x395acc,'args':[_0x3baf25,..._0x456d9b['slice'](0x2)]};throw CliErrors[_0x43b485(0x1c7)](_0x17a883+'\x20'+_0x3baf25);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a292_0x1a529c=a292_0x36d2;(function(_0xa32333,_0x4825b7){const _0x5cc352=a292_0x36d2,_0x17bbec=_0xa32333();while(!![]){try{const _0x2245ce=parseInt(_0x5cc352(0xd9))/0x1*(parseInt(_0x5cc352(0xc6))/0x2)+-parseInt(_0x5cc352(0xb7))/0x3+parseInt(_0x5cc352(0xdc))/0x4*(-parseInt(_0x5cc352(0xe2))/0x5)+-parseInt(_0x5cc352(0xaf))/0x6+-parseInt(_0x5cc352(0xae))/0x7+-parseInt(_0x5cc352(0xd6))/0x8*(-parseInt(_0x5cc352(0xd3))/0x9)+parseInt(_0x5cc352(0xab))/0xa;if(_0x2245ce===_0x4825b7)break;else _0x17bbec['push'](_0x17bbec['shift']());}catch(_0xe29e8b){_0x17bbec['push'](_0x17bbec['shift']());}}}(a292_0x23b1,0x23373));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a292_0x23b1(){const _0x15e9aa=['pipe','rabetbase.manifest.json','update','path','3779290mjNqbT','Unsupported\x20Skill\x20entry:\x20','VERIFY_FAILED','13965HiFpwx','1545384OnKhgt','sha256','unverifiable','rabetbase','files','stdio','name','parse','24927auDsuD','digest','present','skipped','Installed\x20Skill\x20state\x20is\x20','hex','current','state','error','unknown','join','installedPath','SOURCE_INVALID','Symbolic\x20link\x20is\x20not\x20allowed:\x20','version','2cdwhis','Unsafe\x20manifest\x20path:\x20','utf8','message','absent','version_mismatch','flatMap','rabetbase\x20cli-skill\x20install','skillVersion','isDirectory','manifest','trim','missing','539046jQBysV','isSymbolicLink','schemaVersion','32pNHEgX','root','reason','24779HNsLCd','includes','split','31748uNaUaC','length','packageVersion','SKILL.md','isFile','home','145hnxpdZ','every','packageRoot'];a292_0x23b1=function(){return _0x15e9aa;};return a292_0x23b1();}import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a292_0x1a529c(0xcd),SKILL_NAME=a292_0x1a529c(0xb2);function frontmatterValue(_0x4dd458,_0x57d81){const _0x203dc5=a292_0x1a529c;return _0x4dd458['match'](new RegExp('^'+_0x57d81+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x203dc5(0xd1)]()??'';}function listFiles(_0x10bb82,_0x52bb2e=_0x10bb82){const _0x2bb1b1=a292_0x1a529c;return readdirSync(_0x52bb2e,{'withFileTypes':!![]})[_0x2bb1b1(0xcc)](_0x4b74bd=>{const _0x46be56=_0x2bb1b1,_0x164b56=join(_0x52bb2e,_0x4b74bd[_0x46be56(0xb5)]),_0x300f7c=lstatSync(_0x164b56);if(_0x300f7c[_0x46be56(0xd4)]())throw new Error(_0x46be56(0xc4)+_0x164b56);if(_0x300f7c[_0x46be56(0xcf)]())return listFiles(_0x10bb82,_0x164b56);if(!_0x300f7c[_0x46be56(0xe0)]())throw new Error(_0x46be56(0xac)+_0x164b56);return[relative(_0x10bb82,_0x164b56)[_0x46be56(0xdb)](sep)[_0x46be56(0xc1)]('/')];})['sort']((_0x447ecc,_0x336c1e)=>_0x447ecc<_0x336c1e?-0x1:_0x447ecc>_0x336c1e?0x1:0x0);}function digestFiles(_0x120bb1,_0x337118){const _0x44f6f4=a292_0x1a529c,_0x40a861=createHash(_0x44f6f4(0xb0));for(const _0xfd5398 of _0x337118){if(_0xfd5398['startsWith']('/')||_0xfd5398['split']('/')['includes']('..')||_0xfd5398[_0x44f6f4(0xda)]('\x5c'))throw new Error(_0x44f6f4(0xc7)+_0xfd5398);_0x40a861[_0x44f6f4(0xa9)](_0xfd5398),_0x40a861[_0x44f6f4(0xa9)]('\x00'),_0x40a861['update'](readFileSync(join(_0x120bb1,..._0xfd5398[_0x44f6f4(0xdb)]('/')))),_0x40a861['update']('\x00');}return _0x40a861[_0x44f6f4(0xb8)](_0x44f6f4(0xbc));}function sameFiles(_0x47bdab,_0x3accea){const _0xce7e69=a292_0x1a529c;return _0x47bdab[_0xce7e69(0xdd)]===_0x3accea[_0xce7e69(0xdd)]&&_0x47bdab[_0xce7e69(0xe3)]((_0x6ce402,_0x16761e)=>_0x6ce402===_0x3accea[_0x16761e]);}function readSource(_0x2cc6ea){const _0x1334bb=a292_0x1a529c,_0x4a34eb=JSON[_0x1334bb(0xb6)](readFileSync(join(_0x2cc6ea,'package.json'),'utf8')),_0x960b1d=JSON[_0x1334bb(0xb6)](readFileSync(join(_0x2cc6ea,'skills',_0x1334bb(0xa8)),'utf8')),_0x1dfeca=join(_0x2cc6ea,'skills',SKILL_NAME),_0x5b1be4=frontmatterValue(readFileSync(join(_0x1dfeca,_0x1334bb(0xdf)),_0x1334bb(0xc8)),'version'),_0x5b40a9=listFiles(_0x1dfeca);if(_0x960b1d[_0x1334bb(0xd5)]!==0x1||_0x960b1d['name']!==SKILL_NAME||!_0x4a34eb[_0x1334bb(0xc5)]||_0x960b1d[_0x1334bb(0xde)]!==_0x4a34eb[_0x1334bb(0xc5)]||_0x960b1d['skillVersion']!==_0x4a34eb[_0x1334bb(0xc5)]||_0x5b1be4!==_0x4a34eb[_0x1334bb(0xc5)]||!sameFiles(_0x5b40a9,_0x960b1d['files'])||digestFiles(_0x1dfeca,_0x5b40a9)!==_0x960b1d['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x4a34eb[_0x1334bb(0xc5)],'skillVersion':_0x5b1be4,'root':_0x1dfeca,'manifest':_0x960b1d};}function installedSkillPath(_0x4d8976){const _0x5d958a=a292_0x1a529c,_0x13ad96=resolveInstalledSkill(SKILL_NAME,{'home':_0x4d8976});if(_0x13ad96['state']===_0x5d958a(0xb9))return{'state':'present','path':dirname(_0x13ad96[_0x5d958a(0xaa)])};if(_0x13ad96['state']===_0x5d958a(0xca))return{'state':_0x5d958a(0xd2)};return{'state':_0x5d958a(0xb1),'reason':_0x13ad96['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x43ff81,_0x225e4f={}){const _0x5ae505=a292_0x1a529c,_0x49e58b=installedSkillPath(_0x225e4f['home']??homedir());if(_0x49e58b['state']===_0x5ae505(0xd2))return{'state':_0x5ae505(0xd2),'expectedVersion':_0x43ff81,'repairCommand':REPAIR_COMMAND};if(_0x49e58b['state']===_0x5ae505(0xb1))return{'state':'unverifiable','expectedVersion':_0x43ff81,'reason':_0x49e58b[_0x5ae505(0xd8)],'repairCommand':REPAIR_COMMAND};try{const _0x1d75df=frontmatterValue(readFileSync(join(_0x49e58b['path'],'SKILL.md'),'utf8'),_0x5ae505(0xc5));return{'state':_0x1d75df===_0x43ff81?_0x5ae505(0xbd):_0x5ae505(0xcb),'expectedVersion':_0x43ff81,'skillVersion':_0x1d75df,'installedPath':_0x49e58b['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x2cf189){return{'state':_0x5ae505(0xb1),'expectedVersion':_0x43ff81,'installedPath':_0x49e58b[_0x5ae505(0xaa)],'reason':_0x2cf189 instanceof Error?_0x2cf189[_0x5ae505(0xc9)]:String(_0x2cf189),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3813c1={}){const _0x3ae7c4=a292_0x1a529c,_0x2a6123=_0x3813c1[_0x3ae7c4(0xe4)]??DEFAULT_PACKAGE_ROOT;let _0x5423b9;try{_0x5423b9=readSource(_0x2a6123);}catch(_0x3d1033){return{'state':_0x3ae7c4(0xb1),'packageVersion':'unknown','reason':_0x3d1033 instanceof Error?_0x3d1033[_0x3ae7c4(0xc9)]:String(_0x3d1033),'repairCommand':REPAIR_COMMAND};}const _0x3961b9=installedSkillPath(_0x3813c1[_0x3ae7c4(0xe1)]??homedir());if(_0x3961b9[_0x3ae7c4(0xbe)]===_0x3ae7c4(0xd2))return{'state':_0x3ae7c4(0xd2),'packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'repairCommand':REPAIR_COMMAND};if(_0x3961b9[_0x3ae7c4(0xbe)]===_0x3ae7c4(0xb1))return{'state':_0x3ae7c4(0xb1),'packageVersion':_0x5423b9['packageVersion'],'reason':_0x3961b9[_0x3ae7c4(0xd8)],'repairCommand':REPAIR_COMMAND};try{const _0x2decf9=frontmatterValue(readFileSync(join(_0x3961b9['path'],_0x3ae7c4(0xdf)),'utf8'),_0x3ae7c4(0xc5));if(_0x2decf9!==_0x5423b9[_0x3ae7c4(0xce)])return{'state':_0x3ae7c4(0xcb),'packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'skillVersion':_0x2decf9,'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'repairCommand':REPAIR_COMMAND};const _0x565e0a=listFiles(_0x3961b9['path']),_0x465801=digestFiles(_0x3961b9[_0x3ae7c4(0xaa)],_0x565e0a);return{'state':sameFiles(_0x565e0a,_0x5423b9[_0x3ae7c4(0xd0)][_0x3ae7c4(0xb3)])&&_0x465801===_0x5423b9[_0x3ae7c4(0xd0)][_0x3ae7c4(0xb8)]?_0x3ae7c4(0xbd):'content_mismatch','packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'skillVersion':_0x2decf9,'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'digest':_0x465801,'repairCommand':REPAIR_COMMAND};}catch(_0x38f26d){return{'state':_0x3ae7c4(0xb1),'packageVersion':_0x5423b9['packageVersion'],'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'reason':_0x38f26d instanceof Error?_0x38f26d['message']:String(_0x38f26d),'repairCommand':REPAIR_COMMAND};}}function failure(_0x19b265,_0x571cea,_0x375dac,_0x44590d){const _0x1df8ef=a292_0x1a529c;return{'ok':![],'code':_0x19b265,'packageVersion':_0x571cea['packageVersion'],'skillVersion':_0x571cea[_0x1df8ef(0xce)],'installedPath':_0x44590d,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x375dac instanceof Error?_0x375dac[_0x1df8ef(0xc9)]:String(_0x375dac)};}function a292_0x36d2(_0x4159fd,_0x5a0b64){_0x4159fd=_0x4159fd-0xa7;const _0x23b1c8=a292_0x23b1();let _0x36d289=_0x23b1c8[_0x4159fd];return _0x36d289;}export function installBuiltinSkill(_0x2751ae={}){const _0x19b7f3=a292_0x1a529c,_0x1c4dc3=_0x2751ae[_0x19b7f3(0xe4)]??DEFAULT_PACKAGE_ROOT,_0x84041b=_0x2751ae[_0x19b7f3(0xe1)]??homedir();let _0x3b840a;try{_0x3b840a=readSource(_0x1c4dc3);}catch(_0x5cabc6){return failure(_0x19b7f3(0xc3),{'packageVersion':'unknown','skillVersion':_0x19b7f3(0xc0)},_0x5cabc6);}const _0x4cb545=inspectBuiltinSkill({'packageRoot':_0x1c4dc3,'home':_0x84041b}),_0x59aa44=runNpxSkillsAddGlobal(_0x1c4dc3,_0x3b840a[_0x19b7f3(0xd7)],{'stdio':_0x2751ae[_0x19b7f3(0xb4)]??_0x19b7f3(0xa7),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x84041b}});if(_0x59aa44[_0x19b7f3(0xba)])return{'ok':!![],'packageVersion':_0x3b840a[_0x19b7f3(0xde)],'skillVersion':_0x3b840a[_0x19b7f3(0xce)],'installedPath':_0x4cb545[_0x19b7f3(0xc2)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x59aa44['ok'])return failure('INSTALL_FAILED',_0x3b840a,_0x59aa44[_0x19b7f3(0xbf)]??'skills@latest\x20exited\x20'+_0x59aa44['status']);const _0x46d8d4=inspectBuiltinSkill({'packageRoot':_0x1c4dc3,'home':_0x84041b});if(_0x46d8d4[_0x19b7f3(0xbe)]!==_0x19b7f3(0xbd))return failure(_0x19b7f3(0xad),_0x3b840a,_0x46d8d4[_0x19b7f3(0xd8)]??_0x19b7f3(0xbb)+_0x46d8d4[_0x19b7f3(0xbe)],_0x46d8d4[_0x19b7f3(0xc2)]);return{'ok':!![],'packageVersion':_0x3b840a[_0x19b7f3(0xde)],'skillVersion':_0x3b840a[_0x19b7f3(0xce)],'installedPath':_0x46d8d4['installedPath'],'changed':_0x4cb545[_0x19b7f3(0xbe)]!==_0x19b7f3(0xbd),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a310_0xe945=a310_0x2231;(function(_0xeaf95a,_0x5991c3){const _0x2f46f6=a310_0x2231,_0x1bda24=_0xeaf95a();while(!![]){try{const _0x48e812=parseInt(_0x2f46f6(0x14e))/0x1*(parseInt(_0x2f46f6(0x129))/0x2)+-parseInt(_0x2f46f6(0x146))/0x3+-parseInt(_0x2f46f6(0x12d))/0x4*(-parseInt(_0x2f46f6(0x14c))/0x5)+-parseInt(_0x2f46f6(0x133))/0x6+-parseInt(_0x2f46f6(0x15f))/0x7*(parseInt(_0x2f46f6(0x137))/0x8)+-parseInt(_0x2f46f6(0x12e))/0x9*(-parseInt(_0x2f46f6(0x15a))/0xa)+parseInt(_0x2f46f6(0x14a))/0xb;if(_0x48e812===_0x5991c3)break;else _0x1bda24['push'](_0x1bda24['shift']());}catch(_0xc68096){_0x1bda24['push'](_0x1bda24['shift']());}}}(a310_0x5190,0x8e786));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';function a310_0x5190(){const _0x311f84=['SOURCE_INVALID','skillVersion','Symbolic\x20link\x20is\x20not\x20allowed:\x20','VERIFY_FAILED','parse','skills@latest\x20exited\x20','path','every','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','includes','942087ZiTWOZ','skills','rabetbase','reason','5301065pHVWCH','match','15wCfFDl','trim','1UfpAIp','installedPath','rabetbase.manifest.json','packageRoot','flatMap','unknown','update','rabetbase\x20cli-skill\x20install','utf8','schemaVersion','name','split','670DGVRLh','Unsafe\x20manifest\x20path:\x20','status','unverifiable','message','28ePbZeV','isFile','files','content_mismatch','packageVersion','version','current','digest','Installed\x20Skill\x20state\x20is\x20','join','absent','214738PieIRQ','home','root','sha256','182388Ettoti','44766dCYbll','present','missing','length','error','264852lAAeIa','hex','version_mismatch','package.json','235208mWVCZj','state','startsWith','SKILL.md','manifest'];a310_0x5190=function(){return _0x311f84;};return a310_0x5190();}import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a310_0x2231(_0x428bae,_0x16a4a2){_0x428bae=_0x428bae-0x11f;const _0x5190e5=a310_0x5190();let _0x2231d3=_0x5190e5[_0x428bae];return _0x2231d3;}import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a310_0xe945(0x155),SKILL_NAME=a310_0xe945(0x148);function frontmatterValue(_0x138199,_0x3535f1){const _0x2cffbb=a310_0xe945;return _0x138199[_0x2cffbb(0x14b)](new RegExp('^'+_0x3535f1+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x2cffbb(0x14d)]()??'';}function listFiles(_0x2f8bc1,_0x3ebc7c=_0x2f8bc1){const _0xd57a2d=a310_0xe945;return readdirSync(_0x3ebc7c,{'withFileTypes':!![]})[_0xd57a2d(0x152)](_0x3d5d87=>{const _0x1435f0=_0xd57a2d,_0x2ca800=join(_0x3ebc7c,_0x3d5d87[_0x1435f0(0x158)]),_0x23db09=lstatSync(_0x2ca800);if(_0x23db09['isSymbolicLink']())throw new Error(_0x1435f0(0x13e)+_0x2ca800);if(_0x23db09['isDirectory']())return listFiles(_0x2f8bc1,_0x2ca800);if(!_0x23db09[_0x1435f0(0x11f)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x2ca800);return[relative(_0x2f8bc1,_0x2ca800)[_0x1435f0(0x159)](sep)[_0x1435f0(0x127)]('/')];})['sort']((_0x3fe239,_0x37a28b)=>_0x3fe239<_0x37a28b?-0x1:_0x3fe239>_0x37a28b?0x1:0x0);}function digestFiles(_0x4dd892,_0x18445a){const _0x114bec=a310_0xe945,_0x232781=createHash(_0x114bec(0x12c));for(const _0x335ee7 of _0x18445a){if(_0x335ee7[_0x114bec(0x139)]('/')||_0x335ee7[_0x114bec(0x159)]('/')['includes']('..')||_0x335ee7[_0x114bec(0x145)]('\x5c'))throw new Error(_0x114bec(0x15b)+_0x335ee7);_0x232781[_0x114bec(0x154)](_0x335ee7),_0x232781[_0x114bec(0x154)]('\x00'),_0x232781[_0x114bec(0x154)](readFileSync(join(_0x4dd892,..._0x335ee7[_0x114bec(0x159)]('/')))),_0x232781[_0x114bec(0x154)]('\x00');}return _0x232781[_0x114bec(0x125)](_0x114bec(0x134));}function sameFiles(_0x30e485,_0x294063){const _0x39734a=a310_0xe945;return _0x30e485[_0x39734a(0x131)]===_0x294063[_0x39734a(0x131)]&&_0x30e485[_0x39734a(0x143)]((_0x3696ee,_0x2b4795)=>_0x3696ee===_0x294063[_0x2b4795]);}function readSource(_0x5a1bc9){const _0x37e9e9=a310_0xe945,_0x12efa1=JSON[_0x37e9e9(0x140)](readFileSync(join(_0x5a1bc9,_0x37e9e9(0x136)),_0x37e9e9(0x156))),_0x1af52e=JSON['parse'](readFileSync(join(_0x5a1bc9,_0x37e9e9(0x147),_0x37e9e9(0x150)),_0x37e9e9(0x156))),_0x1d39f4=join(_0x5a1bc9,_0x37e9e9(0x147),SKILL_NAME),_0x2e8b8c=frontmatterValue(readFileSync(join(_0x1d39f4,_0x37e9e9(0x13a)),'utf8'),'version'),_0x198f94=listFiles(_0x1d39f4);if(_0x1af52e[_0x37e9e9(0x157)]!==0x1||_0x1af52e[_0x37e9e9(0x158)]!==SKILL_NAME||!_0x12efa1[_0x37e9e9(0x123)]||_0x1af52e[_0x37e9e9(0x122)]!==_0x12efa1[_0x37e9e9(0x123)]||_0x1af52e['skillVersion']!==_0x12efa1[_0x37e9e9(0x123)]||_0x2e8b8c!==_0x12efa1[_0x37e9e9(0x123)]||!sameFiles(_0x198f94,_0x1af52e[_0x37e9e9(0x120)])||digestFiles(_0x1d39f4,_0x198f94)!==_0x1af52e['digest'])throw new Error(_0x37e9e9(0x144));return{'packageVersion':_0x12efa1[_0x37e9e9(0x123)],'skillVersion':_0x2e8b8c,'root':_0x1d39f4,'manifest':_0x1af52e};}function installedSkillPath(_0x3efa38){const _0x47ad81=a310_0xe945,_0xf90c85=resolveInstalledSkill(SKILL_NAME,{'home':_0x3efa38});if(_0xf90c85[_0x47ad81(0x138)]===_0x47ad81(0x12f))return{'state':_0x47ad81(0x12f),'path':dirname(_0xf90c85['path'])};if(_0xf90c85[_0x47ad81(0x138)]===_0x47ad81(0x128))return{'state':'missing'};return{'state':_0x47ad81(0x15d),'reason':_0xf90c85['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x4ea1a6,_0x5ebcd6={}){const _0x21a660=a310_0xe945,_0x212c8a=installedSkillPath(_0x5ebcd6[_0x21a660(0x12a)]??homedir());if(_0x212c8a[_0x21a660(0x138)]===_0x21a660(0x130))return{'state':_0x21a660(0x130),'expectedVersion':_0x4ea1a6,'repairCommand':REPAIR_COMMAND};if(_0x212c8a[_0x21a660(0x138)]===_0x21a660(0x15d))return{'state':'unverifiable','expectedVersion':_0x4ea1a6,'reason':_0x212c8a[_0x21a660(0x149)],'repairCommand':REPAIR_COMMAND};try{const _0x5fb2bb=frontmatterValue(readFileSync(join(_0x212c8a[_0x21a660(0x142)],'SKILL.md'),_0x21a660(0x156)),_0x21a660(0x123));return{'state':_0x5fb2bb===_0x4ea1a6?_0x21a660(0x124):_0x21a660(0x135),'expectedVersion':_0x4ea1a6,'skillVersion':_0x5fb2bb,'installedPath':_0x212c8a['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x52a790){return{'state':_0x21a660(0x15d),'expectedVersion':_0x4ea1a6,'installedPath':_0x212c8a[_0x21a660(0x142)],'reason':_0x52a790 instanceof Error?_0x52a790['message']:String(_0x52a790),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x20dc8e={}){const _0xb84f89=a310_0xe945,_0x53a2f0=_0x20dc8e[_0xb84f89(0x151)]??DEFAULT_PACKAGE_ROOT;let _0x205d14;try{_0x205d14=readSource(_0x53a2f0);}catch(_0x4eecfc){return{'state':_0xb84f89(0x15d),'packageVersion':_0xb84f89(0x153),'reason':_0x4eecfc instanceof Error?_0x4eecfc[_0xb84f89(0x15e)]:String(_0x4eecfc),'repairCommand':REPAIR_COMMAND};}const _0x259a49=installedSkillPath(_0x20dc8e[_0xb84f89(0x12a)]??homedir());if(_0x259a49[_0xb84f89(0x138)]===_0xb84f89(0x130))return{'state':_0xb84f89(0x130),'packageVersion':_0x205d14[_0xb84f89(0x122)],'repairCommand':REPAIR_COMMAND};if(_0x259a49[_0xb84f89(0x138)]===_0xb84f89(0x15d))return{'state':_0xb84f89(0x15d),'packageVersion':_0x205d14['packageVersion'],'reason':_0x259a49[_0xb84f89(0x149)],'repairCommand':REPAIR_COMMAND};try{const _0x8e88cd=frontmatterValue(readFileSync(join(_0x259a49['path'],_0xb84f89(0x13a)),_0xb84f89(0x156)),_0xb84f89(0x123));if(_0x8e88cd!==_0x205d14[_0xb84f89(0x13d)])return{'state':'version_mismatch','packageVersion':_0x205d14[_0xb84f89(0x122)],'skillVersion':_0x8e88cd,'installedPath':_0x259a49[_0xb84f89(0x142)],'repairCommand':REPAIR_COMMAND};const _0x5e3dbc=listFiles(_0x259a49[_0xb84f89(0x142)]),_0x53e822=digestFiles(_0x259a49['path'],_0x5e3dbc);return{'state':sameFiles(_0x5e3dbc,_0x205d14[_0xb84f89(0x13b)][_0xb84f89(0x120)])&&_0x53e822===_0x205d14[_0xb84f89(0x13b)]['digest']?'current':_0xb84f89(0x121),'packageVersion':_0x205d14[_0xb84f89(0x122)],'skillVersion':_0x8e88cd,'installedPath':_0x259a49[_0xb84f89(0x142)],'digest':_0x53e822,'repairCommand':REPAIR_COMMAND};}catch(_0x5cd26d){return{'state':_0xb84f89(0x15d),'packageVersion':_0x205d14[_0xb84f89(0x122)],'installedPath':_0x259a49[_0xb84f89(0x142)],'reason':_0x5cd26d instanceof Error?_0x5cd26d[_0xb84f89(0x15e)]:String(_0x5cd26d),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2f7ca1,_0x3f52ef,_0x52bad7,_0x432378){const _0x1a45fd=a310_0xe945;return{'ok':![],'code':_0x2f7ca1,'packageVersion':_0x3f52ef[_0x1a45fd(0x122)],'skillVersion':_0x3f52ef[_0x1a45fd(0x13d)],'installedPath':_0x432378,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x52bad7 instanceof Error?_0x52bad7[_0x1a45fd(0x15e)]:String(_0x52bad7)};}export function installBuiltinSkill(_0x1477a7={}){const _0xf9d8f=a310_0xe945,_0x4a98d7=_0x1477a7[_0xf9d8f(0x151)]??DEFAULT_PACKAGE_ROOT,_0x1b4150=_0x1477a7[_0xf9d8f(0x12a)]??homedir();let _0x14d9b6;try{_0x14d9b6=readSource(_0x4a98d7);}catch(_0x256aa0){return failure(_0xf9d8f(0x13c),{'packageVersion':'unknown','skillVersion':_0xf9d8f(0x153)},_0x256aa0);}const _0x1678eb=inspectBuiltinSkill({'packageRoot':_0x4a98d7,'home':_0x1b4150}),_0x252d9a=runNpxSkillsAddGlobal(_0x4a98d7,_0x14d9b6[_0xf9d8f(0x12b)],{'stdio':_0x1477a7['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x1b4150}});if(_0x252d9a['skipped'])return{'ok':!![],'packageVersion':_0x14d9b6[_0xf9d8f(0x122)],'skillVersion':_0x14d9b6[_0xf9d8f(0x13d)],'installedPath':_0x1678eb[_0xf9d8f(0x14f)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x252d9a['ok'])return failure('INSTALL_FAILED',_0x14d9b6,_0x252d9a[_0xf9d8f(0x132)]??_0xf9d8f(0x141)+_0x252d9a[_0xf9d8f(0x15c)]);const _0x5a5050=inspectBuiltinSkill({'packageRoot':_0x4a98d7,'home':_0x1b4150});if(_0x5a5050[_0xf9d8f(0x138)]!==_0xf9d8f(0x124))return failure(_0xf9d8f(0x13f),_0x14d9b6,_0x5a5050['reason']??_0xf9d8f(0x126)+_0x5a5050[_0xf9d8f(0x138)],_0x5a5050[_0xf9d8f(0x14f)]);return{'ok':!![],'packageVersion':_0x14d9b6['packageVersion'],'skillVersion':_0x14d9b6[_0xf9d8f(0x13d)],'installedPath':_0x5a5050[_0xf9d8f(0x14f)],'changed':_0x1678eb[_0xf9d8f(0x138)]!=='current','repairCommand':REPAIR_COMMAND};}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x392091,_0x3785d1){const _0x2f0014=a311_0xfb68,_0x14f8f3=_0x392091();while(!![]){try{const _0x5595ae=-parseInt(_0x2f0014(0x1bc))/0x1+-parseInt(_0x2f0014(0x1bf))/0x2*(parseInt(_0x2f0014(0x1c8))/0x3)+parseInt(_0x2f0014(0x1bb))/0x4*(parseInt(_0x2f0014(0x1a8))/0x5)+-parseInt(_0x2f0014(0x1c6))/0x6*(parseInt(_0x2f0014(0x1b1))/0x7)+-parseInt(_0x2f0014(0x1c0))/0x8+-parseInt(_0x2f0014(0x1aa))/0x9*(-parseInt(_0x2f0014(0x1b5))/0xa)+parseInt(_0x2f0014(0x1c2))/0xb;if(_0x5595ae===_0x3785d1)break;else _0x14f8f3['push'](_0x14f8f3['shift']());}catch(_0x29ef5d){_0x14f8f3['push'](_0x14f8f3['shift']());}}}(a311_0x2b12,0xe6079));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(_0x3f7860){const _0x1d939d=a311_0xfb68,_0x166d3d=[];for(const [_0x3bda4d,_0x45a752]of Object[_0x1d939d(0x1b6)](_0x3f7860)){if(_0x45a752===!![]){const _0x47e140=_0x3bda4d['replace'](/([A-Z])/g,_0x1d939d(0x1b8))[_0x1d939d(0x1a9)]();_0x166d3d[_0x1d939d(0x1ca)](_0x47e140);}}return _0x166d3d;}export function parseDynamicFlags(){const _0x41c155=a311_0xfb68,_0x5f113c=[];for(let _0x2c7b2c=0x3;_0x2c7b2c<process['argv'][_0x41c155(0x1c7)];_0x2c7b2c++){const _0x559d67=process[_0x41c155(0x1c9)][_0x2c7b2c];if(_0x559d67&&_0x559d67[_0x41c155(0x1a7)]('--')){const _0x59d4f1=_0x559d67['slice'](0x2);_0x59d4f1&&!_0x59d4f1[_0x41c155(0x1b2)]('=')&&_0x5f113c[_0x41c155(0x1ca)](_0x59d4f1);}}return _0x5f113c;}function a311_0x2b12(){const _0x502937=['-$1','Public\x20Open\x20Skill\x20source:\x20','cwd','8156DKdYvr','280317aXQWnD','enable-bff-save','\x0aAvailable\x20commands:','2hVSVWO','7608392RjyRCt','(empty)','14502444SEqCVP','help','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','354648kMsAFF','length','2344404uExahu','argv','push','startsWith','1530xCiDas','toLowerCase','98343zVMPjb','Unsupported\x20command:\x20','from','--help','Error:\x20Unsupported\x20command:\x20','error','log','91ebHJeN','includes','setLogPath','has','1630XDyYwm','entries','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'];a311_0x2b12=function(){return _0x502937;};return a311_0x2b12();}export function getAllProvidedFlags(_0x1e5aa6){const _0x271cac=a311_0xfb68,_0x4c0539=camelCaseFlagsToKebab(_0x1e5aa6),_0x3ba657=parseDynamicFlags(),_0x13553f=new Set([..._0x4c0539,..._0x3ba657]);return Array[_0x271cac(0x1ac)](_0x13553f);}export function normalizeLegacyBffSaveFlags(_0x4e9df9){const _0x51388e=a311_0xfb68,_0x442f25=new Set(_0x4e9df9);return _0x442f25[_0x51388e(0x1b4)]('dangerously-bff-save')&&_0x442f25['add'](_0x51388e(0x1bd)),Array[_0x51388e(0x1ac)](_0x442f25);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1f40f4,_0x4cd092,_0x564afe){const _0x23301f=a311_0xfb68;logger[_0x23301f(0x1b3)](process[_0x23301f(0x1ba)]());if(_0x564afe?.[_0x23301f(0x1c3)]||_0x1f40f4===_0x23301f(0x1ad)){showHelp();return;}console[_0x23301f(0x1af)](_0x23301f(0x1ae)+(_0x1f40f4||_0x23301f(0x1c1))),console['log'](_0x23301f(0x1be)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x23301f(0x1b0)](''),console[_0x23301f(0x1b0)](_0x23301f(0x1b9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x23301f(0x1af)]('skill',_0x23301f(0x1ab)+_0x1f40f4),process['exit'](0x1);}function a311_0xfb68(_0x39f771,_0x3f0579){_0x39f771=_0x39f771-0x1a7;const _0x2b12e3=a311_0x2b12();let _0xfb681c=_0x2b12e3[_0x39f771];return _0xfb681c;}function showHelp(){const _0x19e3b0=a311_0xfb68;console['log'](_0x19e3b0(0x1b7)+CLI_BIN_NAME+_0x19e3b0(0x1c5)+SKILLS_INSTALL_COMMAND_LINE+_0x19e3b0(0x1c4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x28e1ee=a312_0x16ff;(function(_0x241d6b,_0x2abe2d){const _0x2faf17=a312_0x16ff,_0x861386=_0x241d6b();while(!![]){try{const _0x2cb3db=-parseInt(_0x2faf17(0xa1))/0x1+-parseInt(_0x2faf17(0x9c))/0x2*(-parseInt(_0x2faf17(0x7a))/0x3)+parseInt(_0x2faf17(0x9e))/0x4*(parseInt(_0x2faf17(0x81))/0x5)+parseInt(_0x2faf17(0x9b))/0x6+-parseInt(_0x2faf17(0x97))/0x7*(-parseInt(_0x2faf17(0x80))/0x8)+parseInt(_0x2faf17(0xaa))/0x9*(parseInt(_0x2faf17(0x8c))/0xa)+-parseInt(_0x2faf17(0x9a))/0xb;if(_0x2cb3db===_0x2abe2d)break;else _0x861386['push'](_0x861386['shift']());}catch(_0x87e38e){_0x861386['push'](_0x861386['shift']());}}}(a312_0x40f0,0x8cbc2));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a312_0x28e1ee(0x96);export const LEGACY_RABETBASE_SKILL_SOURCE=a312_0x28e1ee(0x76);export const DEFAULT_RABETBASE_SKILL_NAME=a312_0x28e1ee(0x7b);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a312_0x28e1ee(0x8d);export function resolveGlobalSkillName(_0x5d066){switch(_0x5d066['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x3b88af){const _0x5c6051=a312_0x28e1ee,_0x5d09d9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3b88af&&_0x5d09d9[_0x5c6051(0x77)](NPX_SKILLS_FLAG_SKILL,_0x3b88af),_0x5d09d9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a312_0x28e1ee(0x99),...buildNpxSkillsAddArgv()][a312_0x28e1ee(0x91)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a312_0x28e1ee(0x99),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a312_0x28e1ee(0x91)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2af936,_0x1e7a23,_0x29bdc6){return{'ok':![],'status':_0x1e7a23,'code':_0x2af936,'error':'['+_0x2af936+']\x20'+_0x29bdc6};}function execaOptions(_0x1bf8b4,_0x4e371d){const _0x3ff86b=a312_0x28e1ee,_0x4fceb1={...process.env};return delete _0x4fceb1[_0x3ff86b(0x75)],delete _0x4fceb1[_0x3ff86b(0xa6)],{'cwd':_0x1bf8b4,'stdio':_0x4e371d,'env':_0x4fceb1,'extendEnv':![],'shell':![],'reject':![],..._0x4e371d==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function a312_0x40f0(){const _0x34f698=['exitCode','unverifiable','EPERM','filter','SPAWN_FAILED','log','ENOENT','170hAiydD','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','CHILD_EXIT_NONZERO','failed','trim','join','stdout','checked','state','!\x20Could\x20not\x20verify\x20\x22','lovrabet/rabetbase','7uWjtxL','present','npx','19753855PMgzUY','6628164SRZAyB','3554ymgbZg','warn','26060fqTDgc','\x20failed\x20target(s)','presence','1152831AEYJWf','pipe','CHILD_TERMINATED','inherit','shortMessage','NPM_CONFIG_GLOBAL','\x22\x20install\x20state:\x20','remove','absent','436041asGGeo','INSTALL_PARTIAL','NPX_NOT_FOUND','signal','npm_config_global','lovrabet/lovrabet-skill','push','npx\x20terminated\x20by\x20signal\x20','code','1422XRMLua','Lovrabet','unknown','skill','stderr','match','2230928zZimYD','365JIdrUL','EACCES','PERMISSION_DENIED','stdio'];a312_0x40f0=function(){return _0x34f698;};return a312_0x40f0();}function normalizeExecaResult(_0x5256c4,_0x3d3e33,_0x2bdd36,_0x1be439){const _0x57e804=a312_0x28e1ee,_0x28a14e=[_0x5256c4[_0x57e804(0x92)]?String(_0x5256c4[_0x57e804(0x92)]):'',_0x5256c4[_0x57e804(0x7e)]?String(_0x5256c4['stderr']):''][_0x57e804(0x88)](Boolean)[_0x57e804(0x91)]('\x0a')[_0x57e804(0x90)](),_0x2b2889=_0x5256c4[_0x57e804(0x85)]??null;_0x1be439!==_0x57e804(0xa2)&&_0x28a14e&&console[_0x57e804(0x8a)](_0x28a14e);if(_0x5256c4['code']){const _0x59ceb0=_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x8b)?_0x57e804(0x73):_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x87)||_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x82)?_0x57e804(0x83):_0x57e804(0x89);return failure(_0x59ceb0,_0x2b2889,_0x5256c4[_0x57e804(0xa5)]??_0x5256c4['message']??_0x5256c4[_0x57e804(0x79)]);}if(_0x5256c4[_0x57e804(0x74)])return failure(_0x57e804(0xa3),_0x2b2889,_0x57e804(0x78)+_0x5256c4[_0x57e804(0x74)]);if(_0x5256c4[_0x57e804(0x8f)]&&_0x2b2889===null)return failure('SPAWN_FAILED',_0x2b2889,_0x5256c4['shortMessage']??_0x5256c4['message']??'npx\x20failed\x20to\x20start');if(_0x2b2889!==0x0)return failure(_0x57e804(0x8e),_0x2b2889,_0x28a14e||_0x5256c4[_0x57e804(0xa5)]||'exit\x20'+(_0x2b2889??_0x57e804(0x7c)));const _0x1d3ba3=_0x3d3e33?resolveInstalledSkill(_0x3d3e33,_0x2bdd36):undefined,_0x36a965=_0x28a14e[_0x57e804(0x7f)](/Failed to install\s+(\d+)/i);if(_0x36a965&&Number(_0x36a965[0x1])>0x0){const _0x16258f='Installer\x20reported\x20'+_0x36a965[0x1]+_0x57e804(0x9f)+(_0x28a14e?':\x0a'+_0x28a14e:'');if(_0x1d3ba3?.[_0x57e804(0x94)]===_0x57e804(0x98))return console[_0x57e804(0x9d)]('!\x20'+_0x16258f),{'ok':!![],'status':0x0};return failure(_0x57e804(0xab),0x0,_0x16258f);}if(_0x1d3ba3){if(_0x1d3ba3['state']===_0x57e804(0xa9))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x3d3e33+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x1d3ba3[_0x57e804(0x93)][_0x57e804(0x91)](',\x20')+')');_0x1d3ba3[_0x57e804(0x94)]===_0x57e804(0x86)&&console[_0x57e804(0x9d)](_0x57e804(0x95)+_0x3d3e33+_0x57e804(0xa7)+_0x1d3ba3['reason']);}return{'ok':!![],'status':0x0};}function a312_0x16ff(_0x345978,_0xe304d1){_0x345978=_0x345978-0x73;const _0x40f044=a312_0x40f0();let _0x16ff19=_0x40f044[_0x345978];return _0x16ff19;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x516c49,_0x3e61a7){const _0x4c74da=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x56cfc8=_0x3e61a7?.[_0x4c74da(0x84)]??_0x4c74da(0xa4),_0x5111d8=buildNpxSkillsAddArgv(_0x3e61a7?.[_0x4c74da(0x7d)]),_0x42dac8=[_0x4c74da(0x99),..._0x5111d8]['join']('\x20');console[_0x4c74da(0x8a)]('*\x20'+_0x42dac8);const _0x1bc2cc=execaSync('npx',_0x5111d8,execaOptions(_0x516c49,_0x56cfc8));return normalizeExecaResult(_0x1bc2cc,undefined,undefined,_0x56cfc8);}export function runNpxSkillsRemove(_0x616fe8,_0x3791bb,_0xace068=LEGACY_RABETBASE_SKILL_SOURCE){const _0x289408=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbfc947=_0x3791bb?.[_0x289408(0x84)]??'inherit',_0xcb415f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x289408(0xa8),_0xace068,NPX_SKILLS_FLAG_SKILL,_0x3791bb?.[_0x289408(0x7d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3791bb?.['yes']?['-y']:[]],_0x1d89ec=[_0x289408(0x99),..._0xcb415f]['join']('\x20');console['log']('*\x20'+_0x1d89ec);const _0x5a5517=execaSync(_0x289408(0x99),_0xcb415f,execaOptions(_0x616fe8,_0xbfc947));return normalizeExecaResult(_0x5a5517,undefined,undefined,_0xbfc947);}export function runNpxSkillsAddGlobal(_0x12712d,_0x385909,_0x157415){const _0xb5ad29=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23b55c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x385909,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x87b931=[_0xb5ad29(0x99),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x385909,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb5ad29(0x91)]('\x20');console['log']('*\x20'+_0x87b931);const _0x3c4bd3=execaSync(_0xb5ad29(0x99),_0x23b55c,execaOptions(_0x12712d,_0xb5ad29(0xa2)));return normalizeExecaResult(_0x3c4bd3,_0x157415?.['expectedSkillName']??resolveGlobalSkillName(_0x385909),_0x157415?.[_0xb5ad29(0xa0)],_0x157415?.[_0xb5ad29(0x84)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x3bffef=a313_0x4dfc;function a313_0x495a(){const _0x4b90dd=['166520TKTczs','skills','message','version','join','\x20has\x20no\x20skills\x20map','SKILL.md','\x20records\x20\x22','unusable','unverifiable','not-recorded','utf8','1690pnQtpo','1076439bALhvw','reason','recorded','1533213OIQzWC','globalSkillsDirs','1959582LUacGI','lockFile','93gNpiEE','.agents','home','529TOvPNS','22552aLVYdu','present','absent','.claude','290665yLOhOZ','map','object','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','kind','.skill-lock.json','find'];a313_0x495a=function(){return _0x4b90dd;};return a313_0x495a();}(function(_0x1edef9,_0x36ce08){const _0xe7e63b=a313_0x4dfc,_0x14909c=_0x1edef9();while(!![]){try{const _0x47382f=parseInt(_0xe7e63b(0x84))/0x1*(parseInt(_0xe7e63b(0x79))/0x2)+parseInt(_0xe7e63b(0x81))/0x3*(parseInt(_0xe7e63b(0x85))/0x4)+-parseInt(_0xe7e63b(0x89))/0x5+-parseInt(_0xe7e63b(0x7f))/0x6+-parseInt(_0xe7e63b(0x7a))/0x7+parseInt(_0xe7e63b(0x90))/0x8+parseInt(_0xe7e63b(0x7d))/0x9;if(_0x47382f===_0x36ce08)break;else _0x14909c['push'](_0x14909c['shift']());}catch(_0x3433f5){_0x14909c['push'](_0x14909c['shift']());}}}(a313_0x495a,0x43010));function a313_0x4dfc(_0x5b9696,_0x3b96ff){_0x5b9696=_0x5b9696-0x77;const _0x495a19=a313_0x495a();let _0x4dfc19=_0x495a19[_0x5b9696];return _0x4dfc19;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a313_0x3bffef(0x8e));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a313_0x3bffef(0x82),'skills'),join(a313_0x3bffef(0x88),a313_0x3bffef(0x91))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x44803a,_0x1d5700){const _0x1ef116=a313_0x3bffef;if(!existsSync(_0x44803a))return{'kind':_0x1ef116(0x77)};let _0x171a51;try{_0x171a51=JSON['parse'](readFileSync(_0x44803a,_0x1ef116(0x78)));}catch(_0x346230){return{'kind':'unusable','reason':_0x44803a+'\x20is\x20unreadable:\x20'+_0x346230[_0x1ef116(0x92)]};}const _0x1a70cc=_0x171a51;if(typeof _0x1a70cc?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1a70cc['version']))return{'kind':_0x1ef116(0x98),'reason':_0x44803a+'\x20uses\x20unsupported\x20version\x20'+String(_0x1a70cc?.[_0x1ef116(0x93)])};if(!_0x1a70cc[_0x1ef116(0x91)]||typeof _0x1a70cc[_0x1ef116(0x91)]!==_0x1ef116(0x8b))return{'kind':_0x1ef116(0x98),'reason':_0x44803a+_0x1ef116(0x95)};return _0x1a70cc['skills'][_0x1d5700]?{'kind':_0x1ef116(0x7c)}:{'kind':_0x1ef116(0x77)};}export function resolveInstalledSkill(_0x14ff6a,_0x4ccbf2){const _0x29daa8=a313_0x3bffef,_0x119d8e=_0x4ccbf2?.[_0x29daa8(0x83)]??homedir(),_0x4c5b2f=_0x4ccbf2?.[_0x29daa8(0x7e)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x29daa8(0x8a)](_0x1b6b16=>join(_0x119d8e,_0x1b6b16)),_0x148ef7=_0x4ccbf2?.[_0x29daa8(0x80)]??join(_0x119d8e,SKILL_LOCK_RELATIVE_PATH),_0x1d1a67=_0x4c5b2f['map'](_0x1707f4=>join(_0x1707f4,_0x14ff6a,_0x29daa8(0x96))),_0x3fc179=_0x1d1a67[_0x29daa8(0x8f)](_0x6a97a8=>existsSync(_0x6a97a8));if(_0x3fc179)return{'state':_0x29daa8(0x86),'path':_0x3fc179};const _0x5a571b=readLockLookup(_0x148ef7,_0x14ff6a);if(_0x5a571b[_0x29daa8(0x8d)]==='unusable')return{'state':'unverifiable','reason':_0x5a571b[_0x29daa8(0x7b)]};if(_0x5a571b[_0x29daa8(0x8d)]===_0x29daa8(0x7c))return{'state':_0x29daa8(0x99),'reason':_0x148ef7+_0x29daa8(0x97)+_0x14ff6a+_0x29daa8(0x8c)+('('+_0x1d1a67[_0x29daa8(0x94)](',\x20')+')')};return{'state':_0x29daa8(0x87),'checked':_0x1d1a67};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a314_0x5d6e(){const _0x2e6bc4=['stringify','17912GRuWFG','19579tiLxSF','service','719412tnkDof','rabetbase.command','durationMs','546356GWQQyR','flags','some','9djwqMR','28TLehyi','140ipEDyG','24fPqZCq','[REDACTED]','entries','command','4620tiAISO','493163iNMoRl','2557480FdKicn'];a314_0x5d6e=function(){return _0x2e6bc4;};return a314_0x5d6e();}(function(_0x40b1af,_0x2a5882){const _0x1f2cff=a314_0x34cc,_0x229f37=_0x40b1af();while(!![]){try{const _0x15010d=-parseInt(_0x1f2cff(0x99))/0x1*(-parseInt(_0x1f2cff(0x8f))/0x2)+-parseInt(_0x1f2cff(0x92))/0x3+-parseInt(_0x1f2cff(0x95))/0x4+parseInt(_0x1f2cff(0x8b))/0x5+parseInt(_0x1f2cff(0x87))/0x6*(-parseInt(_0x1f2cff(0x90))/0x7)+-parseInt(_0x1f2cff(0x8d))/0x8*(parseInt(_0x1f2cff(0x98))/0x9)+parseInt(_0x1f2cff(0x86))/0xa*(parseInt(_0x1f2cff(0x8c))/0xb);if(_0x15010d===_0x2a5882)break;else _0x229f37['push'](_0x229f37['shift']());}catch(_0x583f6a){_0x229f37['push'](_0x229f37['shift']());}}}(a314_0x5d6e,0x2a038));function a314_0x34cc(_0x4ae7d,_0x1f7327){_0x4ae7d=_0x4ae7d-0x86;const _0x5d6ef5=a314_0x5d6e();let _0x34cc45=_0x5d6ef5[_0x4ae7d];return _0x34cc45;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x334016){const _0xa04352=a314_0x34cc;return SENSITIVE_PATTERNS[_0xa04352(0x97)](_0x5b7612=>_0x5b7612['test'](_0x334016));}function sanitizeFlags(_0x3650e4){const _0x23a01b=a314_0x34cc,_0x5dac36={};for(const [_0x3a9a8c,_0x23ed8f]of Object[_0x23a01b(0x89)](_0x3650e4)){isSensitiveKey(_0x3a9a8c)?_0x5dac36[_0x3a9a8c]=_0x23ed8f!=null&&_0x23ed8f!==''?_0x23a01b(0x88):_0x23ed8f:_0x5dac36[_0x3a9a8c]=_0x23ed8f;}return _0x5dac36;}export async function reportCommandTrace(_0x47c1d8){const _0x2b4a17=a314_0x34cc;try{const _0x582a44=sanitizeFlags(_0x47c1d8[_0x2b4a17(0x96)]);await sendCliTraceLog({'spanName':_0x2b4a17(0x93),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x47c1d8[_0x2b4a17(0x91)],'command.name':_0x47c1d8[_0x2b4a17(0x8a)],'command.flags':JSON[_0x2b4a17(0x8e)](_0x582a44),..._0x47c1d8[_0x2b4a17(0x94)]!=null?{'command.duration_ms':_0x47c1d8['durationMs']}:{},..._0x47c1d8['error']?{'command.error':_0x47c1d8['error']instanceof Error?_0x47c1d8['error']['message']:String(_0x47c1d8['error'])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d6f3b,_0x5be2c8){var _0x96d25d=a315_0x431e,_0x389664=_0x2d6f3b();while(!![]){try{var _0x569deb=parseInt(_0x96d25d(0x7f))/0x1+parseInt(_0x96d25d(0x86))/0x2*(parseInt(_0x96d25d(0x7c))/0x3)+parseInt(_0x96d25d(0x80))/0x4*(parseInt(_0x96d25d(0x7e))/0x5)+parseInt(_0x96d25d(0x87))/0x6*(-parseInt(_0x96d25d(0x81))/0x7)+parseInt(_0x96d25d(0x82))/0x8+-parseInt(_0x96d25d(0x83))/0x9+-parseInt(_0x96d25d(0x84))/0xa;if(_0x569deb===_0x5be2c8)break;else _0x389664['push'](_0x389664['shift']());}catch(_0x52dadd){_0x389664['push'](_0x389664['shift']());}}}(a315_0x30a3,0x4a07b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a315_0x30a3(){var _0x244b0d=['error','59127oHvAnZ','cli.help','10xiKMke','537446BkhCvt','944936BeYKZA','2758224Svppii','4488632fTFvXa','3470220SBNihO','8626250CrpRJm','service','38vNOPpF','6BbjLMa'];a315_0x30a3=function(){return _0x244b0d;};return a315_0x30a3();}function a315_0x431e(_0x47b767,_0x29e70d){_0x47b767=_0x47b767-0x7b;var _0x30a3bc=a315_0x30a3();var _0x431e16=_0x30a3bc[_0x47b767];return _0x431e16;}export async function reportCliHelpTrace(_0x2021b0,_0x1bc6b6){var _0x1e7824=a315_0x431e;try{await sendCliTraceLog({'spanName':_0x1e7824(0x7d),'logData':{'rabetbase.help.kind':_0x2021b0,..._0x1bc6b6?.['service']&&{'rabetbase.help.service':_0x1bc6b6[_0x1e7824(0x85)]}}});}catch(_0x3a17d5){console[_0x1e7824(0x7b)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3a17d5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ee71e,_0x14a48a){const _0x4f81f7=a316_0x23b9,_0x1ade37=_0x3ee71e();while(!![]){try{const _0x1fbf6a=-parseInt(_0x4f81f7(0x155))/0x1*(parseInt(_0x4f81f7(0x15d))/0x2)+-parseInt(_0x4f81f7(0x151))/0x3*(-parseInt(_0x4f81f7(0x15c))/0x4)+-parseInt(_0x4f81f7(0x153))/0x5+parseInt(_0x4f81f7(0x15e))/0x6*(parseInt(_0x4f81f7(0x15f))/0x7)+-parseInt(_0x4f81f7(0x158))/0x8+-parseInt(_0x4f81f7(0x157))/0x9*(-parseInt(_0x4f81f7(0x152))/0xa)+parseInt(_0x4f81f7(0x14f))/0xb*(parseInt(_0x4f81f7(0x159))/0xc);if(_0x1fbf6a===_0x14a48a)break;else _0x1ade37['push'](_0x1ade37['shift']());}catch(_0x30eefd){_0x1ade37['push'](_0x1ade37['shift']());}}}(a316_0x4614,0xbb53d));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a316_0x23b9(_0x542587,_0x2a4592){_0x542587=_0x542587-0x14d;const _0x461410=a316_0x4614();let _0x23b9ad=_0x461410[_0x542587];return _0x23b9ad;}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 _0x2127a1=a316_0x23b9,_0x4159b1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ebf0c=_0x4159b1?.[_0x2127a1(0x15a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2127a1(0x154):_0x2127a1(0x15b))}),setUserContext({'id':_0x5ebf0c?.['id'],'username':_0x5ebf0c?.[_0x2127a1(0x14d)],'nickname':_0x5ebf0c?.[_0x2127a1(0x156)],'email':_0x5ebf0c?.[_0x2127a1(0x14e)],'tenantCode':_0x5ebf0c?.['tenant']?.[_0x2127a1(0x150)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4159b1;}function a316_0x4614(){const _0x107fe1=['3SiCdDs','121470crYlqN','6328605NyLfNu','daily','29507mJXKjE','nickname','126JqYjmW','1820320epUAvh','2869764NpdNyL','user','production','107216qjgwyS','34oeuMiL','12bhNBHh','3119487UAbjWw','username','email','77SuJOmi','tenant_code'];a316_0x4614=function(){return _0x107fe1;};return a316_0x4614();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x10b3f7,_0x14bfa7){const _0x36c4eb=a317_0x21d4,_0x4e34de=_0x10b3f7();while(!![]){try{const _0x5efaee=parseInt(_0x36c4eb(0x188))/0x1+parseInt(_0x36c4eb(0x18d))/0x2*(parseInt(_0x36c4eb(0x182))/0x3)+-parseInt(_0x36c4eb(0x18c))/0x4*(-parseInt(_0x36c4eb(0x189))/0x5)+parseInt(_0x36c4eb(0x183))/0x6*(-parseInt(_0x36c4eb(0x180))/0x7)+-parseInt(_0x36c4eb(0x18a))/0x8+-parseInt(_0x36c4eb(0x187))/0x9+parseInt(_0x36c4eb(0x184))/0xa;if(_0x5efaee===_0x14bfa7)break;else _0x4e34de['push'](_0x4e34de['shift']());}catch(_0x348c6e){_0x4e34de['push'](_0x4e34de['shift']());}}}(a317_0x45c8,0x79aa3));function a317_0x21d4(_0x1797d,_0x46be84){_0x1797d=_0x1797d-0x17e;const _0x45c836=a317_0x45c8();let _0x21d460=_0x45c836[_0x1797d];return _0x21d460;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x189839=a317_0x21d4;process[_0x189839(0x185)](_0x189839(0x17e),()=>{void flushOtelNodeIfUsed();});const _0xb7a61d=()=>{const _0x56f5f2=_0x189839;void flushOtelNodeIfUsed()[_0x56f5f2(0x181)](()=>process[_0x56f5f2(0x17f)](0x0));};process['once'](_0x189839(0x18b),_0xb7a61d),process[_0x189839(0x185)](_0x189839(0x186),_0xb7a61d);}export async function exitWithOtelShutdown(_0x504e1b){const _0x53e3f0=a317_0x21d4;await flushOtelNodeIfUsed(),process[_0x53e3f0(0x17f)](_0x504e1b);}function a317_0x45c8(){const _0x501126=['SIGINT','1206160lTTKBc','2QDplCE','beforeExit','exit','693hpgMCO','then','2193849hfzLzU','5154btzwlk','1930320QULogF','once','SIGTERM','8148996bDqReF','582097kdSRYl','10LreGer','4965344HcIpPO'];a317_0x45c8=function(){return _0x501126;};return a317_0x45c8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a318_0x4b1d(_0x31dede,_0x2a36c0){_0x31dede=_0x31dede-0x118;const _0x18c1ba=a318_0x18c1();let _0x4b1d02=_0x18c1ba[_0x31dede];return _0x4b1d02;}(function(_0x58e936,_0x5a11bf){const _0x30ba22=a318_0x4b1d,_0x340e61=_0x58e936();while(!![]){try{const _0x48fc0d=parseInt(_0x30ba22(0x118))/0x1+parseInt(_0x30ba22(0x124))/0x2*(-parseInt(_0x30ba22(0x121))/0x3)+-parseInt(_0x30ba22(0x11e))/0x4*(parseInt(_0x30ba22(0x11c))/0x5)+-parseInt(_0x30ba22(0x120))/0x6+parseInt(_0x30ba22(0x11d))/0x7+-parseInt(_0x30ba22(0x11b))/0x8+-parseInt(_0x30ba22(0x119))/0x9*(-parseInt(_0x30ba22(0x11a))/0xa);if(_0x48fc0d===_0x5a11bf)break;else _0x340e61['push'](_0x340e61['shift']());}catch(_0x536fc8){_0x340e61['push'](_0x340e61['shift']());}}}(a318_0x18c1,0x55116));function a318_0x18c1(){const _0x175067=['9532791IlLxCu','10kmtxxh','4787216sxuEJs','15SLvbLn','3481919eebkdz','717796CzBjlC','traceparent','3029166EsjbLo','6vWUSPy','manual','traceName','244522UNXGnD','677954aBGVjo'];a318_0x18c1=function(){return _0x175067;};return a318_0x18c1();}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';export async function sendCliTraceLog(_0x460596){const _0x5329aa=a318_0x4b1d;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x460596[_0x5329aa(0x123)]??DEFAULT_TRACE_NAME,'version':_0x460596['version']??getCliVersion(),'spanName':_0x460596['spanName'],'eventType':_0x5329aa(0x122),'logData':_0x460596['logData'],..._0x460596[_0x5329aa(0x11f)]&&{'traceparent':_0x460596[_0x5329aa(0x11f)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a319_0x34bdc4=a319_0xee66;(function(_0x2f8eee,_0x1f6c09){const _0x55f66d=a319_0xee66,_0x2188b3=_0x2f8eee();while(!![]){try{const _0x57b910=parseInt(_0x55f66d(0x119))/0x1+-parseInt(_0x55f66d(0x11d))/0x2*(-parseInt(_0x55f66d(0x11b))/0x3)+-parseInt(_0x55f66d(0x10e))/0x4+parseInt(_0x55f66d(0x11a))/0x5*(-parseInt(_0x55f66d(0x110))/0x6)+parseInt(_0x55f66d(0x112))/0x7+parseInt(_0x55f66d(0x115))/0x8+-parseInt(_0x55f66d(0x10f))/0x9;if(_0x57b910===_0x1f6c09)break;else _0x2188b3['push'](_0x2188b3['shift']());}catch(_0x301dfb){_0x2188b3['push'](_0x2188b3['shift']());}}}(a319_0x2316,0xb783b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a319_0x34bdc4(0x11c);function a319_0xee66(_0x547416,_0x4c4000){_0x547416=_0x547416-0x10e;const _0x231657=a319_0x2316();let _0xee661a=_0x231657[_0x547416];return _0xee661a;}function a319_0x2316(){const _0x957030=['6FPQAGI','sanitize','originalBytes','join','5296776drYXQd','12721761AqmFTi','498qIIrwi','redactionCount','5973744SYRrCA','description','issue.log.collect','3858056kDBaPe','truncated','title','redactionKinds','1442856zndING','13115eqlQsV','928602jXeWri','platform-issue-log-collect'];a319_0x2316=function(){return _0x957030;};return a319_0x2316();}export const PLATFORM_ISSUE_SPAN_NAME=a319_0x34bdc4(0x114);export async function sendPlatformIssueCollectLog(_0x120c96){const _0x2f1511=a319_0x34bdc4;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x120c96[_0x2f1511(0x117)],'issue.description':_0x120c96[_0x2f1511(0x113)],..._0x120c96[_0x2f1511(0x11e)]?{'issue.description_original_bytes':_0x120c96['sanitize'][_0x2f1511(0x11f)],'issue.description_truncated':_0x120c96['sanitize'][_0x2f1511(0x116)],'issue.description_redactions':_0x120c96[_0x2f1511(0x11e)][_0x2f1511(0x111)],'issue.description_redaction_kinds':_0x120c96[_0x2f1511(0x11e)][_0x2f1511(0x118)][_0x2f1511(0x120)](',')}:{}}});}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ApiPullFileStatus {
|
|
|
45
45
|
* 生成 API 文件的结果
|
|
46
46
|
*
|
|
47
47
|
* `api.ts` / `client.ts` 仅在缺失(或显式 overwrite)时写入脚手架;
|
|
48
|
-
* `sdk-config.ts`
|
|
48
|
+
* 匹配当前应用的 `sdk-config.ts` / `<prefix>-sdk-config.ts` 每次都会刷新。
|
|
49
49
|
*/
|
|
50
50
|
export interface GenerateApiFileResult {
|
|
51
51
|
appCode: string;
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a321_0x3abae9=a321_0x1979;(function(_0x53dba8,_0x5e444f){const _0x41f000=a321_0x1979,_0x3343ca=_0x53dba8();while(!![]){try{const _0x50a73c=-parseInt(_0x41f000(0x1c1))/0x1*(parseInt(_0x41f000(0x1b4))/0x2)+parseInt(_0x41f000(0x1c4))/0x3*(parseInt(_0x41f000(0x1db))/0x4)+parseInt(_0x41f000(0x1cd))/0x5+-parseInt(_0x41f000(0x1c8))/0x6*(-parseInt(_0x41f000(0x1b3))/0x7)+-parseInt(_0x41f000(0x1c3))/0x8*(-parseInt(_0x41f000(0x1cb))/0x9)+parseInt(_0x41f000(0x1d8))/0xa*(parseInt(_0x41f000(0x1d1))/0xb)+-parseInt(_0x41f000(0x1bb))/0xc*(parseInt(_0x41f000(0x1b8))/0xd);if(_0x50a73c===_0x5e444f)break;else _0x3343ca['push'](_0x3343ca['shift']());}catch(_0xb4b3ac){_0x3343ca['push'](_0x3343ca['shift']());}}}(a321_0x4a29,0x196a1));export const CORE_IDE_CONFIGS={'cursor':{'name':a321_0x3abae9(0x1cf),'description':'Cursor\x20IDE','folders':[a321_0x3abae9(0x1ba),a321_0x3abae9(0x1ad)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1b7)}]},'windsurf':{'name':a321_0x3abae9(0x1c5),'description':a321_0x3abae9(0x1d0),'folders':['.windsurf'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1bc)}]},'claude':{'name':a321_0x3abae9(0x1df),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1b6)}]},'cline':{'name':a321_0x3abae9(0x1b1),'description':a321_0x3abae9(0x1d3),'folders':[a321_0x3abae9(0x1c6)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1de)}]},'codex':{'name':a321_0x3abae9(0x1c9),'description':a321_0x3abae9(0x1bf),'folders':[a321_0x3abae9(0x1ce)],'files':[{'type':a321_0x3abae9(0x1cc),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a321_0x3abae9(0x1d7),'description':'OpenCode\x20IDE','folders':[a321_0x3abae9(0x1d4)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1be)}]},'qoder':{'name':'Qoder','description':a321_0x3abae9(0x1dd),'folders':[a321_0x3abae9(0x1ae)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md'},{'type':a321_0x3abae9(0x1cc),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a321_0x3abae9(0x1aa)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1c0)}]},'trae':{'name':a321_0x3abae9(0x1af),'description':a321_0x3abae9(0x1ab),'folders':[a321_0x3abae9(0x1b2)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1c7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a321_0x3abae9(0x1ca),'description':a321_0x3abae9(0x1b0),'folders':['.agent'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1e0)}]},'antigravity':{'name':a321_0x3abae9(0x1d5),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1e0)}]}};export const CORE_IDE_LIST=[a321_0x3abae9(0x1d2),a321_0x3abae9(0x1b5),a321_0x3abae9(0x1da),'codex',a321_0x3abae9(0x1dc),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),'trae',a321_0x3abae9(0x1b9)];export const IDE_LIST=['antigravity',a321_0x3abae9(0x1d2),a321_0x3abae9(0x1b5),a321_0x3abae9(0x1da),a321_0x3abae9(0x1d9),a321_0x3abae9(0x1dc),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),a321_0x3abae9(0x1bd),a321_0x3abae9(0x1b9),a321_0x3abae9(0x1d6)];function a321_0x4a29(){const _0x4861a1=['Other\x20(generic\x20template)','18bANqce','file','813865UTLexu','.codex','Cursor','Windsurf\x20IDE','889394ywjaxr','claude','Cline\x20IDE','.opencode','Antigravity','agent','OpenCode','10LulBHs','codex','codebuddy','29620bPvfEC','cursor','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.codebuddy','Trae\x20IDE','opencode','.cursor','.qoder','Trae','Generic\x20template\x20fallback','Cline','.trae','13706qjIyUo','2cVaVQP','cline','.claude/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','1885uOrpfl','windsurf','.cursorrules','29616umNhPX','.windsurf/workflows/rabetbase.md','trae','.opencode/skills/lovrabet/SKILL.md','Codex\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','179913kRiENg','qoder','799648XxWgGu','51vuwrOw','Windsurf','.cline','.trae/skills/lovrabet/SKILL.md','222YhMqyb','Codex'];a321_0x4a29=function(){return _0x4861a1;};return a321_0x4a29();}function a321_0x1979(_0x578463,_0x1a789b){_0x578463=_0x578463-0x1aa;const _0x4a2973=a321_0x4a29();let _0x1979f6=_0x4a2973[_0x578463];return _0x1979f6;}export const ALL_CORE_IDES=[a321_0x3abae9(0x1dc),a321_0x3abae9(0x1b9),'claude','cline',a321_0x3abae9(0x1d9),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),a321_0x3abae9(0x1da),a321_0x3abae9(0x1bd)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc9729e,_0x228fe4){const _0x37695e=a322_0x2cb1,_0x2ab0d5=_0xc9729e();while(!![]){try{const _0x2d4dce=-parseInt(_0x37695e(0x1dc))/0x1*(parseInt(_0x37695e(0x1db))/0x2)+-parseInt(_0x37695e(0x1e0))/0x3*(parseInt(_0x37695e(0x1de))/0x4)+-parseInt(_0x37695e(0x1dd))/0x5*(-parseInt(_0x37695e(0x1d7))/0x6)+parseInt(_0x37695e(0x1d9))/0x7*(-parseInt(_0x37695e(0x1df))/0x8)+parseInt(_0x37695e(0x1d6))/0x9+-parseInt(_0x37695e(0x1d8))/0xa*(parseInt(_0x37695e(0x1e1))/0xb)+parseInt(_0x37695e(0x1da))/0xc;if(_0x2d4dce===_0x228fe4)break;else _0x2ab0d5['push'](_0x2ab0d5['shift']());}catch(_0x4a5f3a){_0x2ab0d5['push'](_0x2ab0d5['shift']());}}}(a322_0x2207,0x28b5f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a322_0x2207(){const _0x56f5e4=['198Twxkyk','9160LvLQxX','12376xvYoFv','5517156AIAkWb','94RUbIJz','829qLYdqZ','1060eTMeuS','4SYXXIN','1072YfDMxQ','734259sckvZW','55xyxjEB','2026800nSbTmX'];a322_0x2207=function(){return _0x56f5e4;};return a322_0x2207();}function a322_0x2cb1(_0x2e8a1a,_0xd34f44){_0x2e8a1a=_0x2e8a1a-0x1d6;const _0x2207f4=a322_0x2207();let _0x2cb1de=_0x2207f4[_0x2e8a1a];return _0x2cb1de;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x583ae6,_0x4d726a){const _0x52c078=a323_0xacb5,_0x5c0922=_0x583ae6();while(!![]){try{const _0x375db2=parseInt(_0x52c078(0x15e))/0x1*(parseInt(_0x52c078(0x166))/0x2)+parseInt(_0x52c078(0x163))/0x3*(parseInt(_0x52c078(0x158))/0x4)+-parseInt(_0x52c078(0x162))/0x5*(parseInt(_0x52c078(0x165))/0x6)+-parseInt(_0x52c078(0x168))/0x7*(parseInt(_0x52c078(0x15f))/0x8)+-parseInt(_0x52c078(0x157))/0x9*(-parseInt(_0x52c078(0x15b))/0xa)+-parseInt(_0x52c078(0x164))/0xb+-parseInt(_0x52c078(0x15d))/0xc;if(_0x375db2===_0x4d726a)break;else _0x5c0922['push'](_0x5c0922['shift']());}catch(_0x36b4fd){_0x5c0922['push'](_0x5c0922['shift']());}}}(a323_0x1764,0x1f2b7));function a323_0x1764(){const _0x453ca5=['json','16737rWdiyM','cli','13077EIRjzU','1940CLAgvN','node','/config.json','1450UfTIVI','/config/index.json','90060hgAJQy','1vHgUUE','456oyQBCR','stableVersion','now','1237805gPMetJ','1257ZaJhEU','703439CSJFsA','6EahybN','338146TqyhhM'];a323_0x1764=function(){return _0x453ca5;};return a323_0x1764();}import{getTemplateBaseUrl}from'../utils/config.js';function a323_0xacb5(_0x68f4cd,_0x45d6b1){_0x68f4cd=_0x68f4cd-0x157;const _0x1764fd=a323_0x1764();let _0xacb550=_0x1764fd[_0x68f4cd];return _0xacb550;}export async function fetchCdnConfig(){const _0x150e44=a323_0xacb5,_0x48fe85=getTemplateBaseUrl(),_0x7cdcb5=[_0x48fe85+_0x150e44(0x15a),_0x48fe85+_0x150e44(0x15c)];for(const _0x57abb4 of _0x7cdcb5){try{const _0x1bd02f=await fetch(_0x57abb4,{'headers':{'Accept':'application/json'}});if(!_0x1bd02f['ok'])continue;const _0xfc84bf=await _0x1bd02f[_0x150e44(0x167)]();if(!_0xfc84bf[_0x150e44(0x169)]?.[_0x150e44(0x160)]||!_0xfc84bf['sdk']?.[_0x150e44(0x159)]?.['stableVersion'])continue;return _0xfc84bf;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x46f5f2=a323_0xacb5,_0x4d19a2=Date[_0x46f5f2(0x161)]();if(hasCachedConfig){const _0x298280=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d19a2-cacheTime<_0x298280)return cachedConfig;}const _0x4cf947=await fetchCdnConfig();return cachedConfig=_0x4cf947,cacheTime=_0x4d19a2,hasCachedConfig=!![],_0x4cf947;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|