@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- 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.d.ts +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.d.ts +2 -2
- 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.d.ts +19 -0
- package/lib/core/kb-management-client.js +1 -0
- 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 +2 -2
- package/skills/rabetbase/references/rabetbase-kb.md +7 -6
- 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_0x485493=a142_0x4666;(function(_0x1e9a0e,_0x352d7f){const _0x27b289=a142_0x4666,_0x574831=_0x1e9a0e();while(!![]){try{const _0x47e5ef=parseInt(_0x27b289(0xdf))/0x1*(parseInt(_0x27b289(0xe4))/0x2)+parseInt(_0x27b289(0xe9))/0x3*(-parseInt(_0x27b289(0xdd))/0x4)+-parseInt(_0x27b289(0xf1))/0x5*(parseInt(_0x27b289(0xea))/0x6)+parseInt(_0x27b289(0xd6))/0x7+-parseInt(_0x27b289(0xf6))/0x8*(parseInt(_0x27b289(0xd4))/0x9)+parseInt(_0x27b289(0xfa))/0xa*(-parseInt(_0x27b289(0xd9))/0xb)+parseInt(_0x27b289(0xeb))/0xc;if(_0x47e5ef===_0x352d7f)break;else _0x574831['push'](_0x574831['shift']());}catch(_0x292828){_0x574831['push'](_0x574831['shift']());}}}(a142_0x5276,0x38096));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a142_0x4666(_0x4567c6,_0x34e3a2){_0x4567c6=_0x4567c6-0xd2;const _0x52760e=a142_0x5276();let _0x4666ec=_0x52760e[_0x4567c6];return _0x4666ec;}import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x78f398){const _0x2151a4=a142_0x4666,{local:_0x400820,config:_0xf4c2a9}=await readFixedPolicy(_0x78f398),_0x2fa633=readChangeSummary(_0x78f398),_0x505193=readExpectedRevision(_0x78f398),[_0x11f3aa,_0x44ac04]=await Promise['all']([getCurrentInstantApiPolicy(_0x78f398[_0x2151a4(0xe5)]),validateInstantApiPolicy({'appCode':_0x78f398[_0x2151a4(0xe5)],'config':_0xf4c2a9})]);return assertExpectedRevision(_0x11f3aa,_0x505193),{'local':_0x400820,'config':_0xf4c2a9,'changeSummary':_0x2fa633,'expectedRevision':_0x505193,'before':_0x11f3aa,'validation':_0x44ac04};}function a142_0x5276(){const _0x510217=['config','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','22467tdeLbr','18CIXlWA','10354404VwysuL','defineProperty','Inspect\x20with\x20`','POST','validation','Published\x20Instant\x20API\x20policy\x20revision\x20','653020rFJVOE','cause','before','instant_api_policy_publish_verification_unavailable','verified','2504512IYsjgy','expectedRevision','revision','/publish','272410FxrOko','publish','instant-api-policy','normalizedConfig','9MaBIrb','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','3181423SivcnD','changeSummary','policyFilePath','44XPVZyn','configHash','local','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','164pTpNCv','instant_api_policy_publish_outcome_unknown','13crSuBC','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_publish_verification_failed','high-risk-write','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','5086HPcPIO','appCode','push'];a142_0x5276=function(){return _0x510217;};return a142_0x5276();}export const instantApiPolicyPublish={'service':a142_0x485493(0xd2),'command':a142_0x485493(0xfb),'description':a142_0x485493(0xd5),'risk':a142_0x485493(0xe2),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2caa96){readChangeSummary(_0x2caa96),readExpectedRevision(_0x2caa96);},async 'dryRun'(_0x36cbf6){const _0x2ff1c7=a142_0x485493,_0x24f075=await preparePublish(_0x36cbf6);return asDryRunResult({'operation':_0x2ff1c7(0xfb),'selector':{'appCode':_0x36cbf6[_0x2ff1c7(0xe5)]},'before':projectCurrentPolicy(_0x24f075[_0x2ff1c7(0xf3)]),'after':{'revision':_0x24f075['before']?_0x24f075[_0x2ff1c7(0xf3)][_0x2ff1c7(0xf8)]+0x1:0x1,'configHash':_0x24f075[_0x2ff1c7(0xef)][_0x2ff1c7(0xda)],'config':_0x24f075[_0x2ff1c7(0xef)][_0x2ff1c7(0xd3)]},'filePath':_0x24f075['local'][_0x2ff1c7(0xd8)],'relativePath':_0x24f075[_0x2ff1c7(0xdb)]['policyRelativePath'],'dryRun':!![],'backend':{'method':_0x2ff1c7(0xee),'path':INSTANT_API_POLICY_BASE_PATH+_0x2ff1c7(0xf9)},'warnings':expectedRevisionWarnings(_0x24f075['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x24f075[_0x2ff1c7(0xf7)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x2ff1c7(0xf9)});},async 'execute'(_0x349cc4){const _0x371c56=a142_0x485493,_0x1b39f6=await preparePublish(_0x349cc4);let _0x616c0c=![];try{await publishInstantApiPolicy({'appCode':_0x349cc4['appCode'],'config':_0x1b39f6[_0x371c56(0xe7)],..._0x1b39f6[_0x371c56(0xd7)]?{'changeSummary':_0x1b39f6['changeSummary']}:{}});}catch(_0x471de7){if(!isPlatformTransportFailure(_0x471de7))throw _0x471de7;_0x616c0c=!![];}let _0xc931ca;try{_0xc931ca=await getCurrentInstantApiPolicy(_0x349cc4['appCode']);}catch(_0x49241c){const _0x4bc293=instantApiPolicyError(_0x616c0c?_0x371c56(0xde):_0x371c56(0xf4),_0x371c56(0xe8),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x371c56(0xe0));Object[_0x371c56(0xec)](_0x4bc293,_0x371c56(0xf2),{'value':_0x49241c,'enumerable':![]});throw _0x4bc293;}const _0x5f1620=_0xc931ca&&(_0x1b39f6[_0x371c56(0xf3)]===null||_0xc931ca[_0x371c56(0xf8)]>_0x1b39f6[_0x371c56(0xf3)][_0x371c56(0xf8)]),_0x190bc4=_0xc931ca?.[_0x371c56(0xda)]===_0x1b39f6[_0x371c56(0xef)][_0x371c56(0xda)];if(!_0xc931ca||!_0x5f1620||!_0x190bc4)throw instantApiPolicyError(_0x616c0c?'instant_api_policy_publish_outcome_unknown':_0x371c56(0xe1),_0x371c56(0xe3),_0x371c56(0xed)+mutationLookupCommand()+_0x371c56(0xe0));const _0x31356d=[...expectedRevisionWarnings(_0x1b39f6[_0x371c56(0xf7)]),RUNTIME_CACHE_WARNING];return _0x616c0c&&_0x31356d[_0x371c56(0xe6)](_0x371c56(0xdc)),{'ok':!![],'data':{'operation':_0x371c56(0xfb),'selector':{'appCode':_0x349cc4[_0x371c56(0xe5)]},'before':projectCurrentPolicy(_0x1b39f6[_0x371c56(0xf3)]),'after':projectCurrentPolicy(_0xc931ca),'filePath':_0x1b39f6[_0x371c56(0xdb)][_0x371c56(0xd8)],'relativePath':_0x1b39f6[_0x371c56(0xdb)]['policyRelativePath'],'dryRun':![],'backend':{'method':_0x371c56(0xee),'path':INSTANT_API_POLICY_BASE_PATH+_0x371c56(0xf9)},'warnings':_0x31356d,'verification':{'status':_0x371c56(0xf5),'recoveredAfterUnknownResponse':_0x616c0c,'expectedRevision':_0x1b39f6['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x371c56(0xf0)+_0xc931ca[_0x371c56(0xf8)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143_0x4e29ff=a143_0x55c7;(function(_0xef0db7,_0x42b392){const _0x5686a2=a143_0x55c7,_0x3da32d=_0xef0db7();while(!![]){try{const _0x2a9cb4=-parseInt(_0x5686a2(0x198))/0x1*(parseInt(_0x5686a2(0x19d))/0x2)+parseInt(_0x5686a2(0x1a0))/0x3*(parseInt(_0x5686a2(0x1a5))/0x4)+parseInt(_0x5686a2(0x19a))/0x5+-parseInt(_0x5686a2(0x1a1))/0x6+-parseInt(_0x5686a2(0x199))/0x7+parseInt(_0x5686a2(0x18f))/0x8+parseInt(_0x5686a2(0x193))/0x9;if(_0x2a9cb4===_0x42b392)break;else _0x3da32d['push'](_0x3da32d['shift']());}catch(_0x3ac974){_0x3da32d['push'](_0x3da32d['shift']());}}}(a143_0x2a98,0x51202));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a143_0x55c7(_0x2035c,_0x106014){_0x2035c=_0x2035c-0x18f;const _0x2a98dc=a143_0x2a98();let _0x55c7ae=_0x2a98dc[_0x2035c];return _0x55c7ae;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a143_0x2a98(){const _0x44056d=['1828422jfrUWj','policyFilePath','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','Kept','31256MssTMk','305880MELqrn','action','configHash','appCode','13523562pqQsJG','instant-api-policy','instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Pulled','1PqJuaH','4466406HIkCIf','808240CkGZKb','revision','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','1214276HxbUGZ','pull','config','69FkjBdW'];a143_0x2a98=function(){return _0x44056d;};return a143_0x2a98();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x4e29ff(0x194),'command':a143_0x4e29ff(0x19e),'description':a143_0x4e29ff(0x19c),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x13e2ac){requireForceConfirmation(_0x13e2ac);},async 'execute'(_0x4e9bc4){const _0x2c17c4=a143_0x4e29ff;requireForceConfirmation(_0x4e9bc4);const _0x32abe8=await getCurrentInstantApiPolicy(_0x4e9bc4[_0x2c17c4(0x192)]);if(!_0x32abe8)throw instantApiPolicyError(_0x2c17c4(0x195),_0x2c17c4(0x196)+_0x4e9bc4['appCode']+'.',_0x2c17c4(0x1a3));const _0x235f09=loadInstantApiPolicyLocalConfig(_0x4e9bc4[_0x2c17c4(0x192)]),_0xf58a0e=await writeInstantApiPolicyConfigFile(_0x235f09,_0x32abe8[_0x2c17c4(0x19f)],{'force':_0x4e9bc4['bool']('force')});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x4e9bc4[_0x2c17c4(0x192)],'revision':_0x32abe8[_0x2c17c4(0x19b)]},'filePath':_0x235f09[_0x2c17c4(0x1a2)],'relativePath':_0x235f09['policyRelativePath'],'action':_0xf58a0e[_0x2c17c4(0x190)],'configHash':_0x32abe8[_0x2c17c4(0x191)]},'message':(_0xf58a0e['action']==='unchanged'?_0x2c17c4(0x1a4):_0x2c17c4(0x197))+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x32abe8[_0x2c17c4(0x19b)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x4ab002=a144_0x5011;(function(_0x4f2e30,_0x430c12){const _0x15a46a=a144_0x5011,_0x309e54=_0x4f2e30();while(!![]){try{const _0x771736=parseInt(_0x15a46a(0xe0))/0x1+-parseInt(_0x15a46a(0xea))/0x2+parseInt(_0x15a46a(0xdf))/0x3*(-parseInt(_0x15a46a(0xe3))/0x4)+parseInt(_0x15a46a(0xe1))/0x5+parseInt(_0x15a46a(0xe2))/0x6*(parseInt(_0x15a46a(0xe6))/0x7)+parseInt(_0x15a46a(0xe5))/0x8+parseInt(_0x15a46a(0xe9))/0x9*(parseInt(_0x15a46a(0xeb))/0xa);if(_0x771736===_0x430c12)break;else _0x309e54['push'](_0x309e54['shift']());}catch(_0x1bdee6){_0x309e54['push'](_0x309e54['shift']());}}}(a144_0x2b3e,0xa9c7f));function a144_0x2b3e(){const _0x15b3d1=['appCode','2954979WLtPxZ','2004346wrbtjJ','10bfUaPZ','1509081oLidrb','635023JSzuEZ','2661550ypTnEw','1968402EGgcMu','4oijZlD','read','3015136KONhXk','7NSUvKo','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision'];a144_0x2b3e=function(){return _0x15b3d1;};return a144_0x2b3e();}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x5011(_0x248448,_0x2bb1cf){_0x248448=_0x248448-0xdf;const _0x2b3e21=a144_0x2b3e();let _0x501179=_0x2b3e21[_0x248448];return _0x501179;}export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a144_0x4ab002(0xe7),'risk':a144_0x4ab002(0xe4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x5e8ae2){readRevision(_0x5e8ae2);},async 'execute'(_0x33336f){const _0x31fea5=a144_0x4ab002,_0x3c485c=readRevision(_0x33336f),_0x34f256=await getInstantApiPolicyRevision(_0x33336f[_0x31fea5(0xe8)],_0x3c485c);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x34f256)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x3c485c};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x564736=a145_0x4929;function a145_0x361b(){const _0x39cf27=['6MPhdBw','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','appCode','length','Found\x20','1272177FrjMoK','512lbwGpB','\x20Instant\x20API\x20policy\x20revision(s)','30VsvjWi','1180289DoqOGG','780NEduTS','read','map','158982dHOLfR','revisions','3ZfTHby','31521jwXOKK','50GglNeF','199862rgpPJI','464840Mqvlif','111320fjRSua','instant-api-policy'];a145_0x361b=function(){return _0x39cf27;};return a145_0x361b();}function a145_0x4929(_0x3fd846,_0x1500dd){_0x3fd846=_0x3fd846-0x1ed;const _0x361b44=a145_0x361b();let _0x492991=_0x361b44[_0x3fd846];return _0x492991;}(function(_0x4c2cc1,_0x20a223){const _0xe8daab=a145_0x4929,_0x3fa730=_0x4c2cc1();while(!![]){try{const _0x7728e4=parseInt(_0xe8daab(0x1f5))/0x1*(-parseInt(_0xe8daab(0x1fe))/0x2)+-parseInt(_0xe8daab(0x1f7))/0x3*(parseInt(_0xe8daab(0x1fc))/0x4)+parseInt(_0xe8daab(0x1fb))/0x5*(parseInt(_0xe8daab(0x1f0))/0x6)+-parseInt(_0xe8daab(0x1f8))/0x7*(parseInt(_0xe8daab(0x1ee))/0x8)+parseInt(_0xe8daab(0x1ed))/0x9+-parseInt(_0xe8daab(0x1f9))/0xa*(parseInt(_0xe8daab(0x1f1))/0xb)+-parseInt(_0xe8daab(0x1f2))/0xc*(-parseInt(_0xe8daab(0x1fa))/0xd);if(_0x7728e4===_0x20a223)break;else _0x3fa730['push'](_0x3fa730['shift']());}catch(_0x2561ac){_0x3fa730['push'](_0x3fa730['shift']());}}}(a145_0x361b,0x43648));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x564736(0x1fd),'command':a145_0x564736(0x1f6),'description':a145_0x564736(0x1ff),'risk':a145_0x564736(0x1f3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1492b9){const _0x168744=a145_0x564736,_0x8d4818=await listInstantApiPolicyRevisions(_0x1492b9[_0x168744(0x200)]);return{'ok':!![],'data':{'appCode':_0x1492b9[_0x168744(0x200)],'total':_0x8d4818[_0x168744(0x201)],'revisions':_0x8d4818[_0x168744(0x1f4)](projectRevisionSummary)},'message':_0x168744(0x202)+_0x8d4818['length']+_0x168744(0x1ef)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a146_0xfebc(){const _0x381818=['3927892MuzoKV','expectedRevision','high-risk-write','10091675YAomjI','instant-api-policy','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','\x20forward\x20to\x20revision\x20','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','cause','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','48mJEmtG','target','instant_api_policy_rollback_outcome_unknown','3981056EfAFzf','`;\x20do\x20not\x20resubmit\x20automatically.','2NCmDVW','rollback','POST','10543001CUJgbT','3FOgEkL','revision','10JwhuMT','443453zoQTyT','all','484275TIPujS','12448035YodKBW','defineProperty','instant_api_policy_rollback_verification_failed','changeSummary','instant_api_policy_rollback_verification_unavailable','Inspect\x20with\x20`','appCode','push','before','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','instant_api_policy_not_configured','configHash','/rollback'];a146_0xfebc=function(){return _0x381818;};return a146_0xfebc();}const a146_0x322fc8=a146_0x4cfa;(function(_0x25fb54,_0x28a843){const _0x2c20bc=a146_0x4cfa,_0x460a1c=_0x25fb54();while(!![]){try{const _0x1de8cf=parseInt(_0x2c20bc(0x209))/0x1*(parseInt(_0x2c20bc(0x202))/0x2)+parseInt(_0x2c20bc(0x206))/0x3*(parseInt(_0x2c20bc(0x1f2))/0x4)+parseInt(_0x2c20bc(0x20b))/0x5*(parseInt(_0x2c20bc(0x1fd))/0x6)+parseInt(_0x2c20bc(0x205))/0x7+-parseInt(_0x2c20bc(0x200))/0x8+-parseInt(_0x2c20bc(0x1e5))/0x9+parseInt(_0x2c20bc(0x208))/0xa*(-parseInt(_0x2c20bc(0x1f5))/0xb);if(_0x1de8cf===_0x28a843)break;else _0x460a1c['push'](_0x460a1c['shift']());}catch(_0x570a8e){_0x460a1c['push'](_0x460a1c['shift']());}}}(a146_0xfebc,0xddbcd));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';function a146_0x4cfa(_0x585a5b,_0xc688a5){_0x585a5b=_0x585a5b-0x1e5;const _0xfebc61=a146_0xfebc();let _0x4cfa29=_0xfebc61[_0x585a5b];return _0x4cfa29;}async function prepareRollback(_0x2e4bb5){const _0x3bff07=a146_0x4cfa,_0x9c0ab6=readRevision(_0x2e4bb5),_0x45a305=readChangeSummary(_0x2e4bb5),_0x219995=readExpectedRevision(_0x2e4bb5),[_0x51bf9e,_0x3cc396]=await Promise[_0x3bff07(0x20a)]([getCurrentInstantApiPolicy(_0x2e4bb5['appCode']),getInstantApiPolicyRevision(_0x2e4bb5[_0x3bff07(0x1eb)],_0x9c0ab6)]);if(!_0x51bf9e)throw instantApiPolicyError(_0x3bff07(0x1ef),_0x3bff07(0x1f8)+_0x2e4bb5[_0x3bff07(0x1eb)]+'.');return assertExpectedRevision(_0x51bf9e,_0x219995),{'revision':_0x9c0ab6,'changeSummary':_0x45a305,'expectedRevision':_0x219995,'before':_0x51bf9e,'target':_0x3cc396};}export const instantApiPolicyRollback={'service':a146_0x322fc8(0x1f6),'command':a146_0x322fc8(0x203),'description':a146_0x322fc8(0x1fc),'risk':a146_0x322fc8(0x1f4),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x322fc8(0x1f7),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x5b1b20){readRevision(_0x5b1b20),readChangeSummary(_0x5b1b20),readExpectedRevision(_0x5b1b20);},async 'dryRun'(_0x506ef1){const _0x5ebec8=a146_0x322fc8,_0x78ac87=await prepareRollback(_0x506ef1);return asDryRunResult({'operation':_0x5ebec8(0x203),'selector':{'appCode':_0x506ef1[_0x5ebec8(0x1eb)],'sourceRevision':_0x78ac87[_0x5ebec8(0x207)]},'before':projectCurrentPolicy(_0x78ac87[_0x5ebec8(0x1ed)]),'after':{'revision':_0x78ac87[_0x5ebec8(0x1ed)][_0x5ebec8(0x207)]+0x1,'sourceRevision':projectRevisionDetail(_0x78ac87[_0x5ebec8(0x1fe)])},'dryRun':!![],'backend':{'method':_0x5ebec8(0x204),'path':INSTANT_API_POLICY_BASE_PATH+_0x5ebec8(0x1f1)},'warnings':expectedRevisionWarnings(_0x78ac87['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x78ac87['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x5ebec8(0x204),'url':INSTANT_API_POLICY_BASE_PATH+_0x5ebec8(0x1f1)});},async 'execute'(_0x3679ac){const _0x1dd0ae=a146_0x322fc8,_0x290b4d=await prepareRollback(_0x3679ac);let _0x10d326=![];try{await rollbackInstantApiPolicy({'appCode':_0x3679ac['appCode'],'revision':_0x290b4d[_0x1dd0ae(0x207)],..._0x290b4d['changeSummary']?{'changeSummary':_0x290b4d[_0x1dd0ae(0x1e8)]}:{}});}catch(_0x199599){if(!isPlatformTransportFailure(_0x199599))throw _0x199599;_0x10d326=!![];}let _0x6aa4a8;try{_0x6aa4a8=await getCurrentInstantApiPolicy(_0x3679ac[_0x1dd0ae(0x1eb)]);}catch(_0xb2a49){const _0x368e19=instantApiPolicyError(_0x10d326?_0x1dd0ae(0x1ff):_0x1dd0ae(0x1e9),_0x1dd0ae(0x1fa),_0x1dd0ae(0x1ea)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x1dd0ae(0x1e6)](_0x368e19,_0x1dd0ae(0x1fb),{'value':_0xb2a49,'enumerable':![]});throw _0x368e19;}const _0x53746b=_0x6aa4a8&&_0x6aa4a8['revision']>_0x290b4d['before']['revision'],_0x3b23a2=_0x6aa4a8?.[_0x1dd0ae(0x1f0)]===_0x290b4d[_0x1dd0ae(0x1fe)]['configHash'];if(!_0x6aa4a8||!_0x53746b||!_0x3b23a2)throw instantApiPolicyError(_0x10d326?_0x1dd0ae(0x1ff):_0x1dd0ae(0x1e7),_0x1dd0ae(0x1ee),_0x1dd0ae(0x1ea)+mutationLookupCommand()+_0x1dd0ae(0x201));const _0xb33428=[...expectedRevisionWarnings(_0x290b4d[_0x1dd0ae(0x1f3)]),RUNTIME_CACHE_WARNING];return _0x10d326&&_0xb33428[_0x1dd0ae(0x1ec)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x1dd0ae(0x203),'selector':{'appCode':_0x3679ac['appCode'],'sourceRevision':_0x290b4d['revision']},'before':projectCurrentPolicy(_0x290b4d[_0x1dd0ae(0x1ed)]),'after':projectCurrentPolicy(_0x6aa4a8),'dryRun':![],'backend':{'method':_0x1dd0ae(0x204),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0xb33428,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x10d326,'expectedRevision':_0x290b4d['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Rolled\x20Instant\x20API\x20policy\x20revision\x20'+_0x290b4d[_0x1dd0ae(0x207)]+_0x1dd0ae(0x1f9)+_0x6aa4a8[_0x1dd0ae(0x207)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a147_0x7aaf6c=a147_0xf001;(function(_0x2cbbea,_0x3843c8){const _0x2f3a52=a147_0xf001,_0x3db6d8=_0x2cbbea();while(!![]){try{const _0x5d6e11=parseInt(_0x2f3a52(0xbb))/0x1*(-parseInt(_0x2f3a52(0xe9))/0x2)+-parseInt(_0x2f3a52(0xcd))/0x3*(-parseInt(_0x2f3a52(0xe1))/0x4)+-parseInt(_0x2f3a52(0xcb))/0x5+parseInt(_0x2f3a52(0xb7))/0x6*(-parseInt(_0x2f3a52(0xe4))/0x7)+-parseInt(_0x2f3a52(0xd9))/0x8*(-parseInt(_0x2f3a52(0xca))/0x9)+parseInt(_0x2f3a52(0xba))/0xa+parseInt(_0x2f3a52(0xc5))/0xb;if(_0x5d6e11===_0x3843c8)break;else _0x3db6d8['push'](_0x3db6d8['shift']());}catch(_0x57da87){_0x3db6d8['push'](_0x3db6d8['shift']());}}}(a147_0x106e,0x26e25));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0x7aaf6c(0xb6);function a147_0x106e(){const _0xed6cf4=['7LMjNtA','config','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','length','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','2114frBFrO','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','defaults','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','revision','enabled','/smartapi/instant-api-policy','160806qrmyBl','instant_api_policy_revision_mismatch','str','1337490fhOrKE','272weOPYs','--change-summary\x20cannot\x20exceed\x202000\x20characters.','boolean','rules','Expected\x20revision\x20','version','string','gmtCreate','instant_api_policy_change_summary_invalid','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','2357245OCCiNH','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','configHash','expected-revision','NaN','7119DaCeLw','572825essOco','force','5934GysZds','number','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','instant_api_policy_force_confirmation_required','flag','Positive\x20published\x20policy\x20revision','changeSummary','isSafeInteger','yes','instant_api_policy_expected_revision_invalid','change-summary','num','1368xNXiNN','instantApi','instant_api_policy_revision_invalid','bool','updateUserId','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','operatorId','appCode','212jfqZxZ','createUserId','trim'];a147_0x106e=function(){return _0xed6cf4;};return a147_0x106e();}export const RUNTIME_CACHE_WARNING=a147_0x7aaf6c(0xc6);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_0x7aaf6c(0xcc),'type':a147_0x7aaf6c(0xbd),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a147_0x7aaf6c(0xd7),'type':a147_0x7aaf6c(0xc1),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a147_0x7aaf6c(0xb4),'type':a147_0x7aaf6c(0xce),'required':!![],'description':a147_0x7aaf6c(0xd2)};export const EXPECTED_REVISION_FLAG={'name':a147_0x7aaf6c(0xc8),'type':a147_0x7aaf6c(0xce),'required':![],'description':a147_0x7aaf6c(0xb3)};export function requireForceConfirmation(_0x1befee){const _0x1eefb3=a147_0x7aaf6c;if(!_0x1befee[_0x1eefb3(0xdc)](_0x1eefb3(0xcc))||_0x1befee['bool'](_0x1eefb3(0xd5)))return;throw instantApiPolicyError(_0x1eefb3(0xd0),_0x1eefb3(0xeb),_0x1eefb3(0xde));}export function readChangeSummary(_0x2e8e7b){const _0xdd4c20=a147_0x7aaf6c,_0x5cf95f=_0x2e8e7b[_0xdd4c20(0xb9)](_0xdd4c20(0xd7))[_0xdd4c20(0xe3)]();if(!_0x5cf95f)return undefined;if(_0x5cf95f['length']>0x7d0)throw instantApiPolicyError(_0xdd4c20(0xc3),_0xdd4c20(0xbc));return _0x5cf95f;}export function readRevision(_0x5319ee){const _0x56d410=a147_0x7aaf6c,_0x332d6b=_0x5319ee[_0x56d410(0xd8)](_0x56d410(0xb4),Number['NaN']);if(!Number[_0x56d410(0xd4)](_0x332d6b)||_0x332d6b<=0x0)throw instantApiPolicyError(_0x56d410(0xdb),_0x56d410(0xea));return _0x332d6b;}export function readExpectedRevision(_0xdcee79){const _0x3d203a=a147_0x7aaf6c;if(_0xdcee79[_0x3d203a(0xd1)](_0x3d203a(0xc8))===undefined)return undefined;const _0x662ac9=_0xdcee79[_0x3d203a(0xd8)](_0x3d203a(0xc8),Number[_0x3d203a(0xc9)]);if(!Number[_0x3d203a(0xd4)](_0x662ac9)||_0x662ac9<0x0)throw instantApiPolicyError(_0x3d203a(0xd6),_0x3d203a(0xc4));return _0x662ac9;}export function assertExpectedRevision(_0x2d2e05,_0xf54537){const _0x1f2d4a=a147_0x7aaf6c;if(_0xf54537===undefined)return;const _0x1b6e64=_0x2d2e05?.[_0x1f2d4a(0xb4)]??0x0;if(_0x1b6e64!==_0xf54537)throw instantApiPolicyError(_0x1f2d4a(0xb8),_0x1f2d4a(0xcf),_0x1f2d4a(0xbf)+_0xf54537+';\x20current\x20revision\x20is\x20'+_0x1b6e64+_0x1f2d4a(0xe6));}export async function readFixedPolicy(_0x31bb0d){const _0x127659=loadInstantApiPolicyLocalConfig(_0x31bb0d['appCode']),_0x58e8ca=await readInstantApiPolicyConfigFile(_0x127659);return{'local':_0x127659,'config':_0x58e8ca};}function a147_0xf001(_0x3d14dc,_0x3991c2){_0x3d14dc=_0x3d14dc-0xb2;const _0x106e98=a147_0x106e();let _0xf00100=_0x106e98[_0x3d14dc];return _0xf00100;}export function projectCurrentPolicy(_0x4895e6){const _0x2430f9=a147_0x7aaf6c;if(!_0x4895e6)return null;return{'id':_0x4895e6['id'],'appCode':_0x4895e6[_0x2430f9(0xe0)],'revision':_0x4895e6[_0x2430f9(0xb4)],'configHash':_0x4895e6[_0x2430f9(0xc7)],'enabled':_0x4895e6[_0x2430f9(0xb5)],'config':_0x4895e6[_0x2430f9(0xe5)],'createUserId':_0x4895e6[_0x2430f9(0xe2)]??null,'updateUserId':_0x4895e6[_0x2430f9(0xdd)]??null,'gmtCreate':_0x4895e6['gmtCreate']??null,'gmtModified':_0x4895e6['gmtModified']??null};}export function projectRevisionSummary(_0x479286){const _0x4da8c6=a147_0x7aaf6c;return{'id':_0x479286['id'],'policyId':_0x479286['policyId'],'appCode':_0x479286['appCode'],'revision':_0x479286['revision'],'configHash':_0x479286['configHash'],'changeType':_0x479286['changeType'],'changeSummary':_0x479286[_0x4da8c6(0xd3)]??null,'operatorId':_0x479286[_0x4da8c6(0xdf)]??null,'gmtCreate':_0x479286[_0x4da8c6(0xc2)]??null,'version':_0x479286[_0x4da8c6(0xe5)][_0x4da8c6(0xc0)],'defaultAction':_0x479286['config'][_0x4da8c6(0xb2)][_0x4da8c6(0xda)],'ruleCount':_0x479286[_0x4da8c6(0xe5)][_0x4da8c6(0xbe)]?.[_0x4da8c6(0xe7)]??0x0};}export function projectRevisionDetail(_0x1cdec6){const _0x2b6680=a147_0x7aaf6c;return{...projectRevisionSummary(_0x1cdec6),'config':_0x1cdec6[_0x2b6680(0xe5)]};}export function expectedRevisionWarnings(_0x2caec8){return _0x2caec8===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x70717e=a147_0x7aaf6c;return _0x70717e(0xe8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x54b3de=a148_0x45a6;function a148_0x1026(){const _0x5597ac=['/validate','policyRelativePath','2589140eSimuH','379489ppPzwv','policyFilePath','appCode','788680FPmghG','POST','5004fteAIV','596mMaotg','18gaONZo','10930YqOtpL','5XkKgOY','valid','1490419dqASMn','96801qzXmQn','180aItsVl','976BXdVfh','validate'];a148_0x1026=function(){return _0x5597ac;};return a148_0x1026();}(function(_0x3e6d1e,_0x5df8d0){const _0x2031ad=a148_0x45a6,_0x507650=_0x3e6d1e();while(!![]){try{const _0x3db382=parseInt(_0x2031ad(0x95))/0x1*(parseInt(_0x2031ad(0xa0))/0x2)+parseInt(_0x2031ad(0x93))/0x3+parseInt(_0x2031ad(0x99))/0x4*(parseInt(_0x2031ad(0xa3))/0x5)+parseInt(_0x2031ad(0xa1))/0x6*(-parseInt(_0x2031ad(0xa5))/0x7)+parseInt(_0x2031ad(0x9d))/0x8+parseInt(_0x2031ad(0x9f))/0x9*(-parseInt(_0x2031ad(0xa2))/0xa)+-parseInt(_0x2031ad(0x9a))/0xb*(-parseInt(_0x2031ad(0x94))/0xc);if(_0x3db382===_0x5df8d0)break;else _0x507650['push'](_0x507650['shift']());}catch(_0x4aea79){_0x507650['push'](_0x507650['shift']());}}}(a148_0x1026,0x5302b));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';function a148_0x45a6(_0x5e96f8,_0x59d42c){_0x5e96f8=_0x5e96f8-0x93;const _0x1026e8=a148_0x1026();let _0x45a601=_0x1026e8[_0x5e96f8];return _0x45a601;}export const instantApiPolicyValidate={'service':'instant-api-policy','command':a148_0x54b3de(0x96),'description':'Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1f84ba){const _0x597cb8=a148_0x54b3de,{local:_0x3195c1,config:_0x372d72}=await readFixedPolicy(_0x1f84ba),_0x4eb62a=await validateInstantApiPolicy({'appCode':_0x1f84ba['appCode'],'config':_0x372d72});return{'ok':!![],'data':{'operation':'validate','selector':{'appCode':_0x1f84ba[_0x597cb8(0x9c)]},'filePath':_0x3195c1[_0x597cb8(0x9b)],'relativePath':_0x3195c1[_0x597cb8(0x98)],'valid':_0x4eb62a[_0x597cb8(0xa4)],'configHash':_0x4eb62a['configHash'],'normalizedConfig':_0x4eb62a['normalizedConfig'],'backend':{'method':_0x597cb8(0x9e),'path':INSTANT_API_POLICY_BASE_PATH+_0x597cb8(0x97)}},'message':'Validated\x20Instant\x20API\x20policy\x20for\x20'+_0x1f84ba['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x500677,_0x253371){const _0x59ba25=a149_0x5a03,_0x59598a=_0x500677();while(!![]){try{const _0x45468d=parseInt(_0x59ba25(0x10e))/0x1+parseInt(_0x59ba25(0x111))/0x2+parseInt(_0x59ba25(0x113))/0x3+-parseInt(_0x59ba25(0x114))/0x4+-parseInt(_0x59ba25(0x110))/0x5+-parseInt(_0x59ba25(0x112))/0x6+parseInt(_0x59ba25(0x10f))/0x7;if(_0x45468d===_0x253371)break;else _0x59598a['push'](_0x59598a['shift']());}catch(_0x17590e){_0x59598a['push'](_0x59598a['shift']());}}}(a149_0x5bc5,0xdb5fe));import{issueReport}from'../../commands/issue/report.js';function a149_0x5a03(_0x5e6896,_0x468a76){_0x5e6896=_0x5e6896-0x10e;const _0x5bc55e=a149_0x5bc5();let _0x5a03f6=_0x5bc55e[_0x5e6896];return _0x5a03f6;}function a149_0x5bc5(){const _0x4a90d1=['3360156AAieJv','32661LVohWu','1578112UpHCKM','501429PDvkJB','16848342mmNflN','8360070MHLQgb','1211808WKWbeV'];a149_0x5bc5=function(){return _0x4a90d1;};return a149_0x5bc5();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a150_0x1ccf(){const _0x34e334=['54852pALZzm','RABETBASE_DISABLE_ISSUE_NUDGE','report','flag_missing','6959848lPesoz','719170zbOcBY','trim','length','99qGhiZV','\x20\x20Set\x20','\x22\x20\x5c','\x20bug?\x20Help\x20us\x20fix\x20it:','has','slice','command','\x20\x20\x20\x20--title\x20\x22','1272000aUOHud','cancelled','\x20issue\x20report\x20\x5c','20HcjitO','437768IzIiNl','7fASeNm','replace','unknown_command','not_in_project','14494068oBlGhw','join','672055GgicPR','auth_required','code','9gzZKvI','service','write','message','22tVhWSR','config_missing','issue','validation_error'];a150_0x1ccf=function(){return _0x34e334;};return a150_0x1ccf();}const a150_0x4b616e=a150_0x550a;(function(_0x2865f5,_0x1e48a8){const _0x237660=a150_0x550a,_0x4608de=_0x2865f5();while(!![]){try{const _0x287b0b=parseInt(_0x237660(0x8b))/0x1+-parseInt(_0x237660(0x80))/0x2+-parseInt(_0x237660(0x8e))/0x3*(parseInt(_0x237660(0x84))/0x4)+-parseInt(_0x237660(0x83))/0x5*(-parseInt(_0x237660(0x96))/0x6)+-parseInt(_0x237660(0x85))/0x7*(parseInt(_0x237660(0x9a))/0x8)+-parseInt(_0x237660(0x78))/0x9*(parseInt(_0x237660(0x9b))/0xa)+parseInt(_0x237660(0x92))/0xb*(parseInt(_0x237660(0x89))/0xc);if(_0x287b0b===_0x1e48a8)break;else _0x4608de['push'](_0x4608de['shift']());}catch(_0x19da0f){_0x4608de['push'](_0x4608de['shift']());}}}(a150_0x1ccf,0x79cdb));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x4b616e(0x97);const NUDGE_SUPPRESSED_CODES=new Set([a150_0x4b616e(0x81),a150_0x4b616e(0x8c),a150_0x4b616e(0x93),a150_0x4b616e(0x88),a150_0x4b616e(0x87),a150_0x4b616e(0x99),a150_0x4b616e(0x95),'network_error']),defaultWriter=_0x5cf6f8=>{const _0x5d01ef=a150_0x4b616e;process['stderr'][_0x5d01ef(0x90)](_0x5cf6f8);};export function shouldNudgeForError(_0x32bc96,_0x4ea064){const _0x23cb3c=a150_0x4b616e;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4ea064[_0x23cb3c(0x8f)]===_0x23cb3c(0x94)&&_0x4ea064['command']===_0x23cb3c(0x98))return![];if(_0x32bc96 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x23cb3c(0x7c)](_0x32bc96[_0x23cb3c(0x8d)]);return!![];}export function printIssueReportNudgeForError(_0x5be615,_0x2a48f5,_0x3f9b14=defaultWriter){if(!shouldNudgeForError(_0x5be615,_0x2a48f5))return;const _0x53ad4e=buildSuggestedTitle(_0x5be615,_0x2a48f5);_0x3f9b14(formatNudge(_0x53ad4e));}function a150_0x550a(_0x52657b,_0x44e2d0){_0x52657b=_0x52657b-0x76;const _0x1ccf5b=a150_0x1ccf();let _0x550abe=_0x1ccf5b[_0x52657b];return _0x550abe;}function buildSuggestedTitle(_0x4115f4,_0x2ae91d){const _0x360377=a150_0x4b616e,_0xece0a9=_0x4115f4 instanceof Error?_0x4115f4[_0x360377(0x91)]:String(_0x4115f4),_0x5b5867=_0xece0a9[_0x360377(0x86)](/[\r\n]+/g,'\x20')[_0x360377(0x86)](/\s+/g,'\x20')[_0x360377(0x76)]()[_0x360377(0x7d)](0x0,0x78)[_0x360377(0x86)](/"/g,'\x5c\x22'),_0x21c897=CLI_BIN_NAME+'\x20'+_0x2ae91d['service']+'\x20'+_0x2ae91d[_0x360377(0x7e)];return _0x5b5867[_0x360377(0x77)]>0x0?_0x21c897+':\x20'+_0x5b5867:_0x21c897;}function formatNudge(_0x27d924){const _0x34a36b=a150_0x4b616e;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x34a36b(0x7b),'\x20\x20'+CLI_BIN_NAME+_0x34a36b(0x82),_0x34a36b(0x7f)+_0x27d924+_0x34a36b(0x7a),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x34a36b(0x79)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x34a36b(0x8a)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a151_0x13806a=a151_0x2a91;(function(_0x726726,_0x256d42){const _0x1e1c5e=a151_0x2a91,_0x4e23ea=_0x726726();while(!![]){try{const _0x181786=-parseInt(_0x1e1c5e(0x75))/0x1+parseInt(_0x1e1c5e(0xa2))/0x2+parseInt(_0x1e1c5e(0x96))/0x3+parseInt(_0x1e1c5e(0x97))/0x4*(parseInt(_0x1e1c5e(0x93))/0x5)+parseInt(_0x1e1c5e(0x83))/0x6*(-parseInt(_0x1e1c5e(0x7e))/0x7)+-parseInt(_0x1e1c5e(0x8a))/0x8*(-parseInt(_0x1e1c5e(0xa4))/0x9)+-parseInt(_0x1e1c5e(0x76))/0xa;if(_0x181786===_0x256d42)break;else _0x4e23ea['push'](_0x4e23ea['shift']());}catch(_0x454858){_0x4e23ea['push'](_0x4e23ea['shift']());}}}(a151_0x1781,0x94ecf));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a151_0x13806a(0xa5),'command':a151_0x13806a(0x84),'description':a151_0x13806a(0xa0),'risk':a151_0x13806a(0x69),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a151_0x13806a(0x9b),'type':a151_0x13806a(0x74),'required':!![],'description':a151_0x13806a(0x87)},{'name':a151_0x13806a(0x86),'type':a151_0x13806a(0x74),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0x13806a(0x74),'description':a151_0x13806a(0x7d)}],async 'validate'(_0x45f8df){const _0x51b028=a151_0x13806a,_0x1baf4e=_0x45f8df['str'](_0x51b028(0x9b))[_0x51b028(0x91)](),_0xb96d82=_0x45f8df[_0x51b028(0x7c)](_0x51b028(0x86))[_0x51b028(0x91)](),_0x2d6366=_0x45f8df[_0x51b028(0x7c)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1baf4e)throw CliErrors[_0x51b028(0x95)](_0x51b028(0x9b),_0x51b028(0x73));const _0x222bd7=_0xb96d82[_0x51b028(0x71)]>0x0,_0x3dbddc=_0x2d6366[_0x51b028(0x71)]>0x0;if(_0x222bd7===_0x3dbddc)throw CliErrors[_0x51b028(0x82)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x51b028(0x8c));if(_0x3dbddc){const _0x539cef=resolve(process[_0x51b028(0x7b)](),_0x2d6366);if(!existsSync(_0x539cef))throw CliErrors[_0x51b028(0x82)](_0x51b028(0x9a)+_0x539cef);}},async 'dryRun'(_0x4d91b7){const _0xb11aef=a151_0x13806a,_0x46a93a=await prepareIssueReport(_0x4d91b7);return{'method':_0xb11aef(0x8e),'url':_0xb11aef(0x8f)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x46a93a[_0xb11aef(0x9b)],'issue.description':_0x46a93a[_0xb11aef(0x86)],'issue.description_original_bytes':_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x88)],'issue.description_truncated':_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x85)],'issue.description_redactions':_0x46a93a['sanitize'][_0xb11aef(0x90)],'issue.description_redaction_kinds':_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x8b)][_0xb11aef(0x94)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x46a93a[_0xb11aef(0x98)],_0x46a93a[_0xb11aef(0x80)]?_0xb11aef(0x9f)+_0x46a93a[_0xb11aef(0x80)]:null,_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x85)]?_0xb11aef(0x78)+_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x88)]+'\x20bytes':null,_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x90)]>0x0?_0xb11aef(0x99)+_0x46a93a[_0xb11aef(0x6c)][_0xb11aef(0x90)]+'\x20('+_0x46a93a['sanitize']['redactionKinds']['join'](',\x20')+')':null][_0xb11aef(0x9e)](Boolean)['join']('\x0a')};},async 'execute'(_0x2c1b0b){const _0x517dd0=a151_0x13806a,_0x14609c=await prepareIssueReport(_0x2c1b0b);try{await sendPlatformIssueCollectLog({'title':_0x14609c['title'],'description':_0x14609c[_0x517dd0(0x86)],'sanitize':{'originalBytes':_0x14609c[_0x517dd0(0x6c)][_0x517dd0(0x88)],'truncated':_0x14609c['sanitize'][_0x517dd0(0x85)],'redactionCount':_0x14609c[_0x517dd0(0x6c)][_0x517dd0(0x90)],'redactionKinds':_0x14609c[_0x517dd0(0x6c)][_0x517dd0(0x8b)]}});}catch(_0x34cbc9){throw CliErrors[_0x517dd0(0x89)](_0x517dd0(0x8d)+(_0x34cbc9 instanceof Error?_0x34cbc9[_0x517dd0(0x7f)]:String(_0x34cbc9)),_0x517dd0(0x9c));}return{'ok':!![],'message':buildResultMessage(_0x14609c[_0x517dd0(0x6c)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x517dd0(0x77),_0x517dd0(0x6d),_0x517dd0(0xa1),_0x517dd0(0x6e),_0x517dd0(0x79)],'issue':{'title':_0x14609c[_0x517dd0(0x9b)],'descriptionLength':_0x14609c['description'][_0x517dd0(0x71)],'descriptionSource':_0x14609c[_0x517dd0(0x98)],..._0x14609c[_0x517dd0(0x80)]?{'descriptionFile':_0x14609c[_0x517dd0(0x80)]}:{},'sanitize':{'originalBytes':_0x14609c['sanitize']['originalBytes'],'truncated':_0x14609c[_0x517dd0(0x6c)]['truncated'],'redactions':_0x14609c[_0x517dd0(0x6c)][_0x517dd0(0x90)],'redactionKinds':_0x14609c['sanitize'][_0x517dd0(0x8b)]}}}};}};function buildResultMessage(_0x50f806){const _0x4cab2c=a151_0x13806a,_0x552264=[];return _0x50f806['truncated']&&_0x552264[_0x4cab2c(0x92)](_0x4cab2c(0x81)+_0x50f806[_0x4cab2c(0x88)]+_0x4cab2c(0x6f)),_0x50f806['redactionCount']>0x0&&_0x552264[_0x4cab2c(0x92)](_0x4cab2c(0x6b)+_0x50f806[_0x4cab2c(0x90)]+'\x20secret(s):\x20'+_0x50f806[_0x4cab2c(0x8b)][_0x4cab2c(0x94)](',\x20')),_0x552264[_0x4cab2c(0x71)]===0x0?_0x4cab2c(0x9d):'Platform\x20issue\x20reported\x20('+_0x552264[_0x4cab2c(0x94)](';\x20')+')';}function a151_0x1781(){const _0x5502a3=['Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','string','213690GALhGI','20430000uIAsYQ','issue.description','truncated:\x20original\x20','issue.description_redaction_kinds','inline','cwd','str','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','3445582MrHwMC','message','descriptionFilePath','truncated\x20from\x20','validation','6ENNhwd','report','truncated','description','One-line\x20issue\x20summary','originalBytes','apiError','128PyqlXi','redactionKinds','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Failed\x20to\x20report\x20platform\x20issue:\x20','POST','otel://','redactionCount','trim','push','1153785WDeMgT','join','flagMissing','1221039QBlxxC','20EIDYIB','descriptionSource','redactions:\x20','File\x20not\x20found:\x20','title','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported','filter','descriptionFile:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.description_truncated','2390602svKpnZ','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','339084ucMrMY','issue','write','Issue\x20description\x20file\x20is\x20empty:\x20','redacted\x20','sanitize','issue.description_original_bytes','issue.description_redactions','\x20bytes','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','length','utf8'];a151_0x1781=function(){return _0x5502a3;};return a151_0x1781();}function a151_0x2a91(_0x35c72d,_0x11b58d){_0x35c72d=_0x35c72d-0x69;const _0x1781dc=a151_0x1781();let _0x2a91d1=_0x1781dc[_0x35c72d];return _0x2a91d1;}async function prepareIssueReport(_0x53291f){const _0x374e1d=a151_0x13806a,_0x2d9e3e=_0x53291f[_0x374e1d(0x7c)](_0x374e1d(0x9b))[_0x374e1d(0x91)](),_0x2848de=_0x53291f[_0x374e1d(0x7c)](_0x374e1d(0x86)),_0x211ab7=_0x53291f[_0x374e1d(0x7c)](DESCRIPTION_FILE_FLAG)[_0x374e1d(0x91)]();if(!_0x211ab7){const _0x360403=_0x2848de;if(!_0x360403[_0x374e1d(0x91)]())throw CliErrors[_0x374e1d(0x82)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x374e1d(0xa3));const _0x2f5a8d=sanitizeIssueDescription(_0x360403);return{'title':_0x2d9e3e,'description':_0x2f5a8d[_0x374e1d(0x86)],'descriptionSource':_0x374e1d(0x7a),'sanitize':_0x2f5a8d};}const _0x2e2a96=resolve(process[_0x374e1d(0x7b)](),_0x211ab7),_0x51a196=await readFile(_0x2e2a96,_0x374e1d(0x72));if(!_0x51a196[_0x374e1d(0x91)]())throw CliErrors['validation'](_0x374e1d(0x6a)+_0x2e2a96,_0x374e1d(0x70));const _0x1cac91=sanitizeIssueDescription(_0x51a196);return{'title':_0x2d9e3e,'description':_0x1cac91[_0x374e1d(0x86)],'descriptionSource':'file','descriptionFilePath':_0x2e2a96,'sanitize':_0x1cac91};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x21b7(){const _0x5dd71c=['154641MXjBWG','access-key','string','10kKzLCl','REDACTED:authorization','__RB_OSS_ID_','toString','kind','private-key','length','byteLength','slice','from','8DoaHmN','includes','910900mKIXPU','cookie','authorization','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','12omNvWd','replace','10829680eoGwsi','1967707scYcsM','pattern','push','790861vSDsaP','10151614AnMuvD','label','restore','utf8','subarray','9LseQfJ','REDACTED:cookie','5275432UzbCws','REDACTED:access-key','max'];a152_0x21b7=function(){return _0x5dd71c;};return a152_0x21b7();}const a152_0x360965=a152_0x2ce0;(function(_0x1510f8,_0x1458be){const _0x4944b9=a152_0x2ce0,_0x789e05=_0x1510f8();while(!![]){try{const _0x5d8eb8=parseInt(_0x4944b9(0xf1))/0x1+-parseInt(_0x4944b9(0xff))/0x2*(-parseInt(_0x4944b9(0xfc))/0x3)+-parseInt(_0x4944b9(0xe5))/0x4*(-parseInt(_0x4944b9(0xe7))/0x5)+parseInt(_0x4944b9(0xeb))/0x6*(parseInt(_0x4944b9(0xee))/0x7)+parseInt(_0x4944b9(0xf9))/0x8+-parseInt(_0x4944b9(0xf7))/0x9*(parseInt(_0x4944b9(0xed))/0xa)+-parseInt(_0x4944b9(0xf2))/0xb;if(_0x5d8eb8===_0x1458be)break;else _0x789e05['push'](_0x789e05['shift']());}catch(_0x1cae4d){_0x789e05['push'](_0x789e05['shift']());}}}(a152_0x21b7,0x99809));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a152_0x360965(0xea),REDACTION_RULES=[{'kind':a152_0x360965(0xe8),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x360965(0xf8)},{'kind':a152_0x360965(0xe9),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x360965(0x100)},{'kind':a152_0x360965(0xe0),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a152_0x360965(0xfd),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x360965(0xfa)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];function a152_0x2ce0(_0xb2238c,_0x392a10){_0xb2238c=_0xb2238c-0xde;const _0x21b793=a152_0x21b7();let _0x2ce0b6=_0x21b793[_0xb2238c];return _0x2ce0b6;}export function sanitizeIssueDescription(_0x168d8e){const _0x50f142=a152_0x360965,_0x4e6cb5=Buffer[_0x50f142(0xe2)](_0x168d8e,_0x50f142(0xf5)),_0x46f2a5=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x13d76a=_0x168d8e,_0x2c8ffa=0x0;const _0x5b9c89=[];if(!_0x46f2a5){const _0x183fee=protectOssAccessKeyIds(_0x13d76a);_0x13d76a=_0x183fee['description'];for(const _0x2de0ed of REDACTION_RULES){let _0x11aca7=0x0;_0x13d76a=_0x13d76a['replace'](_0x2de0ed[_0x50f142(0xef)],(_0x5cda9b,_0x3911b7)=>{const _0x14505e=_0x50f142;_0x11aca7+=0x1;const _0x19609b=typeof _0x3911b7===_0x14505e(0xfe)?_0x3911b7:'';return _0x19609b+'['+_0x2de0ed[_0x14505e(0xf3)]+']';}),_0x11aca7>0x0&&(_0x2c8ffa+=_0x11aca7,!_0x5b9c89[_0x50f142(0xe6)](_0x2de0ed[_0x50f142(0xdf)])&&_0x5b9c89[_0x50f142(0xf0)](_0x2de0ed[_0x50f142(0xdf)]));}_0x13d76a=_0x183fee[_0x50f142(0xf4)](_0x13d76a);}let _0x289c5e=![];if(Buffer[_0x50f142(0xe2)](_0x13d76a,_0x50f142(0xf5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x289c5e=!![];const _0x27a71f=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x5e5188=Math[_0x50f142(0xfb)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x27a71f);_0x13d76a=sliceUtf8Bytes(_0x13d76a,_0x5e5188)+TRUNCATION_NOTICE;}return{'description':_0x13d76a,'originalBytes':_0x4e6cb5,'truncated':_0x289c5e,'redactionCount':_0x2c8ffa,'redactionKinds':_0x5b9c89};}function protectOssAccessKeyIds(_0x2a76ca){const _0xdaee5f=a152_0x360965,_0x572e65=[],_0x593798=_0x2a76ca[_0xdaee5f(0xec)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x330176,_0x34b530)=>{const _0x1823a1=_0xdaee5f,_0x25e7cb=_0x572e65[_0x1823a1(0xf0)](_0x330176[_0x1823a1(0xe3)](_0x34b530[_0x1823a1(0xe1)]))-0x1;return _0x34b530+_0x1823a1(0x101)+_0x25e7cb+'__';});return{'description':_0x593798,'restore':_0x5c412a=>_0x5c412a[_0xdaee5f(0xec)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x201037,_0x353739,_0x33150e)=>{const _0x492ff8=_0x572e65[Number(_0x33150e)];return _0x492ff8===undefined?_0x201037:''+_0x353739+_0x492ff8;})};}function sliceUtf8Bytes(_0x54f93b,_0x2369f6){const _0x4ff28e=a152_0x360965;if(_0x2369f6<=0x0)return'';const _0x3ac157=Buffer[_0x4ff28e(0xe4)](_0x54f93b,_0x4ff28e(0xf5));if(_0x3ac157[_0x4ff28e(0xe2)]<=_0x2369f6)return _0x54f93b;let _0x3f92ef=_0x2369f6;while(_0x3f92ef>0x0){const _0x428680=_0x3ac157[_0x3f92ef];if(_0x428680===undefined||(_0x428680&0xc0)!==0x80)break;_0x3f92ef-=0x1;}return _0x3ac157[_0x4ff28e(0xf6)](0x0,_0x3f92ef)[_0x4ff28e(0xde)](_0x4ff28e(0xf5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x5903fa=a153_0xdb91;(function(_0x3cdb88,_0x2b9dcc){const _0x116a76=a153_0xdb91,_0x290e86=_0x3cdb88();while(!![]){try{const _0x3d7151=parseInt(_0x116a76(0xc4))/0x1*(-parseInt(_0x116a76(0xb1))/0x2)+parseInt(_0x116a76(0xad))/0x3+-parseInt(_0x116a76(0x9a))/0x4+parseInt(_0x116a76(0x9e))/0x5*(parseInt(_0x116a76(0x99))/0x6)+parseInt(_0x116a76(0xb3))/0x7*(parseInt(_0x116a76(0xaf))/0x8)+-parseInt(_0x116a76(0xa7))/0x9+-parseInt(_0x116a76(0xb5))/0xa*(-parseInt(_0x116a76(0xa5))/0xb);if(_0x3d7151===_0x2b9dcc)break;else _0x290e86['push'](_0x290e86['shift']());}catch(_0x53f6c0){_0x290e86['push'](_0x290e86['shift']());}}}(a153_0x351c,0xa0dd3));function a153_0x351c(){const _0xdf2454=['3246bttoZM','2757556KlUXhL','rabetbase\x20kb\x20list\x20--title\x20','/admin/knowledge-base/create','kb_title_required','4865tcylZf','byteSize','kb_file_required','title','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','300586wUeEqj','kb_verification_failed','4891527oJSDSr','rabetbase\x20kb\x20detail\x20--id\x20','kb_already_exists','content','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','verified','2491815zGUAvP','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','20616hkIzkr','write','18bMdWTU','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','952xOyxEi','\x20for\x20','140MtGGPb','appCode','POST','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Knowledge-base\x20title','stringify','trim','company','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','kb_create_outcome_unknown','string','str','\x20with\x20title\x20','length','create','22027bxUDiW','\x20--format\x20compress','--file\x20is\x20required.','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','contentHash','file'];a153_0x351c=function(){return _0xdf2454;};return a153_0x351c();}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_0x5903fa(0x9c);function readCreateInput(_0x3ddc42){const _0x592ce2=a153_0x5903fa,_0x5e57c9=_0x3ddc42[_0x592ce2(0xc0)](_0x592ce2(0xa1))[_0x592ce2(0xbb)]();if(!_0x5e57c9)throw kbError(_0x592ce2(0x9d),'--title\x20is\x20required.');const _0x1304ec=_0x3ddc42['str'](_0x592ce2(0x98))[_0x592ce2(0xbb)]();if(!_0x1304ec)throw kbError(_0x592ce2(0xa0),_0x592ce2(0xc6),_0x592ce2(0xa4));return{'title':_0x5e57c9,'file':_0x1304ec};}async function prepareCreate(_0x598bfe){const _0x6bb172=a153_0x5903fa,_0x2494e3=readCreateInput(_0x598bfe),_0x27c728=await readKbFile(_0x2494e3[_0x6bb172(0x98)]),_0x4badd3=await fetchAllCompanyKnowledgeBases(_0x598bfe,{'title':_0x2494e3['title']}),_0x305eb5=findExactCompanyKnowledgeBases(_0x4badd3,_0x598bfe['appCode'],_0x2494e3[_0x6bb172(0xa1)]);if(_0x305eb5[_0x6bb172(0xc2)]>0x0)throw kbError(_0x6bb172(0xa9),_0x6bb172(0xab)+_0x598bfe['appCode']+_0x6bb172(0xc1)+_0x2494e3[_0x6bb172(0xa1)]+'.',_0x6bb172(0xbd)+_0x305eb5[0x0]['id']+'\x20--format\x20compress`\x20before\x20choosing\x20update.');return{..._0x2494e3,'content':_0x27c728};}function a153_0xdb91(_0x4601e5,_0x5ca959){_0x4601e5=_0x4601e5-0x97;const _0x351c74=a153_0x351c();let _0xdb91f=_0x351c74[_0x4601e5];return _0xdb91f;}function plannedAfter(_0x116cc8,_0x27d2a0){const _0x59742f=a153_0x5903fa;return{'scope':_0x59742f(0xbc),'appCode':_0x116cc8[_0x59742f(0xb6)],'title':_0x27d2a0[_0x59742f(0xa1)],'contentByteSize':_0x27d2a0[_0x59742f(0xaa)][_0x59742f(0x9f)],'contentHash':_0x27d2a0[_0x59742f(0xaa)][_0x59742f(0x97)]};}function verifyCreatedState(_0x5bf78a,_0x4dfdcb,_0x64e3f4){const _0x578af2=a153_0x5903fa;assertCompanyKnowledgeBase(_0x64e3f4,_0x5bf78a[_0x578af2(0xb6)],_0x64e3f4['id']);const _0x34f77a=inspectKbContent(_0x64e3f4[_0x578af2(0xaa)]);if(_0x64e3f4['title']!==_0x4dfdcb[_0x578af2(0xa1)]||_0x34f77a[_0x578af2(0x97)]!==_0x4dfdcb[_0x578af2(0xaa)][_0x578af2(0x97)])throw kbError(_0x578af2(0xa6),'Company\x20knowledge\x20base\x20'+_0x64e3f4['id']+_0x578af2(0xb2),_0x578af2(0xb8)+_0x64e3f4['id']+_0x578af2(0xc7));return projectKb(_0x64e3f4);}export const kbCreate={'service':'kb','command':a153_0x5903fa(0xc3),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':a153_0x5903fa(0xb0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x5903fa(0xa1),'type':a153_0x5903fa(0xbf),'required':!![],'description':a153_0x5903fa(0xb9)},{'name':a153_0x5903fa(0x98),'type':a153_0x5903fa(0xbf),'required':!![],'description':a153_0x5903fa(0xae)}],async 'validate'(_0x41dc98){readCreateInput(_0x41dc98);},async 'dryRun'(_0x26e381){const _0x48befc=a153_0x5903fa,_0xa92204=await prepareCreate(_0x26e381);return asDryRunResult({'operation':_0x48befc(0xc3),'selector':{'scope':_0x48befc(0xbc),'appCode':_0x26e381[_0x48befc(0xb6)],'title':_0xa92204[_0x48befc(0xa1)]},'before':null,'after':plannedAfter(_0x26e381,_0xa92204),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x48befc(0x9b)+JSON[_0x48befc(0xba)](_0xa92204[_0x48befc(0xa1)])+_0x48befc(0xc5)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x2986c4){const _0x7adee7=a153_0x5903fa,_0x53c01a=await prepareCreate(_0x2986c4);let _0x269068,_0x7c9d60=![];try{const _0x2d86bc=await createEnterpriseKnowledgeBase(_0x2986c4['cookie'],{'appCode':_0x2986c4[_0x7adee7(0xb6)],'title':_0x53c01a[_0x7adee7(0xa1)],'content':_0x53c01a[_0x7adee7(0xaa)][_0x7adee7(0xaa)]});assertCompanyKnowledgeBase(_0x2d86bc,_0x2986c4[_0x7adee7(0xb6)],_0x2d86bc['id']),_0x269068=_0x2d86bc['id'];}catch(_0x59beec){if(!isPlatformTransportFailure(_0x59beec))throw _0x59beec;_0x7c9d60=!![];}if(_0x269068===undefined){const _0x3baf3c=await verifyKbMutationReadback(_0x7adee7(0xc3),!![],()=>fetchAllCompanyKnowledgeBases(_0x2986c4,{'title':_0x53c01a['title']})),_0x2f83c6=findExactCompanyKnowledgeBases(_0x3baf3c,_0x2986c4[_0x7adee7(0xb6)],_0x53c01a[_0x7adee7(0xa1)]);if(_0x2f83c6[_0x7adee7(0xc2)]!==0x1)throw kbError(_0x7adee7(0xbe),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x2f83c6[_0x7adee7(0xc2)]+'.',_0x7adee7(0xa3));_0x269068=_0x2f83c6[0x0]['id'];}const _0x108e4b=await verifyKbMutationReadback(_0x7adee7(0xc3),_0x7c9d60,()=>requireKb(_0x2986c4,_0x269068)),_0xf3ee69=verifyCreatedState(_0x2986c4,_0x53c01a,_0x108e4b),_0x2e6c0c=_0x7c9d60?[_0x7adee7(0xa2)]:[];return{'ok':!![],'data':{'operation':_0x7adee7(0xc3),'selector':{'id':_0xf3ee69['id'],'scope':_0x7adee7(0xbc),'appCode':_0xf3ee69[_0x7adee7(0xb6)]},'before':null,'after':_0xf3ee69,'dryRun':![],'backend':{'method':_0x7adee7(0xb7),'path':CREATE_PATH},'warnings':_0x2e6c0c,'verification':{'status':_0x7adee7(0xac),'recoveredAfterUnknownResponse':_0x7c9d60,'lookupCommand':_0x7adee7(0xa8)+_0xf3ee69['id']+_0x7adee7(0xc5)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0xf3ee69['id']+_0x7adee7(0xb4)+_0xf3ee69[_0x7adee7(0xb6)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x2bb226=a154_0x1f3e;(function(_0x3b7f6f,_0x4b4c4f){const _0x10da74=a154_0x1f3e,_0x572400=_0x3b7f6f();while(!![]){try{const _0x26b2b7=-parseInt(_0x10da74(0xc8))/0x1*(-parseInt(_0x10da74(0xc2))/0x2)+parseInt(_0x10da74(0xcb))/0x3*(-parseInt(_0x10da74(0xd0))/0x4)+parseInt(_0x10da74(0xde))/0x5+-parseInt(_0x10da74(0xdd))/0x6+-parseInt(_0x10da74(0xc4))/0x7+parseInt(_0x10da74(0xcd))/0x8*(parseInt(_0x10da74(0xd1))/0x9)+parseInt(_0x10da74(0xdc))/0xa;if(_0x26b2b7===_0x4b4c4f)break;else _0x572400['push'](_0x572400['shift']());}catch(_0x257a58){_0x572400['push'](_0x572400['shift']());}}}(a154_0xb4b1,0x7f1e1));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';function a154_0x1f3e(_0x25dd2e,_0x215b45){_0x25dd2e=_0x25dd2e-0xc1;const _0xb4b1cb=a154_0xb4b1();let _0x1f3e66=_0xb4b1cb[_0x25dd2e];return _0x1f3e66;}function a154_0xb4b1(){const _0x14f3f6=['2170770AyqYhx','company','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','number','1QevxQO','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','Company\x20knowledge-base\x20id','84879ygLgfG','no_op','7816vboAOT','Company\x20knowledge\x20base\x20','kb_expected_version_invalid','44FOeDto','1395VVdAEY','delete','high-risk-write','POST','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','verified','\x20--format\x20compress','expected-version','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','rabetbase\x20kb\x20detail\x20--id\x20','already_absent','5482510igrWrF','4696134KvkXfW','4347400fFeBXY','snapshotHash','flag','Soft-deleted\x20company\x20knowledge\x20base\x20','kb_delete_outcome_unknown','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','cookie','kb_verification_failed','/admin/knowledge-base/delete','unshift','appCode','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','\x20remains\x20readable\x20after\x20delete.','711058YRyJrM','isSafeInteger'];a154_0xb4b1=function(){return _0x14f3f6;};return a154_0xb4b1();}const DELETE_PATH=a154_0x2bb226(0xe6),RAG_WARNING=a154_0x2bb226(0xd9),NON_ATOMIC_WARNING=a154_0x2bb226(0xd5);function readExpectedVersion(_0x110fd2){const _0x149899=a154_0x2bb226,_0x2f244a=_0x110fd2[_0x149899(0xe0)](_0x149899(0xd8));if(_0x2f244a===undefined)return undefined;const _0x3bf2eb=Number(_0x2f244a);if(!Number[_0x149899(0xc3)](_0x3bf2eb)||_0x3bf2eb<0x0)throw kbError(_0x149899(0xcf),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x3bf2eb;}function noOpData(_0x11144e,_0xb020de,_0x5439e9){const _0x4d5407=a154_0x2bb226;return{'operation':_0x4d5407(0xcc),'selector':{'id':_0xb020de,'scope':_0x4d5407(0xc5),'appCode':_0x11144e[_0x4d5407(0xe8)]},'before':null,'after':null,'dryRun':_0x5439e9,'deleteCalled':![],'backend':{'method':_0x4d5407(0xd4),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x4d5407(0xdb),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a154_0x2bb226(0xd2),'description':a154_0x2bb226(0xc9),'risk':a154_0x2bb226(0xd3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a154_0x2bb226(0xc7),'required':!![],'description':a154_0x2bb226(0xca)},{'name':'expected-version','type':a154_0x2bb226(0xc7),'required':![],'description':a154_0x2bb226(0xea)}],async 'validate'(_0x4a53c2){readKbId(_0x4a53c2),readExpectedVersion(_0x4a53c2),requireKbExplicitYes(_0x4a53c2);},async 'dryRun'(_0x1c0a5a){const _0x27fbe8=a154_0x2bb226,_0x5bad98=readKbId(_0x1c0a5a),_0x42b9cd=readExpectedVersion(_0x1c0a5a),_0x20f424=await getKbOrNull(_0x1c0a5a,_0x5bad98);if(!_0x20f424)return asDryRunResult(noOpData(_0x1c0a5a,_0x5bad98,!![]),{'method':_0x27fbe8(0xd4),'url':DELETE_PATH});assertExpectedKbVersion(_0x20f424,_0x42b9cd);const _0x4586bf=projectKb(_0x20f424),_0x17e0ba=[RAG_WARNING];if(_0x42b9cd!==undefined)_0x17e0ba[_0x27fbe8(0xe7)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x27fbe8(0xd2),'selector':{'id':_0x4586bf['id'],'scope':'company','appCode':_0x4586bf[_0x27fbe8(0xe8)]},'before':_0x4586bf,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x27fbe8(0xd4),'path':DELETE_PATH},'warnings':_0x17e0ba,'verification':{'expectedVersion':_0x42b9cd??null,'atomicCompareAndSet':![],'snapshotHash':_0x4586bf[_0x27fbe8(0xdf)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x4586bf['id']+_0x27fbe8(0xd7)}},{'method':_0x27fbe8(0xd4),'url':DELETE_PATH});},async 'execute'(_0x100dae){const _0x1d0598=a154_0x2bb226;requireKbExplicitYes(_0x100dae);const _0x4597c0=readKbId(_0x100dae),_0x53febe=readExpectedVersion(_0x100dae),_0x19900d=await getKbOrNull(_0x100dae,_0x4597c0);if(!_0x19900d)return{'ok':!![],'data':noOpData(_0x100dae,_0x4597c0,![]),'message':'Company\x20knowledge\x20base\x20'+_0x4597c0+'\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made'};assertExpectedKbVersion(_0x19900d,_0x53febe);const _0x6579c0=projectKb(_0x19900d);let _0x388297=![];try{await deleteEnterpriseKnowledgeBase(_0x100dae[_0x1d0598(0xe4)],_0x4597c0);}catch(_0x4f494d){if(!isPlatformTransportFailure(_0x4f494d))throw _0x4f494d;_0x388297=!![];}const _0x149f50=await verifyKbMutationReadback('delete',_0x388297,()=>getKbOrNull(_0x100dae,_0x4597c0));if(_0x149f50)throw kbError(_0x388297?_0x1d0598(0xe2):_0x1d0598(0xe5),_0x1d0598(0xce)+_0x4597c0+_0x1d0598(0xc1),_0x1d0598(0xe3)+_0x4597c0+_0x1d0598(0xc6));const _0x21fb45=[RAG_WARNING];if(_0x53febe!==undefined)_0x21fb45['unshift'](NON_ATOMIC_WARNING);return _0x388297&&_0x21fb45[_0x1d0598(0xe7)](_0x1d0598(0xe9)),{'ok':!![],'data':{'operation':'delete','selector':{'id':_0x6579c0['id'],'scope':_0x1d0598(0xc5),'appCode':_0x6579c0[_0x1d0598(0xe8)]},'before':_0x6579c0,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x1d0598(0xd4),'path':DELETE_PATH},'warnings':_0x21fb45,'verification':{'status':_0x1d0598(0xd6),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x388297,'lookupCommand':_0x1d0598(0xda)+_0x6579c0['id']+'\x20--format\x20compress'}},'message':_0x1d0598(0xe1)+_0x6579c0['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a155_0x2fa2(_0x2ab14d,_0x4477fa){_0x2ab14d=_0x2ab14d-0x7e;const _0x21fd3c=a155_0x21fd();let _0x2fa2c6=_0x21fd3c[_0x2ab14d];return _0x2fa2c6;}const a155_0x2382df=a155_0x2fa2;(function(_0x7b0331,_0x206071){const _0x53728e=a155_0x2fa2,_0x4456c1=_0x7b0331();while(!![]){try{const _0x216f77=parseInt(_0x53728e(0x82))/0x1*(parseInt(_0x53728e(0x84))/0x2)+-parseInt(_0x53728e(0x83))/0x3+-parseInt(_0x53728e(0x7e))/0x4*(parseInt(_0x53728e(0x89))/0x5)+parseInt(_0x53728e(0x88))/0x6+-parseInt(_0x53728e(0x87))/0x7+parseInt(_0x53728e(0x80))/0x8+parseInt(_0x53728e(0x8b))/0x9;if(_0x216f77===_0x206071)break;else _0x4456c1['push'](_0x4456c1['shift']());}catch(_0x4c1ecf){_0x4456c1['push'](_0x4456c1['shift']());}}}(a155_0x21fd,0x69f36));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a155_0x2382df(0x8a),'description':a155_0x2382df(0x86),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a155_0x2382df(0x85),'required':!![],'description':a155_0x2382df(0x7f)}],async 'validate'(_0xdc28cc){readKbId(_0xdc28cc);},async 'execute'(_0x1fb616){const _0x44753e=a155_0x2382df,_0x13c1cf=readKbId(_0x1fb616),_0x381ba0=await requireKb(_0x1fb616,_0x13c1cf);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x381ba0),'content':_0x381ba0['content']}},'message':_0x44753e(0x81)+_0x13c1cf};}};function a155_0x21fd(){const _0x91590d=['number','Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','2504971oXhhjK','2410950quNMrl','4033555oDJmGr','detail','5473233iBpWUd','4ercwVq','Company\x20knowledge-base\x20id','4482144iviOCk','Loaded\x20company\x20knowledge\x20base\x20','3tojIPU','1505385ooOhpx','353402OrsGWT'];a155_0x21fd=function(){return _0x91590d;};return a155_0x21fd();}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a156_0x5bb024=a156_0x20bf;(function(_0xef7e83,_0x4401cc){const _0x22618b=a156_0x20bf,_0x267370=_0xef7e83();while(!![]){try{const _0x5646b1=parseInt(_0x22618b(0x175))/0x1+-parseInt(_0x22618b(0x177))/0x2*(-parseInt(_0x22618b(0x17a))/0x3)+-parseInt(_0x22618b(0x179))/0x4+-parseInt(_0x22618b(0x176))/0x5+parseInt(_0x22618b(0x173))/0x6+-parseInt(_0x22618b(0x178))/0x7*(-parseInt(_0x22618b(0x170))/0x8)+-parseInt(_0x22618b(0x17e))/0x9*(-parseInt(_0x22618b(0x171))/0xa);if(_0x5646b1===_0x4401cc)break;else _0x267370['push'](_0x267370['shift']());}catch(_0x2b2aed){_0x267370['push'](_0x267370['shift']());}}}(a156_0x5eec,0xac3d6));import{withKbManagementSession}from'../../core/kb-management-client.js';function a156_0x5eec(){const _0x2fe694=['44471UDdInd','4145936WwwCEx','1625865ZVuRuG','signal','dryRun','execute','4968243UbjLqE','472lIYYVe','10sOkiwf','search','990852UQMuwA','map','778759RrKhdl','3353660wCBQYq','2znEeKg'];a156_0x5eec=function(){return _0x2fe694;};return a156_0x5eec();}import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';function a156_0x20bf(_0x1d6f11,_0x544aa3){_0x1d6f11=_0x1d6f11-0x170;const _0x5eec9c=a156_0x5eec();let _0x20bfa4=_0x5eec9c[_0x1d6f11];return _0x20bfa4;}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';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete][a156_0x5bb024(0x174)](_0xe8b99a=>_0xe8b99a['command']===a156_0x5bb024(0x172)?_0xe8b99a:{..._0xe8b99a,'execute':_0x901e57=>withKbManagementSession(_0x901e57[a156_0x5bb024(0x17b)],()=>_0xe8b99a[a156_0x5bb024(0x17d)](_0x901e57)),..._0xe8b99a[a156_0x5bb024(0x17c)]?{'dryRun':_0x4189c0=>withKbManagementSession(_0x4189c0[a156_0x5bb024(0x17b)],()=>_0xe8b99a['dryRun'](_0x4189c0))}:{}});
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a157_0xda1b2d=a157_0x1351;function a157_0x22fc(){const _0x14716f=['length','1939752YfHEpC','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','\x20company\x20knowledge\x20base(s)\x20for\x20','Filter\x20by\x20knowledge-base\x20title','731152ZNMsUF','title','393108tlEXeY','82636RZoLzR','748228xIQkXJ','read','115nVsljQ','461958aJJqrE','81755TZnaJr','appCode','map','Found\x20'];a157_0x22fc=function(){return _0x14716f;};return a157_0x22fc();}function a157_0x1351(_0x8c2988,_0x598c14){_0x8c2988=_0x8c2988-0xa1;const _0x22fcb1=a157_0x22fc();let _0x13516b=_0x22fcb1[_0x8c2988];return _0x13516b;}(function(_0xdd2b12,_0x1c3d0f){const _0x510969=a157_0x1351,_0x254f01=_0xdd2b12();while(!![]){try{const _0x165ee7=-parseInt(_0x510969(0xac))/0x1+parseInt(_0x510969(0xa8))/0x2+parseInt(_0x510969(0xa6))/0x3+-parseInt(_0x510969(0xa7))/0x4*(parseInt(_0x510969(0xaa))/0x5)+parseInt(_0x510969(0xb1))/0x6+parseInt(_0x510969(0xab))/0x7+-parseInt(_0x510969(0xa4))/0x8;if(_0x165ee7===_0x1c3d0f)break;else _0x254f01['push'](_0x254f01['shift']());}catch(_0x503e7b){_0x254f01['push'](_0x254f01['shift']());}}}(a157_0x22fc,0x3c172));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':'list','description':a157_0xda1b2d(0xa1),'risk':a157_0xda1b2d(0xa9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0xda1b2d(0xa5),'type':'string','required':![],'description':a157_0xda1b2d(0xa3)}],async 'execute'(_0x294584){const _0x14dbf0=a157_0xda1b2d,_0x4ed8d4=_0x294584['str'](_0x14dbf0(0xa5))['trim'](),_0x515f3f=await fetchAllCompanyKnowledgeBases(_0x294584,{..._0x4ed8d4?{'title':_0x4ed8d4}:{}}),_0xc5188d=_0x515f3f[_0x14dbf0(0xae)](projectKb);return{'ok':!![],'data':{'total':_0xc5188d['length'],'knowledgeBases':_0xc5188d},'message':_0x14dbf0(0xaf)+_0xc5188d[_0x14dbf0(0xb0)]+_0x14dbf0(0xa2)+_0x294584[_0x14dbf0(0xad)]};}};
|