@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142_0x1ec2fe=a142_0x4863;(function(_0x40dcac,_0x5d7a85){const _0x27b93f=a142_0x4863,_0x1a87b9=_0x40dcac();while(!![]){try{const _0x4eef67=-parseInt(_0x27b93f(0xcd))/0x1+-parseInt(_0x27b93f(0xcb))/0x2*(parseInt(_0x27b93f(0xb2))/0x3)+-parseInt(_0x27b93f(0xc0))/0x4+-parseInt(_0x27b93f(0xb1))/0x5*(-parseInt(_0x27b93f(0xc7))/0x6)+parseInt(_0x27b93f(0xa8))/0x7*(parseInt(_0x27b93f(0xc8))/0x8)+-parseInt(_0x27b93f(0xce))/0x9*(parseInt(_0x27b93f(0xa4))/0xa)+parseInt(_0x27b93f(0xa7))/0xb;if(_0x4eef67===_0x5d7a85)break;else _0x1a87b9['push'](_0x1a87b9['shift']());}catch(_0x39f1c3){_0x1a87b9['push'](_0x1a87b9['shift']());}}}(a142_0x3de3,0x302ed));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a142_0x3de3(){const _0x213187=['POST','validation','appCode','policyFilePath','revision','Inspect\x20with\x20`','instant_api_policy_publish_outcome_unknown','verified','local','62752ZKHGHb','cause','publish','config','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','before','push','12792BUbwvj','14704ukjnnt','high-risk-write','instant_api_policy_publish_verification_failed','19876lXJARm','normalizedConfig','243339EJaAtB','78417gVqYxv','130Fsioxo','all','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','1384889rVNRBw','959SHvpUh','changeSummary','/publish','configHash','expectedRevision','defineProperty','instant_api_policy_publish_verification_unavailable','policyRelativePath','`;\x20do\x20not\x20resubmit\x20automatically.','590uQqaKi','18sGUXRy','instant-api-policy','planned','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','Published\x20Instant\x20API\x20policy\x20revision\x20'];a142_0x3de3=function(){return _0x213187;};return a142_0x3de3();}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';function a142_0x4863(_0x44b410,_0x4a6a06){_0x44b410=_0x44b410-0xa4;const _0x3de341=a142_0x3de3();let _0x4863d1=_0x3de341[_0x44b410];return _0x4863d1;}async function preparePublish(_0x146ab0){const _0x26942d=a142_0x4863,{local:_0x22f0b4,config:_0x37e977}=await readFixedPolicy(_0x146ab0),_0x5eb1f3=readChangeSummary(_0x146ab0),_0x4eaa6d=readExpectedRevision(_0x146ab0),[_0x3c5156,_0x351b5f]=await Promise[_0x26942d(0xa5)]([getCurrentInstantApiPolicy(_0x146ab0[_0x26942d(0xb9)]),validateInstantApiPolicy({'appCode':_0x146ab0[_0x26942d(0xb9)],'config':_0x37e977})]);return assertExpectedRevision(_0x3c5156,_0x4eaa6d),{'local':_0x22f0b4,'config':_0x37e977,'changeSummary':_0x5eb1f3,'expectedRevision':_0x4eaa6d,'before':_0x3c5156,'validation':_0x351b5f};}export const instantApiPolicyPublish={'service':a142_0x1ec2fe(0xb3),'command':a142_0x1ec2fe(0xc2),'description':a142_0x1ec2fe(0xa6),'risk':a142_0x1ec2fe(0xc9),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x656c7e){readChangeSummary(_0x656c7e),readExpectedRevision(_0x656c7e);},async 'dryRun'(_0x31a1f9){const _0x571dc3=a142_0x1ec2fe,_0x1b438f=await preparePublish(_0x31a1f9);return asDryRunResult({'operation':_0x571dc3(0xc2),'selector':{'appCode':_0x31a1f9[_0x571dc3(0xb9)]},'before':projectCurrentPolicy(_0x1b438f['before']),'after':{'revision':_0x1b438f[_0x571dc3(0xc5)]?_0x1b438f['before'][_0x571dc3(0xbb)]+0x1:0x1,'configHash':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xab)],'config':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xcc)]},'filePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xba)],'relativePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xaf)],'dryRun':!![],'backend':{'method':_0x571dc3(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x1b438f['expectedRevision']),'verification':{'status':_0x571dc3(0xb4),'expectedRevision':_0x1b438f[_0x571dc3(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x571dc3(0xb7),'url':INSTANT_API_POLICY_BASE_PATH+_0x571dc3(0xaa)});},async 'execute'(_0x4d3b13){const _0x110ce9=a142_0x1ec2fe,_0x3ab42e=await preparePublish(_0x4d3b13);let _0x33e0dc=![];try{await publishInstantApiPolicy({'appCode':_0x4d3b13[_0x110ce9(0xb9)],'config':_0x3ab42e[_0x110ce9(0xc3)],..._0x3ab42e[_0x110ce9(0xa9)]?{'changeSummary':_0x3ab42e[_0x110ce9(0xa9)]}:{}});}catch(_0x430e79){if(!isPlatformTransportFailure(_0x430e79))throw _0x430e79;_0x33e0dc=!![];}let _0x341f66;try{_0x341f66=await getCurrentInstantApiPolicy(_0x4d3b13[_0x110ce9(0xb9)]);}catch(_0x33fc20){const _0x128e0b=instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xae),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x110ce9(0xbc)+mutationLookupCommand()+_0x110ce9(0xb0));Object[_0x110ce9(0xad)](_0x128e0b,_0x110ce9(0xc1),{'value':_0x33fc20,'enumerable':![]});throw _0x128e0b;}const _0x6f2d9e=_0x341f66&&(_0x3ab42e[_0x110ce9(0xc5)]===null||_0x341f66[_0x110ce9(0xbb)]>_0x3ab42e[_0x110ce9(0xc5)][_0x110ce9(0xbb)]),_0x273b7e=_0x341f66?.[_0x110ce9(0xab)]===_0x3ab42e[_0x110ce9(0xb8)]['configHash'];if(!_0x341f66||!_0x6f2d9e||!_0x273b7e)throw instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xca),_0x110ce9(0xb5),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x110ce9(0xb0));const _0x2bac4b=[...expectedRevisionWarnings(_0x3ab42e[_0x110ce9(0xac)]),RUNTIME_CACHE_WARNING];return _0x33e0dc&&_0x2bac4b[_0x110ce9(0xc6)](_0x110ce9(0xc4)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x4d3b13[_0x110ce9(0xb9)]},'before':projectCurrentPolicy(_0x3ab42e['before']),'after':projectCurrentPolicy(_0x341f66),'filePath':_0x3ab42e[_0x110ce9(0xbf)]['policyFilePath'],'relativePath':_0x3ab42e[_0x110ce9(0xbf)][_0x110ce9(0xaf)],'dryRun':![],'backend':{'method':_0x110ce9(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+_0x110ce9(0xaa)},'warnings':_0x2bac4b,'verification':{'status':_0x110ce9(0xbe),'recoveredAfterUnknownResponse':_0x33e0dc,'expectedRevision':_0x3ab42e[_0x110ce9(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x110ce9(0xb6)+_0x341f66['revision']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a143_0x1d8f(_0x1df5c6,_0x3006a8){_0x1df5c6=_0x1df5c6-0x194;const _0x4d70f1=a143_0x4d70();let _0x1d8fcf=_0x4d70f1[_0x1df5c6];return _0x1d8fcf;}const a143_0x53331e=a143_0x1d8f;(function(_0x147924,_0x243ff9){const _0x130f88=a143_0x1d8f,_0x1ed246=_0x147924();while(!![]){try{const _0x570df5=parseInt(_0x130f88(0x1a7))/0x1*(-parseInt(_0x130f88(0x19e))/0x2)+parseInt(_0x130f88(0x1aa))/0x3*(parseInt(_0x130f88(0x1ac))/0x4)+-parseInt(_0x130f88(0x194))/0x5+-parseInt(_0x130f88(0x1a9))/0x6*(-parseInt(_0x130f88(0x1a1))/0x7)+parseInt(_0x130f88(0x19a))/0x8*(-parseInt(_0x130f88(0x1a4))/0x9)+-parseInt(_0x130f88(0x1a6))/0xa+parseInt(_0x130f88(0x197))/0xb;if(_0x570df5===_0x243ff9)break;else _0x1ed246['push'](_0x1ed246['shift']());}catch(_0x36b1d6){_0x1ed246['push'](_0x1ed246['shift']());}}}(a143_0x4d70,0xe7268));function a143_0x4d70(){const _0xa0cb1a=['1yEWfZs','instant-api-policy','6xogXen','173697OuyYHh','configHash','44LVHtDE','157770uSuwlK','Pulled','bool','18434053Fgobnc','config','action','835680wFhPwz','pull','Kept','revision','2049578DAdlsE','\x20Instant\x20API\x20policy\x20revision\x20','appCode','4879231EhlOum','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','policyRelativePath','18VKzAik','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','7976900NGxVxK'];a143_0x4d70=function(){return _0xa0cb1a;};return a143_0x4d70();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x53331e(0x1a8),'command':a143_0x53331e(0x19b),'description':a143_0x53331e(0x1a2),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x6dc913){requireForceConfirmation(_0x6dc913);},async 'execute'(_0x5b8942){const _0x550e90=a143_0x53331e;requireForceConfirmation(_0x5b8942);const _0x721f21=await getCurrentInstantApiPolicy(_0x5b8942[_0x550e90(0x1a0)]);if(!_0x721f21)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x5b8942[_0x550e90(0x1a0)]+'.',_0x550e90(0x1a5));const _0x4ab022=loadInstantApiPolicyLocalConfig(_0x5b8942[_0x550e90(0x1a0)]),_0x264252=await writeInstantApiPolicyConfigFile(_0x4ab022,_0x721f21[_0x550e90(0x198)],{'force':_0x5b8942[_0x550e90(0x196)]('force')});return{'ok':!![],'data':{'operation':_0x550e90(0x19b),'selector':{'appCode':_0x5b8942[_0x550e90(0x1a0)],'revision':_0x721f21[_0x550e90(0x19d)]},'filePath':_0x4ab022['policyFilePath'],'relativePath':_0x4ab022[_0x550e90(0x1a3)],'action':_0x264252[_0x550e90(0x199)],'configHash':_0x721f21[_0x550e90(0x1ab)]},'message':(_0x264252[_0x550e90(0x199)]==='unchanged'?_0x550e90(0x19c):_0x550e90(0x195))+_0x550e90(0x19f)+_0x721f21[_0x550e90(0x19d)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0xfab42d=a144_0x28c8;function a144_0x28c8(_0xdf436d,_0x1a65c2){_0xdf436d=_0xdf436d-0x127;const _0x5f51d0=a144_0x5f51();let _0x28c82b=_0x5f51d0[_0xdf436d];return _0x28c82b;}(function(_0x27428b,_0x28175b){const _0x5f55bd=a144_0x28c8,_0x289cbf=_0x27428b();while(!![]){try{const _0x56712=-parseInt(_0x5f55bd(0x128))/0x1*(-parseInt(_0x5f55bd(0x134))/0x2)+parseInt(_0x5f55bd(0x135))/0x3*(-parseInt(_0x5f55bd(0x12f))/0x4)+-parseInt(_0x5f55bd(0x131))/0x5+parseInt(_0x5f55bd(0x130))/0x6*(-parseInt(_0x5f55bd(0x12b))/0x7)+-parseInt(_0x5f55bd(0x12d))/0x8+-parseInt(_0x5f55bd(0x12e))/0x9+parseInt(_0x5f55bd(0x12a))/0xa*(parseInt(_0x5f55bd(0x132))/0xb);if(_0x56712===_0x28175b)break;else _0x289cbf['push'](_0x289cbf['shift']());}catch(_0x5a47d3){_0x289cbf['push'](_0x289cbf['shift']());}}}(a144_0x5f51,0x8d815));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x5f51(){const _0x496215=['18HoZZcj','473720IdDdYe','11AELATj','appCode','1368196MsYjZE','5988UIEXCm','Loaded\x20Instant\x20API\x20policy\x20revision\x20','1eKnBzM','revision','21413690XBusWh','158837lzZZRt','read','6998024xLpvJt','6563268REwyxp','960kggIRV'];a144_0x5f51=function(){return _0x496215;};return a144_0x5f51();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':a144_0xfab42d(0x129),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0xfab42d(0x12c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x4e75fa){readRevision(_0x4e75fa);},async 'execute'(_0x4996cd){const _0x20a6f3=a144_0xfab42d,_0x4eab9b=readRevision(_0x4996cd),_0x165460=await getInstantApiPolicyRevision(_0x4996cd[_0x20a6f3(0x133)],_0x4eab9b);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x165460)},'message':_0x20a6f3(0x127)+_0x4eab9b};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x2bed73=a145_0x3224;(function(_0x3e37f1,_0x24ab64){const _0x3bca22=a145_0x3224,_0x55d1d8=_0x3e37f1();while(!![]){try{const _0x12f64a=parseInt(_0x3bca22(0x11b))/0x1*(-parseInt(_0x3bca22(0x124))/0x2)+-parseInt(_0x3bca22(0x11a))/0x3*(parseInt(_0x3bca22(0x125))/0x4)+parseInt(_0x3bca22(0x119))/0x5*(parseInt(_0x3bca22(0x127))/0x6)+parseInt(_0x3bca22(0x128))/0x7+parseInt(_0x3bca22(0x11e))/0x8+-parseInt(_0x3bca22(0x11f))/0x9+parseInt(_0x3bca22(0x11d))/0xa*(parseInt(_0x3bca22(0x126))/0xb);if(_0x12f64a===_0x24ab64)break;else _0x55d1d8['push'](_0x55d1d8['shift']());}catch(_0x34a87a){_0x55d1d8['push'](_0x55d1d8['shift']());}}}(a145_0x3b5f,0x57191));function a145_0x3224(_0x108961,_0x55c296){_0x108961=_0x108961-0x118;const _0x3b5f42=a145_0x3b5f();let _0x322415=_0x3b5f42[_0x108961];return _0x322415;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a145_0x3b5f(){const _0x3ff3ed=['instant-api-policy','10xbSTcZ','299184azunwm','2098503csvoLA','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','map','revisions','appCode','2362MJfsFo','116IXUlXq','7505993Kziajm','174iaGXTr','1787548OCFGrg','length','46255dsiADU','47199XJRxHm','167SyKAev'];a145_0x3b5f=function(){return _0x3ff3ed;};return a145_0x3b5f();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x2bed73(0x11c),'command':a145_0x2bed73(0x122),'description':a145_0x2bed73(0x120),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x47d36f){const _0x421831=a145_0x2bed73,_0xe1facb=await listInstantApiPolicyRevisions(_0x47d36f[_0x421831(0x123)]);return{'ok':!![],'data':{'appCode':_0x47d36f['appCode'],'total':_0xe1facb[_0x421831(0x118)],'revisions':_0xe1facb[_0x421831(0x121)](projectRevisionSummary)},'message':'Found\x20'+_0xe1facb[_0x421831(0x118)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x23445d=a146_0x47ab;(function(_0x57d389,_0xe5b920){const _0x105106=a146_0x47ab,_0x734a72=_0x57d389();while(!![]){try{const _0x1b7654=parseInt(_0x105106(0x132))/0x1*(-parseInt(_0x105106(0x12c))/0x2)+-parseInt(_0x105106(0x124))/0x3*(parseInt(_0x105106(0x137))/0x4)+parseInt(_0x105106(0x13c))/0x5*(parseInt(_0x105106(0x146))/0x6)+parseInt(_0x105106(0x145))/0x7+-parseInt(_0x105106(0x142))/0x8*(-parseInt(_0x105106(0x120))/0x9)+-parseInt(_0x105106(0x143))/0xa+parseInt(_0x105106(0x12e))/0xb;if(_0x1b7654===_0xe5b920)break;else _0x734a72['push'](_0x734a72['shift']());}catch(_0x4b3ed9){_0x734a72['push'](_0x734a72['shift']());}}}(a146_0x1cb0,0x1fc29));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a146_0x47ab(_0x519638,_0x3f983e){_0x519638=_0x519638-0x11e;const _0x1cb0ab=a146_0x1cb0();let _0x47ab3d=_0x1cb0ab[_0x519638];return _0x47ab3d;}import{asDryRunResult}from'../../commands/common/dry-run.js';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';async function prepareRollback(_0x331ba7){const _0x36491a=a146_0x47ab,_0x17c85e=readRevision(_0x331ba7),_0x3fc641=readChangeSummary(_0x331ba7),_0x205a28=readExpectedRevision(_0x331ba7),[_0x36fe14,_0x529db1]=await Promise[_0x36491a(0x13b)]([getCurrentInstantApiPolicy(_0x331ba7[_0x36491a(0x12f)]),getInstantApiPolicyRevision(_0x331ba7[_0x36491a(0x12f)],_0x17c85e)]);if(!_0x36fe14)throw instantApiPolicyError(_0x36491a(0x13e),_0x36491a(0x13a)+_0x331ba7[_0x36491a(0x12f)]+'.');return assertExpectedRevision(_0x36fe14,_0x205a28),{'revision':_0x17c85e,'changeSummary':_0x3fc641,'expectedRevision':_0x205a28,'before':_0x36fe14,'target':_0x529db1};}function a146_0x1cb0(){const _0x48f881=['60vgeoaJ','/rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','instant_api_policy_rollback_verification_failed','1800567mkEuFY','high-risk-write','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','revision','3nTBIbq','instant-api-policy','verified','target','instant_api_policy_rollback_verification_unavailable','Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','Inspect\x20with\x20`','12NmIPTD','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','446545cwmZTA','appCode','cause','expectedRevision','41198OHprrA','instant_api_policy_rollback_outcome_unknown','defineProperty','before','rollback','246572lkrujo','`;\x20do\x20not\x20resubmit\x20automatically.','planned','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','all','91570sCSDxa','\x20forward\x20to\x20revision\x20','instant_api_policy_not_configured','configHash','changeSummary','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','8vUNxsE','1500810SEQvNw','POST','1156421DTMHvX'];a146_0x1cb0=function(){return _0x48f881;};return a146_0x1cb0();}export const instantApiPolicyRollback={'service':a146_0x23445d(0x125),'command':a146_0x23445d(0x136),'description':a146_0x23445d(0x141),'risk':a146_0x23445d(0x121),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x23445d(0x12d),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x303acb){readRevision(_0x303acb),readChangeSummary(_0x303acb),readExpectedRevision(_0x303acb);},async 'dryRun'(_0x178c91){const _0x2f1d76=a146_0x23445d,_0x435309=await prepareRollback(_0x178c91);return asDryRunResult({'operation':_0x2f1d76(0x136),'selector':{'appCode':_0x178c91[_0x2f1d76(0x12f)],'sourceRevision':_0x435309[_0x2f1d76(0x123)]},'before':projectCurrentPolicy(_0x435309['before']),'after':{'revision':_0x435309[_0x2f1d76(0x135)][_0x2f1d76(0x123)]+0x1,'sourceRevision':projectRevisionDetail(_0x435309['target'])},'dryRun':!![],'backend':{'method':_0x2f1d76(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)},'warnings':expectedRevisionWarnings(_0x435309['expectedRevision']),'verification':{'status':_0x2f1d76(0x139),'expectedRevision':_0x435309['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x2f1d76(0x144),'url':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)});},async 'execute'(_0x4551d7){const _0x1ef506=a146_0x23445d,_0x388c2d=await prepareRollback(_0x4551d7);let _0x124d60=![];try{await rollbackInstantApiPolicy({'appCode':_0x4551d7[_0x1ef506(0x12f)],'revision':_0x388c2d['revision'],..._0x388c2d['changeSummary']?{'changeSummary':_0x388c2d[_0x1ef506(0x140)]}:{}});}catch(_0x2f8757){if(!isPlatformTransportFailure(_0x2f8757))throw _0x2f8757;_0x124d60=!![];}let _0x513e1f;try{_0x513e1f=await getCurrentInstantApiPolicy(_0x4551d7[_0x1ef506(0x12f)]);}catch(_0xa693cf){const _0x1aba43=instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x128),_0x1ef506(0x11e),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x1ef506(0x138));Object[_0x1ef506(0x134)](_0x1aba43,_0x1ef506(0x130),{'value':_0xa693cf,'enumerable':![]});throw _0x1aba43;}const _0x3612a6=_0x513e1f&&_0x513e1f[_0x1ef506(0x123)]>_0x388c2d['before'][_0x1ef506(0x123)],_0x42b116=_0x513e1f?.['configHash']===_0x388c2d[_0x1ef506(0x127)][_0x1ef506(0x13f)];if(!_0x513e1f||!_0x3612a6||!_0x42b116)throw instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x11f),_0x1ef506(0x122),_0x1ef506(0x12b)+mutationLookupCommand()+_0x1ef506(0x138));const _0x3dc890=[...expectedRevisionWarnings(_0x388c2d[_0x1ef506(0x131)]),RUNTIME_CACHE_WARNING];return _0x124d60&&_0x3dc890[_0x1ef506(0x12a)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0x4551d7[_0x1ef506(0x12f)],'sourceRevision':_0x388c2d['revision']},'before':projectCurrentPolicy(_0x388c2d[_0x1ef506(0x135)]),'after':projectCurrentPolicy(_0x513e1f),'dryRun':![],'backend':{'method':_0x1ef506(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x1ef506(0x147)},'warnings':_0x3dc890,'verification':{'status':_0x1ef506(0x126),'recoveredAfterUnknownResponse':_0x124d60,'expectedRevision':_0x388c2d[_0x1ef506(0x131)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1ef506(0x129)+_0x388c2d['revision']+_0x1ef506(0x13d)+_0x513e1f[_0x1ef506(0x123)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x1c41(_0x56f30e,_0x429d7a){_0x56f30e=_0x56f30e-0x164;const _0x754b2f=a147_0x754b();let _0x1c4129=_0x754b2f[_0x56f30e];return _0x1c4129;}const a147_0x53db13=a147_0x1c41;(function(_0x514c5f,_0x577c94){const _0x3910ae=a147_0x1c41,_0x1077de=_0x514c5f();while(!![]){try{const _0x2b702f=parseInt(_0x3910ae(0x186))/0x1+parseInt(_0x3910ae(0x192))/0x2+-parseInt(_0x3910ae(0x172))/0x3*(parseInt(_0x3910ae(0x18d))/0x4)+-parseInt(_0x3910ae(0x16d))/0x5+-parseInt(_0x3910ae(0x191))/0x6*(-parseInt(_0x3910ae(0x176))/0x7)+parseInt(_0x3910ae(0x179))/0x8+parseInt(_0x3910ae(0x16b))/0x9;if(_0x2b702f===_0x577c94)break;else _0x1077de['push'](_0x1077de['shift']());}catch(_0x8a3112){_0x1077de['push'](_0x1077de['shift']());}}}(a147_0x754b,0x73944));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0x53db13(0x198);export const RUNTIME_CACHE_WARNING=a147_0x53db13(0x173);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a147_0x53db13(0x185);export const FORCE_FLAG={'name':a147_0x53db13(0x18c),'type':a147_0x53db13(0x165),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':'string','required':![],'description':a147_0x53db13(0x16c)};export const REVISION_FLAG={'name':'revision','type':a147_0x53db13(0x175),'required':!![],'description':a147_0x53db13(0x16f)};function a147_0x754b(){const _0x14d104=['1492alvNmo','changeSummary','enabled','str','123492QYXVlz','1791428SCzxKm','configHash','num','Expected\x20revision\x20','appCode','updateUserId','/smartapi/instant-api-policy','policyId','boolean','change-summary','version','instantApi','length','expected-revision','335556YZYZNV','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','3653615EWswml','flag','Positive\x20published\x20policy\x20revision','trim','config','6744VzOezc','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','defaults','number','63KgJLBc','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','yes','3405384YdtRsI','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','rules','instant_api_policy_force_confirmation_required','--change-summary\x20cannot\x20exceed\x202000\x20characters.','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','bool','revision','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','gmtModified','instant_api_policy_revision_invalid','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','498730zpmbGt','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','NaN','isSafeInteger','changeType','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','force'];a147_0x754b=function(){return _0x14d104;};return a147_0x754b();}export const EXPECTED_REVISION_FLAG={'name':a147_0x53db13(0x16a),'type':a147_0x53db13(0x175),'required':![],'description':a147_0x53db13(0x17e)};export function requireForceConfirmation(_0x5803eb){const _0x557043=a147_0x53db13;if(!_0x5803eb[_0x557043(0x17f)](_0x557043(0x18c))||_0x5803eb['bool'](_0x557043(0x178)))return;throw instantApiPolicyError(_0x557043(0x17c),_0x557043(0x187),_0x557043(0x184));}export function readChangeSummary(_0x26f911){const _0x2b587b=a147_0x53db13,_0x3ad2b0=_0x26f911[_0x2b587b(0x190)](_0x2b587b(0x166))[_0x2b587b(0x170)]();if(!_0x3ad2b0)return undefined;if(_0x3ad2b0[_0x2b587b(0x169)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x2b587b(0x17d));return _0x3ad2b0;}export function readRevision(_0x10d9d4){const _0x23e6c9=a147_0x53db13,_0x5b260f=_0x10d9d4[_0x23e6c9(0x194)](_0x23e6c9(0x180),Number[_0x23e6c9(0x188)]);if(!Number['isSafeInteger'](_0x5b260f)||_0x5b260f<=0x0)throw instantApiPolicyError(_0x23e6c9(0x183),_0x23e6c9(0x18b));return _0x5b260f;}export function readExpectedRevision(_0x31283d){const _0x3b7de2=a147_0x53db13;if(_0x31283d[_0x3b7de2(0x16e)](_0x3b7de2(0x16a))===undefined)return undefined;const _0x140fba=_0x31283d[_0x3b7de2(0x194)](_0x3b7de2(0x16a),Number['NaN']);if(!Number[_0x3b7de2(0x189)](_0x140fba)||_0x140fba<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x140fba;}export function assertExpectedRevision(_0x4504cd,_0x43cc5f){const _0x6eeb48=a147_0x53db13;if(_0x43cc5f===undefined)return;const _0xdce5df=_0x4504cd?.[_0x6eeb48(0x180)]??0x0;if(_0xdce5df!==_0x43cc5f)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x6eeb48(0x17a),_0x6eeb48(0x195)+_0x43cc5f+';\x20current\x20revision\x20is\x20'+_0xdce5df+_0x6eeb48(0x181));}export async function readFixedPolicy(_0x10926d){const _0x2ae511=loadInstantApiPolicyLocalConfig(_0x10926d['appCode']),_0x5f2bf7=await readInstantApiPolicyConfigFile(_0x2ae511);return{'local':_0x2ae511,'config':_0x5f2bf7};}export function projectCurrentPolicy(_0x5a847a){const _0x305c42=a147_0x53db13;if(!_0x5a847a)return null;return{'id':_0x5a847a['id'],'appCode':_0x5a847a[_0x305c42(0x196)],'revision':_0x5a847a[_0x305c42(0x180)],'configHash':_0x5a847a[_0x305c42(0x193)],'enabled':_0x5a847a[_0x305c42(0x18f)],'config':_0x5a847a[_0x305c42(0x171)],'createUserId':_0x5a847a['createUserId']??null,'updateUserId':_0x5a847a[_0x305c42(0x197)]??null,'gmtCreate':_0x5a847a['gmtCreate']??null,'gmtModified':_0x5a847a[_0x305c42(0x182)]??null};}export function projectRevisionSummary(_0x1ca15c){const _0xe05b7c=a147_0x53db13;return{'id':_0x1ca15c['id'],'policyId':_0x1ca15c[_0xe05b7c(0x164)],'appCode':_0x1ca15c[_0xe05b7c(0x196)],'revision':_0x1ca15c['revision'],'configHash':_0x1ca15c['configHash'],'changeType':_0x1ca15c[_0xe05b7c(0x18a)],'changeSummary':_0x1ca15c[_0xe05b7c(0x18e)]??null,'operatorId':_0x1ca15c['operatorId']??null,'gmtCreate':_0x1ca15c['gmtCreate']??null,'version':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x167)],'defaultAction':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x174)][_0xe05b7c(0x168)],'ruleCount':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x17b)]?.['length']??0x0};}export function projectRevisionDetail(_0x1de31d){const _0x496ca1=a147_0x53db13;return{...projectRevisionSummary(_0x1de31d),'config':_0x1de31d[_0x496ca1(0x171)]};}export function expectedRevisionWarnings(_0x267f4f){return _0x267f4f===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x44179f=a147_0x53db13;return _0x44179f(0x177);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a148_0x5bbb30=a148_0x26f3;function a148_0x26f3(_0x31ebac,_0x460d1e){_0x31ebac=_0x31ebac-0x162;const _0x2b96b4=a148_0x2b96();let _0x26f36f=_0x2b96b4[_0x31ebac];return _0x26f36f;}(function(_0x4f0431,_0x4ac4cd){const _0x178c9c=a148_0x26f3,_0x2b8523=_0x4f0431();while(!![]){try{const _0x3ec7ee=parseInt(_0x178c9c(0x177))/0x1+-parseInt(_0x178c9c(0x16f))/0x2+-parseInt(_0x178c9c(0x174))/0x3*(parseInt(_0x178c9c(0x165))/0x4)+-parseInt(_0x178c9c(0x170))/0x5+-parseInt(_0x178c9c(0x175))/0x6*(-parseInt(_0x178c9c(0x16e))/0x7)+-parseInt(_0x178c9c(0x162))/0x8*(parseInt(_0x178c9c(0x16b))/0x9)+-parseInt(_0x178c9c(0x16c))/0xa*(-parseInt(_0x178c9c(0x16a))/0xb);if(_0x3ec7ee===_0x4ac4cd)break;else _0x2b8523['push'](_0x2b8523['shift']());}catch(_0x52e2b8){_0x2b8523['push'](_0x2b8523['shift']());}}}(a148_0x2b96,0x26935));import{validateInstantApiPolicy}from'../../core/api-client.js';function a148_0x2b96(){const _0x50b160=['validate','49KoqaMd','403286MrMxVu','1333715RuUoOp','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','/validate','Validated\x20Instant\x20API\x20policy\x20for\x20','1731asSCPr','102318DSXCXl','POST','37028PSZgrd','184cqRQNb','normalizedConfig','read','1036hwKMOT','instant-api-policy','appCode','policyFilePath','configHash','7287401TTDXSJ','16848pdzEUg','10qKeeSa'];a148_0x2b96=function(){return _0x50b160;};return a148_0x2b96();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a148_0x5bbb30(0x166),'command':a148_0x5bbb30(0x16d),'description':a148_0x5bbb30(0x171),'risk':a148_0x5bbb30(0x164),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x193d16){const _0x562205=a148_0x5bbb30,{local:_0x2c69e1,config:_0x53b422}=await readFixedPolicy(_0x193d16),_0x32bbad=await validateInstantApiPolicy({'appCode':_0x193d16[_0x562205(0x167)],'config':_0x53b422});return{'ok':!![],'data':{'operation':'validate','selector':{'appCode':_0x193d16[_0x562205(0x167)]},'filePath':_0x2c69e1[_0x562205(0x168)],'relativePath':_0x2c69e1['policyRelativePath'],'valid':_0x32bbad['valid'],'configHash':_0x32bbad[_0x562205(0x169)],'normalizedConfig':_0x32bbad[_0x562205(0x163)],'backend':{'method':_0x562205(0x176),'path':INSTANT_API_POLICY_BASE_PATH+_0x562205(0x172)}},'message':_0x562205(0x173)+_0x193d16['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a149_0x2ae6(){const _0x69e791=['22ffChuc','6kbGByQ','643928IJnEdS','1272195cCXHgF','3474SQUsjO','198ACrPVB','3623412WixGRb','31518kggDew','327350cokqkW','1298038fNKcCK','520XyAuTE','3hXyZNx'];a149_0x2ae6=function(){return _0x69e791;};return a149_0x2ae6();}(function(_0x426cd7,_0x43c510){const _0x40994e=a149_0x4904,_0x1dabee=_0x426cd7();while(!![]){try{const _0x3ff8d0=parseInt(_0x40994e(0x19d))/0x1*(parseInt(_0x40994e(0x19e))/0x2)+-parseInt(_0x40994e(0x198))/0x3*(parseInt(_0x40994e(0x19b))/0x4)+-parseInt(_0x40994e(0x19c))/0x5+-parseInt(_0x40994e(0x19a))/0x6*(parseInt(_0x40994e(0x196))/0x7)+-parseInt(_0x40994e(0x197))/0x8*(-parseInt(_0x40994e(0x1a0))/0x9)+-parseInt(_0x40994e(0x1a1))/0xa*(parseInt(_0x40994e(0x199))/0xb)+parseInt(_0x40994e(0x19f))/0xc;if(_0x3ff8d0===_0x43c510)break;else _0x1dabee['push'](_0x1dabee['shift']());}catch(_0x2e299c){_0x1dabee['push'](_0x1dabee['shift']());}}}(a149_0x2ae6,0x3294e));function a149_0x4904(_0xe23313,_0x3e998e){_0xe23313=_0xe23313-0x196;const _0x2ae623=a149_0x2ae6();let _0x49042b=_0x2ae623[_0xe23313];return _0x49042b;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a150_0x19b3(){const _0x175035=['report','command','issue','1035RqpWeZ','401652Qbcmxt','1734AvMbkz','\x20\x20\x20\x20--title\x20\x22','message','write','service','validation_error','63710oNoYRG','unknown_command','168292agWRzX','not_in_project','=1\x20to\x20silence\x20this\x20hint.','3514gTsjKk','\x20\x20Set\x20','replace','\x20bug?\x20Help\x20us\x20fix\x20it:','\x22\x20\x5c','has','2017575hGENPk','slice','170872zuXvGe','join','config_missing','4dSzNLC','1172748PqRdWN','trim','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','auth_required'];a150_0x19b3=function(){return _0x175035;};return a150_0x19b3();}function a150_0x828a(_0x14ea65,_0x44abf8){_0x14ea65=_0x14ea65-0x1d0;const _0x19b301=a150_0x19b3();let _0x828a12=_0x19b301[_0x14ea65];return _0x828a12;}const a150_0x405c1f=a150_0x828a;(function(_0x2c411e,_0x43c9c8){const _0x2d4c05=a150_0x828a,_0x388f5c=_0x2c411e();while(!![]){try{const _0x79b805=-parseInt(_0x2d4c05(0x1ee))/0x1*(-parseInt(_0x2d4c05(0x1e0))/0x2)+parseInt(_0x2d4c05(0x1ef))/0x3+parseInt(_0x2d4c05(0x1d7))/0x4+parseInt(_0x2d4c05(0x1e9))/0x5+-parseInt(_0x2d4c05(0x1d8))/0x6*(parseInt(_0x2d4c05(0x1e3))/0x7)+-parseInt(_0x2d4c05(0x1eb))/0x8+parseInt(_0x2d4c05(0x1d6))/0x9*(-parseInt(_0x2d4c05(0x1de))/0xa);if(_0x79b805===_0x43c9c8)break;else _0x388f5c['push'](_0x388f5c['shift']());}catch(_0x2c0032){_0x388f5c['push'](_0x388f5c['shift']());}}}(a150_0x19b3,0x51226));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x405c1f(0x1d0);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a150_0x405c1f(0x1d2),a150_0x405c1f(0x1ed),a150_0x405c1f(0x1e1),a150_0x405c1f(0x1df),'flag_missing',a150_0x405c1f(0x1dd),a150_0x405c1f(0x1d1)]),defaultWriter=_0x1cdd48=>{const _0x666e04=a150_0x405c1f;process['stderr'][_0x666e04(0x1db)](_0x1cdd48);};export function shouldNudgeForError(_0xb0c09d,_0x10fe3e){const _0x329a3a=a150_0x405c1f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x10fe3e[_0x329a3a(0x1dc)]===_0x329a3a(0x1d5)&&_0x10fe3e[_0x329a3a(0x1d4)]===_0x329a3a(0x1d3))return![];if(_0xb0c09d instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x329a3a(0x1e8)](_0xb0c09d['code']);return!![];}export function printIssueReportNudgeForError(_0x47826e,_0x553867,_0x40c709=defaultWriter){if(!shouldNudgeForError(_0x47826e,_0x553867))return;const _0x1b1b36=buildSuggestedTitle(_0x47826e,_0x553867);_0x40c709(formatNudge(_0x1b1b36));}function buildSuggestedTitle(_0x93dce6,_0x4642df){const _0x1c5dce=a150_0x405c1f,_0x1e64aa=_0x93dce6 instanceof Error?_0x93dce6[_0x1c5dce(0x1da)]:String(_0x93dce6),_0x2a7226=_0x1e64aa[_0x1c5dce(0x1e5)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1c5dce(0x1f0)]()[_0x1c5dce(0x1ea)](0x0,0x78)[_0x1c5dce(0x1e5)](/"/g,'\x5c\x22'),_0x5843fe=CLI_BIN_NAME+'\x20'+_0x4642df[_0x1c5dce(0x1dc)]+'\x20'+_0x4642df['command'];return _0x2a7226['length']>0x0?_0x5843fe+':\x20'+_0x2a7226:_0x5843fe;}function formatNudge(_0x4a7398){const _0x18cf97=a150_0x405c1f;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x18cf97(0x1e6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x18cf97(0x1d9)+_0x4a7398+_0x18cf97(0x1e7),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x18cf97(0x1e4)+NUDGE_OPT_OUT_ENV+_0x18cf97(0x1e2),''][_0x18cf97(0x1ec)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a151_0xe87353=a151_0x4f64;(function(_0x35d9ff,_0x597098){const _0x331740=a151_0x4f64,_0x39aaff=_0x35d9ff();while(!![]){try{const _0x1cdcdb=parseInt(_0x331740(0x193))/0x1*(parseInt(_0x331740(0x1b5))/0x2)+-parseInt(_0x331740(0x185))/0x3*(-parseInt(_0x331740(0x1c1))/0x4)+parseInt(_0x331740(0x1a5))/0x5+parseInt(_0x331740(0x194))/0x6*(parseInt(_0x331740(0x1c7))/0x7)+parseInt(_0x331740(0x19b))/0x8+-parseInt(_0x331740(0x1af))/0x9+-parseInt(_0x331740(0x19c))/0xa*(parseInt(_0x331740(0x1c0))/0xb);if(_0x1cdcdb===_0x597098)break;else _0x39aaff['push'](_0x39aaff['shift']());}catch(_0x458bdc){_0x39aaff['push'](_0x39aaff['shift']());}}}(a151_0x4030,0xb7633));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';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=a151_0xe87353(0x19f);function a151_0x4f64(_0x510bb2,_0x23c95e){_0x510bb2=_0x510bb2-0x184;const _0x4030f1=a151_0x4030();let _0x4f64f4=_0x4030f1[_0x510bb2];return _0x4f64f4;}export const issueReport={'service':a151_0xe87353(0x1c2),'command':a151_0xe87353(0x1ab),'description':a151_0xe87353(0x189),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0xe87353(0x1bc),'flags':[{'name':a151_0xe87353(0x196),'type':a151_0xe87353(0x19d),'required':!![],'description':a151_0xe87353(0x197)},{'name':a151_0xe87353(0x184),'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1b7)},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1a0)}],async 'validate'(_0x1d46b5){const _0x2cf2c8=a151_0xe87353,_0x47294a=_0x1d46b5['str']('title')[_0x2cf2c8(0x1bd)](),_0x345e91=_0x1d46b5[_0x2cf2c8(0x190)](_0x2cf2c8(0x184))[_0x2cf2c8(0x1bd)](),_0x5d5488=_0x1d46b5[_0x2cf2c8(0x190)](DESCRIPTION_FILE_FLAG)[_0x2cf2c8(0x1bd)]();if(!_0x47294a)throw CliErrors[_0x2cf2c8(0x195)](_0x2cf2c8(0x196),_0x2cf2c8(0x1a2));const _0x193359=_0x345e91[_0x2cf2c8(0x198)]>0x0,_0x3c9ccf=_0x5d5488[_0x2cf2c8(0x198)]>0x0;if(_0x193359===_0x3c9ccf)throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x18a),_0x2cf2c8(0x19e));if(_0x3c9ccf){const _0x54467c=resolve(process[_0x2cf2c8(0x18d)](),_0x5d5488);if(!existsSync(_0x54467c))throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x187)+_0x54467c);}},async 'dryRun'(_0x44bc0d){const _0xe3ce74=a151_0xe87353,_0x214966=await prepareIssueReport(_0x44bc0d);return{'method':_0xe3ce74(0x1ac),'url':_0xe3ce74(0x1bb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x214966[_0xe3ce74(0x196)],'issue.description':_0x214966[_0xe3ce74(0x184)],'issue.description_original_bytes':_0x214966['sanitize'][_0xe3ce74(0x18c)],'issue.description_truncated':_0x214966[_0xe3ce74(0x1c6)]['truncated'],'issue.description_redactions':_0x214966[_0xe3ce74(0x1c6)]['redactionCount'],'issue.description_redaction_kinds':_0x214966['sanitize']['redactionKinds'][_0xe3ce74(0x1ad)](',')}},'description':[_0xe3ce74(0x1bf),_0xe3ce74(0x1a7)+_0x214966['descriptionSource'],_0x214966[_0xe3ce74(0x1b1)]?_0xe3ce74(0x1ba)+_0x214966['descriptionFilePath']:null,_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x18e)]?_0xe3ce74(0x18b)+_0x214966[_0xe3ce74(0x1c6)]['originalBytes']+_0xe3ce74(0x192):null,_0x214966[_0xe3ce74(0x1c6)]['redactionCount']>0x0?_0xe3ce74(0x1b8)+_0x214966['sanitize'][_0xe3ce74(0x188)]+'\x20('+_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x1b2)][_0xe3ce74(0x1ad)](',\x20')+')':null][_0xe3ce74(0x1a4)](Boolean)[_0xe3ce74(0x1ad)]('\x0a')};},async 'execute'(_0x1e271d){const _0x287942=a151_0xe87353,_0x1e83c9=await prepareIssueReport(_0x1e271d);try{await sendPlatformIssueCollectLog({'title':_0x1e83c9['title'],'description':_0x1e83c9[_0x287942(0x184)],'sanitize':{'originalBytes':_0x1e83c9['sanitize'][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)]['truncated'],'redactionCount':_0x1e83c9['sanitize']['redactionCount'],'redactionKinds':_0x1e83c9['sanitize']['redactionKinds']}});}catch(_0x29d92d){throw CliErrors[_0x287942(0x1be)](_0x287942(0x191)+(_0x29d92d instanceof Error?_0x29d92d[_0x287942(0x1a3)]:String(_0x29d92d)),_0x287942(0x1b4));}return{'ok':!![],'message':buildResultMessage(_0x1e83c9[_0x287942(0x1c6)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x287942(0x1b6),_0x287942(0x1a8),'issue.description_original_bytes',_0x287942(0x1c4),_0x287942(0x1b9),_0x287942(0x1ae)],'issue':{'title':_0x1e83c9[_0x287942(0x196)],'descriptionLength':_0x1e83c9['description'][_0x287942(0x198)],'descriptionSource':_0x1e83c9[_0x287942(0x1b3)],..._0x1e83c9[_0x287942(0x1b1)]?{'descriptionFile':_0x1e83c9['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18e)],'redactions':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x188)],'redactionKinds':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x1b2)]}}}};}};function buildResultMessage(_0x1a7973){const _0x33ef6d=a151_0xe87353,_0x33355c=[];return _0x1a7973['truncated']&&_0x33355c[_0x33ef6d(0x1a6)](_0x33ef6d(0x1c3)+_0x1a7973[_0x33ef6d(0x18c)]+_0x33ef6d(0x192)),_0x1a7973[_0x33ef6d(0x188)]>0x0&&_0x33355c[_0x33ef6d(0x1a6)]('redacted\x20'+_0x1a7973['redactionCount']+_0x33ef6d(0x1a1)+_0x1a7973[_0x33ef6d(0x1b2)][_0x33ef6d(0x1ad)](',\x20')),_0x33355c[_0x33ef6d(0x198)]===0x0?_0x33ef6d(0x18f):'Platform\x20issue\x20reported\x20('+_0x33355c[_0x33ef6d(0x1ad)](';\x20')+')';}function a151_0x4030(){const _0x49a9e1=['File\x20not\x20found:\x20','redactionCount','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','truncated:\x20original\x20','originalBytes','cwd','truncated','Platform\x20issue\x20reported','str','Failed\x20to\x20report\x20platform\x20issue:\x20','\x20bytes','1oKBuhU','499866VXkGhv','flagMissing','title','One-line\x20issue\x20summary','length','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','file','596992hJdSxf','10GWuJlA','string','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','description-file','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20secret(s):\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','message','filter','314465povbyN','push','descriptionSource:\x20','issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','validation','report','POST','join','issue.description_redaction_kinds','3574998fFSPiS','utf8','descriptionFilePath','redactionKinds','descriptionSource','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2782142WIAUqq','issue.title','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','redactions:\x20','issue.description_redactions','descriptionFile:\x20','otel://','compress','trim','apiError','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','5533957UKCobh','820DWhMmK','issue','truncated\x20from\x20','issue.description_truncated','Issue\x20description\x20cannot\x20be\x20empty.','sanitize','7IicZeH','description','579LLDAef','inline'];a151_0x4030=function(){return _0x49a9e1;};return a151_0x4030();}async function prepareIssueReport(_0x7c3273){const _0x2106b5=a151_0xe87353,_0x31c10d=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x196))[_0x2106b5(0x1bd)](),_0x18989f=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x184)),_0x497b96=_0x7c3273[_0x2106b5(0x190)](DESCRIPTION_FILE_FLAG)[_0x2106b5(0x1bd)]();if(!_0x497b96){const _0x525ef6=_0x18989f;if(!_0x525ef6['trim']())throw CliErrors[_0x2106b5(0x1aa)](_0x2106b5(0x1c5),_0x2106b5(0x1a9));const _0x12b683=sanitizeIssueDescription(_0x525ef6);return{'title':_0x31c10d,'description':_0x12b683[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x186),'sanitize':_0x12b683};}const _0xe93040=resolve(process['cwd'](),_0x497b96),_0x2924a7=await readFile(_0xe93040,_0x2106b5(0x1b0));if(!_0x2924a7['trim']())throw CliErrors[_0x2106b5(0x1aa)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe93040,_0x2106b5(0x199));const _0x13bee6=sanitizeIssueDescription(_0x2924a7);return{'title':_0x31c10d,'description':_0x13bee6[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x19a),'descriptionFilePath':_0xe93040,'sanitize':_0x13bee6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x1915(_0x1724f7,_0x32aee4){_0x1724f7=_0x1724f7-0x1bd;const _0x189774=a152_0x1897();let _0x191510=_0x189774[_0x1724f7];return _0x191510;}const a152_0x294509=a152_0x1915;(function(_0x4dbfed,_0x3dd0d6){const _0x37d0cf=a152_0x1915,_0x5f1ebf=_0x4dbfed();while(!![]){try{const _0x1a4063=-parseInt(_0x37d0cf(0x1cd))/0x1+-parseInt(_0x37d0cf(0x1da))/0x2+parseInt(_0x37d0cf(0x1dd))/0x3+parseInt(_0x37d0cf(0x1c1))/0x4*(-parseInt(_0x37d0cf(0x1d3))/0x5)+-parseInt(_0x37d0cf(0x1bd))/0x6+-parseInt(_0x37d0cf(0x1d0))/0x7*(-parseInt(_0x37d0cf(0x1df))/0x8)+-parseInt(_0x37d0cf(0x1d6))/0x9*(-parseInt(_0x37d0cf(0x1d8))/0xa);if(_0x1a4063===_0x3dd0d6)break;else _0x5f1ebf['push'](_0x5f1ebf['shift']());}catch(_0x418000){_0x5f1ebf['push'](_0x5f1ebf['shift']());}}}(a152_0x1897,0x56ac4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a152_0x294509(0x1d1),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a152_0x294509(0x1cc),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x294509(0x1ca)},{'kind':a152_0x294509(0x1d5),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x294509(0x1c5)},{'kind':a152_0x294509(0x1c7),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x294509(0x1c6)},{'kind':a152_0x294509(0x1db),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x294509(0x1c9)},{'kind':a152_0x294509(0x1c4),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x3b9d2f){const _0xb7d8c0=a152_0x294509,_0x2e621e=Buffer[_0xb7d8c0(0x1cb)](_0x3b9d2f,_0xb7d8c0(0x1cf)),_0x413875=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3aa1e5=_0x3b9d2f,_0x203ca5=0x0;const _0x1170f7=[];if(!_0x413875){const _0x5f59c8=protectOssAccessKeyIds(_0x3aa1e5);_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1d7)];for(const _0x38f484 of REDACTION_RULES){let _0x532e11=0x0;_0x3aa1e5=_0x3aa1e5[_0xb7d8c0(0x1c0)](_0x38f484['pattern'],(_0xf2aacb,_0x43da58)=>{const _0x232751=_0xb7d8c0;_0x532e11+=0x1;const _0x282da9=typeof _0x43da58===_0x232751(0x1de)?_0x43da58:'';return _0x282da9+'['+_0x38f484['label']+']';}),_0x532e11>0x0&&(_0x203ca5+=_0x532e11,!_0x1170f7[_0xb7d8c0(0x1dc)](_0x38f484[_0xb7d8c0(0x1d4)])&&_0x1170f7['push'](_0x38f484[_0xb7d8c0(0x1d4)]));}_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1c8)](_0x3aa1e5);}let _0x41b6ef=![];if(Buffer[_0xb7d8c0(0x1cb)](_0x3aa1e5,_0xb7d8c0(0x1cf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x41b6ef=!![];const _0x389924=Buffer[_0xb7d8c0(0x1cb)](TRUNCATION_NOTICE,_0xb7d8c0(0x1cf)),_0x345d82=Math[_0xb7d8c0(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x389924);_0x3aa1e5=sliceUtf8Bytes(_0x3aa1e5,_0x345d82)+TRUNCATION_NOTICE;}return{'description':_0x3aa1e5,'originalBytes':_0x2e621e,'truncated':_0x41b6ef,'redactionCount':_0x203ca5,'redactionKinds':_0x1170f7};}function protectOssAccessKeyIds(_0x3efdc0){const _0x1d7ef0=a152_0x294509,_0x5f0d47=[],_0x3dfbeb=_0x3efdc0[_0x1d7ef0(0x1c0)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xb52c8b,_0x398210)=>{const _0x431c4a=_0x1d7ef0,_0x229e9d=_0x5f0d47[_0x431c4a(0x1c2)](_0xb52c8b[_0x431c4a(0x1be)](_0x398210[_0x431c4a(0x1d9)]))-0x1;return _0x398210+'__RB_OSS_ID_'+_0x229e9d+'__';});return{'description':_0x3dfbeb,'restore':_0x5ec6c0=>_0x5ec6c0['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2cacf7,_0x1953b0,_0x2db1de)=>{const _0x4b7ebf=_0x5f0d47[Number(_0x2db1de)];return _0x4b7ebf===undefined?_0x2cacf7:''+_0x1953b0+_0x4b7ebf;})};}function a152_0x1897(){const _0x1c9204=['utf8','1274SAxRCC','cookie','max','5YCikwq','kind','private-key','9mxRQsx','description','8013650cCDyqi','length','147628AQRdeR','password','includes','2012409sjzPzl','string','11024CCjedQ','2605650kGwrKp','slice','toString','replace','2447052YQuZVl','push','subarray','bearer-jwt','REDACTED:private-key','REDACTED:access-key','access-key','restore','REDACTED:password','REDACTED:authorization','byteLength','authorization','248100bDnQZI','from'];a152_0x1897=function(){return _0x1c9204;};return a152_0x1897();}function sliceUtf8Bytes(_0x951241,_0x54de22){const _0x5ba50b=a152_0x294509;if(_0x54de22<=0x0)return'';const _0x1ddccc=Buffer[_0x5ba50b(0x1ce)](_0x951241,_0x5ba50b(0x1cf));if(_0x1ddccc['byteLength']<=_0x54de22)return _0x951241;let _0x428cac=_0x54de22;while(_0x428cac>0x0){const _0x18d73f=_0x1ddccc[_0x428cac];if(_0x18d73f===undefined||(_0x18d73f&0xc0)!==0x80)break;_0x428cac-=0x1;}return _0x1ddccc[_0x5ba50b(0x1c3)](0x0,_0x428cac)[_0x5ba50b(0x1bf)](_0x5ba50b(0x1cf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x336365=a153_0x10a1;(function(_0x3a3fed,_0x312df5){const _0x2f8648=a153_0x10a1,_0x5d81ea=_0x3a3fed();while(!![]){try{const _0x43f475=-parseInt(_0x2f8648(0x16c))/0x1+-parseInt(_0x2f8648(0x17a))/0x2*(-parseInt(_0x2f8648(0x14f))/0x3)+parseInt(_0x2f8648(0x167))/0x4+-parseInt(_0x2f8648(0x152))/0x5*(parseInt(_0x2f8648(0x15d))/0x6)+parseInt(_0x2f8648(0x15b))/0x7*(-parseInt(_0x2f8648(0x158))/0x8)+-parseInt(_0x2f8648(0x171))/0x9*(parseInt(_0x2f8648(0x15c))/0xa)+parseInt(_0x2f8648(0x15a))/0xb;if(_0x43f475===_0x312df5)break;else _0x5d81ea['push'](_0x5d81ea['shift']());}catch(_0x55b190){_0x5d81ea['push'](_0x5d81ea['shift']());}}}(a153_0x1e0c,0x3b20a));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=a153_0x336365(0x169);function readCreateInput(_0x5cd9b6){const _0x526ed5=a153_0x336365,_0x53cc39=_0x5cd9b6['str'](_0x526ed5(0x174))[_0x526ed5(0x177)]();if(!_0x53cc39)throw kbError('kb_title_required',_0x526ed5(0x175));const _0x3e32c6=_0x5cd9b6[_0x526ed5(0x170)](_0x526ed5(0x166))[_0x526ed5(0x177)]();if(!_0x3e32c6)throw kbError('kb_file_required',_0x526ed5(0x159),_0x526ed5(0x17d));return{'title':_0x53cc39,'file':_0x3e32c6};}async function prepareCreate(_0x2efda2){const _0xe9da2e=a153_0x336365,_0x7b814c=readCreateInput(_0x2efda2),_0x1bd154=await readKbFile(_0x7b814c[_0xe9da2e(0x166)]),_0xb12c04=await fetchAllCompanyKnowledgeBases(_0x2efda2,{'title':_0x7b814c['title']}),_0x57cc5d=findExactCompanyKnowledgeBases(_0xb12c04,_0x2efda2[_0xe9da2e(0x153)],_0x7b814c[_0xe9da2e(0x174)]);if(_0x57cc5d[_0xe9da2e(0x161)]>0x0)throw kbError(_0xe9da2e(0x172),_0xe9da2e(0x16b)+_0x2efda2[_0xe9da2e(0x153)]+_0xe9da2e(0x17e)+_0x7b814c['title']+'.',_0xe9da2e(0x17f)+_0x57cc5d[0x0]['id']+_0xe9da2e(0x173));return{..._0x7b814c,'content':_0x1bd154};}function plannedAfter(_0x39a10c,_0x3f431e){const _0x14d76e=a153_0x336365;return{'scope':_0x14d76e(0x178),'appCode':_0x39a10c[_0x14d76e(0x153)],'title':_0x3f431e['title'],'contentByteSize':_0x3f431e[_0x14d76e(0x176)][_0x14d76e(0x162)],'contentHash':_0x3f431e['content'][_0x14d76e(0x17b)]};}function a153_0x1e0c(){const _0x4056c4=['string','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','461679LuZQoi','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Knowledge-base\x20title','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','str','180ofHqdP','kb_already_exists','\x20--format\x20compress`\x20before\x20choosing\x20update.','title','--title\x20is\x20required.','content','trim','company','kb_create_outcome_unknown','32jGjyJR','contentHash','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','\x20with\x20title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','72132IlgAaS','\x20for\x20','cookie','2032775greECJ','appCode','stringify','kb_verification_failed','Company\x20knowledge\x20base\x20','rabetbase\x20kb\x20detail\x20--id\x20','72eNIrDe','--file\x20is\x20required.','8075309pTsyks','249214LSwIZe','48830QTlGOs','6ozvjjM','rabetbase\x20kb\x20list\x20--title\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','POST','length','byteSize','write','\x20--format\x20compress','create','file','1638700mpdDXB','Created\x20company\x20knowledge\x20base\x20','/admin/knowledge-base/create'];a153_0x1e0c=function(){return _0x4056c4;};return a153_0x1e0c();}function verifyCreatedState(_0x5ad076,_0x336514,_0x3f000b){const _0x47477a=a153_0x336365;assertCompanyKnowledgeBase(_0x3f000b,_0x5ad076[_0x47477a(0x153)],_0x3f000b['id']);const _0x14c092=inspectKbContent(_0x3f000b[_0x47477a(0x176)]);if(_0x3f000b['title']!==_0x336514[_0x47477a(0x174)]||_0x14c092['contentHash']!==_0x336514[_0x47477a(0x176)][_0x47477a(0x17b)])throw kbError(_0x47477a(0x155),_0x47477a(0x156)+_0x3f000b['id']+_0x47477a(0x17c),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x3f000b['id']+_0x47477a(0x16d));return projectKb(_0x3f000b);}function a153_0x10a1(_0x2607f7,_0x2236a8){_0x2607f7=_0x2607f7-0x14f;const _0x1e0c4b=a153_0x1e0c();let _0x10a1f4=_0x1e0c4b[_0x2607f7];return _0x10a1f4;}export const kbCreate={'service':'kb','command':a153_0x336365(0x165),'description':a153_0x336365(0x16f),'risk':a153_0x336365(0x163),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x336365(0x174),'type':a153_0x336365(0x16a),'required':!![],'description':a153_0x336365(0x16e)},{'name':a153_0x336365(0x166),'type':a153_0x336365(0x16a),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x391036){readCreateInput(_0x391036);},async 'dryRun'(_0x2a7b7c){const _0x375ffb=a153_0x336365,_0x3878c6=await prepareCreate(_0x2a7b7c);return asDryRunResult({'operation':_0x375ffb(0x165),'selector':{'scope':_0x375ffb(0x178),'appCode':_0x2a7b7c[_0x375ffb(0x153)],'title':_0x3878c6[_0x375ffb(0x174)]},'before':null,'after':plannedAfter(_0x2a7b7c,_0x3878c6),'dryRun':!![],'backend':{'method':_0x375ffb(0x160),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x375ffb(0x15e)+JSON[_0x375ffb(0x154)](_0x3878c6[_0x375ffb(0x174)])+_0x375ffb(0x164)}},{'method':_0x375ffb(0x160),'url':CREATE_PATH});},async 'execute'(_0x3e1be2){const _0x2a2040=a153_0x336365,_0x577023=await prepareCreate(_0x3e1be2);let _0xa06d14,_0x211e0b=![];try{const _0x4fb9df=await createEnterpriseKnowledgeBase(_0x3e1be2[_0x2a2040(0x151)],{'appCode':_0x3e1be2['appCode'],'title':_0x577023[_0x2a2040(0x174)],'content':_0x577023[_0x2a2040(0x176)]['content']});assertCompanyKnowledgeBase(_0x4fb9df,_0x3e1be2[_0x2a2040(0x153)],_0x4fb9df['id']),_0xa06d14=_0x4fb9df['id'];}catch(_0x1fdf9b){if(!isPlatformTransportFailure(_0x1fdf9b))throw _0x1fdf9b;_0x211e0b=!![];}if(_0xa06d14===undefined){const _0x395d3d=await verifyKbMutationReadback(_0x2a2040(0x165),!![],()=>fetchAllCompanyKnowledgeBases(_0x3e1be2,{'title':_0x577023[_0x2a2040(0x174)]})),_0x230e4d=findExactCompanyKnowledgeBases(_0x395d3d,_0x3e1be2[_0x2a2040(0x153)],_0x577023[_0x2a2040(0x174)]);if(_0x230e4d[_0x2a2040(0x161)]!==0x1)throw kbError(_0x2a2040(0x179),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x230e4d[_0x2a2040(0x161)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0xa06d14=_0x230e4d[0x0]['id'];}const _0x12e7e6=await verifyKbMutationReadback(_0x2a2040(0x165),_0x211e0b,()=>requireKb(_0x3e1be2,_0xa06d14)),_0x30c3f8=verifyCreatedState(_0x3e1be2,_0x577023,_0x12e7e6),_0x4dcc11=_0x211e0b?[_0x2a2040(0x15f)]:[];return{'ok':!![],'data':{'operation':_0x2a2040(0x165),'selector':{'id':_0x30c3f8['id'],'scope':_0x2a2040(0x178),'appCode':_0x30c3f8['appCode']},'before':null,'after':_0x30c3f8,'dryRun':![],'backend':{'method':_0x2a2040(0x160),'path':CREATE_PATH},'warnings':_0x4dcc11,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x211e0b,'lookupCommand':_0x2a2040(0x157)+_0x30c3f8['id']+_0x2a2040(0x164)}},'message':_0x2a2040(0x168)+_0x30c3f8['id']+_0x2a2040(0x150)+_0x30c3f8[_0x2a2040(0x153)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x455499=a154_0x34f9;(function(_0x272bcd,_0x1b6538){const _0x1f7ea0=a154_0x34f9,_0x579f30=_0x272bcd();while(!![]){try{const _0x3603ed=-parseInt(_0x1f7ea0(0x81))/0x1+parseInt(_0x1f7ea0(0x86))/0x2*(parseInt(_0x1f7ea0(0x8f))/0x3)+parseInt(_0x1f7ea0(0x89))/0x4*(-parseInt(_0x1f7ea0(0x6e))/0x5)+parseInt(_0x1f7ea0(0x8e))/0x6+-parseInt(_0x1f7ea0(0x90))/0x7*(parseInt(_0x1f7ea0(0x83))/0x8)+parseInt(_0x1f7ea0(0x8d))/0x9*(-parseInt(_0x1f7ea0(0x75))/0xa)+parseInt(_0x1f7ea0(0x82))/0xb;if(_0x3603ed===_0x1b6538)break;else _0x579f30['push'](_0x579f30['shift']());}catch(_0x286ba5){_0x579f30['push'](_0x579f30['shift']());}}}(a154_0x1543,0x18dbd));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=a154_0x455499(0x84),RAG_WARNING=a154_0x455499(0x7c),NON_ATOMIC_WARNING=a154_0x455499(0x6d);function readExpectedVersion(_0xbf2653){const _0x2bb119=a154_0x455499,_0x11a1ae=_0xbf2653['flag']('expected-version');if(_0x11a1ae===undefined)return undefined;const _0x5243ad=Number(_0x11a1ae);if(!Number['isSafeInteger'](_0x5243ad)||_0x5243ad<0x0)throw kbError(_0x2bb119(0x7b),_0x2bb119(0x71));return _0x5243ad;}function a154_0x1543(){const _0x56e495=['95518tgoVwo','4220711FnQGlE','835288tnQdeQ','/admin/knowledge-base/delete','verified','170878XEWkXU','Soft-deleted\x20company\x20knowledge\x20base\x20','Company\x20knowledge\x20base\x20','690328oBckfr','cookie','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','delete','17613IKnbKn','669234BTfBlP','6lyitID','7XuPLFI','snapshotHash','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','5xhkOHw','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','POST','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','\x20remains\x20readable\x20after\x20delete.','company','already_absent','980wcFDrM','unshift','kb_verification_failed','number','\x20--format\x20compress','expected-version','kb_expected_version_invalid','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','kb_delete_outcome_unknown','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','rabetbase\x20kb\x20detail\x20--id\x20','appCode'];a154_0x1543=function(){return _0x56e495;};return a154_0x1543();}function a154_0x34f9(_0x22cc3e,_0x4561a3){_0x22cc3e=_0x22cc3e-0x6c;const _0x154399=a154_0x1543();let _0x34f9c0=_0x154399[_0x22cc3e];return _0x34f9c0;}function noOpData(_0x39f035,_0x5b0ca3,_0x383f04){const _0x508771=a154_0x455499;return{'operation':'no_op','selector':{'id':_0x5b0ca3,'scope':_0x508771(0x73),'appCode':_0x39f035[_0x508771(0x80)]},'before':null,'after':null,'dryRun':_0x383f04,'deleteCalled':![],'backend':{'method':_0x508771(0x70),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x508771(0x74),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a154_0x455499(0x8c),'description':a154_0x455499(0x7e),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a154_0x455499(0x78),'required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':a154_0x455499(0x7a),'type':a154_0x455499(0x78),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x46b61d){readKbId(_0x46b61d),readExpectedVersion(_0x46b61d),requireKbExplicitYes(_0x46b61d);},async 'dryRun'(_0xb05f24){const _0x1b2da8=a154_0x455499,_0x118709=readKbId(_0xb05f24),_0xd9fa1e=readExpectedVersion(_0xb05f24),_0x5824a6=await getKbOrNull(_0xb05f24,_0x118709);if(!_0x5824a6)return asDryRunResult(noOpData(_0xb05f24,_0x118709,!![]),{'method':_0x1b2da8(0x70),'url':DELETE_PATH});assertExpectedKbVersion(_0x5824a6,_0xd9fa1e);const _0x423a75=projectKb(_0x5824a6),_0x5394b6=[RAG_WARNING];if(_0xd9fa1e!==undefined)_0x5394b6[_0x1b2da8(0x76)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x1b2da8(0x8c),'selector':{'id':_0x423a75['id'],'scope':_0x1b2da8(0x73),'appCode':_0x423a75[_0x1b2da8(0x80)]},'before':_0x423a75,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x1b2da8(0x70),'path':DELETE_PATH},'warnings':_0x5394b6,'verification':{'expectedVersion':_0xd9fa1e??null,'atomicCompareAndSet':![],'snapshotHash':_0x423a75[_0x1b2da8(0x91)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x1b2da8(0x7f)+_0x423a75['id']+'\x20--format\x20compress'}},{'method':_0x1b2da8(0x70),'url':DELETE_PATH});},async 'execute'(_0x8bf0c4){const _0x28bd23=a154_0x455499;requireKbExplicitYes(_0x8bf0c4);const _0x5ddd11=readKbId(_0x8bf0c4),_0x2d5f1f=readExpectedVersion(_0x8bf0c4),_0x1b192e=await getKbOrNull(_0x8bf0c4,_0x5ddd11);if(!_0x1b192e)return{'ok':!![],'data':noOpData(_0x8bf0c4,_0x5ddd11,![]),'message':_0x28bd23(0x88)+_0x5ddd11+_0x28bd23(0x8b)};assertExpectedKbVersion(_0x1b192e,_0x2d5f1f);const _0x23f71e=projectKb(_0x1b192e);let _0x3d5736=![];try{await deleteEnterpriseKnowledgeBase(_0x8bf0c4[_0x28bd23(0x8a)],_0x5ddd11);}catch(_0x39d1fd){if(!isPlatformTransportFailure(_0x39d1fd))throw _0x39d1fd;_0x3d5736=!![];}const _0x5556d1=await verifyKbMutationReadback('delete',_0x3d5736,()=>getKbOrNull(_0x8bf0c4,_0x5ddd11));if(_0x5556d1)throw kbError(_0x3d5736?_0x28bd23(0x7d):_0x28bd23(0x77),_0x28bd23(0x88)+_0x5ddd11+_0x28bd23(0x72),_0x28bd23(0x6f)+_0x5ddd11+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x1f6d69=[RAG_WARNING];if(_0x2d5f1f!==undefined)_0x1f6d69['unshift'](NON_ATOMIC_WARNING);return _0x3d5736&&_0x1f6d69[_0x28bd23(0x76)](_0x28bd23(0x6c)),{'ok':!![],'data':{'operation':_0x28bd23(0x8c),'selector':{'id':_0x23f71e['id'],'scope':'company','appCode':_0x23f71e[_0x28bd23(0x80)]},'before':_0x23f71e,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x28bd23(0x70),'path':DELETE_PATH},'warnings':_0x1f6d69,'verification':{'status':_0x28bd23(0x85),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x3d5736,'lookupCommand':_0x28bd23(0x7f)+_0x23f71e['id']+_0x28bd23(0x79)}},'message':_0x28bd23(0x87)+_0x23f71e['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a155_0x4aee38=a155_0x41df;function a155_0x3ef9(){const _0x323603=['9klVkVC','3099256gfWuoK','2144556OsOWZN','1468VAwfJP','191154zqBNky','515907nPEEbU','Company\x20knowledge-base\x20id','Loaded\x20company\x20knowledge\x20base\x20','content','12768170dibDfm','9uXjJhl','283312EtyBsj','read','4725TREvFC'];a155_0x3ef9=function(){return _0x323603;};return a155_0x3ef9();}function a155_0x41df(_0x6147ad,_0x15b5e5){_0x6147ad=_0x6147ad-0x139;const _0x3ef9a7=a155_0x3ef9();let _0x41df3d=_0x3ef9a7[_0x6147ad];return _0x41df3d;}(function(_0x83d851,_0x40240d){const _0x2e8961=a155_0x41df,_0x41696e=_0x83d851();while(!![]){try{const _0x27da0b=-parseInt(_0x2e8961(0x141))/0x1+parseInt(_0x2e8961(0x13a))/0x2*(-parseInt(_0x2e8961(0x144))/0x3)+parseInt(_0x2e8961(0x139))/0x4*(parseInt(_0x2e8961(0x143))/0x5)+-parseInt(_0x2e8961(0x146))/0x6+parseInt(_0x2e8961(0x13b))/0x7+-parseInt(_0x2e8961(0x145))/0x8*(parseInt(_0x2e8961(0x140))/0x9)+parseInt(_0x2e8961(0x13f))/0xa;if(_0x27da0b===_0x40240d)break;else _0x41696e['push'](_0x41696e['shift']());}catch(_0x5afc3c){_0x41696e['push'](_0x41696e['shift']());}}}(a155_0x3ef9,0x5d5f9));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':'detail','description':'Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','risk':a155_0x4aee38(0x142),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a155_0x4aee38(0x13c)}],async 'validate'(_0x1fa1a9){readKbId(_0x1fa1a9);},async 'execute'(_0x1888cc){const _0x419bfe=a155_0x4aee38,_0x4cb33e=readKbId(_0x1888cc),_0x249ac4=await requireKb(_0x1888cc,_0x4cb33e);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x249ac4),'content':_0x249ac4[_0x419bfe(0x13e)]}},'message':_0x419bfe(0x13d)+_0x4cb33e};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x354842,_0x1f3e7e){const _0x34798f=a156_0x118c,_0x248bc3=_0x354842();while(!![]){try{const _0x3c5460=parseInt(_0x34798f(0x197))/0x1+-parseInt(_0x34798f(0x19b))/0x2*(-parseInt(_0x34798f(0x19a))/0x3)+parseInt(_0x34798f(0x19f))/0x4*(-parseInt(_0x34798f(0x1a0))/0x5)+parseInt(_0x34798f(0x19d))/0x6*(parseInt(_0x34798f(0x199))/0x7)+parseInt(_0x34798f(0x19e))/0x8+parseInt(_0x34798f(0x198))/0x9+-parseInt(_0x34798f(0x19c))/0xa*(parseInt(_0x34798f(0x196))/0xb);if(_0x3c5460===_0x1f3e7e)break;else _0x248bc3['push'](_0x248bc3['shift']());}catch(_0x4c421e){_0x248bc3['push'](_0x248bc3['shift']());}}}(a156_0x529a,0xa4b40));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a156_0x118c(_0x575585,_0x18fd1d){_0x575585=_0x575585-0x196;const _0x529a5a=a156_0x529a();let _0x118c6a=_0x529a5a[_0x575585];return _0x118c6a;}import{kbDelete}from'../../commands/kb/delete.js';function a156_0x529a(){const _0x111b68=['874959jGlTes','8302212oqjHKJ','358267NHtTBK','75198NHUPVn','34IYCZFP','34108820rAUejx','72VzKKbd','10052728MjZTQE','136gNULTl','1295qsewgB','11HRkezl'];a156_0x529a=function(){return _0x111b68;};return a156_0x529a();}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a157_0x358a55=a157_0x1dc5;function a157_0x5af6(){const _0x3128ea=['25aZNWli','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','40srkkOT','Found\x20','1650737kQxndH','21KZIQFt','98960LrqpmX','map','178868zbsukR','263557OLrkJd','1288PzYPFA','\x20company\x20knowledge\x20base(s)\x20for\x20','trim','string','13979rLnoVV','length','title','1939608pDPIay','1973724YMNYeG','str','list'];a157_0x5af6=function(){return _0x3128ea;};return a157_0x5af6();}(function(_0x5c08ee,_0x4d461c){const _0x52ba96=a157_0x1dc5,_0x2fda4d=_0x5c08ee();while(!![]){try{const _0x419c9e=parseInt(_0x52ba96(0x15a))/0x1+-parseInt(_0x52ba96(0x16c))/0x2*(-parseInt(_0x52ba96(0x16b))/0x3)+-parseInt(_0x52ba96(0x159))/0x4*(parseInt(_0x52ba96(0x166))/0x5)+parseInt(_0x52ba96(0x163))/0x6+-parseInt(_0x52ba96(0x15f))/0x7*(-parseInt(_0x52ba96(0x15b))/0x8)+-parseInt(_0x52ba96(0x162))/0x9+parseInt(_0x52ba96(0x168))/0xa*(-parseInt(_0x52ba96(0x16a))/0xb);if(_0x419c9e===_0x4d461c)break;else _0x2fda4d['push'](_0x2fda4d['shift']());}catch(_0x223bf7){_0x2fda4d['push'](_0x2fda4d['shift']());}}}(a157_0x5af6,0x35f5f));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';function a157_0x1dc5(_0x314b68,_0x2eea12){_0x314b68=_0x314b68-0x159;const _0x5af6c0=a157_0x5af6();let _0x1dc569=_0x5af6c0[_0x314b68];return _0x1dc569;}export const kbList={'service':'kb','command':a157_0x358a55(0x165),'description':a157_0x358a55(0x167),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0x358a55(0x161),'type':a157_0x358a55(0x15e),'required':![],'description':'Filter\x20by\x20knowledge-base\x20title'}],async 'execute'(_0x52414c){const _0x496b1c=a157_0x358a55,_0x1e56a2=_0x52414c[_0x496b1c(0x164)](_0x496b1c(0x161))[_0x496b1c(0x15d)](),_0x204b9a=await fetchAllCompanyKnowledgeBases(_0x52414c,{..._0x1e56a2?{'title':_0x1e56a2}:{}}),_0x31dee8=_0x204b9a[_0x496b1c(0x16d)](projectKb);return{'ok':!![],'data':{'total':_0x31dee8[_0x496b1c(0x160)],'knowledgeBases':_0x31dee8},'message':_0x496b1c(0x169)+_0x31dee8[_0x496b1c(0x160)]+_0x496b1c(0x15c)+_0x52414c['appCode']};}};
|