@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.d.ts +7 -0
- package/lib/commands/bff/logs.js +1 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.d.ts +21 -0
- package/lib/commands/dataset/batch-design.js +1 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.d.ts +2 -0
- package/lib/commands/flow/create.js +1 -0
- package/lib/commands/flow/detail.d.ts +2 -0
- package/lib/commands/flow/detail.js +1 -0
- package/lib/commands/flow/index.d.ts +3 -0
- package/lib/commands/flow/index.js +1 -0
- package/lib/commands/flow/list.d.ts +2 -0
- package/lib/commands/flow/list.js +1 -0
- package/lib/commands/flow/publish.d.ts +2 -0
- package/lib/commands/flow/publish.js +1 -0
- package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
- package/lib/commands/flow/runtime-resources-shared.js +1 -0
- package/lib/commands/flow/runtime-role-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-list.js +1 -0
- package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-user-list.js +1 -0
- package/lib/commands/flow/runtime-user-search.d.ts +2 -0
- package/lib/commands/flow/runtime-user-search.js +1 -0
- package/lib/commands/flow/shared.d.ts +41 -0
- package/lib/commands/flow/shared.js +1 -0
- package/lib/commands/flow/update.d.ts +2 -0
- package/lib/commands/flow/update.js +1 -0
- package/lib/commands/flow/validate.d.ts +3 -0
- package/lib/commands/flow/validate.js +1 -0
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +6 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +172 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.d.ts +55 -0
- package/lib/core/bff/hook-directory.js +1 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +15 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +628 -0
- package/lib/core/flow-config.js +1 -0
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +2 -8
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +2 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +27 -8
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
- package/skills/rabetbase/guides/backend-function.md +19 -9
- package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
- package/skills/rabetbase/guides/conflict-detection.md +2 -0
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
- package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +9 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117_0x3ac504=a117_0x6286;(function(_0x106f84,_0x2c20ea){const _0x18d23d=a117_0x6286,_0x512fe7=_0x106f84();while(!![]){try{const _0x1864a9=parseInt(_0x18d23d(0x175))/0x1*(-parseInt(_0x18d23d(0x184))/0x2)+-parseInt(_0x18d23d(0x181))/0x3+parseInt(_0x18d23d(0x186))/0x4*(-parseInt(_0x18d23d(0x174))/0x5)+parseInt(_0x18d23d(0x17e))/0x6*(parseInt(_0x18d23d(0x188))/0x7)+parseInt(_0x18d23d(0x187))/0x8*(-parseInt(_0x18d23d(0x173))/0x9)+-parseInt(_0x18d23d(0x178))/0xa*(parseInt(_0x18d23d(0x182))/0xb)+-parseInt(_0x18d23d(0x176))/0xc*(-parseInt(_0x18d23d(0x17f))/0xd);if(_0x1864a9===_0x2c20ea)break;else _0x512fe7['push'](_0x512fe7['shift']());}catch(_0x1d09b0){_0x512fe7['push'](_0x512fe7['shift']());}}}(a117_0xa493,0x45eb6));function a117_0x6286(_0x17c3b0,_0x33a583){_0x17c3b0=_0x17c3b0-0x173;const _0xa493ac=a117_0xa493();let _0x62864c=_0xa493ac[_0x17c3b0];return _0x62864c;}function a117_0xa493(){const _0x5282bd=['71630zlByeA','Current\x20Instant\x20API\x20policy\x20revision\x20','445473vGvcCk','3971EleSzk','instant-api-policy','2IIxBNe','policyRelativePath','260vajYwI','712216ugMIYW','149296AIqgpT','54yYxYoj','23995yqzZtz','287587BmhKWt','4464ksXyyW','current','14510fAWWip','read','policyFilePath','appCode','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','12VNSsBX'];a117_0xa493=function(){return _0x5282bd;};return a117_0xa493();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a117_0x3ac504(0x183),'command':a117_0x3ac504(0x177),'description':a117_0x3ac504(0x17d),'risk':a117_0x3ac504(0x179),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2af58c){const _0x4e3168=a117_0x3ac504,_0x5b0a14=loadInstantApiPolicyLocalConfig(_0x2af58c[_0x4e3168(0x17b)]),_0x165760=await getCurrentInstantApiPolicy(_0x2af58c[_0x4e3168(0x17b)]);return{'ok':!![],'data':{'appCode':_0x2af58c['appCode'],'configured':_0x165760!==null,'filePath':_0x5b0a14[_0x4e3168(0x17a)],'relativePath':_0x5b0a14[_0x4e3168(0x185)],'policy':projectCurrentPolicy(_0x165760)},'message':_0x165760?_0x4e3168(0x180)+_0x165760['revision']:_0x4e3168(0x17c)+_0x2af58c['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x251e(){const _0x2f88ad=['10711830klNdzU','49cmntXH','460kiVDFu','7989zCpZxv','4uwBuXz','3082048Bhbznu','237906TZAItH','1038106XLMFvY','7402302fiWfzj','814395cXgfGH'];a118_0x251e=function(){return _0x2f88ad;};return a118_0x251e();}(function(_0x1a3607,_0x28b63b){const _0xcd2070=a118_0x12ad,_0x218543=_0x1a3607();while(!![]){try{const _0x4985ef=-parseInt(_0xcd2070(0x1ca))/0x1+-parseInt(_0xcd2070(0x1c5))/0x2*(parseInt(_0xcd2070(0x1c6))/0x3)+parseInt(_0xcd2070(0x1c7))/0x4*(-parseInt(_0xcd2070(0x1cc))/0x5)+parseInt(_0xcd2070(0x1c9))/0x6*(parseInt(_0xcd2070(0x1c4))/0x7)+parseInt(_0xcd2070(0x1c8))/0x8+parseInt(_0xcd2070(0x1cb))/0x9+parseInt(_0xcd2070(0x1c3))/0xa;if(_0x4985ef===_0x28b63b)break;else _0x218543['push'](_0x218543['shift']());}catch(_0x1067a0){_0x218543['push'](_0x218543['shift']());}}}(a118_0x251e,0xb5657));function a118_0x12ad(_0x592707,_0x2bcd3e){_0x592707=_0x592707-0x1c3;const _0x251ec5=a118_0x251e();let _0x12ad76=_0x251ec5[_0x592707];return _0x12ad76;}import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119_0x569199=a119_0x39bc;(function(_0x4782b3,_0x309904){const _0x5943d3=a119_0x39bc,_0x1b4545=_0x4782b3();while(!![]){try{const _0x4f7fe1=-parseInt(_0x5943d3(0x126))/0x1+-parseInt(_0x5943d3(0x125))/0x2+-parseInt(_0x5943d3(0x115))/0x3+parseInt(_0x5943d3(0x11c))/0x4*(-parseInt(_0x5943d3(0x128))/0x5)+parseInt(_0x5943d3(0x12d))/0x6*(parseInt(_0x5943d3(0x124))/0x7)+-parseInt(_0x5943d3(0x11f))/0x8+parseInt(_0x5943d3(0x118))/0x9;if(_0x4f7fe1===_0x309904)break;else _0x1b4545['push'](_0x1b4545['shift']());}catch(_0x305bcb){_0x1b4545['push'](_0x1b4545['shift']());}}}(a119_0x5db2,0xad761));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a119_0x5db2(){const _0x15ad5f=['allow','Replaced','2599352pKrBOq','Kept','init','3038656aFHjQg','str','write','instant-api-policy','default-action','1560111eAVlya','2839020ZRubXo','547743qakIrU','force','5JBpVQB','Created','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','appCode','bool','6gCLKXb','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','policyRelativePath','3179208QILhQc','\x20Instant\x20API\x20policy\x20file\x20for\x20','action','40898547WFvhNe','deny'];a119_0x5db2=function(){return _0x15ad5f;};return a119_0x5db2();}function a119_0x39bc(_0x173be8,_0x53a4a0){_0x173be8=_0x173be8-0x115;const _0x5db2b5=a119_0x5db2();let _0x39bc1c=_0x5db2b5[_0x173be8];return _0x39bc1c;}export const instantApiPolicyInit={'service':a119_0x569199(0x122),'command':a119_0x569199(0x11e),'description':a119_0x569199(0x12a),'risk':a119_0x569199(0x121),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a119_0x569199(0x123),'type':'string','enum':['allow',a119_0x569199(0x119)],'default':a119_0x569199(0x11a),'description':a119_0x569199(0x12e)},FORCE_FLAG],async 'validate'(_0x20884c){requireForceConfirmation(_0x20884c);},async 'execute'(_0x45a991){const _0x1a8131=a119_0x569199;requireForceConfirmation(_0x45a991);const _0x36348b=_0x45a991[_0x1a8131(0x120)](_0x1a8131(0x123))===_0x1a8131(0x119)?_0x1a8131(0x119):_0x1a8131(0x11a),_0x1587ae=loadInstantApiPolicyLocalConfig(_0x45a991[_0x1a8131(0x12b)]),_0x27350a=createDefaultInstantApiPolicyConfig(_0x45a991[_0x1a8131(0x12b)],_0x36348b),_0x3a5c26=await writeInstantApiPolicyConfigFile(_0x1587ae,_0x27350a,{'force':_0x45a991[_0x1a8131(0x12c)](_0x1a8131(0x127))}),_0xbb5d86={'created':_0x1a8131(0x129),'overwritten':_0x1a8131(0x11b),'unchanged':_0x1a8131(0x11d)}[_0x3a5c26[_0x1a8131(0x117)]];return{'ok':!![],'data':{'operation':_0x1a8131(0x11e),'selector':{'appCode':_0x45a991[_0x1a8131(0x12b)]},'filePath':_0x1587ae['policyFilePath'],'relativePath':_0x1587ae[_0x1a8131(0x12f)],'action':_0x3a5c26['action'],'config':_0x27350a},'message':_0xbb5d86+_0x1a8131(0x116)+_0x45a991[_0x1a8131(0x12b)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x31b108=a120_0x20a5;(function(_0x58d139,_0x175f2d){const _0x3215c1=a120_0x20a5,_0x55a613=_0x58d139();while(!![]){try{const _0x30b492=-parseInt(_0x3215c1(0x16c))/0x1*(parseInt(_0x3215c1(0x169))/0x2)+-parseInt(_0x3215c1(0x16f))/0x3+-parseInt(_0x3215c1(0x15f))/0x4*(-parseInt(_0x3215c1(0x15d))/0x5)+-parseInt(_0x3215c1(0x167))/0x6+parseInt(_0x3215c1(0x16a))/0x7+parseInt(_0x3215c1(0x174))/0x8+parseInt(_0x3215c1(0x16b))/0x9*(-parseInt(_0x3215c1(0x159))/0xa);if(_0x30b492===_0x175f2d)break;else _0x55a613['push'](_0x55a613['shift']());}catch(_0x499264){_0x55a613['push'](_0x55a613['shift']());}}}(a120_0x3d13,0xc3620));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a120_0x3d13(){const _0x581e23=['revision','instant_api_policy_publish_verification_failed','11531400gIclqn','expectedRevision','all','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','Inspect\x20with\x20`','configHash','push','local','publish','instant_api_policy_publish_verification_unavailable','323460cooJsy','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','appCode','policyRelativePath','3305rzSavo','defineProperty','3980wXuBmr','before','`;\x20do\x20not\x20resubmit\x20automatically.','POST','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','instant-api-policy','/publish','policyFilePath','1851216yfNyOl','cause','14544BohdDK','9485896ZzrEUg','468VZKTmo','27XzjfAD','high-risk-write','normalizedConfig','1401264hxfZTe','validation','changeSummary'];a120_0x3d13=function(){return _0x581e23;};return a120_0x3d13();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x4bd96d){const _0x5aec9d=a120_0x20a5,{local:_0x2b38da,config:_0x424f2f}=await readFixedPolicy(_0x4bd96d),_0x4dcd77=readChangeSummary(_0x4bd96d),_0x35d0cb=readExpectedRevision(_0x4bd96d),[_0x31bc41,_0x22670e]=await Promise[_0x5aec9d(0x176)]([getCurrentInstantApiPolicy(_0x4bd96d[_0x5aec9d(0x15b)]),validateInstantApiPolicy({'appCode':_0x4bd96d[_0x5aec9d(0x15b)],'config':_0x424f2f})]);return assertExpectedRevision(_0x31bc41,_0x35d0cb),{'local':_0x2b38da,'config':_0x424f2f,'changeSummary':_0x4dcd77,'expectedRevision':_0x35d0cb,'before':_0x31bc41,'validation':_0x22670e};}function a120_0x20a5(_0x5e5b68,_0x53b3fd){_0x5e5b68=_0x5e5b68-0x154;const _0x3d13bd=a120_0x3d13();let _0x20a506=_0x3d13bd[_0x5e5b68];return _0x20a506;}export const instantApiPolicyPublish={'service':a120_0x31b108(0x164),'command':a120_0x31b108(0x157),'description':a120_0x31b108(0x163),'risk':a120_0x31b108(0x16d),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a120_0x31b108(0x177),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x189247){readChangeSummary(_0x189247),readExpectedRevision(_0x189247);},async 'dryRun'(_0x8ba089){const _0x467383=a120_0x31b108,_0x176633=await preparePublish(_0x8ba089);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x8ba089[_0x467383(0x15b)]},'before':projectCurrentPolicy(_0x176633['before']),'after':{'revision':_0x176633[_0x467383(0x160)]?_0x176633['before'][_0x467383(0x172)]+0x1:0x1,'configHash':_0x176633[_0x467383(0x170)][_0x467383(0x154)],'config':_0x176633['validation'][_0x467383(0x16e)]},'filePath':_0x176633[_0x467383(0x156)][_0x467383(0x166)],'relativePath':_0x176633[_0x467383(0x156)][_0x467383(0x15c)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x176633[_0x467383(0x175)]),'verification':{'status':'planned','expectedRevision':_0x176633[_0x467383(0x175)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x467383(0x162),'url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x48d4fa){const _0xa59a3d=a120_0x31b108,_0x589d91=await preparePublish(_0x48d4fa);let _0xfa4dad=![];try{await publishInstantApiPolicy({'appCode':_0x48d4fa[_0xa59a3d(0x15b)],'config':_0x589d91['config'],..._0x589d91[_0xa59a3d(0x171)]?{'changeSummary':_0x589d91[_0xa59a3d(0x171)]}:{}});}catch(_0x5696c8){if(!isPlatformTransportFailure(_0x5696c8))throw _0x5696c8;_0xfa4dad=!![];}let _0xa98c25;try{_0xa98c25=await getCurrentInstantApiPolicy(_0x48d4fa['appCode']);}catch(_0x1d3eb7){const _0x10de16=instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x158),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xa59a3d(0x178)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0xa59a3d(0x15e)](_0x10de16,_0xa59a3d(0x168),{'value':_0x1d3eb7,'enumerable':![]});throw _0x10de16;}const _0x5ed4d7=_0xa98c25&&(_0x589d91[_0xa59a3d(0x160)]===null||_0xa98c25[_0xa59a3d(0x172)]>_0x589d91[_0xa59a3d(0x160)]['revision']),_0x3af3b1=_0xa98c25?.[_0xa59a3d(0x154)]===_0x589d91[_0xa59a3d(0x170)][_0xa59a3d(0x154)];if(!_0xa98c25||!_0x5ed4d7||!_0x3af3b1)throw instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x173),_0xa59a3d(0x15a),_0xa59a3d(0x178)+mutationLookupCommand()+_0xa59a3d(0x161));const _0x51d3c0=[...expectedRevisionWarnings(_0x589d91[_0xa59a3d(0x175)]),RUNTIME_CACHE_WARNING];return _0xfa4dad&&_0x51d3c0[_0xa59a3d(0x155)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xa59a3d(0x157),'selector':{'appCode':_0x48d4fa[_0xa59a3d(0x15b)]},'before':projectCurrentPolicy(_0x589d91[_0xa59a3d(0x160)]),'after':projectCurrentPolicy(_0xa98c25),'filePath':_0x589d91[_0xa59a3d(0x156)][_0xa59a3d(0x166)],'relativePath':_0x589d91[_0xa59a3d(0x156)]['policyRelativePath'],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0xa59a3d(0x165)},'warnings':_0x51d3c0,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0xfa4dad,'expectedRevision':_0x589d91['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0xa98c25['revision']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x5590b6=a121_0x26a1;(function(_0x20b618,_0x562180){const _0x57bf3d=a121_0x26a1,_0x5e3f2=_0x20b618();while(!![]){try{const _0x21566b=parseInt(_0x57bf3d(0x155))/0x1+-parseInt(_0x57bf3d(0x151))/0x2+parseInt(_0x57bf3d(0x14b))/0x3+-parseInt(_0x57bf3d(0x15d))/0x4+-parseInt(_0x57bf3d(0x14d))/0x5+parseInt(_0x57bf3d(0x156))/0x6+parseInt(_0x57bf3d(0x149))/0x7;if(_0x21566b===_0x562180)break;else _0x5e3f2['push'](_0x5e3f2['shift']());}catch(_0xbe25b){_0x5e3f2['push'](_0x5e3f2['shift']());}}}(a121_0x4b11,0xb2468));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a121_0x26a1(_0x377503,_0x1de5c6){_0x377503=_0x377503-0x149;const _0x4b1181=a121_0x4b11();let _0x26a1b5=_0x4b1181[_0x377503];return _0x26a1b5;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a121_0x4b11(){const _0x3f899f=['bool','instant_api_policy_not_configured','pull','instant-api-policy','revision','action','97460ULDefa','8522472jPLlEq','appCode','740049qAkjEv','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','6530445zLLUYs','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','config','682016jWhOCq','force','\x20Instant\x20API\x20policy\x20revision\x20','Pulled','19941ZvOOyf','5505348VenRPq'];a121_0x4b11=function(){return _0x3f899f;};return a121_0x4b11();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a121_0x5590b6(0x15a),'command':a121_0x5590b6(0x159),'description':a121_0x5590b6(0x14f),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1b1e05){requireForceConfirmation(_0x1b1e05);},async 'execute'(_0x246e3a){const _0x1c0f45=a121_0x5590b6;requireForceConfirmation(_0x246e3a);const _0x5800f3=await getCurrentInstantApiPolicy(_0x246e3a[_0x1c0f45(0x14a)]);if(!_0x5800f3)throw instantApiPolicyError(_0x1c0f45(0x158),_0x1c0f45(0x14e)+_0x246e3a[_0x1c0f45(0x14a)]+'.',_0x1c0f45(0x14c));const _0x313b9a=loadInstantApiPolicyLocalConfig(_0x246e3a[_0x1c0f45(0x14a)]),_0x201af4=await writeInstantApiPolicyConfigFile(_0x313b9a,_0x5800f3[_0x1c0f45(0x150)],{'force':_0x246e3a[_0x1c0f45(0x157)](_0x1c0f45(0x152))});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x246e3a[_0x1c0f45(0x14a)],'revision':_0x5800f3[_0x1c0f45(0x15b)]},'filePath':_0x313b9a['policyFilePath'],'relativePath':_0x313b9a['policyRelativePath'],'action':_0x201af4[_0x1c0f45(0x15c)],'configHash':_0x5800f3['configHash']},'message':(_0x201af4[_0x1c0f45(0x15c)]==='unchanged'?'Kept':_0x1c0f45(0x154))+_0x1c0f45(0x153)+_0x5800f3['revision']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x130432=a122_0x2fda;(function(_0x43595f,_0x4e8969){const _0x517ea3=a122_0x2fda,_0x3bec56=_0x43595f();while(!![]){try{const _0x2812a8=-parseInt(_0x517ea3(0x1b6))/0x1*(parseInt(_0x517ea3(0x1b5))/0x2)+-parseInt(_0x517ea3(0x1ac))/0x3+parseInt(_0x517ea3(0x1b1))/0x4*(parseInt(_0x517ea3(0x1ad))/0x5)+parseInt(_0x517ea3(0x1b9))/0x6*(parseInt(_0x517ea3(0x1ae))/0x7)+parseInt(_0x517ea3(0x1b7))/0x8+parseInt(_0x517ea3(0x1ba))/0x9+-parseInt(_0x517ea3(0x1af))/0xa;if(_0x2812a8===_0x4e8969)break;else _0x3bec56['push'](_0x3bec56['shift']());}catch(_0xcefbaf){_0x3bec56['push'](_0x3bec56['shift']());}}}(a122_0x6177,0x24472));function a122_0x2fda(_0x208d9f,_0x59ba9f){_0x208d9f=_0x208d9f-0x1ac;const _0x617758=a122_0x6177();let _0x2fdaa7=_0x617758[_0x208d9f];return _0x2fdaa7;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a122_0x6177(){const _0x492d9c=['appCode','5636ayisZK','instant-api-policy','read','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','259442fgCYsp','1PCDEWs','2321480sdsEqF','revision','1674yXhMHw','343620tyvUbs','95049fAWiuv','305nUYhvU','6951GFuCYW','3813630bMsYqe'];a122_0x6177=function(){return _0x492d9c;};return a122_0x6177();}export const instantApiPolicyRevision={'service':a122_0x130432(0x1b2),'command':a122_0x130432(0x1b8),'description':a122_0x130432(0x1b4),'risk':a122_0x130432(0x1b3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x2d343e){readRevision(_0x2d343e);},async 'execute'(_0x818a83){const _0xeb04aa=a122_0x130432,_0x5ee3f3=readRevision(_0x818a83),_0x47aa21=await getInstantApiPolicyRevision(_0x818a83[_0xeb04aa(0x1b0)],_0x5ee3f3);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x47aa21)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x5ee3f3};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x467c(){const _0x7a0532=['revisions','9696618PaGZht','8TMxDdN','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','30249kwCmDq','2835108EsyBao','10944283bNzGKC','read','4xdGVBT','\x20Instant\x20API\x20policy\x20revision(s)','10SQVtlp','length','appCode','140UHFIkM','791857IHFxgs','instant-api-policy','62971667EAJMlr','2482915kTqYaR','map','Found\x20'];a123_0x467c=function(){return _0x7a0532;};return a123_0x467c();}const a123_0x4673c2=a123_0x7b02;function a123_0x7b02(_0x3ca04f,_0xb0d0a0){_0x3ca04f=_0x3ca04f-0x129;const _0x467c3c=a123_0x467c();let _0x7b02f4=_0x467c3c[_0x3ca04f];return _0x7b02f4;}(function(_0x4483ca,_0x3a03ef){const _0x2b8db6=a123_0x7b02,_0x5a4062=_0x4483ca();while(!![]){try{const _0x224221=-parseInt(_0x2b8db6(0x12a))/0x1+-parseInt(_0x2b8db6(0x129))/0x2*(parseInt(_0x2b8db6(0x134))/0x3)+-parseInt(_0x2b8db6(0x138))/0x4*(parseInt(_0x2b8db6(0x12d))/0x5)+-parseInt(_0x2b8db6(0x131))/0x6+parseInt(_0x2b8db6(0x136))/0x7*(-parseInt(_0x2b8db6(0x132))/0x8)+parseInt(_0x2b8db6(0x135))/0x9+-parseInt(_0x2b8db6(0x13a))/0xa*(-parseInt(_0x2b8db6(0x12c))/0xb);if(_0x224221===_0x3a03ef)break;else _0x5a4062['push'](_0x5a4062['shift']());}catch(_0x5b0d09){_0x5a4062['push'](_0x5a4062['shift']());}}}(a123_0x467c,0xd365f));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a123_0x4673c2(0x12b),'command':a123_0x4673c2(0x130),'description':a123_0x4673c2(0x133),'risk':a123_0x4673c2(0x137),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x33006b){const _0xfe4ef7=a123_0x4673c2,_0x22d59b=await listInstantApiPolicyRevisions(_0x33006b['appCode']);return{'ok':!![],'data':{'appCode':_0x33006b[_0xfe4ef7(0x13c)],'total':_0x22d59b[_0xfe4ef7(0x13b)],'revisions':_0x22d59b[_0xfe4ef7(0x12e)](projectRevisionSummary)},'message':_0xfe4ef7(0x12f)+_0x22d59b[_0xfe4ef7(0x13b)]+_0xfe4ef7(0x139)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x57a0d9=a124_0x5eb8;(function(_0x3691ce,_0x7ecb39){const _0x49716e=a124_0x5eb8,_0x1c0e19=_0x3691ce();while(!![]){try{const _0x259b41=-parseInt(_0x49716e(0xf4))/0x1+-parseInt(_0x49716e(0xe3))/0x2*(-parseInt(_0x49716e(0xdd))/0x3)+-parseInt(_0x49716e(0xdb))/0x4+parseInt(_0x49716e(0xe9))/0x5+-parseInt(_0x49716e(0xe5))/0x6+parseInt(_0x49716e(0xe2))/0x7+-parseInt(_0x49716e(0xdf))/0x8*(-parseInt(_0x49716e(0xf8))/0x9);if(_0x259b41===_0x7ecb39)break;else _0x1c0e19['push'](_0x1c0e19['shift']());}catch(_0x2a1dee){_0x1c0e19['push'](_0x1c0e19['shift']());}}}(a124_0x3679,0xf2457));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a124_0x5eb8(_0x7cfb70,_0x46ccb8){_0x7cfb70=_0x7cfb70-0xd6;const _0x367924=a124_0x3679();let _0x5eb899=_0x367924[_0x7cfb70];return _0x5eb899;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a124_0x3679(){const _0x409019=['push','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Rolled\x20Instant\x20API\x20policy\x20revision\x20','4742184RsUAff','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','1017maHPqZ','rollback','13981832BGkqvf','instant_api_policy_not_configured','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','7090027MwnHVj','9538PqzJpB','`;\x20do\x20not\x20resubmit\x20automatically.','4724466SGwwvd','/rollback','all','high-risk-write','2515960pnLEkf','before','revision','verified','instant_api_policy_rollback_outcome_unknown','expectedRevision','defineProperty','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','configHash','1915173pziyHU','appCode','\x20forward\x20to\x20revision\x20','POST','9vMoVOq','instant_api_policy_rollback_verification_failed','target','changeSummary','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.'];a124_0x3679=function(){return _0x409019;};return a124_0x3679();}async function prepareRollback(_0x3dc01d){const _0x106614=a124_0x5eb8,_0x1e762e=readRevision(_0x3dc01d),_0x3c0685=readChangeSummary(_0x3dc01d),_0x4a646e=readExpectedRevision(_0x3dc01d),[_0x2112f3,_0x5c52e3]=await Promise[_0x106614(0xe7)]([getCurrentInstantApiPolicy(_0x3dc01d[_0x106614(0xf5)]),getInstantApiPolicyRevision(_0x3dc01d[_0x106614(0xf5)],_0x1e762e)]);if(!_0x2112f3)throw instantApiPolicyError(_0x106614(0xe0),_0x106614(0xd9)+_0x3dc01d['appCode']+'.');return assertExpectedRevision(_0x2112f3,_0x4a646e),{'revision':_0x1e762e,'changeSummary':_0x3c0685,'expectedRevision':_0x4a646e,'before':_0x2112f3,'target':_0x5c52e3};}export const instantApiPolicyRollback={'service':a124_0x57a0d9(0xf2),'command':'rollback','description':a124_0x57a0d9(0xf0),'risk':a124_0x57a0d9(0xe8),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a124_0x57a0d9(0xd7),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2b9421){readRevision(_0x2b9421),readChangeSummary(_0x2b9421),readExpectedRevision(_0x2b9421);},async 'dryRun'(_0x57dcd8){const _0x5d233b=a124_0x57a0d9,_0x16e0bb=await prepareRollback(_0x57dcd8);return asDryRunResult({'operation':_0x5d233b(0xde),'selector':{'appCode':_0x57dcd8[_0x5d233b(0xf5)],'sourceRevision':_0x16e0bb['revision']},'before':projectCurrentPolicy(_0x16e0bb[_0x5d233b(0xea)]),'after':{'revision':_0x16e0bb[_0x5d233b(0xea)][_0x5d233b(0xeb)]+0x1,'sourceRevision':projectRevisionDetail(_0x16e0bb[_0x5d233b(0xfa)])},'dryRun':!![],'backend':{'method':_0x5d233b(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x16e0bb['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x16e0bb[_0x5d233b(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x5d233b(0xf7),'url':INSTANT_API_POLICY_BASE_PATH+_0x5d233b(0xe6)});},async 'execute'(_0xe5455c){const _0x389324=a124_0x57a0d9,_0x514a58=await prepareRollback(_0xe5455c);let _0x43bc8c=![];try{await rollbackInstantApiPolicy({'appCode':_0xe5455c['appCode'],'revision':_0x514a58[_0x389324(0xeb)],..._0x514a58[_0x389324(0xd6)]?{'changeSummary':_0x514a58[_0x389324(0xd6)]}:{}});}catch(_0x1384df){if(!isPlatformTransportFailure(_0x1384df))throw _0x1384df;_0x43bc8c=!![];}let _0x1ffa83;try{_0x1ffa83=await getCurrentInstantApiPolicy(_0xe5455c['appCode']);}catch(_0x2a9f68){const _0x3da4e8=instantApiPolicyError(_0x43bc8c?'instant_api_policy_rollback_outcome_unknown':'instant_api_policy_rollback_verification_unavailable',_0x389324(0xdc),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));Object[_0x389324(0xef)](_0x3da4e8,'cause',{'value':_0x2a9f68,'enumerable':![]});throw _0x3da4e8;}const _0x2f6f76=_0x1ffa83&&_0x1ffa83[_0x389324(0xeb)]>_0x514a58[_0x389324(0xea)][_0x389324(0xeb)],_0x17ecb9=_0x1ffa83?.['configHash']===_0x514a58[_0x389324(0xfa)][_0x389324(0xf3)];if(!_0x1ffa83||!_0x2f6f76||!_0x17ecb9)throw instantApiPolicyError(_0x43bc8c?_0x389324(0xed):_0x389324(0xf9),_0x389324(0xe1),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));const _0x4cd93e=[...expectedRevisionWarnings(_0x514a58['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x43bc8c&&_0x4cd93e[_0x389324(0xd8)](_0x389324(0xf1)),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0xe5455c[_0x389324(0xf5)],'sourceRevision':_0x514a58['revision']},'before':projectCurrentPolicy(_0x514a58[_0x389324(0xea)]),'after':projectCurrentPolicy(_0x1ffa83),'dryRun':![],'backend':{'method':_0x389324(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x4cd93e,'verification':{'status':_0x389324(0xec),'recoveredAfterUnknownResponse':_0x43bc8c,'expectedRevision':_0x514a58[_0x389324(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x389324(0xda)+_0x514a58[_0x389324(0xeb)]+_0x389324(0xf6)+_0x1ffa83['revision']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x18fb83=a125_0x2bcb;(function(_0x569ed3,_0x4c2b77){const _0x4621bd=a125_0x2bcb,_0x115532=_0x569ed3();while(!![]){try{const _0x23e0a8=parseInt(_0x4621bd(0x1a9))/0x1*(-parseInt(_0x4621bd(0x1b1))/0x2)+-parseInt(_0x4621bd(0x1bb))/0x3+-parseInt(_0x4621bd(0x1b8))/0x4*(parseInt(_0x4621bd(0x1a8))/0x5)+parseInt(_0x4621bd(0x1a6))/0x6+parseInt(_0x4621bd(0x1ba))/0x7*(-parseInt(_0x4621bd(0x1a1))/0x8)+parseInt(_0x4621bd(0x1a3))/0x9+-parseInt(_0x4621bd(0x1cd))/0xa*(-parseInt(_0x4621bd(0x1a4))/0xb);if(_0x23e0a8===_0x4c2b77)break;else _0x115532['push'](_0x115532['shift']());}catch(_0x464143){_0x115532['push'](_0x115532['shift']());}}}(a125_0x1415,0x7c3db));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a125_0x18fb83(0x1b2);function a125_0x2bcb(_0x5565f8,_0x455adf){_0x5565f8=_0x5565f8-0x19b;const _0x1415b3=a125_0x1415();let _0x2bcb9c=_0x1415b3[_0x5565f8];return _0x2bcb9c;}export const RUNTIME_CACHE_WARNING=a125_0x18fb83(0x1ae);export const NON_ATOMIC_EXPECTED_REVISION_WARNING='--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.';export const FORCE_FLAG={'name':'force','type':a125_0x18fb83(0x1c7),'default':![],'description':a125_0x18fb83(0x1c2)};export const CHANGE_SUMMARY_FLAG={'name':a125_0x18fb83(0x1b6),'type':a125_0x18fb83(0x1ca),'required':![],'description':a125_0x18fb83(0x1c8)};export const REVISION_FLAG={'name':a125_0x18fb83(0x1be),'type':a125_0x18fb83(0x19c),'required':!![],'description':a125_0x18fb83(0x1c3)};export const EXPECTED_REVISION_FLAG={'name':a125_0x18fb83(0x1b9),'type':a125_0x18fb83(0x19c),'required':![],'description':'Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured'};export function requireForceConfirmation(_0x480314){const _0x1cf573=a125_0x18fb83;if(!_0x480314[_0x1cf573(0x1bd)](_0x1cf573(0x1cf))||_0x480314[_0x1cf573(0x1bd)]('yes'))return;throw instantApiPolicyError(_0x1cf573(0x19f),'--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.',_0x1cf573(0x19b));}export function readChangeSummary(_0x5d9bb4){const _0x36a69b=a125_0x18fb83,_0x3cdfd4=_0x5d9bb4[_0x36a69b(0x1a2)](_0x36a69b(0x1b6))[_0x36a69b(0x1c1)]();if(!_0x3cdfd4)return undefined;if(_0x3cdfd4[_0x36a69b(0x1c9)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x36a69b(0x1a5));return _0x3cdfd4;}function a125_0x1415(){const _0x3b4a0a=['2bxdAtB','/smartapi/instant-api-policy','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','changeSummary','isSafeInteger','change-summary','updateUserId','2294764pIPBHX','expected-revision','7NMqgah','1042983AivIIe','instantApi','bool','revision','policyId','operatorId','trim','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','Positive\x20published\x20policy\x20revision','config','changeType','NaN','boolean','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','length','string','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','createUserId','2530xrAuMf','gmtCreate','force','instant_api_policy_revision_invalid','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','number','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','instant_api_policy_expected_revision_invalid','instant_api_policy_force_confirmation_required','defaults','4374728bOiLzk','str','7886484TwpDVR','79981JLWvSB','--change-summary\x20cannot\x20exceed\x202000\x20characters.','510336UJRyOP','num','5ZGwNHk','823811mYqQKc','flag','appCode','rules','instant_api_policy_revision_mismatch','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','configHash',';\x20current\x20revision\x20is\x20'];a125_0x1415=function(){return _0x3b4a0a;};return a125_0x1415();}export function readRevision(_0x5c8cf9){const _0x43a0ba=a125_0x18fb83,_0x2a0f5d=_0x5c8cf9[_0x43a0ba(0x1a7)](_0x43a0ba(0x1be),Number[_0x43a0ba(0x1c6)]);if(!Number[_0x43a0ba(0x1b5)](_0x2a0f5d)||_0x2a0f5d<=0x0)throw instantApiPolicyError(_0x43a0ba(0x1d0),_0x43a0ba(0x19d));return _0x2a0f5d;}export function readExpectedRevision(_0x3ea71b){const _0x396504=a125_0x18fb83;if(_0x3ea71b[_0x396504(0x1aa)](_0x396504(0x1b9))===undefined)return undefined;const _0x40afdb=_0x3ea71b[_0x396504(0x1a7)](_0x396504(0x1b9),Number[_0x396504(0x1c6)]);if(!Number[_0x396504(0x1b5)](_0x40afdb)||_0x40afdb<0x0)throw instantApiPolicyError(_0x396504(0x19e),'--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x40afdb;}export function assertExpectedRevision(_0x1867ca,_0xe8da6d){const _0x1042b5=a125_0x18fb83;if(_0xe8da6d===undefined)return;const _0x38437b=_0x1867ca?.[_0x1042b5(0x1be)]??0x0;if(_0x38437b!==_0xe8da6d)throw instantApiPolicyError(_0x1042b5(0x1ad),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','Expected\x20revision\x20'+_0xe8da6d+_0x1042b5(0x1b0)+_0x38437b+_0x1042b5(0x1cb));}export async function readFixedPolicy(_0x204d67){const _0x12af43=loadInstantApiPolicyLocalConfig(_0x204d67['appCode']),_0x4f7e2c=await readInstantApiPolicyConfigFile(_0x12af43);return{'local':_0x12af43,'config':_0x4f7e2c};}export function projectCurrentPolicy(_0x492516){const _0x54dca4=a125_0x18fb83;if(!_0x492516)return null;return{'id':_0x492516['id'],'appCode':_0x492516[_0x54dca4(0x1ab)],'revision':_0x492516[_0x54dca4(0x1be)],'configHash':_0x492516[_0x54dca4(0x1af)],'enabled':_0x492516['enabled'],'config':_0x492516[_0x54dca4(0x1c4)],'createUserId':_0x492516[_0x54dca4(0x1cc)]??null,'updateUserId':_0x492516[_0x54dca4(0x1b7)]??null,'gmtCreate':_0x492516[_0x54dca4(0x1ce)]??null,'gmtModified':_0x492516['gmtModified']??null};}export function projectRevisionSummary(_0x205480){const _0x53d4e5=a125_0x18fb83;return{'id':_0x205480['id'],'policyId':_0x205480[_0x53d4e5(0x1bf)],'appCode':_0x205480[_0x53d4e5(0x1ab)],'revision':_0x205480[_0x53d4e5(0x1be)],'configHash':_0x205480[_0x53d4e5(0x1af)],'changeType':_0x205480[_0x53d4e5(0x1c5)],'changeSummary':_0x205480[_0x53d4e5(0x1b4)]??null,'operatorId':_0x205480[_0x53d4e5(0x1c0)]??null,'gmtCreate':_0x205480[_0x53d4e5(0x1ce)]??null,'version':_0x205480['config']['version'],'defaultAction':_0x205480[_0x53d4e5(0x1c4)][_0x53d4e5(0x1a0)][_0x53d4e5(0x1bc)],'ruleCount':_0x205480[_0x53d4e5(0x1c4)][_0x53d4e5(0x1ac)]?.[_0x53d4e5(0x1c9)]??0x0};}export function projectRevisionDetail(_0x47c572){const _0x45dd5e=a125_0x18fb83;return{...projectRevisionSummary(_0x47c572),'config':_0x47c572[_0x45dd5e(0x1c4)]};}export function expectedRevisionWarnings(_0x451bf1){return _0x451bf1===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x5b4833=a125_0x18fb83;return _0x5b4833(0x1b3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x2d73(_0x56ad71,_0x543dfc){_0x56ad71=_0x56ad71-0x19a;const _0x4c7168=a126_0x4c71();let _0x2d73a0=_0x4c7168[_0x56ad71];return _0x2d73a0;}function a126_0x4c71(){const _0x3e6202=['policyFilePath','18036NmVggk','read','2276640RmsRIu','318eymcFN','POST','Validated\x20Instant\x20API\x20policy\x20for\x20','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','9982683lFYzSN','/validate','406637fnERXL','102ouQiFF','2992595bzSiVM','appCode','627926DpJOwB','validate','configHash','6926720IsTKzl'];a126_0x4c71=function(){return _0x3e6202;};return a126_0x4c71();}const a126_0x26bfb8=a126_0x2d73;(function(_0x230d4c,_0x8c6c13){const _0x11ea94=a126_0x2d73,_0x5b63bf=_0x230d4c();while(!![]){try{const _0x4a2788=-parseInt(_0x11ea94(0x19c))/0x1+parseInt(_0x11ea94(0x1a4))/0x2*(-parseInt(_0x11ea94(0x1a1))/0x3)+parseInt(_0x11ea94(0x1a3))/0x4+parseInt(_0x11ea94(0x19a))/0x5+-parseInt(_0x11ea94(0x1ab))/0x6*(parseInt(_0x11ea94(0x1aa))/0x7)+parseInt(_0x11ea94(0x19f))/0x8+parseInt(_0x11ea94(0x1a8))/0x9;if(_0x4a2788===_0x8c6c13)break;else _0x5b63bf['push'](_0x5b63bf['shift']());}catch(_0x2af8d7){_0x5b63bf['push'](_0x5b63bf['shift']());}}}(a126_0x4c71,0x8b7bd));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':a126_0x26bfb8(0x19d),'description':a126_0x26bfb8(0x1a7),'risk':a126_0x26bfb8(0x1a2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x25a74d){const _0x1bce20=a126_0x26bfb8,{local:_0x4e72f7,config:_0x17d316}=await readFixedPolicy(_0x25a74d),_0x5a3e4f=await validateInstantApiPolicy({'appCode':_0x25a74d['appCode'],'config':_0x17d316});return{'ok':!![],'data':{'operation':_0x1bce20(0x19d),'selector':{'appCode':_0x25a74d[_0x1bce20(0x19b)]},'filePath':_0x4e72f7[_0x1bce20(0x1a0)],'relativePath':_0x4e72f7['policyRelativePath'],'valid':_0x5a3e4f['valid'],'configHash':_0x5a3e4f[_0x1bce20(0x19e)],'normalizedConfig':_0x5a3e4f['normalizedConfig'],'backend':{'method':_0x1bce20(0x1a5),'path':INSTANT_API_POLICY_BASE_PATH+_0x1bce20(0x1a9)}},'message':_0x1bce20(0x1a6)+_0x25a74d[_0x1bce20(0x19b)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2dacc2,_0x48685e){const _0x51e597=a127_0x44b0,_0x214baf=_0x2dacc2();while(!![]){try{const _0x51fd55=-parseInt(_0x51e597(0x181))/0x1+-parseInt(_0x51e597(0x17a))/0x2+parseInt(_0x51e597(0x17d))/0x3*(parseInt(_0x51e597(0x17f))/0x4)+-parseInt(_0x51e597(0x180))/0x5+parseInt(_0x51e597(0x17e))/0x6+parseInt(_0x51e597(0x17c))/0x7*(-parseInt(_0x51e597(0x17b))/0x8)+parseInt(_0x51e597(0x179))/0x9;if(_0x51fd55===_0x48685e)break;else _0x214baf['push'](_0x214baf['shift']());}catch(_0x56895f){_0x214baf['push'](_0x214baf['shift']());}}}(a127_0x3509,0xa30d9));function a127_0x44b0(_0x25f2f6,_0x7d297c){_0x25f2f6=_0x25f2f6-0x179;const _0x35094e=a127_0x3509();let _0x44b030=_0x35094e[_0x25f2f6];return _0x44b030;}function a127_0x3509(){const _0x682964=['8718160cXQIrq','7vrVbjd','1542fSQkSm','2887224sIFZhB','3100LcgNiM','6532890OZHPKN','324707CtanXr','27233694MJMGFs','1033200GdHgVb'];a127_0x3509=function(){return _0x682964;};return a127_0x3509();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a128_0x19a560=a128_0x5bfc;(function(_0x1b31c,_0x511988){const _0x294255=a128_0x5bfc,_0x15aa4d=_0x1b31c();while(!![]){try{const _0x3727e1=parseInt(_0x294255(0x7e))/0x1*(parseInt(_0x294255(0x87))/0x2)+-parseInt(_0x294255(0x83))/0x3*(-parseInt(_0x294255(0x81))/0x4)+-parseInt(_0x294255(0x7f))/0x5+-parseInt(_0x294255(0x90))/0x6*(-parseInt(_0x294255(0x86))/0x7)+-parseInt(_0x294255(0x93))/0x8+-parseInt(_0x294255(0x84))/0x9+parseInt(_0x294255(0x8c))/0xa;if(_0x3727e1===_0x511988)break;else _0x15aa4d['push'](_0x15aa4d['shift']());}catch(_0x4eee0a){_0x15aa4d['push'](_0x15aa4d['shift']());}}}(a128_0xc8f6,0xea0c8));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a128_0x19a560(0x8a);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a128_0x19a560(0x8b),'config_missing',a128_0x19a560(0x78),'unknown_command','flag_missing',a128_0x19a560(0x79),'network_error']),defaultWriter=_0x320c0b=>{const _0x1adaf8=a128_0x19a560;process[_0x1adaf8(0x94)]['write'](_0x320c0b);};function a128_0xc8f6(){const _0x17b85c=['8555505FGiXeh','18KxVOiX','join','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','RABETBASE_DISABLE_ISSUE_NUDGE','auth_required','26328160KGgCQY','length','\x20\x20\x20\x20--title\x20\x22','issue','6SenSYJ','=1\x20to\x20silence\x20this\x20hint.','message','13781504ZHuQGa','stderr','report','replace','not_in_project','validation_error','\x20\x20Set\x20','Hit\x20a\x20','\x20issue\x20report\x20\x5c','\x22\x20\x5c','162329zubOQK','9428930NNynHn','service','4MfVgba','command','703653OovwGx','8850645hvMkcQ','code'];a128_0xc8f6=function(){return _0x17b85c;};return a128_0xc8f6();}export function shouldNudgeForError(_0x3147e1,_0x2af5ce){const _0xd8acda=a128_0x19a560;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2af5ce[_0xd8acda(0x80)]===_0xd8acda(0x8f)&&_0x2af5ce[_0xd8acda(0x82)]===_0xd8acda(0x95))return![];if(_0x3147e1 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x3147e1[_0xd8acda(0x85)]);return!![];}export function printIssueReportNudgeForError(_0x3b7dcc,_0xc66c6c,_0x1d5a88=defaultWriter){if(!shouldNudgeForError(_0x3b7dcc,_0xc66c6c))return;const _0x273b0a=buildSuggestedTitle(_0x3b7dcc,_0xc66c6c);_0x1d5a88(formatNudge(_0x273b0a));}function a128_0x5bfc(_0x9ffeef,_0x1dbbd1){_0x9ffeef=_0x9ffeef-0x78;const _0xc8f6d7=a128_0xc8f6();let _0x5bfc29=_0xc8f6d7[_0x9ffeef];return _0x5bfc29;}function buildSuggestedTitle(_0x15ac09,_0x3a2a19){const _0x1540ca=a128_0x19a560,_0xcdedd4=_0x15ac09 instanceof Error?_0x15ac09[_0x1540ca(0x92)]:String(_0x15ac09),_0x8337c7=_0xcdedd4['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,0x78)[_0x1540ca(0x96)](/"/g,'\x5c\x22'),_0x5df960=CLI_BIN_NAME+'\x20'+_0x3a2a19['service']+'\x20'+_0x3a2a19[_0x1540ca(0x82)];return _0x8337c7[_0x1540ca(0x8d)]>0x0?_0x5df960+':\x20'+_0x8337c7:_0x5df960;}function formatNudge(_0x5a36b3){const _0x5426ef=a128_0x19a560;return['',_0x5426ef(0x7b)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5426ef(0x7c),_0x5426ef(0x8e)+_0x5a36b3+_0x5426ef(0x7d),_0x5426ef(0x89),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x5426ef(0x7a)+NUDGE_OPT_OUT_ENV+_0x5426ef(0x91),''][_0x5426ef(0x88)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x43a503=a129_0x3b23;(function(_0x30d3a9,_0x15aa90){const _0x412c98=a129_0x3b23,_0x5670c0=_0x30d3a9();while(!![]){try{const _0x53d7a6=-parseInt(_0x412c98(0x163))/0x1+-parseInt(_0x412c98(0x154))/0x2+-parseInt(_0x412c98(0x129))/0x3+parseInt(_0x412c98(0x13d))/0x4+-parseInt(_0x412c98(0x14b))/0x5+parseInt(_0x412c98(0x14c))/0x6*(parseInt(_0x412c98(0x15b))/0x7)+parseInt(_0x412c98(0x162))/0x8;if(_0x53d7a6===_0x15aa90)break;else _0x5670c0['push'](_0x5670c0['shift']());}catch(_0xdea71){_0x5670c0['push'](_0x5670c0['shift']());}}}(a129_0x1d32,0x3a6ae));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a129_0x3b23(_0x42c3a9,_0x2b8bf3){_0x42c3a9=_0x42c3a9-0x127;const _0x1d3216=a129_0x1d32();let _0x3b23f7=_0x1d3216[_0x42c3a9];return _0x3b23f7;}import{CliErrors}from'../../errors.js';function a129_0x1d32(){const _0x5c0c6d=['Failed\x20to\x20report\x20platform\x20issue:\x20','file','cwd','filter','compress','345152SMdKtQ','report','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated:\x20original\x20','descriptionFile:\x20','message','validation','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','File\x20not\x20found:\x20','One-line\x20issue\x20summary','truncated','sanitize','length','Issue\x20description\x20cannot\x20be\x20empty.','1025130aGxusR','30pbOAZG','flagMissing','\x20bytes','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported','redactions:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','join','434550jaWDln','issue.description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Platform\x20issue\x20reported\x20(','\x20secret(s):\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','234689ffrBRm','descriptionSource','descriptionFilePath','truncated\x20from\x20','redactionKinds','inline','issue.title','5238968WxLMTV','184657KCOszK','apiError','otel://','write','187674AWREWQ','description','str','trim','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','originalBytes','issue.description_original_bytes','issue.description_redactions','descriptionSource:\x20','string','redactionCount','push','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','POST','title'];a129_0x1d32=function(){return _0x5c0c6d;};return a129_0x1d32();}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':a129_0x43a503(0x13e),'description':a129_0x43a503(0x12d),'risk':a129_0x43a503(0x128),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a129_0x43a503(0x13c),'flags':[{'name':a129_0x43a503(0x137),'type':'string','required':!![],'description':a129_0x43a503(0x146)},{'name':a129_0x43a503(0x12a),'type':a129_0x43a503(0x132),'description':a129_0x43a503(0x13f)},{'name':DESCRIPTION_FILE_FLAG,'type':a129_0x43a503(0x132),'description':a129_0x43a503(0x15a)}],async 'validate'(_0x13eebb){const _0x1a0ba8=a129_0x43a503,_0x197a2a=_0x13eebb['str'](_0x1a0ba8(0x137))[_0x1a0ba8(0x12c)](),_0x1959c0=_0x13eebb[_0x1a0ba8(0x12b)](_0x1a0ba8(0x12a))[_0x1a0ba8(0x12c)](),_0x13eead=_0x13eebb[_0x1a0ba8(0x12b)](DESCRIPTION_FILE_FLAG)[_0x1a0ba8(0x12c)]();if(!_0x197a2a)throw CliErrors[_0x1a0ba8(0x14d)](_0x1a0ba8(0x137),_0x1a0ba8(0x152));const _0x281dc2=_0x1959c0['length']>0x0,_0x543034=_0x13eead['length']>0x0;if(_0x281dc2===_0x543034)throw CliErrors[_0x1a0ba8(0x143)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x543034){const _0x1ee17c=resolve(process[_0x1a0ba8(0x13a)](),_0x13eead);if(!existsSync(_0x1ee17c))throw CliErrors['validation'](_0x1a0ba8(0x145)+_0x1ee17c);}},async 'dryRun'(_0x437147){const _0x479c6d=a129_0x43a503,_0x26cda9=await prepareIssueReport(_0x437147);return{'method':_0x479c6d(0x136),'url':_0x479c6d(0x127)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x26cda9[_0x479c6d(0x137)],'issue.description':_0x26cda9['description'],'issue.description_original_bytes':_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x12e)],'issue.description_truncated':_0x26cda9['sanitize']['truncated'],'issue.description_redactions':_0x26cda9['sanitize'][_0x479c6d(0x133)],'issue.description_redaction_kinds':_0x26cda9[_0x479c6d(0x148)]['redactionKinds'][_0x479c6d(0x153)](',')}},'description':[_0x479c6d(0x156),_0x479c6d(0x131)+_0x26cda9[_0x479c6d(0x15c)],_0x26cda9[_0x479c6d(0x15d)]?_0x479c6d(0x141)+_0x26cda9[_0x479c6d(0x15d)]:null,_0x26cda9['sanitize'][_0x479c6d(0x147)]?_0x479c6d(0x140)+_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x12e)]+'\x20bytes':null,_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x133)]>0x0?_0x479c6d(0x151)+_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x133)]+'\x20('+_0x26cda9[_0x479c6d(0x148)]['redactionKinds'][_0x479c6d(0x153)](',\x20')+')':null][_0x479c6d(0x13b)](Boolean)[_0x479c6d(0x153)]('\x0a')};},async 'execute'(_0x489c69){const _0x50b864=a129_0x43a503,_0x27df9d=await prepareIssueReport(_0x489c69);try{await sendPlatformIssueCollectLog({'title':_0x27df9d[_0x50b864(0x137)],'description':_0x27df9d[_0x50b864(0x12a)],'sanitize':{'originalBytes':_0x27df9d['sanitize'][_0x50b864(0x12e)],'truncated':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x147)],'redactionCount':_0x27df9d[_0x50b864(0x148)]['redactionCount'],'redactionKinds':_0x27df9d[_0x50b864(0x148)]['redactionKinds']}});}catch(_0xb9fe44){throw CliErrors[_0x50b864(0x164)](_0x50b864(0x138)+(_0xb9fe44 instanceof Error?_0xb9fe44[_0x50b864(0x142)]:String(_0xb9fe44)),_0x50b864(0x144));}return{'ok':!![],'message':buildResultMessage(_0x27df9d['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x50b864(0x161),_0x50b864(0x155),_0x50b864(0x12f),'issue.description_truncated',_0x50b864(0x130),'issue.description_redaction_kinds'],'issue':{'title':_0x27df9d['title'],'descriptionLength':_0x27df9d[_0x50b864(0x12a)][_0x50b864(0x149)],'descriptionSource':_0x27df9d[_0x50b864(0x15c)],..._0x27df9d[_0x50b864(0x15d)]?{'descriptionFile':_0x27df9d[_0x50b864(0x15d)]}:{},'sanitize':{'originalBytes':_0x27df9d[_0x50b864(0x148)]['originalBytes'],'truncated':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x147)],'redactions':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x133)],'redactionKinds':_0x27df9d[_0x50b864(0x148)]['redactionKinds']}}}};}};function buildResultMessage(_0x454c34){const _0x27093f=a129_0x43a503,_0x27c355=[];return _0x454c34['truncated']&&_0x27c355[_0x27093f(0x134)](_0x27093f(0x15e)+_0x454c34['originalBytes']+_0x27093f(0x14e)),_0x454c34[_0x27093f(0x133)]>0x0&&_0x27c355[_0x27093f(0x134)]('redacted\x20'+_0x454c34[_0x27093f(0x133)]+_0x27093f(0x159)+_0x454c34[_0x27093f(0x15f)]['join'](',\x20')),_0x27c355['length']===0x0?_0x27093f(0x150):_0x27093f(0x158)+_0x27c355[_0x27093f(0x153)](';\x20')+')';}async function prepareIssueReport(_0x3172e2){const _0x205821=a129_0x43a503,_0x944e92=_0x3172e2[_0x205821(0x12b)](_0x205821(0x137))[_0x205821(0x12c)](),_0x18b1cd=_0x3172e2[_0x205821(0x12b)]('description'),_0x361629=_0x3172e2[_0x205821(0x12b)](DESCRIPTION_FILE_FLAG)[_0x205821(0x12c)]();if(!_0x361629){const _0x3fc49d=_0x18b1cd;if(!_0x3fc49d[_0x205821(0x12c)]())throw CliErrors['validation'](_0x205821(0x14a),_0x205821(0x135));const _0x1e54cf=sanitizeIssueDescription(_0x3fc49d);return{'title':_0x944e92,'description':_0x1e54cf[_0x205821(0x12a)],'descriptionSource':_0x205821(0x160),'sanitize':_0x1e54cf};}const _0x5f363e=resolve(process[_0x205821(0x13a)](),_0x361629),_0x5a5793=await readFile(_0x5f363e,'utf8');if(!_0x5a5793['trim']())throw CliErrors[_0x205821(0x143)](_0x205821(0x14f)+_0x5f363e,_0x205821(0x157));const _0x335c94=sanitizeIssueDescription(_0x5a5793);return{'title':_0x944e92,'description':_0x335c94[_0x205821(0x12a)],'descriptionSource':_0x205821(0x139),'descriptionFilePath':_0x5f363e,'sanitize':_0x335c94};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130_0x47aed8=a130_0x5bad;(function(_0x1fe5e2,_0x3cc8dd){const _0x3b730c=a130_0x5bad,_0x4ac912=_0x1fe5e2();while(!![]){try{const _0x5376ea=parseInt(_0x3b730c(0x1c3))/0x1*(-parseInt(_0x3b730c(0x1d8))/0x2)+-parseInt(_0x3b730c(0x1d5))/0x3*(-parseInt(_0x3b730c(0x1c6))/0x4)+parseInt(_0x3b730c(0x1d1))/0x5+-parseInt(_0x3b730c(0x1d9))/0x6+parseInt(_0x3b730c(0x1c7))/0x7*(-parseInt(_0x3b730c(0x1cc))/0x8)+-parseInt(_0x3b730c(0x1da))/0x9*(parseInt(_0x3b730c(0x1cb))/0xa)+-parseInt(_0x3b730c(0x1be))/0xb*(-parseInt(_0x3b730c(0x1dd))/0xc);if(_0x5376ea===_0x3cc8dd)break;else _0x4ac912['push'](_0x4ac912['shift']());}catch(_0x3dd956){_0x4ac912['push'](_0x4ac912['shift']());}}}(a130_0x16c4,0x7ce7d));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a130_0x47aed8(0x1ce),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a130_0x47aed8(0x1c4)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a130_0x47aed8(0x1db)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a130_0x47aed8(0x1d3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a130_0x47aed8(0x1e0)},{'kind':a130_0x47aed8(0x1e1),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a130_0x47aed8(0x1d7)},{'kind':a130_0x47aed8(0x1df),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a130_0x47aed8(0x1d4)}];export function sanitizeIssueDescription(_0x6aef72){const _0x49532c=a130_0x47aed8,_0x2834a1=Buffer[_0x49532c(0x1dc)](_0x6aef72,'utf8'),_0x2f8176=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4c2eff=_0x6aef72,_0x1f1f22=0x0;const _0x5742be=[];if(!_0x2f8176){const _0x3daadc=protectOssAccessKeyIds(_0x4c2eff);_0x4c2eff=_0x3daadc[_0x49532c(0x1c9)];for(const _0x3888aa of REDACTION_RULES){let _0x2fc5d3=0x0;_0x4c2eff=_0x4c2eff[_0x49532c(0x1c5)](_0x3888aa[_0x49532c(0x1d0)],(_0xec5025,_0x3e9aa1)=>{const _0x32e9e9=_0x49532c;_0x2fc5d3+=0x1;const _0x25ee9a=typeof _0x3e9aa1===_0x32e9e9(0x1cd)?_0x3e9aa1:'';return _0x25ee9a+'['+_0x3888aa[_0x32e9e9(0x1c0)]+']';}),_0x2fc5d3>0x0&&(_0x1f1f22+=_0x2fc5d3,!_0x5742be[_0x49532c(0x1c2)](_0x3888aa[_0x49532c(0x1c8)])&&_0x5742be[_0x49532c(0x1de)](_0x3888aa[_0x49532c(0x1c8)]));}_0x4c2eff=_0x3daadc[_0x49532c(0x1cf)](_0x4c2eff);}let _0x3f4372=![];if(Buffer[_0x49532c(0x1dc)](_0x4c2eff,_0x49532c(0x1ca))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f4372=!![];const _0x1bfb52=Buffer[_0x49532c(0x1dc)](TRUNCATION_NOTICE,_0x49532c(0x1ca)),_0x3ef8bb=Math[_0x49532c(0x1bd)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x1bfb52);_0x4c2eff=sliceUtf8Bytes(_0x4c2eff,_0x3ef8bb)+TRUNCATION_NOTICE;}return{'description':_0x4c2eff,'originalBytes':_0x2834a1,'truncated':_0x3f4372,'redactionCount':_0x1f1f22,'redactionKinds':_0x5742be};}function a130_0x16c4(){const _0x350937=['pattern','4750960wUuFOZ','__RB_OSS_ID_','access-key','REDACTED:bearer-jwt','1025649YLWUzy','slice','REDACTED:password','650Yxgowc','1476054AUrDAk','9SbFzlz','REDACTED:authorization','byteLength','290676AJhRiv','push','bearer-jwt','REDACTED:access-key','password','from','max','374GmUFuS','length','label','toString','includes','2165cAbWUy','REDACTED:cookie','replace','4veLhye','56nJhSNJ','kind','description','utf8','32660HKRbAL','651144kuopOm','string','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','restore'];a130_0x16c4=function(){return _0x350937;};return a130_0x16c4();}function protectOssAccessKeyIds(_0x28eb3f){const _0x1797d5=a130_0x47aed8,_0x103ea4=[],_0x50f08d=_0x28eb3f[_0x1797d5(0x1c5)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2ca0b1,_0x302e05)=>{const _0x2dba70=_0x1797d5,_0x21e3e8=_0x103ea4[_0x2dba70(0x1de)](_0x2ca0b1[_0x2dba70(0x1d6)](_0x302e05[_0x2dba70(0x1bf)]))-0x1;return _0x302e05+_0x2dba70(0x1d2)+_0x21e3e8+'__';});return{'description':_0x50f08d,'restore':_0x17683c=>_0x17683c[_0x1797d5(0x1c5)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x19e4d4,_0x3df4f5,_0x422faf)=>{const _0x59ab89=_0x103ea4[Number(_0x422faf)];return _0x59ab89===undefined?_0x19e4d4:''+_0x3df4f5+_0x59ab89;})};}function a130_0x5bad(_0x24d717,_0x1d5531){_0x24d717=_0x24d717-0x1bc;const _0x16c4b1=a130_0x16c4();let _0x5badf1=_0x16c4b1[_0x24d717];return _0x5badf1;}function sliceUtf8Bytes(_0x35b558,_0x3ef500){const _0x41d003=a130_0x47aed8;if(_0x3ef500<=0x0)return'';const _0x2b89dd=Buffer[_0x41d003(0x1bc)](_0x35b558,_0x41d003(0x1ca));if(_0x2b89dd[_0x41d003(0x1dc)]<=_0x3ef500)return _0x35b558;let _0x1196b0=_0x3ef500;while(_0x1196b0>0x0){const _0x10ccd8=_0x2b89dd[_0x1196b0];if(_0x10ccd8===undefined||(_0x10ccd8&0xc0)!==0x80)break;_0x1196b0-=0x1;}return _0x2b89dd['subarray'](0x0,_0x1196b0)[_0x41d003(0x1c1)](_0x41d003(0x1ca));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a131_0x76e2(){const _0x3f63e0=['byteSize','create','str','length','69620raScgI','\x20with\x20title\x20','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','kb_title_required','rabetbase\x20kb\x20detail\x20--id\x20','9AiiJXu','rabetbase\x20kb\x20list\x20--title\x20','write','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','stringify','--title\x20is\x20required.','title','trim','Company\x20knowledge\x20base\x20','--file\x20is\x20required.','1625239eTMvmt','contentHash','string','kb_file_required','686343fgxvZO','verified','content','1328992YQGkpC','329520ezqJpM','POST','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','file','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','356qnHwyj','cookie','/admin/knowledge-base/create','357744pKfqQM','company','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20for\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','9575JoLWHH','appCode','kb_verification_failed'];a131_0x76e2=function(){return _0x3f63e0;};return a131_0x76e2();}const a131_0x47d97a=a131_0x5f27;(function(_0x430b11,_0x1b9cd6){const _0x883aad=a131_0x5f27,_0xd39411=_0x430b11();while(!![]){try{const _0x53d3fb=parseInt(_0x883aad(0x1e8))/0x1+parseInt(_0x883aad(0x1d4))/0x2+-parseInt(_0x883aad(0x1d0))/0x3+-parseInt(_0x883aad(0x1d9))/0x4*(parseInt(_0x883aad(0x1e1))/0x5)+-parseInt(_0x883aad(0x1dc))/0x6+parseInt(_0x883aad(0x1cc))/0x7+-parseInt(_0x883aad(0x1d3))/0x8*(-parseInt(_0x883aad(0x1ee))/0x9);if(_0x53d3fb===_0x1b9cd6)break;else _0xd39411['push'](_0xd39411['shift']());}catch(_0x5af26c){_0xd39411['push'](_0xd39411['shift']());}}}(a131_0x76e2,0x2a711));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a131_0x47d97a(0x1db);function readCreateInput(_0x1073ce){const _0x243b74=a131_0x47d97a,_0xf50260=_0x1073ce[_0x243b74(0x1e6)](_0x243b74(0x1c8))[_0x243b74(0x1c9)]();if(!_0xf50260)throw kbError(_0x243b74(0x1ec),_0x243b74(0x1c7));const _0x49998b=_0x1073ce[_0x243b74(0x1e6)](_0x243b74(0x1d7))[_0x243b74(0x1c9)]();if(!_0x49998b)throw kbError(_0x243b74(0x1cf),_0x243b74(0x1cb),_0x243b74(0x1f1));return{'title':_0xf50260,'file':_0x49998b};}async function prepareCreate(_0x22fab6){const _0x49bbce=a131_0x47d97a,_0x1c2c59=readCreateInput(_0x22fab6),_0x541064=await readKbFile(_0x1c2c59['file']),_0x45ddf8=await fetchAllCompanyKnowledgeBases(_0x22fab6,{'title':_0x1c2c59[_0x49bbce(0x1c8)]}),_0x297e8c=findExactCompanyKnowledgeBases(_0x45ddf8,_0x22fab6[_0x49bbce(0x1e2)],_0x1c2c59[_0x49bbce(0x1c8)]);if(_0x297e8c[_0x49bbce(0x1e7)]>0x0)throw kbError('kb_already_exists',_0x49bbce(0x1d8)+_0x22fab6['appCode']+_0x49bbce(0x1e9)+_0x1c2c59[_0x49bbce(0x1c8)]+'.',_0x49bbce(0x1d6)+_0x297e8c[0x0]['id']+_0x49bbce(0x1e0));return{..._0x1c2c59,'content':_0x541064};}function plannedAfter(_0x311405,_0x4da501){const _0x2404ea=a131_0x47d97a;return{'scope':_0x2404ea(0x1dd),'appCode':_0x311405[_0x2404ea(0x1e2)],'title':_0x4da501[_0x2404ea(0x1c8)],'contentByteSize':_0x4da501[_0x2404ea(0x1d2)][_0x2404ea(0x1e4)],'contentHash':_0x4da501['content'][_0x2404ea(0x1cd)]};}function a131_0x5f27(_0xc76048,_0x56fb84){_0xc76048=_0xc76048-0x1c6;const _0x76e264=a131_0x76e2();let _0x5f27c9=_0x76e264[_0xc76048];return _0x5f27c9;}function verifyCreatedState(_0x40d4cc,_0x4cbaf3,_0x4aba5a){const _0x55c119=a131_0x47d97a;assertCompanyKnowledgeBase(_0x4aba5a,_0x40d4cc[_0x55c119(0x1e2)],_0x4aba5a['id']);const _0x23a918=inspectKbContent(_0x4aba5a['content']);if(_0x4aba5a[_0x55c119(0x1c8)]!==_0x4cbaf3[_0x55c119(0x1c8)]||_0x23a918[_0x55c119(0x1cd)]!==_0x4cbaf3[_0x55c119(0x1d2)][_0x55c119(0x1cd)])throw kbError(_0x55c119(0x1e3),_0x55c119(0x1ca)+_0x4aba5a['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x55c119(0x1de)+_0x4aba5a['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x4aba5a);}export const kbCreate={'service':'kb','command':a131_0x47d97a(0x1e5),'description':a131_0x47d97a(0x1eb),'risk':a131_0x47d97a(0x1f0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a131_0x47d97a(0x1c8),'type':'string','required':!![],'description':'Knowledge-base\x20title'},{'name':a131_0x47d97a(0x1d7),'type':a131_0x47d97a(0x1ce),'required':!![],'description':a131_0x47d97a(0x1ea)}],async 'validate'(_0x281836){readCreateInput(_0x281836);},async 'dryRun'(_0x6eb550){const _0x1d0603=a131_0x47d97a,_0x54e8f0=await prepareCreate(_0x6eb550);return asDryRunResult({'operation':_0x1d0603(0x1e5),'selector':{'scope':_0x1d0603(0x1dd),'appCode':_0x6eb550['appCode'],'title':_0x54e8f0[_0x1d0603(0x1c8)]},'before':null,'after':plannedAfter(_0x6eb550,_0x54e8f0),'dryRun':!![],'backend':{'method':_0x1d0603(0x1d5),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x1d0603(0x1ef)+JSON[_0x1d0603(0x1c6)](_0x54e8f0['title'])+'\x20--format\x20compress'}},{'method':_0x1d0603(0x1d5),'url':CREATE_PATH});},async 'execute'(_0x165118){const _0x272ddf=a131_0x47d97a,_0x1ad2d2=await prepareCreate(_0x165118);let _0x2d3fb6,_0x51885b=![];try{const _0x198fcd=await createEnterpriseKnowledgeBase(_0x165118[_0x272ddf(0x1da)],{'appCode':_0x165118[_0x272ddf(0x1e2)],'title':_0x1ad2d2['title'],'content':_0x1ad2d2['content']['content']});assertCompanyKnowledgeBase(_0x198fcd,_0x165118[_0x272ddf(0x1e2)],_0x198fcd['id']),_0x2d3fb6=_0x198fcd['id'];}catch(_0x27c78e){if(!isPlatformTransportFailure(_0x27c78e))throw _0x27c78e;_0x51885b=!![];}if(_0x2d3fb6===undefined){const _0x3f651c=await verifyKbMutationReadback(_0x272ddf(0x1e5),!![],()=>fetchAllCompanyKnowledgeBases(_0x165118,{'title':_0x1ad2d2['title']})),_0xa42e4e=findExactCompanyKnowledgeBases(_0x3f651c,_0x165118['appCode'],_0x1ad2d2[_0x272ddf(0x1c8)]);if(_0xa42e4e['length']!==0x1)throw kbError('kb_create_outcome_unknown',_0x272ddf(0x1f2)+_0xa42e4e[_0x272ddf(0x1e7)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0x2d3fb6=_0xa42e4e[0x0]['id'];}const _0x2a5de6=await verifyKbMutationReadback(_0x272ddf(0x1e5),_0x51885b,()=>requireKb(_0x165118,_0x2d3fb6)),_0x27adab=verifyCreatedState(_0x165118,_0x1ad2d2,_0x2a5de6),_0x4f0a46=_0x51885b?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x27adab['id'],'scope':_0x272ddf(0x1dd),'appCode':_0x27adab[_0x272ddf(0x1e2)]},'before':null,'after':_0x27adab,'dryRun':![],'backend':{'method':_0x272ddf(0x1d5),'path':CREATE_PATH},'warnings':_0x4f0a46,'verification':{'status':_0x272ddf(0x1d1),'recoveredAfterUnknownResponse':_0x51885b,'lookupCommand':_0x272ddf(0x1ed)+_0x27adab['id']+'\x20--format\x20compress'}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x27adab['id']+_0x272ddf(0x1df)+_0x27adab['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a132_0x5f57(_0x2dc802,_0x113460){_0x2dc802=_0x2dc802-0x193;const _0x212542=a132_0x2125();let _0x5f5719=_0x212542[_0x2dc802];return _0x5f5719;}const a132_0x539448=a132_0x5f57;(function(_0x13e02e,_0xfbef32){const _0x8869d=a132_0x5f57,_0x515b5f=_0x13e02e();while(!![]){try{const _0x1eecb6=parseInt(_0x8869d(0x1a5))/0x1+-parseInt(_0x8869d(0x1ae))/0x2*(-parseInt(_0x8869d(0x1a6))/0x3)+-parseInt(_0x8869d(0x1a9))/0x4+parseInt(_0x8869d(0x196))/0x5+-parseInt(_0x8869d(0x1b0))/0x6+parseInt(_0x8869d(0x19e))/0x7+-parseInt(_0x8869d(0x1a0))/0x8*(parseInt(_0x8869d(0x1b7))/0x9);if(_0x1eecb6===_0xfbef32)break;else _0x515b5f['push'](_0x515b5f['shift']());}catch(_0x9d9941){_0x515b5f['push'](_0x515b5f['shift']());}}}(a132_0x2125,0xd4923));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a132_0x539448(0x1a7),RAG_WARNING=a132_0x539448(0x1a8),NON_ATOMIC_WARNING=a132_0x539448(0x1ac);function readExpectedVersion(_0x4862b6){const _0x525e76=a132_0x539448,_0xa7288=_0x4862b6[_0x525e76(0x194)](_0x525e76(0x1b3));if(_0xa7288===undefined)return undefined;const _0x5bd4a4=Number(_0xa7288);if(!Number['isSafeInteger'](_0x5bd4a4)||_0x5bd4a4<0x0)throw kbError('kb_expected_version_invalid',_0x525e76(0x1af));return _0x5bd4a4;}function a132_0x2125(){const _0x5396f0=['kb_delete_outcome_unknown','appCode','company','356597lHsUEM','3qTBreB','/admin/knowledge-base/delete','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','6132272csRTKy','rabetbase\x20kb\x20detail\x20--id\x20','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','number','3189018OxktAN','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','1220898FpYcHF','cookie','Company\x20knowledge-base\x20id','expected-version','verified','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','already_absent','3969JPMAXr','no_op','flag','POST','1416335KgxIVO','\x20--format\x20compress','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','unshift','Company\x20knowledge\x20base\x20','delete','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','Soft-deleted\x20company\x20knowledge\x20base\x20','12022346RckSwJ','snapshotHash','24392vStuiV','high-risk-write'];a132_0x2125=function(){return _0x5396f0;};return a132_0x2125();}function noOpData(_0x44b60e,_0x1cf1cc,_0x304058){const _0x39040b=a132_0x539448;return{'operation':_0x39040b(0x193),'selector':{'id':_0x1cf1cc,'scope':_0x39040b(0x1a4),'appCode':_0x44b60e[_0x39040b(0x1a3)]},'before':null,'after':null,'dryRun':_0x304058,'deleteCalled':![],'backend':{'method':_0x39040b(0x195),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x39040b(0x1b6),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a132_0x539448(0x19b),'description':a132_0x539448(0x1b5),'risk':a132_0x539448(0x1a1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a132_0x539448(0x1ad),'required':!![],'description':a132_0x539448(0x1b2)},{'name':a132_0x539448(0x1b3),'type':'number','required':![],'description':a132_0x539448(0x1ab)}],async 'validate'(_0x29c33c){readKbId(_0x29c33c),readExpectedVersion(_0x29c33c),requireKbExplicitYes(_0x29c33c);},async 'dryRun'(_0x8233b2){const _0x3c202b=a132_0x539448,_0x45a0d8=readKbId(_0x8233b2),_0x304ac1=readExpectedVersion(_0x8233b2),_0x27caf3=await getKbOrNull(_0x8233b2,_0x45a0d8);if(!_0x27caf3)return asDryRunResult(noOpData(_0x8233b2,_0x45a0d8,!![]),{'method':_0x3c202b(0x195),'url':DELETE_PATH});assertExpectedKbVersion(_0x27caf3,_0x304ac1);const _0x3b59a4=projectKb(_0x27caf3),_0x22c806=[RAG_WARNING];if(_0x304ac1!==undefined)_0x22c806[_0x3c202b(0x199)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x3c202b(0x19b),'selector':{'id':_0x3b59a4['id'],'scope':'company','appCode':_0x3b59a4[_0x3c202b(0x1a3)]},'before':_0x3b59a4,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x3c202b(0x195),'path':DELETE_PATH},'warnings':_0x22c806,'verification':{'expectedVersion':_0x304ac1??null,'atomicCompareAndSet':![],'snapshotHash':_0x3b59a4[_0x3c202b(0x19f)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x3c202b(0x1aa)+_0x3b59a4['id']+_0x3c202b(0x197)}},{'method':_0x3c202b(0x195),'url':DELETE_PATH});},async 'execute'(_0x23b9b9){const _0x2a4f52=a132_0x539448;requireKbExplicitYes(_0x23b9b9);const _0x4434ab=readKbId(_0x23b9b9),_0x1171ad=readExpectedVersion(_0x23b9b9),_0x18a05f=await getKbOrNull(_0x23b9b9,_0x4434ab);if(!_0x18a05f)return{'ok':!![],'data':noOpData(_0x23b9b9,_0x4434ab,![]),'message':'Company\x20knowledge\x20base\x20'+_0x4434ab+_0x2a4f52(0x19c)};assertExpectedKbVersion(_0x18a05f,_0x1171ad);const _0x2199f3=projectKb(_0x18a05f);let _0x264ae8=![];try{await deleteEnterpriseKnowledgeBase(_0x23b9b9[_0x2a4f52(0x1b1)],_0x4434ab);}catch(_0x3b09c2){if(!isPlatformTransportFailure(_0x3b09c2))throw _0x3b09c2;_0x264ae8=!![];}const _0x179b2c=await verifyKbMutationReadback(_0x2a4f52(0x19b),_0x264ae8,()=>getKbOrNull(_0x23b9b9,_0x4434ab));if(_0x179b2c)throw kbError(_0x264ae8?_0x2a4f52(0x1a2):'kb_verification_failed',_0x2a4f52(0x19a)+_0x4434ab+'\x20remains\x20readable\x20after\x20delete.',_0x2a4f52(0x198)+_0x4434ab+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x2cb062=[RAG_WARNING];if(_0x1171ad!==undefined)_0x2cb062[_0x2a4f52(0x199)](NON_ATOMIC_WARNING);return _0x264ae8&&_0x2cb062[_0x2a4f52(0x199)]('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x2a4f52(0x19b),'selector':{'id':_0x2199f3['id'],'scope':'company','appCode':_0x2199f3['appCode']},'before':_0x2199f3,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x2a4f52(0x195),'path':DELETE_PATH},'warnings':_0x2cb062,'verification':{'status':_0x2a4f52(0x1b4),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x264ae8,'lookupCommand':_0x2a4f52(0x1aa)+_0x2199f3['id']+_0x2a4f52(0x197)}},'message':_0x2a4f52(0x19d)+_0x2199f3['id']};}};
|