@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.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.d.ts +9 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.d.ts +2 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +8 -0
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.d.ts +13 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +25 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.d.ts +2 -0
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.d.ts +1 -0
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +51 -0
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.d.ts +1 -0
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.d.ts +5 -0
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.d.ts +1 -0
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.d.ts +12 -0
- package/lib/cli-flags.js +1 -1
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.d.ts +2 -0
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.d.ts +2 -0
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.d.ts +2 -0
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.d.ts +2 -0
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.d.ts +18 -0
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.d.ts +5 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.d.ts +10 -0
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.d.ts +2 -0
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.d.ts +11 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.d.ts +46 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.d.ts +2 -0
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.d.ts +2 -0
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.d.ts +2 -0
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.d.ts +105 -0
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.d.ts +4 -0
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.d.ts +2 -0
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.d.ts +2 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.d.ts +5 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.d.ts +2 -0
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.d.ts +2 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.d.ts +2 -0
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.d.ts +2 -0
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +8 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.d.ts +2 -0
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.d.ts +2 -0
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.d.ts +2 -0
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.d.ts +2 -0
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.d.ts +17 -0
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.d.ts +17 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.d.ts +11 -0
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.d.ts +12 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +26 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.d.ts +13 -0
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.d.ts +5 -0
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.d.ts +5 -0
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.d.ts +5 -0
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.d.ts +5 -0
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.d.ts +16 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.d.ts +7 -0
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.d.ts +7 -0
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.d.ts +8 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.d.ts +33 -0
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.d.ts +18 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.d.ts +11 -0
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.d.ts +2 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.d.ts +2 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.d.ts +26 -0
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.d.ts +27 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.d.ts +3 -0
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.d.ts +2 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +2 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.d.ts +2 -0
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.d.ts +2 -0
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.d.ts +2 -0
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.d.ts +2 -0
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.d.ts +128 -0
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.d.ts +2 -0
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.d.ts +53 -0
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.d.ts +17 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.d.ts +2 -0
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.d.ts +30 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.d.ts +2 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.d.ts +2 -0
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.d.ts +2 -0
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.d.ts +2 -0
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.d.ts +2 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.d.ts +2 -0
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.d.ts +2 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.d.ts +5 -0
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.d.ts +2 -0
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.d.ts +15 -0
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.d.ts +2 -0
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.d.ts +2 -0
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.d.ts +2 -0
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.d.ts +2 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.d.ts +11 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.d.ts +23 -0
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.d.ts +32 -0
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.d.ts +2 -0
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.d.ts +2 -0
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.d.ts +2 -0
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.d.ts +2 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.d.ts +2 -0
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.d.ts +33 -0
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.d.ts +2 -0
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.d.ts +5 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.d.ts +2 -0
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.d.ts +2 -0
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.d.ts +3 -0
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.d.ts +2 -0
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.d.ts +2 -0
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.d.ts +2 -0
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.d.ts +17 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.d.ts +2 -0
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.d.ts +2 -0
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.d.ts +2 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.d.ts +2 -0
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.d.ts +27 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.d.ts +12 -0
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.d.ts +12 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.d.ts +10 -0
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +12 -0
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +28 -0
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +69 -0
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.d.ts +17 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.d.ts +7 -0
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +162 -0
- package/lib/commands/menu/shared/update-core.d.ts +11 -0
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.d.ts +6 -0
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.d.ts +2 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.d.ts +2 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.d.ts +2 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.d.ts +2 -0
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.d.ts +2 -0
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.d.ts +2 -0
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.d.ts +2 -0
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.d.ts +2 -0
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.d.ts +2 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.d.ts +2 -0
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +105 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.d.ts +2 -0
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.d.ts +2 -0
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.d.ts +2 -0
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.d.ts +2 -0
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.d.ts +2 -0
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.d.ts +2 -0
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.d.ts +2 -0
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.d.ts +2 -0
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.d.ts +74 -0
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.d.ts +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +6 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.d.ts +9 -0
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.d.ts +4 -0
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.d.ts +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.d.ts +2 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +1 -0
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.d.ts +66 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.d.ts +2 -0
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.d.ts +2 -0
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.d.ts +2 -0
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.d.ts +2 -0
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.d.ts +2 -0
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +107 -0
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.d.ts +2 -0
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.d.ts +2 -0
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.d.ts +2 -0
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.d.ts +2 -0
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.d.ts +2 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.d.ts +5 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.d.ts +10 -0
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.d.ts +5 -0
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.d.ts +2 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +5 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.d.ts +2 -0
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.d.ts +5 -0
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.d.ts +5 -0
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.d.ts +23 -0
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.d.ts +5 -0
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.d.ts +2 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.d.ts +2 -0
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.d.ts +2 -0
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.d.ts +2 -0
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.d.ts +2 -0
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.d.ts +10 -0
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.d.ts +6 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.d.ts +11 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.d.ts +6 -0
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.d.ts +50 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +1 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.d.ts +34 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +10 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +14 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +11 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +1 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.d.ts +5 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.d.ts +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.d.ts +36 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.d.ts +5 -0
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.d.ts +61 -0
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +102 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +31 -0
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1018 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +8 -0
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +28 -0
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +7 -0
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +25 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +92 -0
- package/lib/core/bff/utils.d.ts +25 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.d.ts +43 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.d.ts +6 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.d.ts +4 -0
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.d.ts +8 -0
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/types.d.ts +22 -0
- package/lib/core/sql-index-auditor.d.ts +33 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.d.ts +7 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.d.ts +7 -0
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.d.ts +5 -0
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.d.ts +14 -0
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/types.d.ts +43 -0
- package/lib/core/sql-sync/utils.d.ts +10 -0
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.d.ts +34 -0
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +2 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.d.ts +9 -0
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.d.ts +3 -0
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.d.ts +3 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +4 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +11 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +15 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.d.ts +2 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +14 -0
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.d.ts +36 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +3 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +63 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +1 -0
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.d.ts +4 -0
- package/lib/runtime/confirmation.js +1 -0
- package/lib/runtime/event.d.ts +5 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +5 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +8 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/main.d.ts +41 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +99 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.d.ts +44 -0
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.d.ts +12 -0
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.d.ts +8 -0
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +93 -0
- package/lib/utils/ai_config.d.ts +47 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.d.ts +42 -0
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.d.ts +23 -0
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.d.ts +37 -0
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +9 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +42 -0
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.d.ts +1 -0
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.d.ts +30 -0
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.d.ts +25 -0
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.d.ts +80 -0
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.d.ts +30 -0
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.d.ts +7 -0
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.d.ts +62 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.d.ts +15 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +21 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.d.ts +38 -0
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.d.ts +1 -0
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +55 -0
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.d.ts +1 -0
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x20f7d0,_0x3d873d){const _0x2a85eb=a275_0x147b,_0x2b3b39=_0x20f7d0();while(!![]){try{const _0x21b89d=-parseInt(_0x2a85eb(0x11d))/0x1*(parseInt(_0x2a85eb(0x11f))/0x2)+parseInt(_0x2a85eb(0x116))/0x3+-parseInt(_0x2a85eb(0x12c))/0x4*(-parseInt(_0x2a85eb(0x123))/0x5)+parseInt(_0x2a85eb(0x115))/0x6*(parseInt(_0x2a85eb(0x128))/0x7)+-parseInt(_0x2a85eb(0x11b))/0x8*(parseInt(_0x2a85eb(0x124))/0x9)+parseInt(_0x2a85eb(0x12d))/0xa+-parseInt(_0x2a85eb(0x129))/0xb;if(_0x21b89d===_0x3d873d)break;else _0x2b3b39['push'](_0x2b3b39['shift']());}catch(_0x411ea1){_0x2b3b39['push'](_0x2b3b39['shift']());}}}(a275_0x4890,0x99b03));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a275_0x147b(_0x565cdb,_0x59e70d){_0x565cdb=_0x565cdb-0x115;const _0x4890ef=a275_0x4890();let _0x147bd6=_0x4890ef[_0x565cdb];return _0x147bd6;}function getRulesCdnUrl(){const _0x24a38d=a275_0x147b,_0x39dff7=getTemplateBaseUrl();return _0x39dff7+_0x24a38d(0x117);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a275_0x4890(){const _0x6e26aa=['1018UpBSzg','lastUpdated','statusText','content','10PpUQLT','99HKqrMV','agents.md','lovrabet_rules.mdc','utf-8','7042QRxpOk','32490370GVLzJW','status','application/json','2455328UOTIAY','11247570hmxAqH','7146VArpzo','3456450zPyBkm','/rules/rules.json','json','CDN\x20返回数据格式错误','catch','796072EKDSJm','.cursor/rules','49sXtFAS','string'];a275_0x4890=function(){return _0x6e26aa;};return a275_0x4890();}export async function fetchRulesFromCDN(){const _0x552b81=a275_0x147b,_0x2c7ce4=getRulesCdnUrl(),_0x2060ee=await fetch(_0x2c7ce4,{'headers':{'Accept':_0x552b81(0x12b)}});if(!_0x2060ee['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2060ee[_0x552b81(0x12a)]+'\x20'+_0x2060ee[_0x552b81(0x121)]);const _0x4b139f=await _0x2060ee[_0x552b81(0x118)]();if(!_0x4b139f[_0x552b81(0x122)]||typeof _0x4b139f[_0x552b81(0x122)]!==_0x552b81(0x11e))throw new Error(_0x552b81(0x119));return _0x4b139f;}export async function getRulesContent(){const _0x2cf756=a275_0x147b;try{const _0xdcd68=await fetchRulesFromCDN();return _0xdcd68[_0x2cf756(0x122)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x251328=a275_0x147b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251328(0x127));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5825ef){const _0x2248e7=a275_0x147b,_0x71b429=await fetchRulesFromCDN()[_0x2248e7(0x11a)](()=>null);let _0x3cdba3;_0x71b429?(_0x3cdba3=_0x71b429[_0x2248e7(0x122)],_0x71b429[_0x2248e7(0x120)]&&(_0x3cdba3=appendUpdateTime(_0x3cdba3,_0x71b429[_0x2248e7(0x120)]))):_0x3cdba3=readLocalTemplate();const _0x2f7ea3=dirname(_0x5825ef);!existsSync(_0x2f7ea3)&&mkdirSync(_0x2f7ea3,{'recursive':!![]}),writeFileSync(_0x5825ef,_0x3cdba3,_0x2248e7(0x127));}export async function copyRulesToCursor(_0x526895){const _0x45973f=a275_0x147b,_0x11fd8e=join(_0x526895,_0x45973f(0x11c)),_0x256734=join(_0x11fd8e,_0x45973f(0x126));if(existsSync(_0x256734))return![];return await writeRulesFile(_0x256734),!![];}export async function copyRulesToAgentsMd(_0x546496){const _0xd20dd8=a275_0x147b,_0x355b43=join(_0x546496,_0xd20dd8(0x125));if(existsSync(_0x355b43))return![];return await writeRulesFile(_0x355b43),!![];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(ms: number): Promise<unknown>;
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x104f86){return new Promise(_0x3f6314=>setTimeout(_0x3f6314,_0x104f86));}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { RegisterModelConfig } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* 模板内容替换器 - 将模板中的占位符替换为实际值
|
|
4
|
+
*/
|
|
5
|
+
export declare class TemplateReplacer {
|
|
6
|
+
private static pad;
|
|
7
|
+
private static formatLocalTimestamp;
|
|
8
|
+
/**
|
|
9
|
+
* 将页面路径转换为组件名称 (PascalCase)
|
|
10
|
+
* 只使用路径的最后一段
|
|
11
|
+
*/
|
|
12
|
+
static toComponentName(pageName: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* 将页面路径转换为显示标题
|
|
15
|
+
* 只使用路径的最后一段
|
|
16
|
+
*/
|
|
17
|
+
static toDisplayTitle(pageName: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* 替换文件内容中的占位符
|
|
20
|
+
* 支持的标签:
|
|
21
|
+
* - {CliVersion}: CLI 版本号 (如 1.2.5-beta.2)
|
|
22
|
+
* - {ComponentName}: PascalCase 组件名 (如 UserProfile)
|
|
23
|
+
* - {DisplayTitle}: 显示标题 (如 User Profile)
|
|
24
|
+
* - {PageName}: 原始页面名 (如 user-profile)
|
|
25
|
+
* - {TemplateName}: 模板名称 (如 blank)
|
|
26
|
+
* - {CreatedAt}: 本地时间格式 (如 2024-09-14 15:30:45)
|
|
27
|
+
* - {CreatedDate}: 创建日期 (如 2024-09-14)
|
|
28
|
+
* - {CreatedTime}: 创建时间 (如 15:30:45)
|
|
29
|
+
*/
|
|
30
|
+
static replaceContent(content: string, pageName: string, templateName: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* 替换 API 生成模板中的占位符
|
|
33
|
+
* 支持的标签:
|
|
34
|
+
* - {AppCode}: 应用AppCode
|
|
35
|
+
* - {ModelConfigs}: 模型配置数组 JSON 字符串
|
|
36
|
+
* - {ExampleModelName}: 示例模型名称(用于注释中的示例)
|
|
37
|
+
* - {ApiFileName}: API 配置文件名(不含扩展名)
|
|
38
|
+
* - {ConfigName}: 注册配置名称
|
|
39
|
+
* - {ClientConfigParam}: createClient 的参数
|
|
40
|
+
* - {CreatedAt}: ISO 时间戳格式
|
|
41
|
+
*/
|
|
42
|
+
static replaceApiContent(content: string, appCode: string, modelConfigs: RegisterModelConfig[], exampleModelName?: string, apiFileName?: string, configName?: string, clientConfigParam?: string, varPrefix?: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* 处理整个模板目录,复制并替换内容
|
|
45
|
+
*/
|
|
46
|
+
static processTemplate(templatePath: string, targetPath: string, pageName: string, templateName: string, enableLogging?: boolean): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* 递归处理目录中的文件
|
|
49
|
+
*/
|
|
50
|
+
private static processDirectory;
|
|
51
|
+
/**
|
|
52
|
+
* 处理单个文件
|
|
53
|
+
*/
|
|
54
|
+
private static processFile;
|
|
55
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a277_0x4223(_0x49a240,_0x39414f){_0x49a240=_0x49a240-0xd7;const _0x3b4cfe=a277_0x3b4c();let _0x422348=_0x3b4cfe[_0x49a240];return _0x422348;}const a277_0x47a9d2=a277_0x4223;(function(_0x45c693,_0x3fa1a8){const _0x1a7404=a277_0x4223,_0xc8f202=_0x45c693();while(!![]){try{const _0x15a25a=parseInt(_0x1a7404(0xf8))/0x1*(parseInt(_0x1a7404(0x10e))/0x2)+-parseInt(_0x1a7404(0xf3))/0x3+parseInt(_0x1a7404(0xfc))/0x4+parseInt(_0x1a7404(0xef))/0x5+-parseInt(_0x1a7404(0x119))/0x6+parseInt(_0x1a7404(0x105))/0x7*(parseInt(_0x1a7404(0x104))/0x8)+-parseInt(_0x1a7404(0xe9))/0x9*(parseInt(_0x1a7404(0xec))/0xa);if(_0x15a25a===_0x3fa1a8)break;else _0xc8f202['push'](_0xc8f202['shift']());}catch(_0x133725){_0xc8f202['push'](_0xc8f202['shift']());}}}(a277_0x3b4c,0xd326e));function a277_0x3b4c(){const _0x379003=['.jsx','includes','writeFile','3347UrKAbY','utf8','push','toLowerCase','593920luSiJt','.js','开始处理模板内容替换','promises','\x0a\x20\x20\x20\x20{\x20','tableName','datasetCode','processDirectory','30696nnLRfg','791SBszGK','datasetCode:\x20\x22','getDate','YourModel','模板内容替换失败','pop','map','.tpl','now','694dYoiyK','replace','processTemplate','slice','pad','info','replaceApiContent','formatLocalTimestamp','alias','getMonth','readFile','7651776wZlSXl','endsWith','toUpperCase','replaceContent','name','join','getMinutes','default','alias:\x20\x22','extname','.md','success','padStart','.scss','error','.json','processFile','template','toComponentName','readdir','344529nAQpUX','getHours','api','200AUcjXp','mkdir','split','8423555wQiQjl','isFile','getFullYear','toDisplayTitle','1567161UMxcKY','tableName:\x20\x22'];a277_0x3b4c=function(){return _0x379003;};return a277_0x3b4c();}import a277_0x9a7e29 from'node:fs';import a277_0x480a42 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x47a9d2(0x112)](_0x406f94){const _0x461555=a277_0x47a9d2;return String(_0x406f94)[_0x461555(0xe1)](0x2,'0');}static['formatLocalTimestamp'](_0x18e960){const _0x5eb437=a277_0x47a9d2,_0x44ab28=_0x18e960[_0x5eb437(0xf1)](),_0x54fafd=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x117)]()+0x1),_0x5c0f29=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x107)]()),_0x29447b=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0xea)]()),_0x28fafe=this['pad'](_0x18e960[_0x5eb437(0xdb)]()),_0x33b9f6=this[_0x5eb437(0x112)](_0x18e960['getSeconds']());return{'createdAt':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29+'\x20'+_0x29447b+':'+_0x28fafe+':'+_0x33b9f6,'createdDate':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29,'createdTime':_0x29447b+':'+_0x28fafe+':'+_0x33b9f6};}static[a277_0x47a9d2(0xe7)](_0x3335ba){const _0x444441=a277_0x47a9d2,_0x31cdc2=_0x3335ba[_0x444441(0xee)]('/')['pop']()||_0x3335ba;return _0x31cdc2[_0x444441(0xee)]('-')[_0x444441(0x10b)](_0xe3d9f3=>_0xe3d9f3['charAt'](0x0)['toUpperCase']()+_0xe3d9f3[_0x444441(0x111)](0x1)[_0x444441(0xfb)]())[_0x444441(0xda)]('');}static[a277_0x47a9d2(0xf2)](_0x3588af){const _0x5b8b07=a277_0x47a9d2,_0x20af52=_0x3588af[_0x5b8b07(0xee)]('/')[_0x5b8b07(0x10a)]()||_0x3588af;return _0x20af52['split']('-')[_0x5b8b07(0x10b)](_0x36fc4c=>_0x36fc4c['charAt'](0x0)[_0x5b8b07(0xd7)]()+_0x36fc4c[_0x5b8b07(0x111)](0x1)[_0x5b8b07(0xfb)]())[_0x5b8b07(0xda)]('\x20');}static[a277_0x47a9d2(0xd8)](_0x239609,_0x1ade1d,_0x2ae82e){const _0x3c2f17=a277_0x47a9d2,_0x52984d=this[_0x3c2f17(0xe7)](_0x1ade1d),_0x3c6166=this['toDisplayTitle'](_0x1ade1d),{createdAt:_0x36c8e5,createdDate:_0x18b665,createdTime:_0xeaba3c}=this[_0x3c2f17(0x115)](new Date());let _0x25e24a=_0x239609[_0x3c2f17(0x10f)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x52984d)[_0x3c2f17(0x10f)](/\{DisplayTitle\}/g,_0x3c6166)['replace'](/\{PageName\}/g,_0x1ade1d)[_0x3c2f17(0x10f)](/\{TemplateName\}/g,_0x2ae82e)[_0x3c2f17(0x10f)](/\{CreatedAt\}/g,_0x36c8e5)['replace'](/\{CreatedDate\}/g,_0x18b665)[_0x3c2f17(0x10f)](/\{CreatedTime\}/g,_0xeaba3c);return _0x25e24a;}static[a277_0x47a9d2(0x114)](_0x2ef757,_0x32fac9,_0x3841cd,_0x1e6add,_0x494078,_0x13016e,_0x3b5007,_0x2ef539){const _0x10168b=a277_0x47a9d2,_0x219691=new Date(),_0x461e38=_0x219691['toISOString'](),_0x49987c=_0x3841cd[_0x10168b(0x10b)](_0x1c97fd=>{const _0x27ba79=_0x10168b,_0x6b17b6=[_0x27ba79(0x106)+_0x1c97fd[_0x27ba79(0x102)]+'\x22',_0x27ba79(0xf4)+_0x1c97fd[_0x27ba79(0x101)]+'\x22','name:\x20\x22'+_0x1c97fd[_0x27ba79(0xd9)]+'\x22'];return _0x1c97fd[_0x27ba79(0x116)]&&_0x6b17b6[_0x27ba79(0xfa)](_0x27ba79(0xdd)+_0x1c97fd[_0x27ba79(0x116)]+'\x22'),_0x27ba79(0x100)+_0x6b17b6[_0x27ba79(0xda)](',\x20')+'\x20},';})[_0x10168b(0xda)](''),_0x50ba48=_0x1e6add||_0x3841cd[0x0]?.['alias']||_0x10168b(0x108);let _0x1bf858=_0x2ef757[_0x10168b(0x10f)](/\{AppCode\}/g,_0x32fac9)[_0x10168b(0x10f)](/\{ModelConfigs\}/g,_0x49987c)[_0x10168b(0x10f)](/\{ExampleModelName\}/g,_0x50ba48)[_0x10168b(0x10f)](/\{ApiFileName\}/g,_0x494078||_0x10168b(0xeb))[_0x10168b(0x10f)](/\{ConfigName\}/g,_0x13016e||_0x10168b(0xdc))[_0x10168b(0x10f)](/\{ClientConfigParam\}/g,_0x3b5007||'')['replace'](/\{VarPrefix\}/g,_0x2ef539||'LOVRABET')[_0x10168b(0x10f)](/\{CreatedAt\}/g,_0x461e38);return _0x1bf858;}static async[a277_0x47a9d2(0x110)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345,_0x1d5b85=!![]){const _0x2fa5cd=a277_0x47a9d2,_0x2af18a=Date[_0x2fa5cd(0x10d)]();try{_0x1d5b85&&logger[_0x2fa5cd(0x113)](_0x2fa5cd(0xe6),_0x2fa5cd(0xfe),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345});await a277_0x9a7e29[_0x2fa5cd(0xff)][_0x2fa5cd(0xed)](_0x5d3cb0,{'recursive':!![]}),await this[_0x2fa5cd(0x103)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345);if(_0x1d5b85){const _0x2a0ae4=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe0)](_0x2fa5cd(0xe6),'模板内容替换完成',_0x2a0ae4,{'pageName':_0x3dbdc6,'templateName':_0x420345});}}catch(_0x46f4d7){if(_0x1d5b85){const _0x43ce62=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe3)](_0x2fa5cd(0xe6),_0x2fa5cd(0x109),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345,'error':_0x46f4d7 instanceof Error?_0x46f4d7['message']:String(_0x46f4d7),'duration':_0x43ce62});}throw _0x46f4d7;}}static async['processDirectory'](_0x3bcac0,_0x173481,_0x271c9d,_0x375373){const _0xa5727f=a277_0x47a9d2,_0x1cafd3=await a277_0x9a7e29['promises'][_0xa5727f(0xe8)](_0x3bcac0,{'withFileTypes':!![]});for(const _0x54fabe of _0x1cafd3){const _0xc22415=a277_0x480a42['join'](_0x3bcac0,_0x54fabe[_0xa5727f(0xd9)]);let _0x5872e6=a277_0x480a42['join'](_0x173481,_0x54fabe[_0xa5727f(0xd9)]);_0x54fabe[_0xa5727f(0xd9)][_0xa5727f(0x11a)](_0xa5727f(0x10c))&&(_0x5872e6=a277_0x480a42[_0xa5727f(0xda)](_0x173481,_0x54fabe[_0xa5727f(0xd9)]['replace'](/\.tpl$/,'')));if(_0x54fabe['isDirectory']())await a277_0x9a7e29[_0xa5727f(0xff)][_0xa5727f(0xed)](_0x5872e6,{'recursive':!![]}),await this['processDirectory'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);else _0x54fabe[_0xa5727f(0xf0)]()&&await this['processFile'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);}}static async[a277_0x47a9d2(0xe5)](_0x4ca906,_0x1a670e,_0x29d5fc,_0x169689){const _0x546b5a=a277_0x47a9d2,_0x2321d9=a277_0x480a42[_0x546b5a(0xde)](_0x4ca906)[_0x546b5a(0xfb)]();_0x4ca906['endsWith']('.tpl')&&(_0x1a670e=_0x1a670e[_0x546b5a(0x10f)](/\.tpl$/,''));const _0x1527b0=['.tsx','.ts',_0x546b5a(0xf5),_0x546b5a(0xfd),_0x546b5a(0xe4),_0x546b5a(0xdf),'.css',_0x546b5a(0xe2),_0x546b5a(0x10c)];if(_0x1527b0[_0x546b5a(0xf6)](_0x2321d9)||_0x4ca906[_0x546b5a(0x11a)](_0x546b5a(0x10c))){const _0x2a0bc7=await a277_0x9a7e29['promises'][_0x546b5a(0x118)](_0x4ca906,'utf8'),_0x45a0cd=this['replaceContent'](_0x2a0bc7,_0x29d5fc,_0x169689);await a277_0x9a7e29[_0x546b5a(0xff)][_0x546b5a(0xf7)](_0x1a670e,_0x45a0cd,_0x546b5a(0xf9));}else await a277_0x9a7e29[_0x546b5a(0xff)]['copyFile'](_0x4ca906,_0x1a670e);}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface UpdateNotice {
|
|
2
|
+
command: string;
|
|
3
|
+
current: string;
|
|
4
|
+
latest: string;
|
|
5
|
+
url: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function getUpdateNoticeCachePath(): string;
|
|
9
|
+
export declare function buildNpmVersionUrl(version: string): string;
|
|
10
|
+
export declare function resolveLatestUpdateNotice(): Promise<UpdateNotice | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a278_0x3535(){const _0xc57272=['1584502sGOyzy','number','4848UGGdWy','54pTatgL','30952230iozUzT','yes','parse','lastNotifiedVersion','update-check.json','6839GNOHIH','8433awsmBN','/v/','trim','object','4133704ERvBsy','utf8','now','70126sYynRj','lastNotifiedAt','toLowerCase','checkedAt',',\x20run:\x20','stableVersion','467607MgJOEw','stringify','5PpuQlo','gte','rabetbase-cli','valid','latest'];a278_0x3535=function(){return _0xc57272;};return a278_0x3535();}(function(_0x2521c6,_0x4f68f0){const _0x5765ac=a278_0x18ab,_0x3e610b=_0x2521c6();while(!![]){try{const _0x1996d8=-parseInt(_0x5765ac(0xd8))/0x1+-parseInt(_0x5765ac(0xed))/0x2+-parseInt(_0x5765ac(0xe6))/0x3+parseInt(_0x5765ac(0xdd))/0x4*(-parseInt(_0x5765ac(0xe8))/0x5)+parseInt(_0x5765ac(0xd2))/0x6*(parseInt(_0x5765ac(0xe0))/0x7)+parseInt(_0x5765ac(0xd1))/0x8*(-parseInt(_0x5765ac(0xd9))/0x9)+parseInt(_0x5765ac(0xd3))/0xa;if(_0x1996d8===_0x4f68f0)break;else _0x3e610b['push'](_0x3e610b['shift']());}catch(_0x567e99){_0x3e610b['push'](_0x3e610b['shift']());}}}(a278_0x3535,0x999ba));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a278_0x448d04 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 _0x42ac4f=a278_0x18ab,_0x11f66e=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x42ac4f(0xe2)]();return _0x11f66e==='1'||_0x11f66e==='true'||_0x11f66e===_0x42ac4f(0xd4);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x46d6ae=a278_0x18ab;return join(cacheRoot(),_0x46d6ae(0xea),_0x46d6ae(0xd7));}async function readUpdateNoticeCache(){const _0x3e3f34=a278_0x18ab;try{const _0x4f19c4=await readFile(getUpdateNoticeCachePath(),_0x3e3f34(0xde)),_0x25331d=JSON[_0x3e3f34(0xd5)](_0x4f19c4);if(!_0x25331d||typeof _0x25331d!==_0x3e3f34(0xdc))return{};return _0x25331d;}catch{return{};}}async function writeUpdateNoticeCache(_0xc26989){const _0x59d94b=a278_0x18ab;try{const _0x46190e=getUpdateNoticeCachePath();await mkdir(dirname(_0x46190e),{'recursive':!![]}),await writeFile(_0x46190e,JSON[_0x59d94b(0xe7)](_0xc26989,null,0x2)+'\x0a',_0x59d94b(0xde));}catch{}}function isFreshCheck(_0xcba4be,_0x83eed3){const _0x2e5d98=a278_0x18ab;return typeof _0xcba4be[_0x2e5d98(0xe3)]===_0x2e5d98(0xd0)&&_0x83eed3-_0xcba4be[_0x2e5d98(0xe3)]<UPDATE_CHECK_TTL_MS;}function a278_0x18ab(_0xac31c1,_0x180d3d){_0xac31c1=_0xac31c1-0xd0;const _0x3535e1=a278_0x3535();let _0x18ab2e=_0x3535e1[_0xac31c1];return _0x18ab2e;}function isRecentlyNotified(_0x3a604d,_0x4c5b81,_0x4efbf6){const _0xfba607=a278_0x18ab;return _0x3a604d[_0xfba607(0xd6)]===_0x4c5b81&&typeof _0x3a604d[_0xfba607(0xe1)]===_0xfba607(0xd0)&&_0x4efbf6-_0x3a604d[_0xfba607(0xe1)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x198403){const _0x3a62f8=a278_0x18ab;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x3a62f8(0xda)+_0x198403;}export async function resolveLatestUpdateNotice(){const _0x10de53=a278_0x18ab;if(isUpdateNoticeDisabled())return null;try{const _0x359859=Date[_0x10de53(0xdf)](),_0x402d5e=getCliVersion(),_0x926b09=await readUpdateNoticeCache();let _0x5bce1e=isFreshCheck(_0x926b09,_0x359859)?_0x926b09[_0x10de53(0xec)]?.[_0x10de53(0xdb)]():undefined;if(!_0x5bce1e&&!isFreshCheck(_0x926b09,_0x359859)){const _0x41b036=await getCliVersionPolicy();_0x5bce1e=_0x41b036?.[_0x10de53(0xe5)]?.[_0x10de53(0xdb)]()||undefined,await writeUpdateNoticeCache({..._0x926b09,'checkedAt':_0x359859,'latest':_0x5bce1e,'failed':!_0x5bce1e});}if(!_0x5bce1e||!a278_0x448d04[_0x10de53(0xeb)](_0x402d5e)||!a278_0x448d04[_0x10de53(0xeb)](_0x5bce1e))return null;if(a278_0x448d04[_0x10de53(0xe9)](_0x402d5e,_0x5bce1e))return null;if(isRecentlyNotified(_0x926b09,_0x5bce1e,_0x359859))return null;const _0x5a3e58=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x926b09,'checkedAt':isFreshCheck(_0x926b09,_0x359859)?_0x926b09[_0x10de53(0xe3)]:_0x359859,'latest':_0x5bce1e,'failed':![],'lastNotifiedVersion':_0x5bce1e,'lastNotifiedAt':_0x359859}),{'command':_0x5a3e58,'current':_0x402d5e,'latest':_0x5bce1e,'url':buildNpmVersionUrl(_0x5bce1e),'message':CLI_BIN_NAME+'\x20'+_0x5bce1e+'\x20available,\x20current\x20'+_0x402d5e+_0x10de53(0xe4)+_0x5a3e58};}catch{return null;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getCliVersion(): string;
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a279_0x4647(_0x284a48,_0xd9c0ea){_0x284a48=_0x284a48-0x7c;var _0x3b9f8c=a279_0x3b9f();var _0x4647cd=_0x3b9f8c[_0x284a48];return _0x4647cd;}(function(_0x21a496,_0x516714){var _0x119bc5=a279_0x4647,_0x2f6513=_0x21a496();while(!![]){try{var _0x2d9941=-parseInt(_0x119bc5(0x7d))/0x1+parseInt(_0x119bc5(0x84))/0x2+parseInt(_0x119bc5(0x7c))/0x3*(parseInt(_0x119bc5(0x83))/0x4)+parseInt(_0x119bc5(0x7e))/0x5+-parseInt(_0x119bc5(0x85))/0x6*(parseInt(_0x119bc5(0x81))/0x7)+parseInt(_0x119bc5(0x80))/0x8+parseInt(_0x119bc5(0x7f))/0x9*(-parseInt(_0x119bc5(0x82))/0xa);if(_0x2d9941===_0x516714)break;else _0x2f6513['push'](_0x2f6513['shift']());}catch(_0x4f959d){_0x2f6513['push'](_0x2f6513['shift']());}}}(a279_0x3b9f,0x43868));import{VERSION}from'../generated/build-info.js';function a279_0x3b9f(){var _0x41c58e=['1309wudBbF','2046260zUGXEX','580SMfDMT','237864aniFFi','3690mnaINQ','6360xSEAUR','476011iuuBLV','2634835kSpHVt','9LNqTjq','951416fQyMMa'];a279_0x3b9f=function(){return _0x41c58e;};return a279_0x3b9f();}export function getCliVersion(){return VERSION;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withActiveCookie<T>(cookie: string, fn: () => Promise<T>): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a280_0x157a(_0x22e00a,_0x4e0627){_0x22e00a=_0x22e00a-0x1ab;var _0x2111c7=a280_0x2111();var _0x157a71=_0x2111c7[_0x22e00a];return _0x157a71;}(function(_0x5eecf4,_0xf28df8){var _0x1bae62=a280_0x157a,_0x2d662a=_0x5eecf4();while(!![]){try{var _0x51e910=parseInt(_0x1bae62(0x1af))/0x1*(-parseInt(_0x1bae62(0x1b2))/0x2)+parseInt(_0x1bae62(0x1b4))/0x3*(-parseInt(_0x1bae62(0x1ac))/0x4)+parseInt(_0x1bae62(0x1b3))/0x5+parseInt(_0x1bae62(0x1ab))/0x6+-parseInt(_0x1bae62(0x1b0))/0x7*(parseInt(_0x1bae62(0x1b1))/0x8)+parseInt(_0x1bae62(0x1ad))/0x9+parseInt(_0x1bae62(0x1ae))/0xa;if(_0x51e910===_0xf28df8)break;else _0x2d662a['push'](_0x2d662a['shift']());}catch(_0x82aec7){_0x2d662a['push'](_0x2d662a['shift']());}}}(a280_0x2111,0xc02b6));function a280_0x2111(){var _0x4714aa=['1528HTFEhH','74OmiEzR','7034810GJeFhl','6fbPHiw','6179952GIgjem','2400308MfqzbI','8100261nHzCZO','10467880LquiGM','39398MYejVQ','34405BbgbCd'];a280_0x2111=function(){return _0x4714aa;};return a280_0x2111();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2d8b87,_0x147d4c){setActiveCookie(_0x2d8b87);try{return await _0x147d4c();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a281_0xa50c(_0x1cfd7f,_0x52874a){_0x1cfd7f=_0x1cfd7f-0xd0;var _0x3f4845=a281_0x3f48();var _0xa50c2f=_0x3f4845[_0x1cfd7f];return _0xa50c2f;}(function(_0x57a185,_0x32ec14){var _0x3291cf=a281_0xa50c,_0x2008f4=_0x57a185();while(!![]){try{var _0x57ea53=parseInt(_0x3291cf(0xd7))/0x1*(parseInt(_0x3291cf(0xd5))/0x2)+parseInt(_0x3291cf(0xda))/0x3+parseInt(_0x3291cf(0xd9))/0x4+-parseInt(_0x3291cf(0xd8))/0x5+-parseInt(_0x3291cf(0xd1))/0x6+parseInt(_0x3291cf(0xd2))/0x7*(-parseInt(_0x3291cf(0xd4))/0x8)+parseInt(_0x3291cf(0xd0))/0x9*(parseInt(_0x3291cf(0xd6))/0xa);if(_0x57ea53===_0x32ec14)break;else _0x2008f4['push'](_0x2008f4['shift']());}catch(_0x3bdcd7){_0x2008f4['push'](_0x2008f4['shift']());}}}(a281_0x3f48,0xe0889));function a281_0x3f48(){var _0x27d21b=['5827556HYeXeV','1148745VAkSze','684qLpHyr','5500326HXgyMX','291347xVdPFH','write','136qOpLIR','4ZfJvaM','151840YbhldX','428399ilJJpU','6533095gHFeth'];a281_0x3f48=function(){return _0x27d21b;};return a281_0x3f48();}export function writeCliSideChannelLine(_0x5394e2){var _0x517f08=a281_0xa50c;process['stderr'][_0x517f08(0xd3)](_0x5394e2+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.16-beta.
|
|
3
|
+
"version": "2.3.16-beta.5",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"module": "lib/cli.js",
|
|
28
28
|
"main": "lib/cli.js",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./lib/cli.js",
|
|
31
|
+
"./runtime": {
|
|
32
|
+
"types": "./lib/runtime/index.d.ts",
|
|
33
|
+
"import": "./lib/runtime/index.js",
|
|
34
|
+
"default": "./lib/runtime/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
29
37
|
"engines": {
|
|
30
38
|
"node": ">=20"
|
|
31
39
|
},
|