@lovrabet/rabetbase-cli 2.5.8-beta.2 → 2.5.8
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-management-client.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_0x30cf16=a142_0x22c2;function a142_0x22c2(_0x331595,_0x1cfc25){_0x331595=_0x331595-0x1b7;const _0x4e713e=a142_0x4e71();let _0x22c2ef=_0x4e713e[_0x331595];return _0x22c2ef;}(function(_0x13e54a,_0x478959){const _0x559806=a142_0x22c2,_0x36576d=_0x13e54a();while(!![]){try{const _0x1d25bc=-parseInt(_0x559806(0x1ca))/0x1+parseInt(_0x559806(0x1b8))/0x2+parseInt(_0x559806(0x1db))/0x3*(-parseInt(_0x559806(0x1c7))/0x4)+-parseInt(_0x559806(0x1c4))/0x5+parseInt(_0x559806(0x1bc))/0x6+parseInt(_0x559806(0x1b9))/0x7*(parseInt(_0x559806(0x1ce))/0x8)+-parseInt(_0x559806(0x1da))/0x9*(parseInt(_0x559806(0x1d8))/0xa);if(_0x1d25bc===_0x478959)break;else _0x36576d['push'](_0x36576d['shift']());}catch(_0x48d2cf){_0x36576d['push'](_0x36576d['shift']());}}}(a142_0x4e71,0x72403));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';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';function a142_0x4e71(){const _0x465819=['planned','16yGRAjQ','revision','expectedRevision','637966HBDaVc','all','`;\x20do\x20not\x20resubmit\x20automatically.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','6037064COqBQZ','Inspect\x20with\x20`','instant-api-policy','instant_api_policy_publish_outcome_unknown','high-risk-write','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','push','publish','configHash','20jYSKTa','appCode','3054294qUDNaI','297669WqDDcB','config','/publish','policyFilePath','instant_api_policy_publish_verification_failed','1623928lMSNsj','7OksuIX','local','verified','4476504nFzLmq','changeSummary','defineProperty','Published\x20Instant\x20API\x20policy\x20revision\x20','cause','before','normalizedConfig','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','655600LFbXnv','policyRelativePath'];a142_0x4e71=function(){return _0x465819;};return a142_0x4e71();}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x39bd7c){const _0x5998c6=a142_0x22c2,{local:_0x49f801,config:_0xbb2279}=await readFixedPolicy(_0x39bd7c),_0x3e8353=readChangeSummary(_0x39bd7c),_0x3b30e2=readExpectedRevision(_0x39bd7c),[_0xbb4c58,_0x3998df]=await Promise[_0x5998c6(0x1cb)]([getCurrentInstantApiPolicy(_0x39bd7c[_0x5998c6(0x1d9)]),validateInstantApiPolicy({'appCode':_0x39bd7c[_0x5998c6(0x1d9)],'config':_0xbb2279})]);return assertExpectedRevision(_0xbb4c58,_0x3b30e2),{'local':_0x49f801,'config':_0xbb2279,'changeSummary':_0x3e8353,'expectedRevision':_0x3b30e2,'before':_0xbb4c58,'validation':_0x3998df};}export const instantApiPolicyPublish={'service':a142_0x30cf16(0x1d0),'command':'publish','description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a142_0x30cf16(0x1d2),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0x30cf16(0x1d3),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x240605){readChangeSummary(_0x240605),readExpectedRevision(_0x240605);},async 'dryRun'(_0x4a5f66){const _0x5054b0=a142_0x30cf16,_0x31b265=await preparePublish(_0x4a5f66);return asDryRunResult({'operation':_0x5054b0(0x1d6),'selector':{'appCode':_0x4a5f66[_0x5054b0(0x1d9)]},'before':projectCurrentPolicy(_0x31b265[_0x5054b0(0x1c1)]),'after':{'revision':_0x31b265[_0x5054b0(0x1c1)]?_0x31b265[_0x5054b0(0x1c1)][_0x5054b0(0x1c8)]+0x1:0x1,'configHash':_0x31b265['validation']['configHash'],'config':_0x31b265['validation'][_0x5054b0(0x1c2)]},'filePath':_0x31b265['local'][_0x5054b0(0x1de)],'relativePath':_0x31b265[_0x5054b0(0x1ba)]['policyRelativePath'],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x5054b0(0x1dd)},'warnings':expectedRevisionWarnings(_0x31b265[_0x5054b0(0x1c9)]),'verification':{'status':_0x5054b0(0x1c6),'expectedRevision':_0x31b265['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x5054b0(0x1dd)});},async 'execute'(_0x5f2c26){const _0x449ef8=a142_0x30cf16,_0x295082=await preparePublish(_0x5f2c26);let _0x5ab3ab=![];try{await publishInstantApiPolicy({'appCode':_0x5f2c26['appCode'],'config':_0x295082[_0x449ef8(0x1dc)],..._0x295082[_0x449ef8(0x1bd)]?{'changeSummary':_0x295082['changeSummary']}:{}});}catch(_0x3bfbb7){if(!isPlatformTransportFailure(_0x3bfbb7))throw _0x3bfbb7;_0x5ab3ab=!![];}let _0x4e556d;try{_0x4e556d=await getCurrentInstantApiPolicy(_0x5f2c26[_0x449ef8(0x1d9)]);}catch(_0x9e4404){const _0x8243e=instantApiPolicyError(_0x5ab3ab?_0x449ef8(0x1d1):'instant_api_policy_publish_verification_unavailable',_0x449ef8(0x1d4),_0x449ef8(0x1cf)+mutationLookupCommand()+_0x449ef8(0x1cc));Object[_0x449ef8(0x1be)](_0x8243e,_0x449ef8(0x1c0),{'value':_0x9e4404,'enumerable':![]});throw _0x8243e;}const _0x2af10d=_0x4e556d&&(_0x295082['before']===null||_0x4e556d[_0x449ef8(0x1c8)]>_0x295082[_0x449ef8(0x1c1)][_0x449ef8(0x1c8)]),_0x4fb4a8=_0x4e556d?.[_0x449ef8(0x1d7)]===_0x295082['validation'][_0x449ef8(0x1d7)];if(!_0x4e556d||!_0x2af10d||!_0x4fb4a8)throw instantApiPolicyError(_0x5ab3ab?'instant_api_policy_publish_outcome_unknown':_0x449ef8(0x1b7),_0x449ef8(0x1cd),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x449ef8(0x1cc));const _0x2e15fb=[...expectedRevisionWarnings(_0x295082[_0x449ef8(0x1c9)]),RUNTIME_CACHE_WARNING];return _0x5ab3ab&&_0x2e15fb[_0x449ef8(0x1d5)](_0x449ef8(0x1c3)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x5f2c26[_0x449ef8(0x1d9)]},'before':projectCurrentPolicy(_0x295082[_0x449ef8(0x1c1)]),'after':projectCurrentPolicy(_0x4e556d),'filePath':_0x295082[_0x449ef8(0x1ba)][_0x449ef8(0x1de)],'relativePath':_0x295082[_0x449ef8(0x1ba)][_0x449ef8(0x1c5)],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x2e15fb,'verification':{'status':_0x449ef8(0x1bb),'recoveredAfterUnknownResponse':_0x5ab3ab,'expectedRevision':_0x295082[_0x449ef8(0x1c9)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x449ef8(0x1bf)+_0x4e556d['revision']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a143_0x444d(_0xa9d693,_0x7e9fd0){_0xa9d693=_0xa9d693-0xd0;const _0x43fbd6=a143_0x43fb();let _0x444d2d=_0x43fbd6[_0xa9d693];return _0x444d2d;}function a143_0x43fb(){const _0x3fcf9b=['bool','Pulled','Kept','\x20Instant\x20API\x20policy\x20revision\x20','unchanged','2606IHLfAU','instant-api-policy','action','849280snluLe','10756377MNKMiw','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','9457144LbKTcP','99430CMHlyJ','8wmYzQv','appCode','7NSFTRB','1088356FjasNT','revision','policyRelativePath','pull','force','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','3322680bVNurQ','2805rNGPKp','config','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','write','1377YDjeSv'];a143_0x43fb=function(){return _0x3fcf9b;};return a143_0x43fb();}const a143_0x29fce9=a143_0x444d;(function(_0x1cca3a,_0xaab2ec){const _0x435dad=a143_0x444d,_0x40293b=_0x1cca3a();while(!![]){try{const _0x4be665=-parseInt(_0x435dad(0xe7))/0x1+-parseInt(_0x435dad(0xdc))/0x2*(parseInt(_0x435dad(0xd6))/0x3)+parseInt(_0x435dad(0xe4))/0x4*(parseInt(_0x435dad(0xdf))/0x5)+-parseInt(_0x435dad(0xd1))/0x6+-parseInt(_0x435dad(0xe6))/0x7*(parseInt(_0x435dad(0xe2))/0x8)+parseInt(_0x435dad(0xe0))/0x9+parseInt(_0x435dad(0xe3))/0xa*(parseInt(_0x435dad(0xd2))/0xb);if(_0x4be665===_0xaab2ec)break;else _0x40293b['push'](_0x40293b['shift']());}catch(_0xf933aa){_0x40293b['push'](_0x40293b['shift']());}}}(a143_0x43fb,0x9e326));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_0x29fce9(0xdd),'command':a143_0x29fce9(0xea),'description':a143_0x29fce9(0xe1),'risk':a143_0x29fce9(0xd5),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x5381f2){requireForceConfirmation(_0x5381f2);},async 'execute'(_0x170f88){const _0x27387a=a143_0x29fce9;requireForceConfirmation(_0x170f88);const _0xf32cfb=await getCurrentInstantApiPolicy(_0x170f88[_0x27387a(0xe5)]);if(!_0xf32cfb)throw instantApiPolicyError('instant_api_policy_not_configured',_0x27387a(0xd0)+_0x170f88[_0x27387a(0xe5)]+'.',_0x27387a(0xd4));const _0x127e05=loadInstantApiPolicyLocalConfig(_0x170f88['appCode']),_0x375bca=await writeInstantApiPolicyConfigFile(_0x127e05,_0xf32cfb[_0x27387a(0xd3)],{'force':_0x170f88[_0x27387a(0xd7)](_0x27387a(0xeb))});return{'ok':!![],'data':{'operation':_0x27387a(0xea),'selector':{'appCode':_0x170f88[_0x27387a(0xe5)],'revision':_0xf32cfb['revision']},'filePath':_0x127e05['policyFilePath'],'relativePath':_0x127e05[_0x27387a(0xe9)],'action':_0x375bca[_0x27387a(0xde)],'configHash':_0xf32cfb['configHash']},'message':(_0x375bca[_0x27387a(0xde)]===_0x27387a(0xdb)?_0x27387a(0xd9):_0x27387a(0xd8))+_0x27387a(0xda)+_0xf32cfb[_0x27387a(0xe8)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x9b5125=a144_0x2263;(function(_0x92ef45,_0x2fd0b2){const _0x1d1973=a144_0x2263,_0x7f3abe=_0x92ef45();while(!![]){try{const _0x292b49=parseInt(_0x1d1973(0x1ea))/0x1+-parseInt(_0x1d1973(0x1f0))/0x2*(parseInt(_0x1d1973(0x1ef))/0x3)+-parseInt(_0x1d1973(0x1f1))/0x4+-parseInt(_0x1d1973(0x1f2))/0x5+-parseInt(_0x1d1973(0x1ee))/0x6+parseInt(_0x1d1973(0x1f4))/0x7*(-parseInt(_0x1d1973(0x1ec))/0x8)+parseInt(_0x1d1973(0x1e9))/0x9*(parseInt(_0x1d1973(0x1eb))/0xa);if(_0x292b49===_0x2fd0b2)break;else _0x7f3abe['push'](_0x7f3abe['shift']());}catch(_0x3c60f7){_0x7f3abe['push'](_0x7f3abe['shift']());}}}(a144_0x2093,0x70f02));import{getInstantApiPolicyRevision}from'../../core/api-client.js';function a144_0x2263(_0x485fc4,_0x4e4f7e){_0x485fc4=_0x485fc4-0x1e8;const _0x209346=a144_0x2093();let _0x226313=_0x209346[_0x485fc4];return _0x226313;}import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x2093(){const _0x53e029=['9ctFoBD','222207PqYwvg','33310580SdLcEu','5947576QtJWHN','instant-api-policy','5475624GcWppH','30BXeKrj','176908KkpvlT','393904qJCcvV','2258020vgdOqZ','read','7QUIBgR','appCode'];a144_0x2093=function(){return _0x53e029;};return a144_0x2093();}export const instantApiPolicyRevision={'service':a144_0x9b5125(0x1ed),'command':'revision','description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0x9b5125(0x1f3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x12ae24){readRevision(_0x12ae24);},async 'execute'(_0x1659e7){const _0x10f464=a144_0x9b5125,_0x444db8=readRevision(_0x1659e7),_0x277dbc=await getInstantApiPolicyRevision(_0x1659e7[_0x10f464(0x1e8)],_0x444db8);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x277dbc)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x444db8};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x5dc7e9=a145_0x1598;function a145_0x1598(_0x317afc,_0x4283e9){_0x317afc=_0x317afc-0x1e6;const _0x3f393b=a145_0x3f39();let _0x1598b8=_0x3f393b[_0x317afc];return _0x1598b8;}function a145_0x3f39(){const _0x9b806c=['List\x20immutable\x20Instant\x20API\x20policy\x20revisions','map','instant-api-policy','5312kaAcXD','1742952RlifHU','422195sqnqRQ','7vhOoCr','1728ublnKS','28snILpV','Found\x20','revisions','2404002YrQazk','appCode','\x20Instant\x20API\x20policy\x20revision(s)','4326594rsBwQV','13265320WmiThw','654664gLPJZu','length','read'];a145_0x3f39=function(){return _0x9b806c;};return a145_0x3f39();}(function(_0x36e97e,_0x47d2b4){const _0x4ea30b=a145_0x1598,_0x476716=_0x36e97e();while(!![]){try{const _0x34d44e=parseInt(_0x4ea30b(0x1f5))/0x1+-parseInt(_0x4ea30b(0x1e9))/0x2+parseInt(_0x4ea30b(0x1f0))/0x3+-parseInt(_0x4ea30b(0x1ed))/0x4*(-parseInt(_0x4ea30b(0x1ea))/0x5)+parseInt(_0x4ea30b(0x1f3))/0x6*(parseInt(_0x4ea30b(0x1eb))/0x7)+-parseInt(_0x4ea30b(0x1e8))/0x8*(parseInt(_0x4ea30b(0x1ec))/0x9)+-parseInt(_0x4ea30b(0x1f4))/0xa;if(_0x34d44e===_0x47d2b4)break;else _0x476716['push'](_0x476716['shift']());}catch(_0x17a8ab){_0x476716['push'](_0x476716['shift']());}}}(a145_0x3f39,0x6c132));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x5dc7e9(0x1e7),'command':a145_0x5dc7e9(0x1ef),'description':a145_0x5dc7e9(0x1f8),'risk':a145_0x5dc7e9(0x1f7),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3029f3){const _0x56c076=a145_0x5dc7e9,_0x2f3c44=await listInstantApiPolicyRevisions(_0x3029f3[_0x56c076(0x1f1)]);return{'ok':!![],'data':{'appCode':_0x3029f3[_0x56c076(0x1f1)],'total':_0x2f3c44[_0x56c076(0x1f6)],'revisions':_0x2f3c44[_0x56c076(0x1e6)](projectRevisionSummary)},'message':_0x56c076(0x1ee)+_0x2f3c44[_0x56c076(0x1f6)]+_0x56c076(0x1f2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a146_0x162010=a146_0x17b1;(function(_0x5b6ccd,_0x2b8a0a){const _0x22309=a146_0x17b1,_0x3e93ae=_0x5b6ccd();while(!![]){try{const _0x4f6afb=-parseInt(_0x22309(0xfc))/0x1*(parseInt(_0x22309(0x10f))/0x2)+parseInt(_0x22309(0xff))/0x3*(parseInt(_0x22309(0x10b))/0x4)+-parseInt(_0x22309(0x112))/0x5+parseInt(_0x22309(0x100))/0x6*(-parseInt(_0x22309(0xf7))/0x7)+parseInt(_0x22309(0x109))/0x8*(parseInt(_0x22309(0xfb))/0x9)+-parseInt(_0x22309(0x103))/0xa+parseInt(_0x22309(0xf9))/0xb;if(_0x4f6afb===_0x2b8a0a)break;else _0x3e93ae['push'](_0x3e93ae['shift']());}catch(_0x52ee79){_0x3e93ae['push'](_0x3e93ae['shift']());}}}(a146_0x2c07,0x86b5b));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a146_0x17b1(_0x15107c,_0x1cbcdd){_0x15107c=_0x15107c-0xf1;const _0x2c0771=a146_0x2c07();let _0x17b1bd=_0x2c0771[_0x15107c];return _0x17b1bd;}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(_0x482214){const _0x629b4c=a146_0x17b1,_0x5e53aa=readRevision(_0x482214),_0x4743ea=readChangeSummary(_0x482214),_0x12e7e1=readExpectedRevision(_0x482214),[_0x554d4a,_0x3a109f]=await Promise[_0x629b4c(0x107)]([getCurrentInstantApiPolicy(_0x482214[_0x629b4c(0x118)]),getInstantApiPolicyRevision(_0x482214['appCode'],_0x5e53aa)]);if(!_0x554d4a)throw instantApiPolicyError(_0x629b4c(0x105),_0x629b4c(0xfd)+_0x482214[_0x629b4c(0x118)]+'.');return assertExpectedRevision(_0x554d4a,_0x12e7e1),{'revision':_0x5e53aa,'changeSummary':_0x4743ea,'expectedRevision':_0x12e7e1,'before':_0x554d4a,'target':_0x3a109f};}function a146_0x2c07(){const _0x195e01=['instant_api_policy_rollback_verification_unavailable','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','instant_api_policy_rollback_verification_failed','63jwxWLY','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','18194143VrZwAP','target','81qWjcCH','1841auNcpC','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','112656DByaDZ','238758iFAnkv','revision','/rollback','1760400rHmROS','Rolled\x20Instant\x20API\x20policy\x20revision\x20','instant_api_policy_not_configured','`;\x20do\x20not\x20resubmit\x20automatically.','all','high-risk-write','791704RcCsMa','Inspect\x20with\x20`','16PvaRnA','POST','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','configHash','614AaOxri','verified','instant-api-policy','5218765zWpbvN','before','cause','rollback','push','expectedRevision','appCode','changeSummary','instant_api_policy_rollback_outcome_unknown','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.'];a146_0x2c07=function(){return _0x195e01;};return a146_0x2c07();}export const instantApiPolicyRollback={'service':a146_0x162010(0x111),'command':a146_0x162010(0x115),'description':a146_0x162010(0xfe),'risk':a146_0x162010(0x108),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x162010(0x10d),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x579e3b){readRevision(_0x579e3b),readChangeSummary(_0x579e3b),readExpectedRevision(_0x579e3b);},async 'dryRun'(_0x386b0a){const _0x1efa04=a146_0x162010,_0x4632bb=await prepareRollback(_0x386b0a);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x386b0a[_0x1efa04(0x118)],'sourceRevision':_0x4632bb[_0x1efa04(0x101)]},'before':projectCurrentPolicy(_0x4632bb['before']),'after':{'revision':_0x4632bb[_0x1efa04(0x113)][_0x1efa04(0x101)]+0x1,'sourceRevision':projectRevisionDetail(_0x4632bb[_0x1efa04(0xfa)])},'dryRun':!![],'backend':{'method':_0x1efa04(0x10c),'path':INSTANT_API_POLICY_BASE_PATH+_0x1efa04(0x102)},'warnings':expectedRevisionWarnings(_0x4632bb[_0x1efa04(0x117)]),'verification':{'status':'planned','expectedRevision':_0x4632bb[_0x1efa04(0x117)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x1efa04(0x10c),'url':INSTANT_API_POLICY_BASE_PATH+_0x1efa04(0x102)});},async 'execute'(_0x132c73){const _0x35eab6=a146_0x162010,_0xe6d5b3=await prepareRollback(_0x132c73);let _0x1be591=![];try{await rollbackInstantApiPolicy({'appCode':_0x132c73[_0x35eab6(0x118)],'revision':_0xe6d5b3[_0x35eab6(0x101)],..._0xe6d5b3[_0x35eab6(0xf1)]?{'changeSummary':_0xe6d5b3['changeSummary']}:{}});}catch(_0x4d4dc9){if(!isPlatformTransportFailure(_0x4d4dc9))throw _0x4d4dc9;_0x1be591=!![];}let _0x2d83aa;try{_0x2d83aa=await getCurrentInstantApiPolicy(_0x132c73[_0x35eab6(0x118)]);}catch(_0x3f3877){const _0x8ffdf5=instantApiPolicyError(_0x1be591?_0x35eab6(0xf2):_0x35eab6(0xf4),_0x35eab6(0xf5),_0x35eab6(0x10a)+mutationLookupCommand()+_0x35eab6(0x106));Object['defineProperty'](_0x8ffdf5,_0x35eab6(0x114),{'value':_0x3f3877,'enumerable':![]});throw _0x8ffdf5;}const _0x40d3c7=_0x2d83aa&&_0x2d83aa[_0x35eab6(0x101)]>_0xe6d5b3['before'][_0x35eab6(0x101)],_0x150a87=_0x2d83aa?.[_0x35eab6(0x10e)]===_0xe6d5b3['target']['configHash'];if(!_0x2d83aa||!_0x40d3c7||!_0x150a87)throw instantApiPolicyError(_0x1be591?'instant_api_policy_rollback_outcome_unknown':_0x35eab6(0xf6),_0x35eab6(0xf3),_0x35eab6(0x10a)+mutationLookupCommand()+_0x35eab6(0x106));const _0x36e93a=[...expectedRevisionWarnings(_0xe6d5b3[_0x35eab6(0x117)]),RUNTIME_CACHE_WARNING];return _0x1be591&&_0x36e93a[_0x35eab6(0x116)](_0x35eab6(0xf8)),{'ok':!![],'data':{'operation':_0x35eab6(0x115),'selector':{'appCode':_0x132c73[_0x35eab6(0x118)],'sourceRevision':_0xe6d5b3[_0x35eab6(0x101)]},'before':projectCurrentPolicy(_0xe6d5b3[_0x35eab6(0x113)]),'after':projectCurrentPolicy(_0x2d83aa),'dryRun':![],'backend':{'method':_0x35eab6(0x10c),'path':INSTANT_API_POLICY_BASE_PATH+_0x35eab6(0x102)},'warnings':_0x36e93a,'verification':{'status':_0x35eab6(0x110),'recoveredAfterUnknownResponse':_0x1be591,'expectedRevision':_0xe6d5b3[_0x35eab6(0x117)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x35eab6(0x104)+_0xe6d5b3[_0x35eab6(0x101)]+'\x20forward\x20to\x20revision\x20'+_0x2d83aa[_0x35eab6(0x101)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x151cdd=a147_0x1efa;(function(_0x33a396,_0x3e2e4d){const _0x18c3ca=a147_0x1efa,_0x3d9aae=_0x33a396();while(!![]){try{const _0x338113=parseInt(_0x18c3ca(0x215))/0x1+parseInt(_0x18c3ca(0x20e))/0x2+parseInt(_0x18c3ca(0x210))/0x3+-parseInt(_0x18c3ca(0x21c))/0x4+parseInt(_0x18c3ca(0x207))/0x5+-parseInt(_0x18c3ca(0x1ec))/0x6+-parseInt(_0x18c3ca(0x201))/0x7;if(_0x338113===_0x3e2e4d)break;else _0x3d9aae['push'](_0x3d9aae['shift']());}catch(_0x338d9d){_0x3d9aae['push'](_0x3d9aae['shift']());}}}(a147_0x4b1d,0xbece6));function a147_0x4b1d(){const _0x3cb1e8=['--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','str','instant_api_policy_expected_revision_invalid',';\x20current\x20revision\x20is\x20','isSafeInteger','policyId','gmtModified','change-summary','length','instantApi','NaN','14544383KJivfw','revision','force','changeType','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','version','4199325qVEHzF','enabled','Expected\x20revision\x20','boolean','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','trim','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','2304408CYlIAm','appCode','3761601TkKLKF','instant_api_policy_force_confirmation_required','createUserId','yes','number','1019363bwaQeF','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','instant_api_policy_change_summary_invalid','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','operatorId','838936eFjdUJ','gmtCreate','/smartapi/instant-api-policy','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','num','instant_api_policy_revision_invalid','configHash','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','7177524PReSFE','config','rules','flag','defaults','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','changeSummary','expected-revision','string','bool'];a147_0x4b1d=function(){return _0x3cb1e8;};return a147_0x4b1d();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0x151cdd(0x21e);function a147_0x1efa(_0x124100,_0x9a8280){_0x124100=_0x124100-0x1e9;const _0x4b1d68=a147_0x4b1d();let _0x1efa2a=_0x4b1d68[_0x124100];return _0x1efa2a;}export const RUNTIME_CACHE_WARNING=a147_0x151cdd(0x1eb);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a147_0x151cdd(0x205);export const FORCE_FLAG={'name':a147_0x151cdd(0x203),'type':a147_0x151cdd(0x20a),'default':![],'description':a147_0x151cdd(0x217)};export const CHANGE_SUMMARY_FLAG={'name':a147_0x151cdd(0x1fd),'type':a147_0x151cdd(0x1f4),'required':![],'description':a147_0x151cdd(0x20d)};export const REVISION_FLAG={'name':a147_0x151cdd(0x202),'type':'number','required':!![],'description':'Positive\x20published\x20policy\x20revision'};export const EXPECTED_REVISION_FLAG={'name':a147_0x151cdd(0x1f3),'type':a147_0x151cdd(0x214),'required':![],'description':a147_0x151cdd(0x218)};export function requireForceConfirmation(_0x109221){const _0x430b56=a147_0x151cdd;if(!_0x109221[_0x430b56(0x1f5)](_0x430b56(0x203))||_0x109221[_0x430b56(0x1f5)](_0x430b56(0x213)))return;throw instantApiPolicyError(_0x430b56(0x211),_0x430b56(0x21f),_0x430b56(0x20b));}export function readChangeSummary(_0x3cae34){const _0x2b2a3a=a147_0x151cdd,_0x3cc56b=_0x3cae34[_0x2b2a3a(0x1f7)]('change-summary')[_0x2b2a3a(0x20c)]();if(!_0x3cc56b)return undefined;if(_0x3cc56b[_0x2b2a3a(0x1fe)]>0x7d0)throw instantApiPolicyError(_0x2b2a3a(0x219),'--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0x3cc56b;}export function readRevision(_0xb2365d){const _0x1d2c6d=a147_0x151cdd,_0x1ed486=_0xb2365d[_0x1d2c6d(0x220)](_0x1d2c6d(0x202),Number[_0x1d2c6d(0x200)]);if(!Number[_0x1d2c6d(0x1fa)](_0x1ed486)||_0x1ed486<=0x0)throw instantApiPolicyError(_0x1d2c6d(0x1e9),_0x1d2c6d(0x1f6));return _0x1ed486;}export function readExpectedRevision(_0x4baf25){const _0x61bb78=a147_0x151cdd;if(_0x4baf25[_0x61bb78(0x1ef)]('expected-revision')===undefined)return undefined;const _0x42365d=_0x4baf25[_0x61bb78(0x220)](_0x61bb78(0x1f3),Number['NaN']);if(!Number[_0x61bb78(0x1fa)](_0x42365d)||_0x42365d<0x0)throw instantApiPolicyError(_0x61bb78(0x1f8),_0x61bb78(0x1f1));return _0x42365d;}export function assertExpectedRevision(_0x596ac2,_0x213420){const _0x592372=a147_0x151cdd;if(_0x213420===undefined)return;const _0x20ef57=_0x596ac2?.[_0x592372(0x202)]??0x0;if(_0x20ef57!==_0x213420)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x592372(0x21a),_0x592372(0x209)+_0x213420+_0x592372(0x1f9)+_0x20ef57+'.\x20Run\x20current\x20and\x20review\x20before\x20retrying.');}export async function readFixedPolicy(_0x43b060){const _0x5efcf8=a147_0x151cdd,_0x552bd2=loadInstantApiPolicyLocalConfig(_0x43b060[_0x5efcf8(0x20f)]),_0x237968=await readInstantApiPolicyConfigFile(_0x552bd2);return{'local':_0x552bd2,'config':_0x237968};}export function projectCurrentPolicy(_0x59f348){const _0x2a2d26=a147_0x151cdd;if(!_0x59f348)return null;return{'id':_0x59f348['id'],'appCode':_0x59f348[_0x2a2d26(0x20f)],'revision':_0x59f348[_0x2a2d26(0x202)],'configHash':_0x59f348[_0x2a2d26(0x1ea)],'enabled':_0x59f348[_0x2a2d26(0x208)],'config':_0x59f348[_0x2a2d26(0x1ed)],'createUserId':_0x59f348[_0x2a2d26(0x212)]??null,'updateUserId':_0x59f348['updateUserId']??null,'gmtCreate':_0x59f348[_0x2a2d26(0x21d)]??null,'gmtModified':_0x59f348[_0x2a2d26(0x1fc)]??null};}export function projectRevisionSummary(_0x258e87){const _0x475e2b=a147_0x151cdd;return{'id':_0x258e87['id'],'policyId':_0x258e87[_0x475e2b(0x1fb)],'appCode':_0x258e87['appCode'],'revision':_0x258e87[_0x475e2b(0x202)],'configHash':_0x258e87[_0x475e2b(0x1ea)],'changeType':_0x258e87[_0x475e2b(0x204)],'changeSummary':_0x258e87[_0x475e2b(0x1f2)]??null,'operatorId':_0x258e87[_0x475e2b(0x21b)]??null,'gmtCreate':_0x258e87[_0x475e2b(0x21d)]??null,'version':_0x258e87[_0x475e2b(0x1ed)][_0x475e2b(0x206)],'defaultAction':_0x258e87[_0x475e2b(0x1ed)][_0x475e2b(0x1f0)][_0x475e2b(0x1ff)],'ruleCount':_0x258e87[_0x475e2b(0x1ed)][_0x475e2b(0x1ee)]?.[_0x475e2b(0x1fe)]??0x0};}export function projectRevisionDetail(_0x45fcdc){const _0x531290=a147_0x151cdd;return{...projectRevisionSummary(_0x45fcdc),'config':_0x45fcdc[_0x531290(0x1ed)]};}export function expectedRevisionWarnings(_0xd2e80c){return _0xd2e80c===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x462bd2=a147_0x151cdd;return _0x462bd2(0x216);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x2dca3c=a148_0x1901;(function(_0x4b1bc8,_0x51ddac){const _0x1df027=a148_0x1901,_0x270380=_0x4b1bc8();while(!![]){try{const _0x440737=parseInt(_0x1df027(0x115))/0x1*(parseInt(_0x1df027(0x120))/0x2)+parseInt(_0x1df027(0x11c))/0x3+-parseInt(_0x1df027(0x122))/0x4*(-parseInt(_0x1df027(0x111))/0x5)+parseInt(_0x1df027(0x118))/0x6*(parseInt(_0x1df027(0x11e))/0x7)+-parseInt(_0x1df027(0x119))/0x8+parseInt(_0x1df027(0x113))/0x9+-parseInt(_0x1df027(0x112))/0xa;if(_0x440737===_0x51ddac)break;else _0x270380['push'](_0x270380['shift']());}catch(_0x4a9613){_0x270380['push'](_0x270380['shift']());}}}(a148_0x14a2,0xc0b7e));function a148_0x1901(_0x309672,_0x149619){_0x309672=_0x309672-0x111;const _0x14a29c=a148_0x14a2();let _0x190162=_0x14a29c[_0x309672];return _0x190162;}import{validateInstantApiPolicy}from'../../core/api-client.js';function a148_0x14a2(){const _0x9c44c7=['POST','2860962OCDlLh','/validate','4115671jARPKI','Validated\x20Instant\x20API\x20policy\x20for\x20','28304EgdCQW','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','4GgQUvQ','valid','1922775EbXmbN','21427300EAdJjg','11659932FvalcE','configHash','26idVywd','validate','instant-api-policy','12wXaAqy','9964088xNASor','appCode'];a148_0x14a2=function(){return _0x9c44c7;};return a148_0x14a2();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a148_0x2dca3c(0x117),'command':a148_0x2dca3c(0x116),'description':a148_0x2dca3c(0x121),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x41ba37){const _0x51ce79=a148_0x2dca3c,{local:_0x556a93,config:_0x3312e9}=await readFixedPolicy(_0x41ba37),_0xf1d69d=await validateInstantApiPolicy({'appCode':_0x41ba37[_0x51ce79(0x11a)],'config':_0x3312e9});return{'ok':!![],'data':{'operation':_0x51ce79(0x116),'selector':{'appCode':_0x41ba37['appCode']},'filePath':_0x556a93['policyFilePath'],'relativePath':_0x556a93['policyRelativePath'],'valid':_0xf1d69d[_0x51ce79(0x123)],'configHash':_0xf1d69d[_0x51ce79(0x114)],'normalizedConfig':_0xf1d69d['normalizedConfig'],'backend':{'method':_0x51ce79(0x11b),'path':INSTANT_API_POLICY_BASE_PATH+_0x51ce79(0x11d)}},'message':_0x51ce79(0x11f)+_0x41ba37['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb3d506,_0x14bb44){const _0x39c5b3=a149_0x1170,_0x5e789a=_0xb3d506();while(!![]){try{const _0x2ea335=-parseInt(_0x39c5b3(0x107))/0x1*(-parseInt(_0x39c5b3(0x102))/0x2)+-parseInt(_0x39c5b3(0x108))/0x3+-parseInt(_0x39c5b3(0x10b))/0x4+-parseInt(_0x39c5b3(0x106))/0x5*(parseInt(_0x39c5b3(0x103))/0x6)+-parseInt(_0x39c5b3(0x10a))/0x7*(-parseInt(_0x39c5b3(0x105))/0x8)+parseInt(_0x39c5b3(0x104))/0x9+parseInt(_0x39c5b3(0x109))/0xa;if(_0x2ea335===_0x14bb44)break;else _0x5e789a['push'](_0x5e789a['shift']());}catch(_0x521d41){_0x5e789a['push'](_0x5e789a['shift']());}}}(a149_0x41f6,0xba5d2));import{issueReport}from'../../commands/issue/report.js';function a149_0x1170(_0x5d8977,_0x47e267){_0x5d8977=_0x5d8977-0x102;const _0x41f62b=a149_0x41f6();let _0x117046=_0x41f62b[_0x5d8977];return _0x117046;}export const issueDefinitions=[issueReport];function a149_0x41f6(){const _0x5f46b3=['5aFvduI','206728aBZbsI','1716336CnJsqa','22519820qHGGdj','7rGHmPC','5061784fsUYZh','4dAIsvS','7642458iPcLMs','2928942wefTMc','7070168qjIZLE'];a149_0x41f6=function(){return _0x5f46b3;};return a149_0x41f6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a150_0x1d5f5d=a150_0x2ee7;(function(_0x44df7f,_0x4cc630){const _0x4fa815=a150_0x2ee7,_0x3503d0=_0x44df7f();while(!![]){try{const _0x37d911=-parseInt(_0x4fa815(0xa2))/0x1+parseInt(_0x4fa815(0x9a))/0x2*(-parseInt(_0x4fa815(0x95))/0x3)+parseInt(_0x4fa815(0x9c))/0x4+-parseInt(_0x4fa815(0x8a))/0x5*(parseInt(_0x4fa815(0x7e))/0x6)+-parseInt(_0x4fa815(0x8b))/0x7*(parseInt(_0x4fa815(0x7f))/0x8)+-parseInt(_0x4fa815(0x83))/0x9*(-parseInt(_0x4fa815(0x98))/0xa)+parseInt(_0x4fa815(0x9e))/0xb;if(_0x37d911===_0x4cc630)break;else _0x3503d0['push'](_0x3503d0['shift']());}catch(_0xbdeeaa){_0x3503d0['push'](_0x3503d0['shift']());}}}(a150_0x33bc,0x333cf));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x1d5f5d(0x81);function a150_0x2ee7(_0x2de32b,_0x9e445){_0x2de32b=_0x2de32b-0x7d;const _0x33bc11=a150_0x33bc();let _0x2ee7b1=_0x33bc11[_0x2de32b];return _0x2ee7b1;}const NUDGE_SUPPRESSED_CODES=new Set([a150_0x1d5f5d(0x8c),a150_0x1d5f5d(0x9f),a150_0x1d5f5d(0x93),a150_0x1d5f5d(0x94),a150_0x1d5f5d(0x91),a150_0x1d5f5d(0x88),a150_0x1d5f5d(0x86),a150_0x1d5f5d(0x96)]),defaultWriter=_0x1be766=>{const _0x4ad941=a150_0x1d5f5d;process[_0x4ad941(0x84)][_0x4ad941(0x8e)](_0x1be766);};export function shouldNudgeForError(_0x3ad948,_0x426d2b){const _0x502eb0=a150_0x1d5f5d;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x426d2b[_0x502eb0(0x80)]===_0x502eb0(0x89)&&_0x426d2b['command']===_0x502eb0(0x87))return![];if(_0x3ad948 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x502eb0(0xa1)](_0x3ad948[_0x502eb0(0x97)]);return!![];}export function printIssueReportNudgeForError(_0x4106ff,_0x339ce4,_0x4a5e54=defaultWriter){if(!shouldNudgeForError(_0x4106ff,_0x339ce4))return;const _0x173faf=buildSuggestedTitle(_0x4106ff,_0x339ce4);_0x4a5e54(formatNudge(_0x173faf));}function buildSuggestedTitle(_0x129f59,_0x1d0494){const _0xc511f0=a150_0x1d5f5d,_0x29adbb=_0x129f59 instanceof Error?_0x129f59['message']:String(_0x129f59),_0x33c0bb=_0x29adbb['replace'](/[\r\n]+/g,'\x20')[_0xc511f0(0x9d)](/\s+/g,'\x20')['trim']()[_0xc511f0(0x9b)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x458ce7=CLI_BIN_NAME+'\x20'+_0x1d0494[_0xc511f0(0x80)]+'\x20'+_0x1d0494[_0xc511f0(0x99)];return _0x33c0bb[_0xc511f0(0x8d)]>0x0?_0x458ce7+':\x20'+_0x33c0bb:_0x458ce7;}function a150_0x33bc(){const _0xce892f=['has','310228uvNFqa','\x20issue\x20report\x20\x5c','6iNqNQv','432dtuuBu','service','RABETBASE_DISABLE_ISSUE_NUDGE','=1\x20to\x20silence\x20this\x20hint.','383787VRCVFX','stderr','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','validation_error','report','flag_missing','issue','1983470UgclZR','7903GjknYv','cancelled','length','write','\x20\x20Set\x20','\x22\x20\x5c','unknown_command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','config_missing','not_in_project','3GHvYYx','network_error','code','40kHwfOD','command','743492rdEUfZ','slice','404788GpQirE','replace','11855096fBVzxp','auth_required','\x20bug?\x20Help\x20us\x20fix\x20it:'];a150_0x33bc=function(){return _0xce892f;};return a150_0x33bc();}function formatNudge(_0x4cb25e){const _0x2220fe=a150_0x1d5f5d;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x2220fe(0xa0),'\x20\x20'+CLI_BIN_NAME+_0x2220fe(0x7d),'\x20\x20\x20\x20--title\x20\x22'+_0x4cb25e+_0x2220fe(0x90),_0x2220fe(0x92),_0x2220fe(0x85),_0x2220fe(0x8f)+NUDGE_OPT_OUT_ENV+_0x2220fe(0x82),'']['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a151_0x2f4d3e=a151_0x1228;function a151_0x1228(_0x32d251,_0x24b4a1){_0x32d251=_0x32d251-0x122;const _0x37a088=a151_0x37a0();let _0x1228b9=_0x37a088[_0x32d251];return _0x1228b9;}(function(_0x210764,_0x187e6f){const _0x28e812=a151_0x1228,_0x58cfbf=_0x210764();while(!![]){try{const _0x50e934=-parseInt(_0x28e812(0x139))/0x1*(-parseInt(_0x28e812(0x142))/0x2)+parseInt(_0x28e812(0x129))/0x3*(parseInt(_0x28e812(0x154))/0x4)+-parseInt(_0x28e812(0x15c))/0x5*(parseInt(_0x28e812(0x136))/0x6)+-parseInt(_0x28e812(0x13e))/0x7+-parseInt(_0x28e812(0x12c))/0x8+-parseInt(_0x28e812(0x122))/0x9*(parseInt(_0x28e812(0x144))/0xa)+parseInt(_0x28e812(0x138))/0xb;if(_0x50e934===_0x187e6f)break;else _0x58cfbf['push'](_0x58cfbf['shift']());}catch(_0x1d1a48){_0x58cfbf['push'](_0x58cfbf['shift']());}}}(a151_0x37a0,0x71d09));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a151_0x37a0(){const _0x136ca1=['issue.description','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionSource:\x20','write','102awveTa','file','16420195RZrgVw','33LYZrnw','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','str','issue.title','descriptionSource','692881rYuLFk','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','sanitize','redactionCount','32622QzYDTo','otel://','2260efXboJ','Platform\x20issue\x20reported\x20(','report','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','POST','File\x20not\x20found:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','cwd','truncated\x20from\x20','apiError','redacted\x20','push','redactionKinds','filter','issue','title','4qLuzjO','validation','\x20bytes','descriptionFilePath','inline','compress','join','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','103665bOgipo','message','redactions:\x20','Platform\x20issue\x20reported','19773ulsEdu','truncated','flagMissing','descriptionFile:\x20','length','issue.description_redaction_kinds','issue.description_redactions','830436biXXHX','string','Issue\x20description\x20file\x20is\x20empty:\x20','7149352iGBHsi','truncated:\x20original\x20','originalBytes','description','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','trim'];a151_0x37a0=function(){return _0x136ca1;};return a151_0x37a0();}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':a151_0x2f4d3e(0x152),'command':a151_0x2f4d3e(0x146),'description':a151_0x2f4d3e(0x13a),'risk':a151_0x2f4d3e(0x135),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0x2f4d3e(0x159),'flags':[{'name':'title','type':a151_0x2f4d3e(0x12a),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a151_0x2f4d3e(0x12a),'description':a151_0x2f4d3e(0x14a)},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0x2f4d3e(0x12a),'description':a151_0x2f4d3e(0x13f)}],async 'validate'(_0x26b8ac){const _0x444897=a151_0x2f4d3e,_0x511b07=_0x26b8ac[_0x444897(0x13b)](_0x444897(0x153))[_0x444897(0x131)](),_0x4eba2c=_0x26b8ac['str'](_0x444897(0x12f))[_0x444897(0x131)](),_0x5a09b1=_0x26b8ac['str'](DESCRIPTION_FILE_FLAG)[_0x444897(0x131)]();if(!_0x511b07)throw CliErrors[_0x444897(0x124)](_0x444897(0x153),_0x444897(0x15b));const _0x466d86=_0x4eba2c[_0x444897(0x126)]>0x0,_0x22c86c=_0x5a09b1[_0x444897(0x126)]>0x0;if(_0x466d86===_0x22c86c)throw CliErrors[_0x444897(0x155)]('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(_0x22c86c){const _0x1c8825=resolve(process[_0x444897(0x14b)](),_0x5a09b1);if(!existsSync(_0x1c8825))throw CliErrors[_0x444897(0x155)](_0x444897(0x149)+_0x1c8825);}},async 'dryRun'(_0x166f75){const _0x2de637=a151_0x2f4d3e,_0x305258=await prepareIssueReport(_0x166f75);return{'method':_0x2de637(0x148),'url':_0x2de637(0x143)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x305258[_0x2de637(0x153)],'issue.description':_0x305258[_0x2de637(0x12f)],'issue.description_original_bytes':_0x305258[_0x2de637(0x140)][_0x2de637(0x12e)],'issue.description_truncated':_0x305258[_0x2de637(0x140)][_0x2de637(0x123)],'issue.description_redactions':_0x305258[_0x2de637(0x140)]['redactionCount'],'issue.description_redaction_kinds':_0x305258['sanitize'][_0x2de637(0x150)]['join'](',')}},'description':[_0x2de637(0x147),_0x2de637(0x134)+_0x305258['descriptionSource'],_0x305258[_0x2de637(0x157)]?_0x2de637(0x125)+_0x305258[_0x2de637(0x157)]:null,_0x305258['sanitize']['truncated']?_0x2de637(0x12d)+_0x305258[_0x2de637(0x140)][_0x2de637(0x12e)]+_0x2de637(0x156):null,_0x305258['sanitize'][_0x2de637(0x141)]>0x0?_0x2de637(0x15e)+_0x305258[_0x2de637(0x140)]['redactionCount']+'\x20('+_0x305258[_0x2de637(0x140)]['redactionKinds']['join'](',\x20')+')':null][_0x2de637(0x151)](Boolean)[_0x2de637(0x15a)]('\x0a')};},async 'execute'(_0x2074e9){const _0x219512=a151_0x2f4d3e,_0x3de6cd=await prepareIssueReport(_0x2074e9);try{await sendPlatformIssueCollectLog({'title':_0x3de6cd[_0x219512(0x153)],'description':_0x3de6cd[_0x219512(0x12f)],'sanitize':{'originalBytes':_0x3de6cd['sanitize'][_0x219512(0x12e)],'truncated':_0x3de6cd[_0x219512(0x140)][_0x219512(0x123)],'redactionCount':_0x3de6cd[_0x219512(0x140)][_0x219512(0x141)],'redactionKinds':_0x3de6cd[_0x219512(0x140)][_0x219512(0x150)]}});}catch(_0x26e0bc){throw CliErrors[_0x219512(0x14d)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x26e0bc instanceof Error?_0x26e0bc[_0x219512(0x15d)]:String(_0x26e0bc)),_0x219512(0x130));}return{'ok':!![],'message':buildResultMessage(_0x3de6cd[_0x219512(0x140)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x219512(0x13c),_0x219512(0x132),'issue.description_original_bytes','issue.description_truncated',_0x219512(0x128),_0x219512(0x127)],'issue':{'title':_0x3de6cd['title'],'descriptionLength':_0x3de6cd['description'][_0x219512(0x126)],'descriptionSource':_0x3de6cd[_0x219512(0x13d)],..._0x3de6cd[_0x219512(0x157)]?{'descriptionFile':_0x3de6cd[_0x219512(0x157)]}:{},'sanitize':{'originalBytes':_0x3de6cd[_0x219512(0x140)][_0x219512(0x12e)],'truncated':_0x3de6cd[_0x219512(0x140)][_0x219512(0x123)],'redactions':_0x3de6cd[_0x219512(0x140)][_0x219512(0x141)],'redactionKinds':_0x3de6cd[_0x219512(0x140)][_0x219512(0x150)]}}}};}};function buildResultMessage(_0x1a9fde){const _0xa94542=a151_0x2f4d3e,_0x4da91a=[];return _0x1a9fde[_0xa94542(0x123)]&&_0x4da91a['push'](_0xa94542(0x14c)+_0x1a9fde[_0xa94542(0x12e)]+_0xa94542(0x156)),_0x1a9fde[_0xa94542(0x141)]>0x0&&_0x4da91a[_0xa94542(0x14f)](_0xa94542(0x14e)+_0x1a9fde[_0xa94542(0x141)]+'\x20secret(s):\x20'+_0x1a9fde[_0xa94542(0x150)]['join'](',\x20')),_0x4da91a[_0xa94542(0x126)]===0x0?_0xa94542(0x15f):_0xa94542(0x145)+_0x4da91a['join'](';\x20')+')';}async function prepareIssueReport(_0x366e14){const _0x9dbce9=a151_0x2f4d3e,_0x39c2dd=_0x366e14[_0x9dbce9(0x13b)]('title')['trim'](),_0x3e02b3=_0x366e14['str'](_0x9dbce9(0x12f)),_0x4cf9fe=_0x366e14[_0x9dbce9(0x13b)](DESCRIPTION_FILE_FLAG)[_0x9dbce9(0x131)]();if(!_0x4cf9fe){const _0x57aec8=_0x3e02b3;if(!_0x57aec8[_0x9dbce9(0x131)]())throw CliErrors[_0x9dbce9(0x155)]('Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x3f9e66=sanitizeIssueDescription(_0x57aec8);return{'title':_0x39c2dd,'description':_0x3f9e66[_0x9dbce9(0x12f)],'descriptionSource':_0x9dbce9(0x158),'sanitize':_0x3f9e66};}const _0x239091=resolve(process['cwd'](),_0x4cf9fe),_0x4d5683=await readFile(_0x239091,'utf8');if(!_0x4d5683['trim']())throw CliErrors[_0x9dbce9(0x155)](_0x9dbce9(0x12b)+_0x239091,_0x9dbce9(0x133));const _0x5c6896=sanitizeIssueDescription(_0x4d5683);return{'title':_0x39c2dd,'description':_0x5c6896[_0x9dbce9(0x12f)],'descriptionSource':_0x9dbce9(0x137),'descriptionFilePath':_0x239091,'sanitize':_0x5c6896};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a152_0x1507a4=a152_0x1797;(function(_0x1c8c69,_0x2a947f){const _0x2e8738=a152_0x1797,_0x104261=_0x1c8c69();while(!![]){try{const _0x32135c=parseInt(_0x2e8738(0x108))/0x1*(-parseInt(_0x2e8738(0x104))/0x2)+parseInt(_0x2e8738(0xfd))/0x3*(-parseInt(_0x2e8738(0x114))/0x4)+-parseInt(_0x2e8738(0x10d))/0x5+parseInt(_0x2e8738(0xf3))/0x6+-parseInt(_0x2e8738(0xfb))/0x7*(-parseInt(_0x2e8738(0x102))/0x8)+-parseInt(_0x2e8738(0x105))/0x9+parseInt(_0x2e8738(0xf4))/0xa*(parseInt(_0x2e8738(0xfe))/0xb);if(_0x32135c===_0x2a947f)break;else _0x104261['push'](_0x104261['shift']());}catch(_0x4ded36){_0x104261['push'](_0x104261['shift']());}}}(a152_0x1d0e,0x4eb7d));function a152_0x1d0e(){const _0x32207c=['utf8','length','14YzbwGi','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','459657YmdwYi','55vVBeLi','from','slice','description','377336gRygTv','authorization','17858hwSbaF','2653092HXrUdn','byteLength','REDACTED:private-key','16qTjqFf','REDACTED:authorization','bearer-jwt','private-key','__RB_OSS_ID_','1824380SKehwK','REDACTED:bearer-jwt','string','toString','push','REDACTED:cookie','includes','16fQxtwX','label','575664qOdlJN','3095110PdSsRF','replace','REDACTED:access-key','access-key','REDACTED:password'];a152_0x1d0e=function(){return _0x32207c;};return a152_0x1d0e();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a152_0x1797(_0x2ff68e,_0x13b5d9){_0x2ff68e=_0x2ff68e-0xf3;const _0x1d0edd=a152_0x1d0e();let _0x179715=_0x1d0edd[_0x2ff68e];return _0x179715;}const TRUNCATION_NOTICE=a152_0x1507a4(0xfc),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x1507a4(0x112)},{'kind':a152_0x1507a4(0x103),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x1507a4(0x109)},{'kind':a152_0x1507a4(0x10b),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x1507a4(0x107)},{'kind':a152_0x1507a4(0xf7),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x1507a4(0xf6)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x1507a4(0xf8)},{'kind':a152_0x1507a4(0x10a),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a152_0x1507a4(0x10e)}];export function sanitizeIssueDescription(_0x4b3273){const _0x468b46=a152_0x1507a4,_0x4e6eb1=Buffer['byteLength'](_0x4b3273,'utf8'),_0x3e85c7=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x341be3=_0x4b3273,_0x6b3452=0x0;const _0x2ec8b5=[];if(!_0x3e85c7){const _0x2daa37=protectOssAccessKeyIds(_0x341be3);_0x341be3=_0x2daa37[_0x468b46(0x101)];for(const _0x40a470 of REDACTION_RULES){let _0x4d768c=0x0;_0x341be3=_0x341be3['replace'](_0x40a470['pattern'],(_0x4adfd1,_0x8b482)=>{const _0x5922e1=_0x468b46;_0x4d768c+=0x1;const _0x3c0ee4=typeof _0x8b482===_0x5922e1(0x10f)?_0x8b482:'';return _0x3c0ee4+'['+_0x40a470[_0x5922e1(0x115)]+']';}),_0x4d768c>0x0&&(_0x6b3452+=_0x4d768c,!_0x2ec8b5[_0x468b46(0x113)](_0x40a470['kind'])&&_0x2ec8b5['push'](_0x40a470['kind']));}_0x341be3=_0x2daa37['restore'](_0x341be3);}let _0xe16729=![];if(Buffer[_0x468b46(0x106)](_0x341be3,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0xe16729=!![];const _0x2fafd9=Buffer[_0x468b46(0x106)](TRUNCATION_NOTICE,_0x468b46(0xf9)),_0x5cf8d2=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x2fafd9);_0x341be3=sliceUtf8Bytes(_0x341be3,_0x5cf8d2)+TRUNCATION_NOTICE;}return{'description':_0x341be3,'originalBytes':_0x4e6eb1,'truncated':_0xe16729,'redactionCount':_0x6b3452,'redactionKinds':_0x2ec8b5};}function protectOssAccessKeyIds(_0x1464bb){const _0x1bcb1f=a152_0x1507a4,_0x5e2f75=[],_0x4a4164=_0x1464bb['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4178fe,_0x4bd0fd)=>{const _0x47601d=a152_0x1797,_0x3f3968=_0x5e2f75[_0x47601d(0x111)](_0x4178fe[_0x47601d(0x100)](_0x4bd0fd[_0x47601d(0xfa)]))-0x1;return _0x4bd0fd+_0x47601d(0x10c)+_0x3f3968+'__';});return{'description':_0x4a4164,'restore':_0x4c978d=>_0x4c978d[_0x1bcb1f(0xf5)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x494192,_0x51ee92,_0x2c2a5c)=>{const _0x4de7e8=_0x5e2f75[Number(_0x2c2a5c)];return _0x4de7e8===undefined?_0x494192:''+_0x51ee92+_0x4de7e8;})};}function sliceUtf8Bytes(_0x12b2cf,_0x8268ba){const _0x43a519=a152_0x1507a4;if(_0x8268ba<=0x0)return'';const _0x5f8c56=Buffer[_0x43a519(0xff)](_0x12b2cf,_0x43a519(0xf9));if(_0x5f8c56[_0x43a519(0x106)]<=_0x8268ba)return _0x12b2cf;let _0x1969f8=_0x8268ba;while(_0x1969f8>0x0){const _0x573a17=_0x5f8c56[_0x1969f8];if(_0x573a17===undefined||(_0x573a17&0xc0)!==0x80)break;_0x1969f8-=0x1;}return _0x5f8c56['subarray'](0x0,_0x1969f8)[_0x43a519(0x110)](_0x43a519(0xf9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x461416=a153_0x4ed6;function a153_0x4ed6(_0x1cb037,_0x2b00bc){_0x1cb037=_0x1cb037-0x9d;const _0x5743fa=a153_0x5743();let _0x4ed656=_0x5743fa[_0x1cb037];return _0x4ed656;}(function(_0x5103e5,_0xa4823a){const _0x1f1efa=a153_0x4ed6,_0x33d845=_0x5103e5();while(!![]){try{const _0x5dedcc=-parseInt(_0x1f1efa(0xc9))/0x1+parseInt(_0x1f1efa(0xcb))/0x2+-parseInt(_0x1f1efa(0xbd))/0x3+-parseInt(_0x1f1efa(0xbc))/0x4*(parseInt(_0x1f1efa(0xaa))/0x5)+parseInt(_0x1f1efa(0x9d))/0x6+parseInt(_0x1f1efa(0xac))/0x7+parseInt(_0x1f1efa(0xad))/0x8*(parseInt(_0x1f1efa(0xa0))/0x9);if(_0x5dedcc===_0xa4823a)break;else _0x33d845['push'](_0x33d845['shift']());}catch(_0x48052e){_0x33d845['push'](_0x33d845['shift']());}}}(a153_0x5743,0x780bf));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_0x461416(0xb0);function readCreateInput(_0x5e29da){const _0x202412=a153_0x461416,_0x51501f=_0x5e29da[_0x202412(0xb7)](_0x202412(0xb3))[_0x202412(0xc1)]();if(!_0x51501f)throw kbError(_0x202412(0xa6),'--title\x20is\x20required.');const _0x17df6f=_0x5e29da[_0x202412(0xb7)](_0x202412(0xa2))[_0x202412(0xc1)]();if(!_0x17df6f)throw kbError('kb_file_required',_0x202412(0xba),_0x202412(0xa7));return{'title':_0x51501f,'file':_0x17df6f};}async function prepareCreate(_0x171215){const _0x1340b1=a153_0x461416,_0x1def37=readCreateInput(_0x171215),_0x35d868=await readKbFile(_0x1def37[_0x1340b1(0xa2)]),_0x13dc6a=await fetchAllCompanyKnowledgeBases(_0x171215,{'title':_0x1def37[_0x1340b1(0xb3)]}),_0x22907f=findExactCompanyKnowledgeBases(_0x13dc6a,_0x171215['appCode'],_0x1def37[_0x1340b1(0xb3)]);if(_0x22907f[_0x1340b1(0xa9)]>0x0)throw kbError('kb_already_exists',_0x1340b1(0x9e)+_0x171215[_0x1340b1(0xae)]+_0x1340b1(0xc7)+_0x1def37[_0x1340b1(0xb3)]+'.',_0x1340b1(0xb5)+_0x22907f[0x0]['id']+_0x1340b1(0xb9));return{..._0x1def37,'content':_0x35d868};}function plannedAfter(_0x341040,_0x116ad9){const _0x307542=a153_0x461416;return{'scope':_0x307542(0xb2),'appCode':_0x341040[_0x307542(0xae)],'title':_0x116ad9['title'],'contentByteSize':_0x116ad9[_0x307542(0xb1)][_0x307542(0xc5)],'contentHash':_0x116ad9[_0x307542(0xb1)]['contentHash']};}function a153_0x5743(){const _0xbae613=['512420QigYaK','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','6004257AhlGOb','667328LAkart','appCode','rabetbase\x20kb\x20list\x20--title\x20','/admin/knowledge-base/create','content','company','title','stringify','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','contentHash','str','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','\x20--format\x20compress`\x20before\x20choosing\x20update.','--file\x20is\x20required.','POST','36ChalDx','1348668ZoGtxs','create','Company\x20knowledge\x20base\x20','Created\x20company\x20knowledge\x20base\x20','trim','\x20for\x20','\x20--format\x20compress','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','byteSize','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','\x20with\x20title\x20','rabetbase\x20kb\x20detail\x20--id\x20','922525VuQnLk','write','867192UeTuER','460374llYEJr','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','153fFhMDZ','verified','file','string','cookie','Knowledge-base\x20title','kb_title_required','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','length'];a153_0x5743=function(){return _0xbae613;};return a153_0x5743();}function verifyCreatedState(_0x3c0cc1,_0x7b1154,_0x1388a4){const _0x2e044a=a153_0x461416;assertCompanyKnowledgeBase(_0x1388a4,_0x3c0cc1[_0x2e044a(0xae)],_0x1388a4['id']);const _0x344347=inspectKbContent(_0x1388a4[_0x2e044a(0xb1)]);if(_0x1388a4[_0x2e044a(0xb3)]!==_0x7b1154[_0x2e044a(0xb3)]||_0x344347[_0x2e044a(0xb6)]!==_0x7b1154['content'][_0x2e044a(0xb6)])throw kbError('kb_verification_failed',_0x2e044a(0xbf)+_0x1388a4['id']+_0x2e044a(0xb8),_0x2e044a(0xc4)+_0x1388a4['id']+_0x2e044a(0xab));return projectKb(_0x1388a4);}export const kbCreate={'service':'kb','command':'create','description':a153_0x461416(0xc6),'risk':a153_0x461416(0xca),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x461416(0xb3),'type':a153_0x461416(0xa3),'required':!![],'description':a153_0x461416(0xa5)},{'name':a153_0x461416(0xa2),'type':a153_0x461416(0xa3),'required':!![],'description':a153_0x461416(0x9f)}],async 'validate'(_0xedfec1){readCreateInput(_0xedfec1);},async 'dryRun'(_0x340d82){const _0x2ae166=a153_0x461416,_0x4850b5=await prepareCreate(_0x340d82);return asDryRunResult({'operation':_0x2ae166(0xbe),'selector':{'scope':_0x2ae166(0xb2),'appCode':_0x340d82[_0x2ae166(0xae)],'title':_0x4850b5[_0x2ae166(0xb3)]},'before':null,'after':plannedAfter(_0x340d82,_0x4850b5),'dryRun':!![],'backend':{'method':_0x2ae166(0xbb),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x2ae166(0xaf)+JSON[_0x2ae166(0xb4)](_0x4850b5[_0x2ae166(0xb3)])+_0x2ae166(0xc3)}},{'method':_0x2ae166(0xbb),'url':CREATE_PATH});},async 'execute'(_0x5837e4){const _0x4923aa=a153_0x461416,_0x5c917a=await prepareCreate(_0x5837e4);let _0x36050d,_0x1e4100=![];try{const _0x509b27=await createEnterpriseKnowledgeBase(_0x5837e4[_0x4923aa(0xa4)],{'appCode':_0x5837e4[_0x4923aa(0xae)],'title':_0x5c917a[_0x4923aa(0xb3)],'content':_0x5c917a['content'][_0x4923aa(0xb1)]});assertCompanyKnowledgeBase(_0x509b27,_0x5837e4[_0x4923aa(0xae)],_0x509b27['id']),_0x36050d=_0x509b27['id'];}catch(_0x1287c3){if(!isPlatformTransportFailure(_0x1287c3))throw _0x1287c3;_0x1e4100=!![];}if(_0x36050d===undefined){const _0x424e3a=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0x5837e4,{'title':_0x5c917a[_0x4923aa(0xb3)]})),_0x59fb35=findExactCompanyKnowledgeBases(_0x424e3a,_0x5837e4[_0x4923aa(0xae)],_0x5c917a[_0x4923aa(0xb3)]);if(_0x59fb35['length']!==0x1)throw kbError('kb_create_outcome_unknown',_0x4923aa(0xa8)+_0x59fb35[_0x4923aa(0xa9)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0x36050d=_0x59fb35[0x0]['id'];}const _0x68da5=await verifyKbMutationReadback(_0x4923aa(0xbe),_0x1e4100,()=>requireKb(_0x5837e4,_0x36050d)),_0x30eb15=verifyCreatedState(_0x5837e4,_0x5c917a,_0x68da5),_0x3538f7=_0x1e4100?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x30eb15['id'],'scope':'company','appCode':_0x30eb15['appCode']},'before':null,'after':_0x30eb15,'dryRun':![],'backend':{'method':_0x4923aa(0xbb),'path':CREATE_PATH},'warnings':_0x3538f7,'verification':{'status':_0x4923aa(0xa1),'recoveredAfterUnknownResponse':_0x1e4100,'lookupCommand':_0x4923aa(0xc8)+_0x30eb15['id']+_0x4923aa(0xc3)}},'message':_0x4923aa(0xc0)+_0x30eb15['id']+_0x4923aa(0xc2)+_0x30eb15[_0x4923aa(0xae)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a154_0x39e4(){const _0x10b6ff=['66TsUtRw','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','209515YUmKRo','delete','verified','rabetbase\x20kb\x20detail\x20--id\x20','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','1372413FtLeYx','kb_expected_version_invalid','3222wXzchv','snapshotHash','expected-version','high-risk-write','flag','410rhYunS','kb_verification_failed','appCode','isSafeInteger','number','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','24oinvjl','already_absent','Soft-deleted\x20company\x20knowledge\x20base\x20','unshift','402MkMESt','company','/admin/knowledge-base/delete','kb_delete_outcome_unknown','no_op','4285170qAXmIu','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','1663692gMlAdS','24QeWnIS','POST','23391iMnRYe','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','Company\x20knowledge\x20base\x20','3409584lNgFpF','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'];a154_0x39e4=function(){return _0x10b6ff;};return a154_0x39e4();}const a154_0x2e2984=a154_0x11ab;(function(_0x3bbd73,_0x255250){const _0x50a13b=a154_0x11ab,_0x5d1f69=_0x3bbd73();while(!![]){try{const _0x12394f=parseInt(_0x50a13b(0x124))/0x1*(parseInt(_0x50a13b(0x133))/0x2)+parseInt(_0x50a13b(0x138))/0x3+-parseInt(_0x50a13b(0x140))/0x4+-parseInt(_0x50a13b(0x144))/0x5*(parseInt(_0x50a13b(0x12f))/0x6)+-parseInt(_0x50a13b(0x122))/0x7*(-parseInt(_0x50a13b(0x13b))/0x8)+-parseInt(_0x50a13b(0x13d))/0x9*(-parseInt(_0x50a13b(0x129))/0xa)+parseInt(_0x50a13b(0x142))/0xb*(-parseInt(_0x50a13b(0x13a))/0xc);if(_0x12394f===_0x255250)break;else _0x5d1f69['push'](_0x5d1f69['shift']());}catch(_0x3498f0){_0x5d1f69['push'](_0x5d1f69['shift']());}}}(a154_0x39e4,0xe056e));function a154_0x11ab(_0x36a14d,_0x25129c){_0x36a14d=_0x36a14d-0x121;const _0x39e456=a154_0x39e4();let _0x11abf5=_0x39e456[_0x36a14d];return _0x11abf5;}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_0x2e2984(0x135),RAG_WARNING=a154_0x2e2984(0x143),NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0x5d8b2e){const _0x465efc=a154_0x2e2984,_0x52476b=_0x5d8b2e[_0x465efc(0x128)](_0x465efc(0x126));if(_0x52476b===undefined)return undefined;const _0x5da546=Number(_0x52476b);if(!Number[_0x465efc(0x12c)](_0x5da546)||_0x5da546<0x0)throw kbError(_0x465efc(0x123),_0x465efc(0x121));return _0x5da546;}function noOpData(_0x212adf,_0x161c6c,_0x36d187){const _0x481675=a154_0x2e2984;return{'operation':_0x481675(0x137),'selector':{'id':_0x161c6c,'scope':_0x481675(0x134),'appCode':_0x212adf[_0x481675(0x12b)]},'before':null,'after':null,'dryRun':_0x36d187,'deleteCalled':![],'backend':{'method':_0x481675(0x13c),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x481675(0x130),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':'delete','description':a154_0x2e2984(0x139),'risk':a154_0x2e2984(0x127),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a154_0x2e2984(0x12d),'required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':a154_0x2e2984(0x126),'type':a154_0x2e2984(0x12d),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0xb3a321){readKbId(_0xb3a321),readExpectedVersion(_0xb3a321),requireKbExplicitYes(_0xb3a321);},async 'dryRun'(_0x32e1fc){const _0x399660=a154_0x2e2984,_0x2b6f8a=readKbId(_0x32e1fc),_0x405e1a=readExpectedVersion(_0x32e1fc),_0x3c3532=await getKbOrNull(_0x32e1fc,_0x2b6f8a);if(!_0x3c3532)return asDryRunResult(noOpData(_0x32e1fc,_0x2b6f8a,!![]),{'method':_0x399660(0x13c),'url':DELETE_PATH});assertExpectedKbVersion(_0x3c3532,_0x405e1a);const _0x5eb2b4=projectKb(_0x3c3532),_0x21fa27=[RAG_WARNING];if(_0x405e1a!==undefined)_0x21fa27[_0x399660(0x132)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x399660(0x145),'selector':{'id':_0x5eb2b4['id'],'scope':_0x399660(0x134),'appCode':_0x5eb2b4['appCode']},'before':_0x5eb2b4,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x399660(0x13c),'path':DELETE_PATH},'warnings':_0x21fa27,'verification':{'expectedVersion':_0x405e1a??null,'atomicCompareAndSet':![],'snapshotHash':_0x5eb2b4[_0x399660(0x125)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x399660(0x147)+_0x5eb2b4['id']+'\x20--format\x20compress'}},{'method':_0x399660(0x13c),'url':DELETE_PATH});},async 'execute'(_0xa7d9f6){const _0x57ab02=a154_0x2e2984;requireKbExplicitYes(_0xa7d9f6);const _0x480734=readKbId(_0xa7d9f6),_0x3f020a=readExpectedVersion(_0xa7d9f6),_0x4b640a=await getKbOrNull(_0xa7d9f6,_0x480734);if(!_0x4b640a)return{'ok':!![],'data':noOpData(_0xa7d9f6,_0x480734,![]),'message':_0x57ab02(0x13f)+_0x480734+_0x57ab02(0x13e)};assertExpectedKbVersion(_0x4b640a,_0x3f020a);const _0x218ba3=projectKb(_0x4b640a);let _0x5cbb09=![];try{await deleteEnterpriseKnowledgeBase(_0xa7d9f6['cookie'],_0x480734);}catch(_0x51418d){if(!isPlatformTransportFailure(_0x51418d))throw _0x51418d;_0x5cbb09=!![];}const _0x203961=await verifyKbMutationReadback(_0x57ab02(0x145),_0x5cbb09,()=>getKbOrNull(_0xa7d9f6,_0x480734));if(_0x203961)throw kbError(_0x5cbb09?_0x57ab02(0x136):_0x57ab02(0x12a),_0x57ab02(0x13f)+_0x480734+'\x20remains\x20readable\x20after\x20delete.',_0x57ab02(0x12e)+_0x480734+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x463b8c=[RAG_WARNING];if(_0x3f020a!==undefined)_0x463b8c[_0x57ab02(0x132)](NON_ATOMIC_WARNING);return _0x5cbb09&&_0x463b8c[_0x57ab02(0x132)](_0x57ab02(0x141)),{'ok':!![],'data':{'operation':_0x57ab02(0x145),'selector':{'id':_0x218ba3['id'],'scope':_0x57ab02(0x134),'appCode':_0x218ba3[_0x57ab02(0x12b)]},'before':_0x218ba3,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x57ab02(0x13c),'path':DELETE_PATH},'warnings':_0x463b8c,'verification':{'status':_0x57ab02(0x146),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x5cbb09,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x218ba3['id']+'\x20--format\x20compress'}},'message':_0x57ab02(0x131)+_0x218ba3['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0x5727(_0x760069,_0x5c97e2){_0x760069=_0x760069-0x145;const _0x5d6e21=a155_0x5d6e();let _0x5727f4=_0x5d6e21[_0x760069];return _0x5727f4;}const a155_0x3f037e=a155_0x5727;function a155_0x5d6e(){const _0x5c95aa=['Company\x20knowledge-base\x20id','2247194txfbUv','3236655zmWsnu','94339xUtRWt','7281YZOzjE','read','Loaded\x20company\x20knowledge\x20base\x20','Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','299542EBdIIB','1822530NYnTqb','content','831JWvZnE','3830eVVBQq','232QtVDUP','13100aLJXnH'];a155_0x5d6e=function(){return _0x5c95aa;};return a155_0x5d6e();}(function(_0x4ee8cf,_0x316912){const _0x1829a2=a155_0x5727,_0x53a710=_0x4ee8cf();while(!![]){try{const _0x3ab4b2=-parseInt(_0x1829a2(0x148))/0x1+parseInt(_0x1829a2(0x150))/0x2+-parseInt(_0x1829a2(0x14b))/0x3*(-parseInt(_0x1829a2(0x14e))/0x4)+-parseInt(_0x1829a2(0x151))/0x5+parseInt(_0x1829a2(0x149))/0x6+-parseInt(_0x1829a2(0x152))/0x7*(parseInt(_0x1829a2(0x14d))/0x8)+parseInt(_0x1829a2(0x153))/0x9*(-parseInt(_0x1829a2(0x14c))/0xa);if(_0x3ab4b2===_0x316912)break;else _0x53a710['push'](_0x53a710['shift']());}catch(_0x595dea){_0x53a710['push'](_0x53a710['shift']());}}}(a155_0x5d6e,0xa7b7e));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':'detail','description':a155_0x3f037e(0x147),'risk':a155_0x3f037e(0x145),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a155_0x3f037e(0x14f)}],async 'validate'(_0x2c07de){readKbId(_0x2c07de);},async 'execute'(_0x223d33){const _0x1b7410=a155_0x3f037e,_0x158b6f=readKbId(_0x223d33),_0x1160e8=await requireKb(_0x223d33,_0x158b6f);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x1160e8),'content':_0x1160e8[_0x1b7410(0x14a)]}},'message':_0x1b7410(0x146)+_0x158b6f};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a156_0x5095(){const _0x10025d=['7101468HPNeVg','8HdgHdp','signal','50hDEBFf','10689074RwXeJT','dryRun','183537uPozBH','311604zsfodZ','5461540laepUI','32IIYTee','1378958HiZFBV','112cDUMkH','execute','map','command','11422apiJNw'];a156_0x5095=function(){return _0x10025d;};return a156_0x5095();}const a156_0x133a3f=a156_0xfd9a;(function(_0x3dcc06,_0xcf3f39){const _0x13ce54=a156_0xfd9a,_0x45b1e8=_0x3dcc06();while(!![]){try{const _0x3b6b6d=-parseInt(_0x13ce54(0x83))/0x1*(-parseInt(_0x13ce54(0x87))/0x2)+-parseInt(_0x13ce54(0x7e))/0x3*(parseInt(_0x13ce54(0x79))/0x4)+-parseInt(_0x13ce54(0x7b))/0x5*(parseInt(_0x13ce54(0x7f))/0x6)+parseInt(_0x13ce54(0x82))/0x7*(-parseInt(_0x13ce54(0x81))/0x8)+parseInt(_0x13ce54(0x78))/0x9+-parseInt(_0x13ce54(0x80))/0xa+parseInt(_0x13ce54(0x7c))/0xb;if(_0x3b6b6d===_0xcf3f39)break;else _0x45b1e8['push'](_0x45b1e8['shift']());}catch(_0x473833){_0x45b1e8['push'](_0x45b1e8['shift']());}}}(a156_0x5095,0x67a8e));import{withKbManagementSession}from'../../core/kb-management-client.js';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';import{kbDelete}from'../../commands/kb/delete.js';function a156_0xfd9a(_0x3b90ae,_0x1ef615){_0x3b90ae=_0x3b90ae-0x78;const _0x5095ad=a156_0x5095();let _0xfd9a32=_0x5095ad[_0x3b90ae];return _0xfd9a32;}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete][a156_0x133a3f(0x85)](_0x2f3f59=>_0x2f3f59[a156_0x133a3f(0x86)]==='search'?_0x2f3f59:{..._0x2f3f59,'execute':_0x1be266=>withKbManagementSession(_0x1be266['signal'],()=>_0x2f3f59[a156_0x133a3f(0x84)](_0x1be266)),..._0x2f3f59[a156_0x133a3f(0x7d)]?{'dryRun':_0x19d954=>withKbManagementSession(_0x19d954[a156_0x133a3f(0x7a)],()=>_0x2f3f59[a156_0x133a3f(0x7d)](_0x19d954))}:{}});
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a157_0x153a13=a157_0xb17e;function a157_0xb17e(_0x118a9e,_0x3a3648){_0x118a9e=_0x118a9e-0x1cd;const _0x182e99=a157_0x182e();let _0xb17edf=_0x182e99[_0x118a9e];return _0xb17edf;}function a157_0x182e(){const _0x17b509=['list','trim','3269rgBvqm','string','16luEmzk','40244OWtYTd','read','1260891FoNBda','title','11ZKZvDU','appCode','map','213cTKmbg','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','17462qkRDZS','Found\x20','str','11982dQwovy','1184990wgotHy','\x20company\x20knowledge\x20base(s)\x20for\x20','6676910GwBmBh','473308DAnCoj'];a157_0x182e=function(){return _0x17b509;};return a157_0x182e();}(function(_0x4754b1,_0x16214e){const _0x560cdf=a157_0xb17e,_0x5e70e9=_0x4754b1();while(!![]){try{const _0x2f88eb=-parseInt(_0x560cdf(0x1d7))/0x1+-parseInt(_0x560cdf(0x1d0))/0x2+parseInt(_0x560cdf(0x1ce))/0x3*(parseInt(_0x560cdf(0x1dd))/0x4)+parseInt(_0x560cdf(0x1d4))/0x5+parseInt(_0x560cdf(0x1d3))/0x6*(-parseInt(_0x560cdf(0x1da))/0x7)+-parseInt(_0x560cdf(0x1dc))/0x8*(-parseInt(_0x560cdf(0x1df))/0x9)+parseInt(_0x560cdf(0x1d6))/0xa*(parseInt(_0x560cdf(0x1e1))/0xb);if(_0x2f88eb===_0x16214e)break;else _0x5e70e9['push'](_0x5e70e9['shift']());}catch(_0x34e782){_0x5e70e9['push'](_0x5e70e9['shift']());}}}(a157_0x182e,0x764e4));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a157_0x153a13(0x1d8),'description':a157_0x153a13(0x1cf),'risk':a157_0x153a13(0x1de),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0x153a13(0x1e0),'type':a157_0x153a13(0x1db),'required':![],'description':'Filter\x20by\x20knowledge-base\x20title'}],async 'execute'(_0x1c13f5){const _0x45fced=a157_0x153a13,_0x534df3=_0x1c13f5[_0x45fced(0x1d2)](_0x45fced(0x1e0))[_0x45fced(0x1d9)](),_0x18dc26=await fetchAllCompanyKnowledgeBases(_0x1c13f5,{..._0x534df3?{'title':_0x534df3}:{}}),_0x272a0f=_0x18dc26[_0x45fced(0x1cd)](projectKb);return{'ok':!![],'data':{'total':_0x272a0f['length'],'knowledgeBases':_0x272a0f},'message':_0x45fced(0x1d1)+_0x272a0f['length']+_0x45fced(0x1d5)+_0x1c13f5[_0x45fced(0x1e2)]};}};
|