@lovrabet/rabetbase-cli 2.5.9-beta.1 → 2.5.9
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.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-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/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.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 +1 -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
|
-
const
|
|
1
|
+
const a358_0xe3fd2=a358_0x481c;(function(_0x43f20d,_0x4b3a9e){const _0x428437=a358_0x481c,_0x54aa22=_0x43f20d();while(!![]){try{const _0x31082d=-parseInt(_0x428437(0x16d))/0x1*(parseInt(_0x428437(0x163))/0x2)+-parseInt(_0x428437(0x15e))/0x3*(-parseInt(_0x428437(0x14f))/0x4)+-parseInt(_0x428437(0x171))/0x5+-parseInt(_0x428437(0x16f))/0x6+-parseInt(_0x428437(0x160))/0x7*(parseInt(_0x428437(0x167))/0x8)+parseInt(_0x428437(0x162))/0x9*(parseInt(_0x428437(0x157))/0xa)+parseInt(_0x428437(0x14b))/0xb;if(_0x31082d===_0x4b3a9e)break;else _0x54aa22['push'](_0x54aa22['shift']());}catch(_0x502a09){_0x54aa22['push'](_0x54aa22['shift']());}}}(a358_0x1dd8,0x78030));import a358_0x22483e from'node:fs';import a358_0x57b850 from'node:path';import a358_0x25008f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a358_0xe3fd2(0x164);function a358_0x1dd8(){const _0x5eaee6=['10174SwzCfy','1.2.0','some','\x1b[1m','8cqqgRm','\x20\x20\x20Current\x20version:\x20','node_modules','test','existsSync','readFileSync','191sQYrUv','package.json','4416426gzpiwM','version','3155415surbDC','log','minVersion','19807854xhSmWx','@lovrabet/sdk','needsUpgrade','dependencies','3798532FQsCgm','coerce','latest','utf8','all','node','\x1b[0m','packageName','409290RcfefY','join','stableVersion','sdk','↪\x20SDK\x20update\x20available','parse','\x20\x20\x20Upgrade\x20command:\x20','3yLQZHa','devDependencies','4310607BTdTjw','npm\x20install\x20','153xbpLJM'];a358_0x1dd8=function(){return _0x5eaee6;};return a358_0x1dd8();}function isNonNumericVersion(_0x3f7892){const _0x325ad8=a358_0xe3fd2,_0x51c43a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x51c43a[_0x325ad8(0x165)](_0x9394ed=>_0x9394ed[_0x325ad8(0x16a)](_0x3f7892));}function getInstalledVersion(_0x2f775b,_0x43fc8c){const _0x4619e1=a358_0xe3fd2;try{const _0x3db210=a358_0x57b850[_0x4619e1(0x158)](_0x2f775b,_0x4619e1(0x169),_0x43fc8c,_0x4619e1(0x16e));if(a358_0x22483e[_0x4619e1(0x16b)](_0x3db210)){const _0x4d2d62=JSON[_0x4619e1(0x15c)](a358_0x22483e[_0x4619e1(0x16c)](_0x3db210,'utf-8'));return _0x4d2d62['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5901e4=a358_0xe3fd2;try{const _0x2f924a=await getCdnConfig();return _0x2f924a?.[_0x5901e4(0x15a)]?.[_0x5901e4(0x154)]?.[_0x5901e4(0x159)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x23f107=a358_0xe3fd2;try{const _0x296693=await getCdnConfig();return _0x296693?.[_0x23f107(0x15a)]?.[_0x23f107(0x154)]?.[_0x23f107(0x156)]||_0x23f107(0x14c);}catch{return _0x23f107(0x14c);}}function a358_0x481c(_0xe27ede,_0x334da0){_0xe27ede=_0xe27ede-0x14b;const _0x1dd88f=a358_0x1dd8();let _0x481c70=_0x1dd88f[_0xe27ede];return _0x481c70;}export async function checkSdkVersion(_0x52abe0){const _0x3f9783=a358_0xe3fd2,_0x5e3cfd=a358_0x57b850['join'](_0x52abe0,_0x3f9783(0x16e)),[_0x4c4875,_0x4558f6]=await Promise[_0x3f9783(0x153)]([getSdkStableVersion(),getSdkPackageName()]),_0x1f1139=_0x4c4875||FALLBACK_MIN_SDK_VERSION;if(!a358_0x22483e['existsSync'](_0x5e3cfd))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f1139,'packageName':_0x4558f6,'stableVersion':_0x4c4875};try{const _0x5b00a8=JSON[_0x3f9783(0x15c)](a358_0x22483e[_0x3f9783(0x16c)](_0x5e3cfd,_0x3f9783(0x152))),_0x16e668=_0x5b00a8['dependencies']||{},_0x5e5ec8=_0x5b00a8[_0x3f9783(0x15f)]||{},_0x3b0e89=_0x16e668[_0x4558f6]||_0x5e5ec8[_0x4558f6];if(!_0x3b0e89)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f1139,'packageName':_0x4558f6,'stableVersion':_0x4c4875};let _0xb41627=getInstalledVersion(_0x52abe0,_0x4558f6);!_0xb41627&&(_0xb41627=_0x3b0e89);if(isNonNumericVersion(_0x3b0e89))return{'installed':!![],'version':_0xb41627,'needsUpgrade':![],'minVersion':_0x1f1139,'packageName':_0x4558f6,'stableVersion':_0x4c4875};const _0x5cdf70=a358_0x25008f['coerce'](_0xb41627),_0x49cc57=a358_0x25008f['coerce'](_0x1f1139),_0x3adac7=_0x5cdf70&&_0x49cc57?a358_0x25008f['lt'](_0x5cdf70,_0x49cc57):![];return{'installed':!![],'version':_0xb41627,'needsUpgrade':_0x3adac7,'minVersion':_0x1f1139,'packageName':_0x4558f6,'stableVersion':_0x4c4875};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f1139,'packageName':_0x4558f6,'stableVersion':_0x4c4875};}}export function checkSdkVersionSync(_0x2c93cd){const _0x1f1a95=a358_0xe3fd2,_0x344459=a358_0x57b850['join'](_0x2c93cd,_0x1f1a95(0x16e)),_0x4710a2=_0x1f1a95(0x14c);if(!a358_0x22483e[_0x1f1a95(0x16b)](_0x344459))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4710a2,'stableVersion':null};try{const _0x2755b7=JSON['parse'](a358_0x22483e[_0x1f1a95(0x16c)](_0x344459,_0x1f1a95(0x152))),_0xdb08a1=_0x2755b7[_0x1f1a95(0x14e)]||{},_0x1b649c=_0x2755b7[_0x1f1a95(0x15f)]||{},_0x5ef3dc=_0xdb08a1[_0x4710a2]||_0x1b649c[_0x4710a2];if(!_0x5ef3dc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4710a2,'stableVersion':null};let _0x58afe9=getInstalledVersion(_0x2c93cd,_0x4710a2);!_0x58afe9&&(_0x58afe9=_0x5ef3dc);if(isNonNumericVersion(_0x5ef3dc))return{'installed':!![],'version':_0x58afe9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4710a2,'stableVersion':null};const _0xc8e270=a358_0x25008f[_0x1f1a95(0x150)](_0x58afe9),_0x1b5f93=_0xc8e270?a358_0x25008f['lt'](_0xc8e270,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x58afe9,'needsUpgrade':_0x1b5f93,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4710a2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4710a2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x28b377){const _0x44089c=a358_0xe3fd2;if(!_0x28b377[_0x44089c(0x14d)])return;const _0xc81d45='\x1b[33m',_0x545e15=_0x44089c(0x155),_0x566242=_0x44089c(0x166),_0x1bd62e=_0x28b377[_0x44089c(0x156)]||'@lovrabet/sdk',_0x343b81=_0x28b377[_0x44089c(0x159)]||_0x28b377[_0x44089c(0x173)],_0x27538a=_0x44089c(0x161)+_0x1bd62e+'@'+(_0x343b81||_0x44089c(0x151));console[_0x44089c(0x172)](),console[_0x44089c(0x172)](''+_0xc81d45+_0x566242+_0x44089c(0x15b)+_0x545e15),console[_0x44089c(0x172)](_0xc81d45+_0x44089c(0x168)+_0x1bd62e+'@'+_0x28b377[_0x44089c(0x170)]+_0x545e15),console[_0x44089c(0x172)](_0xc81d45+'\x20\x20\x20Stable\x20version:\x20'+_0x343b81+_0x545e15),console[_0x44089c(0x172)](_0xc81d45+_0x44089c(0x15d)+_0x27538a+_0x545e15),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a359_0x4214(){const _0x16f714=['\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','parse','\x1b[31m','1.0.0','1028IblKAc','\x20\x20\x20','Upgrade\x20command:\x20','join','latest','validation','3534hqHJKG','2508840SxguDe','../..','stableVersion','12280488gztVRq','log','belowMinimum','currentVersion','coerce','utf-8','7582170ArqUoc','\x1b[33m','41393493YPnqQR','\x1b[1m','\x20\x20\x20Minimum\x20supported:\x20','↪\x20New\x20version\x20available','\x20\x20\x20Upgrade\x20command:\x20','minimumVersion','needsUpgrade','Current\x20version:\x20','712390dLZNEl','5988CdcNYy','18543xQtAJo','minimumVersionMessage','\x20\x20\x20Recommended\x20stable:\x20'];a359_0x4214=function(){return _0x16f714;};return a359_0x4214();}(function(_0x29dfd4,_0x1a6a17){const _0x351921=a359_0x3b77,_0x2614ec=_0x29dfd4();while(!![]){try{const _0xf3c66a=-parseInt(_0x351921(0xeb))/0x1+-parseInt(_0x351921(0xf6))/0x2*(-parseInt(_0x351921(0xec))/0x3)+parseInt(_0x351921(0xfd))/0x4+-parseInt(_0x351921(0x106))/0x5+-parseInt(_0x351921(0xfc))/0x6*(parseInt(_0x351921(0xed))/0x7)+-parseInt(_0x351921(0x100))/0x8+parseInt(_0x351921(0xe3))/0x9;if(_0xf3c66a===_0x1a6a17)break;else _0x2614ec['push'](_0x2614ec['shift']());}catch(_0x2d69f2){_0x2614ec['push'](_0x2614ec['shift']());}}}(a359_0x4214,0xe2a1d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a359_0x45f21b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x8fcfba){const _0x39de5f=a359_0x3b77,_0x1542e5=_0x8fcfba['stableVersion']||_0x39de5f(0xfa);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x1542e5;}function getCurrentCliVersion(){const _0x58dd7d=a359_0x3b77;try{const _0x3459cf=fileURLToPath(import.meta.url),_0x3d534d=resolve(dirname(_0x3459cf),_0x58dd7d(0xfe)),_0x5eb294=resolve(_0x3d534d,'package.json'),_0x2a777a=JSON[_0x58dd7d(0xf3)](readFileSync(_0x5eb294,_0x58dd7d(0x105)));return _0x2a777a['version']||_0x58dd7d(0xf5);}catch{return _0x58dd7d(0xf5);}}export async function checkCliVersion(){const _0x2ea77d=a359_0x3b77,_0x11233f=getCurrentCliVersion(),_0x14a997=await getCliVersionPolicy(),_0x5955a6=_0x14a997?.[_0x2ea77d(0xff)]||null,_0x480e8e=_0x14a997?.[_0x2ea77d(0xe8)]||null;let _0x3f1f9d=![],_0x4b38d6=![];const _0x253456=a359_0x45f21b[_0x2ea77d(0x104)](_0x11233f);if(_0x253456&&_0x5955a6)try{const _0x17b5f2=a359_0x45f21b[_0x2ea77d(0x104)](_0x5955a6);if(_0x17b5f2)_0x3f1f9d=a359_0x45f21b['lt'](_0x253456,_0x17b5f2);}catch{}if(_0x253456&&_0x480e8e)try{const _0x16a424=a359_0x45f21b[_0x2ea77d(0x104)](_0x480e8e);if(_0x16a424)_0x4b38d6=a359_0x45f21b['lt'](_0x253456,_0x16a424);}catch{}return _0x4b38d6&&(_0x3f1f9d=!![]),{'currentVersion':_0x11233f,'stableVersion':_0x5955a6,'minimumVersion':_0x480e8e,'needsUpgrade':_0x3f1f9d,'belowMinimum':_0x4b38d6,'isPreRelease':![],'upgradeMessage':_0x14a997?.['upgradeMessage'],'minimumVersionMessage':_0x14a997?.[_0x2ea77d(0xee)]};}function a359_0x3b77(_0x84e0e,_0x4ee9eb){_0x84e0e=_0x84e0e-0xe3;const _0x421493=a359_0x4214();let _0x3b773b=_0x421493[_0x84e0e];return _0x3b773b;}export function printCliUpgradeWarning(_0x3b9390){const _0x58b368=a359_0x3b77;if(!_0x3b9390[_0x58b368(0xe9)]&&!_0x3b9390[_0x58b368(0x102)])return;const _0x25c1d0=_0x58b368(0xf4),_0x24f101=_0x58b368(0x107),_0x565c6d='\x1b[0m',_0x4ae2e0=_0x58b368(0xe4),_0x28b573=getCliUpgradeCommand(_0x3b9390);console[_0x58b368(0x101)](),_0x3b9390['belowMinimum']?(console[_0x58b368(0x101)](''+_0x25c1d0+_0x4ae2e0+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x565c6d),console[_0x58b368(0x101)](_0x25c1d0+_0x58b368(0xf1)+_0x3b9390['currentVersion']+_0x565c6d),_0x3b9390[_0x58b368(0xe8)]&&console['log'](_0x25c1d0+_0x58b368(0xe5)+_0x3b9390[_0x58b368(0xe8)]+_0x565c6d),_0x3b9390[_0x58b368(0xff)]&&_0x3b9390[_0x58b368(0xff)]!==_0x3b9390[_0x58b368(0xe8)]&&console[_0x58b368(0x101)](_0x25c1d0+_0x58b368(0xef)+_0x3b9390[_0x58b368(0xff)]+_0x565c6d),_0x3b9390[_0x58b368(0xee)]&&console[_0x58b368(0x101)](_0x25c1d0+'\x20\x20\x20'+_0x3b9390['minimumVersionMessage']+_0x565c6d),console[_0x58b368(0x101)](_0x25c1d0+_0x58b368(0xe7)+_0x28b573+_0x565c6d)):(console[_0x58b368(0x101)](''+_0x24f101+_0x4ae2e0+_0x58b368(0xe6)+_0x565c6d),console[_0x58b368(0x101)](_0x24f101+_0x58b368(0xf1)+_0x3b9390[_0x58b368(0x103)]+_0x565c6d),console['log'](_0x24f101+_0x58b368(0xf0)+_0x3b9390[_0x58b368(0xff)]+_0x565c6d),_0x3b9390['upgradeMessage']&&console[_0x58b368(0x101)](_0x24f101+_0x58b368(0xf7)+_0x3b9390['upgradeMessage']+_0x565c6d),console['log'](_0x24f101+_0x58b368(0xe7)+_0x28b573+_0x565c6d)),console[_0x58b368(0x101)]();}export function assertCliVersionSupported(_0x4f1a1f){const _0x367de0=a359_0x3b77;if(!_0x4f1a1f[_0x367de0(0x102)])return;const _0x22e54f=[_0x4f1a1f['minimumVersionMessage'],_0x367de0(0xea)+_0x4f1a1f[_0x367de0(0x103)],_0x4f1a1f['minimumVersion']?'Minimum\x20supported:\x20'+_0x4f1a1f[_0x367de0(0xe8)]:null,_0x367de0(0xf8)+getCliUpgradeCommand(_0x4f1a1f)][_0x367de0(0xf2)](Boolean)[_0x367de0(0xf9)]('\x0a');throw CliErrors[_0x367de0(0xfb)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x22e54f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x355408,_0x3e99dd){const _0x2748f3=a360_0x4aef,_0x3c39a0=_0x355408();while(!![]){try{const _0x59e171=-parseInt(_0x2748f3(0x145))/0x1*(-parseInt(_0x2748f3(0x148))/0x2)+-parseInt(_0x2748f3(0x13f))/0x3*(-parseInt(_0x2748f3(0x146))/0x4)+parseInt(_0x2748f3(0x13a))/0x5*(-parseInt(_0x2748f3(0x144))/0x6)+-parseInt(_0x2748f3(0x14d))/0x7+parseInt(_0x2748f3(0x138))/0x8*(-parseInt(_0x2748f3(0x14b))/0x9)+parseInt(_0x2748f3(0x141))/0xa+parseInt(_0x2748f3(0x137))/0xb*(parseInt(_0x2748f3(0x142))/0xc);if(_0x59e171===_0x3e99dd)break;else _0x3c39a0['push'](_0x3c39a0['shift']());}catch(_0x1bd8c2){_0x3c39a0['push'](_0x3c39a0['shift']());}}}(a360_0x14d2,0x95348));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a360_0xbc19f5 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x376fb4){const _0x209908=a360_0x4aef,_0x13fc49=a360_0xbc19f5[_0x209908(0x140)](_0x376fb4);return _0x13fc49?a360_0xbc19f5[_0x209908(0x139)](_0x13fc49)?.[0x0]===_0x209908(0x13c):![];}export function resolveProjectTemplateDescriptor(_0x104a6f,_0x556311){const _0x54013c=a360_0x4aef;if(isBetaCliVersion(_0x556311))return _0x104a6f[_0x54013c(0x13c)]?.['projectTemplate']??_0x104a6f[_0x54013c(0x136)];return _0x104a6f[_0x54013c(0x136)];}function a360_0x14d2(){const _0x2ade0e=['beta','application/json','minimumVersionMessage','12ZscUla','valid','8400800kheTRV','24mTynuL','trim','24bdIGyB','7993gBCleB','1022260PkshdQ','minimumVersion','140Evihpt','abort','object','529128azmNDF','latestVersion','6981590znMPSk','string','length','stableVersion','minVersion','cli','projectTemplate','968836fiukSW','48bFXRfk','prerelease','795920cOYWwl','now'];a360_0x14d2=function(){return _0x2ade0e;};return a360_0x14d2();}function pickString(_0x46f5bd){const _0x2acc37=a360_0x4aef;return typeof _0x46f5bd===_0x2acc37(0x14e)&&_0x46f5bd['trim']()[_0x2acc37(0x14f)]>0x0?_0x46f5bd[_0x2acc37(0x143)]():null;}function normalizeCliVersionPolicy(_0xee4211){const _0x36ea5e=a360_0x4aef;if(!_0xee4211||typeof _0xee4211!=='object')return null;const _0x5e294e=_0xee4211,_0x263a7a=_0x5e294e[_0x36ea5e(0x135)]&&typeof _0x5e294e[_0x36ea5e(0x135)]==='object'?_0x5e294e[_0x36ea5e(0x135)]:_0x5e294e,_0xd18359=pickString(_0x263a7a[_0x36ea5e(0x133)])||pickString(_0x263a7a[_0x36ea5e(0x14c)])||pickString(_0x263a7a['recommendedVersion']),_0x5c1183=pickString(_0x263a7a[_0x36ea5e(0x147)])||pickString(_0x263a7a[_0x36ea5e(0x134)]);if(!_0xd18359&&!_0x5c1183)return null;return{'stableVersion':_0xd18359,'minimumVersion':_0x5c1183,'upgradeMessage':pickString(_0x263a7a['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x263a7a[_0x36ea5e(0x13e)])||undefined};}function a360_0x4aef(_0x137884,_0x2d3dcf){_0x137884=_0x137884-0x133;const _0x14d2af=a360_0x14d2();let _0x4aef62=_0x14d2af[_0x137884];return _0x4aef62;}async function fetchRabetbaseCdnConfigAt(_0x5206f1){const _0x2bfa52=a360_0x4aef,_0x2d0325=new AbortController(),_0x598a76=setTimeout(()=>_0x2d0325[_0x2bfa52(0x149)](),FETCH_TIMEOUT_MS);try{const _0x23630d=await fetch(_0x5206f1,{'headers':{'Accept':_0x2bfa52(0x13d)},'signal':_0x2d0325['signal']});if(!_0x23630d['ok'])return null;const _0x18a93b=await _0x23630d['json']();return _0x18a93b&&typeof _0x18a93b===_0x2bfa52(0x14a)?_0x18a93b:null;}catch{return null;}finally{clearTimeout(_0x598a76);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x49568a=await getRabetbaseCdnConfig();return _0x49568a?{'config':_0x49568a,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x552aaf=a360_0x4aef,_0x4f4eaa=Date[_0x552aaf(0x13b)]();if(hasCachedConfig){const _0x423a13=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4f4eaa-cacheTime<_0x423a13)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4f4eaa,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
|
-
(function(
|
|
1
|
+
const a361_0x3ce03b=a361_0x18b7;function a361_0x18b7(_0x126839,_0xe7119f){_0x126839=_0x126839-0x1f1;const _0x21876d=a361_0x2187();let _0x18b7b6=_0x21876d[_0x126839];return _0x18b7b6;}(function(_0x53d410,_0x448955){const _0x36f435=a361_0x18b7,_0xe166bd=_0x53d410();while(!![]){try{const _0x599806=parseInt(_0x36f435(0x1fd))/0x1+-parseInt(_0x36f435(0x1f4))/0x2+parseInt(_0x36f435(0x1f1))/0x3+parseInt(_0x36f435(0x1f8))/0x4+-parseInt(_0x36f435(0x1fb))/0x5*(-parseInt(_0x36f435(0x1f5))/0x6)+-parseInt(_0x36f435(0x1f6))/0x7*(-parseInt(_0x36f435(0x1f9))/0x8)+-parseInt(_0x36f435(0x1fc))/0x9*(parseInt(_0x36f435(0x1fa))/0xa);if(_0x599806===_0x448955)break;else _0xe166bd['push'](_0xe166bd['shift']());}catch(_0x5581fb){_0xe166bd['push'](_0xe166bd['shift']());}}}(a361_0x2187,0x2e041));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a361_0x2dc7aa,getMultiAppConfigs as a361_0x371cff,getTemplateBaseUrl as a361_0x174631}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x14b149){const _0x546710=a361_0x18b7,_0x2d7323=readRawConfig(_0x14b149);return _0x2d7323[_0x546710(0x1f3)]&&typeof _0x2d7323[_0x546710(0x1f3)]===_0x546710(0x1f7)&&initEnv(_0x2d7323[_0x546710(0x1f3)]),_0x2d7323;}export function getConfigAppCode(){return a361_0x2dc7aa();}function a361_0x2187(){const _0x1a511c=['16GSsgBt','130gfkswM','2725bkORoy','591030zDfWAg','237996TQFsCp','741486bcrdeR','project','env','332794VYsLbK','1530GdTaZd','913766vBdmBp','string','1293516efgfUX'];a361_0x2187=function(){return _0x1a511c;};return a361_0x2187();}export function getMultiAppConfigs(_0x4991e2=a361_0x3ce03b(0x1f2)){return a361_0x371cff(_0x4991e2);}export function getTemplateBaseUrl(){return a361_0x174631();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a362_0x5244(_0x2062be,_0x3fef9b){_0x2062be=_0x2062be-0x11e;const _0x416bae=a362_0x416b();let _0x5244e5=_0x416bae[_0x2062be];return _0x5244e5;}(function(_0x6f50ac,_0xa25602){const _0x3367d7=a362_0x5244,_0x4f96b9=_0x6f50ac();while(!![]){try{const _0x14170f=parseInt(_0x3367d7(0x125))/0x1+parseInt(_0x3367d7(0x12b))/0x2*(parseInt(_0x3367d7(0x11e))/0x3)+parseInt(_0x3367d7(0x129))/0x4*(parseInt(_0x3367d7(0x124))/0x5)+parseInt(_0x3367d7(0x12d))/0x6*(-parseInt(_0x3367d7(0x128))/0x7)+parseInt(_0x3367d7(0x122))/0x8+-parseInt(_0x3367d7(0x123))/0x9*(-parseInt(_0x3367d7(0x127))/0xa)+parseInt(_0x3367d7(0x120))/0xb*(-parseInt(_0x3367d7(0x126))/0xc);if(_0x14170f===_0xa25602)break;else _0x4f96b9['push'](_0x4f96b9['shift']());}catch(_0x4ccd0d){_0x4f96b9['push'](_0x4f96b9['shift']());}}}(a362_0x416b,0xc69cf));function a362_0x416b(){const _0x90941=['86ftloNW','trim','223878QfsfQc','isFinite','41019VpTFaJ','number','2739HRvQfS','string','10035088GcoIBO','558lErxYC','2845ynmOIp','56183vdGHCj','106476rwxbur','194360TBRIXN','21KTcdgS','220FQZbVT','object'];a362_0x416b=function(){return _0x90941;};return a362_0x416b();}function toFiniteNumber(_0x27ae52){const _0x5025ca=a362_0x5244;if(typeof _0x27ae52===_0x5025ca(0x11f)&&Number[_0x5025ca(0x12e)](_0x27ae52))return _0x27ae52;if(typeof _0x27ae52===_0x5025ca(0x121)){const _0x15501f=_0x27ae52[_0x5025ca(0x12c)]();if(!_0x15501f)return undefined;const _0x389003=Number(_0x15501f);if(Number[_0x5025ca(0x12e)](_0x389003))return _0x389003;}return undefined;}export function normalizeEntityWithIdResponse(_0x1ec1da){const _0x40fa76=a362_0x5244,_0x21c17d=toFiniteNumber(_0x1ec1da);if(_0x21c17d!==undefined)return{'id':_0x21c17d,'entity':{'id':_0x21c17d}};if(!_0x1ec1da||typeof _0x1ec1da!==_0x40fa76(0x12a))return{'id':undefined,'entity':{}};const _0x50727a={..._0x1ec1da},_0x181549=toFiniteNumber(_0x50727a['id']);return _0x181549!==undefined&&(_0x50727a['id']=_0x181549),{'id':_0x181549,'entity':_0x50727a};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46e43a,_0x2e5363){const _0x123cea=a363_0x248c,_0x4aa971=_0x46e43a();while(!![]){try{const _0x3f00fe=-parseInt(_0x123cea(0x176))/0x1*(parseInt(_0x123cea(0x17f))/0x2)+parseInt(_0x123cea(0x180))/0x3+parseInt(_0x123cea(0x178))/0x4*(-parseInt(_0x123cea(0x17c))/0x5)+parseInt(_0x123cea(0x17a))/0x6*(parseInt(_0x123cea(0x179))/0x7)+-parseInt(_0x123cea(0x17e))/0x8+-parseInt(_0x123cea(0x17b))/0x9+parseInt(_0x123cea(0x17d))/0xa;if(_0x3f00fe===_0x2e5363)break;else _0x4aa971['push'](_0x4aa971['shift']());}catch(_0x1789e2){_0x4aa971['push'](_0x4aa971['shift']());}}}(a363_0x3797,0x1aea6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a363_0x3797(){const _0x5f27b8=['isDirectory','76984nmvBTC','525AmZovI','4086UiDCpo','615510aoQxJp','10KAMpaV','3192860DFnZdU','691424HpGnKH','403318MtVesD','404562DiTAOg','1sAZeBp'];a363_0x3797=function(){return _0x5f27b8;};return a363_0x3797();}function a363_0x248c(_0x1e6f96,_0x258eae){_0x1e6f96=_0x1e6f96-0x176;const _0x379715=a363_0x3797();let _0x248cab=_0x379715[_0x1e6f96];return _0x248cab;}export async function copyDir(_0x3e8816,_0x583fe8){const _0x431bc2=a363_0x248c,_0x4e7675=statSync(_0x3e8816);if(_0x4e7675[_0x431bc2(0x177)]()){!existsSync(_0x583fe8)&&mkdirSync(_0x583fe8,{'recursive':!![]});const _0x2d4cc1=readdirSync(_0x3e8816);for(const _0xe88c71 of _0x2d4cc1){await copyDir(join(_0x3e8816,_0xe88c71),join(_0x583fe8,_0xe88c71));}}else copyFileSync(_0x3e8816,_0x583fe8);}export function ensureDir(_0x4501a2){!existsSync(_0x4501a2)&&mkdirSync(_0x4501a2,{'recursive':!![]});}export function pathExists(_0x5e6c55){return existsSync(_0x5e6c55);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a364_0x7e0f8f=a364_0x3f94;(function(_0x1e56a0,_0x85187){const _0xb6f25f=a364_0x3f94,_0x3d6cad=_0x1e56a0();while(!![]){try{const _0x2fdf49=-parseInt(_0xb6f25f(0x150))/0x1*(-parseInt(_0xb6f25f(0x166))/0x2)+-parseInt(_0xb6f25f(0x161))/0x3*(-parseInt(_0xb6f25f(0x163))/0x4)+-parseInt(_0xb6f25f(0x162))/0x5*(parseInt(_0xb6f25f(0x155))/0x6)+-parseInt(_0xb6f25f(0x15a))/0x7*(-parseInt(_0xb6f25f(0x160))/0x8)+-parseInt(_0xb6f25f(0x16d))/0x9+-parseInt(_0xb6f25f(0x164))/0xa+parseInt(_0xb6f25f(0x15c))/0xb;if(_0x2fdf49===_0x85187)break;else _0x3d6cad['push'](_0x3d6cad['shift']());}catch(_0x4617fa){_0x3d6cad['push'](_0x3d6cad['shift']());}}}(a364_0x3ab0,0x6b175));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a364_0x3ab0(){const _0x4ab536=['1088fEdVcC','1452nLENyj','1134425bMehXA','2104PRzTbl','5848550dvuBXi','entries','2sUnnYv','.lovrabet','replace','title','utf-8','CDN\x20returned\x20invalid\x20data','content','5042925HFmrIL','extendContent','path','168779gHxrCu','lastUpdated','object','push','length','18XVsEvf','trimEnd','cache','.md','guides','9772yxjpbv','json','18163871kNniye','skillTemplate','CDN\x20request\x20failed:\x20','CDN\x20data\x20is\x20missing\x20skillTemplate'];a364_0x3ab0=function(){return _0x4ab536;};return a364_0x3ab0();}import{homedir}from'node:os';function a364_0x3f94(_0x31348f,_0x1287d7){_0x31348f=_0x31348f-0x150;const _0x3ab0c6=a364_0x3ab0();let _0x3f942c=_0x3ab0c6[_0x31348f];return _0x3f942c;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x1e7734=getTemplateBaseUrl();return _0x1e7734+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a364_0x7e0f8f(0x167),a364_0x7e0f8f(0x157));export async function fetchGuidesFromCDN(){const _0x60c68a=a364_0x7e0f8f,_0x397a75=getGuidesCdnUrl(),_0x47cc37=await fetch(_0x397a75,{'headers':{'Accept':'application/json'}});if(!_0x47cc37['ok'])throw new Error(_0x60c68a(0x15e)+_0x47cc37['status']+'\x20'+_0x47cc37['statusText']);const _0x3c7adb=await _0x47cc37[_0x60c68a(0x15b)]();if(!_0x3c7adb['guides']||typeof _0x3c7adb[_0x60c68a(0x159)]!==_0x60c68a(0x152))throw new Error(_0x60c68a(0x16b));return _0x3c7adb;}export function writeGuidesToProject(_0x395cdb,_0x5c0c69,_0x1b9f2f='.lovrabet/skill/guides',_0x1a7a6c){const _0x849c21=a364_0x7e0f8f,_0x28b9c9=join(_0x5c0c69,_0x1b9f2f);mkdirSync(_0x28b9c9,{'recursive':!![]});for(const [_0x8843a7,_0xe662e]of Object[_0x849c21(0x165)](_0x395cdb[_0x849c21(0x159)])){let _0x31c8c1=_0xe662e[_0x849c21(0x16c)];_0xe662e[_0x849c21(0x151)]&&(_0x31c8c1=appendUpdateTime(_0x31c8c1,_0xe662e['lastUpdated'])),writeFileSync(join(_0x28b9c9,_0x8843a7+_0x849c21(0x158)),_0x31c8c1,_0x849c21(0x16a));}}export function appendUpdateTime(_0x452e8e,_0x30722a){const _0x1d8ec1=a364_0x7e0f8f;return _0x452e8e=_0x452e8e[_0x1d8ec1(0x168)](/\n*>更新时间:.*$/m,''),_0x452e8e[_0x1d8ec1(0x156)]()+('\x0a\x0a>更新时间:'+_0x30722a);}export function getSkillTemplate(_0x45e377){const _0x484fa7=a364_0x7e0f8f;return _0x45e377[_0x484fa7(0x15d)]?.[_0x484fa7(0x16c)]||'';}export function appendExtendContents(_0x54dff2,_0x25cc34,_0x424db1){const _0x2f39c6=a364_0x7e0f8f,_0x23f1f7=[];for(const [,_0x148cac]of Object['entries'](_0x25cc34[_0x2f39c6(0x159)])){_0x148cac[_0x2f39c6(0x16e)]&&_0x23f1f7[_0x2f39c6(0x153)](_0x148cac[_0x2f39c6(0x16e)][_0x2f39c6(0x156)]());}if(_0x23f1f7[_0x2f39c6(0x154)]===0x0)return _0x54dff2;return _0x54dff2[_0x2f39c6(0x156)]()+'\x0a\x0a'+_0x23f1f7['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5a395d,_0x3276bb,_0x4f3a85){const _0x1febc0=a364_0x7e0f8f,_0x1c9e93=getSkillTemplate(_0x5a395d);if(!_0x1c9e93)throw new Error(_0x1febc0(0x15f));const _0x1fc660=dirname(_0x3276bb);mkdirSync(_0x1fc660,{'recursive':!![]});let _0x52f8a8=_0x1c9e93[_0x1febc0(0x168)](/\{\{IDE_NAME\}\}/g,_0x4f3a85);_0x52f8a8=appendExtendContents(_0x52f8a8,_0x5a395d),_0x5a395d[_0x1febc0(0x15d)][_0x1febc0(0x151)]&&(_0x52f8a8=appendUpdateTime(_0x52f8a8,_0x5a395d[_0x1febc0(0x15d)][_0x1febc0(0x151)])),writeFileSync(_0x3276bb,_0x52f8a8,_0x1febc0(0x16a));}export async function installGuides(_0x2914d5){const _0x12ff22=a364_0x7e0f8f,_0x9c32be=await fetchGuidesFromCDN();return writeGuidesToProject(_0x9c32be,_0x2914d5),Object['keys'](_0x9c32be[_0x12ff22(0x159)])[_0x12ff22(0x154)];}export function getGuidesSummary(_0x1017b4){const _0x10cfc0=a364_0x7e0f8f;return Object[_0x10cfc0(0x165)](_0x1017b4['guides'])['map'](([_0x29ef83,_0x5b73ba])=>({'key':_0x29ef83,'title':_0x5b73ba[_0x10cfc0(0x169)],'path':_0x5b73ba[_0x10cfc0(0x16f)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a365_0x34b2(_0x54b38c,_0x18101d){_0x54b38c=_0x54b38c-0x1ac;const _0x415e20=a365_0x415e();let _0x34b2c1=_0x415e20[_0x54b38c];return _0x34b2c1;}(function(_0x53f10a,_0x168bd8){const _0x318892=a365_0x34b2,_0x277fde=_0x53f10a();while(!![]){try{const _0x14f1a2=parseInt(_0x318892(0x1bc))/0x1*(parseInt(_0x318892(0x1b6))/0x2)+-parseInt(_0x318892(0x1b0))/0x3*(-parseInt(_0x318892(0x1ae))/0x4)+-parseInt(_0x318892(0x1b7))/0x5*(parseInt(_0x318892(0x1c7))/0x6)+parseInt(_0x318892(0x1b1))/0x7+parseInt(_0x318892(0x1ac))/0x8+-parseInt(_0x318892(0x1b8))/0x9*(-parseInt(_0x318892(0x1bf))/0xa)+-parseInt(_0x318892(0x1c4))/0xb;if(_0x14f1a2===_0x168bd8)break;else _0x277fde['push'](_0x277fde['shift']());}catch(_0xe1af4){_0x277fde['push'](_0x277fde['shift']());}}}(a365_0x415e,0x92c8e));export async function httpRequest(_0x2eace5,_0x91e64a={}){const _0x594d6d=a365_0x34b2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x91e64a;let _0x428ac2=null;for(let _0x318dcd=0x0;_0x318dcd<=retries;_0x318dcd++){try{const _0x3cf519=new AbortController(),_0x4f7e78=setTimeout(()=>_0x3cf519[_0x594d6d(0x1c0)](),timeout),_0x4ce394=await fetch(_0x2eace5,{'headers':headers,'signal':_0x3cf519['signal']});clearTimeout(_0x4f7e78);let _0xe80d43;const _0x461205=_0x4ce394[_0x594d6d(0x1c2)]['get'](_0x594d6d(0x1be));return _0x461205?.[_0x594d6d(0x1ba)](_0x594d6d(0x1c6))?_0xe80d43=await _0x4ce394[_0x594d6d(0x1b5)]():_0xe80d43=await _0x4ce394['text'](),{'ok':_0x4ce394['ok'],'status':_0x4ce394[_0x594d6d(0x1c3)],'statusText':_0x4ce394['statusText'],'data':_0xe80d43,'headers':_0x4ce394['headers'],'url':_0x4ce394[_0x594d6d(0x1b9)],'text':()=>_0x4ce394['text']()};}catch(_0x5b07c6){_0x428ac2=_0x5b07c6 instanceof Error?_0x5b07c6:new Error(String(_0x5b07c6));if(_0x318dcd===retries)break;if(shouldRetry(_0x5b07c6)){console[_0x594d6d(0x1c1)](_0x594d6d(0x1bb)+(_0x318dcd+0x1)+_0x594d6d(0x1af)+retryDelay+_0x594d6d(0x1c9)),await sleep(retryDelay);continue;}else break;}}throw _0x428ac2||new Error(_0x594d6d(0x1ad));}function shouldRetry(_0x56cb46){const _0x1c8c3b=a365_0x34b2;if(_0x56cb46 instanceof Error){if(_0x56cb46[_0x1c8c3b(0x1b3)]===_0x1c8c3b(0x1c5))return![];if(_0x56cb46[_0x1c8c3b(0x1b3)]==='TypeError'&&_0x56cb46[_0x1c8c3b(0x1c8)][_0x1c8c3b(0x1ba)](_0x1c8c3b(0x1b2)))return!![];if(_0x56cb46['message']['includes'](_0x1c8c3b(0x1b4)))return!![];if(_0x56cb46[_0x1c8c3b(0x1c8)][_0x1c8c3b(0x1ba)](_0x1c8c3b(0x1bd)))return![];}return![];}function a365_0x415e(){const _0xdddd85=['12172105KaZevA','AbortError','application/json','1014KDrjBa','message','ms...','7003224FddvmS','Request\x20failed','316nCgQwY','\x20in\x20','5619PYVdYK','85596mGGlZM','fetch','name','ECONNRESET','json','74758YpJCmZ','30945VtxrQa','9atdvOQ','url','includes','*\x20Request\x20failed;\x20retry\x20','19UNXPkL','ENOTFOUND','content-type','10079270mrTziB','abort','log','headers','status'];a365_0x415e=function(){return _0xdddd85;};return a365_0x415e();}function sleep(_0x19cd51){return new Promise(_0x3bbf95=>setTimeout(_0x3bbf95,_0x19cd51));}export function validateUrl(_0x1bdaf2){try{return new URL(_0x1bdaf2),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5876a0,_0x221f61){const _0x3fc3ac=a366_0x12e4,_0x4ae21c=_0x5876a0();while(!![]){try{const _0x11ac72=parseInt(_0x3fc3ac(0xfc))/0x1*(parseInt(_0x3fc3ac(0xfe))/0x2)+parseInt(_0x3fc3ac(0xf7))/0x3*(-parseInt(_0x3fc3ac(0x100))/0x4)+-parseInt(_0x3fc3ac(0x106))/0x5+-parseInt(_0x3fc3ac(0x105))/0x6*(parseInt(_0x3fc3ac(0x108))/0x7)+-parseInt(_0x3fc3ac(0xfa))/0x8+parseInt(_0x3fc3ac(0xf8))/0x9*(parseInt(_0x3fc3ac(0x102))/0xa)+parseInt(_0x3fc3ac(0xfd))/0xb;if(_0x11ac72===_0x221f61)break;else _0x4ae21c['push'](_0x4ae21c['shift']());}catch(_0x42ef8b){_0x4ae21c['push'](_0x4ae21c['shift']());}}}(a366_0x2fd7,0xc0205));function env(_0x2354d4){return process.env[`RABETBASE_${_0x2354d4}`]||process.env[`LOVRABET_${_0x2354d4}`]||undefined;}export function isNonInteractive(_0x54dcaa){const _0x5644fe=a366_0x12e4;return!!(_0x54dcaa[_0x5644fe(0x104)]||_0x54dcaa['ci']||env('CI')===_0x5644fe(0x103)||process.env.CI===_0x5644fe(0x103)||!process[_0x5644fe(0xff)][_0x5644fe(0xf9)]||!isStdinRawModeSupported());}function a366_0x12e4(_0x493ad5,_0x35e6a0){_0x493ad5=_0x493ad5-0xf7;const _0x2fd72e=a366_0x2fd7();let _0x12e4c1=_0x2fd72e[_0x493ad5];return _0x12e4c1;}function a366_0x2fd7(){const _0x136cc2=['stdin','707Mwpkue','4598406INAzsB','18891cgbKSD','isTTY','2818504FEjEzx','setRawMode','77375CxqFNi','19074396EFlPXn','36JmpTKt','stdout','4QgqoHY','isRaw','200hhOCuq','true','nonInteractive','14358aEsVcU','1275045OJAHuX'];a366_0x2fd7=function(){return _0x136cc2;};return a366_0x2fd7();}function isStdinRawModeSupported(){const _0x1fed90=a366_0x12e4;if(!process[_0x1fed90(0x107)]['isTTY'])return![];try{const _0x5ad606=process['stdin'][_0x1fed90(0x101)];return process['stdin'][_0x1fed90(0xfb)](!![]),process[_0x1fed90(0x107)]['setRawMode'](_0x5ad606??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a367_0x5e65(_0x172d04,_0x15dfbf){_0x172d04=_0x172d04-0x133;const _0x401db4=a367_0x401d();let _0x5e651b=_0x401db4[_0x172d04];return _0x5e651b;}const a367_0x30bd78=a367_0x5e65;(function(_0x47ab09,_0x4a79a8){const _0x5b9e18=a367_0x5e65,_0x16bdca=_0x47ab09();while(!![]){try{const _0x2e7b0c=parseInt(_0x5b9e18(0x135))/0x1*(-parseInt(_0x5b9e18(0x146))/0x2)+-parseInt(_0x5b9e18(0x15a))/0x3+parseInt(_0x5b9e18(0x147))/0x4+parseInt(_0x5b9e18(0x163))/0x5+parseInt(_0x5b9e18(0x145))/0x6*(-parseInt(_0x5b9e18(0x136))/0x7)+-parseInt(_0x5b9e18(0x150))/0x8+parseInt(_0x5b9e18(0x137))/0x9*(parseInt(_0x5b9e18(0x155))/0xa);if(_0x2e7b0c===_0x4a79a8)break;else _0x16bdca['push'](_0x16bdca['shift']());}catch(_0x245179){_0x16bdca['push'](_0x16bdca['shift']());}}}(a367_0x401d,0x4f244));import a367_0x1aec2b from'winston';import a367_0x7101ce from'node:fs';import a367_0x568d39 from'node:path';class Logger{[a367_0x30bd78(0x13e)];[a367_0x30bd78(0x13d)];[a367_0x30bd78(0x154)]='';constructor(){const _0x131e18=a367_0x30bd78;this[_0x131e18(0x13d)]='';}['setRawCommand'](_0x16aa2a){const _0x4663c1=a367_0x30bd78;this[_0x4663c1(0x154)]=_0x16aa2a;}['initWinstonLogger'](){const _0x536b2c=a367_0x30bd78,_0x1d5f55=a367_0x568d39['dirname'](this[_0x536b2c(0x13d)]);!a367_0x7101ce['existsSync'](_0x1d5f55)&&a367_0x7101ce['mkdirSync'](_0x1d5f55,{'recursive':!![]});const _0x50613d=a367_0x1aec2b['format'][_0x536b2c(0x13c)](a367_0x1aec2b[_0x536b2c(0x15b)][_0x536b2c(0x161)](),a367_0x1aec2b[_0x536b2c(0x15b)]['errors']({'stack':!![]}),a367_0x1aec2b['format'][_0x536b2c(0x158)](_0x49b9a4=>{const _0x1dac14=_0x536b2c,_0x4cda61={'timestamp':_0x49b9a4[_0x1dac14(0x161)]||new Date()[_0x1dac14(0x152)](),'level':_0x49b9a4[_0x1dac14(0x142)]||'info','command':_0x49b9a4[_0x1dac14(0x148)]||_0x1dac14(0x15e),'rawCommand':_0x49b9a4[_0x1dac14(0x15c)]||this[_0x1dac14(0x154)]||undefined,'message':_0x49b9a4[_0x1dac14(0x14f)]||'','duration':_0x49b9a4['duration']||undefined,'details':_0x49b9a4[_0x1dac14(0x144)]||undefined};return JSON['stringify'](_0x4cda61);}));this[_0x536b2c(0x13e)]=a367_0x1aec2b[_0x536b2c(0x14d)]({'level':_0x536b2c(0x138),'format':_0x50613d,'transports':[new a367_0x1aec2b[(_0x536b2c(0x140))][(_0x536b2c(0x13b))]({'filename':this[_0x536b2c(0x13d)],'level':_0x536b2c(0x138)})],'silent':![]}),a367_0x1aec2b[_0x536b2c(0x133)]({'success':'green','error':'red','warn':_0x536b2c(0x149),'info':'blue'});}[a367_0x30bd78(0x160)](_0x336011){const _0x5e7920=a367_0x30bd78;this[_0x5e7920(0x13d)]=a367_0x568d39[_0x5e7920(0x15f)](_0x336011,'.lovrabet.log'),this[_0x5e7920(0x13e)]&&this[_0x5e7920(0x13e)][_0x5e7920(0x141)](),this[_0x5e7920(0x14e)]();}[a367_0x30bd78(0x138)](_0x57cbe9,_0x1d9d46,_0xf43845){const _0xafb8f3=a367_0x30bd78;if(!this[_0xafb8f3(0x13d)]||!this[_0xafb8f3(0x13e)])return;this['winstonLogger']['info'](_0x1d9d46,{'command':_0x57cbe9,'details':_0xf43845});}[a367_0x30bd78(0x159)](_0x2efc8f,_0x2c05eb,_0x175df7,_0x1f32ee){const _0x290d42=a367_0x30bd78;if(!this[_0x290d42(0x13d)]||!this[_0x290d42(0x13e)])return;this[_0x290d42(0x13e)][_0x290d42(0x156)](_0x290d42(0x138),_0x2c05eb,{'level':_0x290d42(0x159),'command':_0x2efc8f,'duration':_0x175df7,'details':_0x1f32ee});}[a367_0x30bd78(0x143)](_0x3a9ccd,_0x2c7a37,_0x1830fb){const _0x462254=a367_0x30bd78;if(!this[_0x462254(0x13d)]||!this[_0x462254(0x13e)])return;this[_0x462254(0x13e)][_0x462254(0x143)](_0x2c7a37,{'command':_0x3a9ccd,'details':_0x1830fb});}['warn'](_0x2906cc,_0x4d0603,_0x1c345e){const _0x281c92=a367_0x30bd78;if(!this[_0x281c92(0x13d)]||!this['winstonLogger'])return;this['winstonLogger'][_0x281c92(0x151)](_0x4d0603,{'command':_0x2906cc,'details':_0x1c345e});}async['logTask'](_0x2df683,_0x14138d,_0x3f28f2){const _0x458d96=a367_0x30bd78,_0x766479=Date['now']();this[_0x458d96(0x138)](_0x2df683,_0x458d96(0x139)+_0x14138d);try{const _0x21c831=await _0x3f28f2(),_0x4067bb=Date['now']()-_0x766479;return this['success'](_0x2df683,'Completed:\x20'+_0x14138d,_0x4067bb),_0x21c831;}catch(_0x245def){const _0x310504=Date[_0x458d96(0x153)]()-_0x766479;this['error'](_0x2df683,_0x458d96(0x14a)+_0x14138d,{'error':_0x245def instanceof Error?_0x245def[_0x458d96(0x14f)]:String(_0x245def),'duration':_0x310504});throw _0x245def;}}[a367_0x30bd78(0x14b)](){const _0x318512=a367_0x30bd78;try{if(!a367_0x7101ce[_0x318512(0x162)](this[_0x318512(0x13d)]))return[];const _0x2117d3=a367_0x7101ce['readFileSync'](this[_0x318512(0x13d)],'utf8');return _0x2117d3[_0x318512(0x157)]('\x0a')['filter'](_0x1f832e=>_0x1f832e[_0x318512(0x13f)]())[_0x318512(0x14c)](_0x3e695c=>JSON[_0x318512(0x15d)](_0x3e695c));}catch(_0x1c95a6){return console[_0x318512(0x151)](_0x318512(0x134),_0x1c95a6),[];}}['clearLogs'](){const _0x5c2527=a367_0x30bd78;try{a367_0x7101ce['existsSync'](this['logFilePath'])&&a367_0x7101ce['writeFileSync'](this[_0x5c2527(0x13d)],'','utf8');}catch(_0x43ee23){console[_0x5c2527(0x151)]('Failed\x20to\x20clear\x20logs:',_0x43ee23);}}[a367_0x30bd78(0x13a)](){const _0x42ddd5=a367_0x30bd78;return this[_0x42ddd5(0x13e)];}}export const logger=new Logger();function a367_0x401d(){const _0x57004f=['27ZpaMFU','info','Starting:\x20','getWinstonInstance','File','combine','logFilePath','winstonLogger','trim','transports','clear','level','error','details','2788446aflJpb','32874mKjiJa','2347832fUadIz','command','yellow','Failed:\x20','readLogs','map','createLogger','initWinstonLogger','message','4276832qCnsMq','warn','toISOString','now','currentRawCommand','3818470oAzmMT','log','split','printf','success','1673040zPPLRC','format','rawCommand','parse','unknown','join','setLogPath','timestamp','existsSync','1483115CFwOPE','addColors','Failed\x20to\x20read\x20logs:','9JUgOrB','7AhQgsS'];a367_0x401d=function(){return _0x57004f;};return a367_0x401d();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4de665,_0x4bf690){const _0x41fc9e=a368_0x2bda,_0x25eeeb=_0x4de665();while(!![]){try{const _0xed66a=parseInt(_0x41fc9e(0xb8))/0x1+-parseInt(_0x41fc9e(0xa9))/0x2*(-parseInt(_0x41fc9e(0xae))/0x3)+parseInt(_0x41fc9e(0xac))/0x4*(-parseInt(_0x41fc9e(0xad))/0x5)+parseInt(_0x41fc9e(0xb3))/0x6*(-parseInt(_0x41fc9e(0xaf))/0x7)+parseInt(_0x41fc9e(0xb2))/0x8+-parseInt(_0x41fc9e(0xb7))/0x9+parseInt(_0x41fc9e(0xab))/0xa*(-parseInt(_0x41fc9e(0xb9))/0xb);if(_0xed66a===_0x4bf690)break;else _0x25eeeb['push'](_0x25eeeb['shift']());}catch(_0x3f6018){_0x25eeeb['push'](_0x25eeeb['shift']());}}}(a368_0x43a9,0xbefed));import{CliErrors}from'../errors.js';function a368_0x2bda(_0x29246c,_0x139f79){_0x29246c=_0x29246c-0xa9;const _0x43a93b=a368_0x43a9();let _0x2bdab0=_0x43a93b[_0x29246c];return _0x2bdab0;}export function parseJsonParams(_0x11a0aa){const _0x5c39bc=a368_0x2bda;if(!_0x11a0aa)return undefined;let _0x519c45;try{_0x519c45=JSON[_0x5c39bc(0xb4)](_0x11a0aa);}catch{throw CliErrors[_0x5c39bc(0xaa)](_0x5c39bc(0xb0)+_0x11a0aa);}if(!_0x519c45||typeof _0x519c45!=='object'||Array[_0x5c39bc(0xb1)](_0x519c45))throw CliErrors[_0x5c39bc(0xaa)](_0x5c39bc(0xb6),_0x5c39bc(0xb5));return _0x519c45;}function a368_0x43a9(){const _0x565524=['644FaSqWF','11405vcSRUd','4285665fRSkHR','5705dpqJHZ','Invalid\x20JSON\x20for\x20--params:\x20','isArray','5763008rVbcpL','2442VwXWVH','parse','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','6219558FHqtNn','711137SQqIov','56881cAqRRn','2oWkHUB','validation','1330kxpPDz'];a368_0x43a9=function(){return _0x565524;};return a368_0x43a9();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a369_0x33b398=a369_0x285c;function a369_0x218b(){const _0x266f62=['4SXtiIg','4822677qAGtQO','10564119qiVTTD','platform','30qfAmWT','5466955LGkyDP','3793615nNTlsH','36zXChtZ','win32','8EPsPyV','9154510dalxiC','20455akaxTO','1417500zkAZZr','7JpejFp','11NfZzEa'];a369_0x218b=function(){return _0x266f62;};return a369_0x218b();}(function(_0x381443,_0x3260ee){const _0x582e83=a369_0x285c,_0x51f73d=_0x381443();while(!![]){try{const _0x36197f=parseInt(_0x582e83(0x1a3))/0x1*(-parseInt(_0x582e83(0x1ab))/0x2)+parseInt(_0x582e83(0x1a8))/0x3+-parseInt(_0x582e83(0x1a7))/0x4*(-parseInt(_0x582e83(0x1ad))/0x5)+parseInt(_0x582e83(0x1a4))/0x6*(-parseInt(_0x582e83(0x1a5))/0x7)+parseInt(_0x582e83(0x1b0))/0x8*(parseInt(_0x582e83(0x1a9))/0x9)+parseInt(_0x582e83(0x1b1))/0xa*(-parseInt(_0x582e83(0x1a6))/0xb)+-parseInt(_0x582e83(0x1ae))/0xc*(parseInt(_0x582e83(0x1ac))/0xd);if(_0x36197f===_0x3260ee)break;else _0x51f73d['push'](_0x51f73d['shift']());}catch(_0x194f18){_0x51f73d['push'](_0x51f73d['shift']());}}}(a369_0x218b,0xc82e6));function a369_0x285c(_0xd0d8ae,_0x251739){_0xd0d8ae=_0xd0d8ae-0x1a3;const _0x218bc8=a369_0x218b();let _0x285ceb=_0x218bc8[_0xd0d8ae];return _0x285ceb;}export const isWindows=process[a369_0x33b398(0x1aa)]===a369_0x33b398(0x1af);export function resolveNpmBin(_0x3fe4f7){return isWindows?_0x3fe4f7+'.cmd':_0x3fe4f7;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x20d24b){return new Promise(_0x2d64db=>setTimeout(_0x2d64db,_0x20d24b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a371_0x575d8f=a371_0xd965;(function(_0x416287,_0x17baf2){const _0x4f4ae4=a371_0xd965,_0x326b86=_0x416287();while(!![]){try{const _0x3534f9=-parseInt(_0x4f4ae4(0xc5))/0x1+-parseInt(_0x4f4ae4(0xc6))/0x2+parseInt(_0x4f4ae4(0xc1))/0x3*(-parseInt(_0x4f4ae4(0xc3))/0x4)+parseInt(_0x4f4ae4(0xd5))/0x5+-parseInt(_0x4f4ae4(0xa6))/0x6*(parseInt(_0x4f4ae4(0xa9))/0x7)+parseInt(_0x4f4ae4(0xc7))/0x8*(-parseInt(_0x4f4ae4(0xae))/0x9)+parseInt(_0x4f4ae4(0xa0))/0xa;if(_0x3534f9===_0x17baf2)break;else _0x326b86['push'](_0x326b86['shift']());}catch(_0x224806){_0x326b86['push'](_0x326b86['shift']());}}}(a371_0x2b86,0xba6b2));import a371_0x4d47b0 from'node:fs';import a371_0xa59dc4 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a371_0x2b86(){const _0x426e88=['toISOString','formatLocalTimestamp','isDirectory','395973FTWTgD','Template\x20content\x20replacement\x20failed','alias','name','tableName:\x20\x22','getMonth','map','pad','join','utf8','datasetCode','.js','error','processDirectory','YourModel','datasetCode:\x20\x22','sdk-config','api','LOVRABET','3126hLxnli','processTemplate','2204nFPayH','info','1211508wuCTbQ','21714QoWaew','184xdsxkY','toDisplayTitle','tableName','.scss','charAt','toLowerCase','getSeconds','toUpperCase','success','message','.json','template','isFile','.jsx','1710740Ofqcuw','getDate','getHours','\x0a\x20\x20\x20\x20{\x20','Starting\x20template\x20content\x20replacement','replaceApiContent','writeFile','now','copyFile','endsWith','pop','.tpl','\x20},','replace','promises','push','default','name:\x20\x22','38702760GdYEfe','processFile','split','readdir','.tsx','slice','42zjlOIW','.md','mkdir','640416kOiTYo','getFullYear'];a371_0x2b86=function(){return _0x426e88;};return a371_0x2b86();}function a371_0xd965(_0x42e2c8,_0x37073a){_0x42e2c8=_0x42e2c8-0x98;const _0x2b8627=a371_0x2b86();let _0xd96570=_0x2b8627[_0x42e2c8];return _0xd96570;}export class TemplateReplacer{static['pad'](_0x1b0536){return String(_0x1b0536)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x4cef4a){const _0x59d8a0=a371_0xd965,_0x1c7dc3=_0x4cef4a[_0x59d8a0(0xaa)](),_0x359082=this[_0x59d8a0(0xb5)](_0x4cef4a[_0x59d8a0(0xb3)]()+0x1),_0x31a1e2=this[_0x59d8a0(0xb5)](_0x4cef4a[_0x59d8a0(0xd6)]()),_0xe23e98=this[_0x59d8a0(0xb5)](_0x4cef4a[_0x59d8a0(0xd7)]()),_0x46545f=this[_0x59d8a0(0xb5)](_0x4cef4a['getMinutes']()),_0x566bad=this['pad'](_0x4cef4a[_0x59d8a0(0xcd)]());return{'createdAt':_0x1c7dc3+'-'+_0x359082+'-'+_0x31a1e2+'\x20'+_0xe23e98+':'+_0x46545f+':'+_0x566bad,'createdDate':_0x1c7dc3+'-'+_0x359082+'-'+_0x31a1e2,'createdTime':_0xe23e98+':'+_0x46545f+':'+_0x566bad};}static['toComponentName'](_0x59754b){const _0x28ec84=a371_0xd965,_0x3f8d40=_0x59754b[_0x28ec84(0xa2)]('/')['pop']()||_0x59754b;return _0x3f8d40[_0x28ec84(0xa2)]('-')['map'](_0x9f9679=>_0x9f9679[_0x28ec84(0xcb)](0x0)[_0x28ec84(0xce)]()+_0x9f9679[_0x28ec84(0xa5)](0x1)['toLowerCase']())[_0x28ec84(0xb6)]('');}static[a371_0x575d8f(0xc8)](_0x1e806b){const _0x1119c1=a371_0x575d8f,_0x113528=_0x1e806b[_0x1119c1(0xa2)]('/')[_0x1119c1(0x98)]()||_0x1e806b;return _0x113528[_0x1119c1(0xa2)]('-')['map'](_0x1fa24a=>_0x1fa24a[_0x1119c1(0xcb)](0x0)[_0x1119c1(0xce)]()+_0x1fa24a[_0x1119c1(0xa5)](0x1)[_0x1119c1(0xcc)]())[_0x1119c1(0xb6)]('\x20');}static['replaceContent'](_0x1975cf,_0x5b2527,_0x225736){const _0x6844ce=a371_0x575d8f,_0x23f8e9=this['toComponentName'](_0x5b2527),_0x38f47f=this[_0x6844ce(0xc8)](_0x5b2527),{createdAt:_0x284c06,createdDate:_0x40af05,createdTime:_0x53c86e}=this[_0x6844ce(0xac)](new Date());let _0x2ec6f2=_0x1975cf[_0x6844ce(0x9b)](/\{CliVersion\}/g,CLI_VERSION)[_0x6844ce(0x9b)](/\{ComponentName\}/g,_0x23f8e9)['replace'](/\{DisplayTitle\}/g,_0x38f47f)[_0x6844ce(0x9b)](/\{PageName\}/g,_0x5b2527)['replace'](/\{TemplateName\}/g,_0x225736)[_0x6844ce(0x9b)](/\{CreatedAt\}/g,_0x284c06)['replace'](/\{CreatedDate\}/g,_0x40af05)[_0x6844ce(0x9b)](/\{CreatedTime\}/g,_0x53c86e);return _0x2ec6f2;}static[a371_0x575d8f(0xda)](_0x3ec97c,_0x172ff2,_0x17c8fd,_0x363dd4,_0x4bdca2,_0x4eb34b,_0x36c397,_0x1e2578,_0x451317){const _0x3288b1=a371_0x575d8f,_0x119eb6=new Date(),_0x102aad=_0x119eb6[_0x3288b1(0xab)](),_0xb330f7=_0x17c8fd[_0x3288b1(0xb4)](_0x51fa18=>{const _0xa31c37=_0x3288b1,_0xf4cb3e=[_0xa31c37(0xbd)+_0x51fa18[_0xa31c37(0xb8)]+'\x22',_0xa31c37(0xb2)+_0x51fa18[_0xa31c37(0xc9)]+'\x22',_0xa31c37(0x9f)+_0x51fa18['name']+'\x22'];return _0x51fa18[_0xa31c37(0xb0)]&&_0xf4cb3e[_0xa31c37(0x9d)]('alias:\x20\x22'+_0x51fa18[_0xa31c37(0xb0)]+'\x22'),_0xa31c37(0xd8)+_0xf4cb3e[_0xa31c37(0xb6)](',\x20')+_0xa31c37(0x9a);})[_0x3288b1(0xb6)](''),_0x2c739=_0x363dd4||_0x17c8fd[0x0]?.[_0x3288b1(0xb0)]||_0x3288b1(0xbc);let _0x31dd94=_0x3ec97c['replace'](/\{AppCode\}/g,_0x172ff2)[_0x3288b1(0x9b)](/\{ModelConfigs\}/g,_0xb330f7)[_0x3288b1(0x9b)](/\{ExampleModelName\}/g,_0x2c739)[_0x3288b1(0x9b)](/\{ApiFileName\}/g,_0x4bdca2||_0x3288b1(0xbf))['replace'](/\{ConfigName\}/g,_0x4eb34b||_0x3288b1(0x9e))[_0x3288b1(0x9b)](/\{ClientConfigParam\}/g,_0x36c397||'')[_0x3288b1(0x9b)](/\{SdkConfigFileName\}/g,_0x451317||_0x3288b1(0xbe))[_0x3288b1(0x9b)](/\{VarPrefix\}/g,_0x1e2578||_0x3288b1(0xc0))[_0x3288b1(0x9b)](/\{CreatedAt\}/g,_0x102aad);return _0x31dd94;}static async[a371_0x575d8f(0xc2)](_0xb4ab4a,_0x40e3e0,_0x3cb78a,_0x51d3b0,_0x324c33=!![]){const _0x149502=a371_0x575d8f,_0x13df7d=Date[_0x149502(0xdc)]();try{_0x324c33&&logger[_0x149502(0xc4)](_0x149502(0xd2),_0x149502(0xd9),{'templatePath':_0xb4ab4a,'targetPath':_0x40e3e0,'pageName':_0x3cb78a,'templateName':_0x51d3b0});await a371_0x4d47b0[_0x149502(0x9c)][_0x149502(0xa8)](_0x40e3e0,{'recursive':!![]}),await this[_0x149502(0xbb)](_0xb4ab4a,_0x40e3e0,_0x3cb78a,_0x51d3b0);if(_0x324c33){const _0x95912e=Date[_0x149502(0xdc)]()-_0x13df7d;logger[_0x149502(0xcf)](_0x149502(0xd2),'Template\x20content\x20replacement\x20completed',_0x95912e,{'pageName':_0x3cb78a,'templateName':_0x51d3b0});}}catch(_0x1b3a89){if(_0x324c33){const _0x31d554=Date[_0x149502(0xdc)]()-_0x13df7d;logger[_0x149502(0xba)]('template',_0x149502(0xaf),{'templatePath':_0xb4ab4a,'targetPath':_0x40e3e0,'pageName':_0x3cb78a,'templateName':_0x51d3b0,'error':_0x1b3a89 instanceof Error?_0x1b3a89[_0x149502(0xd0)]:String(_0x1b3a89),'duration':_0x31d554});}throw _0x1b3a89;}}static async[a371_0x575d8f(0xbb)](_0x372226,_0xc9f433,_0x592520,_0x1174b7){const _0x1b1326=a371_0x575d8f,_0x5c23f3=await a371_0x4d47b0[_0x1b1326(0x9c)][_0x1b1326(0xa3)](_0x372226,{'withFileTypes':!![]});for(const _0x49ad6d of _0x5c23f3){const _0x4318b4=a371_0xa59dc4['join'](_0x372226,_0x49ad6d['name']);let _0x17272c=a371_0xa59dc4[_0x1b1326(0xb6)](_0xc9f433,_0x49ad6d[_0x1b1326(0xb1)]);_0x49ad6d[_0x1b1326(0xb1)][_0x1b1326(0xde)](_0x1b1326(0x99))&&(_0x17272c=a371_0xa59dc4[_0x1b1326(0xb6)](_0xc9f433,_0x49ad6d[_0x1b1326(0xb1)][_0x1b1326(0x9b)](/\.tpl$/,'')));if(_0x49ad6d[_0x1b1326(0xad)]())await a371_0x4d47b0[_0x1b1326(0x9c)][_0x1b1326(0xa8)](_0x17272c,{'recursive':!![]}),await this['processDirectory'](_0x4318b4,_0x17272c,_0x592520,_0x1174b7);else _0x49ad6d[_0x1b1326(0xd3)]()&&await this[_0x1b1326(0xa1)](_0x4318b4,_0x17272c,_0x592520,_0x1174b7);}}static async[a371_0x575d8f(0xa1)](_0xef760c,_0x2d12b3,_0x134b71,_0x3c7c23){const _0x5e2fd9=a371_0x575d8f,_0x337ff2=a371_0xa59dc4['extname'](_0xef760c)[_0x5e2fd9(0xcc)]();_0xef760c[_0x5e2fd9(0xde)](_0x5e2fd9(0x99))&&(_0x2d12b3=_0x2d12b3['replace'](/\.tpl$/,''));const _0x5be0c3=[_0x5e2fd9(0xa4),'.ts',_0x5e2fd9(0xd4),_0x5e2fd9(0xb9),_0x5e2fd9(0xd1),_0x5e2fd9(0xa7),'.css',_0x5e2fd9(0xca),_0x5e2fd9(0x99)];if(_0x5be0c3['includes'](_0x337ff2)||_0xef760c[_0x5e2fd9(0xde)](_0x5e2fd9(0x99))){const _0x3bf85f=await a371_0x4d47b0[_0x5e2fd9(0x9c)]['readFile'](_0xef760c,_0x5e2fd9(0xb7)),_0x54726a=this['replaceContent'](_0x3bf85f,_0x134b71,_0x3c7c23);await a371_0x4d47b0[_0x5e2fd9(0x9c)][_0x5e2fd9(0xdb)](_0x2d12b3,_0x54726a,'utf8');}else await a371_0x4d47b0[_0x5e2fd9(0x9c)][_0x5e2fd9(0xdd)](_0xef760c,_0x2d12b3);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14574b,_0x474ea2){const _0x853484=a372_0x3707,_0x588f9a=_0x14574b();while(!![]){try{const _0x25d7fc=parseInt(_0x853484(0x84))/0x1+-parseInt(_0x853484(0x81))/0x2+-parseInt(_0x853484(0x87))/0x3+parseInt(_0x853484(0x89))/0x4*(-parseInt(_0x853484(0x72))/0x5)+-parseInt(_0x853484(0x7c))/0x6+-parseInt(_0x853484(0x8d))/0x7+parseInt(_0x853484(0x7b))/0x8;if(_0x25d7fc===_0x474ea2)break;else _0x588f9a['push'](_0x588f9a['shift']());}catch(_0x333665){_0x588f9a['push'](_0x588f9a['shift']());}}}(a372_0x406f,0x6b775));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a372_0x3707(_0x2ee0f4,_0x3af695){_0x2ee0f4=_0x2ee0f4-0x72;const _0x406f2d=a372_0x406f();let _0x370741=_0x406f2d[_0x2ee0f4];return _0x370741;}import a372_0x1a538c 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 a372_0x406f(){const _0xaafea9=['stableVersion','checkedAt','934398AYCsbf','\x20available,\x20current\x20','utf8','571358dgGvyv','valid','https://www.npmjs.com/package/','1183146EKaFid','lastNotifiedAt','4ICNXlD','now','yes','stringify','1408827HPLnvC','3621295bQDUMd','true','/v/','update-check.json','toLowerCase',',\x20run:\x20','object','latest','trim','15649416IFiRHR','1801518hqxFtp','number','gte'];a372_0x406f=function(){return _0xaafea9;};return a372_0x406f();}function isUpdateNoticeDisabled(){const _0x519c3e=a372_0x3707,_0x93d528=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x519c3e(0x76)]();return _0x93d528==='1'||_0x93d528===_0x519c3e(0x73)||_0x93d528===_0x519c3e(0x8b);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x1c4286=a372_0x3707;return join(cacheRoot(),'rabetbase-cli',_0x1c4286(0x75));}async function readUpdateNoticeCache(){const _0x2c30b6=a372_0x3707;try{const _0x17278f=await readFile(getUpdateNoticeCachePath(),_0x2c30b6(0x83)),_0x3a8030=JSON['parse'](_0x17278f);if(!_0x3a8030||typeof _0x3a8030!==_0x2c30b6(0x78))return{};return _0x3a8030;}catch{return{};}}async function writeUpdateNoticeCache(_0x1e711b){const _0x9e0adb=a372_0x3707;try{const _0x3780ef=getUpdateNoticeCachePath();await mkdir(dirname(_0x3780ef),{'recursive':!![]}),await writeFile(_0x3780ef,JSON[_0x9e0adb(0x8c)](_0x1e711b,null,0x2)+'\x0a',_0x9e0adb(0x83));}catch{}}function isFreshCheck(_0x1f0b5e,_0xd8588e){const _0xda71e9=a372_0x3707;return typeof _0x1f0b5e[_0xda71e9(0x80)]===_0xda71e9(0x7d)&&_0xd8588e-_0x1f0b5e['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x368583,_0x30605c,_0xa4add9){const _0x1b80c9=a372_0x3707;return _0x368583['lastNotifiedVersion']===_0x30605c&&typeof _0x368583['lastNotifiedAt']===_0x1b80c9(0x7d)&&_0xa4add9-_0x368583[_0x1b80c9(0x88)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x56eb62){const _0x40676e=a372_0x3707;return _0x40676e(0x86)+NPM_PACKAGE_NAME+_0x40676e(0x74)+_0x56eb62;}export async function resolveLatestUpdateNotice(){const _0x5a6cde=a372_0x3707;if(isUpdateNoticeDisabled())return null;try{const _0x221a31=Date[_0x5a6cde(0x8a)](),_0x347b31=getCliVersion(),_0x2d346e=await readUpdateNoticeCache();let _0x2bf934=isFreshCheck(_0x2d346e,_0x221a31)?_0x2d346e[_0x5a6cde(0x79)]?.[_0x5a6cde(0x7a)]():undefined;if(!_0x2bf934&&!isFreshCheck(_0x2d346e,_0x221a31)){const _0x4b7459=await getCliVersionPolicy();_0x2bf934=_0x4b7459?.[_0x5a6cde(0x7f)]?.[_0x5a6cde(0x7a)]()||undefined,await writeUpdateNoticeCache({..._0x2d346e,'checkedAt':_0x221a31,'latest':_0x2bf934,'failed':!_0x2bf934});}if(!_0x2bf934||!a372_0x1a538c[_0x5a6cde(0x85)](_0x347b31)||!a372_0x1a538c[_0x5a6cde(0x85)](_0x2bf934))return null;if(a372_0x1a538c[_0x5a6cde(0x7e)](_0x347b31,_0x2bf934))return null;if(isRecentlyNotified(_0x2d346e,_0x2bf934,_0x221a31))return null;const _0x406f02=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x2d346e,'checkedAt':isFreshCheck(_0x2d346e,_0x221a31)?_0x2d346e[_0x5a6cde(0x80)]:_0x221a31,'latest':_0x2bf934,'failed':![],'lastNotifiedVersion':_0x2bf934,'lastNotifiedAt':_0x221a31}),{'command':_0x406f02,'current':_0x347b31,'latest':_0x2bf934,'url':buildNpmVersionUrl(_0x2bf934),'message':CLI_BIN_NAME+'\x20'+_0x2bf934+_0x5a6cde(0x82)+_0x347b31+_0x5a6cde(0x77)+_0x406f02};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a373_0x3251(){var _0x33a378=['28216580mShBYe','14662fflxso','778290QCbwvZ','183aanPgg','495yNMsOz','18ZaaTAw','2113002TFOder','1838067haowVF','2845328xTirvG','154184oRKfof'];a373_0x3251=function(){return _0x33a378;};return a373_0x3251();}(function(_0x59386a,_0x40a1ca){var _0x57b34b=a373_0x2a08,_0x597344=_0x59386a();while(!![]){try{var _0x113e73=-parseInt(_0x57b34b(0xab))/0x1*(parseInt(_0x57b34b(0xb3))/0x2)+parseInt(_0x57b34b(0xae))/0x3+parseInt(_0x57b34b(0xb0))/0x4+-parseInt(_0x57b34b(0xaa))/0x5+-parseInt(_0x57b34b(0xad))/0x6*(parseInt(_0x57b34b(0xaf))/0x7)+-parseInt(_0x57b34b(0xb1))/0x8*(parseInt(_0x57b34b(0xac))/0x9)+parseInt(_0x57b34b(0xb2))/0xa;if(_0x113e73===_0x40a1ca)break;else _0x597344['push'](_0x597344['shift']());}catch(_0x2d9924){_0x597344['push'](_0x597344['shift']());}}}(a373_0x3251,0xd9daf));import{VERSION}from'../generated/build-info.js';function a373_0x2a08(_0x4cd9c1,_0x2443da){_0x4cd9c1=_0x4cd9c1-0xaa;var _0x3251eb=a373_0x3251();var _0x2a08af=_0x3251eb[_0x4cd9c1];return _0x2a08af;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a374_0x2c94(_0x364c25,_0x379b98){_0x364c25=_0x364c25-0xaf;var _0x5d41be=a374_0x5d41();var _0x2c9467=_0x5d41be[_0x364c25];return _0x2c9467;}(function(_0x4fc625,_0x5f2613){var _0x228b9f=a374_0x2c94,_0xfda115=_0x4fc625();while(!![]){try{var _0x20377b=-parseInt(_0x228b9f(0xb9))/0x1*(-parseInt(_0x228b9f(0xb0))/0x2)+parseInt(_0x228b9f(0xb8))/0x3*(-parseInt(_0x228b9f(0xb2))/0x4)+parseInt(_0x228b9f(0xb6))/0x5+parseInt(_0x228b9f(0xb5))/0x6+parseInt(_0x228b9f(0xb7))/0x7*(parseInt(_0x228b9f(0xaf))/0x8)+-parseInt(_0x228b9f(0xb1))/0x9*(parseInt(_0x228b9f(0xb3))/0xa)+-parseInt(_0x228b9f(0xb4))/0xb;if(_0x20377b===_0x5f2613)break;else _0xfda115['push'](_0xfda115['shift']());}catch(_0x3bbf10){_0xfda115['push'](_0xfda115['shift']());}}}(a374_0x5d41,0x45c49));function a374_0x5d41(){var _0x1d9aca=['100QRRsya','10070984NvfHmE','3108336PGpkUw','794775JWLptr','7kNAGyV','13263BMuksW','1pXpfdI','4278728SBYSuE','595732jWFprm','98514PsjorC','180mFBqKa'];a374_0x5d41=function(){return _0x1d9aca;};return a374_0x5d41();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x255e7f,_0x46310f){setActiveCookie(_0x255e7f);try{return await _0x46310f();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x478ced,_0x4768a8){var _0x31a754=a375_0x52c7,_0x5345cd=_0x478ced();while(!![]){try{var _0x1e0ce8=-parseInt(_0x31a754(0xc2))/0x1*(-parseInt(_0x31a754(0xca))/0x2)+parseInt(_0x31a754(0xcb))/0x3+-parseInt(_0x31a754(0xc8))/0x4*(-parseInt(_0x31a754(0xc5))/0x5)+parseInt(_0x31a754(0xc6))/0x6+-parseInt(_0x31a754(0xc1))/0x7+-parseInt(_0x31a754(0xc7))/0x8*(-parseInt(_0x31a754(0xc3))/0x9)+-parseInt(_0x31a754(0xc4))/0xa;if(_0x1e0ce8===_0x4768a8)break;else _0x5345cd['push'](_0x5345cd['shift']());}catch(_0x50a0d1){_0x5345cd['push'](_0x5345cd['shift']());}}}(a375_0x4994,0x37268));function a375_0x4994(){var _0x5d5ae6=['1380897dRTryW','4174020oKrlqk','810ywrkBu','500982rcQOcH','8ItqsOD','2140bPRFNw','stderr','192938qOVZrG','1189980kKGLuA','2564583XNPwyS','3xXxbag'];a375_0x4994=function(){return _0x5d5ae6;};return a375_0x4994();}function a375_0x52c7(_0x83db7c,_0x3d682b){_0x83db7c=_0x83db7c-0xc1;var _0x499465=a375_0x4994();var _0x52c70b=_0x499465[_0x83db7c];return _0x52c70b;}export function writeCliSideChannelLine(_0x279ee8){var _0x20576a=a375_0x52c7;process[_0x20576a(0xc9)]['write'](_0x279ee8+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.9
|
|
3
|
+
"version": "2.5.9",
|
|
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": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.9
|
|
3
|
+
version: 2.5.9
|
|
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.9
|
|
6
|
-
"skillVersion": "2.5.9
|
|
5
|
+
"packageVersion": "2.5.9",
|
|
6
|
+
"skillVersion": "2.5.9",
|
|
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": "2406889c848b8eeb20403226d3c93412f7d6e950661611088d0498c7711501d0"
|
|
163
163
|
}
|