@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a5507,_0x2c365e){const _0x255e74=a343_0x48cf,_0xc3152a=_0x2a5507();while(!![]){try{const _0xfead17=-parseInt(_0x255e74(0x112))/0x1+parseInt(_0x255e74(0x120))/0x2*(parseInt(_0x255e74(0x108))/0x3)+parseInt(_0x255e74(0x10e))/0x4+parseInt(_0x255e74(0x10f))/0x5+-parseInt(_0x255e74(0x123))/0x6+-parseInt(_0x255e74(0x104))/0x7+parseInt(_0x255e74(0x11c))/0x8;if(_0xfead17===_0x2c365e)break;else _0xc3152a['push'](_0xc3152a['shift']());}catch(_0x5115f7){_0xc3152a['push'](_0xc3152a['shift']());}}}(a343_0x4dc5,0x46b95));function a343_0x4dc5(){const _0x25c881=['filter','belowMinimum','Upgrade\x20command:\x20','../..','1485904MMRIFC','minimumVersion','log','needsUpgrade','206NJALMv','\x1b[0m','1.0.0','1819026DVLBiF','↪\x20New\x20version\x20available','validation','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[31m','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Recommended\x20stable:\x20','737506hQRpZk','currentVersion','\x1b[33m','package.json','16659LRdcCK','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','stableVersion','\x20\x20\x20Stable\x20version:\x20','424724SHYOVp','1414320rUZEnW','\x20\x20\x20','latest','448528hbILME','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','parse','join','upgradeMessage'];a343_0x4dc5=function(){return _0x25c881;};return a343_0x4dc5();}function a343_0x48cf(_0x2421c8,_0x5edf93){_0x2421c8=_0x2421c8-0x100;const _0x4dc595=a343_0x4dc5();let _0x48cf25=_0x4dc595[_0x2421c8];return _0x48cf25;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a343_0x4406ce 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(_0x92abcd){const _0x471825=a343_0x48cf,_0x4bbe54=_0x92abcd[_0x471825(0x10c)]||_0x471825(0x111);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4bbe54;}function getCurrentCliVersion(){const _0x30ca33=a343_0x48cf;try{const _0x4b0ade=fileURLToPath(import.meta.url),_0x3f0edc=resolve(dirname(_0x4b0ade),_0x30ca33(0x11b)),_0x3cd0e3=resolve(_0x3f0edc,_0x30ca33(0x107)),_0x1435b4=JSON[_0x30ca33(0x115)](readFileSync(_0x3cd0e3,'utf-8'));return _0x1435b4['version']||_0x30ca33(0x122);}catch{return _0x30ca33(0x122);}}export async function checkCliVersion(){const _0x1bae41=a343_0x48cf,_0x1a6e83=getCurrentCliVersion(),_0x50ae8f=await getCliVersionPolicy(),_0x492749=_0x50ae8f?.[_0x1bae41(0x10c)]||null,_0x609d06=_0x50ae8f?.[_0x1bae41(0x11d)]||null;let _0x2584e6=![],_0x1b7152=![];const _0x46ee13=a343_0x4406ce[_0x1bae41(0x114)](_0x1a6e83);if(_0x46ee13&&_0x492749)try{const _0x29c5a5=a343_0x4406ce['coerce'](_0x492749);if(_0x29c5a5)_0x2584e6=a343_0x4406ce['lt'](_0x46ee13,_0x29c5a5);}catch{}if(_0x46ee13&&_0x609d06)try{const _0x17ac97=a343_0x4406ce['coerce'](_0x609d06);if(_0x17ac97)_0x1b7152=a343_0x4406ce['lt'](_0x46ee13,_0x17ac97);}catch{}return _0x1b7152&&(_0x2584e6=!![]),{'currentVersion':_0x1a6e83,'stableVersion':_0x492749,'minimumVersion':_0x609d06,'needsUpgrade':_0x2584e6,'belowMinimum':_0x1b7152,'isPreRelease':![],'upgradeMessage':_0x50ae8f?.[_0x1bae41(0x117)],'minimumVersionMessage':_0x50ae8f?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x5d6f17){const _0x61a495=a343_0x48cf;if(!_0x5d6f17[_0x61a495(0x11f)]&&!_0x5d6f17[_0x61a495(0x119)])return;const _0x302bef=_0x61a495(0x101),_0xaf4ed3=_0x61a495(0x106),_0x38d0b3=_0x61a495(0x121),_0x283ad4='\x1b[1m',_0x55be53=getCliUpgradeCommand(_0x5d6f17);console[_0x61a495(0x11e)](),_0x5d6f17['belowMinimum']?(console[_0x61a495(0x11e)](''+_0x302bef+_0x283ad4+_0x61a495(0x100)+_0x38d0b3),console['log'](_0x302bef+_0x61a495(0x113)+_0x5d6f17[_0x61a495(0x105)]+_0x38d0b3),_0x5d6f17[_0x61a495(0x11d)]&&console['log'](_0x302bef+_0x61a495(0x102)+_0x5d6f17[_0x61a495(0x11d)]+_0x38d0b3),_0x5d6f17[_0x61a495(0x10c)]&&_0x5d6f17[_0x61a495(0x10c)]!==_0x5d6f17['minimumVersion']&&console[_0x61a495(0x11e)](_0x302bef+_0x61a495(0x103)+_0x5d6f17[_0x61a495(0x10c)]+_0x38d0b3),_0x5d6f17[_0x61a495(0x109)]&&console[_0x61a495(0x11e)](_0x302bef+'\x20\x20\x20'+_0x5d6f17[_0x61a495(0x109)]+_0x38d0b3),console[_0x61a495(0x11e)](_0x302bef+'\x20\x20\x20Upgrade\x20command:\x20'+_0x55be53+_0x38d0b3)):(console['log'](''+_0xaf4ed3+_0x283ad4+_0x61a495(0x124)+_0x38d0b3),console[_0x61a495(0x11e)](_0xaf4ed3+_0x61a495(0x113)+_0x5d6f17[_0x61a495(0x105)]+_0x38d0b3),console['log'](_0xaf4ed3+_0x61a495(0x10d)+_0x5d6f17[_0x61a495(0x10c)]+_0x38d0b3),_0x5d6f17[_0x61a495(0x117)]&&console[_0x61a495(0x11e)](_0xaf4ed3+_0x61a495(0x110)+_0x5d6f17[_0x61a495(0x117)]+_0x38d0b3),console[_0x61a495(0x11e)](_0xaf4ed3+_0x61a495(0x10a)+_0x55be53+_0x38d0b3)),console[_0x61a495(0x11e)]();}export function assertCliVersionSupported(_0x26bfaf){const _0x27cfee=a343_0x48cf;if(!_0x26bfaf[_0x27cfee(0x119)])return;const _0xf323a9=[_0x26bfaf[_0x27cfee(0x109)],'Current\x20version:\x20'+_0x26bfaf[_0x27cfee(0x105)],_0x26bfaf[_0x27cfee(0x11d)]?'Minimum\x20supported:\x20'+_0x26bfaf[_0x27cfee(0x11d)]:null,_0x27cfee(0x11a)+getCliUpgradeCommand(_0x26bfaf)][_0x27cfee(0x118)](Boolean)[_0x27cfee(0x116)]('\x0a');throw CliErrors[_0x27cfee(0x125)](_0x27cfee(0x10b),_0xf323a9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f0f26,_0x20fdc3){const _0xdb65d7=a344_0x50bf,_0x4adf0d=_0x3f0f26();while(!![]){try{const _0x2e2015=-parseInt(_0xdb65d7(0x1e5))/0x1+parseInt(_0xdb65d7(0x1db))/0x2+parseInt(_0xdb65d7(0x1e6))/0x3+-parseInt(_0xdb65d7(0x1e2))/0x4*(parseInt(_0xdb65d7(0x1e4))/0x5)+-parseInt(_0xdb65d7(0x1dc))/0x6+-parseInt(_0xdb65d7(0x1df))/0x7+-parseInt(_0xdb65d7(0x1d7))/0x8*(-parseInt(_0xdb65d7(0x1e9))/0x9);if(_0x2e2015===_0x20fdc3)break;else _0x4adf0d['push'](_0x4adf0d['shift']());}catch(_0x1c85de){_0x4adf0d['push'](_0x4adf0d['shift']());}}}(a344_0x2b7c,0xd79f1));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x24fa81 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x5ed981){const _0x778f31=a344_0x50bf,_0xb16029=a344_0x24fa81[_0x778f31(0x1d8)](_0x5ed981);return _0xb16029?a344_0x24fa81[_0x778f31(0x1da)](_0xb16029)?.[0x0]===_0x778f31(0x1d3):![];}export function resolveProjectTemplateDescriptor(_0x2d8268,_0x372af3){const _0xe413e6=a344_0x50bf;if(isBetaCliVersion(_0x372af3))return _0x2d8268[_0xe413e6(0x1d3)]?.[_0xe413e6(0x1e0)]??_0x2d8268[_0xe413e6(0x1e0)];return _0x2d8268[_0xe413e6(0x1e0)];}function a344_0x50bf(_0x4b73c1,_0x20442b){_0x4b73c1=_0x4b73c1-0x1d2;const _0x2b7c79=a344_0x2b7c();let _0x50bfef=_0x2b7c79[_0x4b73c1];return _0x50bfef;}function pickString(_0x2014be){const _0x828b94=a344_0x50bf;return typeof _0x2014be===_0x828b94(0x1d9)&&_0x2014be[_0x828b94(0x1e1)]()[_0x828b94(0x1dd)]>0x0?_0x2014be[_0x828b94(0x1e1)]():null;}function normalizeCliVersionPolicy(_0x217c85){const _0x1e3317=a344_0x50bf;if(!_0x217c85||typeof _0x217c85!==_0x1e3317(0x1d6))return null;const _0x1f6dd6=_0x217c85,_0x230c88=_0x1f6dd6[_0x1e3317(0x1de)]&&typeof _0x1f6dd6['cli']==='object'?_0x1f6dd6[_0x1e3317(0x1de)]:_0x1f6dd6,_0x46d365=pickString(_0x230c88['stableVersion'])||pickString(_0x230c88[_0x1e3317(0x1d2)])||pickString(_0x230c88['recommendedVersion']),_0x51c7de=pickString(_0x230c88[_0x1e3317(0x1e7)])||pickString(_0x230c88['minVersion']);if(!_0x46d365&&!_0x51c7de)return null;return{'stableVersion':_0x46d365,'minimumVersion':_0x51c7de,'upgradeMessage':pickString(_0x230c88[_0x1e3317(0x1e3)])||undefined,'minimumVersionMessage':pickString(_0x230c88['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x51ad2a){const _0x163dee=a344_0x50bf,_0x4f254a=new AbortController(),_0x24ffe4=setTimeout(()=>_0x4f254a['abort'](),FETCH_TIMEOUT_MS);try{const _0x516261=await fetch(_0x51ad2a,{'headers':{'Accept':_0x163dee(0x1d5)},'signal':_0x4f254a[_0x163dee(0x1d4)]});if(!_0x516261['ok'])return null;const _0x586f57=await _0x516261['json']();return _0x586f57&&typeof _0x586f57===_0x163dee(0x1d6)?_0x586f57:null;}catch{return null;}finally{clearTimeout(_0x24ffe4);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}function a344_0x2b7c(){const _0x45c49d=['valid','string','prerelease','464000xymDjk','10572672GgKPMJ','length','cli','8288938GRHlDJ','projectTemplate','trim','424chHQrO','upgradeMessage','79795ZIcGBT','836219hHwiWH','4459767rHFnmy','minimumVersion','now','9UkUKPo','latestVersion','beta','signal','application/json','object','37109720YVYAzP'];a344_0x2b7c=function(){return _0x45c49d;};return a344_0x2b7c();}export async function fetchProjectTemplateCdnConfig(){const _0x57d678=await getRabetbaseCdnConfig();return _0x57d678?{'config':_0x57d678,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x489a38=a344_0x50bf,_0x28488f=Date[_0x489a38(0x1e8)]();if(hasCachedConfig){const _0x3e49b1=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x28488f-cacheTime<_0x3e49b1)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x28488f,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
|
-
|
|
1
|
+
(function(_0x4e842a,_0x32511f){const _0xe91712=a345_0x51ec,_0x59341a=_0x4e842a();while(!![]){try{const _0x511f9d=-parseInt(_0xe91712(0x1c3))/0x1+-parseInt(_0xe91712(0x1c1))/0x2*(parseInt(_0xe91712(0x1c5))/0x3)+parseInt(_0xe91712(0x1c7))/0x4*(-parseInt(_0xe91712(0x1c8))/0x5)+-parseInt(_0xe91712(0x1c9))/0x6*(-parseInt(_0xe91712(0x1c6))/0x7)+-parseInt(_0xe91712(0x1ca))/0x8+-parseInt(_0xe91712(0x1c0))/0x9+parseInt(_0xe91712(0x1c4))/0xa;if(_0x511f9d===_0x32511f)break;else _0x59341a['push'](_0x59341a['shift']());}catch(_0x6b545e){_0x59341a['push'](_0x59341a['shift']());}}}(a345_0x210c,0x841f1));function a345_0x51ec(_0x2be21b,_0x14b8b4){_0x2be21b=_0x2be21b-0x1c0;const _0x210ca1=a345_0x210c();let _0x51ec78=_0x210ca1[_0x2be21b];return _0x51ec78;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a345_0x47a6b5,getMultiAppConfigs as a345_0x5683a7,getTemplateBaseUrl as a345_0x48c208}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a345_0x210c(){const _0x494f4f=['1546380OUZbDa','188076fwskjP','env','856627LzLmca','25382370jqnRoY','15OiNZfG','1085PQlpxi','358844UzOjln','35oiNXfD','34014OeywtF','5993192tpgsdM','string'];a345_0x210c=function(){return _0x494f4f;};return a345_0x210c();}export{isInProject}from'../context.js';export function readConfig(_0xf55736){const _0x476097=a345_0x51ec,_0x4f98f7=readRawConfig(_0xf55736);return _0x4f98f7[_0x476097(0x1c2)]&&typeof _0x4f98f7[_0x476097(0x1c2)]===_0x476097(0x1cb)&&initEnv(_0x4f98f7[_0x476097(0x1c2)]),_0x4f98f7;}export function getConfigAppCode(){return a345_0x47a6b5();}export function getMultiAppConfigs(_0x295dbe='project'){return a345_0x5683a7(_0x295dbe);}export function getTemplateBaseUrl(){return a345_0x48c208();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x43646d,_0x1e7358){const _0x240548=a346_0x3104,_0x23b833=_0x43646d();while(!![]){try{const _0x514ef5=parseInt(_0x240548(0x1e0))/0x1*(parseInt(_0x240548(0x1db))/0x2)+parseInt(_0x240548(0x1e6))/0x3*(-parseInt(_0x240548(0x1dd))/0x4)+-parseInt(_0x240548(0x1df))/0x5+-parseInt(_0x240548(0x1d9))/0x6+-parseInt(_0x240548(0x1da))/0x7*(-parseInt(_0x240548(0x1e3))/0x8)+-parseInt(_0x240548(0x1e5))/0x9*(-parseInt(_0x240548(0x1e4))/0xa)+parseInt(_0x240548(0x1dc))/0xb*(parseInt(_0x240548(0x1e7))/0xc);if(_0x514ef5===_0x1e7358)break;else _0x23b833['push'](_0x23b833['shift']());}catch(_0x4cd69c){_0x23b833['push'](_0x23b833['shift']());}}}(a346_0x2a0f,0x52738));function a346_0x2a0f(){const _0x4c4f1e=['352cuClCX','8570uOMzgO','6525gwjnDx','9363KYxZGo','732EZwkUy','1273560vmdTFt','71624AymNdJ','114EeosnQ','91135cKhcXG','652pFxDZe','string','3193280KJrpvp','2113UvxtLS','object','isFinite'];a346_0x2a0f=function(){return _0x4c4f1e;};return a346_0x2a0f();}function a346_0x3104(_0x905128,_0x27a19b){_0x905128=_0x905128-0x1d9;const _0x2a0fc2=a346_0x2a0f();let _0x31045a=_0x2a0fc2[_0x905128];return _0x31045a;}function toFiniteNumber(_0x539899){const _0x306958=a346_0x3104;if(typeof _0x539899==='number'&&Number[_0x306958(0x1e2)](_0x539899))return _0x539899;if(typeof _0x539899===_0x306958(0x1de)){const _0x316489=_0x539899['trim']();if(!_0x316489)return undefined;const _0x19dacc=Number(_0x316489);if(Number[_0x306958(0x1e2)](_0x19dacc))return _0x19dacc;}return undefined;}export function normalizeEntityWithIdResponse(_0x128568){const _0x53f6b5=a346_0x3104,_0x4a012f=toFiniteNumber(_0x128568);if(_0x4a012f!==undefined)return{'id':_0x4a012f,'entity':{'id':_0x4a012f}};if(!_0x128568||typeof _0x128568!==_0x53f6b5(0x1e1))return{'id':undefined,'entity':{}};const _0x339475={..._0x128568},_0xa572ed=toFiniteNumber(_0x339475['id']);return _0xa572ed!==undefined&&(_0x339475['id']=_0xa572ed),{'id':_0xa572ed,'entity':_0x339475};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x312573,_0x391389){const _0x486ebe=a347_0x4240,_0xf0b53f=_0x312573();while(!![]){try{const _0x23585e=parseInt(_0x486ebe(0x1b1))/0x1*(parseInt(_0x486ebe(0x1b5))/0x2)+parseInt(_0x486ebe(0x1b4))/0x3+-parseInt(_0x486ebe(0x1ae))/0x4*(parseInt(_0x486ebe(0x1af))/0x5)+parseInt(_0x486ebe(0x1b3))/0x6+-parseInt(_0x486ebe(0x1b6))/0x7*(parseInt(_0x486ebe(0x1b7))/0x8)+-parseInt(_0x486ebe(0x1ad))/0x9*(-parseInt(_0x486ebe(0x1b0))/0xa)+parseInt(_0x486ebe(0x1ac))/0xb*(-parseInt(_0x486ebe(0x1b2))/0xc);if(_0x23585e===_0x391389)break;else _0xf0b53f['push'](_0xf0b53f['shift']());}catch(_0x215f15){_0xf0b53f['push'](_0xf0b53f['shift']());}}}(a347_0x1ad7,0x1d26f));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5ac3a0,_0x411c6e){const _0x1710ac=statSync(_0x5ac3a0);if(_0x1710ac['isDirectory']()){!existsSync(_0x411c6e)&&mkdirSync(_0x411c6e,{'recursive':!![]});const _0x51f06a=readdirSync(_0x5ac3a0);for(const _0x5aaeb6 of _0x51f06a){await copyDir(join(_0x5ac3a0,_0x5aaeb6),join(_0x411c6e,_0x5aaeb6));}}else copyFileSync(_0x5ac3a0,_0x411c6e);}function a347_0x4240(_0x53ac90,_0x2ef065){_0x53ac90=_0x53ac90-0x1ac;const _0x1ad7e5=a347_0x1ad7();let _0x4240e6=_0x1ad7e5[_0x53ac90];return _0x4240e6;}export function ensureDir(_0x1a40d9){!existsSync(_0x1a40d9)&&mkdirSync(_0x1a40d9,{'recursive':!![]});}export function pathExists(_0xd502c9){return existsSync(_0xd502c9);}function a347_0x1ad7(){const _0x585f45=['4vOCBTr','658265QdHGkK','10yPhmhh','3gXfUKc','24SoClsL','528786eptGxP','487563eMBGBW','132988SBrAXZ','18165fPmKzk','368JOYvVf','1110307ckcOfe','1099530DFruCW'];a347_0x1ad7=function(){return _0x585f45;};return a347_0x1ad7();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a348_0x30e938=a348_0x11f9;(function(_0x3028a2,_0x5b8bc6){const _0x33a4bd=a348_0x11f9,_0x2ca373=_0x3028a2();while(!![]){try{const _0x1f1ede=-parseInt(_0x33a4bd(0x15d))/0x1+parseInt(_0x33a4bd(0x158))/0x2*(-parseInt(_0x33a4bd(0x15f))/0x3)+-parseInt(_0x33a4bd(0x14d))/0x4+parseInt(_0x33a4bd(0x151))/0x5+-parseInt(_0x33a4bd(0x169))/0x6+-parseInt(_0x33a4bd(0x16f))/0x7*(parseInt(_0x33a4bd(0x162))/0x8)+parseInt(_0x33a4bd(0x165))/0x9;if(_0x1f1ede===_0x5b8bc6)break;else _0x2ca373['push'](_0x2ca373['shift']());}catch(_0x15dde0){_0x2ca373['push'](_0x2ca373['shift']());}}}(a348_0x3ea1,0x3d6ff));import{mkdirSync,writeFileSync}from'node:fs';function a348_0x3ea1(){const _0x85e2d5=['status','.md','join','146577zMuffe','cache','3aLrZZC','path','/skills/guides.json','368YiLZzS','CDN\x20data\x20is\x20missing\x20skillTemplate','length','8379720rKeUGN','\x0a\x0a>更新时间:','guides','map','2525736hFWSgr','utf-8','extendContent','entries','json','CDN\x20returned\x20invalid\x20data','11900mZfhMW','content','.lovrabet/skill/guides','547444QvXEjR','push','title','.lovrabet','550085VALmgp','lastUpdated','CDN\x20request\x20failed:\x20','replace','statusText','trimEnd','keys','13712hgBdHD','application/json'];a348_0x3ea1=function(){return _0x85e2d5;};return a348_0x3ea1();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0xae6250=a348_0x11f9,_0x46f912=getTemplateBaseUrl();return _0x46f912+_0xae6250(0x161);}const CACHE_DIR=join(homedir(),a348_0x30e938(0x150),a348_0x30e938(0x15e));function a348_0x11f9(_0x3ba77c,_0x22fc53){_0x3ba77c=_0x3ba77c-0x14b;const _0x3ea177=a348_0x3ea1();let _0x11f964=_0x3ea177[_0x3ba77c];return _0x11f964;}export async function fetchGuidesFromCDN(){const _0x101365=a348_0x30e938,_0x35dc66=getGuidesCdnUrl(),_0x48aa6d=await fetch(_0x35dc66,{'headers':{'Accept':_0x101365(0x159)}});if(!_0x48aa6d['ok'])throw new Error(_0x101365(0x153)+_0x48aa6d[_0x101365(0x15a)]+'\x20'+_0x48aa6d[_0x101365(0x155)]);const _0xe3115e=await _0x48aa6d[_0x101365(0x16d)]();if(!_0xe3115e['guides']||typeof _0xe3115e['guides']!=='object')throw new Error(_0x101365(0x16e));return _0xe3115e;}export function writeGuidesToProject(_0x423aea,_0x76728e,_0x1bf9a9=a348_0x30e938(0x14c),_0x2d2adb){const _0x1d9a5e=a348_0x30e938,_0x502cbd=join(_0x76728e,_0x1bf9a9);mkdirSync(_0x502cbd,{'recursive':!![]});for(const [_0x24466f,_0x122dba]of Object[_0x1d9a5e(0x16c)](_0x423aea[_0x1d9a5e(0x167)])){let _0x4df3f7=_0x122dba[_0x1d9a5e(0x14b)];_0x122dba[_0x1d9a5e(0x152)]&&(_0x4df3f7=appendUpdateTime(_0x4df3f7,_0x122dba['lastUpdated'])),writeFileSync(join(_0x502cbd,_0x24466f+_0x1d9a5e(0x15b)),_0x4df3f7,_0x1d9a5e(0x16a));}}export function appendUpdateTime(_0x522faf,_0x91e7b){const _0x165872=a348_0x30e938;return _0x522faf=_0x522faf[_0x165872(0x154)](/\n*>更新时间:.*$/m,''),_0x522faf[_0x165872(0x156)]()+(_0x165872(0x166)+_0x91e7b);}export function getSkillTemplate(_0x3203f8){return _0x3203f8['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x5d5f3c,_0x128543,_0x7ed0e){const _0x229763=a348_0x30e938,_0xa7088a=[];for(const [,_0x2dc498]of Object[_0x229763(0x16c)](_0x128543[_0x229763(0x167)])){_0x2dc498[_0x229763(0x16b)]&&_0xa7088a[_0x229763(0x14e)](_0x2dc498[_0x229763(0x16b)][_0x229763(0x156)]());}if(_0xa7088a[_0x229763(0x164)]===0x0)return _0x5d5f3c;return _0x5d5f3c[_0x229763(0x156)]()+'\x0a\x0a'+_0xa7088a[_0x229763(0x15c)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x300a39,_0x17737d,_0x45e849){const _0x29757f=a348_0x30e938,_0x5377a5=getSkillTemplate(_0x300a39);if(!_0x5377a5)throw new Error(_0x29757f(0x163));const _0x29f5b5=dirname(_0x17737d);mkdirSync(_0x29f5b5,{'recursive':!![]});let _0x15852b=_0x5377a5['replace'](/\{\{IDE_NAME\}\}/g,_0x45e849);_0x15852b=appendExtendContents(_0x15852b,_0x300a39),_0x300a39['skillTemplate'][_0x29757f(0x152)]&&(_0x15852b=appendUpdateTime(_0x15852b,_0x300a39['skillTemplate'][_0x29757f(0x152)])),writeFileSync(_0x17737d,_0x15852b,'utf-8');}export async function installGuides(_0x288c9f){const _0x36d6f4=a348_0x30e938,_0x157557=await fetchGuidesFromCDN();return writeGuidesToProject(_0x157557,_0x288c9f),Object[_0x36d6f4(0x157)](_0x157557[_0x36d6f4(0x167)])[_0x36d6f4(0x164)];}export function getGuidesSummary(_0x32c8e5){const _0x64b42b=a348_0x30e938;return Object[_0x64b42b(0x16c)](_0x32c8e5[_0x64b42b(0x167)])[_0x64b42b(0x168)](([_0x24b3fd,_0x180212])=>({'key':_0x24b3fd,'title':_0x180212[_0x64b42b(0x14f)],'path':_0x180212[_0x64b42b(0x160)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x429bad,_0x296dd6){const _0x5673c9=a349_0x5836,_0x2ff544=_0x429bad();while(!![]){try{const _0x50a06c=-parseInt(_0x5673c9(0xac))/0x1+-parseInt(_0x5673c9(0xa7))/0x2+parseInt(_0x5673c9(0xa6))/0x3+-parseInt(_0x5673c9(0x94))/0x4+-parseInt(_0x5673c9(0x95))/0x5*(-parseInt(_0x5673c9(0x9e))/0x6)+-parseInt(_0x5673c9(0x98))/0x7+-parseInt(_0x5673c9(0xaa))/0x8*(-parseInt(_0x5673c9(0xa4))/0x9);if(_0x50a06c===_0x296dd6)break;else _0x2ff544['push'](_0x2ff544['shift']());}catch(_0x35b4c5){_0x2ff544['push'](_0x2ff544['shift']());}}}(a349_0x1329,0xa694e));export async function httpRequest(_0x323e9b,_0x94057d={}){const _0x3b8e88=a349_0x5836,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x94057d;let _0x52768d=null;for(let _0x156d14=0x0;_0x156d14<=retries;_0x156d14++){try{const _0x163ce1=new AbortController(),_0x24ab15=setTimeout(()=>_0x163ce1['abort'](),timeout),_0x5b0647=await fetch(_0x323e9b,{'headers':headers,'signal':_0x163ce1[_0x3b8e88(0x99)]});clearTimeout(_0x24ab15);let _0x4f75bb;const _0x2fcce3=_0x5b0647[_0x3b8e88(0xa9)][_0x3b8e88(0xa0)](_0x3b8e88(0x9f));return _0x2fcce3?.[_0x3b8e88(0x96)](_0x3b8e88(0x9d))?_0x4f75bb=await _0x5b0647[_0x3b8e88(0x93)]():_0x4f75bb=await _0x5b0647[_0x3b8e88(0xad)](),{'ok':_0x5b0647['ok'],'status':_0x5b0647['status'],'statusText':_0x5b0647[_0x3b8e88(0x9a)],'data':_0x4f75bb,'headers':_0x5b0647[_0x3b8e88(0xa9)],'url':_0x5b0647['url'],'text':()=>_0x5b0647[_0x3b8e88(0xad)]()};}catch(_0x43aaf4){_0x52768d=_0x43aaf4 instanceof Error?_0x43aaf4:new Error(String(_0x43aaf4));if(_0x156d14===retries)break;if(shouldRetry(_0x43aaf4)){console[_0x3b8e88(0x9c)](_0x3b8e88(0xa3)+(_0x156d14+0x1)+'\x20in\x20'+retryDelay+_0x3b8e88(0x97)),await sleep(retryDelay);continue;}else break;}}throw _0x52768d||new Error(_0x3b8e88(0xab));}function shouldRetry(_0xc74419){const _0x37c10f=a349_0x5836;if(_0xc74419 instanceof Error){if(_0xc74419[_0x37c10f(0x9b)]===_0x37c10f(0xa1))return![];if(_0xc74419[_0x37c10f(0x9b)]==='TypeError'&&_0xc74419[_0x37c10f(0xa2)][_0x37c10f(0x96)]('fetch'))return!![];if(_0xc74419[_0x37c10f(0xa2)][_0x37c10f(0x96)](_0x37c10f(0xa5)))return!![];if(_0xc74419['message'][_0x37c10f(0x96)](_0x37c10f(0xa8)))return![];}return![];}function a349_0x5836(_0x278c3a,_0x477b88){_0x278c3a=_0x278c3a-0x93;const _0x132948=a349_0x1329();let _0x583642=_0x132948[_0x278c3a];return _0x583642;}function sleep(_0x30454e){return new Promise(_0x19079f=>setTimeout(_0x19079f,_0x30454e));}export function validateUrl(_0x2d8717){try{return new URL(_0x2d8717),!![];}catch{return![];}}function a349_0x1329(){const _0x9b9116=['includes','ms...','8666203JRcDpR','signal','statusText','name','log','application/json','840PxrEZc','content-type','get','AbortError','message','*\x20Request\x20failed;\x20retry\x20','3855429VfqMbX','ECONNRESET','912153JLRNgc','2335360WdNule','ENOTFOUND','headers','64mniBCa','Request\x20failed','440297SGcvAd','text','json','1932780LKdCgh','10015LYGxZR'];a349_0x1329=function(){return _0x9b9116;};return a349_0x1329();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b34bd,_0x138d8e){const _0x3f1035=a350_0x4454,_0x4a0d9a=_0x2b34bd();while(!![]){try{const _0x178953=-parseInt(_0x3f1035(0x122))/0x1*(parseInt(_0x3f1035(0x121))/0x2)+-parseInt(_0x3f1035(0x123))/0x3+-parseInt(_0x3f1035(0x12a))/0x4+-parseInt(_0x3f1035(0x11e))/0x5+parseInt(_0x3f1035(0x127))/0x6+-parseInt(_0x3f1035(0x125))/0x7*(-parseInt(_0x3f1035(0x12b))/0x8)+parseInt(_0x3f1035(0x124))/0x9*(parseInt(_0x3f1035(0x11f))/0xa);if(_0x178953===_0x138d8e)break;else _0x4a0d9a['push'](_0x4a0d9a['shift']());}catch(_0x5eeed2){_0x4a0d9a['push'](_0x4a0d9a['shift']());}}}(a350_0x3d3f,0x32e17));function a350_0x4454(_0x16e3fc,_0xbe64ab){_0x16e3fc=_0x16e3fc-0x11e;const _0x3d3f7a=a350_0x3d3f();let _0x445443=_0x3d3f7a[_0x16e3fc];return _0x445443;}function env(_0x404f07){return process.env[`RABETBASE_${_0x404f07}`]||process.env[`LOVRABET_${_0x404f07}`]||undefined;}export function isNonInteractive(_0x34ad18){const _0xa710ea=a350_0x4454;return!!(_0x34ad18[_0xa710ea(0x120)]||_0x34ad18['ci']||env('CI')===_0xa710ea(0x12c)||process.env.CI===_0xa710ea(0x12c)||!process[_0xa710ea(0x128)]['isTTY']||!isStdinRawModeSupported());}function a350_0x3d3f(){const _0x434ac5=['279516NhlPYE','stdout','stdin','846636PgCfrQ','680cKybUI','true','1673770ukVyhd','3310Trknaw','nonInteractive','256rQUPFu','2957DgjZOm','993519AfZAVp','30582nTnhiw','24143GOvUzz','setRawMode'];a350_0x3d3f=function(){return _0x434ac5;};return a350_0x3d3f();}function isStdinRawModeSupported(){const _0x488481=a350_0x4454;if(!process['stdin']['isTTY'])return![];try{const _0x3d6d88=process['stdin']['isRaw'];return process[_0x488481(0x129)][_0x488481(0x126)](!![]),process[_0x488481(0x129)]['setRawMode'](_0x3d6d88??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a351_0x42f34c=a351_0x2b75;function a351_0x2b75(_0x378eb2,_0xd34a86){_0x378eb2=_0x378eb2-0x198;const _0x4d304c=a351_0x4d30();let _0x2b756d=_0x4d304c[_0x378eb2];return _0x2b756d;}function a351_0x4d30(){const _0x16459b=['unknown','733602jEPABP','3286676IvDvJK','setLogPath','printf','File','transports','11106640MgAcot','Failed:\x20','createLogger','now','utf8','winstonLogger','details','3098356bfNgmg','10407254swARyV','filter','rawCommand','writeFileSync','mkdirSync','existsSync','success','duration','logTask','readFileSync','parse','toISOString','timestamp','map','clear','813201RBCtuP','warn','errors','Starting:\x20','dirname','red','error','yellow','1Obtxod','blue','combine','green','readLogs','5706KcsXOB','getWinstonInstance','message','level','Failed\x20to\x20read\x20logs:','split','join','1530UMKWut','logFilePath','stringify','info','84esDKWR','10sfUYJy','format','Failed\x20to\x20clear\x20logs:','Completed:\x20','currentRawCommand','initWinstonLogger'];a351_0x4d30=function(){return _0x16459b;};return a351_0x4d30();}(function(_0x461fd9,_0x4287b5){const _0x5f4573=a351_0x2b75,_0x1bca56=_0x461fd9();while(!![]){try{const _0x371d2b=parseInt(_0x5f4573(0x1c9))/0x1*(-parseInt(_0x5f4573(0x1b1))/0x2)+parseInt(_0x5f4573(0x1c1))/0x3+-parseInt(_0x5f4573(0x1a5))/0x4*(parseInt(_0x5f4573(0x19d))/0x5)+-parseInt(_0x5f4573(0x1a4))/0x6*(-parseInt(_0x5f4573(0x19c))/0x7)+parseInt(_0x5f4573(0x1aa))/0x8+-parseInt(_0x5f4573(0x1ce))/0x9*(-parseInt(_0x5f4573(0x198))/0xa)+parseInt(_0x5f4573(0x1b2))/0xb;if(_0x371d2b===_0x4287b5)break;else _0x1bca56['push'](_0x1bca56['shift']());}catch(_0x263e7e){_0x1bca56['push'](_0x1bca56['shift']());}}}(a351_0x4d30,0xee931));import a351_0x291afe from'winston';import a351_0xfaf613 from'node:fs';import a351_0x810d24 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a351_0x42f34c(0x1a1)]='';constructor(){const _0x41a37f=a351_0x42f34c;this[_0x41a37f(0x199)]='';}['setRawCommand'](_0xa4fb32){const _0xca1edd=a351_0x42f34c;this[_0xca1edd(0x1a1)]=_0xa4fb32;}[a351_0x42f34c(0x1a2)](){const _0x44ea8f=a351_0x42f34c,_0x42f971=a351_0x810d24[_0x44ea8f(0x1c5)](this[_0x44ea8f(0x199)]);!a351_0xfaf613[_0x44ea8f(0x1b7)](_0x42f971)&&a351_0xfaf613[_0x44ea8f(0x1b6)](_0x42f971,{'recursive':!![]});const _0x5d8878=a351_0x291afe[_0x44ea8f(0x19e)][_0x44ea8f(0x1cb)](a351_0x291afe[_0x44ea8f(0x19e)][_0x44ea8f(0x1be)](),a351_0x291afe['format'][_0x44ea8f(0x1c3)]({'stack':!![]}),a351_0x291afe[_0x44ea8f(0x19e)][_0x44ea8f(0x1a7)](_0x20679a=>{const _0x5acd14=_0x44ea8f,_0x188666={'timestamp':_0x20679a[_0x5acd14(0x1be)]||new Date()[_0x5acd14(0x1bd)](),'level':_0x20679a[_0x5acd14(0x1d1)]||'info','command':_0x20679a['command']||_0x5acd14(0x1a3),'rawCommand':_0x20679a[_0x5acd14(0x1b4)]||this[_0x5acd14(0x1a1)]||undefined,'message':_0x20679a[_0x5acd14(0x1d0)]||'','duration':_0x20679a[_0x5acd14(0x1b9)]||undefined,'details':_0x20679a[_0x5acd14(0x1b0)]||undefined};return JSON[_0x5acd14(0x19a)](_0x188666);}));this['winstonLogger']=a351_0x291afe[_0x44ea8f(0x1ac)]({'level':_0x44ea8f(0x19b),'format':_0x5d8878,'transports':[new a351_0x291afe[(_0x44ea8f(0x1a9))][(_0x44ea8f(0x1a8))]({'filename':this[_0x44ea8f(0x199)],'level':_0x44ea8f(0x19b)})],'silent':![]}),a351_0x291afe['addColors']({'success':_0x44ea8f(0x1cc),'error':_0x44ea8f(0x1c6),'warn':_0x44ea8f(0x1c8),'info':_0x44ea8f(0x1ca)});}[a351_0x42f34c(0x1a6)](_0x2cfd24){const _0x99a4=a351_0x42f34c;this['logFilePath']=a351_0x810d24[_0x99a4(0x1d4)](_0x2cfd24,'.lovrabet.log'),this[_0x99a4(0x1af)]&&this[_0x99a4(0x1af)][_0x99a4(0x1c0)](),this[_0x99a4(0x1a2)]();}[a351_0x42f34c(0x19b)](_0x56041a,_0xc22431,_0x3175fc){const _0x5eff61=a351_0x42f34c;if(!this[_0x5eff61(0x199)]||!this[_0x5eff61(0x1af)])return;this[_0x5eff61(0x1af)][_0x5eff61(0x19b)](_0xc22431,{'command':_0x56041a,'details':_0x3175fc});}['success'](_0x5fb546,_0x34a981,_0x4bf7ad,_0x4927a4){const _0x4eee95=a351_0x42f34c;if(!this[_0x4eee95(0x199)]||!this[_0x4eee95(0x1af)])return;this[_0x4eee95(0x1af)]['log']('info',_0x34a981,{'level':_0x4eee95(0x1b8),'command':_0x5fb546,'duration':_0x4bf7ad,'details':_0x4927a4});}[a351_0x42f34c(0x1c7)](_0x3914fd,_0x80a846,_0x553301){const _0x355d35=a351_0x42f34c;if(!this[_0x355d35(0x199)]||!this[_0x355d35(0x1af)])return;this[_0x355d35(0x1af)][_0x355d35(0x1c7)](_0x80a846,{'command':_0x3914fd,'details':_0x553301});}[a351_0x42f34c(0x1c2)](_0x481c14,_0x3896f7,_0x338b0d){const _0x595e29=a351_0x42f34c;if(!this[_0x595e29(0x199)]||!this[_0x595e29(0x1af)])return;this[_0x595e29(0x1af)]['warn'](_0x3896f7,{'command':_0x481c14,'details':_0x338b0d});}async[a351_0x42f34c(0x1ba)](_0x38a10d,_0x480258,_0x4d8d57){const _0xde41c=a351_0x42f34c,_0x10c870=Date[_0xde41c(0x1ad)]();this[_0xde41c(0x19b)](_0x38a10d,_0xde41c(0x1c4)+_0x480258);try{const _0x54e8af=await _0x4d8d57(),_0x47f64e=Date[_0xde41c(0x1ad)]()-_0x10c870;return this[_0xde41c(0x1b8)](_0x38a10d,_0xde41c(0x1a0)+_0x480258,_0x47f64e),_0x54e8af;}catch(_0x13b75f){const _0x53ca42=Date['now']()-_0x10c870;this[_0xde41c(0x1c7)](_0x38a10d,_0xde41c(0x1ab)+_0x480258,{'error':_0x13b75f instanceof Error?_0x13b75f[_0xde41c(0x1d0)]:String(_0x13b75f),'duration':_0x53ca42});throw _0x13b75f;}}[a351_0x42f34c(0x1cd)](){const _0x115890=a351_0x42f34c;try{if(!a351_0xfaf613[_0x115890(0x1b7)](this[_0x115890(0x199)]))return[];const _0x48f159=a351_0xfaf613[_0x115890(0x1bb)](this[_0x115890(0x199)],_0x115890(0x1ae));return _0x48f159[_0x115890(0x1d3)]('\x0a')[_0x115890(0x1b3)](_0x17a340=>_0x17a340['trim']())[_0x115890(0x1bf)](_0x2c22e3=>JSON[_0x115890(0x1bc)](_0x2c22e3));}catch(_0x283023){return console[_0x115890(0x1c2)](_0x115890(0x1d2),_0x283023),[];}}['clearLogs'](){const _0x2b58fd=a351_0x42f34c;try{a351_0xfaf613[_0x2b58fd(0x1b7)](this[_0x2b58fd(0x199)])&&a351_0xfaf613[_0x2b58fd(0x1b5)](this[_0x2b58fd(0x199)],'',_0x2b58fd(0x1ae));}catch(_0x26b1a2){console['warn'](_0x2b58fd(0x19f),_0x26b1a2);}}[a351_0x42f34c(0x1cf)](){const _0x32ccdb=a351_0x42f34c;return this[_0x32ccdb(0x1af)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf82928,_0x4e9518){const _0xf5ae3=a352_0x2e47,_0x58b312=_0xf82928();while(!![]){try{const _0x29ea32=-parseInt(_0xf5ae3(0x19e))/0x1+-parseInt(_0xf5ae3(0x1ac))/0x2*(-parseInt(_0xf5ae3(0x1af))/0x3)+-parseInt(_0xf5ae3(0x1a6))/0x4*(-parseInt(_0xf5ae3(0x19f))/0x5)+parseInt(_0xf5ae3(0x1ab))/0x6*(parseInt(_0xf5ae3(0x1a4))/0x7)+-parseInt(_0xf5ae3(0x1a3))/0x8+-parseInt(_0xf5ae3(0x1a0))/0x9*(-parseInt(_0xf5ae3(0x1ae))/0xa)+-parseInt(_0xf5ae3(0x1a5))/0xb*(parseInt(_0xf5ae3(0x1aa))/0xc);if(_0x29ea32===_0x4e9518)break;else _0x58b312['push'](_0x58b312['shift']());}catch(_0x40c55e){_0x58b312['push'](_0x58b312['shift']());}}}(a352_0x3a98,0x4d6a2));function a352_0x3a98(){const _0xc65d3b=['parse','Invalid\x20JSON\x20for\x20--params:\x20','2913424rbVHvs','21BlbaPo','33ZzBlcz','4OeqhiB','validation','isArray','object','2519268pnRdZl','594078libPDR','28306MTYVhW','--params\x20must\x20be\x20a\x20JSON\x20object','19840dCVOdp','111DysxUD','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','137165BbRGoZ','2780630RjSGZw','324kNCnQE'];a352_0x3a98=function(){return _0xc65d3b;};return a352_0x3a98();}import{CliErrors}from'../errors.js';function a352_0x2e47(_0x7514f,_0x4ecd7a){_0x7514f=_0x7514f-0x19e;const _0x3a985f=a352_0x3a98();let _0x2e4782=_0x3a985f[_0x7514f];return _0x2e4782;}export function parseJsonParams(_0x41f55d){const _0x4d28e0=a352_0x2e47;if(!_0x41f55d)return undefined;let _0x105e2f;try{_0x105e2f=JSON[_0x4d28e0(0x1a1)](_0x41f55d);}catch{throw CliErrors[_0x4d28e0(0x1a7)](_0x4d28e0(0x1a2)+_0x41f55d);}if(!_0x105e2f||typeof _0x105e2f!==_0x4d28e0(0x1a9)||Array[_0x4d28e0(0x1a8)](_0x105e2f))throw CliErrors[_0x4d28e0(0x1a7)](_0x4d28e0(0x1ad),_0x4d28e0(0x1b0));return _0x105e2f;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a353_0x2e5a2a=a353_0x163e;(function(_0x16ddd6,_0x560a2c){const _0x3fe34b=a353_0x163e,_0x563aa5=_0x16ddd6();while(!![]){try{const _0x35c274=-parseInt(_0x3fe34b(0x122))/0x1+parseInt(_0x3fe34b(0x11c))/0x2+parseInt(_0x3fe34b(0x119))/0x3*(-parseInt(_0x3fe34b(0x11e))/0x4)+parseInt(_0x3fe34b(0x120))/0x5*(parseInt(_0x3fe34b(0x11d))/0x6)+parseInt(_0x3fe34b(0x121))/0x7+parseInt(_0x3fe34b(0x118))/0x8+parseInt(_0x3fe34b(0x11b))/0x9*(-parseInt(_0x3fe34b(0x11a))/0xa);if(_0x35c274===_0x560a2c)break;else _0x563aa5['push'](_0x563aa5['shift']());}catch(_0x676e){_0x563aa5['push'](_0x563aa5['shift']());}}}(a353_0x4a0c,0x67d4d));export const isWindows=process[a353_0x2e5a2a(0x11f)]==='win32';function a353_0x4a0c(){const _0x34aac8=['77961bvQfUv','3840BsSMwV','2241XAxLrA','1279460rYTFkj','348iZPDxT','44TAPhgB','platform','17880MbMDEo','539245zjFUus','217841dafPxU','803472KNQLMC'];a353_0x4a0c=function(){return _0x34aac8;};return a353_0x4a0c();}function a353_0x163e(_0x2b7087,_0x3ec661){_0x2b7087=_0x2b7087-0x118;const _0x4a0c81=a353_0x4a0c();let _0x163e7a=_0x4a0c81[_0x2b7087];return _0x163e7a;}export function resolveNpmBin(_0x557604){return isWindows?_0x557604+'.cmd':_0x557604;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x3fcf31){return new Promise(_0x3aa32b=>setTimeout(_0x3aa32b,_0x3fcf31));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a355_0xc065(){const _0x4076a9=['.js','mkdir','toLowerCase','replace','isFile','9812810AfXIhR','pop','.json','datasetCode','replaceApiContent','split','44pAmWvg','isDirectory','.tpl','processTemplate','alias','.md','charAt','utf8','join','writeFile','.css','146080PndkTN','getHours','tableName:\x20\x22','readdir','processFile','promises','toDisplayTitle','\x0a\x20\x20\x20\x20{\x20','sdk-config','info','toComponentName','Starting\x20template\x20content\x20replacement','getMinutes','2307030rUMZYa','map','name','includes','alias:\x20\x22','processDirectory','replaceContent','now','640SgmGfh','formatLocalTimestamp','toISOString','endsWith','name:\x20\x22','toUpperCase','72234tTZxiA','slice','readFile','Template\x20content\x20replacement\x20failed','push','extname','.jsx','3SDirHK','pad','template','1905092RuFLjO','error','getSeconds','12wiLtHK','tableName','.ts','.scss','60015XCwRnb','getFullYear','3297894GuBVXp','7oUZCxO'];a355_0xc065=function(){return _0x4076a9;};return a355_0xc065();}const a355_0x1c6027=a355_0x25cf;(function(_0x5d93e0,_0x5717f5){const _0x9720a1=a355_0x25cf,_0x1ca66d=_0x5d93e0();while(!![]){try{const _0x402c80=parseInt(_0x9720a1(0x1c3))/0x1+parseInt(_0x9720a1(0x1e8))/0x2*(parseInt(_0x9720a1(0x1e5))/0x3)+-parseInt(_0x9720a1(0x1b8))/0x4*(parseInt(_0x9720a1(0x1a9))/0x5)+parseInt(_0x9720a1(0x1ab))/0x6*(-parseInt(_0x9720a1(0x1ac))/0x7)+parseInt(_0x9720a1(0x1d8))/0x8*(-parseInt(_0x9720a1(0x1de))/0x9)+parseInt(_0x9720a1(0x1b2))/0xa+parseInt(_0x9720a1(0x1d0))/0xb*(-parseInt(_0x9720a1(0x1eb))/0xc);if(_0x402c80===_0x5717f5)break;else _0x1ca66d['push'](_0x1ca66d['shift']());}catch(_0x384396){_0x1ca66d['push'](_0x1ca66d['shift']());}}}(a355_0xc065,0x8566f));import a355_0x279f37 from'node:fs';import a355_0x23dbb1 from'node:path';function a355_0x25cf(_0x345c44,_0x5b5f41){_0x345c44=_0x345c44-0x1a8;const _0xc0654c=a355_0xc065();let _0x25cf37=_0xc0654c[_0x345c44];return _0x25cf37;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a355_0x1c6027(0x1e6)](_0x2acbac){return String(_0x2acbac)['padStart'](0x2,'0');}static[a355_0x1c6027(0x1d9)](_0x1c764e){const _0x66e000=a355_0x1c6027,_0x51c13d=_0x1c764e[_0x66e000(0x1aa)](),_0x35afbb=this[_0x66e000(0x1e6)](_0x1c764e['getMonth']()+0x1),_0x4b2d48=this[_0x66e000(0x1e6)](_0x1c764e['getDate']()),_0xa65c9d=this[_0x66e000(0x1e6)](_0x1c764e[_0x66e000(0x1c4)]()),_0x569726=this[_0x66e000(0x1e6)](_0x1c764e[_0x66e000(0x1cf)]()),_0x2e877d=this[_0x66e000(0x1e6)](_0x1c764e[_0x66e000(0x1ea)]());return{'createdAt':_0x51c13d+'-'+_0x35afbb+'-'+_0x4b2d48+'\x20'+_0xa65c9d+':'+_0x569726+':'+_0x2e877d,'createdDate':_0x51c13d+'-'+_0x35afbb+'-'+_0x4b2d48,'createdTime':_0xa65c9d+':'+_0x569726+':'+_0x2e877d};}static[a355_0x1c6027(0x1cd)](_0x9a5d63){const _0x13ead3=a355_0x1c6027,_0x113da9=_0x9a5d63[_0x13ead3(0x1b7)]('/')[_0x13ead3(0x1b3)]()||_0x9a5d63;return _0x113da9[_0x13ead3(0x1b7)]('-')['map'](_0x58f255=>_0x58f255[_0x13ead3(0x1be)](0x0)[_0x13ead3(0x1dd)]()+_0x58f255[_0x13ead3(0x1df)](0x1)[_0x13ead3(0x1af)]())['join']('');}static[a355_0x1c6027(0x1c9)](_0x258192){const _0x334fc5=a355_0x1c6027,_0x344718=_0x258192[_0x334fc5(0x1b7)]('/')[_0x334fc5(0x1b3)]()||_0x258192;return _0x344718['split']('-')[_0x334fc5(0x1d1)](_0x195a80=>_0x195a80[_0x334fc5(0x1be)](0x0)[_0x334fc5(0x1dd)]()+_0x195a80[_0x334fc5(0x1df)](0x1)[_0x334fc5(0x1af)]())['join']('\x20');}static[a355_0x1c6027(0x1d6)](_0x5e9375,_0x5cefc1,_0x12c30c){const _0x2ef762=a355_0x1c6027,_0x3a277d=this[_0x2ef762(0x1cd)](_0x5cefc1),_0x56910e=this[_0x2ef762(0x1c9)](_0x5cefc1),{createdAt:_0x3c7c01,createdDate:_0x28b6fc,createdTime:_0xbdb81b}=this[_0x2ef762(0x1d9)](new Date());let _0x2b785c=_0x5e9375[_0x2ef762(0x1b0)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x3a277d)[_0x2ef762(0x1b0)](/\{DisplayTitle\}/g,_0x56910e)[_0x2ef762(0x1b0)](/\{PageName\}/g,_0x5cefc1)['replace'](/\{TemplateName\}/g,_0x12c30c)[_0x2ef762(0x1b0)](/\{CreatedAt\}/g,_0x3c7c01)['replace'](/\{CreatedDate\}/g,_0x28b6fc)[_0x2ef762(0x1b0)](/\{CreatedTime\}/g,_0xbdb81b);return _0x2b785c;}static[a355_0x1c6027(0x1b6)](_0x5bcfae,_0x3fa66d,_0x1c1333,_0xac2a0a,_0x244218,_0x5a8218,_0x388c71,_0x1730c9,_0x4a6b36){const _0x113434=a355_0x1c6027,_0x513b05=new Date(),_0x5a03de=_0x513b05[_0x113434(0x1da)](),_0x427525=_0x1c1333[_0x113434(0x1d1)](_0x490b45=>{const _0x45c46d=_0x113434,_0x2a406f=['datasetCode:\x20\x22'+_0x490b45[_0x45c46d(0x1b5)]+'\x22',_0x45c46d(0x1c5)+_0x490b45[_0x45c46d(0x1ec)]+'\x22',_0x45c46d(0x1dc)+_0x490b45[_0x45c46d(0x1d2)]+'\x22'];return _0x490b45['alias']&&_0x2a406f[_0x45c46d(0x1e2)](_0x45c46d(0x1d4)+_0x490b45['alias']+'\x22'),_0x45c46d(0x1ca)+_0x2a406f[_0x45c46d(0x1c0)](',\x20')+'\x20},';})[_0x113434(0x1c0)](''),_0x26d980=_0xac2a0a||_0x1c1333[0x0]?.[_0x113434(0x1bc)]||'YourModel';let _0x2ed3fe=_0x5bcfae['replace'](/\{AppCode\}/g,_0x3fa66d)[_0x113434(0x1b0)](/\{ModelConfigs\}/g,_0x427525)[_0x113434(0x1b0)](/\{ExampleModelName\}/g,_0x26d980)[_0x113434(0x1b0)](/\{ApiFileName\}/g,_0x244218||'api')[_0x113434(0x1b0)](/\{ConfigName\}/g,_0x5a8218||'default')[_0x113434(0x1b0)](/\{ClientConfigParam\}/g,_0x388c71||'')[_0x113434(0x1b0)](/\{SdkConfigFileName\}/g,_0x4a6b36||_0x113434(0x1cb))[_0x113434(0x1b0)](/\{VarPrefix\}/g,_0x1730c9||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x5a03de);return _0x2ed3fe;}static async[a355_0x1c6027(0x1bb)](_0x34d4f3,_0x389353,_0x1ed901,_0x179446,_0x4c77eb=!![]){const _0x2b6b94=a355_0x1c6027,_0x5eebe4=Date['now']();try{_0x4c77eb&&logger[_0x2b6b94(0x1cc)](_0x2b6b94(0x1e7),_0x2b6b94(0x1ce),{'templatePath':_0x34d4f3,'targetPath':_0x389353,'pageName':_0x1ed901,'templateName':_0x179446});await a355_0x279f37[_0x2b6b94(0x1c8)][_0x2b6b94(0x1ae)](_0x389353,{'recursive':!![]}),await this[_0x2b6b94(0x1d5)](_0x34d4f3,_0x389353,_0x1ed901,_0x179446);if(_0x4c77eb){const _0x2c1c0d=Date[_0x2b6b94(0x1d7)]()-_0x5eebe4;logger['success'](_0x2b6b94(0x1e7),'Template\x20content\x20replacement\x20completed',_0x2c1c0d,{'pageName':_0x1ed901,'templateName':_0x179446});}}catch(_0x32b23d){if(_0x4c77eb){const _0x712799=Date[_0x2b6b94(0x1d7)]()-_0x5eebe4;logger[_0x2b6b94(0x1e9)](_0x2b6b94(0x1e7),_0x2b6b94(0x1e1),{'templatePath':_0x34d4f3,'targetPath':_0x389353,'pageName':_0x1ed901,'templateName':_0x179446,'error':_0x32b23d instanceof Error?_0x32b23d['message']:String(_0x32b23d),'duration':_0x712799});}throw _0x32b23d;}}static async[a355_0x1c6027(0x1d5)](_0xb1aa70,_0x2a00f9,_0x411dc2,_0x3bcb55){const _0x2f1445=a355_0x1c6027,_0x20dd20=await a355_0x279f37[_0x2f1445(0x1c8)][_0x2f1445(0x1c6)](_0xb1aa70,{'withFileTypes':!![]});for(const _0xb6127d of _0x20dd20){const _0x43567f=a355_0x23dbb1[_0x2f1445(0x1c0)](_0xb1aa70,_0xb6127d[_0x2f1445(0x1d2)]);let _0x2e70b4=a355_0x23dbb1[_0x2f1445(0x1c0)](_0x2a00f9,_0xb6127d[_0x2f1445(0x1d2)]);_0xb6127d[_0x2f1445(0x1d2)][_0x2f1445(0x1db)]('.tpl')&&(_0x2e70b4=a355_0x23dbb1[_0x2f1445(0x1c0)](_0x2a00f9,_0xb6127d[_0x2f1445(0x1d2)][_0x2f1445(0x1b0)](/\.tpl$/,'')));if(_0xb6127d[_0x2f1445(0x1b9)]())await a355_0x279f37['promises']['mkdir'](_0x2e70b4,{'recursive':!![]}),await this['processDirectory'](_0x43567f,_0x2e70b4,_0x411dc2,_0x3bcb55);else _0xb6127d[_0x2f1445(0x1b1)]()&&await this['processFile'](_0x43567f,_0x2e70b4,_0x411dc2,_0x3bcb55);}}static async[a355_0x1c6027(0x1c7)](_0x54c594,_0x197ce2,_0x348497,_0x4d5164){const _0x286cde=a355_0x1c6027,_0x28ea5f=a355_0x23dbb1[_0x286cde(0x1e3)](_0x54c594)[_0x286cde(0x1af)]();_0x54c594['endsWith'](_0x286cde(0x1ba))&&(_0x197ce2=_0x197ce2['replace'](/\.tpl$/,''));const _0x2360d7=['.tsx',_0x286cde(0x1ed),_0x286cde(0x1e4),_0x286cde(0x1ad),_0x286cde(0x1b4),_0x286cde(0x1bd),_0x286cde(0x1c2),_0x286cde(0x1a8),_0x286cde(0x1ba)];if(_0x2360d7[_0x286cde(0x1d3)](_0x28ea5f)||_0x54c594[_0x286cde(0x1db)](_0x286cde(0x1ba))){const _0x37fe8a=await a355_0x279f37[_0x286cde(0x1c8)][_0x286cde(0x1e0)](_0x54c594,_0x286cde(0x1bf)),_0x9143a2=this[_0x286cde(0x1d6)](_0x37fe8a,_0x348497,_0x4d5164);await a355_0x279f37[_0x286cde(0x1c8)][_0x286cde(0x1c1)](_0x197ce2,_0x9143a2,'utf8');}else await a355_0x279f37[_0x286cde(0x1c8)]['copyFile'](_0x54c594,_0x197ce2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3bd9e2,_0x42dc97){const _0x4ad571=a356_0x4a6c,_0x591641=_0x3bd9e2();while(!![]){try{const _0x100b87=-parseInt(_0x4ad571(0x101))/0x1*(parseInt(_0x4ad571(0xea))/0x2)+parseInt(_0x4ad571(0xe7))/0x3*(-parseInt(_0x4ad571(0xf2))/0x4)+-parseInt(_0x4ad571(0xfb))/0x5*(parseInt(_0x4ad571(0xed))/0x6)+parseInt(_0x4ad571(0x104))/0x7*(-parseInt(_0x4ad571(0x103))/0x8)+parseInt(_0x4ad571(0xe9))/0x9+parseInt(_0x4ad571(0xe8))/0xa+parseInt(_0x4ad571(0xf3))/0xb;if(_0x100b87===_0x42dc97)break;else _0x591641['push'](_0x591641['shift']());}catch(_0x3a496c){_0x591641['push'](_0x591641['shift']());}}}(a356_0x4999,0xa5cfa));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a356_0x4999(){const _0x4addbf=['number','1066836hBKiMx','12472510FFszFp','9624780vCRYLZ','59530uqSgeD','true','toLowerCase','24rXBzmI','gte','stableVersion','utf8','.cache','12THpaNn','11357566SFfhML','lastNotifiedVersion','lastNotifiedAt','checkedAt','parse','\x20update','object','trim','207595BiIDEi',',\x20run:\x20','/v/','rabetbase-cli','valid','latest','25oReTBp','https://www.npmjs.com/package/','88DuyhjH','440986pWSMRu'];a356_0x4999=function(){return _0x4addbf;};return a356_0x4999();}import a356_0x2b841b from'semver';function a356_0x4a6c(_0x2bc2a2,_0x1a33f9){_0x2bc2a2=_0x2bc2a2-0xe7;const _0x499949=a356_0x4999();let _0x4a6cfe=_0x499949[_0x2bc2a2];return _0x4a6cfe;}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 _0x5ce2c9=a356_0x4a6c,_0x4d4d7e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x5ce2c9(0xfa)]()[_0x5ce2c9(0xec)]();return _0x4d4d7e==='1'||_0x4d4d7e===_0x5ce2c9(0xeb)||_0x4d4d7e==='yes';}function cacheRoot(){const _0x3f38ef=a356_0x4a6c;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3f38ef(0xf1));}export function getUpdateNoticeCachePath(){const _0xa4d998=a356_0x4a6c;return join(cacheRoot(),_0xa4d998(0xfe),'update-check.json');}async function readUpdateNoticeCache(){const _0x167900=a356_0x4a6c;try{const _0x457c3d=await readFile(getUpdateNoticeCachePath(),_0x167900(0xf0)),_0x43a8c1=JSON[_0x167900(0xf7)](_0x457c3d);if(!_0x43a8c1||typeof _0x43a8c1!==_0x167900(0xf9))return{};return _0x43a8c1;}catch{return{};}}async function writeUpdateNoticeCache(_0x2dcfdb){try{const _0x3b5bc3=getUpdateNoticeCachePath();await mkdir(dirname(_0x3b5bc3),{'recursive':!![]}),await writeFile(_0x3b5bc3,JSON['stringify'](_0x2dcfdb,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x56c4a3,_0x1df3b7){return typeof _0x56c4a3['checkedAt']==='number'&&_0x1df3b7-_0x56c4a3['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x281fd9,_0x208ebf,_0x5299b9){const _0x323f48=a356_0x4a6c;return _0x281fd9[_0x323f48(0xf4)]===_0x208ebf&&typeof _0x281fd9[_0x323f48(0xf5)]===_0x323f48(0x105)&&_0x5299b9-_0x281fd9[_0x323f48(0xf5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5b4693){const _0x3ebc48=a356_0x4a6c;return _0x3ebc48(0x102)+NPM_PACKAGE_NAME+_0x3ebc48(0xfd)+_0x5b4693;}export async function resolveLatestUpdateNotice(){const _0x4fcb1f=a356_0x4a6c;if(isUpdateNoticeDisabled())return null;try{const _0x1469dc=Date['now'](),_0x4c8086=getCliVersion(),_0x4e0876=await readUpdateNoticeCache();let _0x3f26f2=isFreshCheck(_0x4e0876,_0x1469dc)?_0x4e0876[_0x4fcb1f(0x100)]?.[_0x4fcb1f(0xfa)]():undefined;if(!_0x3f26f2&&!isFreshCheck(_0x4e0876,_0x1469dc)){const _0x3b8998=await getCliVersionPolicy();_0x3f26f2=_0x3b8998?.[_0x4fcb1f(0xef)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x4e0876,'checkedAt':_0x1469dc,'latest':_0x3f26f2,'failed':!_0x3f26f2});}if(!_0x3f26f2||!a356_0x2b841b['valid'](_0x4c8086)||!a356_0x2b841b[_0x4fcb1f(0xff)](_0x3f26f2))return null;if(a356_0x2b841b[_0x4fcb1f(0xee)](_0x4c8086,_0x3f26f2))return null;if(isRecentlyNotified(_0x4e0876,_0x3f26f2,_0x1469dc))return null;const _0xfaaba7=CLI_BIN_NAME+_0x4fcb1f(0xf8);return await writeUpdateNoticeCache({..._0x4e0876,'checkedAt':isFreshCheck(_0x4e0876,_0x1469dc)?_0x4e0876[_0x4fcb1f(0xf6)]:_0x1469dc,'latest':_0x3f26f2,'failed':![],'lastNotifiedVersion':_0x3f26f2,'lastNotifiedAt':_0x1469dc}),{'command':_0xfaaba7,'current':_0x4c8086,'latest':_0x3f26f2,'url':buildNpmVersionUrl(_0x3f26f2),'message':CLI_BIN_NAME+'\x20'+_0x3f26f2+'\x20available,\x20current\x20'+_0x4c8086+_0x4fcb1f(0xfc)+_0xfaaba7};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7a58b9,_0x31e8ad){var _0x47d8a3=a357_0x570c,_0x1dfcab=_0x7a58b9();while(!![]){try{var _0x28174e=-parseInt(_0x47d8a3(0xfb))/0x1+parseInt(_0x47d8a3(0xff))/0x2*(parseInt(_0x47d8a3(0xfa))/0x3)+-parseInt(_0x47d8a3(0x100))/0x4*(-parseInt(_0x47d8a3(0xf8))/0x5)+parseInt(_0x47d8a3(0xf9))/0x6+-parseInt(_0x47d8a3(0xfc))/0x7*(-parseInt(_0x47d8a3(0xfe))/0x8)+-parseInt(_0x47d8a3(0xf7))/0x9+parseInt(_0x47d8a3(0xfd))/0xa;if(_0x28174e===_0x31e8ad)break;else _0x1dfcab['push'](_0x1dfcab['shift']());}catch(_0x3b15fb){_0x1dfcab['push'](_0x1dfcab['shift']());}}}(a357_0x5053,0x7d090));import{VERSION}from'../generated/build-info.js';function a357_0x5053(){var _0x107ebd=['1573388lDYsur','6333255FRsQpo','5VcPnZW','324462PlkadF','963nsvMsy','689942EdUjys','665wjoqaF','5704220gQLBtA','7600balosb','4970daESFI'];a357_0x5053=function(){return _0x107ebd;};return a357_0x5053();}function a357_0x570c(_0x305945,_0x24cd2b){_0x305945=_0x305945-0xf7;var _0x5053c9=a357_0x5053();var _0x570c34=_0x5053c9[_0x305945];return _0x570c34;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48a77a,_0x2b8432){var _0x1567f9=a358_0x5760,_0x1a1092=_0x48a77a();while(!![]){try{var _0x456274=-parseInt(_0x1567f9(0xa3))/0x1*(-parseInt(_0x1567f9(0xa4))/0x2)+-parseInt(_0x1567f9(0x9e))/0x3+-parseInt(_0x1567f9(0xa0))/0x4+parseInt(_0x1567f9(0xa1))/0x5+-parseInt(_0x1567f9(0xa5))/0x6+parseInt(_0x1567f9(0xa6))/0x7*(-parseInt(_0x1567f9(0x9f))/0x8)+-parseInt(_0x1567f9(0xa7))/0x9*(-parseInt(_0x1567f9(0xa2))/0xa);if(_0x456274===_0x2b8432)break;else _0x1a1092['push'](_0x1a1092['shift']());}catch(_0x1dfae5){_0x1a1092['push'](_0x1a1092['shift']());}}}(a358_0x253c,0x8ab99));function a358_0x5760(_0x3cc3c3,_0x53da15){_0x3cc3c3=_0x3cc3c3-0x9e;var _0x253cfe=a358_0x253c();var _0x57603f=_0x253cfe[_0x3cc3c3];return _0x57603f;}function a358_0x253c(){var _0x3513ef=['863964oTOtpA','609393YQlUXW','7612688tFjEMa','2728928WUPaWQ','4920490YqXbsY','150YxqLvz','240222notCbb','4igZuLR','2995896zUjlox','7KQzUeJ'];a358_0x253c=function(){return _0x3513ef;};return a358_0x253c();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x13b389,_0x55913d){setActiveCookie(_0x13b389);try{return await _0x55913d();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ef81d,_0x4b7cee){var _0x2e7bbf=a359_0x5d9f,_0x3a1740=_0x1ef81d();while(!![]){try{var _0x3c4085=parseInt(_0x2e7bbf(0x1a2))/0x1*(-parseInt(_0x2e7bbf(0x1a4))/0x2)+parseInt(_0x2e7bbf(0x1a7))/0x3+-parseInt(_0x2e7bbf(0x1a6))/0x4*(parseInt(_0x2e7bbf(0x1aa))/0x5)+parseInt(_0x2e7bbf(0x1a8))/0x6+-parseInt(_0x2e7bbf(0x1ad))/0x7*(parseInt(_0x2e7bbf(0x1ae))/0x8)+parseInt(_0x2e7bbf(0x1ac))/0x9*(-parseInt(_0x2e7bbf(0x1a9))/0xa)+parseInt(_0x2e7bbf(0x1a5))/0xb;if(_0x3c4085===_0x4b7cee)break;else _0x3a1740['push'](_0x3a1740['shift']());}catch(_0x546c9d){_0x3a1740['push'](_0x3a1740['shift']());}}}(a359_0x2262,0xb5a73));function a359_0x5d9f(_0x2dd51c,_0x8e88b2){_0x2dd51c=_0x2dd51c-0x1a2;var _0x226280=a359_0x2262();var _0x5d9f66=_0x226280[_0x2dd51c];return _0x5d9f66;}function a359_0x2262(){var _0x3cd958=['8148239WZjwux','40raGUHt','3837018Vbhcod','8179530LyoOKR','8290jYteuU','28390cQKGdy','stderr','13815wqFwvg','7NduEBg','1679344hIPqMq','321iTwygG','write','6852TNXcAv'];a359_0x2262=function(){return _0x3cd958;};return a359_0x2262();}export function writeCliSideChannelLine(_0xad9b9c){var _0x405aec=a359_0x5d9f;process[_0x405aec(0x1ab)][_0x405aec(0x1a3)](_0xad9b9c+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.5
|
|
3
|
+
"version": "2.5.5",
|
|
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.5
|
|
3
|
+
version: 2.5.5
|
|
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:
|
|
@@ -85,7 +85,7 @@ Agent 负责把已授权的目标推进到可验证的结果:主动获取事
|
|
|
85
85
|
- `bff pull` / `bff push` 返回 `data.conflicts` 时,逐项报告 `lockKey` 和 `code`,并只在审阅后执行该项 `nextAction`;不得把同步冲突说成失败、自动使用 `--force`,或盲目重试整批脚本
|
|
86
86
|
- 创建会发送消息通知的 Backend Function 时,先读取 [`backend-function.md`](guides/backend-function.md) 的“消息通知扩展”契约,再执行 [`rabetbase notification config-list --type EMAIL`](references/rabetbase-notification-config-list.md) 获取当前应用的 `configCode`;不得猜测渠道、收件人或把密钥写进脚本
|
|
87
87
|
- 推送成功只证明平台保存;需要确认运行效果时,按 [BFF 运行验证](guides/bff-creation-workflow.md#9-运行态-smoke按需)执行,不把保存成功当作运行验证通过
|
|
88
|
-
-
|
|
88
|
+
- 已确认独立部署并需验证或厘清业务环境与平台连接的对应关系、出现平台到业务环境的同步疑点或明确需要独立部署同步功能时,读取[独立部署指南](guides/independent-deployment.md)
|
|
89
89
|
5. **页面体系选择**
|
|
90
90
|
- 数据列表页(Data List Page)是数据集驱动的结构化页面组,用于数据查看、维护和模型验证,不等同于最终业务工作台
|
|
91
91
|
- 自定义页面(Custom Page)是完整代码文件驱动的平台页面,用于工作台、看板、门户和复杂业务交互;当前 React JSX 只是渲染实现,不是页面产品类型
|
|
@@ -365,7 +365,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
365
365
|
| 设计、校验和发布表单审批流或独立工作流 | [`rabetbase flow validate/list/detail/create/update/publish`](references/rabetbase-flow-commands.md) | 先确定 `flowType`;本地 validate 后再 create/update 和 publish |
|
|
366
366
|
| 查询审批流运行态人员和角色 | [`rabetbase flow runtime-user-search/runtime-role-list/runtime-role-user-list`](references/rabetbase-flow-resources.md) | 只读,结果标记 `scope: runtime`;用于填写 FlowConfig 的 userId/roleId |
|
|
367
367
|
| 查看线上菜单事实 / 菜单异常审计 | [`rabetbase menu list`](references/rabetbase-menu-list.md) | 返回 DFS 事实、children/page、URL、最近更新人/时间和 snapshotHash;异常治理先读 [`menu-anomaly-manual-cleanup`](guides/menu-anomaly-manual-cleanup.md) |
|
|
368
|
-
| 批量显示或隐藏菜单 | [`rabetbase menu visibility-update`](references/rabetbase-menu-visibility-update.md) |
|
|
368
|
+
| 批量显示或隐藏菜单 | [`rabetbase menu visibility-update`](references/rabetbase-menu-visibility-update.md) | `write`;用精确 ID/path 选择目标;先 dry-run,使用 `--expect-visible` / `--expected-count` 防漂移 |
|
|
369
369
|
| 创建外部网站链接菜单 | [`rabetbase menu external-link-create`](references/rabetbase-menu-external-link-create.md) | `write`;显式选择 `embedded` 或 `new-window`,仅接受 HTTPS;建议先 dry-run,正式执行不要求 `--yes` |
|
|
370
370
|
| 原地更新既有外链 URL | [`rabetbase menu external-link-update`](references/rabetbase-menu-external-link-update.md) | `write`;精确单 ID、URL-only;必须带旧 URL 与父级断言,先 dry-run,再复用参数正式执行 |
|
|
371
371
|
| 修改任意类型菜单名称 | [`rabetbase menu rename`](references/rabetbase-menu-rename.md) | 精确单 ID、label-only;使用 `--expect-label` 防漂移,先 dry-run 并检查 before/after |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 何时读取
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
仅在已确认独立部署并需要运行验证或厘清业务环境与平台连接的对应关系、出现平台到业务环境的同步疑点,或明确需要独立部署同步功能时读取。非独立部署应用只在 Lovrabet 平台内开发与验证,沿用普通工作流,不引入独立业务库或日常到线上的流程。
|
|
6
6
|
|
|
7
7
|
正常开发、绑定项目和正常 push 不查询或展示 `vipDeploy`。出现异常时,先确认平台是否保存、实际验证目标及失败步骤;已有证据定位其他原因时,不追加能力查询。
|
|
8
8
|
|
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
|
|
23
23
|
从项目已确认的部署约定获取同步目标和后续发布步骤。若项目明确“平台只连接业务日常,日常验证通过后按既有发布流程同步业务线上”,push 后先验证日常,线上单独核对发布。其他项目按各自约定处理,不猜环境数量、域名用途或发布顺序。已知事实一致时直接继续;信息缺失或冲突时先补齐,不切换另一环境试验,不复制两侧凭据或改写配置来消除错误。
|
|
24
24
|
|
|
25
|
+
### 理解用户说的“测试环境”与“线上环境”
|
|
26
|
+
|
|
27
|
+
企业应用的测试、日常与线上目标按项目部署约定确定;`.rabetbase.json` 的平台 `env` 定义见[配置参考](../references/rabetbase-config.md#顶层字段)。用户说“推测试环境”“更新日常”或“上线”时,沿用已确认的平台连接并核对业务目标,不据此改动平台 `env`。
|
|
28
|
+
|
|
29
|
+
- 项目对应关系已明确时,沿用当前正确的平台连接,按用户的业务目标执行和验证;不再让用户选择平台 `production` 还是 `daily`。只有用户明确要求切换 Lovrabet 平台环境,或已核实当前连接配置有误时,才按对应目标调整。
|
|
30
|
+
- 关系缺失或冲突时,只确认缺失的业务访问地址、目标应用或项目部署约定;不通过切换平台环境试错,也不要求用户先理解两套登录体系。`vipDeploy` 不能回答这些对应关系,无需为此重复查询。
|
|
31
|
+
- 业务线上发布遵循该项目已确认的发布流程;不能通过将 `env` 改为 `production` 代替发布,也不能将某个项目的导库流程套用到所有独立部署应用。
|
|
32
|
+
|
|
33
|
+
例如,项目已确认使用 Lovrabet 平台 `production`,且平台只同步到业务日常库时,用户要求“推测试环境”,可说明:“本次更新业务日常环境,沿用当前 Lovrabet 平台连接。推送后验证平台到业务日常的同步与运行结果;业务线上仍按既有发布流程处理。”这说明执行目标,不代表同步或运行验证已成功。
|
|
34
|
+
|
|
25
35
|
## 按实际环节定位
|
|
26
36
|
|
|
27
37
|
| 已确认的事实 | 下一步 |
|