@lovrabet/rabetbase-cli 2.5.6 → 2.5.7
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.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- 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.d.ts +26 -6
- 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.d.ts +12 -0
- 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/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 +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fc9bb,_0x3bb799){const _0x49c8ca=a359_0x553e,_0x50e291=_0x1fc9bb();while(!![]){try{const _0x1b0f8d=-parseInt(_0x49c8ca(0x8e))/0x1*(parseInt(_0x49c8ca(0xa7))/0x2)+-parseInt(_0x49c8ca(0x94))/0x3*(-parseInt(_0x49c8ca(0x9b))/0x4)+parseInt(_0x49c8ca(0x9e))/0x5*(parseInt(_0x49c8ca(0x8d))/0x6)+parseInt(_0x49c8ca(0xa6))/0x7*(-parseInt(_0x49c8ca(0x9a))/0x8)+parseInt(_0x49c8ca(0xa0))/0x9*(-parseInt(_0x49c8ca(0x9c))/0xa)+parseInt(_0x49c8ca(0xa8))/0xb*(-parseInt(_0x49c8ca(0xa3))/0xc)+parseInt(_0x49c8ca(0x9f))/0xd;if(_0x1b0f8d===_0x3bb799)break;else _0x50e291['push'](_0x50e291['shift']());}catch(_0x4d9a65){_0x50e291['push'](_0x50e291['shift']());}}}(a359_0x5ddb,0xc245f));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a359_0x52f043 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x319328){const _0x5dd86b=a359_0x553e,_0x24f910=a359_0x52f043['valid'](_0x319328);return _0x24f910?a359_0x52f043[_0x5dd86b(0xa9)](_0x24f910)?.[0x0]===_0x5dd86b(0xa5):![];}export function resolveProjectTemplateDescriptor(_0xa977df,_0x5cb778){const _0x516870=a359_0x553e;if(isBetaCliVersion(_0x5cb778))return _0xa977df[_0x516870(0xa5)]?.[_0x516870(0x91)]??_0xa977df[_0x516870(0x91)];return _0xa977df[_0x516870(0x91)];}function pickString(_0xc38a24){const _0x44275d=a359_0x553e;return typeof _0xc38a24===_0x44275d(0x96)&&_0xc38a24[_0x44275d(0x93)]()[_0x44275d(0xab)]>0x0?_0xc38a24[_0x44275d(0x93)]():null;}function normalizeCliVersionPolicy(_0x6badb3){const _0x48eaba=a359_0x553e;if(!_0x6badb3||typeof _0x6badb3!==_0x48eaba(0x97))return null;const _0x4d22a3=_0x6badb3,_0x263d34=_0x4d22a3[_0x48eaba(0x92)]&&typeof _0x4d22a3[_0x48eaba(0x92)]===_0x48eaba(0x97)?_0x4d22a3['cli']:_0x4d22a3,_0x39cf77=pickString(_0x263d34[_0x48eaba(0x95)])||pickString(_0x263d34[_0x48eaba(0xa1)])||pickString(_0x263d34[_0x48eaba(0x8f)]),_0x5ce776=pickString(_0x263d34[_0x48eaba(0x99)])||pickString(_0x263d34[_0x48eaba(0x9d)]);if(!_0x39cf77&&!_0x5ce776)return null;return{'stableVersion':_0x39cf77,'minimumVersion':_0x5ce776,'upgradeMessage':pickString(_0x263d34[_0x48eaba(0xa4)])||undefined,'minimumVersionMessage':pickString(_0x263d34['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x233d93){const _0x938e60=a359_0x553e,_0x396130=new AbortController(),_0xabca67=setTimeout(()=>_0x396130[_0x938e60(0xaa)](),FETCH_TIMEOUT_MS);try{const _0x27e480=await fetch(_0x233d93,{'headers':{'Accept':_0x938e60(0x90)},'signal':_0x396130[_0x938e60(0xa2)]});if(!_0x27e480['ok'])return null;const _0xf31054=await _0x27e480[_0x938e60(0x98)]();return _0xf31054&&typeof _0xf31054===_0x938e60(0x97)?_0xf31054:null;}catch{return null;}finally{clearTimeout(_0xabca67);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0xb6bca0=await getRabetbaseCdnConfig();return _0xb6bca0?{'config':_0xb6bca0,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x2056e1=Date['now']();if(hasCachedConfig){const _0x136e38=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2056e1-cacheTime<_0x136e38)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x2056e1,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}function a359_0x553e(_0x1ef74e,_0x3c1558){_0x1ef74e=_0x1ef74e-0x8d;const _0x5ddb45=a359_0x5ddb();let _0x553e8f=_0x5ddb45[_0x1ef74e];return _0x553e8f;}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a359_0x5ddb(){const _0x4280b3=['signal','54744kTQJMT','upgradeMessage','beta','67102Acppvx','2238soJzhL','1628VgZDaW','prerelease','abort','length','282xrlgUw','257JUYkZU','recommendedVersion','application/json','projectTemplate','cli','trim','85497XGuReD','stableVersion','string','object','json','minimumVersion','456MBTCoG','60HeutOW','3989030GxxcuN','minVersion','29675XtqeVR','36337379kMSTHR','27EXtOFJ','latestVersion'];a359_0x5ddb=function(){return _0x4280b3;};return a359_0x5ddb();}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a360_0x287a37=a360_0x38f6;function a360_0x38f6(_0x30d4c3,_0x26fca3){_0x30d4c3=_0x30d4c3-0xac;const _0x5caa84=a360_0x5caa();let _0x38f6a9=_0x5caa84[_0x30d4c3];return _0x38f6a9;}(function(_0x4c6389,_0x2f38e6){const _0x565b30=a360_0x38f6,_0x16c1a3=_0x4c6389();while(!![]){try{const _0xd3e407=parseInt(_0x565b30(0xac))/0x1+parseInt(_0x565b30(0xb7))/0x2+-parseInt(_0x565b30(0xb6))/0x3*(-parseInt(_0x565b30(0xb0))/0x4)+-parseInt(_0x565b30(0xb4))/0x5+-parseInt(_0x565b30(0xb5))/0x6+parseInt(_0x565b30(0xb2))/0x7*(parseInt(_0x565b30(0xae))/0x8)+-parseInt(_0x565b30(0xad))/0x9;if(_0xd3e407===_0x2f38e6)break;else _0x16c1a3['push'](_0x16c1a3['shift']());}catch(_0x279a3d){_0x16c1a3['push'](_0x16c1a3['shift']());}}}(a360_0x5caa,0x430b1));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a360_0x235c23,getMultiAppConfigs as a360_0x4fa216,getTemplateBaseUrl as a360_0x47235b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xf97ff8){const _0x299753=a360_0x38f6,_0x164f25=readRawConfig(_0xf97ff8);return _0x164f25[_0x299753(0xb1)]&&typeof _0x164f25[_0x299753(0xb1)]===_0x299753(0xb3)&&initEnv(_0x164f25[_0x299753(0xb1)]),_0x164f25;}export function getConfigAppCode(){return a360_0x235c23();}export function getMultiAppConfigs(_0x399aa5=a360_0x287a37(0xaf)){return a360_0x4fa216(_0x399aa5);}function a360_0x5caa(){const _0x3e0b3d=['6nEsgbZ','552824GUmMtY','342100MqiBBO','562617xRjNiA','1081672OSFAPE','project','128872AXPQQb','env','14Qkfktn','string','2081740rQRpKh','1199376drlxWk'];a360_0x5caa=function(){return _0x3e0b3d;};return a360_0x5caa();}export function getTemplateBaseUrl(){return a360_0x47235b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a361_0x54f6(_0xbc3cbb,_0xd44f11){_0xbc3cbb=_0xbc3cbb-0x8b;const _0x2fd3dc=a361_0x2fd3();let _0x54f6bd=_0x2fd3dc[_0xbc3cbb];return _0x54f6bd;}(function(_0x48d981,_0x4cbb7e){const _0x56b8ac=a361_0x54f6,_0x103283=_0x48d981();while(!![]){try{const _0x171511=parseInt(_0x56b8ac(0x8b))/0x1*(parseInt(_0x56b8ac(0x91))/0x2)+-parseInt(_0x56b8ac(0x8e))/0x3*(parseInt(_0x56b8ac(0x98))/0x4)+parseInt(_0x56b8ac(0x92))/0x5*(parseInt(_0x56b8ac(0x93))/0x6)+-parseInt(_0x56b8ac(0x95))/0x7+-parseInt(_0x56b8ac(0x8c))/0x8+-parseInt(_0x56b8ac(0x8f))/0x9+parseInt(_0x56b8ac(0x90))/0xa*(parseInt(_0x56b8ac(0x99))/0xb);if(_0x171511===_0x4cbb7e)break;else _0x103283['push'](_0x103283['shift']());}catch(_0x2ce31a){_0x103283['push'](_0x103283['shift']());}}}(a361_0x2fd3,0xc7f9b));function toFiniteNumber(_0x27b3d7){const _0x5913eb=a361_0x54f6;if(typeof _0x27b3d7==='number'&&Number[_0x5913eb(0x8d)](_0x27b3d7))return _0x27b3d7;if(typeof _0x27b3d7===_0x5913eb(0x97)){const _0x571c67=_0x27b3d7[_0x5913eb(0x96)]();if(!_0x571c67)return undefined;const _0x8badb4=Number(_0x571c67);if(Number[_0x5913eb(0x8d)](_0x8badb4))return _0x8badb4;}return undefined;}function a361_0x2fd3(){const _0x1d0a1a=['5ZcVXyl','4170756lrFZNF','object','4383393NIRPCo','trim','string','4zbSygV','22795597vSqkMy','911419OYqiUn','6307768amLXuQ','isFinite','3152823mOnfMF','3547458AmDbIt','10QIuJhh','2DlfQuJ'];a361_0x2fd3=function(){return _0x1d0a1a;};return a361_0x2fd3();}export function normalizeEntityWithIdResponse(_0x5b0c65){const _0x1051c4=a361_0x54f6,_0x3a6918=toFiniteNumber(_0x5b0c65);if(_0x3a6918!==undefined)return{'id':_0x3a6918,'entity':{'id':_0x3a6918}};if(!_0x5b0c65||typeof _0x5b0c65!==_0x1051c4(0x94))return{'id':undefined,'entity':{}};const _0x28e91b={..._0x5b0c65},_0x45ac12=toFiniteNumber(_0x28e91b['id']);return _0x45ac12!==undefined&&(_0x28e91b['id']=_0x45ac12),{'id':_0x45ac12,'entity':_0x28e91b};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3893a6,_0x3e5819){const _0xe0e13c=a362_0x4ec1,_0x4544a0=_0x3893a6();while(!![]){try{const _0x3e7e72=-parseInt(_0xe0e13c(0x19c))/0x1+parseInt(_0xe0e13c(0x19f))/0x2+parseInt(_0xe0e13c(0x19e))/0x3+-parseInt(_0xe0e13c(0x1a0))/0x4*(-parseInt(_0xe0e13c(0x19b))/0x5)+parseInt(_0xe0e13c(0x198))/0x6+parseInt(_0xe0e13c(0x199))/0x7+-parseInt(_0xe0e13c(0x19a))/0x8;if(_0x3e7e72===_0x3e5819)break;else _0x4544a0['push'](_0x4544a0['shift']());}catch(_0x2a701b){_0x4544a0['push'](_0x4544a0['shift']());}}}(a362_0x3e7b,0x86bea));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x419935,_0x5aa9c8){const _0x333688=a362_0x4ec1,_0x402e79=statSync(_0x419935);if(_0x402e79[_0x333688(0x19d)]()){!existsSync(_0x5aa9c8)&&mkdirSync(_0x5aa9c8,{'recursive':!![]});const _0x26622c=readdirSync(_0x419935);for(const _0x5b9f68 of _0x26622c){await copyDir(join(_0x419935,_0x5b9f68),join(_0x5aa9c8,_0x5b9f68));}}else copyFileSync(_0x419935,_0x5aa9c8);}function a362_0x4ec1(_0x2a00e0,_0x3d3195){_0x2a00e0=_0x2a00e0-0x198;const _0x3e7bf9=a362_0x3e7b();let _0x4ec126=_0x3e7bf9[_0x2a00e0];return _0x4ec126;}export function ensureDir(_0x3d93c5){!existsSync(_0x3d93c5)&&mkdirSync(_0x3d93c5,{'recursive':!![]});}export function pathExists(_0x976f93){return existsSync(_0x976f93);}function a362_0x3e7b(){const _0x25706f=['815691FJXPBw','isDirectory','626715bMShSw','2015156BpvXUa','4LpvvLL','1286448cSCGRQ','4915890frwklN','8271376PEieQk','1341830UQzsOq'];a362_0x3e7b=function(){return _0x25706f;};return a362_0x3e7b();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a363_0x1e4879=a363_0x4d3f;(function(_0x547c21,_0xb801b4){const _0x1519c5=a363_0x4d3f,_0x5c2746=_0x547c21();while(!![]){try{const _0x2ac69a=parseInt(_0x1519c5(0x11e))/0x1+-parseInt(_0x1519c5(0x114))/0x2*(parseInt(_0x1519c5(0x139))/0x3)+-parseInt(_0x1519c5(0x11c))/0x4+parseInt(_0x1519c5(0x124))/0x5*(parseInt(_0x1519c5(0x137))/0x6)+-parseInt(_0x1519c5(0x12d))/0x7*(parseInt(_0x1519c5(0x130))/0x8)+-parseInt(_0x1519c5(0x123))/0x9+-parseInt(_0x1519c5(0x11f))/0xa*(-parseInt(_0x1519c5(0x138))/0xb);if(_0x2ac69a===_0xb801b4)break;else _0x5c2746['push'](_0x5c2746['shift']());}catch(_0x53505a){_0x5c2746['push'](_0x5c2746['shift']());}}}(a363_0x516f,0x61d0a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a363_0x4d3f(_0x1bff7b,_0x4685bc){_0x1bff7b=_0x1bff7b-0x114;const _0x516f76=a363_0x516f();let _0x4d3f65=_0x516f76[_0x1bff7b];return _0x4d3f65;}function getGuidesCdnUrl(){const _0x429130=getTemplateBaseUrl();return _0x429130+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a363_0x1e4879(0x117));export async function fetchGuidesFromCDN(){const _0x5a001d=a363_0x1e4879,_0x2c0ad7=getGuidesCdnUrl(),_0x11fbee=await fetch(_0x2c0ad7,{'headers':{'Accept':_0x5a001d(0x11d)}});if(!_0x11fbee['ok'])throw new Error(_0x5a001d(0x116)+_0x11fbee[_0x5a001d(0x120)]+'\x20'+_0x11fbee[_0x5a001d(0x134)]);const _0x59d518=await _0x11fbee[_0x5a001d(0x129)]();if(!_0x59d518[_0x5a001d(0x11b)]||typeof _0x59d518[_0x5a001d(0x11b)]!==_0x5a001d(0x12a))throw new Error(_0x5a001d(0x12b));return _0x59d518;}function a363_0x516f(){const _0x2b95f1=['1538416jZxEjG','extendContent','push','\x0a\x0a>更新时间:','statusText','replace','title','6steChW','198385MvqBQn','3PvdTXH','802030Nndfpu','.lovrabet/skill/guides','CDN\x20request\x20failed:\x20','cache','trimEnd','path','content','guides','2652040WzFNeU','application/json','5570VSgSAp','1390InypsN','status','lastUpdated','keys','4924683ZfekVA','381665FocwOW','.md','utf-8','CDN\x20data\x20is\x20missing\x20skillTemplate','skillTemplate','json','object','CDN\x20returned\x20invalid\x20data','entries','21AQsFGZ','map','length'];a363_0x516f=function(){return _0x2b95f1;};return a363_0x516f();}export function writeGuidesToProject(_0x239816,_0x4ce5cb,_0x171133=a363_0x1e4879(0x115),_0x1b1797){const _0x583cf9=a363_0x1e4879,_0x35c7b0=join(_0x4ce5cb,_0x171133);mkdirSync(_0x35c7b0,{'recursive':!![]});for(const [_0x3b2ee9,_0x59ea9e]of Object[_0x583cf9(0x12c)](_0x239816[_0x583cf9(0x11b)])){let _0x63e896=_0x59ea9e[_0x583cf9(0x11a)];_0x59ea9e[_0x583cf9(0x121)]&&(_0x63e896=appendUpdateTime(_0x63e896,_0x59ea9e[_0x583cf9(0x121)])),writeFileSync(join(_0x35c7b0,_0x3b2ee9+_0x583cf9(0x125)),_0x63e896,_0x583cf9(0x126));}}export function appendUpdateTime(_0x4adffa,_0xe0618b){const _0x150536=a363_0x1e4879;return _0x4adffa=_0x4adffa['replace'](/\n*>更新时间:.*$/m,''),_0x4adffa[_0x150536(0x118)]()+(_0x150536(0x133)+_0xe0618b);}export function getSkillTemplate(_0x24f72d){const _0x549ef4=a363_0x1e4879;return _0x24f72d[_0x549ef4(0x128)]?.[_0x549ef4(0x11a)]||'';}export function appendExtendContents(_0x52cb9b,_0x2e5d27,_0x3fbdca){const _0x3014ec=a363_0x1e4879,_0x543c2e=[];for(const [,_0x47c94c]of Object[_0x3014ec(0x12c)](_0x2e5d27[_0x3014ec(0x11b)])){_0x47c94c['extendContent']&&_0x543c2e[_0x3014ec(0x132)](_0x47c94c[_0x3014ec(0x131)][_0x3014ec(0x118)]());}if(_0x543c2e[_0x3014ec(0x12f)]===0x0)return _0x52cb9b;return _0x52cb9b[_0x3014ec(0x118)]()+'\x0a\x0a'+_0x543c2e['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x44375b,_0x4c242e,_0x1175df){const _0xea4577=a363_0x1e4879,_0x88a098=getSkillTemplate(_0x44375b);if(!_0x88a098)throw new Error(_0xea4577(0x127));const _0x597bca=dirname(_0x4c242e);mkdirSync(_0x597bca,{'recursive':!![]});let _0x1c68e3=_0x88a098[_0xea4577(0x135)](/\{\{IDE_NAME\}\}/g,_0x1175df);_0x1c68e3=appendExtendContents(_0x1c68e3,_0x44375b),_0x44375b[_0xea4577(0x128)][_0xea4577(0x121)]&&(_0x1c68e3=appendUpdateTime(_0x1c68e3,_0x44375b['skillTemplate'][_0xea4577(0x121)])),writeFileSync(_0x4c242e,_0x1c68e3,'utf-8');}export async function installGuides(_0x13ea85){const _0x4162f2=a363_0x1e4879,_0x2a0716=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2a0716,_0x13ea85),Object[_0x4162f2(0x122)](_0x2a0716[_0x4162f2(0x11b)])[_0x4162f2(0x12f)];}export function getGuidesSummary(_0x5c404f){const _0x5dafe6=a363_0x1e4879;return Object[_0x5dafe6(0x12c)](_0x5c404f['guides'])[_0x5dafe6(0x12e)](([_0x2018ea,_0x536493])=>({'key':_0x2018ea,'title':_0x536493[_0x5dafe6(0x136)],'path':_0x536493[_0x5dafe6(0x119)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd233f5,_0x2bc471){const _0x32f474=a364_0x53d4,_0x2957c1=_0xd233f5();while(!![]){try{const _0x29e5de=-parseInt(_0x32f474(0xa5))/0x1+-parseInt(_0x32f474(0xa6))/0x2*(-parseInt(_0x32f474(0xae))/0x3)+parseInt(_0x32f474(0xa8))/0x4+-parseInt(_0x32f474(0xaf))/0x5+-parseInt(_0x32f474(0xb1))/0x6+-parseInt(_0x32f474(0xb0))/0x7+parseInt(_0x32f474(0xa2))/0x8;if(_0x29e5de===_0x2bc471)break;else _0x2957c1['push'](_0x2957c1['shift']());}catch(_0x295398){_0x2957c1['push'](_0x2957c1['shift']());}}}(a364_0x36f2,0x49576));function a364_0x53d4(_0x24806d,_0x51a227){_0x24806d=_0x24806d-0x9e;const _0x36f28d=a364_0x36f2();let _0x53d41c=_0x36f28d[_0x24806d];return _0x53d41c;}function a364_0x36f2(){const _0x55e4aa=['8686424UsQDzT','log','ECONNRESET','291595BpyDtb','40990wJghNX','message','839980iAYLoi','text','abort','name','content-type','includes','39WMuVPw','2012340dXkCTq','1944936aOlicB','1739496MfoZJm','json','statusText','application/json','Request\x20failed','TypeError','fetch','headers','*\x20Request\x20failed;\x20retry\x20','ms...'];a364_0x36f2=function(){return _0x55e4aa;};return a364_0x36f2();}export async function httpRequest(_0x3365f4,_0x1d2233={}){const _0x25861b=a364_0x53d4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1d2233;let _0x154d33=null;for(let _0x197b87=0x0;_0x197b87<=retries;_0x197b87++){try{const _0x336e73=new AbortController(),_0x355dc1=setTimeout(()=>_0x336e73[_0x25861b(0xaa)](),timeout),_0x4142df=await fetch(_0x3365f4,{'headers':headers,'signal':_0x336e73['signal']});clearTimeout(_0x355dc1);let _0x4c5c58;const _0x15e475=_0x4142df['headers']['get'](_0x25861b(0xac));return _0x15e475?.[_0x25861b(0xad)](_0x25861b(0xb4))?_0x4c5c58=await _0x4142df[_0x25861b(0xb2)]():_0x4c5c58=await _0x4142df[_0x25861b(0xa9)](),{'ok':_0x4142df['ok'],'status':_0x4142df['status'],'statusText':_0x4142df[_0x25861b(0xb3)],'data':_0x4c5c58,'headers':_0x4142df[_0x25861b(0x9f)],'url':_0x4142df['url'],'text':()=>_0x4142df[_0x25861b(0xa9)]()};}catch(_0xd03ff9){_0x154d33=_0xd03ff9 instanceof Error?_0xd03ff9:new Error(String(_0xd03ff9));if(_0x197b87===retries)break;if(shouldRetry(_0xd03ff9)){console[_0x25861b(0xa3)](_0x25861b(0xa0)+(_0x197b87+0x1)+'\x20in\x20'+retryDelay+_0x25861b(0xa1)),await sleep(retryDelay);continue;}else break;}}throw _0x154d33||new Error(_0x25861b(0xb5));}function shouldRetry(_0x28ffa4){const _0x3f92b2=a364_0x53d4;if(_0x28ffa4 instanceof Error){if(_0x28ffa4[_0x3f92b2(0xab)]==='AbortError')return![];if(_0x28ffa4[_0x3f92b2(0xab)]===_0x3f92b2(0xb6)&&_0x28ffa4[_0x3f92b2(0xa7)]['includes'](_0x3f92b2(0x9e)))return!![];if(_0x28ffa4[_0x3f92b2(0xa7)][_0x3f92b2(0xad)](_0x3f92b2(0xa4)))return!![];if(_0x28ffa4[_0x3f92b2(0xa7)][_0x3f92b2(0xad)]('ENOTFOUND'))return![];}return![];}function sleep(_0x2a4fe4){return new Promise(_0x2bbce8=>setTimeout(_0x2bbce8,_0x2a4fe4));}export function validateUrl(_0xb2b3cd){try{return new URL(_0xb2b3cd),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a365_0x4f5b(_0x5e0949,_0x529310){_0x5e0949=_0x5e0949-0x1f1;const _0x899e0f=a365_0x899e();let _0x4f5b85=_0x899e0f[_0x5e0949];return _0x4f5b85;}(function(_0x7f1c94,_0x5b870d){const _0x3961a0=a365_0x4f5b,_0x477fb9=_0x7f1c94();while(!![]){try{const _0x5937ec=-parseInt(_0x3961a0(0x1f3))/0x1*(-parseInt(_0x3961a0(0x1f9))/0x2)+parseInt(_0x3961a0(0x1fb))/0x3*(-parseInt(_0x3961a0(0x1fa))/0x4)+-parseInt(_0x3961a0(0x1ff))/0x5*(-parseInt(_0x3961a0(0x1f8))/0x6)+parseInt(_0x3961a0(0x1f2))/0x7+-parseInt(_0x3961a0(0x1fe))/0x8+-parseInt(_0x3961a0(0x1f4))/0x9*(parseInt(_0x3961a0(0x200))/0xa)+-parseInt(_0x3961a0(0x1f6))/0xb*(parseInt(_0x3961a0(0x1fd))/0xc);if(_0x5937ec===_0x5b870d)break;else _0x477fb9['push'](_0x477fb9['shift']());}catch(_0x160784){_0x477fb9['push'](_0x477fb9['shift']());}}}(a365_0x899e,0xaf651));function a365_0x899e(){const _0x4f34d4=['2769445uwnMJl','789kRXQoP','3505743yKKcki','true','62601iQOJNb','isTTY','624072gLeUKK','2324NGMXXP','4SfOMfZ','652458xEOLKc','isRaw','1848WLGisw','585904FyPbUy','65lArHNI','20HtUHpW','stdin','setRawMode','stdout'];a365_0x899e=function(){return _0x4f34d4;};return a365_0x899e();}function env(_0x12f471){return process.env[`RABETBASE_${_0x12f471}`]||process.env[`LOVRABET_${_0x12f471}`]||undefined;}export function isNonInteractive(_0x8c3917){const _0x5c004f=a365_0x4f5b;return!!(_0x8c3917['nonInteractive']||_0x8c3917['ci']||env('CI')==='true'||process.env.CI===_0x5c004f(0x1f5)||!process[_0x5c004f(0x1f1)][_0x5c004f(0x1f7)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5574a=a365_0x4f5b;if(!process[_0x5574a(0x201)][_0x5574a(0x1f7)])return![];try{const _0x95fed4=process[_0x5574a(0x201)][_0x5574a(0x1fc)];return process[_0x5574a(0x201)][_0x5574a(0x202)](!![]),process['stdin'][_0x5574a(0x202)](_0x95fed4??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a366_0x383299=a366_0x2b7c;(function(_0x5b77d3,_0x97d9a9){const _0x3357bb=a366_0x2b7c,_0xf0814d=_0x5b77d3();while(!![]){try{const _0x4a0b6b=parseInt(_0x3357bb(0x1dc))/0x1+-parseInt(_0x3357bb(0x1c3))/0x2+parseInt(_0x3357bb(0x1c6))/0x3*(-parseInt(_0x3357bb(0x1df))/0x4)+-parseInt(_0x3357bb(0x1d8))/0x5+parseInt(_0x3357bb(0x1f0))/0x6+parseInt(_0x3357bb(0x1c7))/0x7+-parseInt(_0x3357bb(0x1ca))/0x8*(parseInt(_0x3357bb(0x1f3))/0x9);if(_0x4a0b6b===_0x97d9a9)break;else _0xf0814d['push'](_0xf0814d['shift']());}catch(_0x2f6061){_0xf0814d['push'](_0xf0814d['shift']());}}}(a366_0x4728,0xde1a8));import a366_0x17f5ca from'winston';function a366_0x2b7c(_0x3a85c8,_0x48b6f1){_0x3a85c8=_0x3a85c8-0x1c3;const _0x4728a8=a366_0x4728();let _0x2b7cce=_0x4728a8[_0x3a85c8];return _0x2b7cce;}import a366_0x46b7a5 from'node:fs';import a366_0x56b977 from'node:path';function a366_0x4728(){const _0x4d0de9=['initWinstonLogger','trim','39LuiEQN','10412346sAhmEu','setRawCommand','log','232Fedvmp','addColors','setLogPath','dirname','readLogs','filter','error','details','map','readFileSync','logFilePath','toISOString','timestamp','level','3168460NaccJf','duration','warn','currentRawCommand','195369DoJjRW','existsSync','stringify','403824ybCTGM','command','File','logTask','Starting:\x20','createLogger','success','yellow','mkdirSync','winstonLogger','format','blue','clear','now','errors','Failed\x20to\x20clear\x20logs:','rawCommand','9090336HRcjcg','red','info','24993KxcrtN','message','Failed:\x20','combine','parse','transports','unknown','getWinstonInstance','split','523028AQYuxg'];a366_0x4728=function(){return _0x4d0de9;};return a366_0x4728();}class Logger{[a366_0x383299(0x1e8)];[a366_0x383299(0x1d4)];[a366_0x383299(0x1db)]='';constructor(){const _0x5a5245=a366_0x383299;this[_0x5a5245(0x1d4)]='';}[a366_0x383299(0x1c8)](_0x2769da){this['currentRawCommand']=_0x2769da;}['initWinstonLogger'](){const _0x26575d=a366_0x383299,_0x1dd5a8=a366_0x56b977[_0x26575d(0x1cd)](this[_0x26575d(0x1d4)]);!a366_0x46b7a5[_0x26575d(0x1dd)](_0x1dd5a8)&&a366_0x46b7a5[_0x26575d(0x1e7)](_0x1dd5a8,{'recursive':!![]});const _0x2be12c=a366_0x17f5ca['format'][_0x26575d(0x1f6)](a366_0x17f5ca['format'][_0x26575d(0x1d6)](),a366_0x17f5ca[_0x26575d(0x1e9)][_0x26575d(0x1ed)]({'stack':!![]}),a366_0x17f5ca['format']['printf'](_0x477db9=>{const _0x293780=_0x26575d,_0x2aa72d={'timestamp':_0x477db9[_0x293780(0x1d6)]||new Date()[_0x293780(0x1d5)](),'level':_0x477db9[_0x293780(0x1d7)]||'info','command':_0x477db9[_0x293780(0x1e0)]||_0x293780(0x1f9),'rawCommand':_0x477db9[_0x293780(0x1ef)]||this[_0x293780(0x1db)]||undefined,'message':_0x477db9[_0x293780(0x1f4)]||'','duration':_0x477db9[_0x293780(0x1d9)]||undefined,'details':_0x477db9[_0x293780(0x1d1)]||undefined};return JSON[_0x293780(0x1de)](_0x2aa72d);}));this[_0x26575d(0x1e8)]=a366_0x17f5ca[_0x26575d(0x1e4)]({'level':_0x26575d(0x1f2),'format':_0x2be12c,'transports':[new a366_0x17f5ca[(_0x26575d(0x1f8))][(_0x26575d(0x1e1))]({'filename':this[_0x26575d(0x1d4)],'level':'info'})],'silent':![]}),a366_0x17f5ca[_0x26575d(0x1cb)]({'success':'green','error':_0x26575d(0x1f1),'warn':_0x26575d(0x1e6),'info':_0x26575d(0x1ea)});}[a366_0x383299(0x1cc)](_0x462e7a){const _0x287f53=a366_0x383299;this[_0x287f53(0x1d4)]=a366_0x56b977['join'](_0x462e7a,'.lovrabet.log'),this[_0x287f53(0x1e8)]&&this[_0x287f53(0x1e8)][_0x287f53(0x1eb)](),this[_0x287f53(0x1c4)]();}['info'](_0x12f344,_0x5002af,_0x21ae96){const _0x24b00b=a366_0x383299;if(!this['logFilePath']||!this[_0x24b00b(0x1e8)])return;this['winstonLogger'][_0x24b00b(0x1f2)](_0x5002af,{'command':_0x12f344,'details':_0x21ae96});}[a366_0x383299(0x1e5)](_0x24db37,_0x2d2e69,_0x40056f,_0x4803f6){const _0x14459e=a366_0x383299;if(!this[_0x14459e(0x1d4)]||!this[_0x14459e(0x1e8)])return;this[_0x14459e(0x1e8)][_0x14459e(0x1c9)](_0x14459e(0x1f2),_0x2d2e69,{'level':_0x14459e(0x1e5),'command':_0x24db37,'duration':_0x40056f,'details':_0x4803f6});}[a366_0x383299(0x1d0)](_0x45fd50,_0x2f7634,_0x1e01bf){const _0x335b1a=a366_0x383299;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x335b1a(0x1d0)](_0x2f7634,{'command':_0x45fd50,'details':_0x1e01bf});}[a366_0x383299(0x1da)](_0x2fa15c,_0xf922dd,_0x5f04a6){const _0x194471=a366_0x383299;if(!this[_0x194471(0x1d4)]||!this[_0x194471(0x1e8)])return;this['winstonLogger']['warn'](_0xf922dd,{'command':_0x2fa15c,'details':_0x5f04a6});}async[a366_0x383299(0x1e2)](_0x368df4,_0x1903d5,_0x57e985){const _0x3fffbf=a366_0x383299,_0x342e71=Date['now']();this['info'](_0x368df4,_0x3fffbf(0x1e3)+_0x1903d5);try{const _0x29c427=await _0x57e985(),_0x1ffd06=Date[_0x3fffbf(0x1ec)]()-_0x342e71;return this[_0x3fffbf(0x1e5)](_0x368df4,'Completed:\x20'+_0x1903d5,_0x1ffd06),_0x29c427;}catch(_0x2a730e){const _0x331dae=Date[_0x3fffbf(0x1ec)]()-_0x342e71;this[_0x3fffbf(0x1d0)](_0x368df4,_0x3fffbf(0x1f5)+_0x1903d5,{'error':_0x2a730e instanceof Error?_0x2a730e[_0x3fffbf(0x1f4)]:String(_0x2a730e),'duration':_0x331dae});throw _0x2a730e;}}[a366_0x383299(0x1ce)](){const _0x4cf0bf=a366_0x383299;try{if(!a366_0x46b7a5[_0x4cf0bf(0x1dd)](this[_0x4cf0bf(0x1d4)]))return[];const _0x1870d1=a366_0x46b7a5[_0x4cf0bf(0x1d3)](this['logFilePath'],'utf8');return _0x1870d1[_0x4cf0bf(0x1fb)]('\x0a')[_0x4cf0bf(0x1cf)](_0x131d64=>_0x131d64[_0x4cf0bf(0x1c5)]())[_0x4cf0bf(0x1d2)](_0x5c69b2=>JSON[_0x4cf0bf(0x1f7)](_0x5c69b2));}catch(_0x52ead8){return console['warn']('Failed\x20to\x20read\x20logs:',_0x52ead8),[];}}['clearLogs'](){const _0x1dc389=a366_0x383299;try{a366_0x46b7a5['existsSync'](this['logFilePath'])&&a366_0x46b7a5['writeFileSync'](this[_0x1dc389(0x1d4)],'','utf8');}catch(_0x5058b7){console[_0x1dc389(0x1da)](_0x1dc389(0x1ee),_0x5058b7);}}[a366_0x383299(0x1fa)](){const _0x5b7ab0=a366_0x383299;return this[_0x5b7ab0(0x1e8)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a367_0x49f6(){const _0xad89f5=['1888XkBzhz','158690cipXxi','266iwrlQn','object','20RSTUtj','157971arEusR','--params\x20must\x20be\x20a\x20JSON\x20object','8940828ajqqFL','Invalid\x20JSON\x20for\x20--params:\x20','39894AGwQAj','6219zmLCxn','696537nGpnwo','validation','44BiIBUy','179siCVHV','350BKSKum','isArray'];a367_0x49f6=function(){return _0xad89f5;};return a367_0x49f6();}function a367_0x2ab3(_0x39d673,_0x48587b){_0x39d673=_0x39d673-0xb7;const _0x49f62f=a367_0x49f6();let _0x2ab3e4=_0x49f62f[_0x39d673];return _0x2ab3e4;}(function(_0x581933,_0x412de1){const _0x5eb414=a367_0x2ab3,_0x5f3825=_0x581933();while(!![]){try{const _0x1f0925=-parseInt(_0x5eb414(0xc1))/0x1*(-parseInt(_0x5eb414(0xb7))/0x2)+-parseInt(_0x5eb414(0xbe))/0x3+parseInt(_0x5eb414(0xc0))/0x4*(-parseInt(_0x5eb414(0xc5))/0x5)+parseInt(_0x5eb414(0xbc))/0x6*(-parseInt(_0x5eb414(0xc6))/0x7)+parseInt(_0x5eb414(0xc4))/0x8*(-parseInt(_0x5eb414(0xbd))/0x9)+-parseInt(_0x5eb414(0xc2))/0xa*(-parseInt(_0x5eb414(0xb8))/0xb)+parseInt(_0x5eb414(0xba))/0xc;if(_0x1f0925===_0x412de1)break;else _0x5f3825['push'](_0x5f3825['shift']());}catch(_0x49c125){_0x5f3825['push'](_0x5f3825['shift']());}}}(a367_0x49f6,0x3da2b));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5ee1a4){const _0x1e3207=a367_0x2ab3;if(!_0x5ee1a4)return undefined;let _0x1b32ec;try{_0x1b32ec=JSON['parse'](_0x5ee1a4);}catch{throw CliErrors['validation'](_0x1e3207(0xbb)+_0x5ee1a4);}if(!_0x1b32ec||typeof _0x1b32ec!==_0x1e3207(0xc7)||Array[_0x1e3207(0xc3)](_0x1b32ec))throw CliErrors[_0x1e3207(0xbf)](_0x1e3207(0xb9),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x1b32ec;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a368_0x9ff20f=a368_0x5223;(function(_0x48fe2e,_0x244800){const _0x13d89d=a368_0x5223,_0x18b7e5=_0x48fe2e();while(!![]){try{const _0xbe2142=-parseInt(_0x13d89d(0xd6))/0x1+parseInt(_0x13d89d(0xd4))/0x2+-parseInt(_0x13d89d(0xda))/0x3+-parseInt(_0x13d89d(0xd2))/0x4*(parseInt(_0x13d89d(0xdd))/0x5)+parseInt(_0x13d89d(0xde))/0x6*(parseInt(_0x13d89d(0xd9))/0x7)+parseInt(_0x13d89d(0xd5))/0x8*(-parseInt(_0x13d89d(0xdf))/0x9)+-parseInt(_0x13d89d(0xd8))/0xa*(-parseInt(_0x13d89d(0xdc))/0xb);if(_0xbe2142===_0x244800)break;else _0x18b7e5['push'](_0x18b7e5['shift']());}catch(_0xac6477){_0x18b7e5['push'](_0x18b7e5['shift']());}}}(a368_0x5456,0x66036));export const isWindows=process[a368_0x9ff20f(0xdb)]===a368_0x9ff20f(0xd3);export function resolveNpmBin(_0x203ac1){const _0x25f38d=a368_0x9ff20f;return isWindows?_0x203ac1+_0x25f38d(0xd7):_0x203ac1;}function a368_0x5223(_0xaea7c5,_0x2bab25){_0xaea7c5=_0xaea7c5-0xd2;const _0x545667=a368_0x5456();let _0x522347=_0x545667[_0xaea7c5];return _0x522347;}function a368_0x5456(){const _0x41d3c0=['.cmd','174620APajUW','2470517nbYOXL','454245hUQRPz','platform','715CddLCq','5XDGAgm','6dOZNbs','36CHpgQM','781108uvYGjI','win32','1226390LweItU','1003056XAewxy','835090fbXOoH'];a368_0x5456=function(){return _0x41d3c0;};return a368_0x5456();}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x59c3a7){return new Promise(_0x376c11=>setTimeout(_0x376c11,_0x59c3a7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a370_0x488fc7=a370_0x3aaa;function a370_0x3aaa(_0x3e9481,_0x5ca61a){_0x3e9481=_0x3e9481-0xa4;const _0x26d936=a370_0x26d9();let _0x3aaaf=_0x26d936[_0x3e9481];return _0x3aaaf;}(function(_0x30da49,_0x291247){const _0xbb078e=a370_0x3aaa,_0x1cf218=_0x30da49();while(!![]){try{const _0x53c60a=-parseInt(_0xbb078e(0xd3))/0x1+parseInt(_0xbb078e(0xb8))/0x2*(-parseInt(_0xbb078e(0xcc))/0x3)+parseInt(_0xbb078e(0xac))/0x4*(parseInt(_0xbb078e(0xc8))/0x5)+parseInt(_0xbb078e(0xc1))/0x6*(parseInt(_0xbb078e(0xa5))/0x7)+-parseInt(_0xbb078e(0xdd))/0x8+parseInt(_0xbb078e(0xbb))/0x9+parseInt(_0xbb078e(0xd8))/0xa*(-parseInt(_0xbb078e(0xaf))/0xb);if(_0x53c60a===_0x291247)break;else _0x1cf218['push'](_0x1cf218['shift']());}catch(_0x36c79e){_0x1cf218['push'](_0x1cf218['shift']());}}}(a370_0x26d9,0x6f808));function a370_0x26d9(){const _0x21a093=['charAt','3875746brbLtE','info','error','.scss','split','.css','sdk-config','4cyQLae','tableName','isDirectory','5960119BwmEIw','.js','replace','tableName:\x20\x22','Starting\x20template\x20content\x20replacement','name','LOVRABET','promises','processDirectory','514436opfXUf','copyFile','.tpl','7333731ftuCsd','now','processTemplate','padStart','.md','YourModel','6RVtxLS','utf8','formatLocalTimestamp','writeFile','readFile','.json','toUpperCase','4134405PKmyvH','slice','toDisplayTitle','alias','3JKdSPZ','mkdir','toISOString','replaceContent','message','datasetCode:\x20\x22','getSeconds','216281NXcNaU','map','replaceApiContent','alias:\x20\x22','pad','10oigrtK','Template\x20content\x20replacement\x20completed','join','toComponentName','getFullYear','5787024KVWwQd','toLowerCase','extname','template','success','push','processFile','pop','getMinutes','name:\x20\x22','includes','\x20},','datasetCode','.ts','endsWith','.tsx'];a370_0x26d9=function(){return _0x21a093;};return a370_0x26d9();}import a370_0x23a89e from'node:fs';import a370_0x3cdcb6 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a370_0x488fc7(0xd7)](_0x1fa3ef){const _0x38263c=a370_0x488fc7;return String(_0x1fa3ef)[_0x38263c(0xbe)](0x2,'0');}static[a370_0x488fc7(0xc3)](_0xaf744c){const _0x297331=a370_0x488fc7,_0x363d4a=_0xaf744c[_0x297331(0xdc)](),_0x5e0645=this[_0x297331(0xd7)](_0xaf744c['getMonth']()+0x1),_0x5a637c=this['pad'](_0xaf744c['getDate']()),_0x44bc17=this[_0x297331(0xd7)](_0xaf744c['getHours']()),_0x4316b4=this[_0x297331(0xd7)](_0xaf744c[_0x297331(0xe5)]()),_0x27763a=this[_0x297331(0xd7)](_0xaf744c[_0x297331(0xd2)]());return{'createdAt':_0x363d4a+'-'+_0x5e0645+'-'+_0x5a637c+'\x20'+_0x44bc17+':'+_0x4316b4+':'+_0x27763a,'createdDate':_0x363d4a+'-'+_0x5e0645+'-'+_0x5a637c,'createdTime':_0x44bc17+':'+_0x4316b4+':'+_0x27763a};}static[a370_0x488fc7(0xdb)](_0x3486ce){const _0x4730b3=a370_0x488fc7,_0x350590=_0x3486ce[_0x4730b3(0xa9)]('/')['pop']()||_0x3486ce;return _0x350590[_0x4730b3(0xa9)]('-')[_0x4730b3(0xd4)](_0x37299c=>_0x37299c[_0x4730b3(0xa4)](0x0)[_0x4730b3(0xc7)]()+_0x37299c['slice'](0x1)[_0x4730b3(0xde)]())[_0x4730b3(0xda)]('');}static[a370_0x488fc7(0xca)](_0x13eaaa){const _0x3a26cd=a370_0x488fc7,_0x3fe05c=_0x13eaaa[_0x3a26cd(0xa9)]('/')[_0x3a26cd(0xe4)]()||_0x13eaaa;return _0x3fe05c[_0x3a26cd(0xa9)]('-')[_0x3a26cd(0xd4)](_0x1f7ac5=>_0x1f7ac5[_0x3a26cd(0xa4)](0x0)[_0x3a26cd(0xc7)]()+_0x1f7ac5[_0x3a26cd(0xc9)](0x1)[_0x3a26cd(0xde)]())[_0x3a26cd(0xda)]('\x20');}static[a370_0x488fc7(0xcf)](_0x3bfc3a,_0x220f2d,_0xd4d041){const _0x3ba06e=a370_0x488fc7,_0x1b494e=this['toComponentName'](_0x220f2d),_0x349335=this['toDisplayTitle'](_0x220f2d),{createdAt:_0x36b99b,createdDate:_0x57f07f,createdTime:_0x23e4e0}=this[_0x3ba06e(0xc3)](new Date());let _0x362609=_0x3bfc3a['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3ba06e(0xb1)](/\{ComponentName\}/g,_0x1b494e)['replace'](/\{DisplayTitle\}/g,_0x349335)['replace'](/\{PageName\}/g,_0x220f2d)['replace'](/\{TemplateName\}/g,_0xd4d041)[_0x3ba06e(0xb1)](/\{CreatedAt\}/g,_0x36b99b)[_0x3ba06e(0xb1)](/\{CreatedDate\}/g,_0x57f07f)[_0x3ba06e(0xb1)](/\{CreatedTime\}/g,_0x23e4e0);return _0x362609;}static[a370_0x488fc7(0xd5)](_0x2edbba,_0x40be29,_0x2806be,_0x4be5bc,_0x26bc54,_0x5b0dd6,_0x3b1921,_0x33887f,_0x5270a2){const _0x599cd6=a370_0x488fc7,_0x1917f8=new Date(),_0x34975b=_0x1917f8[_0x599cd6(0xce)](),_0x48275c=_0x2806be[_0x599cd6(0xd4)](_0x1d5f4b=>{const _0x5ba4a1=_0x599cd6,_0x31a2c0=[_0x5ba4a1(0xd1)+_0x1d5f4b[_0x5ba4a1(0xe9)]+'\x22',_0x5ba4a1(0xb2)+_0x1d5f4b[_0x5ba4a1(0xad)]+'\x22',_0x5ba4a1(0xe6)+_0x1d5f4b[_0x5ba4a1(0xb4)]+'\x22'];return _0x1d5f4b['alias']&&_0x31a2c0[_0x5ba4a1(0xe2)](_0x5ba4a1(0xd6)+_0x1d5f4b[_0x5ba4a1(0xcb)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x31a2c0[_0x5ba4a1(0xda)](',\x20')+_0x5ba4a1(0xe8);})['join'](''),_0x5199ef=_0x4be5bc||_0x2806be[0x0]?.['alias']||_0x599cd6(0xc0);let _0x2128ce=_0x2edbba['replace'](/\{AppCode\}/g,_0x40be29)['replace'](/\{ModelConfigs\}/g,_0x48275c)[_0x599cd6(0xb1)](/\{ExampleModelName\}/g,_0x5199ef)[_0x599cd6(0xb1)](/\{ApiFileName\}/g,_0x26bc54||'api')[_0x599cd6(0xb1)](/\{ConfigName\}/g,_0x5b0dd6||'default')[_0x599cd6(0xb1)](/\{ClientConfigParam\}/g,_0x3b1921||'')[_0x599cd6(0xb1)](/\{SdkConfigFileName\}/g,_0x5270a2||_0x599cd6(0xab))[_0x599cd6(0xb1)](/\{VarPrefix\}/g,_0x33887f||_0x599cd6(0xb5))[_0x599cd6(0xb1)](/\{CreatedAt\}/g,_0x34975b);return _0x2128ce;}static async[a370_0x488fc7(0xbd)](_0x34228f,_0x2108ba,_0x30483f,_0x383c54,_0x1e1ab0=!![]){const _0x59f405=a370_0x488fc7,_0x406096=Date[_0x59f405(0xbc)]();try{_0x1e1ab0&&logger[_0x59f405(0xa6)](_0x59f405(0xe0),_0x59f405(0xb3),{'templatePath':_0x34228f,'targetPath':_0x2108ba,'pageName':_0x30483f,'templateName':_0x383c54});await a370_0x23a89e[_0x59f405(0xb6)][_0x59f405(0xcd)](_0x2108ba,{'recursive':!![]}),await this['processDirectory'](_0x34228f,_0x2108ba,_0x30483f,_0x383c54);if(_0x1e1ab0){const _0x1d237e=Date[_0x59f405(0xbc)]()-_0x406096;logger[_0x59f405(0xe1)](_0x59f405(0xe0),_0x59f405(0xd9),_0x1d237e,{'pageName':_0x30483f,'templateName':_0x383c54});}}catch(_0x4eaf05){if(_0x1e1ab0){const _0x5778e3=Date[_0x59f405(0xbc)]()-_0x406096;logger[_0x59f405(0xa7)](_0x59f405(0xe0),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x34228f,'targetPath':_0x2108ba,'pageName':_0x30483f,'templateName':_0x383c54,'error':_0x4eaf05 instanceof Error?_0x4eaf05[_0x59f405(0xd0)]:String(_0x4eaf05),'duration':_0x5778e3});}throw _0x4eaf05;}}static async['processDirectory'](_0x112c71,_0x25c028,_0x13f6ce,_0x9f941d){const _0x150f61=a370_0x488fc7,_0x4d03ef=await a370_0x23a89e[_0x150f61(0xb6)]['readdir'](_0x112c71,{'withFileTypes':!![]});for(const _0x54b51e of _0x4d03ef){const _0x513746=a370_0x3cdcb6[_0x150f61(0xda)](_0x112c71,_0x54b51e[_0x150f61(0xb4)]);let _0x3f157f=a370_0x3cdcb6['join'](_0x25c028,_0x54b51e[_0x150f61(0xb4)]);_0x54b51e['name'][_0x150f61(0xeb)](_0x150f61(0xba))&&(_0x3f157f=a370_0x3cdcb6[_0x150f61(0xda)](_0x25c028,_0x54b51e[_0x150f61(0xb4)][_0x150f61(0xb1)](/\.tpl$/,'')));if(_0x54b51e[_0x150f61(0xae)]())await a370_0x23a89e[_0x150f61(0xb6)][_0x150f61(0xcd)](_0x3f157f,{'recursive':!![]}),await this[_0x150f61(0xb7)](_0x513746,_0x3f157f,_0x13f6ce,_0x9f941d);else _0x54b51e['isFile']()&&await this[_0x150f61(0xe3)](_0x513746,_0x3f157f,_0x13f6ce,_0x9f941d);}}static async[a370_0x488fc7(0xe3)](_0x30e93a,_0x36092f,_0x35dc28,_0x1140fe){const _0x59ec02=a370_0x488fc7,_0x3f6aa3=a370_0x3cdcb6[_0x59ec02(0xdf)](_0x30e93a)['toLowerCase']();_0x30e93a[_0x59ec02(0xeb)]('.tpl')&&(_0x36092f=_0x36092f[_0x59ec02(0xb1)](/\.tpl$/,''));const _0x561bdc=[_0x59ec02(0xec),_0x59ec02(0xea),'.jsx',_0x59ec02(0xb0),_0x59ec02(0xc6),_0x59ec02(0xbf),_0x59ec02(0xaa),_0x59ec02(0xa8),'.tpl'];if(_0x561bdc[_0x59ec02(0xe7)](_0x3f6aa3)||_0x30e93a['endsWith'](_0x59ec02(0xba))){const _0x1f7206=await a370_0x23a89e[_0x59ec02(0xb6)][_0x59ec02(0xc5)](_0x30e93a,'utf8'),_0x401da5=this[_0x59ec02(0xcf)](_0x1f7206,_0x35dc28,_0x1140fe);await a370_0x23a89e['promises'][_0x59ec02(0xc4)](_0x36092f,_0x401da5,_0x59ec02(0xc2));}else await a370_0x23a89e[_0x59ec02(0xb6)][_0x59ec02(0xb9)](_0x30e93a,_0x36092f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a371_0x4530(){const _0x1d55f3=['parse','33611544RALnXQ','7GPbDBz','445503IsqDuB','number','now','7259118AiiiXg','toLowerCase','4xLfiKT','/v/','checkedAt',',\x20run:\x20','yes','6685240XwsNbW','stableVersion','true','https://www.npmjs.com/package/','lastNotifiedAt','valid','6433952eJXQbP','lastNotifiedVersion','stringify','utf8','object','rabetbase-cli','update-check.json','trim','1954419LGgwzL','2898196uCkbZe'];a371_0x4530=function(){return _0x1d55f3;};return a371_0x4530();}(function(_0x405183,_0x332796){const _0x58ed37=a371_0x15d6,_0x27b8c4=_0x405183();while(!![]){try{const _0x172d1c=-parseInt(_0x58ed37(0x1f2))/0x1+parseInt(_0x58ed37(0x1ee))/0x2+-parseInt(_0x58ed37(0x1ed))/0x3+-parseInt(_0x58ed37(0x1da))/0x4*(parseInt(_0x58ed37(0x1df))/0x5)+-parseInt(_0x58ed37(0x1f5))/0x6*(parseInt(_0x58ed37(0x1f1))/0x7)+-parseInt(_0x58ed37(0x1e5))/0x8+parseInt(_0x58ed37(0x1f0))/0x9;if(_0x172d1c===_0x332796)break;else _0x27b8c4['push'](_0x27b8c4['shift']());}catch(_0x4591c6){_0x27b8c4['push'](_0x27b8c4['shift']());}}}(a371_0x4530,0xb3969));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a371_0x15d6(_0x21f181,_0x2c9c69){_0x21f181=_0x21f181-0x1d9;const _0x4530a0=a371_0x4530();let _0x15d65c=_0x4530a0[_0x21f181];return _0x15d65c;}import{dirname,join}from'node:path';import a371_0x296e06 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3aafea=a371_0x15d6,_0x892c4f=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3aafea(0x1ec)]()[_0x3aafea(0x1d9)]();return _0x892c4f==='1'||_0x892c4f===_0x3aafea(0x1e1)||_0x892c4f===_0x3aafea(0x1de);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x34c8cb=a371_0x15d6;return join(cacheRoot(),_0x34c8cb(0x1ea),_0x34c8cb(0x1eb));}async function readUpdateNoticeCache(){const _0x21fcb8=a371_0x15d6;try{const _0x477d5a=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x28a315=JSON[_0x21fcb8(0x1ef)](_0x477d5a);if(!_0x28a315||typeof _0x28a315!==_0x21fcb8(0x1e9))return{};return _0x28a315;}catch{return{};}}async function writeUpdateNoticeCache(_0x4a553b){const _0x2a22a7=a371_0x15d6;try{const _0x3bb964=getUpdateNoticeCachePath();await mkdir(dirname(_0x3bb964),{'recursive':!![]}),await writeFile(_0x3bb964,JSON[_0x2a22a7(0x1e7)](_0x4a553b,null,0x2)+'\x0a',_0x2a22a7(0x1e8));}catch{}}function isFreshCheck(_0x4312cf,_0x35f33f){const _0x1bc591=a371_0x15d6;return typeof _0x4312cf['checkedAt']===_0x1bc591(0x1f3)&&_0x35f33f-_0x4312cf[_0x1bc591(0x1dc)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x20feee,_0x128efe,_0x124bd7){const _0x580177=a371_0x15d6;return _0x20feee[_0x580177(0x1e6)]===_0x128efe&&typeof _0x20feee[_0x580177(0x1e3)]===_0x580177(0x1f3)&&_0x124bd7-_0x20feee[_0x580177(0x1e3)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4ce0b1){const _0x53e26a=a371_0x15d6;return _0x53e26a(0x1e2)+NPM_PACKAGE_NAME+_0x53e26a(0x1db)+_0x4ce0b1;}export async function resolveLatestUpdateNotice(){const _0x22c5b0=a371_0x15d6;if(isUpdateNoticeDisabled())return null;try{const _0xc995d2=Date[_0x22c5b0(0x1f4)](),_0x5c4178=getCliVersion(),_0x3b79ba=await readUpdateNoticeCache();let _0x2e4376=isFreshCheck(_0x3b79ba,_0xc995d2)?_0x3b79ba['latest']?.['trim']():undefined;if(!_0x2e4376&&!isFreshCheck(_0x3b79ba,_0xc995d2)){const _0x5438a8=await getCliVersionPolicy();_0x2e4376=_0x5438a8?.[_0x22c5b0(0x1e0)]?.[_0x22c5b0(0x1ec)]()||undefined,await writeUpdateNoticeCache({..._0x3b79ba,'checkedAt':_0xc995d2,'latest':_0x2e4376,'failed':!_0x2e4376});}if(!_0x2e4376||!a371_0x296e06[_0x22c5b0(0x1e4)](_0x5c4178)||!a371_0x296e06[_0x22c5b0(0x1e4)](_0x2e4376))return null;if(a371_0x296e06['gte'](_0x5c4178,_0x2e4376))return null;if(isRecentlyNotified(_0x3b79ba,_0x2e4376,_0xc995d2))return null;const _0x602e3f=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3b79ba,'checkedAt':isFreshCheck(_0x3b79ba,_0xc995d2)?_0x3b79ba[_0x22c5b0(0x1dc)]:_0xc995d2,'latest':_0x2e4376,'failed':![],'lastNotifiedVersion':_0x2e4376,'lastNotifiedAt':_0xc995d2}),{'command':_0x602e3f,'current':_0x5c4178,'latest':_0x2e4376,'url':buildNpmVersionUrl(_0x2e4376),'message':CLI_BIN_NAME+'\x20'+_0x2e4376+'\x20available,\x20current\x20'+_0x5c4178+_0x22c5b0(0x1dd)+_0x602e3f};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x334918,_0x4413bf){var _0xe32c0=a372_0x4472,_0x1b64f1=_0x334918();while(!![]){try{var _0x4a02b9=-parseInt(_0xe32c0(0x107))/0x1+-parseInt(_0xe32c0(0x109))/0x2+-parseInt(_0xe32c0(0x104))/0x3*(-parseInt(_0xe32c0(0x103))/0x4)+-parseInt(_0xe32c0(0x105))/0x5*(-parseInt(_0xe32c0(0x10c))/0x6)+parseInt(_0xe32c0(0x10a))/0x7*(parseInt(_0xe32c0(0x108))/0x8)+parseInt(_0xe32c0(0x10b))/0x9+parseInt(_0xe32c0(0x106))/0xa;if(_0x4a02b9===_0x4413bf)break;else _0x1b64f1['push'](_0x1b64f1['shift']());}catch(_0x4ea144){_0x1b64f1['push'](_0x1b64f1['shift']());}}}(a372_0x6a44,0x86929));function a372_0x6a44(){var _0x2a6747=['988467MYDQYV','136PBBCFD','1653592vZmySs','359422Deqzky','1278711zqcwRU','12LtpclL','288404GZHBHm','3GWfvrb','1861595NvcnXN','5347720ErAqOu'];a372_0x6a44=function(){return _0x2a6747;};return a372_0x6a44();}function a372_0x4472(_0x51ef2a,_0x5d1554){_0x51ef2a=_0x51ef2a-0x103;var _0x6a4406=a372_0x6a44();var _0x4472aa=_0x6a4406[_0x51ef2a];return _0x4472aa;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x327ebb,_0x51d656){var _0x543c6a=a373_0x14cb,_0x5ec015=_0x327ebb();while(!![]){try{var _0x327129=-parseInt(_0x543c6a(0x16f))/0x1+parseInt(_0x543c6a(0x16e))/0x2+parseInt(_0x543c6a(0x172))/0x3*(parseInt(_0x543c6a(0x173))/0x4)+-parseInt(_0x543c6a(0x16b))/0x5+-parseInt(_0x543c6a(0x170))/0x6+parseInt(_0x543c6a(0x16d))/0x7*(-parseInt(_0x543c6a(0x16c))/0x8)+parseInt(_0x543c6a(0x171))/0x9;if(_0x327129===_0x51d656)break;else _0x5ec015['push'](_0x5ec015['shift']());}catch(_0x54473b){_0x5ec015['push'](_0x5ec015['shift']());}}}(a373_0x5ad1,0x8c586));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a373_0x14cb(_0x13fce2,_0x39d1d7){_0x13fce2=_0x13fce2-0x16b;var _0x5ad1ff=a373_0x5ad1();var _0x14cbef=_0x5ad1ff[_0x13fce2];return _0x14cbef;}export async function withActiveCookie(_0x4fce68,_0x5debb3){setActiveCookie(_0x4fce68);try{return await _0x5debb3();}finally{clearActiveCookie();}}function a373_0x5ad1(){var _0x148f48=['8GCVrRL','4815855dJsaAW','8wLDAtU','193095TkMioz','2167890iCjNMk','541506rDCsUS','5122950iNTAnQ','13098780wTJZWD','632364lcdpCT'];a373_0x5ad1=function(){return _0x148f48;};return a373_0x5ad1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a374_0x23b0(_0x23b749,_0x205699){_0x23b749=_0x23b749-0xff;var _0x1c4820=a374_0x1c48();var _0x23b082=_0x1c4820[_0x23b749];return _0x23b082;}(function(_0x4d1146,_0x2cf1ab){var _0x5a1249=a374_0x23b0,_0xde97a2=_0x4d1146();while(!![]){try{var _0x155c24=parseInt(_0x5a1249(0x108))/0x1+-parseInt(_0x5a1249(0x100))/0x2*(-parseInt(_0x5a1249(0x105))/0x3)+parseInt(_0x5a1249(0x103))/0x4+parseInt(_0x5a1249(0x106))/0x5*(parseInt(_0x5a1249(0x104))/0x6)+-parseInt(_0x5a1249(0x109))/0x7*(-parseInt(_0x5a1249(0x107))/0x8)+parseInt(_0x5a1249(0x102))/0x9*(parseInt(_0x5a1249(0x10a))/0xa)+-parseInt(_0x5a1249(0xff))/0xb;if(_0x155c24===_0x2cf1ab)break;else _0xde97a2['push'](_0xde97a2['shift']());}catch(_0x29fb8f){_0xde97a2['push'](_0xde97a2['shift']());}}}(a374_0x1c48,0x6d6d5));function a374_0x1c48(){var _0x4bb885=['921994yfNLcH','stderr','6642uBuXQX','2601488ZcGWvH','114yxlqcg','3LhvRfS','41660gipIUp','4424WiFICE','441931EAxxfz','9275VuteAb','3470hItHAW','24774266oPRMyP'];a374_0x1c48=function(){return _0x4bb885;};return a374_0x1c48();}export function writeCliSideChannelLine(_0x5462c2){var _0x63bb62=a374_0x23b0;process[_0x63bb62(0x101)]['write'](_0x5462c2+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
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.
|
|
3
|
+
version: 2.5.7
|
|
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:
|
|
@@ -52,7 +52,7 @@ Agent 负责把已授权的目标推进到可验证的结果:主动获取事
|
|
|
52
52
|
## Agent 快速执行顺序
|
|
53
53
|
|
|
54
54
|
1. **判断需求类型**
|
|
55
|
-
- 用户要创建或设计审批流、工作流、业务流程或多级审批 → 先读 [`approval-flow-development-workflow.md`](guides/approval-flow-development-workflow.md)。用户未明确限定类型时,默认推荐独立工作流 `INDEPENDENT_FLOW`;只有明确是已有数据集表单提交后的纯审批,且不包含填写、补材料、执行或确认等办理步骤时,才选择 `FORM_FLOW`;再使用 `flow validate/create/update/publish`
|
|
55
|
+
- 用户要创建或设计审批流、工作流、业务流程或多级审批 → 先读 [`approval-flow-development-workflow.md`](guides/approval-flow-development-workflow.md)。用户未明确限定类型时,默认推荐独立工作流 `INDEPENDENT_FLOW`;只有明确是已有数据集表单提交后的纯审批,且不包含填写、补材料、执行或确认等办理步骤时,才选择 `FORM_FLOW`;再使用 `flow validate/create/update/publish`;表单绑定与运行页面提交见 [表单发起指南](guides/form-flow-start.md),可绑定页面用 `flow page-list` 查询
|
|
56
56
|
- Instant API 标准数据记录操作 → SDK filter/getOne/create/batchCreate/update/delete;批量更新使用 `update({ id: [...] })`,不存在 `batchUpdate()`
|
|
57
57
|
- 简单聚合且数据集是 DB_TABLE → SDK aggregate;聚合列用 `aggregate[].column`,不要用旧别名 `field`
|
|
58
58
|
- 同库 DB_TABLE 的复杂 JOIN / 数据库函数 → 评估 Custom SQL;跨库查询 → 按 [跨库 BFF 指南](guides/cross-database-bff.md)分别读取并拼接
|
|
@@ -80,6 +80,7 @@ Agent 负责把已授权的目标推进到可验证的结果:主动获取事
|
|
|
80
80
|
- 先使用 `sql list/detail` 查找可复用的 Custom SQL;没有满足需求的资源时,按照 [`sql-creation-workflow.md`](guides/sql-creation-workflow.md) 与 [`sql-mybatis.md`](guides/sql-mybatis.md) 创建、校验、发布并验证
|
|
81
81
|
- 页面执行已发布的 Custom SQL 时使用 `sqlCode` + `params`;Backend Function 默认使用 `context.client.sql.byName(sqlName).execute({ params })`,`sql.execute({ sqlCode, params })` 仅作兼容路径
|
|
82
82
|
4. **Backend Function 工作流**
|
|
83
|
+
- 涉及用户、角色、数据权限或系统任务时,先读 [执行身份与数据集权限](guides/backend-function.md#执行身份与数据集权限):服务端可信身份、多角色、逐数据集操作鉴权及主子关联边界
|
|
83
84
|
- 跨数据库连接的业务查询、关联筛选或聚合,先读 [跨库 BFF 查询与拼接](guides/cross-database-bff.md),确认完整键、执行顺序、各端授权和结果完整性
|
|
84
85
|
- 创建或修改 Backend Function 时,按 [BFF 工作流](guides/bff-creation-workflow.md)复用有效事实、按需查询并完成必要验证;运行行为异常时用 `bff logs` 按时间、级别和关键字查询日志
|
|
85
86
|
- `bff pull` / `bff push` 返回 `data.conflicts` 时,逐项报告 `lockKey` 和 `code`,并只在审阅后执行该项 `nextAction`;不得把同步冲突说成失败、自动使用 `--force`,或盲目重试整批脚本
|
|
@@ -120,10 +121,12 @@ Agent 负责把已授权的目标推进到可验证的结果:主动获取事
|
|
|
120
121
|
- 填写办理人、角色或转交候选人前,使用 `rabetbase flow runtime-user-search`、`runtime-role-list`、`runtime-role-user-list` 查询运行态真实 ID;这些命令只读,不办理待办。
|
|
121
122
|
- FlowConfig 字段和校验规则以 [`knowledge/approval-flow/config-json-schema.md`](knowledge/approval-flow/config-json-schema.md) 为准;CLI 校验结果区分 `READY`、`NEEDS_USER_CONFIRMATION`、`NEEDS_DSL_EXTENSION`、`INVALID_CONFIG` 和 `REMOTE_VALIDATION_FAILED`。
|
|
122
123
|
- `FORM_FLOW` 是表单审批流,人工节点只能使用 `taskMode: APPROVAL`,不得生成 `HANDLE`。
|
|
124
|
+
- 表单流程用 `flow page-list` 发现 CREATE 页面并写完整 `pageIds`;新建无 ID 时结果只是候选,已有流程传 `--id` 筛除其他流程占用。绑定集合发生增删时必须先审阅 dry-run 原绑定变化,正式 update 传 `--expected-page-ids`。生成表单提交代码时阅读 [`form-flow-start.md`](guides/form-flow-start.md),先保存业务记录,再以实际页面与已有 dataId 显式发起。
|
|
123
125
|
- `INDEPENDENT_FLOW` 是工作流,可以组合 `APPROVAL` 和 `HANDLE`;包含审批节点也不会改变其工作流类型。
|
|
124
126
|
- `pageMode` 只属于独立工作流:当前公开 Skill 只生成 `CUSTOM_PAGE`,由业务页面根据业务状态自行渲染并通过 SDK 驱动;缺省也按 `CUSTOM_PAGE`。用户要求 `PLATFORM_FORM` 时返回 `NEEDS_DSL_EXTENSION`,不生成或提交 FlowConfig。`CUSTOM_PAGE` 可选配置 `flowJson.startPath` 以及 `APPROVAL` / `END` 节点 `path` 作为纯导航信息;这些字段都不参与流程执行。配置时必须使用目标自定义页面返回的完整 `runtimePageUrl`,不得填写菜单原始 `path`、`pageUrl`、`editPageUrl` 或手工拼接地址。
|
|
125
127
|
- 为独立工作流填写页面导航前,先用 `page custom-list` 找到目标页面,再用 `page custom-detail --id <pageId>` 检查 `data.status`。只有 `FORMAL` 页面才允许把 `runtimePageUrl` 写入 `startPath` 或节点 `path`;状态不是 `FORMAL` 时保持字段未填写,返回 `NEEDS_USER_CONFIRMATION` 并询问用户是否先发布。用户同意后按 `page custom-publish` 的 dry-run、确认、正式发布和 `FORMAL` 回读闭环执行,发布成功后再填写返回的 `runtimePageUrl`。
|
|
126
128
|
- 自定义页面 Flow SDK 只面向 `INDEPENDENT_FLOW + CUSTOM_PAGE`,使用当前 Runtime 登录会话;不得把表单审批流或平台表单工作流混入该入口。生成页面前必须按 Flow SDK 指南的完整字段字典解释所有固定返回对象及嵌套字段,不能只知道方法名和 TypeScript 类型。
|
|
129
|
+
- 发布后回读定义和完整页面绑定,启用状态通过平台或实际运行入口核验;已发布流程更新会回草稿,必须重新发布。曾发布的流程不能改类型。发布成功后仍按创建工作流完成运行态验收。
|
|
127
130
|
|
|
128
131
|
## 应用决议指引
|
|
129
132
|
|
|
@@ -360,7 +363,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
360
363
|
| 列出配置 | [`rabetbase config list`](references/rabetbase-config.md) | 查看当前生效的配置 |
|
|
361
364
|
| 管理运行态 app-config | [`rabetbase app-config list/get/set/delete`](references/rabetbase-app-config.md) | 运行态 app-config 管理面;默认不输出明文 value;`set` 为 `write`,`delete` 保持 `high-risk-write` |
|
|
362
365
|
| 管理 Instant API 数据集访问策略 | [`rabetbase instant-api-policy init/current/pull/validate/publish/revisions/revision/rollback`](references/rabetbase-instant-api-policy.md) | 固定文件 `.rabetbase/instant-api-policy/<appCode>/policy.json`;`version` 是 JSON 结构版本,`revision` 是发布历史版本;publish/rollback 为 high-risk-write |
|
|
363
|
-
| 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;search 仅V2,默认解析 `kbServiceDomain`,可用 `--kb-service-url` 单次覆盖,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
|
|
366
|
+
| 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;detail 返回完整正文,追加前必须读取;search 仅V2,默认解析 `kbServiceDomain`,可用 `--kb-service-url` 单次覆盖,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
|
|
364
367
|
| 管理当前研发应用的 Agent context 规则 | [`rabetbase rule list/get/set`](references/rabetbase-rule.md) | `RULES.md` 供页面、API 等研发 Agent 使用且排除 DB Agent;`DATABASE.md` 仅供数据库分析时 DB Agent 使用;两者在各自流程全程参与 context;set 为 `write`,先 dry-run |
|
|
365
368
|
| 查询或管理应用级通知配置 | [`rabetbase notification config-list`](references/rabetbase-notification-config-list.md) / [`rabetbase notification config-create`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-update`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-delete`](references/rabetbase-notification-config-mutations.md) | list 获取 Backend Function 所需 `configCode`;写入只接收单一敏感 JSON 源,先 dry-run;update/delete 必须 `--yes` |
|
|
366
369
|
| 设计、校验和发布表单审批流或独立工作流 | [`rabetbase flow validate/list/detail/create/update/publish`](references/rabetbase-flow-commands.md) | 先确定 `flowType`;本地 validate 后再 create/update 和 publish |
|
|
@@ -561,6 +564,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
561
564
|
| SQL MyBatis 与动态 SQL | 写自定义 SQL、`<if>`/`<foreach>`、参数绑定 | [`sql-mybatis.md`](guides/sql-mybatis.md) |
|
|
562
565
|
| 前端页面开发约束 | React 页、表单、列表、与数据集绑定 | [`frontend-development.md`](guides/frontend-development.md) |
|
|
563
566
|
| 自定义页面 Flow SDK | 页面发起、查询或办理 `INDEPENDENT_FLOW + CUSTOM_PAGE`,以及 appCode、Cookie、表单和流程变量边界 | [`custom-page-flow-sdk.md`](guides/custom-page-flow-sdk.md) |
|
|
567
|
+
| 表单页面发起审批 | `FORM_FLOW` 多页面绑定、先保存业务记录再显式启动及失败恢复 | [`form-flow-start.md`](guides/form-flow-start.md) |
|
|
564
568
|
| 故障诊断 | CLI/登录/数据集/保存失败排障 | [`troubleshooting.md`](guides/troubleshooting.md) |
|
|
565
569
|
| Backend Function 脚本规范 | HOOK/ENDPOINT/COMMON、`context.client`、消息通知扩展、目录与注释模板 | [`backend-function.md`](guides/backend-function.md) |
|
|
566
570
|
| 数据接口访问 | 先 detail 再编码、外键/枚举、禁止 N+1、批量与关联查询;验证真实行数据时交接 `lovrabet data`(**`lovrabet` CLI ≥ 2.0**) | [`data-api-guidelines.md`](guides/data-api-guidelines.md) |
|
|
@@ -571,4 +575,4 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
571
575
|
| 质量与最佳实践 | 审查 SQL/Backend Function、命名、高危边界、描述字段 | [`best-practices.md`](guides/best-practices.md) |
|
|
572
576
|
| 数据库连接与分析 | 接入/改连/测连、`traceId` 来源、`db analyze-*` 与 dataset 分工;子命令速查见上文 **「数据库连接(db)」** | [`database-connection-workflow.md`](guides/database-connection-workflow.md) |
|
|
573
577
|
| 菜单异常审计与安全修复 | 重复 path、根级菜单重名、空 folder 删除计划和平台处理后回查 | [`menu-anomaly-manual-cleanup.md`](guides/menu-anomaly-manual-cleanup.md) |
|
|
574
|
-
| 表单审批流与独立工作流设计态开发 |
|
|
578
|
+
| 表单审批流与独立工作流设计态开发 | 流程分类、页面绑定、资源发现、FlowConfig、校验、创建、发布和运行验收 | [`approval-flow-development-workflow.md`](guides/approval-flow-development-workflow.md) |
|