@lovrabet/rabetbase-cli 2.5.10-beta.1 → 2.5.10-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/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.d.ts +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -28
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.d.ts +8 -0
- package/lib/core/instant-api-policy/endpoints.js +1 -0
- package/lib/core/kb-management-client.d.ts +3 -9
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +1 -4
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a359_0x4b3166=a359_0x4a4f;(function(_0x507e88,_0x3588d9){const _0x4e566d=a359_0x4a4f,_0x591342=_0x507e88();while(!![]){try{const _0x4d80ab=-parseInt(_0x4e566d(0x17b))/0x1+parseInt(_0x4e566d(0x176))/0x2+parseInt(_0x4e566d(0x18d))/0x3*(-parseInt(_0x4e566d(0x19a))/0x4)+-parseInt(_0x4e566d(0x17d))/0x5+parseInt(_0x4e566d(0x180))/0x6*(-parseInt(_0x4e566d(0x189))/0x7)+parseInt(_0x4e566d(0x18a))/0x8+parseInt(_0x4e566d(0x174))/0x9*(parseInt(_0x4e566d(0x186))/0xa);if(_0x4d80ab===_0x3588d9)break;else _0x591342['push'](_0x591342['shift']());}catch(_0x241c8d){_0x591342['push'](_0x591342['shift']());}}}(a359_0x1ce1,0xdb1c4));import a359_0x3b1c8e from'node:fs';function a359_0x4a4f(_0x15fc81,_0x4ffae1){_0x15fc81=_0x15fc81-0x173;const _0x1ce1fd=a359_0x1ce1();let _0x4a4fa4=_0x1ce1fd[_0x15fc81];return _0x4a4fa4;}import a359_0x58f8fa from'node:path';import a359_0xd9393a from'semver';function a359_0x1ce1(){const _0x22c498=['test','sdk','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','join','utf-8','4OyCjXb','\x20\x20\x20Upgrade\x20command:\x20','6002280DHawxP','minVersion','1754438xLndFo','coerce','version','devDependencies','packageName','1701575cxUdck','npm\x20install\x20','116650hvTRXE','log','readFileSync','4257654gXTmOU','node_modules','\x20\x20\x20Current\x20version:\x20','dependencies','utf8','all','30JUbtUP','↪\x20SDK\x20update\x20available','existsSync','7MTXCev','5397880DAnKDE','node','stableVersion','662172YgXDQz','package.json','1.2.0','some','\x1b[1m','parse','@lovrabet/sdk'];a359_0x1ce1=function(){return _0x22c498;};return a359_0x1ce1();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a359_0x4b3166(0x18f);function isNonNumericVersion(_0x50ce0d){const _0x4f259e=a359_0x4b3166,_0x2ebff7=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2ebff7[_0x4f259e(0x190)](_0x4d42b5=>_0x4d42b5[_0x4f259e(0x194)](_0x50ce0d));}function getInstalledVersion(_0x1a8bd2,_0x188fa9){const _0x1bfd63=a359_0x4b3166;try{const _0x5df8d2=a359_0x58f8fa['join'](_0x1a8bd2,_0x1bfd63(0x181),_0x188fa9,_0x1bfd63(0x18e));if(a359_0x3b1c8e['existsSync'](_0x5df8d2)){const _0x1f297d=JSON[_0x1bfd63(0x192)](a359_0x3b1c8e[_0x1bfd63(0x17f)](_0x5df8d2,_0x1bfd63(0x199)));return _0x1f297d[_0x1bfd63(0x178)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x29c852=a359_0x4b3166;try{const _0x32a206=await getCdnConfig();return _0x32a206?.[_0x29c852(0x195)]?.['node']?.[_0x29c852(0x18c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x468dda=a359_0x4b3166;try{const _0x2f86a4=await getCdnConfig();return _0x2f86a4?.[_0x468dda(0x195)]?.[_0x468dda(0x18b)]?.[_0x468dda(0x17a)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x5cb2d8){const _0x174af0=a359_0x4b3166,_0x39a96d=a359_0x58f8fa[_0x174af0(0x198)](_0x5cb2d8,_0x174af0(0x18e)),[_0x2f9b60,_0x296e91]=await Promise[_0x174af0(0x185)]([getSdkStableVersion(),getSdkPackageName()]),_0x584c20=_0x2f9b60||FALLBACK_MIN_SDK_VERSION;if(!a359_0x3b1c8e[_0x174af0(0x188)](_0x39a96d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x584c20,'packageName':_0x296e91,'stableVersion':_0x2f9b60};try{const _0x59a1c1=JSON[_0x174af0(0x192)](a359_0x3b1c8e[_0x174af0(0x17f)](_0x39a96d,'utf8')),_0x919e7=_0x59a1c1['dependencies']||{},_0xf261fe=_0x59a1c1[_0x174af0(0x179)]||{},_0x44676e=_0x919e7[_0x296e91]||_0xf261fe[_0x296e91];if(!_0x44676e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x584c20,'packageName':_0x296e91,'stableVersion':_0x2f9b60};let _0x55358c=getInstalledVersion(_0x5cb2d8,_0x296e91);!_0x55358c&&(_0x55358c=_0x44676e);if(isNonNumericVersion(_0x44676e))return{'installed':!![],'version':_0x55358c,'needsUpgrade':![],'minVersion':_0x584c20,'packageName':_0x296e91,'stableVersion':_0x2f9b60};const _0x3bee63=a359_0xd9393a[_0x174af0(0x177)](_0x55358c),_0x4eb625=a359_0xd9393a[_0x174af0(0x177)](_0x584c20),_0x7483aa=_0x3bee63&&_0x4eb625?a359_0xd9393a['lt'](_0x3bee63,_0x4eb625):![];return{'installed':!![],'version':_0x55358c,'needsUpgrade':_0x7483aa,'minVersion':_0x584c20,'packageName':_0x296e91,'stableVersion':_0x2f9b60};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x584c20,'packageName':_0x296e91,'stableVersion':_0x2f9b60};}}export function checkSdkVersionSync(_0x3341f7){const _0x183b9e=a359_0x4b3166,_0x5e6a8d=a359_0x58f8fa[_0x183b9e(0x198)](_0x3341f7,_0x183b9e(0x18e)),_0x466c5c=_0x183b9e(0x193);if(!a359_0x3b1c8e[_0x183b9e(0x188)](_0x5e6a8d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x466c5c,'stableVersion':null};try{const _0x50c790=JSON['parse'](a359_0x3b1c8e[_0x183b9e(0x17f)](_0x5e6a8d,_0x183b9e(0x184))),_0x591ddf=_0x50c790[_0x183b9e(0x183)]||{},_0x305eca=_0x50c790[_0x183b9e(0x179)]||{},_0x2b17d1=_0x591ddf[_0x466c5c]||_0x305eca[_0x466c5c];if(!_0x2b17d1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x466c5c,'stableVersion':null};let _0x5c6fe9=getInstalledVersion(_0x3341f7,_0x466c5c);!_0x5c6fe9&&(_0x5c6fe9=_0x2b17d1);if(isNonNumericVersion(_0x2b17d1))return{'installed':!![],'version':_0x5c6fe9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x466c5c,'stableVersion':null};const _0x11eb9b=a359_0xd9393a[_0x183b9e(0x177)](_0x5c6fe9),_0x5350bd=_0x11eb9b?a359_0xd9393a['lt'](_0x11eb9b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5c6fe9,'needsUpgrade':_0x5350bd,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x466c5c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x466c5c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2c00c7){const _0x419656=a359_0x4b3166;if(!_0x2c00c7['needsUpgrade'])return;const _0x21e171=_0x419656(0x196),_0x4ce671='\x1b[0m',_0x457fd3=_0x419656(0x191),_0xc7b78c=_0x2c00c7[_0x419656(0x17a)]||_0x419656(0x193),_0x4d44cc=_0x2c00c7[_0x419656(0x18c)]||_0x2c00c7[_0x419656(0x175)],_0x8cda79=_0x419656(0x17c)+_0xc7b78c+'@'+(_0x4d44cc||'latest');console[_0x419656(0x17e)](),console['log'](''+_0x21e171+_0x457fd3+_0x419656(0x187)+_0x4ce671),console[_0x419656(0x17e)](_0x21e171+_0x419656(0x182)+_0xc7b78c+'@'+_0x2c00c7[_0x419656(0x178)]+_0x4ce671),console[_0x419656(0x17e)](_0x21e171+_0x419656(0x197)+_0x4d44cc+_0x4ce671),console['log'](_0x21e171+_0x419656(0x173)+_0x8cda79+_0x4ce671),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32e4d7,_0x2eed3e){const _0x3d3cc6=a360_0x41e6,_0x2468d3=_0x32e4d7();while(!![]){try{const _0x4fba99=-parseInt(_0x3d3cc6(0x1cc))/0x1+-parseInt(_0x3d3cc6(0x1db))/0x2+parseInt(_0x3d3cc6(0x1e4))/0x3+parseInt(_0x3d3cc6(0x1dc))/0x4+parseInt(_0x3d3cc6(0x1da))/0x5*(-parseInt(_0x3d3cc6(0x1d6))/0x6)+-parseInt(_0x3d3cc6(0x1c3))/0x7*(-parseInt(_0x3d3cc6(0x1e3))/0x8)+parseInt(_0x3d3cc6(0x1cd))/0x9;if(_0x4fba99===_0x2eed3e)break;else _0x2468d3['push'](_0x2468d3['shift']());}catch(_0xe3003d){_0x2468d3['push'](_0x2468d3['shift']());}}}(a360_0x2a15,0x7d6fc));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a360_0x1c4fb7 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a360_0x41e6(_0x5dd8ed,_0x3763b7){_0x5dd8ed=_0x5dd8ed-0x1c1;const _0x2a1526=a360_0x2a15();let _0x41e674=_0x2a1526[_0x5dd8ed];return _0x41e674;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5410d1){const _0x4d06c0=a360_0x41e6,_0x31cf1a=_0x5410d1[_0x4d06c0(0x1d7)]||_0x4d06c0(0x1d3);return _0x4d06c0(0x1e2)+NPM_PACKAGE_NAME+'@'+_0x31cf1a;}function getCurrentCliVersion(){const _0x52ca67=a360_0x41e6;try{const _0xd257a3=fileURLToPath(import.meta.url),_0x3223cd=resolve(dirname(_0xd257a3),_0x52ca67(0x1ca)),_0x3d013d=resolve(_0x3223cd,_0x52ca67(0x1c4)),_0x3e5215=JSON['parse'](readFileSync(_0x3d013d,_0x52ca67(0x1e5)));return _0x3e5215['version']||_0x52ca67(0x1cb);}catch{return _0x52ca67(0x1cb);}}export async function checkCliVersion(){const _0x57ab3a=a360_0x41e6,_0x24f67e=getCurrentCliVersion(),_0x3fabb9=await getCliVersionPolicy(),_0xc77e47=_0x3fabb9?.[_0x57ab3a(0x1d7)]||null,_0xab02ca=_0x3fabb9?.['minimumVersion']||null;let _0x1777af=![],_0x3d4e9e=![];const _0x26574d=a360_0x1c4fb7[_0x57ab3a(0x1c8)](_0x24f67e);if(_0x26574d&&_0xc77e47)try{const _0x3c49be=a360_0x1c4fb7[_0x57ab3a(0x1c8)](_0xc77e47);if(_0x3c49be)_0x1777af=a360_0x1c4fb7['lt'](_0x26574d,_0x3c49be);}catch{}if(_0x26574d&&_0xab02ca)try{const _0x3da1b0=a360_0x1c4fb7['coerce'](_0xab02ca);if(_0x3da1b0)_0x3d4e9e=a360_0x1c4fb7['lt'](_0x26574d,_0x3da1b0);}catch{}return _0x3d4e9e&&(_0x1777af=!![]),{'currentVersion':_0x24f67e,'stableVersion':_0xc77e47,'minimumVersion':_0xab02ca,'needsUpgrade':_0x1777af,'belowMinimum':_0x3d4e9e,'isPreRelease':![],'upgradeMessage':_0x3fabb9?.['upgradeMessage'],'minimumVersionMessage':_0x3fabb9?.[_0x57ab3a(0x1e1)]};}export function printCliUpgradeWarning(_0x1863ae){const _0x1a1951=a360_0x41e6;if(!_0x1863ae['needsUpgrade']&&!_0x1863ae[_0x1a1951(0x1c5)])return;const _0x5e702e='\x1b[31m',_0x55b7d2='\x1b[33m',_0x58a1e3=_0x1a1951(0x1c6),_0x206aa4=_0x1a1951(0x1d5),_0x5c93a7=getCliUpgradeCommand(_0x1863ae);console['log'](),_0x1863ae[_0x1a1951(0x1c5)]?(console[_0x1a1951(0x1d0)](''+_0x5e702e+_0x206aa4+_0x1a1951(0x1d2)+_0x58a1e3),console[_0x1a1951(0x1d0)](_0x5e702e+_0x1a1951(0x1c2)+_0x1863ae[_0x1a1951(0x1c7)]+_0x58a1e3),_0x1863ae['minimumVersion']&&console[_0x1a1951(0x1d0)](_0x5e702e+'\x20\x20\x20Minimum\x20supported:\x20'+_0x1863ae['minimumVersion']+_0x58a1e3),_0x1863ae['stableVersion']&&_0x1863ae[_0x1a1951(0x1d7)]!==_0x1863ae[_0x1a1951(0x1d8)]&&console[_0x1a1951(0x1d0)](_0x5e702e+_0x1a1951(0x1d4)+_0x1863ae[_0x1a1951(0x1d7)]+_0x58a1e3),_0x1863ae['minimumVersionMessage']&&console['log'](_0x5e702e+_0x1a1951(0x1e0)+_0x1863ae[_0x1a1951(0x1e1)]+_0x58a1e3),console[_0x1a1951(0x1d0)](_0x5e702e+_0x1a1951(0x1c1)+_0x5c93a7+_0x58a1e3)):(console[_0x1a1951(0x1d0)](''+_0x55b7d2+_0x206aa4+_0x1a1951(0x1de)+_0x58a1e3),console['log'](_0x55b7d2+_0x1a1951(0x1c2)+_0x1863ae[_0x1a1951(0x1c7)]+_0x58a1e3),console['log'](_0x55b7d2+_0x1a1951(0x1c9)+_0x1863ae[_0x1a1951(0x1d7)]+_0x58a1e3),_0x1863ae[_0x1a1951(0x1df)]&&console[_0x1a1951(0x1d0)](_0x55b7d2+'\x20\x20\x20'+_0x1863ae[_0x1a1951(0x1df)]+_0x58a1e3),console[_0x1a1951(0x1d0)](_0x55b7d2+_0x1a1951(0x1c1)+_0x5c93a7+_0x58a1e3)),console[_0x1a1951(0x1d0)]();}function a360_0x2a15(){const _0x4ca10d=['4135672Wczwwq','252609hYpWMT','utf-8','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','7EjXhZM','package.json','belowMinimum','\x1b[0m','currentVersion','coerce','\x20\x20\x20Stable\x20version:\x20','../..','1.0.0','61571dsczLD','14487030dRDFrG','Upgrade\x20command:\x20','join','log','Minimum\x20supported:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','latest','\x20\x20\x20Recommended\x20stable:\x20','\x1b[1m','6VLSGfp','stableVersion','minimumVersion','Current\x20version:\x20','3463855eixMuR','1967006XJbovG','163204vflxyk','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','↪\x20New\x20version\x20available','upgradeMessage','\x20\x20\x20','minimumVersionMessage','npm\x20install\x20-g\x20'];a360_0x2a15=function(){return _0x4ca10d;};return a360_0x2a15();}export function assertCliVersionSupported(_0xab609b){const _0x4acf06=a360_0x41e6;if(!_0xab609b[_0x4acf06(0x1c5)])return;const _0x40256e=[_0xab609b['minimumVersionMessage'],_0x4acf06(0x1d9)+_0xab609b[_0x4acf06(0x1c7)],_0xab609b[_0x4acf06(0x1d8)]?_0x4acf06(0x1d1)+_0xab609b[_0x4acf06(0x1d8)]:null,_0x4acf06(0x1ce)+getCliUpgradeCommand(_0xab609b)]['filter'](Boolean)[_0x4acf06(0x1cf)]('\x0a');throw CliErrors['validation'](_0x4acf06(0x1dd),_0x40256e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c0cbc,_0x34d0a8){const _0x563d67=a361_0x17c9,_0x5e0fe2=_0x2c0cbc();while(!![]){try{const _0xdc48eb=parseInt(_0x563d67(0x1cd))/0x1+parseInt(_0x563d67(0x1cb))/0x2+parseInt(_0x563d67(0x1bf))/0x3*(-parseInt(_0x563d67(0x1c9))/0x4)+-parseInt(_0x563d67(0x1d7))/0x5+parseInt(_0x563d67(0x1c7))/0x6+parseInt(_0x563d67(0x1d6))/0x7+parseInt(_0x563d67(0x1cc))/0x8*(-parseInt(_0x563d67(0x1c1))/0x9);if(_0xdc48eb===_0x34d0a8)break;else _0x5e0fe2['push'](_0x5e0fe2['shift']());}catch(_0x3a6e3f){_0x5e0fe2['push'](_0x5e0fe2['shift']());}}}(a361_0x4ba0,0x20ce4));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a361_0x21750 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x5954cf){const _0x30bf47=a361_0x17c9,_0x1c3eae=a361_0x21750[_0x30bf47(0x1d9)](_0x5954cf);return _0x1c3eae?a361_0x21750[_0x30bf47(0x1c2)](_0x1c3eae)?.[0x0]===_0x30bf47(0x1c8):![];}export function resolveProjectTemplateDescriptor(_0x2f8d02,_0x4a8222){const _0x5a7ce4=a361_0x17c9;if(isBetaCliVersion(_0x4a8222))return _0x2f8d02['beta']?.[_0x5a7ce4(0x1d3)]??_0x2f8d02[_0x5a7ce4(0x1d3)];return _0x2f8d02[_0x5a7ce4(0x1d3)];}function pickString(_0x104507){const _0x1a6c60=a361_0x17c9;return typeof _0x104507===_0x1a6c60(0x1ca)&&_0x104507['trim']()[_0x1a6c60(0x1c6)]>0x0?_0x104507['trim']():null;}function a361_0x17c9(_0x19456a,_0x1b9de2){_0x19456a=_0x19456a-0x1bf;const _0x4ba0fe=a361_0x4ba0();let _0x17c9ad=_0x4ba0fe[_0x19456a];return _0x17c9ad;}function a361_0x4ba0(){const _0x7e9e2e=['154778mNXQFK','41872rfZyYE','28345UyBfKZ','minVersion','abort','minimumVersionMessage','json','recommendedVersion','projectTemplate','minimumVersion','signal','1648199pWzYXt','416280sdjrDD','stableVersion','valid','45OnXxeH','object','387AGgMGa','prerelease','latestVersion','upgradeMessage','cli','length','1509354zAUNeg','beta','40016BQHGgn','string'];a361_0x4ba0=function(){return _0x7e9e2e;};return a361_0x4ba0();}function normalizeCliVersionPolicy(_0x4fd6f4){const _0x473c64=a361_0x17c9;if(!_0x4fd6f4||typeof _0x4fd6f4!==_0x473c64(0x1c0))return null;const _0x493703=_0x4fd6f4,_0x12bdfd=_0x493703[_0x473c64(0x1c5)]&&typeof _0x493703[_0x473c64(0x1c5)]===_0x473c64(0x1c0)?_0x493703[_0x473c64(0x1c5)]:_0x493703,_0x3fe511=pickString(_0x12bdfd[_0x473c64(0x1d8)])||pickString(_0x12bdfd[_0x473c64(0x1c3)])||pickString(_0x12bdfd[_0x473c64(0x1d2)]),_0x5b6a84=pickString(_0x12bdfd[_0x473c64(0x1d4)])||pickString(_0x12bdfd[_0x473c64(0x1ce)]);if(!_0x3fe511&&!_0x5b6a84)return null;return{'stableVersion':_0x3fe511,'minimumVersion':_0x5b6a84,'upgradeMessage':pickString(_0x12bdfd[_0x473c64(0x1c4)])||undefined,'minimumVersionMessage':pickString(_0x12bdfd[_0x473c64(0x1d0)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x20335d){const _0x49abc1=a361_0x17c9,_0x1cef7f=new AbortController(),_0x509d1e=setTimeout(()=>_0x1cef7f[_0x49abc1(0x1cf)](),FETCH_TIMEOUT_MS);try{const _0x52e02c=await fetch(_0x20335d,{'headers':{'Accept':'application/json'},'signal':_0x1cef7f[_0x49abc1(0x1d5)]});if(!_0x52e02c['ok'])return null;const _0x348a65=await _0x52e02c[_0x49abc1(0x1d1)]();return _0x348a65&&typeof _0x348a65===_0x49abc1(0x1c0)?_0x348a65:null;}catch{return null;}finally{clearTimeout(_0x509d1e);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0xc94f91=await getRabetbaseCdnConfig();return _0xc94f91?{'config':_0xc94f91,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x8b9060=Date['now']();if(hasCachedConfig){const _0x4b1c7e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x8b9060-cacheTime<_0x4b1c7e)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x8b9060,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a362_0x15d49e=a362_0x3f4d;(function(_0x497911,_0x1b0fe4){const _0x31f213=a362_0x3f4d,_0x213741=_0x497911();while(!![]){try{const _0x55d914=-parseInt(_0x31f213(0x168))/0x1+-parseInt(_0x31f213(0x162))/0x2*(-parseInt(_0x31f213(0x161))/0x3)+-parseInt(_0x31f213(0x163))/0x4+-parseInt(_0x31f213(0x166))/0x5+parseInt(_0x31f213(0x164))/0x6+parseInt(_0x31f213(0x160))/0x7+-parseInt(_0x31f213(0x15f))/0x8*(-parseInt(_0x31f213(0x167))/0x9);if(_0x55d914===_0x1b0fe4)break;else _0x213741['push'](_0x213741['shift']());}catch(_0x2e4b98){_0x213741['push'](_0x213741['shift']());}}}(a362_0xc802,0xa89c3));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a362_0x3c8b7f,getMultiAppConfigs as a362_0x25bcf7,getTemplateBaseUrl as a362_0x1a706e}from'../context.js';function a362_0xc802(){const _0x2982d6=['2649320qfvZBz','3154974NZzxGv','project','987970aLFTxh','9DZUmUP','257117bceoaK','env','2372824VZVqOR','669746ihfhLE','6NgQxBG','889558GPFdOV'];a362_0xc802=function(){return _0x2982d6;};return a362_0xc802();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4ca28b){const _0x51147f=a362_0x3f4d,_0x24411e=readRawConfig(_0x4ca28b);return _0x24411e[_0x51147f(0x15e)]&&typeof _0x24411e[_0x51147f(0x15e)]==='string'&&initEnv(_0x24411e['env']),_0x24411e;}function a362_0x3f4d(_0x4c03a0,_0x4d280d){_0x4c03a0=_0x4c03a0-0x15e;const _0xc802de=a362_0xc802();let _0x3f4d18=_0xc802de[_0x4c03a0];return _0x3f4d18;}export function getConfigAppCode(){return a362_0x3c8b7f();}export function getMultiAppConfigs(_0x293267=a362_0x15d49e(0x165)){return a362_0x25bcf7(_0x293267);}export function getTemplateBaseUrl(){return a362_0x1a706e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a363_0x7a3a(){const _0x130816=['4668545uVYhIp','18DaYxGw','isFinite','3299416nbzWrj','52329LaitNz','trim','8RlzaPW','2634eIvLJi','1081629zIIFpc','7882vCHpBL','number','10615187tdBTPa','12qbNpjw','28MZmweR','3066520ZPiDRY'];a363_0x7a3a=function(){return _0x130816;};return a363_0x7a3a();}function a363_0xc48a(_0x12c989,_0x1ee154){_0x12c989=_0x12c989-0x9d;const _0x7a3a7f=a363_0x7a3a();let _0xc48a26=_0x7a3a7f[_0x12c989];return _0xc48a26;}(function(_0x585b86,_0x3c25e4){const _0x22f3bb=a363_0xc48a,_0x41dedb=_0x585b86();while(!![]){try{const _0x2ea68d=parseInt(_0x22f3bb(0xa3))/0x1*(parseInt(_0x22f3bb(0x9d))/0x2)+-parseInt(_0x22f3bb(0xa7))/0x3*(-parseInt(_0x22f3bb(0xa5))/0x4)+-parseInt(_0x22f3bb(0x9f))/0x5+parseInt(_0x22f3bb(0xa6))/0x6*(-parseInt(_0x22f3bb(0xa8))/0x7)+-parseInt(_0x22f3bb(0xa2))/0x8*(parseInt(_0x22f3bb(0xa0))/0x9)+parseInt(_0x22f3bb(0x9e))/0xa+-parseInt(_0x22f3bb(0xaa))/0xb*(-parseInt(_0x22f3bb(0xab))/0xc);if(_0x2ea68d===_0x3c25e4)break;else _0x41dedb['push'](_0x41dedb['shift']());}catch(_0x4f84cb){_0x41dedb['push'](_0x41dedb['shift']());}}}(a363_0x7a3a,0x735a4));function toFiniteNumber(_0x11a9d4){const _0x4f791a=a363_0xc48a;if(typeof _0x11a9d4===_0x4f791a(0xa9)&&Number[_0x4f791a(0xa1)](_0x11a9d4))return _0x11a9d4;if(typeof _0x11a9d4==='string'){const _0x119110=_0x11a9d4[_0x4f791a(0xa4)]();if(!_0x119110)return undefined;const _0x3e5a53=Number(_0x119110);if(Number[_0x4f791a(0xa1)](_0x3e5a53))return _0x3e5a53;}return undefined;}export function normalizeEntityWithIdResponse(_0x2f8ba3){const _0x28d986=toFiniteNumber(_0x2f8ba3);if(_0x28d986!==undefined)return{'id':_0x28d986,'entity':{'id':_0x28d986}};if(!_0x2f8ba3||typeof _0x2f8ba3!=='object')return{'id':undefined,'entity':{}};const _0x45dee1={..._0x2f8ba3},_0x53e7c3=toFiniteNumber(_0x45dee1['id']);return _0x53e7c3!==undefined&&(_0x45dee1['id']=_0x53e7c3),{'id':_0x53e7c3,'entity':_0x45dee1};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a364_0x4018(_0x5d18e0,_0xc1750f){_0x5d18e0=_0x5d18e0-0x15b;const _0x5302a8=a364_0x5302();let _0x40182e=_0x5302a8[_0x5d18e0];return _0x40182e;}(function(_0x26cd97,_0xf15898){const _0x18f524=a364_0x4018,_0x15cf94=_0x26cd97();while(!![]){try{const _0x508b28=parseInt(_0x18f524(0x15c))/0x1+-parseInt(_0x18f524(0x15f))/0x2*(-parseInt(_0x18f524(0x160))/0x3)+-parseInt(_0x18f524(0x163))/0x4+parseInt(_0x18f524(0x164))/0x5*(parseInt(_0x18f524(0x161))/0x6)+-parseInt(_0x18f524(0x162))/0x7+-parseInt(_0x18f524(0x165))/0x8*(parseInt(_0x18f524(0x15e))/0x9)+parseInt(_0x18f524(0x15d))/0xa*(-parseInt(_0x18f524(0x15b))/0xb);if(_0x508b28===_0xf15898)break;else _0x15cf94['push'](_0x15cf94['shift']());}catch(_0xeb37e6){_0x15cf94['push'](_0x15cf94['shift']());}}}(a364_0x5302,0x2cddb));function a364_0x5302(){const _0x28bfab=['776838dlVliI','915698tfKBSa','883152ywSbIp','10RjbyCY','8mWBhah','37774ZKgBmk','331933xzywZZ','590QXJluX','782982EayWff','3494xCTOdA','402NHbNOT'];a364_0x5302=function(){return _0x28bfab;};return a364_0x5302();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0xa8f8c0,_0x28056a){const _0x4f9459=statSync(_0xa8f8c0);if(_0x4f9459['isDirectory']()){!existsSync(_0x28056a)&&mkdirSync(_0x28056a,{'recursive':!![]});const _0x299aba=readdirSync(_0xa8f8c0);for(const _0x398aad of _0x299aba){await copyDir(join(_0xa8f8c0,_0x398aad),join(_0x28056a,_0x398aad));}}else copyFileSync(_0xa8f8c0,_0x28056a);}export function ensureDir(_0x2dd27c){!existsSync(_0x2dd27c)&&mkdirSync(_0x2dd27c,{'recursive':!![]});}export function pathExists(_0x590b6d){return existsSync(_0x590b6d);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a365_0x588f88=a365_0x4f3a;function a365_0x8049(){const _0x52def6=['application/json','utf-8','lastUpdated','.lovrabet/skill/guides','status','trimEnd','132739TcLifI','28760RlLMpH','guides','1872480jjzwut','1225168PqKcJE','3345618ahuYyZ','path','title','cache','length','replace','content','2151CgJiFg','81519mdBPAS','.md','skillTemplate','CDN\x20request\x20failed:\x20','8kTZfgz','/skills/guides.json','keys','.lovrabet','join','map','7HQRykN','push','extendContent','CDN\x20data\x20is\x20missing\x20skillTemplate','521212QbPkFX','entries','json'];a365_0x8049=function(){return _0x52def6;};return a365_0x8049();}(function(_0x492a01,_0x384e14){const _0x4a93d1=a365_0x4f3a,_0x44788c=_0x492a01();while(!![]){try{const _0x1faca2=parseInt(_0x4a93d1(0x16b))/0x1*(parseInt(_0x4a93d1(0x17c))/0x2)+-parseInt(_0x4a93d1(0x178))/0x3+-parseInt(_0x4a93d1(0x186))/0x4+-parseInt(_0x4a93d1(0x16e))/0x5+parseInt(_0x4a93d1(0x170))/0x6*(-parseInt(_0x4a93d1(0x182))/0x7)+parseInt(_0x4a93d1(0x16f))/0x8+-parseInt(_0x4a93d1(0x177))/0x9*(-parseInt(_0x4a93d1(0x16c))/0xa);if(_0x1faca2===_0x384e14)break;else _0x44788c['push'](_0x44788c['shift']());}catch(_0x11612f){_0x44788c['push'](_0x44788c['shift']());}}}(a365_0x8049,0x44d23));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4cc028=a365_0x4f3a,_0x3718a9=getTemplateBaseUrl();return _0x3718a9+_0x4cc028(0x17d);}const CACHE_DIR=join(homedir(),a365_0x588f88(0x17f),a365_0x588f88(0x173));export async function fetchGuidesFromCDN(){const _0x579949=a365_0x588f88,_0x43667a=getGuidesCdnUrl(),_0x222191=await fetch(_0x43667a,{'headers':{'Accept':_0x579949(0x165)}});if(!_0x222191['ok'])throw new Error(_0x579949(0x17b)+_0x222191[_0x579949(0x169)]+'\x20'+_0x222191['statusText']);const _0x751785=await _0x222191[_0x579949(0x164)]();if(!_0x751785['guides']||typeof _0x751785[_0x579949(0x16d)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x751785;}export function writeGuidesToProject(_0x46c142,_0x343206,_0x594e94=a365_0x588f88(0x168),_0x49a753){const _0x493978=a365_0x588f88,_0x1fb2ef=join(_0x343206,_0x594e94);mkdirSync(_0x1fb2ef,{'recursive':!![]});for(const [_0x3f5402,_0x294a7f]of Object[_0x493978(0x187)](_0x46c142['guides'])){let _0x466b36=_0x294a7f[_0x493978(0x176)];_0x294a7f[_0x493978(0x167)]&&(_0x466b36=appendUpdateTime(_0x466b36,_0x294a7f[_0x493978(0x167)])),writeFileSync(join(_0x1fb2ef,_0x3f5402+_0x493978(0x179)),_0x466b36,_0x493978(0x166));}}export function appendUpdateTime(_0x12be5d,_0x2821f3){const _0x3a2df0=a365_0x588f88;return _0x12be5d=_0x12be5d[_0x3a2df0(0x175)](/\n*>更新时间:.*$/m,''),_0x12be5d[_0x3a2df0(0x16a)]()+('\x0a\x0a>更新时间:'+_0x2821f3);}function a365_0x4f3a(_0x2a443f,_0x4a45cf){_0x2a443f=_0x2a443f-0x164;const _0x8049ec=a365_0x8049();let _0x4f3a47=_0x8049ec[_0x2a443f];return _0x4f3a47;}export function getSkillTemplate(_0x3aca72){const _0x536d22=a365_0x588f88;return _0x3aca72[_0x536d22(0x17a)]?.['content']||'';}export function appendExtendContents(_0x40758d,_0x165741,_0x3f3dfd){const _0x585360=a365_0x588f88,_0x509066=[];for(const [,_0x39d3fa]of Object['entries'](_0x165741['guides'])){_0x39d3fa['extendContent']&&_0x509066[_0x585360(0x183)](_0x39d3fa[_0x585360(0x184)][_0x585360(0x16a)]());}if(_0x509066[_0x585360(0x174)]===0x0)return _0x40758d;return _0x40758d['trimEnd']()+'\x0a\x0a'+_0x509066[_0x585360(0x180)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x59241e,_0x57d7ea,_0x38657d){const _0x485544=a365_0x588f88,_0x47583e=getSkillTemplate(_0x59241e);if(!_0x47583e)throw new Error(_0x485544(0x185));const _0x2a7f8b=dirname(_0x57d7ea);mkdirSync(_0x2a7f8b,{'recursive':!![]});let _0x466d95=_0x47583e['replace'](/\{\{IDE_NAME\}\}/g,_0x38657d);_0x466d95=appendExtendContents(_0x466d95,_0x59241e),_0x59241e[_0x485544(0x17a)][_0x485544(0x167)]&&(_0x466d95=appendUpdateTime(_0x466d95,_0x59241e['skillTemplate']['lastUpdated'])),writeFileSync(_0x57d7ea,_0x466d95,'utf-8');}export async function installGuides(_0x3419bf){const _0x1977e3=a365_0x588f88,_0x2366f8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2366f8,_0x3419bf),Object[_0x1977e3(0x17e)](_0x2366f8[_0x1977e3(0x16d)])[_0x1977e3(0x174)];}export function getGuidesSummary(_0x50b529){const _0x47224c=a365_0x588f88;return Object[_0x47224c(0x187)](_0x50b529[_0x47224c(0x16d)])[_0x47224c(0x181)](([_0x222dcf,_0x32edf7])=>({'key':_0x222dcf,'title':_0x32edf7[_0x47224c(0x172)],'path':_0x32edf7[_0x47224c(0x171)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11c012,_0x6c750a){const _0x28be92=a366_0x233c,_0x41baa1=_0x11c012();while(!![]){try{const _0x4317a1=-parseInt(_0x28be92(0x117))/0x1+-parseInt(_0x28be92(0x114))/0x2+-parseInt(_0x28be92(0x10b))/0x3*(-parseInt(_0x28be92(0x110))/0x4)+-parseInt(_0x28be92(0x10c))/0x5+parseInt(_0x28be92(0x113))/0x6*(-parseInt(_0x28be92(0x112))/0x7)+parseInt(_0x28be92(0x11f))/0x8+parseInt(_0x28be92(0x11d))/0x9;if(_0x4317a1===_0x6c750a)break;else _0x41baa1['push'](_0x41baa1['shift']());}catch(_0x1409ac){_0x41baa1['push'](_0x41baa1['shift']());}}}(a366_0x2a56,0x42328));function a366_0x2a56(){const _0x229a6b=['signal','34647AuWijV','1140790XtJgox','\x20in\x20','ENOTFOUND','status','148jEZgsv','get','510958dkSJPn','36bfSKjs','679268AdRawU','includes','headers','277569UYLsPV','ECONNRESET','application/json','TypeError','message','log','7630002shIjDO','url','2235024fVLqkh','name','*\x20Request\x20failed;\x20retry\x20','text','AbortError','content-type','abort'];a366_0x2a56=function(){return _0x229a6b;};return a366_0x2a56();}export async function httpRequest(_0x3498a1,_0x50c5ec={}){const _0x4f43bf=a366_0x233c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x50c5ec;let _0x40bb6f=null;for(let _0x82c141=0x0;_0x82c141<=retries;_0x82c141++){try{const _0xd648fa=new AbortController(),_0x25fab8=setTimeout(()=>_0xd648fa[_0x4f43bf(0x125)](),timeout),_0x2fbe7e=await fetch(_0x3498a1,{'headers':headers,'signal':_0xd648fa[_0x4f43bf(0x126)]});clearTimeout(_0x25fab8);let _0x45859f;const _0x46c829=_0x2fbe7e[_0x4f43bf(0x116)][_0x4f43bf(0x111)](_0x4f43bf(0x124));return _0x46c829?.['includes'](_0x4f43bf(0x119))?_0x45859f=await _0x2fbe7e['json']():_0x45859f=await _0x2fbe7e[_0x4f43bf(0x122)](),{'ok':_0x2fbe7e['ok'],'status':_0x2fbe7e[_0x4f43bf(0x10f)],'statusText':_0x2fbe7e['statusText'],'data':_0x45859f,'headers':_0x2fbe7e[_0x4f43bf(0x116)],'url':_0x2fbe7e[_0x4f43bf(0x11e)],'text':()=>_0x2fbe7e[_0x4f43bf(0x122)]()};}catch(_0x373339){_0x40bb6f=_0x373339 instanceof Error?_0x373339:new Error(String(_0x373339));if(_0x82c141===retries)break;if(shouldRetry(_0x373339)){console[_0x4f43bf(0x11c)](_0x4f43bf(0x121)+(_0x82c141+0x1)+_0x4f43bf(0x10d)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x40bb6f||new Error('Request\x20failed');}function a366_0x233c(_0x4ae206,_0x437d66){_0x4ae206=_0x4ae206-0x10b;const _0x2a5684=a366_0x2a56();let _0x233c5d=_0x2a5684[_0x4ae206];return _0x233c5d;}function shouldRetry(_0x385473){const _0x3477bc=a366_0x233c;if(_0x385473 instanceof Error){if(_0x385473[_0x3477bc(0x120)]===_0x3477bc(0x123))return![];if(_0x385473[_0x3477bc(0x120)]===_0x3477bc(0x11a)&&_0x385473[_0x3477bc(0x11b)][_0x3477bc(0x115)]('fetch'))return!![];if(_0x385473['message'][_0x3477bc(0x115)](_0x3477bc(0x118)))return!![];if(_0x385473['message'][_0x3477bc(0x115)](_0x3477bc(0x10e)))return![];}return![];}function sleep(_0x2811e2){return new Promise(_0x123ce5=>setTimeout(_0x123ce5,_0x2811e2));}export function validateUrl(_0x586cba){try{return new URL(_0x586cba),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53783c,_0x3ded44){const _0x47889c=a367_0x10e6,_0x16cfcc=_0x53783c();while(!![]){try{const _0x338200=-parseInt(_0x47889c(0x116))/0x1+parseInt(_0x47889c(0x10a))/0x2+-parseInt(_0x47889c(0x110))/0x3*(-parseInt(_0x47889c(0x10b))/0x4)+-parseInt(_0x47889c(0x10d))/0x5*(-parseInt(_0x47889c(0x10f))/0x6)+parseInt(_0x47889c(0x114))/0x7+parseInt(_0x47889c(0x109))/0x8*(-parseInt(_0x47889c(0x111))/0x9)+-parseInt(_0x47889c(0x112))/0xa*(parseInt(_0x47889c(0x113))/0xb);if(_0x338200===_0x3ded44)break;else _0x16cfcc['push'](_0x16cfcc['shift']());}catch(_0xafdcbc){_0x16cfcc['push'](_0x16cfcc['shift']());}}}(a367_0x12f9,0xd35a8));function env(_0x734f9b){return process.env[`RABETBASE_${_0x734f9b}`]||process.env[`LOVRABET_${_0x734f9b}`]||undefined;}function a367_0x10e6(_0x2bf38c,_0x349485){_0x2bf38c=_0x2bf38c-0x107;const _0x12f9cf=a367_0x12f9();let _0x10e68e=_0x12f9cf[_0x2bf38c];return _0x10e68e;}export function isNonInteractive(_0x23a7e1){const _0x168884=a367_0x10e6;return!!(_0x23a7e1[_0x168884(0x115)]||_0x23a7e1['ci']||env('CI')===_0x168884(0x10e)||process.env.CI===_0x168884(0x10e)||!process[_0x168884(0x108)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x299025=a367_0x10e6;if(!process[_0x299025(0x107)]['isTTY'])return![];try{const _0x4d2154=process[_0x299025(0x107)][_0x299025(0x10c)];return process['stdin']['setRawMode'](!![]),process[_0x299025(0x107)][_0x299025(0x117)](_0x4d2154??![]),!![];}catch{return![];}}function a367_0x12f9(){const _0x408f33=['29416PFhcBk','1501948OqChWg','164qwrCzY','isRaw','10twXCLh','true','2578374Rkoxdj','97995DJXShS','3501ZUOSAp','560440YbzNCj','11WxnWFm','3207232txJXmM','nonInteractive','1055772qBHDwG','setRawMode','stdin','stdout'];a367_0x12f9=function(){return _0x408f33;};return a367_0x12f9();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a368_0xeb3d7=a368_0x283d;(function(_0x53becf,_0x3a70d3){const _0xcf086f=a368_0x283d,_0xd2e88c=_0x53becf();while(!![]){try{const _0x239db5=-parseInt(_0xcf086f(0xdc))/0x1+-parseInt(_0xcf086f(0xd6))/0x2+parseInt(_0xcf086f(0xe5))/0x3*(-parseInt(_0xcf086f(0xf9))/0x4)+-parseInt(_0xcf086f(0xe9))/0x5+parseInt(_0xcf086f(0xdd))/0x6*(parseInt(_0xcf086f(0xd1))/0x7)+parseInt(_0xcf086f(0xd9))/0x8*(-parseInt(_0xcf086f(0xf6))/0x9)+parseInt(_0xcf086f(0xd2))/0xa;if(_0x239db5===_0x3a70d3)break;else _0xd2e88c['push'](_0xd2e88c['shift']());}catch(_0x695bb9){_0xd2e88c['push'](_0xd2e88c['shift']());}}}(a368_0x388a,0x46e35));import a368_0x1df386 from'winston';import a368_0x208ad1 from'node:fs';function a368_0x283d(_0x5b1621,_0xfc6c7c){_0x5b1621=_0x5b1621-0xcd;const _0x388a83=a368_0x388a();let _0x283dd1=_0x388a83[_0x5b1621];return _0x283dd1;}import a368_0x4ae000 from'node:path';function a368_0x388a(){const _0x4a265e=['clear','details','385coIXYh','11335900ejdPKo','existsSync','now','log','483294dJxxjR','winstonLogger','yellow','368HprbQP','command','logFilePath','84077XFIkWD','17526wZcnSk','split','join','Failed\x20to\x20read\x20logs:','.lovrabet.log','createLogger','combine','initWinstonLogger','3WtRgST','utf8','blue','setLogPath','1140280ZdXIYI','readFileSync','timestamp','red','filter','warn','unknown','format','setRawCommand','mkdirSync','message','writeFileSync','currentRawCommand','58329SxFpnM','success','transports','607928QgRcxd','Starting:\x20','Failed:\x20','info','stringify','error','map','printf','addColors'];a368_0x388a=function(){return _0x4a265e;};return a368_0x388a();}class Logger{[a368_0xeb3d7(0xd7)];[a368_0xeb3d7(0xdb)];[a368_0xeb3d7(0xf5)]='';constructor(){const _0x1737e2=a368_0xeb3d7;this[_0x1737e2(0xdb)]='';}[a368_0xeb3d7(0xf1)](_0x2fae72){const _0x1f46ea=a368_0xeb3d7;this[_0x1f46ea(0xf5)]=_0x2fae72;}[a368_0xeb3d7(0xe4)](){const _0x38b7b6=a368_0xeb3d7,_0x49a682=a368_0x4ae000['dirname'](this['logFilePath']);!a368_0x208ad1['existsSync'](_0x49a682)&&a368_0x208ad1[_0x38b7b6(0xf2)](_0x49a682,{'recursive':!![]});const _0x1a4c40=a368_0x1df386[_0x38b7b6(0xf0)][_0x38b7b6(0xe3)](a368_0x1df386[_0x38b7b6(0xf0)][_0x38b7b6(0xeb)](),a368_0x1df386[_0x38b7b6(0xf0)]['errors']({'stack':!![]}),a368_0x1df386[_0x38b7b6(0xf0)][_0x38b7b6(0xcd)](_0x33752d=>{const _0x45074d=_0x38b7b6,_0x27195e={'timestamp':_0x33752d[_0x45074d(0xeb)]||new Date()['toISOString'](),'level':_0x33752d['level']||_0x45074d(0xfc),'command':_0x33752d[_0x45074d(0xda)]||_0x45074d(0xef),'rawCommand':_0x33752d['rawCommand']||this[_0x45074d(0xf5)]||undefined,'message':_0x33752d[_0x45074d(0xf3)]||'','duration':_0x33752d['duration']||undefined,'details':_0x33752d[_0x45074d(0xd0)]||undefined};return JSON[_0x45074d(0xfd)](_0x27195e);}));this[_0x38b7b6(0xd7)]=a368_0x1df386[_0x38b7b6(0xe2)]({'level':_0x38b7b6(0xfc),'format':_0x1a4c40,'transports':[new a368_0x1df386[(_0x38b7b6(0xf8))]['File']({'filename':this[_0x38b7b6(0xdb)],'level':_0x38b7b6(0xfc)})],'silent':![]}),a368_0x1df386[_0x38b7b6(0xce)]({'success':'green','error':_0x38b7b6(0xec),'warn':_0x38b7b6(0xd8),'info':_0x38b7b6(0xe7)});}[a368_0xeb3d7(0xe8)](_0x4a150f){const _0x3b5d60=a368_0xeb3d7;this[_0x3b5d60(0xdb)]=a368_0x4ae000[_0x3b5d60(0xdf)](_0x4a150f,_0x3b5d60(0xe1)),this[_0x3b5d60(0xd7)]&&this[_0x3b5d60(0xd7)][_0x3b5d60(0xcf)](),this[_0x3b5d60(0xe4)]();}[a368_0xeb3d7(0xfc)](_0x54f51b,_0x4da1d1,_0x23718b){const _0x4cce75=a368_0xeb3d7;if(!this[_0x4cce75(0xdb)]||!this['winstonLogger'])return;this[_0x4cce75(0xd7)][_0x4cce75(0xfc)](_0x4da1d1,{'command':_0x54f51b,'details':_0x23718b});}[a368_0xeb3d7(0xf7)](_0x305aa8,_0x5c3aa9,_0x55f1b9,_0x38acc4){const _0x334f16=a368_0xeb3d7;if(!this['logFilePath']||!this[_0x334f16(0xd7)])return;this[_0x334f16(0xd7)][_0x334f16(0xd5)](_0x334f16(0xfc),_0x5c3aa9,{'level':_0x334f16(0xf7),'command':_0x305aa8,'duration':_0x55f1b9,'details':_0x38acc4});}['error'](_0x4f50df,_0x5a019a,_0x306998){const _0x9146ed=a368_0xeb3d7;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x9146ed(0xd7)][_0x9146ed(0xfe)](_0x5a019a,{'command':_0x4f50df,'details':_0x306998});}[a368_0xeb3d7(0xee)](_0xc0ace0,_0x35cccd,_0x2ee752){const _0x25045a=a368_0xeb3d7;if(!this[_0x25045a(0xdb)]||!this['winstonLogger'])return;this[_0x25045a(0xd7)][_0x25045a(0xee)](_0x35cccd,{'command':_0xc0ace0,'details':_0x2ee752});}async['logTask'](_0x33c26a,_0x534cbf,_0x1aa7b5){const _0x2bc3d8=a368_0xeb3d7,_0x41b785=Date['now']();this[_0x2bc3d8(0xfc)](_0x33c26a,_0x2bc3d8(0xfa)+_0x534cbf);try{const _0x35cb85=await _0x1aa7b5(),_0x177031=Date[_0x2bc3d8(0xd4)]()-_0x41b785;return this[_0x2bc3d8(0xf7)](_0x33c26a,'Completed:\x20'+_0x534cbf,_0x177031),_0x35cb85;}catch(_0x5c7c61){const _0xb59a7=Date[_0x2bc3d8(0xd4)]()-_0x41b785;this['error'](_0x33c26a,_0x2bc3d8(0xfb)+_0x534cbf,{'error':_0x5c7c61 instanceof Error?_0x5c7c61[_0x2bc3d8(0xf3)]:String(_0x5c7c61),'duration':_0xb59a7});throw _0x5c7c61;}}['readLogs'](){const _0x8864d1=a368_0xeb3d7;try{if(!a368_0x208ad1[_0x8864d1(0xd3)](this[_0x8864d1(0xdb)]))return[];const _0x376c68=a368_0x208ad1[_0x8864d1(0xea)](this['logFilePath'],'utf8');return _0x376c68[_0x8864d1(0xde)]('\x0a')[_0x8864d1(0xed)](_0x4627b3=>_0x4627b3['trim']())[_0x8864d1(0xff)](_0x2059fa=>JSON['parse'](_0x2059fa));}catch(_0x21fcbb){return console[_0x8864d1(0xee)](_0x8864d1(0xe0),_0x21fcbb),[];}}['clearLogs'](){const _0x97130a=a368_0xeb3d7;try{a368_0x208ad1['existsSync'](this['logFilePath'])&&a368_0x208ad1[_0x97130a(0xf4)](this[_0x97130a(0xdb)],'',_0x97130a(0xe6));}catch(_0x39e4c9){console[_0x97130a(0xee)]('Failed\x20to\x20clear\x20logs:',_0x39e4c9);}}['getWinstonInstance'](){const _0x4d09ac=a368_0xeb3d7;return this[_0x4d09ac(0xd7)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ef00f,_0x5eab12){const _0x4573f3=a369_0x3267,_0x3ff793=_0x5ef00f();while(!![]){try{const _0x309c29=-parseInt(_0x4573f3(0x11d))/0x1*(-parseInt(_0x4573f3(0x119))/0x2)+-parseInt(_0x4573f3(0x114))/0x3*(parseInt(_0x4573f3(0x111))/0x4)+parseInt(_0x4573f3(0x11b))/0x5+parseInt(_0x4573f3(0x113))/0x6*(parseInt(_0x4573f3(0x112))/0x7)+-parseInt(_0x4573f3(0x10f))/0x8*(parseInt(_0x4573f3(0x11f))/0x9)+parseInt(_0x4573f3(0x11a))/0xa+-parseInt(_0x4573f3(0x117))/0xb*(-parseInt(_0x4573f3(0x11e))/0xc);if(_0x309c29===_0x5eab12)break;else _0x3ff793['push'](_0x3ff793['shift']());}catch(_0x2b51d6){_0x3ff793['push'](_0x3ff793['shift']());}}}(a369_0x483c,0xa62e1));function a369_0x3267(_0x22c9d6,_0x1b472c){_0x22c9d6=_0x22c9d6-0x10f;const _0x483c3e=a369_0x483c();let _0x3267de=_0x483c3e[_0x22c9d6];return _0x3267de;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3806de){const _0x11d92b=a369_0x3267;if(!_0x3806de)return undefined;let _0x2d0122;try{_0x2d0122=JSON[_0x11d92b(0x110)](_0x3806de);}catch{throw CliErrors[_0x11d92b(0x118)](_0x11d92b(0x116)+_0x3806de);}if(!_0x2d0122||typeof _0x2d0122!==_0x11d92b(0x115)||Array[_0x11d92b(0x120)](_0x2d0122))throw CliErrors[_0x11d92b(0x118)](_0x11d92b(0x11c),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2d0122;}function a369_0x483c(){const _0x3fdb1e=['214ScOCAi','7093820wxdLMO','215340jVKzDb','--params\x20must\x20be\x20a\x20JSON\x20object','4481soVAyb','17256wnhqhj','4437YkKPzx','isArray','18296boBlXy','parse','564kWeVmB','310303KBkWgv','42EgRjtv','4530bAOAVs','object','Invalid\x20JSON\x20for\x20--params:\x20','3663qgbMQq','validation'];a369_0x483c=function(){return _0x3fdb1e;};return a369_0x483c();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a370_0x37d7c9=a370_0x330d;function a370_0x330d(_0xd6465f,_0x52085e){_0xd6465f=_0xd6465f-0xe7;const _0x1cdc72=a370_0x1cdc();let _0x330d0c=_0x1cdc72[_0xd6465f];return _0x330d0c;}(function(_0x8f978d,_0x4bb50e){const _0x4a94da=a370_0x330d,_0x5239e6=_0x8f978d();while(!![]){try{const _0x4313c2=parseInt(_0x4a94da(0xef))/0x1*(parseInt(_0x4a94da(0xf4))/0x2)+parseInt(_0x4a94da(0xeb))/0x3*(parseInt(_0x4a94da(0xed))/0x4)+parseInt(_0x4a94da(0xee))/0x5*(parseInt(_0x4a94da(0xec))/0x6)+parseInt(_0x4a94da(0xf0))/0x7*(-parseInt(_0x4a94da(0xf2))/0x8)+parseInt(_0x4a94da(0xe9))/0x9+parseInt(_0x4a94da(0xe8))/0xa*(parseInt(_0x4a94da(0xf1))/0xb)+-parseInt(_0x4a94da(0xea))/0xc;if(_0x4313c2===_0x4bb50e)break;else _0x5239e6['push'](_0x5239e6['shift']());}catch(_0x7b62e){_0x5239e6['push'](_0x5239e6['shift']());}}}(a370_0x1cdc,0xbe7a9));function a370_0x1cdc(){const _0x254636=['.cmd','126450YuhsSQ','1790460KTaKxC','20832132TWyHXl','3joyYMc','156TCOtpU','2868712btCBAB','139395MmIqrm','654233UkKKTW','21jHBxxe','550dGYfNR','1096648bmwFoD','win32','2oVWDGp'];a370_0x1cdc=function(){return _0x254636;};return a370_0x1cdc();}export const isWindows=process['platform']===a370_0x37d7c9(0xf3);export function resolveNpmBin(_0x4380e0){const _0x49607b=a370_0x37d7c9;return isWindows?_0x4380e0+_0x49607b(0xe7):_0x4380e0;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x1156a4){return new Promise(_0x379173=>setTimeout(_0x379173,_0x1156a4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a372_0x3e23d4=a372_0x2e41;(function(_0x472bed,_0x20c904){const _0x55761f=a372_0x2e41,_0x450920=_0x472bed();while(!![]){try{const _0x26e6fa=parseInt(_0x55761f(0x9d))/0x1*(-parseInt(_0x55761f(0xa1))/0x2)+parseInt(_0x55761f(0x8e))/0x3*(-parseInt(_0x55761f(0xbd))/0x4)+parseInt(_0x55761f(0x8c))/0x5*(-parseInt(_0x55761f(0x99))/0x6)+parseInt(_0x55761f(0x89))/0x7+-parseInt(_0x55761f(0xa3))/0x8*(parseInt(_0x55761f(0xa2))/0x9)+parseInt(_0x55761f(0x95))/0xa+-parseInt(_0x55761f(0x8b))/0xb*(-parseInt(_0x55761f(0x7d))/0xc);if(_0x26e6fa===_0x20c904)break;else _0x450920['push'](_0x450920['shift']());}catch(_0x3b16df){_0x450920['push'](_0x450920['shift']());}}}(a372_0x1510,0x7a617));import a372_0x4a381d from'node:fs';import a372_0x1c2576 from'node:path';function a372_0x2e41(_0x51c8de,_0x4e6310){_0x51c8de=_0x51c8de-0x7d;const _0x1510a2=a372_0x1510();let _0x2e415d=_0x1510a2[_0x51c8de];return _0x2e415d;}function a372_0x1510(){const _0x1f6e01=['name','join','isFile','template','toUpperCase','name:\x20\x22','getFullYear','formatLocalTimestamp','4WzATWd','toComponentName','processFile','replace','getMonth','Template\x20content\x20replacement\x20completed','mkdir','alias:\x20\x22','writeFile','23808264TOjGuN','padStart','getMinutes','message','.json','processTemplate','charAt','datasetCode:\x20\x22','utf8','default','endsWith','pop','6439244SqdHvB','split','11KkjcVK','104395tmYxNB','Template\x20content\x20replacement\x20failed','2656869UjiVjZ','.ts','pad','.jsx','.css','toDisplayTitle','.tsx','430490YXbJwT','now','datasetCode','readFile','12dwLDLs','info','\x20},','alias','1418ljYfha','tableName:\x20\x22','isDirectory','readdir','730IyrNQh','1286667gsDYgT','56WltwOl','replaceContent','includes','.md','toLowerCase','extname','getHours','promises','.tpl','map','processDirectory','.js','push','copyFile','sdk-config','\x0a\x20\x20\x20\x20{\x20','getDate','slice'];a372_0x1510=function(){return _0x1f6e01;};return a372_0x1510();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x241bbe){const _0x4fd311=a372_0x2e41;return String(_0x241bbe)[_0x4fd311(0x7e)](0x2,'0');}static['formatLocalTimestamp'](_0x2ae7e2){const _0x28b17a=a372_0x2e41,_0x437d01=_0x2ae7e2[_0x28b17a(0xbb)](),_0x129b94=this[_0x28b17a(0x90)](_0x2ae7e2[_0x28b17a(0xc1)]()+0x1),_0x2bc2ea=this[_0x28b17a(0x90)](_0x2ae7e2[_0x28b17a(0xb3)]()),_0x2c58f9=this[_0x28b17a(0x90)](_0x2ae7e2[_0x28b17a(0xa9)]()),_0x2c3408=this[_0x28b17a(0x90)](_0x2ae7e2[_0x28b17a(0x7f)]()),_0x236e3c=this['pad'](_0x2ae7e2['getSeconds']());return{'createdAt':_0x437d01+'-'+_0x129b94+'-'+_0x2bc2ea+'\x20'+_0x2c58f9+':'+_0x2c3408+':'+_0x236e3c,'createdDate':_0x437d01+'-'+_0x129b94+'-'+_0x2bc2ea,'createdTime':_0x2c58f9+':'+_0x2c3408+':'+_0x236e3c};}static['toComponentName'](_0x517a5e){const _0x1fc23c=a372_0x2e41,_0x227ec3=_0x517a5e[_0x1fc23c(0x8a)]('/')['pop']()||_0x517a5e;return _0x227ec3[_0x1fc23c(0x8a)]('-')[_0x1fc23c(0xac)](_0xe9a28f=>_0xe9a28f[_0x1fc23c(0x83)](0x0)['toUpperCase']()+_0xe9a28f[_0x1fc23c(0xb4)](0x1)[_0x1fc23c(0xa7)]())[_0x1fc23c(0xb6)]('');}static[a372_0x3e23d4(0x93)](_0x335951){const _0x1fe6ba=a372_0x3e23d4,_0x13458a=_0x335951[_0x1fe6ba(0x8a)]('/')[_0x1fe6ba(0x88)]()||_0x335951;return _0x13458a['split']('-')[_0x1fe6ba(0xac)](_0x578fac=>_0x578fac[_0x1fe6ba(0x83)](0x0)[_0x1fe6ba(0xb9)]()+_0x578fac['slice'](0x1)[_0x1fe6ba(0xa7)]())[_0x1fe6ba(0xb6)]('\x20');}static[a372_0x3e23d4(0xa4)](_0x1f6727,_0x482a89,_0x2d7dbf){const _0x1d72fd=a372_0x3e23d4,_0x3bb84a=this[_0x1d72fd(0xbe)](_0x482a89),_0x40dc42=this[_0x1d72fd(0x93)](_0x482a89),{createdAt:_0x674ddb,createdDate:_0x4dfc17,createdTime:_0x4ae924}=this[_0x1d72fd(0xbc)](new Date());let _0x3f144f=_0x1f6727[_0x1d72fd(0xc0)](/\{CliVersion\}/g,CLI_VERSION)[_0x1d72fd(0xc0)](/\{ComponentName\}/g,_0x3bb84a)[_0x1d72fd(0xc0)](/\{DisplayTitle\}/g,_0x40dc42)[_0x1d72fd(0xc0)](/\{PageName\}/g,_0x482a89)['replace'](/\{TemplateName\}/g,_0x2d7dbf)[_0x1d72fd(0xc0)](/\{CreatedAt\}/g,_0x674ddb)[_0x1d72fd(0xc0)](/\{CreatedDate\}/g,_0x4dfc17)[_0x1d72fd(0xc0)](/\{CreatedTime\}/g,_0x4ae924);return _0x3f144f;}static['replaceApiContent'](_0x461b1e,_0x343dd0,_0x6f038c,_0x281b1a,_0x35efcf,_0x86203b,_0x5b1366,_0x5e88f3,_0x3f9455){const _0x3282e7=a372_0x3e23d4,_0x131dc6=new Date(),_0x219593=_0x131dc6['toISOString'](),_0x2a53e2=_0x6f038c[_0x3282e7(0xac)](_0x1e9150=>{const _0x56f008=_0x3282e7,_0x424a29=[_0x56f008(0x84)+_0x1e9150[_0x56f008(0x97)]+'\x22',_0x56f008(0x9e)+_0x1e9150['tableName']+'\x22',_0x56f008(0xba)+_0x1e9150[_0x56f008(0xb5)]+'\x22'];return _0x1e9150[_0x56f008(0x9c)]&&_0x424a29[_0x56f008(0xaf)](_0x56f008(0xc4)+_0x1e9150[_0x56f008(0x9c)]+'\x22'),_0x56f008(0xb2)+_0x424a29['join'](',\x20')+_0x56f008(0x9b);})[_0x3282e7(0xb6)](''),_0x3740ab=_0x281b1a||_0x6f038c[0x0]?.[_0x3282e7(0x9c)]||'YourModel';let _0x228931=_0x461b1e['replace'](/\{AppCode\}/g,_0x343dd0)[_0x3282e7(0xc0)](/\{ModelConfigs\}/g,_0x2a53e2)['replace'](/\{ExampleModelName\}/g,_0x3740ab)['replace'](/\{ApiFileName\}/g,_0x35efcf||'api')['replace'](/\{ConfigName\}/g,_0x86203b||_0x3282e7(0x86))[_0x3282e7(0xc0)](/\{ClientConfigParam\}/g,_0x5b1366||'')[_0x3282e7(0xc0)](/\{SdkConfigFileName\}/g,_0x3f9455||_0x3282e7(0xb1))[_0x3282e7(0xc0)](/\{VarPrefix\}/g,_0x5e88f3||'LOVRABET')[_0x3282e7(0xc0)](/\{CreatedAt\}/g,_0x219593);return _0x228931;}static async[a372_0x3e23d4(0x82)](_0x3edc42,_0x3028b1,_0x14b372,_0x25c735,_0x165940=!![]){const _0x9fa770=a372_0x3e23d4,_0x546886=Date['now']();try{_0x165940&&logger[_0x9fa770(0x9a)](_0x9fa770(0xb8),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x3edc42,'targetPath':_0x3028b1,'pageName':_0x14b372,'templateName':_0x25c735});await a372_0x4a381d[_0x9fa770(0xaa)][_0x9fa770(0xc3)](_0x3028b1,{'recursive':!![]}),await this[_0x9fa770(0xad)](_0x3edc42,_0x3028b1,_0x14b372,_0x25c735);if(_0x165940){const _0x559eba=Date[_0x9fa770(0x96)]()-_0x546886;logger['success'](_0x9fa770(0xb8),_0x9fa770(0xc2),_0x559eba,{'pageName':_0x14b372,'templateName':_0x25c735});}}catch(_0x3419bb){if(_0x165940){const _0x1d5120=Date['now']()-_0x546886;logger['error'](_0x9fa770(0xb8),_0x9fa770(0x8d),{'templatePath':_0x3edc42,'targetPath':_0x3028b1,'pageName':_0x14b372,'templateName':_0x25c735,'error':_0x3419bb instanceof Error?_0x3419bb[_0x9fa770(0x80)]:String(_0x3419bb),'duration':_0x1d5120});}throw _0x3419bb;}}static async[a372_0x3e23d4(0xad)](_0x5aed84,_0x3576a0,_0x591dcf,_0x54276e){const _0x2a5283=a372_0x3e23d4,_0x215976=await a372_0x4a381d['promises'][_0x2a5283(0xa0)](_0x5aed84,{'withFileTypes':!![]});for(const _0x4fc9b4 of _0x215976){const _0x2701ba=a372_0x1c2576['join'](_0x5aed84,_0x4fc9b4['name']);let _0x2ee87d=a372_0x1c2576[_0x2a5283(0xb6)](_0x3576a0,_0x4fc9b4['name']);_0x4fc9b4['name'][_0x2a5283(0x87)]('.tpl')&&(_0x2ee87d=a372_0x1c2576[_0x2a5283(0xb6)](_0x3576a0,_0x4fc9b4[_0x2a5283(0xb5)][_0x2a5283(0xc0)](/\.tpl$/,'')));if(_0x4fc9b4[_0x2a5283(0x9f)]())await a372_0x4a381d[_0x2a5283(0xaa)]['mkdir'](_0x2ee87d,{'recursive':!![]}),await this[_0x2a5283(0xad)](_0x2701ba,_0x2ee87d,_0x591dcf,_0x54276e);else _0x4fc9b4[_0x2a5283(0xb7)]()&&await this[_0x2a5283(0xbf)](_0x2701ba,_0x2ee87d,_0x591dcf,_0x54276e);}}static async[a372_0x3e23d4(0xbf)](_0x17dc13,_0x45572d,_0x111495,_0x591562){const _0xdc8b09=a372_0x3e23d4,_0x33a81b=a372_0x1c2576[_0xdc8b09(0xa8)](_0x17dc13)[_0xdc8b09(0xa7)]();_0x17dc13['endsWith'](_0xdc8b09(0xab))&&(_0x45572d=_0x45572d[_0xdc8b09(0xc0)](/\.tpl$/,''));const _0x57bf88=[_0xdc8b09(0x94),_0xdc8b09(0x8f),_0xdc8b09(0x91),_0xdc8b09(0xae),_0xdc8b09(0x81),_0xdc8b09(0xa6),_0xdc8b09(0x92),'.scss',_0xdc8b09(0xab)];if(_0x57bf88[_0xdc8b09(0xa5)](_0x33a81b)||_0x17dc13[_0xdc8b09(0x87)](_0xdc8b09(0xab))){const _0x2fd0a8=await a372_0x4a381d[_0xdc8b09(0xaa)][_0xdc8b09(0x98)](_0x17dc13,_0xdc8b09(0x85)),_0x14cf21=this[_0xdc8b09(0xa4)](_0x2fd0a8,_0x111495,_0x591562);await a372_0x4a381d[_0xdc8b09(0xaa)][_0xdc8b09(0xc5)](_0x45572d,_0x14cf21,_0xdc8b09(0x85));}else await a372_0x4a381d['promises'][_0xdc8b09(0xb0)](_0x17dc13,_0x45572d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43296a,_0x3e8608){const _0x340be0=a373_0x7b3a,_0x2fc9bf=_0x43296a();while(!![]){try{const _0x2df500=parseInt(_0x340be0(0x1df))/0x1*(-parseInt(_0x340be0(0x1c5))/0x2)+-parseInt(_0x340be0(0x1d9))/0x3+-parseInt(_0x340be0(0x1c3))/0x4+parseInt(_0x340be0(0x1d6))/0x5+parseInt(_0x340be0(0x1d8))/0x6*(-parseInt(_0x340be0(0x1d4))/0x7)+-parseInt(_0x340be0(0x1d1))/0x8+parseInt(_0x340be0(0x1c4))/0x9*(parseInt(_0x340be0(0x1dc))/0xa);if(_0x2df500===_0x3e8608)break;else _0x2fc9bf['push'](_0x2fc9bf['shift']());}catch(_0x4db902){_0x2fc9bf['push'](_0x2fc9bf['shift']());}}}(a373_0x8c58,0x79385));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a373_0x46ab4d from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x1d2e99=a373_0x7b3a,_0x508f1a=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x1d2e99(0x1e0)]();return _0x508f1a==='1'||_0x508f1a===_0x1d2e99(0x1c8)||_0x508f1a===_0x1d2e99(0x1c7);}function cacheRoot(){const _0x418a51=a373_0x7b3a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x418a51(0x1ce));}function a373_0x8c58(){const _0x116bc2=['true','trim','gte','now','/v/','object','.cache',',\x20run:\x20','https://www.npmjs.com/package/','10888SaNksO','lastNotifiedAt','rabetbase-cli','1652903TJdiGF','\x20update','3096840ouIAYu','valid','24bdsPtq','313770dhjMic','update-check.json','\x20available,\x20current\x20','25300swvCMK','checkedAt','stringify','722908xJHxDQ','toLowerCase','number','2718424WbnBTo','8289gyNnGj','2QZmYsN','utf8','yes'];a373_0x8c58=function(){return _0x116bc2;};return a373_0x8c58();}export function getUpdateNoticeCachePath(){const _0x3d1dee=a373_0x7b3a;return join(cacheRoot(),_0x3d1dee(0x1d3),_0x3d1dee(0x1da));}async function readUpdateNoticeCache(){const _0x380522=a373_0x7b3a;try{const _0xdda6e9=await readFile(getUpdateNoticeCachePath(),_0x380522(0x1c6)),_0x516f90=JSON['parse'](_0xdda6e9);if(!_0x516f90||typeof _0x516f90!==_0x380522(0x1cd))return{};return _0x516f90;}catch{return{};}}async function writeUpdateNoticeCache(_0x2af453){const _0xb0c837=a373_0x7b3a;try{const _0xa1956=getUpdateNoticeCachePath();await mkdir(dirname(_0xa1956),{'recursive':!![]}),await writeFile(_0xa1956,JSON[_0xb0c837(0x1de)](_0x2af453,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x2a94e7,_0xa5209d){const _0x54875b=a373_0x7b3a;return typeof _0x2a94e7[_0x54875b(0x1dd)]===_0x54875b(0x1c2)&&_0xa5209d-_0x2a94e7[_0x54875b(0x1dd)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4f62fd,_0x18e46a,_0x277a6d){const _0x36128b=a373_0x7b3a;return _0x4f62fd['lastNotifiedVersion']===_0x18e46a&&typeof _0x4f62fd[_0x36128b(0x1d2)]==='number'&&_0x277a6d-_0x4f62fd[_0x36128b(0x1d2)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2a899a){const _0x52756a=a373_0x7b3a;return _0x52756a(0x1d0)+NPM_PACKAGE_NAME+_0x52756a(0x1cc)+_0x2a899a;}function a373_0x7b3a(_0x1499fc,_0x536f36){_0x1499fc=_0x1499fc-0x1c2;const _0x8c5871=a373_0x8c58();let _0x7b3a11=_0x8c5871[_0x1499fc];return _0x7b3a11;}export async function resolveLatestUpdateNotice(){const _0x115393=a373_0x7b3a;if(isUpdateNoticeDisabled())return null;try{const _0x528199=Date[_0x115393(0x1cb)](),_0x5cd2f1=getCliVersion(),_0x120712=await readUpdateNoticeCache();let _0x507018=isFreshCheck(_0x120712,_0x528199)?_0x120712['latest']?.[_0x115393(0x1c9)]():undefined;if(!_0x507018&&!isFreshCheck(_0x120712,_0x528199)){const _0x13f636=await getCliVersionPolicy();_0x507018=_0x13f636?.['stableVersion']?.[_0x115393(0x1c9)]()||undefined,await writeUpdateNoticeCache({..._0x120712,'checkedAt':_0x528199,'latest':_0x507018,'failed':!_0x507018});}if(!_0x507018||!a373_0x46ab4d[_0x115393(0x1d7)](_0x5cd2f1)||!a373_0x46ab4d[_0x115393(0x1d7)](_0x507018))return null;if(a373_0x46ab4d[_0x115393(0x1ca)](_0x5cd2f1,_0x507018))return null;if(isRecentlyNotified(_0x120712,_0x507018,_0x528199))return null;const _0x3fa1d1=CLI_BIN_NAME+_0x115393(0x1d5);return await writeUpdateNoticeCache({..._0x120712,'checkedAt':isFreshCheck(_0x120712,_0x528199)?_0x120712[_0x115393(0x1dd)]:_0x528199,'latest':_0x507018,'failed':![],'lastNotifiedVersion':_0x507018,'lastNotifiedAt':_0x528199}),{'command':_0x3fa1d1,'current':_0x5cd2f1,'latest':_0x507018,'url':buildNpmVersionUrl(_0x507018),'message':CLI_BIN_NAME+'\x20'+_0x507018+_0x115393(0x1db)+_0x5cd2f1+_0x115393(0x1cf)+_0x3fa1d1};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a374_0x18e2(_0x68951c,_0x1d57b0){_0x68951c=_0x68951c-0xc3;var _0x39ee82=a374_0x39ee();var _0x18e240=_0x39ee82[_0x68951c];return _0x18e240;}(function(_0x144e1d,_0xb2dc9e){var _0x16f690=a374_0x18e2,_0x4dbe1c=_0x144e1d();while(!![]){try{var _0x5a775c=parseInt(_0x16f690(0xc9))/0x1+parseInt(_0x16f690(0xc4))/0x2*(-parseInt(_0x16f690(0xc6))/0x3)+-parseInt(_0x16f690(0xc3))/0x4*(-parseInt(_0x16f690(0xc5))/0x5)+parseInt(_0x16f690(0xca))/0x6+-parseInt(_0x16f690(0xc8))/0x7+parseInt(_0x16f690(0xc7))/0x8+parseInt(_0x16f690(0xcb))/0x9;if(_0x5a775c===_0xb2dc9e)break;else _0x4dbe1c['push'](_0x4dbe1c['shift']());}catch(_0x4da841){_0x4dbe1c['push'](_0x4dbe1c['shift']());}}}(a374_0x39ee,0x592e5));function a374_0x39ee(){var _0x4b1f21=['662487siWmUz','1124124vALRrm','2474145QWkGFI','188XWJyUX','2bXMfXP','3290skOobP','1518393BqmQAw','1838048ViFWYZ','3598084GTNjGF'];a374_0x39ee=function(){return _0x4b1f21;};return a374_0x39ee();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5dd997,_0xa41510){var _0x4b3688=a375_0x4432,_0x45f507=_0x5dd997();while(!![]){try{var _0x2d1306=parseInt(_0x4b3688(0x15c))/0x1+-parseInt(_0x4b3688(0x15b))/0x2+parseInt(_0x4b3688(0x153))/0x3*(parseInt(_0x4b3688(0x159))/0x4)+-parseInt(_0x4b3688(0x15a))/0x5+-parseInt(_0x4b3688(0x158))/0x6+-parseInt(_0x4b3688(0x157))/0x7*(parseInt(_0x4b3688(0x154))/0x8)+-parseInt(_0x4b3688(0x155))/0x9*(-parseInt(_0x4b3688(0x156))/0xa);if(_0x2d1306===_0xa41510)break;else _0x45f507['push'](_0x45f507['shift']());}catch(_0x366fee){_0x45f507['push'](_0x45f507['shift']());}}}(a375_0x3a83,0x1e44e));function a375_0x4432(_0x2e6471,_0x32de5e){_0x2e6471=_0x2e6471-0x153;var _0x3a83d0=a375_0x3a83();var _0x443204=_0x3a83d0[_0x2e6471];return _0x443204;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a375_0x3a83(){var _0x51ed9a=['847280Oypfhp','984087SFHwoZ','10xoxBXn','7AEkBix','508098OdCBPk','19160tktsZu','580605AluzqG','99920iJYKbz','227613XdgwZw','90dbihTo'];a375_0x3a83=function(){return _0x51ed9a;};return a375_0x3a83();}export async function withActiveCookie(_0x3225ff,_0x48de95){setActiveCookie(_0x3225ff);try{return await _0x48de95();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a376_0x3615(_0x2b830c,_0x42eacc){_0x2b830c=_0x2b830c-0x195;var _0x4cf221=a376_0x4cf2();var _0x361508=_0x4cf221[_0x2b830c];return _0x361508;}function a376_0x4cf2(){var _0x5850cd=['3887780zfFrzU','1339018WLPZGO','write','8555864ADhjrm','3294888iqYOIM','3RPMYgj','3144356WHpQph','3142545MCWdtS','558131fRAPdi','stderr'];a376_0x4cf2=function(){return _0x5850cd;};return a376_0x4cf2();}(function(_0x1ae1b2,_0x185196){var _0x276c1c=a376_0x3615,_0x2670f5=_0x1ae1b2();while(!![]){try{var _0x121957=-parseInt(_0x276c1c(0x19b))/0x1+-parseInt(_0x276c1c(0x19e))/0x2+parseInt(_0x276c1c(0x198))/0x3*(parseInt(_0x276c1c(0x199))/0x4)+parseInt(_0x276c1c(0x19d))/0x5+-parseInt(_0x276c1c(0x197))/0x6+-parseInt(_0x276c1c(0x19a))/0x7+parseInt(_0x276c1c(0x196))/0x8;if(_0x121957===_0x185196)break;else _0x2670f5['push'](_0x2670f5['shift']());}catch(_0x15f4c4){_0x2670f5['push'](_0x2670f5['shift']());}}}(a376_0x4cf2,0x6376d));export function writeCliSideChannelLine(_0x47b3c9){var _0x45d4a4=a376_0x3615;process[_0x45d4a4(0x19c)][_0x45d4a4(0x195)](_0x47b3c9+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.10-beta.
|
|
3
|
+
"version": "2.5.10-beta.2",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"@inquirer/prompts": "^8.3.2",
|
|
101
101
|
"@lovrabet/cli-framework": "1.0.5",
|
|
102
102
|
"@lovrabet/otel-logger": "1.0.1-beta.5",
|
|
103
|
+
"@lovrabet/sdk": "1.6.1-beta.7",
|
|
103
104
|
"@opentelemetry/api": "^1.9.1",
|
|
104
105
|
"chalk": "^5.6.2",
|
|
105
106
|
"execa": "^9.6.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.10-beta.
|
|
3
|
+
version: 2.5.10-beta.2
|
|
4
4
|
description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, host frontend integration, frontend subapp resources, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, host frontend integration, subapp resource versions, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.10-beta.
|
|
6
|
-
"skillVersion": "2.5.10-beta.
|
|
5
|
+
"packageVersion": "2.5.10-beta.2",
|
|
6
|
+
"skillVersion": "2.5.10-beta.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/approval-flow-development-workflow.md",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"references/rabetbase-user-account.md",
|
|
160
160
|
"references/rabetbase-workspace.md"
|
|
161
161
|
],
|
|
162
|
-
"digest": "
|
|
162
|
+
"digest": "3e066d2085ae23167ef4e15feff7b967b97ecbc64210686a27fb75d5b47af639"
|
|
163
163
|
}
|