@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.6
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/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x2d09ec){return new Promise(_0x3f0707=>setTimeout(_0x3f0707,_0x2d09ec));}
|
|
@@ -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
|
-
const
|
|
1
|
+
const a277_0x1432da=a277_0x5b7c;function a277_0x5b7c(_0x191fcd,_0x343bda){_0x191fcd=_0x191fcd-0x1ea;const _0x396841=a277_0x3968();let _0x5b7c60=_0x396841[_0x191fcd];return _0x5b7c60;}(function(_0x4de870,_0xb69c8a){const _0x2f2acd=a277_0x5b7c,_0x4edc62=_0x4de870();while(!![]){try{const _0x1484d8=parseInt(_0x2f2acd(0x218))/0x1+parseInt(_0x2f2acd(0x211))/0x2*(-parseInt(_0x2f2acd(0x21f))/0x3)+parseInt(_0x2f2acd(0x1ff))/0x4+parseInt(_0x2f2acd(0x207))/0x5+parseInt(_0x2f2acd(0x22b))/0x6*(-parseInt(_0x2f2acd(0x219))/0x7)+parseInt(_0x2f2acd(0x215))/0x8+-parseInt(_0x2f2acd(0x205))/0x9*(parseInt(_0x2f2acd(0x221))/0xa);if(_0x1484d8===_0xb69c8a)break;else _0x4edc62['push'](_0x4edc62['shift']());}catch(_0x433013){_0x4edc62['push'](_0x4edc62['shift']());}}}(a277_0x3968,0x9a0a5));import a277_0x452336 from'node:fs';import a277_0x16c240 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x1432da(0x20b)](_0x5201ca){return String(_0x5201ca)['padStart'](0x2,'0');}static[a277_0x1432da(0x1f1)](_0x43709a){const _0x56ed87=a277_0x1432da,_0xaddbda=_0x43709a['getFullYear'](),_0x2f56d8=this['pad'](_0x43709a[_0x56ed87(0x203)]()+0x1),_0x558376=this[_0x56ed87(0x20b)](_0x43709a[_0x56ed87(0x22c)]()),_0x111e87=this['pad'](_0x43709a['getHours']()),_0x33c296=this['pad'](_0x43709a[_0x56ed87(0x21b)]()),_0x5210f2=this[_0x56ed87(0x20b)](_0x43709a['getSeconds']());return{'createdAt':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376+'\x20'+_0x111e87+':'+_0x33c296+':'+_0x5210f2,'createdDate':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376,'createdTime':_0x111e87+':'+_0x33c296+':'+_0x5210f2};}static[a277_0x1432da(0x20a)](_0x8cad80){const _0x463877=a277_0x1432da,_0x46a54c=_0x8cad80['split']('/')['pop']()||_0x8cad80;return _0x46a54c['split']('-')['map'](_0x2e258d=>_0x2e258d['charAt'](0x0)[_0x463877(0x204)]()+_0x2e258d[_0x463877(0x202)](0x1)[_0x463877(0x209)]())['join']('');}static[a277_0x1432da(0x225)](_0x29d2ae){const _0x4c6ef2=a277_0x1432da,_0x1030c8=_0x29d2ae[_0x4c6ef2(0x216)]('/')[_0x4c6ef2(0x1fa)]()||_0x29d2ae;return _0x1030c8[_0x4c6ef2(0x216)]('-')['map'](_0x17150f=>_0x17150f[_0x4c6ef2(0x1fb)](0x0)[_0x4c6ef2(0x204)]()+_0x17150f['slice'](0x1)[_0x4c6ef2(0x209)]())['join']('\x20');}static[a277_0x1432da(0x20c)](_0x588209,_0x16699c,_0x4fb199){const _0x296088=a277_0x1432da,_0x42ef13=this[_0x296088(0x20a)](_0x16699c),_0x2f7ba3=this[_0x296088(0x225)](_0x16699c),{createdAt:_0x5cb052,createdDate:_0x599d7d,createdTime:_0x2f399b}=this[_0x296088(0x1f1)](new Date());let _0x3d1a44=_0x588209['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x42ef13)[_0x296088(0x1f5)](/\{DisplayTitle\}/g,_0x2f7ba3)[_0x296088(0x1f5)](/\{PageName\}/g,_0x16699c)[_0x296088(0x1f5)](/\{TemplateName\}/g,_0x4fb199)[_0x296088(0x1f5)](/\{CreatedAt\}/g,_0x5cb052)[_0x296088(0x1f5)](/\{CreatedDate\}/g,_0x599d7d)[_0x296088(0x1f5)](/\{CreatedTime\}/g,_0x2f399b);return _0x3d1a44;}static[a277_0x1432da(0x212)](_0x3c3864,_0x688cb9,_0x5373ee,_0x13a85b,_0x48c635,_0xbccf0e,_0x495bdf,_0x3dfa63){const _0x2e4c7c=a277_0x1432da,_0x51afda=new Date(),_0xe12ff8=_0x51afda[_0x2e4c7c(0x1f7)](),_0x185956=_0x5373ee[_0x2e4c7c(0x1ea)](_0x44e2a8=>{const _0x157a19=_0x2e4c7c,_0x2343c0=[_0x157a19(0x1fd)+_0x44e2a8[_0x157a19(0x22a)]+'\x22','tableName:\x20\x22'+_0x44e2a8['tableName']+'\x22','name:\x20\x22'+_0x44e2a8['name']+'\x22'];return _0x44e2a8[_0x157a19(0x21c)]&&_0x2343c0[_0x157a19(0x228)](_0x157a19(0x21a)+_0x44e2a8[_0x157a19(0x21c)]+'\x22'),_0x157a19(0x1eb)+_0x2343c0['join'](',\x20')+_0x157a19(0x229);})[_0x2e4c7c(0x20d)](''),_0x297205=_0x13a85b||_0x5373ee[0x0]?.[_0x2e4c7c(0x21c)]||_0x2e4c7c(0x1f3);let _0x5244fb=_0x3c3864['replace'](/\{AppCode\}/g,_0x688cb9)['replace'](/\{ModelConfigs\}/g,_0x185956)[_0x2e4c7c(0x1f5)](/\{ExampleModelName\}/g,_0x297205)['replace'](/\{ApiFileName\}/g,_0x48c635||_0x2e4c7c(0x1f9))['replace'](/\{ConfigName\}/g,_0xbccf0e||_0x2e4c7c(0x213))[_0x2e4c7c(0x1f5)](/\{ClientConfigParam\}/g,_0x495bdf||'')['replace'](/\{VarPrefix\}/g,_0x3dfa63||_0x2e4c7c(0x1f4))['replace'](/\{CreatedAt\}/g,_0xe12ff8);return _0x5244fb;}static async[a277_0x1432da(0x1fc)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2,_0x30b34f=!![]){const _0x237f1c=a277_0x1432da,_0x58fbfb=Date[_0x237f1c(0x223)]();try{_0x30b34f&&logger['info'](_0x237f1c(0x226),_0x237f1c(0x1ed),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2});await a277_0x452336['promises']['mkdir'](_0x10b2c3,{'recursive':!![]}),await this[_0x237f1c(0x217)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2);if(_0x30b34f){const _0x38d3f5=Date[_0x237f1c(0x223)]()-_0x58fbfb;logger[_0x237f1c(0x200)]('template',_0x237f1c(0x222),_0x38d3f5,{'pageName':_0x1567f7,'templateName':_0x3918d2});}}catch(_0x4d0707){if(_0x30b34f){const _0x19a125=Date['now']()-_0x58fbfb;logger[_0x237f1c(0x1fe)](_0x237f1c(0x226),_0x237f1c(0x224),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2,'error':_0x4d0707 instanceof Error?_0x4d0707['message']:String(_0x4d0707),'duration':_0x19a125});}throw _0x4d0707;}}static async['processDirectory'](_0x274496,_0x531f8e,_0x3c09cd,_0x30cb1c){const _0x1d40db=a277_0x1432da,_0x3cefed=await a277_0x452336[_0x1d40db(0x206)][_0x1d40db(0x1ec)](_0x274496,{'withFileTypes':!![]});for(const _0x539f12 of _0x3cefed){const _0x17349b=a277_0x16c240['join'](_0x274496,_0x539f12[_0x1d40db(0x20e)]);let _0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)]);_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x220)]('.tpl')&&(_0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x1f5)](/\.tpl$/,'')));if(_0x539f12[_0x1d40db(0x1ee)]())await a277_0x452336['promises'][_0x1d40db(0x20f)](_0x2c95ab,{'recursive':!![]}),await this[_0x1d40db(0x217)](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);else _0x539f12[_0x1d40db(0x227)]()&&await this['processFile'](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);}}static async['processFile'](_0x3212bd,_0x1fece1,_0x3375bf,_0x19de82){const _0x5656b3=a277_0x1432da,_0x2187d9=a277_0x16c240[_0x5656b3(0x21d)](_0x3212bd)[_0x5656b3(0x209)]();_0x3212bd['endsWith'](_0x5656b3(0x1ef))&&(_0x1fece1=_0x1fece1[_0x5656b3(0x1f5)](/\.tpl$/,''));const _0x5d7134=[_0x5656b3(0x210),_0x5656b3(0x1f6),_0x5656b3(0x1f0),_0x5656b3(0x208),'.json',_0x5656b3(0x1f8),'.css',_0x5656b3(0x21e),'.tpl'];if(_0x5d7134[_0x5656b3(0x201)](_0x2187d9)||_0x3212bd['endsWith'](_0x5656b3(0x1ef))){const _0x2f6b58=await a277_0x452336[_0x5656b3(0x206)]['readFile'](_0x3212bd,_0x5656b3(0x214)),_0x2f36f5=this[_0x5656b3(0x20c)](_0x2f6b58,_0x3375bf,_0x19de82);await a277_0x452336[_0x5656b3(0x206)]['writeFile'](_0x1fece1,_0x2f36f5,'utf8');}else await a277_0x452336[_0x5656b3(0x206)][_0x5656b3(0x1f2)](_0x3212bd,_0x1fece1);}}function a277_0x3968(){const _0x359668=['charAt','processTemplate','datasetCode:\x20\x22','error','2378372lbYrib','success','includes','slice','getMonth','toUpperCase','155187VrrSzJ','promises','931915iwKxng','.js','toLowerCase','toComponentName','pad','replaceContent','join','name','mkdir','.tsx','26MjlWzV','replaceApiContent','default','utf8','9976592gulFYr','split','processDirectory','660348NfUUWR','6009689oSoHUr','alias:\x20\x22','getMinutes','alias','extname','.scss','113529YBAIDv','endsWith','410suapMi','模板内容替换完成','now','模板内容替换失败','toDisplayTitle','template','isFile','push','\x20},','datasetCode','6dLvIWs','getDate','map','\x0a\x20\x20\x20\x20{\x20','readdir','开始处理模板内容替换','isDirectory','.tpl','.jsx','formatLocalTimestamp','copyFile','YourModel','LOVRABET','replace','.ts','toISOString','.md','api','pop'];a277_0x3968=function(){return _0x359668;};return a277_0x3968();}
|
|
@@ -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(_0x463f73,_0x5693bb){const _0x1d30e2=a278_0x4184,_0x59d9e5=_0x463f73();while(!![]){try{const _0xf5ebbc=-parseInt(_0x1d30e2(0x187))/0x1*(-parseInt(_0x1d30e2(0x181))/0x2)+parseInt(_0x1d30e2(0x180))/0x3+-parseInt(_0x1d30e2(0x17f))/0x4*(parseInt(_0x1d30e2(0x17e))/0x5)+parseInt(_0x1d30e2(0x17d))/0x6*(parseInt(_0x1d30e2(0x17b))/0x7)+-parseInt(_0x1d30e2(0x184))/0x8*(-parseInt(_0x1d30e2(0x17a))/0x9)+parseInt(_0x1d30e2(0x183))/0xa*(parseInt(_0x1d30e2(0x172))/0xb)+-parseInt(_0x1d30e2(0x185))/0xc;if(_0xf5ebbc===_0x5693bb)break;else _0x59d9e5['push'](_0x59d9e5['shift']());}catch(_0x4e67c8){_0x59d9e5['push'](_0x59d9e5['shift']());}}}(a278_0x1c28,0x3f4f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a278_0x2610f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x1c28(){const _0x65222e=['parse','246hEuykq','179885tKwpYD','36siHwuZ','1278003IUliie','282rJitCk','/v/','3081450sdIbKB','631976VfAYaH','12396036bTzZrQ','latest','2985dpNuoe','stableVersion','checkedAt',',\x20run:\x20','lastNotifiedAt','now','lastNotifiedVersion','toLowerCase','gte','trim','utf8','number','https://www.npmjs.com/package/','valid','11KJwhjF','.cache','\x20available,\x20current\x20','stringify','rabetbase-cli','\x20update','object','yes','45Whinij','11284oIYnqA'];a278_0x1c28=function(){return _0x65222e;};return a278_0x1c28();}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 _0x204a9c=a278_0x4184,_0x4b9b45=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x204a9c(0x190)]()[_0x204a9c(0x18e)]();return _0x4b9b45==='1'||_0x4b9b45==='true'||_0x4b9b45===_0x204a9c(0x179);}function cacheRoot(){const _0x552c7b=a278_0x4184;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x552c7b(0x173));}export function getUpdateNoticeCachePath(){const _0x237de9=a278_0x4184;return join(cacheRoot(),_0x237de9(0x176),'update-check.json');}function a278_0x4184(_0x5c54a8,_0x58d218){_0x5c54a8=_0x5c54a8-0x172;const _0x1c28c0=a278_0x1c28();let _0x41846e=_0x1c28c0[_0x5c54a8];return _0x41846e;}async function readUpdateNoticeCache(){const _0xeae0cb=a278_0x4184;try{const _0x23a956=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x1eb93f=JSON[_0xeae0cb(0x17c)](_0x23a956);if(!_0x1eb93f||typeof _0x1eb93f!==_0xeae0cb(0x178))return{};return _0x1eb93f;}catch{return{};}}async function writeUpdateNoticeCache(_0x15e06f){const _0x2a4883=a278_0x4184;try{const _0x18d4da=getUpdateNoticeCachePath();await mkdir(dirname(_0x18d4da),{'recursive':!![]}),await writeFile(_0x18d4da,JSON[_0x2a4883(0x175)](_0x15e06f,null,0x2)+'\x0a',_0x2a4883(0x191));}catch{}}function isFreshCheck(_0xf5f437,_0x3443cb){const _0x3c51d5=a278_0x4184;return typeof _0xf5f437[_0x3c51d5(0x189)]===_0x3c51d5(0x192)&&_0x3443cb-_0xf5f437[_0x3c51d5(0x189)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x11c9f9,_0x521f0f,_0x44c751){const _0x5b8fa7=a278_0x4184;return _0x11c9f9[_0x5b8fa7(0x18d)]===_0x521f0f&&typeof _0x11c9f9[_0x5b8fa7(0x18b)]===_0x5b8fa7(0x192)&&_0x44c751-_0x11c9f9[_0x5b8fa7(0x18b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xd23650){const _0x329d8b=a278_0x4184;return _0x329d8b(0x193)+NPM_PACKAGE_NAME+_0x329d8b(0x182)+_0xd23650;}export async function resolveLatestUpdateNotice(){const _0x11ea78=a278_0x4184;if(isUpdateNoticeDisabled())return null;try{const _0x2b421a=Date[_0x11ea78(0x18c)](),_0x1c3f55=getCliVersion(),_0x1035c8=await readUpdateNoticeCache();let _0x6cf51c=isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x186)]?.[_0x11ea78(0x190)]():undefined;if(!_0x6cf51c&&!isFreshCheck(_0x1035c8,_0x2b421a)){const _0x10ec98=await getCliVersionPolicy();_0x6cf51c=_0x10ec98?.[_0x11ea78(0x188)]?.[_0x11ea78(0x190)]()||undefined,await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':_0x2b421a,'latest':_0x6cf51c,'failed':!_0x6cf51c});}if(!_0x6cf51c||!a278_0x2610f7['valid'](_0x1c3f55)||!a278_0x2610f7[_0x11ea78(0x194)](_0x6cf51c))return null;if(a278_0x2610f7[_0x11ea78(0x18f)](_0x1c3f55,_0x6cf51c))return null;if(isRecentlyNotified(_0x1035c8,_0x6cf51c,_0x2b421a))return null;const _0x4a86f5=CLI_BIN_NAME+_0x11ea78(0x177);return await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x189)]:_0x2b421a,'latest':_0x6cf51c,'failed':![],'lastNotifiedVersion':_0x6cf51c,'lastNotifiedAt':_0x2b421a}),{'command':_0x4a86f5,'current':_0x1c3f55,'latest':_0x6cf51c,'url':buildNpmVersionUrl(_0x6cf51c),'message':CLI_BIN_NAME+'\x20'+_0x6cf51c+_0x11ea78(0x174)+_0x1c3f55+_0x11ea78(0x18a)+_0x4a86f5};}catch{return null;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getCliVersion(): string;
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x6c89dc,_0x1aa84f){var _0x506c20=a279_0x5b38,_0x320b76=_0x6c89dc();while(!![]){try{var _0x4201fd=parseInt(_0x506c20(0xb2))/0x1+parseInt(_0x506c20(0xb1))/0x2+parseInt(_0x506c20(0xb6))/0x3*(parseInt(_0x506c20(0xb3))/0x4)+parseInt(_0x506c20(0xb4))/0x5+-parseInt(_0x506c20(0xb5))/0x6*(parseInt(_0x506c20(0xb8))/0x7)+-parseInt(_0x506c20(0xb9))/0x8*(parseInt(_0x506c20(0xba))/0x9)+-parseInt(_0x506c20(0xb7))/0xa;if(_0x4201fd===_0x1aa84f)break;else _0x320b76['push'](_0x320b76['shift']());}catch(_0xd8caad){_0x320b76['push'](_0x320b76['shift']());}}}(a279_0x1f57,0x9360b));import{VERSION}from'../generated/build-info.js';function a279_0x1f57(){var _0x2833cd=['472SgXxtt','105327LkCYBU','10282dxEgni','807300lUBPCn','4nSVsOX','201945OaWAcF','12boCKos','2058159UmFGtx','831890prCjOQ','565453VIaNTl'];a279_0x1f57=function(){return _0x2833cd;};return a279_0x1f57();}function a279_0x5b38(_0x568e6c,_0x35b202){_0x568e6c=_0x568e6c-0xb1;var _0x1f57b9=a279_0x1f57();var _0x5b384c=_0x1f57b9[_0x568e6c];return _0x5b384c;}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_0x2376(_0x2199c4,_0x576ba6){_0x2199c4=_0x2199c4-0x109;var _0x311436=a280_0x3114();var _0x23764a=_0x311436[_0x2199c4];return _0x23764a;}(function(_0x390084,_0x3a7bfe){var _0x1f7c27=a280_0x2376,_0x355aff=_0x390084();while(!![]){try{var _0x797553=-parseInt(_0x1f7c27(0x10e))/0x1*(parseInt(_0x1f7c27(0x113))/0x2)+-parseInt(_0x1f7c27(0x10a))/0x3*(-parseInt(_0x1f7c27(0x10b))/0x4)+parseInt(_0x1f7c27(0x112))/0x5*(-parseInt(_0x1f7c27(0x10f))/0x6)+parseInt(_0x1f7c27(0x10d))/0x7*(parseInt(_0x1f7c27(0x109))/0x8)+parseInt(_0x1f7c27(0x111))/0x9+-parseInt(_0x1f7c27(0x10c))/0xa+parseInt(_0x1f7c27(0x110))/0xb;if(_0x797553===_0x3a7bfe)break;else _0x355aff['push'](_0x355aff['shift']());}catch(_0x4302a6){_0x355aff['push'](_0x355aff['shift']());}}}(a280_0x3114,0x8f9b6));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a280_0x3114(){var _0x4ecb05=['16xbEIsL','3622490lZOFdp','239575ZwZZnM','1fyiiac','618wFoBst','16845048iIEurE','1625526hRjAdr','33695CHpEpI','2300278OjsSLO','8ZAmAYQ','786384OpJrZF'];a280_0x3114=function(){return _0x4ecb05;};return a280_0x3114();}export async function withActiveCookie(_0x21481a,_0x533238){setActiveCookie(_0x21481a);try{return await _0x533238();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2eb671,_0x463285){var _0x9ea3f4=a281_0x21f8,_0x53eadb=_0x2eb671();while(!![]){try{var _0x2430e0=-parseInt(_0x9ea3f4(0x12c))/0x1*(parseInt(_0x9ea3f4(0x130))/0x2)+-parseInt(_0x9ea3f4(0x12a))/0x3*(-parseInt(_0x9ea3f4(0x12b))/0x4)+-parseInt(_0x9ea3f4(0x126))/0x5*(parseInt(_0x9ea3f4(0x129))/0x6)+parseInt(_0x9ea3f4(0x12e))/0x7+-parseInt(_0x9ea3f4(0x127))/0x8*(parseInt(_0x9ea3f4(0x12d))/0x9)+-parseInt(_0x9ea3f4(0x124))/0xa*(-parseInt(_0x9ea3f4(0x128))/0xb)+parseInt(_0x9ea3f4(0x12f))/0xc;if(_0x2430e0===_0x463285)break;else _0x53eadb['push'](_0x53eadb['shift']());}catch(_0x4f0c8d){_0x53eadb['push'](_0x53eadb['shift']());}}}(a281_0x36e3,0xb1950));function a281_0x36e3(){var _0x1bcbd4=['4572281qpTEun','3887772UgtJmn','4JMqPRr','stderr','920OuSOJN','write','100dnCFDo','206904SpbPOm','134398WNTxTQ','84924iKfPnT','2481nbmioe','1516BwotiQ','16729JifPzo','477KwACtB'];a281_0x36e3=function(){return _0x1bcbd4;};return a281_0x36e3();}function a281_0x21f8(_0x22f68b,_0x167e52){_0x22f68b=_0x22f68b-0x124;var _0x36e30d=a281_0x36e3();var _0x21f824=_0x36e30d[_0x22f68b];return _0x21f824;}export function writeCliSideChannelLine(_0x51ce49){var _0x366a34=a281_0x21f8;process[_0x366a34(0x131)][_0x366a34(0x125)](_0x51ce49+'\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.6",
|
|
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
|
},
|