@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4
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 +10 -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.d.ts +2 -2
- 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/context.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- 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/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/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-issue-report.md +4 -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
- package/lib/commands/issue/shared.d.ts +0 -32
- package/lib/commands/issue/shared.js +0 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
- package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.10-beta.
|
|
6
|
-
"skillVersion": "2.5.10-beta.
|
|
5
|
+
"packageVersion": "2.5.10-beta.4",
|
|
6
|
+
"skillVersion": "2.5.10-beta.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/approval-flow-development-workflow.md",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"references/rabetbase-user-account.md",
|
|
160
160
|
"references/rabetbase-workspace.md"
|
|
161
161
|
],
|
|
162
|
-
"digest": "
|
|
162
|
+
"digest": "a9a26715bea98332632263a3c2f0ae8e5fcd54e2510967cd68fd1de2e97d3efc"
|
|
163
163
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 对 `issue.description` 的卫生处理:截断超长 + 替换敏感片段,**永不拒绝**。
|
|
3
|
-
* 设计取向是“宁可 redact 也要让 issue 送达” —— issue 上报场景本身就是兜底通路,
|
|
4
|
-
* 用户在登录失败 / Cookie 过期等异常下提交错误日志的概率最高,敏感关键字命中率天然高,
|
|
5
|
-
* 若 reject 会让用户直接放弃上报,宿主侧也丢失观测。
|
|
6
|
-
*
|
|
7
|
-
* 卫生处理结果(截断与替换次数等)会作为 attribute 一并上报,方便运维侧统计与回放。
|
|
8
|
-
*/
|
|
9
|
-
export declare const ISSUE_DESCRIPTION_MAX_BYTES: number;
|
|
10
|
-
export type SanitizeIssueDescriptionResult = {
|
|
11
|
-
/** 已清洗、可直接上报的 description 文本 */
|
|
12
|
-
description: string;
|
|
13
|
-
/** 入参原始字节长度(UTF-8) */
|
|
14
|
-
originalBytes: number;
|
|
15
|
-
/** 是否因超过 {@link ISSUE_DESCRIPTION_MAX_BYTES} 被截断 */
|
|
16
|
-
truncated: boolean;
|
|
17
|
-
/** 命中的敏感片段总次数 */
|
|
18
|
-
redactionCount: number;
|
|
19
|
-
/** 命中过的敏感类别(去重、保持声明顺序) */
|
|
20
|
-
redactionKinds: string[];
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* 对 issue description 做体积截断 + 敏感片段替换。
|
|
24
|
-
*
|
|
25
|
-
* - 永不抛错、永不拒绝;上层应直接使用返回的 `description`。
|
|
26
|
-
* - 卫生处理结果通过 `truncated` / `redactionCount` / `redactionKinds` 暴露,
|
|
27
|
-
* 建议作为 `issue.description_*` attribute 上报,以便运维统计。
|
|
28
|
-
*
|
|
29
|
-
* 旁路:若 `RABETBASE_ISSUE_RAW_DESCRIPTION=1`,跳过 redact 但仍执行 size 截断
|
|
30
|
-
* (体积保护是后端成本/截断风险,不允许绕过)。
|
|
31
|
-
*/
|
|
32
|
-
export declare function sanitizeIssueDescription(input: string): SanitizeIssueDescriptionResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a152_0x4e154b=a152_0x54bf;(function(_0x207978,_0x5cb8c5){const _0x37d9a3=a152_0x54bf,_0x3946e0=_0x207978();while(!![]){try{const _0x5769fb=parseInt(_0x37d9a3(0xe5))/0x1*(-parseInt(_0x37d9a3(0xd5))/0x2)+-parseInt(_0x37d9a3(0xe9))/0x3+-parseInt(_0x37d9a3(0xeb))/0x4+parseInt(_0x37d9a3(0xea))/0x5*(-parseInt(_0x37d9a3(0xdc))/0x6)+parseInt(_0x37d9a3(0xf6))/0x7+-parseInt(_0x37d9a3(0xee))/0x8*(parseInt(_0x37d9a3(0xdd))/0x9)+parseInt(_0x37d9a3(0xde))/0xa;if(_0x5769fb===_0x5cb8c5)break;else _0x3946e0['push'](_0x3946e0['shift']());}catch(_0x7f676d){_0x3946e0['push'](_0x3946e0['shift']());}}}(a152_0x5c0e,0x82c34));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a152_0x4e154b(0xe1),REDACTION_RULES=[{'kind':a152_0x4e154b(0xef),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x4e154b(0xdb)},{'kind':a152_0x4e154b(0xd6),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a152_0x4e154b(0xe2),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x4e154b(0xf1)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a152_0x4e154b(0xd8),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x4e154b(0xec)},{'kind':a152_0x4e154b(0xd9),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a152_0x4e154b(0xd4)}];export function sanitizeIssueDescription(_0x24fcdd){const _0x9dd6eb=a152_0x4e154b,_0x92837d=Buffer[_0x9dd6eb(0xe3)](_0x24fcdd,_0x9dd6eb(0xda)),_0x4c86b7=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xa625eb=_0x24fcdd,_0x18b2d2=0x0;const _0x185f54=[];if(!_0x4c86b7){const _0x5e76c1=protectOssAccessKeyIds(_0xa625eb);_0xa625eb=_0x5e76c1[_0x9dd6eb(0xed)];for(const _0x2b6cc6 of REDACTION_RULES){let _0xad379a=0x0;_0xa625eb=_0xa625eb[_0x9dd6eb(0xe6)](_0x2b6cc6['pattern'],(_0x13dd22,_0x2b98f0)=>{const _0x480eca=_0x9dd6eb;_0xad379a+=0x1;const _0x48d17=typeof _0x2b98f0===_0x480eca(0xe7)?_0x2b98f0:'';return _0x48d17+'['+_0x2b6cc6[_0x480eca(0xf2)]+']';}),_0xad379a>0x0&&(_0x18b2d2+=_0xad379a,!_0x185f54[_0x9dd6eb(0xf3)](_0x2b6cc6['kind'])&&_0x185f54[_0x9dd6eb(0xe0)](_0x2b6cc6[_0x9dd6eb(0xe4)]));}_0xa625eb=_0x5e76c1[_0x9dd6eb(0xf7)](_0xa625eb);}let _0x30e757=![];if(Buffer['byteLength'](_0xa625eb,_0x9dd6eb(0xda))>ISSUE_DESCRIPTION_MAX_BYTES){_0x30e757=!![];const _0x5766e8=Buffer[_0x9dd6eb(0xe3)](TRUNCATION_NOTICE,_0x9dd6eb(0xda)),_0x4f5578=Math[_0x9dd6eb(0xd7)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5766e8);_0xa625eb=sliceUtf8Bytes(_0xa625eb,_0x4f5578)+TRUNCATION_NOTICE;}return{'description':_0xa625eb,'originalBytes':_0x92837d,'truncated':_0x30e757,'redactionCount':_0x18b2d2,'redactionKinds':_0x185f54};}function a152_0x5c0e(){const _0x11f189=['max','password','bearer-jwt','utf8','REDACTED:cookie','78kgKzXp','387WDrotK','32628130oPyBhc','from','push','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','private-key','byteLength','kind','264829DXNyPA','replace','string','toString','636585ByuBEV','255305DhbboY','3706928woJpjT','REDACTED:password','description','144776NiAsHL','cookie','subarray','REDACTED:private-key','label','includes','slice','length','829577bwIyyg','restore','__RB_OSS_ID_','REDACTED:bearer-jwt','2IGMpKX','authorization'];a152_0x5c0e=function(){return _0x11f189;};return a152_0x5c0e();}function a152_0x54bf(_0x4d5b1a,_0x3d3265){_0x4d5b1a=_0x4d5b1a-0xd3;const _0x5c0e07=a152_0x5c0e();let _0x54bfc7=_0x5c0e07[_0x4d5b1a];return _0x54bfc7;}function protectOssAccessKeyIds(_0x3e55a7){const _0xb4bcfa=a152_0x4e154b,_0x251ed6=[],_0x52daf6=_0x3e55a7[_0xb4bcfa(0xe6)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xe66de7,_0x32b950)=>{const _0x4aff15=_0xb4bcfa,_0x338e8c=_0x251ed6[_0x4aff15(0xe0)](_0xe66de7[_0x4aff15(0xf4)](_0x32b950[_0x4aff15(0xf5)]))-0x1;return _0x32b950+_0x4aff15(0xd3)+_0x338e8c+'__';});return{'description':_0x52daf6,'restore':_0x518740=>_0x518740[_0xb4bcfa(0xe6)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x3f5f0e,_0x479b4c,_0x35930b)=>{const _0x3dd5e2=_0x251ed6[Number(_0x35930b)];return _0x3dd5e2===undefined?_0x3f5f0e:''+_0x479b4c+_0x3dd5e2;})};}function sliceUtf8Bytes(_0x414bbc,_0x5469a0){const _0x3a08e0=a152_0x4e154b;if(_0x5469a0<=0x0)return'';const _0x336371=Buffer[_0x3a08e0(0xdf)](_0x414bbc,_0x3a08e0(0xda));if(_0x336371[_0x3a08e0(0xe3)]<=_0x5469a0)return _0x414bbc;let _0x32ef31=_0x5469a0;while(_0x32ef31>0x0){const _0x434d3d=_0x336371[_0x32ef31];if(_0x434d3d===undefined||(_0x434d3d&0xc0)!==0x80)break;_0x32ef31-=0x1;}return _0x336371[_0x3a08e0(0xf0)](0x0,_0x32ef31)[_0x3a08e0(0xe8)](_0x3a08e0(0xda));}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const PLATFORM_ISSUE_TRACE_NAME = "platform-issue-log-collect";
|
|
2
|
-
export declare const PLATFORM_ISSUE_SPAN_NAME = "issue.log.collect";
|
|
3
|
-
export type PlatformIssueReport = {
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
/**
|
|
7
|
-
* 描述卫生处理后的元信息(可选)。命令层应先用 `sanitizeIssueDescription`
|
|
8
|
-
* 处理 `description` 文本,再把结果中的 truncated / redactionCount / redactionKinds
|
|
9
|
-
* 透传到这里,作为 `issue.description_*` attribute 上报,供运维统计。
|
|
10
|
-
*/
|
|
11
|
-
sanitize?: {
|
|
12
|
-
originalBytes: number;
|
|
13
|
-
truncated: boolean;
|
|
14
|
-
redactionCount: number;
|
|
15
|
-
redactionKinds: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 发送平台 issue 采集日志;宿主身份、环境、用户等上下文字段由 `setServiceConfig()` / `setUserContext()` 负责。
|
|
20
|
-
* 这里通过 `sendCliTraceLog()` 间接完成 `ensureCliOtelTraceConfig()`,不再重复直连初始化。
|
|
21
|
-
* 这个 helper 只负责 issue 事件自身的业务载荷,不重复写 service/user/env 等宿主公共字段。
|
|
22
|
-
*
|
|
23
|
-
* 调用约定:`description` 必须由调用方先经 `sanitizeIssueDescription` 清洗;
|
|
24
|
-
* helper 不再做体积/敏感保护,避免双重处理与统计漂移。
|
|
25
|
-
*/
|
|
26
|
-
export declare function sendPlatformIssueCollectLog(report: PlatformIssueReport): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a354_0x540c30=a354_0x4a9b;(function(_0x29372b,_0x3ce6cc){const _0x3e1f80=a354_0x4a9b,_0x4f7dda=_0x29372b();while(!![]){try{const _0x383e57=parseInt(_0x3e1f80(0xdd))/0x1+-parseInt(_0x3e1f80(0xd4))/0x2+-parseInt(_0x3e1f80(0xcf))/0x3*(parseInt(_0x3e1f80(0xd7))/0x4)+-parseInt(_0x3e1f80(0xd6))/0x5*(-parseInt(_0x3e1f80(0xcc))/0x6)+parseInt(_0x3e1f80(0xd3))/0x7+-parseInt(_0x3e1f80(0xd2))/0x8*(-parseInt(_0x3e1f80(0xda))/0x9)+parseInt(_0x3e1f80(0xd1))/0xa*(parseInt(_0x3e1f80(0xcd))/0xb);if(_0x383e57===_0x3ce6cc)break;else _0x4f7dda['push'](_0x4f7dda['shift']());}catch(_0x16bc18){_0x4f7dda['push'](_0x4f7dda['shift']());}}}(a354_0x3e3b,0xe00fe));function a354_0x4a9b(_0x458bc6,_0x4755bb){_0x458bc6=_0x458bc6-0xcc;const _0x3e3b8a=a354_0x3e3b();let _0x4a9be0=_0x3e3b8a[_0x458bc6];return _0x4a9be0;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a354_0x540c30(0xd5);export const PLATFORM_ISSUE_SPAN_NAME=a354_0x540c30(0xce);export async function sendPlatformIssueCollectLog(_0x288813){const _0x3c448d=a354_0x540c30;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x288813[_0x3c448d(0xd8)],'issue.description':_0x288813[_0x3c448d(0xdc)],..._0x288813[_0x3c448d(0xd0)]?{'issue.description_original_bytes':_0x288813[_0x3c448d(0xd0)]['originalBytes'],'issue.description_truncated':_0x288813[_0x3c448d(0xd0)][_0x3c448d(0xd9)],'issue.description_redactions':_0x288813[_0x3c448d(0xd0)][_0x3c448d(0xdb)],'issue.description_redaction_kinds':_0x288813[_0x3c448d(0xd0)][_0x3c448d(0xde)]['join'](',')}:{}}});}function a354_0x3e3b(){const _0x56b5d7=['1890721hmOEcN','1114958kWVrlu','platform-issue-log-collect','505RKtBxc','28iRaHVW','title','truncated','956799brxuWL','redactionCount','description','969498seyqkb','redactionKinds','47610lEAkwa','1229602gVwQtn','issue.log.collect','474984MeHtry','sanitize','20zcMDzR','24BemMqr'];a354_0x3e3b=function(){return _0x56b5d7;};return a354_0x3e3b();}
|