@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.7
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_0x40020f=a142_0x5b4f;(function(_0x217e6d,_0x2e3e82){const _0x8e8333=a142_0x5b4f,_0x299906=_0x217e6d();while(!![]){try{const _0x13a478=-parseInt(_0x8e8333(0x1a5))/0x1+-parseInt(_0x8e8333(0x19b))/0x2*(-parseInt(_0x8e8333(0x190))/0x3)+-parseInt(_0x8e8333(0x199))/0x4*(parseInt(_0x8e8333(0x198))/0x5)+parseInt(_0x8e8333(0x1a9))/0x6*(parseInt(_0x8e8333(0x191))/0x7)+-parseInt(_0x8e8333(0x19a))/0x8*(-parseInt(_0x8e8333(0x18a))/0x9)+parseInt(_0x8e8333(0x1aa))/0xa*(-parseInt(_0x8e8333(0x1a6))/0xb)+parseInt(_0x8e8333(0x192))/0xc;if(_0x13a478===_0x2e3e82)break;else _0x299906['push'](_0x299906['shift']());}catch(_0x3c03e4){_0x299906['push'](_0x299906['shift']());}}}(a142_0x3c6d,0xea65a));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_0x5b4f(_0x322d28,_0x1d2425){_0x322d28=_0x322d28-0x188;const _0x3c6d2b=a142_0x3c6d();let _0x5b4fcd=_0x3c6d2b[_0x322d28];return _0x5b4fcd;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x256713){const _0x2120dd=a142_0x5b4f,{local:_0x487a32,config:_0x5d6345}=await readFixedPolicy(_0x256713),_0x31220f=readChangeSummary(_0x256713),_0x422387=readExpectedRevision(_0x256713),[_0x5855a0,_0x26756f]=await Promise[_0x2120dd(0x19d)]([getCurrentInstantApiPolicy(_0x256713['appCode']),validateInstantApiPolicy({'appCode':_0x256713[_0x2120dd(0x1ac)],'config':_0x5d6345})]);return assertExpectedRevision(_0x5855a0,_0x422387),{'local':_0x487a32,'config':_0x5d6345,'changeSummary':_0x31220f,'expectedRevision':_0x422387,'before':_0x5855a0,'validation':_0x26756f};}export const instantApiPolicyPublish={'service':a142_0x40020f(0x1af),'command':'publish','description':a142_0x40020f(0x18c),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0x40020f(0x18b),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2a396a){readChangeSummary(_0x2a396a),readExpectedRevision(_0x2a396a);},async 'dryRun'(_0x336b24){const _0x28f2dd=a142_0x40020f,_0x10f4e0=await preparePublish(_0x336b24);return asDryRunResult({'operation':_0x28f2dd(0x19c),'selector':{'appCode':_0x336b24[_0x28f2dd(0x1ac)]},'before':projectCurrentPolicy(_0x10f4e0[_0x28f2dd(0x1ab)]),'after':{'revision':_0x10f4e0['before']?_0x10f4e0[_0x28f2dd(0x1ab)][_0x28f2dd(0x1a2)]+0x1:0x1,'configHash':_0x10f4e0[_0x28f2dd(0x189)][_0x28f2dd(0x196)],'config':_0x10f4e0[_0x28f2dd(0x189)][_0x28f2dd(0x188)]},'filePath':_0x10f4e0[_0x28f2dd(0x19e)]['policyFilePath'],'relativePath':_0x10f4e0[_0x28f2dd(0x19e)][_0x28f2dd(0x195)],'dryRun':!![],'backend':{'method':_0x28f2dd(0x1a8),'path':INSTANT_API_POLICY_BASE_PATH+_0x28f2dd(0x1a7)},'warnings':expectedRevisionWarnings(_0x10f4e0[_0x28f2dd(0x1b1)]),'verification':{'status':_0x28f2dd(0x193),'expectedRevision':_0x10f4e0[_0x28f2dd(0x1b1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x28f2dd(0x1a7)});},async 'execute'(_0x182dc1){const _0xea20e6=a142_0x40020f,_0x39a140=await preparePublish(_0x182dc1);let _0x70d733=![];try{await publishInstantApiPolicy({'appCode':_0x182dc1[_0xea20e6(0x1ac)],'config':_0x39a140[_0xea20e6(0x194)],..._0x39a140[_0xea20e6(0x18d)]?{'changeSummary':_0x39a140[_0xea20e6(0x18d)]}:{}});}catch(_0x178dc6){if(!isPlatformTransportFailure(_0x178dc6))throw _0x178dc6;_0x70d733=!![];}let _0xbe9f78;try{_0xbe9f78=await getCurrentInstantApiPolicy(_0x182dc1[_0xea20e6(0x1ac)]);}catch(_0x41ba69){const _0x58672e=instantApiPolicyError(_0x70d733?_0xea20e6(0x1a4):'instant_api_policy_publish_verification_unavailable',_0xea20e6(0x1b0),_0xea20e6(0x1a0)+mutationLookupCommand()+_0xea20e6(0x19f));Object[_0xea20e6(0x1a3)](_0x58672e,_0xea20e6(0x1a1),{'value':_0x41ba69,'enumerable':![]});throw _0x58672e;}const _0x2345c9=_0xbe9f78&&(_0x39a140[_0xea20e6(0x1ab)]===null||_0xbe9f78[_0xea20e6(0x1a2)]>_0x39a140[_0xea20e6(0x1ab)][_0xea20e6(0x1a2)]),_0x1f610c=_0xbe9f78?.[_0xea20e6(0x196)]===_0x39a140['validation'][_0xea20e6(0x196)];if(!_0xbe9f78||!_0x2345c9||!_0x1f610c)throw instantApiPolicyError(_0x70d733?_0xea20e6(0x1a4):_0xea20e6(0x1ad),_0xea20e6(0x18f),_0xea20e6(0x1a0)+mutationLookupCommand()+_0xea20e6(0x19f));const _0x325e2e=[...expectedRevisionWarnings(_0x39a140[_0xea20e6(0x1b1)]),RUNTIME_CACHE_WARNING];return _0x70d733&&_0x325e2e[_0xea20e6(0x197)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xea20e6(0x19c),'selector':{'appCode':_0x182dc1[_0xea20e6(0x1ac)]},'before':projectCurrentPolicy(_0x39a140['before']),'after':projectCurrentPolicy(_0xbe9f78),'filePath':_0x39a140[_0xea20e6(0x19e)]['policyFilePath'],'relativePath':_0x39a140['local'][_0xea20e6(0x195)],'dryRun':![],'backend':{'method':_0xea20e6(0x1a8),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x325e2e,'verification':{'status':_0xea20e6(0x18e),'recoveredAfterUnknownResponse':_0x70d733,'expectedRevision':_0x39a140[_0xea20e6(0x1b1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xea20e6(0x1ae)+_0xbe9f78[_0xea20e6(0x1a2)]};}};function a142_0x3c6d(){const _0x2358c8=['expectedRevision','normalizedConfig','validation','234hdwbTz','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','changeSummary','verified','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','393747VThrbt','262948BsKOAd','3516468CwysRt','planned','config','policyRelativePath','configHash','push','49445ZSbklE','16vwYAhV','110744Vnwrnj','8lFhpgK','publish','all','local','`;\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20`','cause','revision','defineProperty','instant_api_policy_publish_outcome_unknown','859328pxwAcy','2012461WiNmzV','/publish','POST','138JYRTcQ','10oMOevX','before','appCode','instant_api_policy_publish_verification_failed','Published\x20Instant\x20API\x20policy\x20revision\x20','instant-api-policy','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.'];a142_0x3c6d=function(){return _0x2358c8;};return a142_0x3c6d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143_0x465320=a143_0x3512;function a143_0x5215(){const _0x1c4da4=['Kept','instant_api_policy_not_configured','3290vcPEaU','config','policyRelativePath','5eJfBWv','force','instant-api-policy','bool','644838CUAZFb','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','107832BSjkqn','Pulled','write','1433366HQfUQt','33VEZrDy','140RBnRez','configHash','appCode','pull','1229280bWhQZi','\x20Instant\x20API\x20policy\x20revision\x20','54oTNIcv','action','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','662540dnCMhi','77086dXmdRd','revision'];a143_0x5215=function(){return _0x1c4da4;};return a143_0x5215();}(function(_0x4a1021,_0x364fd3){const _0x7b9669=a143_0x3512,_0x5d5ba2=_0x4a1021();while(!![]){try{const _0x4a5db6=-parseInt(_0x7b9669(0xd7))/0x1+-parseInt(_0x7b9669(0xd3))/0x2*(-parseInt(_0x7b9669(0xe4))/0x3)+-parseInt(_0x7b9669(0xe9))/0x4+parseInt(_0x7b9669(0xda))/0x5*(parseInt(_0x7b9669(0xde))/0x6)+parseInt(_0x7b9669(0xe5))/0x7*(-parseInt(_0x7b9669(0xe0))/0x8)+-parseInt(_0x7b9669(0xeb))/0x9*(-parseInt(_0x7b9669(0xd2))/0xa)+-parseInt(_0x7b9669(0xe3))/0xb;if(_0x4a5db6===_0x364fd3)break;else _0x5d5ba2['push'](_0x5d5ba2['shift']());}catch(_0x39c7d2){_0x5d5ba2['push'](_0x5d5ba2['shift']());}}}(a143_0x5215,0x3556a));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';function a143_0x3512(_0x1c5680,_0x3f647f){_0x1c5680=_0x1c5680-0xd1;const _0x521562=a143_0x5215();let _0x35120a=_0x521562[_0x1c5680];return _0x35120a;}export const instantApiPolicyPull={'service':a143_0x465320(0xdc),'command':a143_0x465320(0xe8),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a143_0x465320(0xe2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x47d40d){requireForceConfirmation(_0x47d40d);},async 'execute'(_0x2e1b3d){const _0x4d5909=a143_0x465320;requireForceConfirmation(_0x2e1b3d);const _0x1ba1de=await getCurrentInstantApiPolicy(_0x2e1b3d[_0x4d5909(0xe7)]);if(!_0x1ba1de)throw instantApiPolicyError(_0x4d5909(0xd6),_0x4d5909(0xdf)+_0x2e1b3d[_0x4d5909(0xe7)]+'.',_0x4d5909(0xd1));const _0x203032=loadInstantApiPolicyLocalConfig(_0x2e1b3d[_0x4d5909(0xe7)]),_0x3b11f2=await writeInstantApiPolicyConfigFile(_0x203032,_0x1ba1de[_0x4d5909(0xd8)],{'force':_0x2e1b3d[_0x4d5909(0xdd)](_0x4d5909(0xdb))});return{'ok':!![],'data':{'operation':_0x4d5909(0xe8),'selector':{'appCode':_0x2e1b3d[_0x4d5909(0xe7)],'revision':_0x1ba1de[_0x4d5909(0xd4)]},'filePath':_0x203032['policyFilePath'],'relativePath':_0x203032[_0x4d5909(0xd9)],'action':_0x3b11f2[_0x4d5909(0xec)],'configHash':_0x1ba1de[_0x4d5909(0xe6)]},'message':(_0x3b11f2[_0x4d5909(0xec)]==='unchanged'?_0x4d5909(0xd5):_0x4d5909(0xe1))+_0x4d5909(0xea)+_0x1ba1de[_0x4d5909(0xd4)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x2ba018=a144_0x2a4e;(function(_0x45131a,_0x4e1a90){const _0x5f2b54=a144_0x2a4e,_0x2aa0dd=_0x45131a();while(!![]){try{const _0x90af51=-parseInt(_0x5f2b54(0x14a))/0x1+-parseInt(_0x5f2b54(0x151))/0x2*(-parseInt(_0x5f2b54(0x14e))/0x3)+parseInt(_0x5f2b54(0x147))/0x4+-parseInt(_0x5f2b54(0x14b))/0x5*(parseInt(_0x5f2b54(0x145))/0x6)+parseInt(_0x5f2b54(0x150))/0x7*(parseInt(_0x5f2b54(0x154))/0x8)+parseInt(_0x5f2b54(0x14c))/0x9*(-parseInt(_0x5f2b54(0x14d))/0xa)+parseInt(_0x5f2b54(0x146))/0xb;if(_0x90af51===_0x4e1a90)break;else _0x2aa0dd['push'](_0x2aa0dd['shift']());}catch(_0x5d2f76){_0x2aa0dd['push'](_0x2aa0dd['shift']());}}}(a144_0x43e5,0xd4a41));function a144_0x2a4e(_0x1cf103,_0x562c44){_0x1cf103=_0x1cf103-0x145;const _0x43e505=a144_0x43e5();let _0x2a4ea7=_0x43e505[_0x1cf103];return _0x2a4ea7;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x43e5(){const _0x448789=['appCode','314922xfgHXO','55OAXecM','9CVBoxt','2163600MErCud','3QQKLYc','instant-api-policy','3871679WAxUul','542408nzXQeE','revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20','8WYfnDy','749772uUzxOw','15223846rGUhua','2274216gyebrs','read'];a144_0x43e5=function(){return _0x448789;};return a144_0x43e5();}export const instantApiPolicyRevision={'service':a144_0x2ba018(0x14f),'command':a144_0x2ba018(0x152),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0x2ba018(0x148),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x2e70f6){readRevision(_0x2e70f6);},async 'execute'(_0x5e3179){const _0x41b37b=a144_0x2ba018,_0x562bf8=readRevision(_0x5e3179),_0x846d4c=await getInstantApiPolicyRevision(_0x5e3179[_0x41b37b(0x149)],_0x562bf8);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x846d4c)},'message':_0x41b37b(0x153)+_0x562bf8};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x5f3e4c=a145_0x2b51;(function(_0x2a0dc2,_0xc30f8e){const _0x23c8cc=a145_0x2b51,_0x58c0c8=_0x2a0dc2();while(!![]){try{const _0x5e474f=-parseInt(_0x23c8cc(0x119))/0x1*(-parseInt(_0x23c8cc(0x11a))/0x2)+-parseInt(_0x23c8cc(0x118))/0x3+parseInt(_0x23c8cc(0x116))/0x4*(-parseInt(_0x23c8cc(0x11d))/0x5)+parseInt(_0x23c8cc(0x11f))/0x6+-parseInt(_0x23c8cc(0x125))/0x7+parseInt(_0x23c8cc(0x120))/0x8+parseInt(_0x23c8cc(0x124))/0x9*(parseInt(_0x23c8cc(0x11e))/0xa);if(_0x5e474f===_0xc30f8e)break;else _0x58c0c8['push'](_0x58c0c8['shift']());}catch(_0x3a3614){_0x58c0c8['push'](_0x58c0c8['shift']());}}}(a145_0x2fd8,0x781ca));function a145_0x2fd8(){const _0x1bd588=['135VLmHfW','1020BwTLer','5433936VNNrhP','156992EwKuAM','map','instant-api-policy','appCode','49977Bsxpdk','3031350dTnuwT','105292dGMVWp','revisions','1665984fEpQhK','293RPEQQp','4774NDJRwo','length','List\x20immutable\x20Instant\x20API\x20policy\x20revisions'];a145_0x2fd8=function(){return _0x1bd588;};return a145_0x2fd8();}function a145_0x2b51(_0x5a62ae,_0x3fe819){_0x5a62ae=_0x5a62ae-0x116;const _0x2fd835=a145_0x2fd8();let _0x2b516a=_0x2fd835[_0x5a62ae];return _0x2b516a;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x5f3e4c(0x122),'command':a145_0x5f3e4c(0x117),'description':a145_0x5f3e4c(0x11c),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2b919a){const _0x5c7ce0=a145_0x5f3e4c,_0x4d01fb=await listInstantApiPolicyRevisions(_0x2b919a[_0x5c7ce0(0x123)]);return{'ok':!![],'data':{'appCode':_0x2b919a[_0x5c7ce0(0x123)],'total':_0x4d01fb[_0x5c7ce0(0x11b)],'revisions':_0x4d01fb[_0x5c7ce0(0x121)](projectRevisionSummary)},'message':'Found\x20'+_0x4d01fb['length']+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x47627f=a146_0x73ad;(function(_0x19048e,_0x426733){const _0x1de542=a146_0x73ad,_0x21139d=_0x19048e();while(!![]){try{const _0x422ce3=-parseInt(_0x1de542(0x130))/0x1+parseInt(_0x1de542(0x131))/0x2+parseInt(_0x1de542(0x137))/0x3*(parseInt(_0x1de542(0x150))/0x4)+-parseInt(_0x1de542(0x151))/0x5*(-parseInt(_0x1de542(0x149))/0x6)+parseInt(_0x1de542(0x133))/0x7*(-parseInt(_0x1de542(0x141))/0x8)+parseInt(_0x1de542(0x142))/0x9+-parseInt(_0x1de542(0x145))/0xa;if(_0x422ce3===_0x426733)break;else _0x21139d['push'](_0x21139d['shift']());}catch(_0x5d9421){_0x21139d['push'](_0x21139d['shift']());}}}(a146_0x1733,0x76fb4));function a146_0x73ad(_0x5a397b,_0x2be8c4){_0x5a397b=_0x5a397b-0x12f;const _0x1733b5=a146_0x1733();let _0x73adde=_0x1733b5[_0x5a397b];return _0x73adde;}function a146_0x1733(){const _0x57d8e9=['/rollback','instant_api_policy_rollback_outcome_unknown','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','56YLyVbC','1095cgfVxi','appCode','instant_api_policy_not_configured','all','Inspect\x20with\x20`','526776lOVLzN','158410GsqvWX','expectedRevision','266marifl','POST','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','verified','176832vNGLXa','planned','rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','push','revision','changeSummary','cause','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','instant_api_policy_rollback_verification_unavailable','41936iLuqUF','2715111kQfqpr','target','\x20forward\x20to\x20revision\x20','3320110KbbCPq','`;\x20do\x20not\x20resubmit\x20automatically.','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','high-risk-write','9294MPCFWz','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','before','configHash'];a146_0x1733=function(){return _0x57d8e9;};return a146_0x1733();}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';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(_0x1718d0){const _0xc76bab=a146_0x73ad,_0x167d29=readRevision(_0x1718d0),_0x7a0ee0=readChangeSummary(_0x1718d0),_0x400320=readExpectedRevision(_0x1718d0),[_0x733ad2,_0x220ad0]=await Promise[_0xc76bab(0x154)]([getCurrentInstantApiPolicy(_0x1718d0['appCode']),getInstantApiPolicyRevision(_0x1718d0[_0xc76bab(0x152)],_0x167d29)]);if(!_0x733ad2)throw instantApiPolicyError(_0xc76bab(0x153),_0xc76bab(0x14f)+_0x1718d0[_0xc76bab(0x152)]+'.');return assertExpectedRevision(_0x733ad2,_0x400320),{'revision':_0x167d29,'changeSummary':_0x7a0ee0,'expectedRevision':_0x400320,'before':_0x733ad2,'target':_0x220ad0};}export const instantApiPolicyRollback={'service':'instant-api-policy','command':a146_0x47627f(0x139),'description':a146_0x47627f(0x135),'risk':a146_0x47627f(0x148),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x47627f(0x147),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x3687df){readRevision(_0x3687df),readChangeSummary(_0x3687df),readExpectedRevision(_0x3687df);},async 'dryRun'(_0x646d7a){const _0x520f0=a146_0x47627f,_0x3b6e03=await prepareRollback(_0x646d7a);return asDryRunResult({'operation':_0x520f0(0x139),'selector':{'appCode':_0x646d7a[_0x520f0(0x152)],'sourceRevision':_0x3b6e03[_0x520f0(0x13c)]},'before':projectCurrentPolicy(_0x3b6e03[_0x520f0(0x14b)]),'after':{'revision':_0x3b6e03['before'][_0x520f0(0x13c)]+0x1,'sourceRevision':projectRevisionDetail(_0x3b6e03[_0x520f0(0x143)])},'dryRun':!![],'backend':{'method':_0x520f0(0x134),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x3b6e03[_0x520f0(0x132)]),'verification':{'status':_0x520f0(0x138),'expectedRevision':_0x3b6e03['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x520f0(0x134),'url':INSTANT_API_POLICY_BASE_PATH+_0x520f0(0x14d)});},async 'execute'(_0x64396b){const _0x289d9e=a146_0x47627f,_0x2f17dd=await prepareRollback(_0x64396b);let _0x467f76=![];try{await rollbackInstantApiPolicy({'appCode':_0x64396b[_0x289d9e(0x152)],'revision':_0x2f17dd['revision'],..._0x2f17dd[_0x289d9e(0x13d)]?{'changeSummary':_0x2f17dd['changeSummary']}:{}});}catch(_0x5ef019){if(!isPlatformTransportFailure(_0x5ef019))throw _0x5ef019;_0x467f76=!![];}let _0x4e229d;try{_0x4e229d=await getCurrentInstantApiPolicy(_0x64396b['appCode']);}catch(_0x3fced2){const _0xd3240=instantApiPolicyError(_0x467f76?_0x289d9e(0x14e):_0x289d9e(0x140),_0x289d9e(0x13a),_0x289d9e(0x12f)+mutationLookupCommand()+_0x289d9e(0x146));Object['defineProperty'](_0xd3240,_0x289d9e(0x13e),{'value':_0x3fced2,'enumerable':![]});throw _0xd3240;}const _0x3ce6e6=_0x4e229d&&_0x4e229d['revision']>_0x2f17dd[_0x289d9e(0x14b)][_0x289d9e(0x13c)],_0x3f9091=_0x4e229d?.[_0x289d9e(0x14c)]===_0x2f17dd['target'][_0x289d9e(0x14c)];if(!_0x4e229d||!_0x3ce6e6||!_0x3f9091)throw instantApiPolicyError(_0x467f76?'instant_api_policy_rollback_outcome_unknown':'instant_api_policy_rollback_verification_failed',_0x289d9e(0x13f),_0x289d9e(0x12f)+mutationLookupCommand()+_0x289d9e(0x146));const _0x32b542=[...expectedRevisionWarnings(_0x2f17dd['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x467f76&&_0x32b542[_0x289d9e(0x13b)](_0x289d9e(0x14a)),{'ok':!![],'data':{'operation':_0x289d9e(0x139),'selector':{'appCode':_0x64396b[_0x289d9e(0x152)],'sourceRevision':_0x2f17dd[_0x289d9e(0x13c)]},'before':projectCurrentPolicy(_0x2f17dd['before']),'after':projectCurrentPolicy(_0x4e229d),'dryRun':![],'backend':{'method':_0x289d9e(0x134),'path':INSTANT_API_POLICY_BASE_PATH+_0x289d9e(0x14d)},'warnings':_0x32b542,'verification':{'status':_0x289d9e(0x136),'recoveredAfterUnknownResponse':_0x467f76,'expectedRevision':_0x2f17dd[_0x289d9e(0x132)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Rolled\x20Instant\x20API\x20policy\x20revision\x20'+_0x2f17dd[_0x289d9e(0x13c)]+_0x289d9e(0x144)+_0x4e229d[_0x289d9e(0x13c)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x194d(_0x1ae34c,_0x553f2f){_0x1ae34c=_0x1ae34c-0x6c;const _0x481845=a147_0x4818();let _0x194dfc=_0x481845[_0x1ae34c];return _0x194dfc;}const a147_0xdbe3a6=a147_0x194d;(function(_0x1b54db,_0x24d247){const _0x1d00cd=a147_0x194d,_0x80e83c=_0x1b54db();while(!![]){try{const _0x231471=parseInt(_0x1d00cd(0x81))/0x1+parseInt(_0x1d00cd(0x8d))/0x2+parseInt(_0x1d00cd(0x6e))/0x3+parseInt(_0x1d00cd(0x83))/0x4*(parseInt(_0x1d00cd(0x9f))/0x5)+-parseInt(_0x1d00cd(0x85))/0x6*(parseInt(_0x1d00cd(0x91))/0x7)+parseInt(_0x1d00cd(0xa1))/0x8+parseInt(_0x1d00cd(0x71))/0x9*(-parseInt(_0x1d00cd(0x8b))/0xa);if(_0x231471===_0x24d247)break;else _0x80e83c['push'](_0x80e83c['shift']());}catch(_0x44864b){_0x80e83c['push'](_0x80e83c['shift']());}}}(a147_0x4818,0xe2061));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0xdbe3a6(0x75);export const RUNTIME_CACHE_WARNING=a147_0xdbe3a6(0x98);export const NON_ATOMIC_EXPECTED_REVISION_WARNING='--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.';export const FORCE_FLAG={'name':a147_0xdbe3a6(0x94),'type':a147_0xdbe3a6(0x93),'default':![],'description':a147_0xdbe3a6(0x76)};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':a147_0xdbe3a6(0x9a),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a147_0xdbe3a6(0x99),'type':a147_0xdbe3a6(0x79),'required':!![],'description':a147_0xdbe3a6(0x7f)};export const EXPECTED_REVISION_FLAG={'name':a147_0xdbe3a6(0x9e),'type':a147_0xdbe3a6(0x79),'required':![],'description':a147_0xdbe3a6(0x6d)};export function requireForceConfirmation(_0xe308ba){const _0x5c7b1b=a147_0xdbe3a6;if(!_0xe308ba[_0x5c7b1b(0x6c)]('force')||_0xe308ba['bool'](_0x5c7b1b(0x89)))return;throw instantApiPolicyError(_0x5c7b1b(0x72),_0x5c7b1b(0x8e),_0x5c7b1b(0x7d));}export function readChangeSummary(_0x461f7a){const _0x246803=a147_0xdbe3a6,_0xafb001=_0x461f7a[_0x246803(0x7e)]('change-summary')[_0x246803(0x97)]();if(!_0xafb001)return undefined;if(_0xafb001['length']>0x7d0)throw instantApiPolicyError(_0x246803(0x7b),_0x246803(0x78));return _0xafb001;}export function readRevision(_0xc662d9){const _0x458d8c=a147_0xdbe3a6,_0x589a4f=_0xc662d9[_0x458d8c(0x8c)]('revision',Number[_0x458d8c(0x7a)]);if(!Number[_0x458d8c(0xa2)](_0x589a4f)||_0x589a4f<=0x0)throw instantApiPolicyError(_0x458d8c(0x95),_0x458d8c(0x86));return _0x589a4f;}export function readExpectedRevision(_0x3ba6cb){const _0xfec68a=a147_0xdbe3a6;if(_0x3ba6cb[_0xfec68a(0x82)](_0xfec68a(0x9e))===undefined)return undefined;const _0x36b068=_0x3ba6cb[_0xfec68a(0x8c)](_0xfec68a(0x9e),Number[_0xfec68a(0x7a)]);if(!Number['isSafeInteger'](_0x36b068)||_0x36b068<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0xfec68a(0x90));return _0x36b068;}export function assertExpectedRevision(_0x1fc25a,_0x23dcec){const _0x92d9ff=a147_0xdbe3a6;if(_0x23dcec===undefined)return;const _0x9e4fa5=_0x1fc25a?.[_0x92d9ff(0x99)]??0x0;if(_0x9e4fa5!==_0x23dcec)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x92d9ff(0x6f),_0x92d9ff(0xa0)+_0x23dcec+_0x92d9ff(0x9b)+_0x9e4fa5+_0x92d9ff(0x88));}export async function readFixedPolicy(_0x491727){const _0x10c860=a147_0xdbe3a6,_0x2893fc=loadInstantApiPolicyLocalConfig(_0x491727[_0x10c860(0x96)]),_0x202759=await readInstantApiPolicyConfigFile(_0x2893fc);return{'local':_0x2893fc,'config':_0x202759};}export function projectCurrentPolicy(_0x438f7c){const _0x19f5f1=a147_0xdbe3a6;if(!_0x438f7c)return null;return{'id':_0x438f7c['id'],'appCode':_0x438f7c['appCode'],'revision':_0x438f7c[_0x19f5f1(0x99)],'configHash':_0x438f7c[_0x19f5f1(0x8a)],'enabled':_0x438f7c[_0x19f5f1(0x74)],'config':_0x438f7c[_0x19f5f1(0x84)],'createUserId':_0x438f7c['createUserId']??null,'updateUserId':_0x438f7c[_0x19f5f1(0x77)]??null,'gmtCreate':_0x438f7c[_0x19f5f1(0x9c)]??null,'gmtModified':_0x438f7c[_0x19f5f1(0x8f)]??null};}function a147_0x4818(){const _0x3abe7a=['The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','changeSummary','6605181grZKIr','instant_api_policy_force_confirmation_required','instantApi','enabled','/smartapi/instant-api-policy','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','updateUserId','--change-summary\x20cannot\x20exceed\x202000\x20characters.','number','NaN','instant_api_policy_change_summary_invalid','operatorId','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','str','Positive\x20published\x20policy\x20revision','rules','266211ScioIZ','flag','9668wvEUCi','config','12EAMpYP','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','policyId','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','yes','configHash','10SZLQwj','num','459478LRLoFg','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','gmtModified','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','2184518qtklVs','defaults','boolean','force','instant_api_policy_revision_invalid','appCode','trim','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','revision','string',';\x20current\x20revision\x20is\x20','gmtCreate','version','expected-revision','670ZOErhv','Expected\x20revision\x20','1524432wdBwge','isSafeInteger','bool','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','3820404jfVmYz'];a147_0x4818=function(){return _0x3abe7a;};return a147_0x4818();}export function projectRevisionSummary(_0x173bee){const _0x45d75a=a147_0xdbe3a6;return{'id':_0x173bee['id'],'policyId':_0x173bee[_0x45d75a(0x87)],'appCode':_0x173bee[_0x45d75a(0x96)],'revision':_0x173bee[_0x45d75a(0x99)],'configHash':_0x173bee[_0x45d75a(0x8a)],'changeType':_0x173bee['changeType'],'changeSummary':_0x173bee[_0x45d75a(0x70)]??null,'operatorId':_0x173bee[_0x45d75a(0x7c)]??null,'gmtCreate':_0x173bee[_0x45d75a(0x9c)]??null,'version':_0x173bee[_0x45d75a(0x84)][_0x45d75a(0x9d)],'defaultAction':_0x173bee['config'][_0x45d75a(0x92)][_0x45d75a(0x73)],'ruleCount':_0x173bee[_0x45d75a(0x84)][_0x45d75a(0x80)]?.['length']??0x0};}export function projectRevisionDetail(_0xa43229){const _0x5d666e=a147_0xdbe3a6;return{...projectRevisionSummary(_0xa43229),'config':_0xa43229[_0x5d666e(0x84)]};}export function expectedRevisionWarnings(_0x3af6ec){return _0x3af6ec===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a148_0x4bc61e=a148_0x5de9;function a148_0x406c(){const _0xccabe1=['176180WeTuXK','1701MnokqY','normalizedConfig','appCode','validate','read','3vUbfiU','913rSqIap','4920UodyXL','/validate','11964tFWuHS','4792awbCiM','policyFilePath','311604WVSbzT','POST','517996UXNDUF','Validated\x20Instant\x20API\x20policy\x20for\x20','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','policyRelativePath','104912CbhWLj','15DDKGPI','configHash','valid','18Bwczsp'];a148_0x406c=function(){return _0xccabe1;};return a148_0x406c();}(function(_0x2aa9cd,_0x17c9cb){const _0xb0b5b8=a148_0x5de9,_0x2b2e93=_0x2aa9cd();while(!![]){try{const _0x3168b0=parseInt(_0xb0b5b8(0xb2))/0x1+parseInt(_0xb0b5b8(0xa7))/0x2+parseInt(_0xb0b5b8(0xa5))/0x3*(parseInt(_0xb0b5b8(0xae))/0x4)+parseInt(_0xb0b5b8(0xb3))/0x5*(-parseInt(_0xb0b5b8(0xac))/0x6)+parseInt(_0xb0b5b8(0xa0))/0x7*(parseInt(_0xb0b5b8(0xaa))/0x8)+-parseInt(_0xb0b5b8(0xb6))/0x9*(parseInt(_0xb0b5b8(0xb7))/0xa)+-parseInt(_0xb0b5b8(0xa6))/0xb*(parseInt(_0xb0b5b8(0xa9))/0xc);if(_0x3168b0===_0x17c9cb)break;else _0x2b2e93['push'](_0x2b2e93['shift']());}catch(_0x34091a){_0x2b2e93['push'](_0x2b2e93['shift']());}}}(a148_0x406c,0x1a85f));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';function a148_0x5de9(_0x1c5593,_0x5a1bd7){_0x1c5593=_0x1c5593-0xa0;const _0x406c37=a148_0x406c();let _0x5de94c=_0x406c37[_0x1c5593];return _0x5de94c;}export const instantApiPolicyValidate={'service':'instant-api-policy','command':a148_0x4bc61e(0xa3),'description':a148_0x4bc61e(0xb0),'risk':a148_0x4bc61e(0xa4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0xbbf81d){const _0x583142=a148_0x4bc61e,{local:_0x224f33,config:_0x36f6cf}=await readFixedPolicy(_0xbbf81d),_0x1705fb=await validateInstantApiPolicy({'appCode':_0xbbf81d[_0x583142(0xa2)],'config':_0x36f6cf});return{'ok':!![],'data':{'operation':_0x583142(0xa3),'selector':{'appCode':_0xbbf81d[_0x583142(0xa2)]},'filePath':_0x224f33[_0x583142(0xab)],'relativePath':_0x224f33[_0x583142(0xb1)],'valid':_0x1705fb[_0x583142(0xb5)],'configHash':_0x1705fb[_0x583142(0xb4)],'normalizedConfig':_0x1705fb[_0x583142(0xa1)],'backend':{'method':_0x583142(0xad),'path':INSTANT_API_POLICY_BASE_PATH+_0x583142(0xa8)}},'message':_0x583142(0xaf)+_0xbbf81d[_0x583142(0xa2)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2862f4,_0xae873){const _0x1e82fa=a149_0x8ed4,_0x235d63=_0x2862f4();while(!![]){try{const _0x254957=-parseInt(_0x1e82fa(0x16b))/0x1*(parseInt(_0x1e82fa(0x166))/0x2)+-parseInt(_0x1e82fa(0x161))/0x3*(parseInt(_0x1e82fa(0x169))/0x4)+parseInt(_0x1e82fa(0x160))/0x5*(parseInt(_0x1e82fa(0x168))/0x6)+parseInt(_0x1e82fa(0x164))/0x7*(parseInt(_0x1e82fa(0x162))/0x8)+parseInt(_0x1e82fa(0x165))/0x9+-parseInt(_0x1e82fa(0x163))/0xa*(parseInt(_0x1e82fa(0x167))/0xb)+-parseInt(_0x1e82fa(0x16a))/0xc;if(_0x254957===_0xae873)break;else _0x235d63['push'](_0x235d63['shift']());}catch(_0x2ed788){_0x235d63['push'](_0x235d63['shift']());}}}(a149_0x1bfe,0xcb917));import{issueReport}from'../../commands/issue/report.js';function a149_0x8ed4(_0x479df7,_0x494bef){_0x479df7=_0x479df7-0x160;const _0x1bfed8=a149_0x1bfe();let _0x8ed44e=_0x1bfed8[_0x479df7];return _0x8ed44e;}function a149_0x1bfe(){const _0x5ee8ff=['6642852IVgMTG','1492ROPciP','30gRhQaI','348903ltGkhF','7359256auHTKQ','590dIWScv','7ZfEhpL','7474635WPueVP','718nLFWGg','14047aNAFCJ','596838mzKAbG','12HODOwu'];a149_0x1bfe=function(){return _0x5ee8ff;};return a149_0x1bfe();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x3b4b5f=a150_0x4752;(function(_0x40260f,_0x4d367b){const _0x5d3ee2=a150_0x4752,_0x1c02ee=_0x40260f();while(!![]){try{const _0x2c952a=parseInt(_0x5d3ee2(0x1c9))/0x1+parseInt(_0x5d3ee2(0x1ba))/0x2*(-parseInt(_0x5d3ee2(0x1b4))/0x3)+parseInt(_0x5d3ee2(0x1c7))/0x4+-parseInt(_0x5d3ee2(0x1bd))/0x5*(parseInt(_0x5d3ee2(0x1b5))/0x6)+parseInt(_0x5d3ee2(0x1b8))/0x7+parseInt(_0x5d3ee2(0x1ad))/0x8+-parseInt(_0x5d3ee2(0x1b0))/0x9;if(_0x2c952a===_0x4d367b)break;else _0x1c02ee['push'](_0x1c02ee['shift']());}catch(_0x1e131e){_0x1c02ee['push'](_0x1c02ee['shift']());}}}(a150_0x15c1,0x29685));import{CliError}from'../../errors.js';function a150_0x15c1(){const _0x1dde7e=['length','auth_required','\x22\x20\x5c','cancelled','not_in_project','1567208NVjiba','has','report','51192ANZiGw','=1\x20to\x20silence\x20this\x20hint.','write','RABETBASE_DISABLE_ISSUE_NUDGE','210006rhPMUE','20130MepqBi','network_error','stderr','1971368uAaAMK','Hit\x20a\x20','4zkVUKp','replace','config_missing','505KVoqik','unknown_command','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','join','\x20\x20\x20\x20--title\x20\x22','service','command','slice','validation_error','code','379632oUxMdo','\x20\x20Set\x20','81719vrdHQP','\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a150_0x15c1=function(){return _0x1dde7e;};return a150_0x15c1();}function a150_0x4752(_0x1b660a,_0x47fe79){_0x1b660a=_0x1b660a-0x1a6;const _0x15c1d0=a150_0x15c1();let _0x475211=_0x15c1d0[_0x1b660a];return _0x475211;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x3b4b5f(0x1b3);const NUDGE_SUPPRESSED_CODES=new Set([a150_0x3b4b5f(0x1ab),a150_0x3b4b5f(0x1a9),a150_0x3b4b5f(0x1bc),a150_0x3b4b5f(0x1ac),a150_0x3b4b5f(0x1be),'flag_missing',a150_0x3b4b5f(0x1c5),a150_0x3b4b5f(0x1b6)]),defaultWriter=_0x210922=>{const _0x226053=a150_0x3b4b5f;process[_0x226053(0x1b7)][_0x226053(0x1b2)](_0x210922);};export function shouldNudgeForError(_0x56f702,_0x54aa98){const _0x2de9cc=a150_0x3b4b5f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x54aa98[_0x2de9cc(0x1c2)]==='issue'&&_0x54aa98[_0x2de9cc(0x1c3)]===_0x2de9cc(0x1af))return![];if(_0x56f702 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2de9cc(0x1ae)](_0x56f702[_0x2de9cc(0x1c6)]);return!![];}export function printIssueReportNudgeForError(_0xfdace2,_0x5584ea,_0x334316=defaultWriter){if(!shouldNudgeForError(_0xfdace2,_0x5584ea))return;const _0x4d8f74=buildSuggestedTitle(_0xfdace2,_0x5584ea);_0x334316(formatNudge(_0x4d8f74));}function buildSuggestedTitle(_0x4f1fc4,_0x21446f){const _0x229be9=a150_0x3b4b5f,_0x5e4edd=_0x4f1fc4 instanceof Error?_0x4f1fc4['message']:String(_0x4f1fc4),_0x450e89=_0x5e4edd[_0x229be9(0x1bb)](/[\r\n]+/g,'\x20')[_0x229be9(0x1bb)](/\s+/g,'\x20')['trim']()[_0x229be9(0x1c4)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x438248=CLI_BIN_NAME+'\x20'+_0x21446f['service']+'\x20'+_0x21446f[_0x229be9(0x1c3)];return _0x450e89[_0x229be9(0x1a8)]>0x0?_0x438248+':\x20'+_0x450e89:_0x438248;}function formatNudge(_0x26a686){const _0x31c650=a150_0x3b4b5f;return['',_0x31c650(0x1b9)+CLI_BIN_NAME+_0x31c650(0x1a6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x31c650(0x1c1)+_0x26a686+_0x31c650(0x1aa),_0x31c650(0x1a7),_0x31c650(0x1bf),_0x31c650(0x1c8)+NUDGE_OPT_OUT_ENV+_0x31c650(0x1b1),''][_0x31c650(0x1c0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a151_0x387f2f=a151_0x5491;(function(_0x81198c,_0x499717){const _0x42fdd7=a151_0x5491,_0x1383cc=_0x81198c();while(!![]){try{const _0xa792a9=parseInt(_0x42fdd7(0x1e8))/0x1+-parseInt(_0x42fdd7(0x1c5))/0x2+-parseInt(_0x42fdd7(0x1d8))/0x3*(-parseInt(_0x42fdd7(0x1e0))/0x4)+parseInt(_0x42fdd7(0x1f1))/0x5*(-parseInt(_0x42fdd7(0x1c0))/0x6)+parseInt(_0x42fdd7(0x1e4))/0x7*(-parseInt(_0x42fdd7(0x1c2))/0x8)+-parseInt(_0x42fdd7(0x1df))/0x9*(-parseInt(_0x42fdd7(0x1eb))/0xa)+-parseInt(_0x42fdd7(0x1d5))/0xb;if(_0xa792a9===_0x499717)break;else _0x1383cc['push'](_0x1383cc['shift']());}catch(_0xfedf0d){_0x1383cc['push'](_0x1383cc['shift']());}}}(a151_0x3f1d,0x4485d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a151_0x5491(_0x1d4a26,_0x3811c6){_0x1d4a26=_0x1d4a26-0x1b4;const _0x3f1d72=a151_0x3f1d();let _0x5491ad=_0x3f1d72[_0x1d4a26];return _0x5491ad;}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_0x387f2f(0x1be);export const issueReport={'service':a151_0x387f2f(0x1e6),'command':a151_0x387f2f(0x1ef),'description':a151_0x387f2f(0x1d9),'risk':a151_0x387f2f(0x1c8),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0x387f2f(0x1ba),'flags':[{'name':a151_0x387f2f(0x1ca),'type':a151_0x387f2f(0x1b4),'required':!![],'description':a151_0x387f2f(0x1bf)},{'name':'description','type':a151_0x387f2f(0x1b4),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0x387f2f(0x1b4),'description':a151_0x387f2f(0x1e9)}],async 'validate'(_0x2c835){const _0x9397e0=a151_0x387f2f,_0x439744=_0x2c835[_0x9397e0(0x1b9)](_0x9397e0(0x1ca))[_0x9397e0(0x1ec)](),_0x3d91e5=_0x2c835[_0x9397e0(0x1b9)](_0x9397e0(0x1d7))[_0x9397e0(0x1ec)](),_0x162f19=_0x2c835['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x439744)throw CliErrors['flagMissing'](_0x9397e0(0x1ca),_0x9397e0(0x1cb));const _0x108175=_0x3d91e5[_0x9397e0(0x1ee)]>0x0,_0x1141ab=_0x162f19['length']>0x0;if(_0x108175===_0x1141ab)throw CliErrors[_0x9397e0(0x1e7)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x9397e0(0x1d0));if(_0x1141ab){const _0x2f9a29=resolve(process['cwd'](),_0x162f19);if(!existsSync(_0x2f9a29))throw CliErrors[_0x9397e0(0x1e7)](_0x9397e0(0x1d3)+_0x2f9a29);}},async 'dryRun'(_0xc90b20){const _0x809f09=a151_0x387f2f,_0x3ad337=await prepareIssueReport(_0xc90b20);return{'method':_0x809f09(0x1d2),'url':_0x809f09(0x1ce)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3ad337['title'],'issue.description':_0x3ad337[_0x809f09(0x1d7)],'issue.description_original_bytes':_0x3ad337['sanitize'][_0x809f09(0x1dc)],'issue.description_truncated':_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c9)],'issue.description_redactions':_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c4)],'issue.description_redaction_kinds':_0x3ad337['sanitize'][_0x809f09(0x1f3)][_0x809f09(0x1ed)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x809f09(0x1e1)+_0x3ad337[_0x809f09(0x1dd)],_0x3ad337[_0x809f09(0x1d4)]?'descriptionFile:\x20'+_0x3ad337['descriptionFilePath']:null,_0x3ad337[_0x809f09(0x1d6)]['truncated']?_0x809f09(0x1cc)+_0x3ad337[_0x809f09(0x1d6)]['originalBytes']+_0x809f09(0x1c6):null,_0x3ad337[_0x809f09(0x1d6)]['redactionCount']>0x0?'redactions:\x20'+_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c4)]+'\x20('+_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1f3)][_0x809f09(0x1ed)](',\x20')+')':null][_0x809f09(0x1c3)](Boolean)[_0x809f09(0x1ed)]('\x0a')};},async 'execute'(_0x45212f){const _0x1d4cb3=a151_0x387f2f,_0x4cf96f=await prepareIssueReport(_0x45212f);try{await sendPlatformIssueCollectLog({'title':_0x4cf96f[_0x1d4cb3(0x1ca)],'description':_0x4cf96f[_0x1d4cb3(0x1d7)],'sanitize':{'originalBytes':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1dc)],'truncated':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c9)],'redactionCount':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c4)],'redactionKinds':_0x4cf96f['sanitize'][_0x1d4cb3(0x1f3)]}});}catch(_0x5e4bcf){throw CliErrors['apiError'](_0x1d4cb3(0x1ea)+(_0x5e4bcf instanceof Error?_0x5e4bcf[_0x1d4cb3(0x1d1)]:String(_0x5e4bcf)),_0x1d4cb3(0x1f2));}return{'ok':!![],'message':buildResultMessage(_0x4cf96f[_0x1d4cb3(0x1d6)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1d4cb3(0x1bb),'issue.description',_0x1d4cb3(0x1db),_0x1d4cb3(0x1cf),'issue.description_redactions',_0x1d4cb3(0x1b6)],'issue':{'title':_0x4cf96f[_0x1d4cb3(0x1ca)],'descriptionLength':_0x4cf96f[_0x1d4cb3(0x1d7)][_0x1d4cb3(0x1ee)],'descriptionSource':_0x4cf96f[_0x1d4cb3(0x1dd)],..._0x4cf96f['descriptionFilePath']?{'descriptionFile':_0x4cf96f[_0x1d4cb3(0x1d4)]}:{},'sanitize':{'originalBytes':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1dc)],'truncated':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c9)],'redactions':_0x4cf96f[_0x1d4cb3(0x1d6)]['redactionCount'],'redactionKinds':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1f3)]}}}};}};function a151_0x3f1d(){const _0x34d1c2=['187453CKfwVY','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','10yIgIEp','trim','join','length','report','redacted\x20','265NbOYMR','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactionKinds','string','Issue\x20description\x20file\x20is\x20empty:\x20','issue.description_redaction_kinds','truncated\x20from\x20','Platform\x20issue\x20reported','str','compress','issue.title','file','Platform\x20issue\x20reported\x20(','description-file','One-line\x20issue\x20summary','28164MhtqLg','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','559312IcfMVU','filter','redactionCount','316824EoKEMu','\x20bytes','push','write','truncated','title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','truncated:\x20original\x20','inline','otel://','issue.description_truncated','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','message','POST','File\x20not\x20found:\x20','descriptionFilePath','415624snLcZp','sanitize','description','339aqoZfu','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','utf8','issue.description_original_bytes','originalBytes','descriptionSource','Issue\x20description\x20cannot\x20be\x20empty.','2791143EzGrgH','10548VFuojP','descriptionSource:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','\x20secret(s):\x20','7jqIjOP','cwd','issue','validation'];a151_0x3f1d=function(){return _0x34d1c2;};return a151_0x3f1d();}function buildResultMessage(_0x47af64){const _0x6485c4=a151_0x387f2f,_0x3a9c1c=[];return _0x47af64[_0x6485c4(0x1c9)]&&_0x3a9c1c['push'](_0x6485c4(0x1b7)+_0x47af64[_0x6485c4(0x1dc)]+'\x20bytes'),_0x47af64[_0x6485c4(0x1c4)]>0x0&&_0x3a9c1c[_0x6485c4(0x1c7)](_0x6485c4(0x1f0)+_0x47af64[_0x6485c4(0x1c4)]+_0x6485c4(0x1e3)+_0x47af64[_0x6485c4(0x1f3)][_0x6485c4(0x1ed)](',\x20')),_0x3a9c1c['length']===0x0?_0x6485c4(0x1b8):_0x6485c4(0x1bd)+_0x3a9c1c[_0x6485c4(0x1ed)](';\x20')+')';}async function prepareIssueReport(_0x5262c7){const _0x3b18a5=a151_0x387f2f,_0x230d1d=_0x5262c7[_0x3b18a5(0x1b9)](_0x3b18a5(0x1ca))[_0x3b18a5(0x1ec)](),_0x49139c=_0x5262c7[_0x3b18a5(0x1b9)](_0x3b18a5(0x1d7)),_0x5953c2=_0x5262c7[_0x3b18a5(0x1b9)](DESCRIPTION_FILE_FLAG)[_0x3b18a5(0x1ec)]();if(!_0x5953c2){const _0x580531=_0x49139c;if(!_0x580531['trim']())throw CliErrors[_0x3b18a5(0x1e7)](_0x3b18a5(0x1de),_0x3b18a5(0x1c1));const _0x43ca6d=sanitizeIssueDescription(_0x580531);return{'title':_0x230d1d,'description':_0x43ca6d[_0x3b18a5(0x1d7)],'descriptionSource':_0x3b18a5(0x1cd),'sanitize':_0x43ca6d};}const _0x42d1b3=resolve(process[_0x3b18a5(0x1e5)](),_0x5953c2),_0xd6cc09=await readFile(_0x42d1b3,_0x3b18a5(0x1da));if(!_0xd6cc09[_0x3b18a5(0x1ec)]())throw CliErrors[_0x3b18a5(0x1e7)](_0x3b18a5(0x1b5)+_0x42d1b3,_0x3b18a5(0x1e2));const _0x5afe97=sanitizeIssueDescription(_0xd6cc09);return{'title':_0x230d1d,'description':_0x5afe97['description'],'descriptionSource':_0x3b18a5(0x1bc),'descriptionFilePath':_0x42d1b3,'sanitize':_0x5afe97};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x1310(_0x3e8c4d,_0x316b66){_0x3e8c4d=_0x3e8c4d-0xb0;const _0x49f9d4=a152_0x49f9();let _0x131076=_0x49f9d4[_0x3e8c4d];return _0x131076;}const a152_0x286d76=a152_0x1310;(function(_0x5d1f85,_0x2f4d44){const _0x5aa125=a152_0x1310,_0x21c1ae=_0x5d1f85();while(!![]){try{const _0x564437=parseInt(_0x5aa125(0xce))/0x1+parseInt(_0x5aa125(0xc4))/0x2*(-parseInt(_0x5aa125(0xc6))/0x3)+parseInt(_0x5aa125(0xc7))/0x4*(-parseInt(_0x5aa125(0xc2))/0x5)+parseInt(_0x5aa125(0xc0))/0x6+parseInt(_0x5aa125(0xcb))/0x7*(-parseInt(_0x5aa125(0xb9))/0x8)+-parseInt(_0x5aa125(0xba))/0x9*(-parseInt(_0x5aa125(0xb8))/0xa)+-parseInt(_0x5aa125(0xd3))/0xb*(-parseInt(_0x5aa125(0xcd))/0xc);if(_0x564437===_0x2f4d44)break;else _0x21c1ae['push'](_0x21c1ae['shift']());}catch(_0x4f4c20){_0x21c1ae['push'](_0x21c1ae['shift']());}}}(a152_0x49f9,0x27843));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a152_0x286d76(0xd2),REDACTION_RULES=[{'kind':a152_0x286d76(0xc1),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x286d76(0xb2)},{'kind':a152_0x286d76(0xb7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x286d76(0xc9)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x286d76(0xcf)},{'kind':a152_0x286d76(0xb3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x286d76(0xb1)},{'kind':a152_0x286d76(0xc3),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x286d76(0xb4)},{'kind':a152_0x286d76(0xbf),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a152_0x286d76(0xd1)}];export function sanitizeIssueDescription(_0x2796dc){const _0x2ca7c0=a152_0x286d76,_0x17383c=Buffer[_0x2ca7c0(0xb6)](_0x2796dc,_0x2ca7c0(0xb5)),_0x4933a7=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3814fe=_0x2796dc,_0x23d240=0x0;const _0x5b71a3=[];if(!_0x4933a7){const _0x354537=protectOssAccessKeyIds(_0x3814fe);_0x3814fe=_0x354537[_0x2ca7c0(0xb0)];for(const _0x37ad66 of REDACTION_RULES){let _0x18d7ab=0x0;_0x3814fe=_0x3814fe['replace'](_0x37ad66['pattern'],(_0x42165c,_0x1c73f2)=>{const _0x4ca549=_0x2ca7c0;_0x18d7ab+=0x1;const _0x2da927=typeof _0x1c73f2===_0x4ca549(0xbd)?_0x1c73f2:'';return _0x2da927+'['+_0x37ad66[_0x4ca549(0xd4)]+']';}),_0x18d7ab>0x0&&(_0x23d240+=_0x18d7ab,!_0x5b71a3[_0x2ca7c0(0xc5)](_0x37ad66[_0x2ca7c0(0xd0)])&&_0x5b71a3[_0x2ca7c0(0xcc)](_0x37ad66[_0x2ca7c0(0xd0)]));}_0x3814fe=_0x354537['restore'](_0x3814fe);}let _0x3f7957=![];if(Buffer[_0x2ca7c0(0xb6)](_0x3814fe,_0x2ca7c0(0xb5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f7957=!![];const _0x27594c=Buffer[_0x2ca7c0(0xb6)](TRUNCATION_NOTICE,_0x2ca7c0(0xb5)),_0x3d1f5a=Math[_0x2ca7c0(0xbe)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x27594c);_0x3814fe=sliceUtf8Bytes(_0x3814fe,_0x3d1f5a)+TRUNCATION_NOTICE;}return{'description':_0x3814fe,'originalBytes':_0x17383c,'truncated':_0x3f7957,'redactionCount':_0x23d240,'redactionKinds':_0x5b71a3};}function protectOssAccessKeyIds(_0x55a5e3){const _0xe31b47=a152_0x286d76,_0x3a6306=[],_0x4bc5f9=_0x55a5e3[_0xe31b47(0xbb)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x1143fc,_0x58d494)=>{const _0x3aab16=_0xe31b47,_0x7edec8=_0x3a6306[_0x3aab16(0xcc)](_0x1143fc[_0x3aab16(0xc8)](_0x58d494[_0x3aab16(0xca)]))-0x1;return _0x58d494+'__RB_OSS_ID_'+_0x7edec8+'__';});return{'description':_0x4bc5f9,'restore':_0x77f17=>_0x77f17[_0xe31b47(0xbb)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x389605,_0x5ce1b9,_0x223ce4)=>{const _0x403b9b=_0x3a6306[Number(_0x223ce4)];return _0x403b9b===undefined?_0x389605:''+_0x5ce1b9+_0x403b9b;})};}function a152_0x49f9(){const _0x525d90=['utf8','byteLength','authorization','120KPbOoT','50152MQpKUj','18099ftdJjD','replace','subarray','string','max','bearer-jwt','468930NLpCxM','cookie','106705muUWdu','password','274768xQJRgG','includes','3DzoVYF','4BEqVwx','slice','REDACTED:authorization','length','357ZgPmqD','push','6319668SifFpq','11377OLMkYn','REDACTED:private-key','kind','REDACTED:bearer-jwt','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','11CDZfHo','label','description','REDACTED:access-key','REDACTED:cookie','access-key','REDACTED:password'];a152_0x49f9=function(){return _0x525d90;};return a152_0x49f9();}function sliceUtf8Bytes(_0x1b8c54,_0x113586){const _0x55a820=a152_0x286d76;if(_0x113586<=0x0)return'';const _0x129c8f=Buffer['from'](_0x1b8c54,_0x55a820(0xb5));if(_0x129c8f[_0x55a820(0xb6)]<=_0x113586)return _0x1b8c54;let _0xe1e9da=_0x113586;while(_0xe1e9da>0x0){const _0x22c947=_0x129c8f[_0xe1e9da];if(_0x22c947===undefined||(_0x22c947&0xc0)!==0x80)break;_0xe1e9da-=0x1;}return _0x129c8f[_0x55a820(0xbc)](0x0,_0xe1e9da)['toString'](_0x55a820(0xb5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x3a62fa=a153_0x1d31;function a153_0x1d31(_0x28cc55,_0x620361){_0x28cc55=_0x28cc55-0x1c0;const _0x4b8c36=a153_0x4b8c();let _0x1d31b8=_0x4b8c36[_0x28cc55];return _0x1d31b8;}(function(_0x2510a2,_0x8ef93e){const _0x2ce4b4=a153_0x1d31,_0x2eaa9e=_0x2510a2();while(!![]){try{const _0xb937bb=-parseInt(_0x2ce4b4(0x1d8))/0x1+parseInt(_0x2ce4b4(0x1c4))/0x2+parseInt(_0x2ce4b4(0x1c7))/0x3*(parseInt(_0x2ce4b4(0x1c1))/0x4)+parseInt(_0x2ce4b4(0x1df))/0x5*(-parseInt(_0x2ce4b4(0x1d7))/0x6)+-parseInt(_0x2ce4b4(0x1ce))/0x7+-parseInt(_0x2ce4b4(0x1cc))/0x8*(parseInt(_0x2ce4b4(0x1e6))/0x9)+-parseInt(_0x2ce4b4(0x1e7))/0xa*(-parseInt(_0x2ce4b4(0x1cb))/0xb);if(_0xb937bb===_0x8ef93e)break;else _0x2eaa9e['push'](_0x2eaa9e['shift']());}catch(_0x29869f){_0x2eaa9e['push'](_0x2eaa9e['shift']());}}}(a153_0x4b8c,0x68ef0));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a153_0x4b8c(){const _0x3f4127=['contentHash','\x20with\x20title\x20','231024OEoBOo','create','title','3lAKhpV','string','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','POST','990SEHzjf','1096072XqMmSs','--file\x20is\x20required.','5863487ozcGBz','kb_already_exists','rabetbase\x20kb\x20detail\x20--id\x20','trim','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','company','\x20--format\x20compress`\x20before\x20choosing\x20update.','content','kb_create_outcome_unknown','8358jmfVyd','410640anNVPy','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','appCode','\x20for\x20','\x20--format\x20compress','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Company\x20knowledge\x20base\x20','620BFyQVc','kb_title_required','str','Created\x20company\x20knowledge\x20base\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','file','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','18BpvpHz','217130sZlBKu','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','rabetbase\x20kb\x20list\x20--title\x20','/admin/knowledge-base/create','length','220628BZqZWT'];a153_0x4b8c=function(){return _0x3f4127;};return a153_0x4b8c();}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_0x3a62fa(0x1ea);function readCreateInput(_0x10bba1){const _0x56cccd=a153_0x3a62fa,_0x494546=_0x10bba1[_0x56cccd(0x1e1)](_0x56cccd(0x1c6))[_0x56cccd(0x1d1)]();if(!_0x494546)throw kbError(_0x56cccd(0x1e0),'--title\x20is\x20required.');const _0x4d5399=_0x10bba1[_0x56cccd(0x1e1)](_0x56cccd(0x1e4))['trim']();if(!_0x4d5399)throw kbError('kb_file_required',_0x56cccd(0x1cd),_0x56cccd(0x1e3));return{'title':_0x494546,'file':_0x4d5399};}async function prepareCreate(_0x4b7688){const _0x4cb1c1=a153_0x3a62fa,_0x42ad3f=readCreateInput(_0x4b7688),_0xa89fcf=await readKbFile(_0x42ad3f[_0x4cb1c1(0x1e4)]),_0x63151d=await fetchAllCompanyKnowledgeBases(_0x4b7688,{'title':_0x42ad3f[_0x4cb1c1(0x1c6)]}),_0x4ed803=findExactCompanyKnowledgeBases(_0x63151d,_0x4b7688[_0x4cb1c1(0x1da)],_0x42ad3f[_0x4cb1c1(0x1c6)]);if(_0x4ed803[_0x4cb1c1(0x1c0)]>0x0)throw kbError(_0x4cb1c1(0x1cf),_0x4cb1c1(0x1e5)+_0x4b7688[_0x4cb1c1(0x1da)]+_0x4cb1c1(0x1c3)+_0x42ad3f[_0x4cb1c1(0x1c6)]+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x4ed803[0x0]['id']+_0x4cb1c1(0x1d4));return{..._0x42ad3f,'content':_0xa89fcf};}function plannedAfter(_0x4a9f4f,_0x2c5d0d){const _0x4aa114=a153_0x3a62fa;return{'scope':'company','appCode':_0x4a9f4f[_0x4aa114(0x1da)],'title':_0x2c5d0d['title'],'contentByteSize':_0x2c5d0d['content']['byteSize'],'contentHash':_0x2c5d0d['content'][_0x4aa114(0x1c2)]};}function verifyCreatedState(_0x4cb5fe,_0x44ab96,_0x217a60){const _0x1e7e87=a153_0x3a62fa;assertCompanyKnowledgeBase(_0x217a60,_0x4cb5fe[_0x1e7e87(0x1da)],_0x217a60['id']);const _0x5586a7=inspectKbContent(_0x217a60[_0x1e7e87(0x1d5)]);if(_0x217a60[_0x1e7e87(0x1c6)]!==_0x44ab96[_0x1e7e87(0x1c6)]||_0x5586a7['contentHash']!==_0x44ab96['content'][_0x1e7e87(0x1c2)])throw kbError('kb_verification_failed',_0x1e7e87(0x1de)+_0x217a60['id']+_0x1e7e87(0x1c9),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x217a60['id']+_0x1e7e87(0x1d2));return projectKb(_0x217a60);}export const kbCreate={'service':'kb','command':a153_0x3a62fa(0x1c5),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x3a62fa(0x1c6),'type':a153_0x3a62fa(0x1c8),'required':!![],'description':'Knowledge-base\x20title'},{'name':a153_0x3a62fa(0x1e4),'type':a153_0x3a62fa(0x1c8),'required':!![],'description':a153_0x3a62fa(0x1e8)}],async 'validate'(_0x2b4768){readCreateInput(_0x2b4768);},async 'dryRun'(_0x37898d){const _0x1937b4=a153_0x3a62fa,_0x34721c=await prepareCreate(_0x37898d);return asDryRunResult({'operation':_0x1937b4(0x1c5),'selector':{'scope':_0x1937b4(0x1d3),'appCode':_0x37898d[_0x1937b4(0x1da)],'title':_0x34721c[_0x1937b4(0x1c6)]},'before':null,'after':plannedAfter(_0x37898d,_0x34721c),'dryRun':!![],'backend':{'method':_0x1937b4(0x1ca),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x1937b4(0x1e9)+JSON['stringify'](_0x34721c[_0x1937b4(0x1c6)])+_0x1937b4(0x1dc)}},{'method':_0x1937b4(0x1ca),'url':CREATE_PATH});},async 'execute'(_0x171953){const _0x20751f=a153_0x3a62fa,_0xef40f4=await prepareCreate(_0x171953);let _0x227791,_0x26deec=![];try{const _0x1e604b=await createEnterpriseKnowledgeBase(_0x171953['cookie'],{'appCode':_0x171953[_0x20751f(0x1da)],'title':_0xef40f4[_0x20751f(0x1c6)],'content':_0xef40f4[_0x20751f(0x1d5)][_0x20751f(0x1d5)]});assertCompanyKnowledgeBase(_0x1e604b,_0x171953[_0x20751f(0x1da)],_0x1e604b['id']),_0x227791=_0x1e604b['id'];}catch(_0x3f1faa){if(!isPlatformTransportFailure(_0x3f1faa))throw _0x3f1faa;_0x26deec=!![];}if(_0x227791===undefined){const _0x37232a=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0x171953,{'title':_0xef40f4['title']})),_0x2a2539=findExactCompanyKnowledgeBases(_0x37232a,_0x171953[_0x20751f(0x1da)],_0xef40f4[_0x20751f(0x1c6)]);if(_0x2a2539['length']!==0x1)throw kbError(_0x20751f(0x1d6),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x2a2539[_0x20751f(0x1c0)]+'.',_0x20751f(0x1dd));_0x227791=_0x2a2539[0x0]['id'];}const _0x594ce1=await verifyKbMutationReadback(_0x20751f(0x1c5),_0x26deec,()=>requireKb(_0x171953,_0x227791)),_0x4787b7=verifyCreatedState(_0x171953,_0xef40f4,_0x594ce1),_0x170c42=_0x26deec?[_0x20751f(0x1d9)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x4787b7['id'],'scope':_0x20751f(0x1d3),'appCode':_0x4787b7[_0x20751f(0x1da)]},'before':null,'after':_0x4787b7,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x170c42,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x26deec,'lookupCommand':_0x20751f(0x1d0)+_0x4787b7['id']+'\x20--format\x20compress'}},'message':_0x20751f(0x1e2)+_0x4787b7['id']+_0x20751f(0x1db)+_0x4787b7[_0x20751f(0x1da)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x42f261=a154_0x443e;(function(_0x44c092,_0x3abcdc){const _0x95760a=a154_0x443e,_0x21fa3e=_0x44c092();while(!![]){try{const _0x25a562=-parseInt(_0x95760a(0x1e7))/0x1+parseInt(_0x95760a(0x1cf))/0x2*(-parseInt(_0x95760a(0x1e1))/0x3)+-parseInt(_0x95760a(0x1e6))/0x4+-parseInt(_0x95760a(0x1e4))/0x5+parseInt(_0x95760a(0x1df))/0x6*(parseInt(_0x95760a(0x1ca))/0x7)+-parseInt(_0x95760a(0x1cb))/0x8+parseInt(_0x95760a(0x1e8))/0x9*(parseInt(_0x95760a(0x1eb))/0xa);if(_0x25a562===_0x3abcdc)break;else _0x21fa3e['push'](_0x21fa3e['shift']());}catch(_0xb0ee96){_0x21fa3e['push'](_0x21fa3e['shift']());}}}(a154_0x15d7,0x2127b));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_0x42f261(0x1ec),RAG_WARNING=a154_0x42f261(0x1d9),NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function a154_0x443e(_0x437315,_0x5bb1e0){_0x437315=_0x437315-0x1c8;const _0x15d742=a154_0x15d7();let _0x443e96=_0x15d742[_0x437315];return _0x443e96;}function readExpectedVersion(_0x4cb1ea){const _0x168bce=a154_0x42f261,_0x258d63=_0x4cb1ea[_0x168bce(0x1e9)](_0x168bce(0x1db));if(_0x258d63===undefined)return undefined;const _0x2ddc84=Number(_0x258d63);if(!Number[_0x168bce(0x1d2)](_0x2ddc84)||_0x2ddc84<0x0)throw kbError(_0x168bce(0x1e3),_0x168bce(0x1d1));return _0x2ddc84;}function a154_0x15d7(){const _0xe9e7c8=['8292nCpOmX','Soft-deleted\x20company\x20knowledge\x20base\x20','kb_expected_version_invalid','267330IvAPZR','Company\x20knowledge\x20base\x20','31804EhVBez','243431kTIwtQ','4278879ltKYBq','flag','verified','10TLYBcY','/admin/knowledge-base/delete','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','rabetbase\x20kb\x20detail\x20--id\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','high-risk-write','7OPXuAQ','1379016FTfMtb','cookie','delete','Company\x20knowledge-base\x20id','70vstmin','kb_delete_outcome_unknown','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','isSafeInteger','number','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','unshift','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','\x20remains\x20readable\x20after\x20delete.','company','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','expected-version','appCode','no_op','POST','1406022SNUzWM','\x20--format\x20compress'];a154_0x15d7=function(){return _0xe9e7c8;};return a154_0x15d7();}function noOpData(_0x2f6526,_0x19e1c2,_0xdb331){const _0x6a3aee=a154_0x42f261;return{'operation':_0x6a3aee(0x1dd),'selector':{'id':_0x19e1c2,'scope':_0x6a3aee(0x1d8),'appCode':_0x2f6526[_0x6a3aee(0x1dc)]},'before':null,'after':null,'dryRun':_0xdb331,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':'already_absent','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a154_0x42f261(0x1cd),'description':a154_0x42f261(0x1d6),'risk':a154_0x42f261(0x1c9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a154_0x42f261(0x1ce)},{'name':a154_0x42f261(0x1db),'type':a154_0x42f261(0x1d3),'required':![],'description':a154_0x42f261(0x1ed)}],async 'validate'(_0x347aa6){readKbId(_0x347aa6),readExpectedVersion(_0x347aa6),requireKbExplicitYes(_0x347aa6);},async 'dryRun'(_0x134431){const _0x411a07=a154_0x42f261,_0x1bcd0d=readKbId(_0x134431),_0x19b3e9=readExpectedVersion(_0x134431),_0x9bcd1=await getKbOrNull(_0x134431,_0x1bcd0d);if(!_0x9bcd1)return asDryRunResult(noOpData(_0x134431,_0x1bcd0d,!![]),{'method':_0x411a07(0x1de),'url':DELETE_PATH});assertExpectedKbVersion(_0x9bcd1,_0x19b3e9);const _0x4d5d68=projectKb(_0x9bcd1),_0x24dc93=[RAG_WARNING];if(_0x19b3e9!==undefined)_0x24dc93[_0x411a07(0x1d5)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x411a07(0x1cd),'selector':{'id':_0x4d5d68['id'],'scope':_0x411a07(0x1d8),'appCode':_0x4d5d68[_0x411a07(0x1dc)]},'before':_0x4d5d68,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x411a07(0x1de),'path':DELETE_PATH},'warnings':_0x24dc93,'verification':{'expectedVersion':_0x19b3e9??null,'atomicCompareAndSet':![],'snapshotHash':_0x4d5d68['snapshotHash'],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x411a07(0x1ee)+_0x4d5d68['id']+_0x411a07(0x1e0)}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x18541f){const _0x2424e0=a154_0x42f261;requireKbExplicitYes(_0x18541f);const _0x47910d=readKbId(_0x18541f),_0x3f4e44=readExpectedVersion(_0x18541f),_0x44aa01=await getKbOrNull(_0x18541f,_0x47910d);if(!_0x44aa01)return{'ok':!![],'data':noOpData(_0x18541f,_0x47910d,![]),'message':'Company\x20knowledge\x20base\x20'+_0x47910d+'\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made'};assertExpectedKbVersion(_0x44aa01,_0x3f4e44);const _0x36a43d=projectKb(_0x44aa01);let _0x5be960=![];try{await deleteEnterpriseKnowledgeBase(_0x18541f[_0x2424e0(0x1cc)],_0x47910d);}catch(_0x5aa2ed){if(!isPlatformTransportFailure(_0x5aa2ed))throw _0x5aa2ed;_0x5be960=!![];}const _0x384771=await verifyKbMutationReadback('delete',_0x5be960,()=>getKbOrNull(_0x18541f,_0x47910d));if(_0x384771)throw kbError(_0x5be960?_0x2424e0(0x1d0):'kb_verification_failed',_0x2424e0(0x1e5)+_0x47910d+_0x2424e0(0x1d7),_0x2424e0(0x1d4)+_0x47910d+_0x2424e0(0x1c8));const _0x502e0c=[RAG_WARNING];if(_0x3f4e44!==undefined)_0x502e0c[_0x2424e0(0x1d5)](NON_ATOMIC_WARNING);return _0x5be960&&_0x502e0c[_0x2424e0(0x1d5)](_0x2424e0(0x1da)),{'ok':!![],'data':{'operation':_0x2424e0(0x1cd),'selector':{'id':_0x36a43d['id'],'scope':'company','appCode':_0x36a43d[_0x2424e0(0x1dc)]},'before':_0x36a43d,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x2424e0(0x1de),'path':DELETE_PATH},'warnings':_0x502e0c,'verification':{'status':_0x2424e0(0x1ea),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x5be960,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x36a43d['id']+'\x20--format\x20compress'}},'message':_0x2424e0(0x1e2)+_0x36a43d['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a155_0x174606=a155_0x7aef;function a155_0x7aef(_0x522383,_0x42c84f){_0x522383=_0x522383-0x7d;const _0xc624e8=a155_0xc624();let _0x7aef41=_0xc624e8[_0x522383];return _0x7aef41;}(function(_0xbcfa59,_0x765f66){const _0x1dfe99=a155_0x7aef,_0xde61ab=_0xbcfa59();while(!![]){try{const _0x362b3a=-parseInt(_0x1dfe99(0x86))/0x1*(parseInt(_0x1dfe99(0x8d))/0x2)+parseInt(_0x1dfe99(0x7f))/0x3+parseInt(_0x1dfe99(0x85))/0x4*(parseInt(_0x1dfe99(0x8c))/0x5)+parseInt(_0x1dfe99(0x87))/0x6*(-parseInt(_0x1dfe99(0x82))/0x7)+parseInt(_0x1dfe99(0x88))/0x8*(parseInt(_0x1dfe99(0x81))/0x9)+-parseInt(_0x1dfe99(0x80))/0xa+parseInt(_0x1dfe99(0x84))/0xb*(-parseInt(_0x1dfe99(0x89))/0xc);if(_0x362b3a===_0x765f66)break;else _0xde61ab['push'](_0xde61ab['shift']());}catch(_0x35faf2){_0xde61ab['push'](_0xde61ab['shift']());}}}(a155_0xc624,0x40ed1));function a155_0xc624(){const _0x5ce8fa=['10628bFbqEH','14679hYJIRC','6othODV','45736MwXuLl','12xnHDgb','detail','content','920qTyHlG','22gpjLAA','Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','Company\x20knowledge-base\x20id','992055tGYSpr','698700kUSPyb','99TVpqRD','2072707papYAm','number','979913HUyKPC'];a155_0xc624=function(){return _0x5ce8fa;};return a155_0xc624();}import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a155_0x174606(0x8a),'description':a155_0x174606(0x7d),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a155_0x174606(0x83),'required':!![],'description':a155_0x174606(0x7e)}],async 'validate'(_0x5113d4){readKbId(_0x5113d4);},async 'execute'(_0x5181e7){const _0xae1967=a155_0x174606,_0x4e3064=readKbId(_0x5181e7),_0x5d0d01=await requireKb(_0x5181e7,_0x4e3064);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x5d0d01),'content':_0x5d0d01[_0xae1967(0x8b)]}},'message':'Loaded\x20company\x20knowledge\x20base\x20'+_0x4e3064};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x598585,_0x56b973){const _0x54e5e2=a156_0x13ed,_0x16b383=_0x598585();while(!![]){try{const _0x97d92b=-parseInt(_0x54e5e2(0x73))/0x1+parseInt(_0x54e5e2(0x7c))/0x2+parseInt(_0x54e5e2(0x7d))/0x3*(parseInt(_0x54e5e2(0x7a))/0x4)+parseInt(_0x54e5e2(0x79))/0x5*(-parseInt(_0x54e5e2(0x78))/0x6)+parseInt(_0x54e5e2(0x74))/0x7*(parseInt(_0x54e5e2(0x7b))/0x8)+parseInt(_0x54e5e2(0x76))/0x9*(parseInt(_0x54e5e2(0x77))/0xa)+-parseInt(_0x54e5e2(0x75))/0xb;if(_0x97d92b===_0x56b973)break;else _0x16b383['push'](_0x16b383['shift']());}catch(_0xf60179){_0x16b383['push'](_0x16b383['shift']());}}}(a156_0x5cf9,0x49ab2));import{kbList}from'../../commands/kb/list.js';function a156_0x13ed(_0x4ad4dc,_0x532e90){_0x4ad4dc=_0x4ad4dc-0x73;const _0x5cf9e9=a156_0x5cf9();let _0x13edf7=_0x5cf9e9[_0x4ad4dc];return _0x13edf7;}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_0x5cf9(){const _0x43ea92=['10ZdLLUy','3018WXNvNf','2215iHfSHD','32JXxdth','2494088wLujCS','346836qILlEx','220884URfhjb','304927jrPFiO','7AhuyhE','6870358NzuDHe','3418893DpsrSh'];a156_0x5cf9=function(){return _0x43ea92;};return a156_0x5cf9();}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a157_0x10ff(){const _0x464ca9=['title','3216520XBmvON','Filter\x20by\x20knowledge-base\x20title','length','string','7938425WEQOQj','1699LniHie','68815SRFQyN','418XsHbNW','appCode','map','read','list','318WgrIuf','70936vtpoYF','3515022EWsAOf','\x20company\x20knowledge\x20base(s)\x20for\x20','1965iqVaGE','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','str','4780gDFRxx','81lfJizd'];a157_0x10ff=function(){return _0x464ca9;};return a157_0x10ff();}function a157_0x1606(_0x502fc6,_0x2f045f){_0x502fc6=_0x502fc6-0x13b;const _0x10ff5d=a157_0x10ff();let _0x1606e7=_0x10ff5d[_0x502fc6];return _0x1606e7;}const a157_0x185949=a157_0x1606;(function(_0x2328f3,_0x13907b){const _0x2f3ccd=a157_0x1606,_0x456f0f=_0x2328f3();while(!![]){try{const _0x49e5ca=parseInt(_0x2f3ccd(0x143))/0x1*(parseInt(_0x2f3ccd(0x145))/0x2)+-parseInt(_0x2f3ccd(0x14e))/0x3*(-parseInt(_0x2f3ccd(0x13b))/0x4)+parseInt(_0x2f3ccd(0x144))/0x5*(-parseInt(_0x2f3ccd(0x14a))/0x6)+parseInt(_0x2f3ccd(0x14c))/0x7+parseInt(_0x2f3ccd(0x14b))/0x8*(-parseInt(_0x2f3ccd(0x13c))/0x9)+parseInt(_0x2f3ccd(0x13e))/0xa+-parseInt(_0x2f3ccd(0x142))/0xb;if(_0x49e5ca===_0x13907b)break;else _0x456f0f['push'](_0x456f0f['shift']());}catch(_0x4e99d2){_0x456f0f['push'](_0x456f0f['shift']());}}}(a157_0x10ff,0x69269));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a157_0x185949(0x149),'description':a157_0x185949(0x14f),'risk':a157_0x185949(0x148),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0x185949(0x13d),'type':a157_0x185949(0x141),'required':![],'description':a157_0x185949(0x13f)}],async 'execute'(_0x28fde7){const _0x44fe7f=a157_0x185949,_0x2ea4bb=_0x28fde7[_0x44fe7f(0x150)]('title')['trim'](),_0x49c89c=await fetchAllCompanyKnowledgeBases(_0x28fde7,{..._0x2ea4bb?{'title':_0x2ea4bb}:{}}),_0x4ded93=_0x49c89c[_0x44fe7f(0x147)](projectKb);return{'ok':!![],'data':{'total':_0x4ded93['length'],'knowledgeBases':_0x4ded93},'message':'Found\x20'+_0x4ded93[_0x44fe7f(0x140)]+_0x44fe7f(0x14d)+_0x28fde7[_0x44fe7f(0x146)]};}};
|