@oh-my-pi/pi-coding-agent 17.2.5 → 17.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/dist/{CHANGELOG-q2w43aw3.md → CHANGELOG-1p8yvde7.md} +35 -1
  3. package/dist/cli.js +3340 -3339
  4. package/dist/types/advisor/advise-tool.d.ts +10 -4
  5. package/dist/types/autoresearch/tools/init-experiment.d.ts +19 -7
  6. package/dist/types/autoresearch/tools/log-experiment.d.ts +19 -11
  7. package/dist/types/autoresearch/tools/run-experiment.d.ts +4 -2
  8. package/dist/types/autoresearch/tools/update-notes.d.ts +5 -2
  9. package/dist/types/cli/gc-cli.d.ts +1 -0
  10. package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -2
  11. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +5 -2
  12. package/dist/types/commit/agentic/tools/git-hunk.d.ts +6 -2
  13. package/dist/types/commit/agentic/tools/git-overview.d.ts +5 -2
  14. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +29 -7
  15. package/dist/types/commit/agentic/tools/propose-commit.d.ts +14 -4
  16. package/dist/types/commit/agentic/tools/recent-commits.d.ts +4 -2
  17. package/dist/types/commit/agentic/tools/schemas.d.ts +7 -3
  18. package/dist/types/commit/agentic/tools/split-commit.d.ts +37 -10
  19. package/dist/types/commit/changelog/generate.d.ts +13 -3
  20. package/dist/types/commit/shared-llm.d.ts +13 -4
  21. package/dist/types/config/config-file.d.ts +1 -1
  22. package/dist/types/config/models-config-schema-bundle.d.ts +1992 -981
  23. package/dist/types/config/models-config-schema.d.ts +1201 -580
  24. package/dist/types/config/models-config.d.ts +355 -371
  25. package/dist/types/edit/hashline/params.d.ts +4 -2
  26. package/dist/types/edit/modes/apply-patch.d.ts +4 -2
  27. package/dist/types/edit/modes/patch.d.ts +16 -5
  28. package/dist/types/edit/modes/replace.d.ts +8 -3
  29. package/dist/types/eval/bridge-timeout.d.ts +5 -2
  30. package/dist/types/eval/completion-bridge.d.ts +13 -0
  31. package/dist/types/eval/py/tool-bridge.d.ts +12 -0
  32. package/dist/types/extensibility/custom-commands/types.d.ts +4 -4
  33. package/dist/types/extensibility/custom-tools/types.d.ts +4 -4
  34. package/dist/types/extensibility/extensions/types.d.ts +4 -4
  35. package/dist/types/extensibility/hooks/types.d.ts +4 -4
  36. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +1 -1
  37. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +1 -1
  38. package/dist/types/extensibility/legacy-typebox.d.ts +8 -0
  39. package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +6 -13
  40. package/dist/types/goals/tools/goal-tool.d.ts +12 -4
  41. package/dist/types/launch/client.d.ts +9 -1
  42. package/dist/types/launch/protocol.d.ts +17 -0
  43. package/dist/types/lsp/index.d.ts +15 -5
  44. package/dist/types/lsp/types.d.ts +15 -5
  45. package/dist/types/modes/components/btw-panel.d.ts +3 -0
  46. package/dist/types/modes/controllers/btw-controller.d.ts +2 -0
  47. package/dist/types/modes/controllers/command-controller.d.ts +1 -0
  48. package/dist/types/modes/interactive-mode.d.ts +4 -1
  49. package/dist/types/modes/types.d.ts +3 -1
  50. package/dist/types/security/contracts/schemas.d.ts +1115 -537
  51. package/dist/types/security/publication.d.ts +92 -34
  52. package/dist/types/session/agent-session-types.d.ts +5 -0
  53. package/dist/types/session/agent-session.d.ts +26 -2
  54. package/dist/types/session/launch-completion.d.ts +10 -0
  55. package/dist/types/session/session-entries.d.ts +15 -1
  56. package/dist/types/session/session-manager.d.ts +7 -0
  57. package/dist/types/session/yield-queue.d.ts +6 -1
  58. package/dist/types/task/types.d.ts +63 -18
  59. package/dist/types/tools/ask.d.ts +34 -8
  60. package/dist/types/tools/ast-edit.d.ts +16 -4
  61. package/dist/types/tools/ast-grep.d.ts +12 -4
  62. package/dist/types/tools/bash.d.ts +20 -11
  63. package/dist/types/tools/browser.d.ts +64 -20
  64. package/dist/types/tools/checkpoint.d.ts +16 -8
  65. package/dist/types/tools/computer.d.ts +1 -1
  66. package/dist/types/tools/debug.d.ts +118 -48
  67. package/dist/types/tools/eval.d.ts +11 -5
  68. package/dist/types/tools/gh.d.ts +74 -26
  69. package/dist/types/tools/glob.d.ts +16 -6
  70. package/dist/types/tools/grep.d.ts +18 -6
  71. package/dist/types/tools/hub/index.d.ts +116 -46
  72. package/dist/types/tools/image-gen.d.ts +25 -8
  73. package/dist/types/tools/index.d.ts +9 -0
  74. package/dist/types/tools/inspect-image.d.ts +10 -4
  75. package/dist/types/tools/learn.d.ts +26 -8
  76. package/dist/types/tools/manage-skill.d.ts +16 -6
  77. package/dist/types/tools/memory-edit.d.ts +18 -6
  78. package/dist/types/tools/memory-recall.d.ts +8 -4
  79. package/dist/types/tools/memory-reflect.d.ts +10 -4
  80. package/dist/types/tools/memory-retain.d.ts +14 -4
  81. package/dist/types/tools/read.d.ts +8 -4
  82. package/dist/types/tools/security-scan.d.ts +82 -30
  83. package/dist/types/tools/todo.d.ts +30 -10
  84. package/dist/types/tools/tts.d.ts +12 -5
  85. package/dist/types/tools/vibe.d.ts +42 -18
  86. package/dist/types/tools/write.d.ts +10 -4
  87. package/dist/types/web/search/index.d.ts +20 -6
  88. package/package.json +13 -13
  89. package/scripts/legacy-pi-virtual-module.ts +2 -2
  90. package/src/advisor/advise-tool.ts +1 -1
  91. package/src/advisor/config.ts +1 -1
  92. package/src/autoresearch/tools/init-experiment.ts +1 -2
  93. package/src/autoresearch/tools/log-experiment.ts +1 -2
  94. package/src/autoresearch/tools/run-experiment.ts +1 -1
  95. package/src/autoresearch/tools/update-notes.ts +1 -1
  96. package/src/cli/gc-cli.ts +641 -21
  97. package/src/commit/agentic/tools/analyze-file.ts +1 -1
  98. package/src/commit/agentic/tools/git-file-diff.ts +1 -1
  99. package/src/commit/agentic/tools/git-hunk.ts +1 -1
  100. package/src/commit/agentic/tools/git-overview.ts +1 -1
  101. package/src/commit/agentic/tools/propose-changelog.ts +1 -1
  102. package/src/commit/agentic/tools/propose-commit.ts +1 -1
  103. package/src/commit/agentic/tools/recent-commits.ts +1 -1
  104. package/src/commit/agentic/tools/schemas.ts +1 -1
  105. package/src/commit/agentic/tools/split-commit.ts +1 -1
  106. package/src/commit/analysis/summary.ts +1 -1
  107. package/src/commit/changelog/generate.ts +1 -1
  108. package/src/config/config-file.ts +2 -2
  109. package/src/config/model-discovery.ts +14 -14
  110. package/src/config/model-registry.ts +10 -8
  111. package/src/config/models-config-schema-bundle.ts +1 -8
  112. package/src/config/settings.ts +1 -1
  113. package/src/discovery/codex.ts +22 -9
  114. package/src/edit/hashline/params.ts +1 -1
  115. package/src/edit/modes/apply-patch.ts +1 -1
  116. package/src/edit/modes/patch.ts +1 -1
  117. package/src/edit/modes/replace.ts +2 -1
  118. package/src/eval/agent-bridge.ts +4 -2
  119. package/src/eval/bridge-timeout.ts +5 -2
  120. package/src/eval/completion-bridge.ts +3 -2
  121. package/src/eval/executor-base.ts +20 -1
  122. package/src/eval/js/context-manager.ts +94 -6
  123. package/src/eval/py/tool-bridge.ts +29 -9
  124. package/src/export/html/index.ts +10 -3
  125. package/src/export/share.ts +4 -0
  126. package/src/extensibility/custom-commands/loader.ts +3 -3
  127. package/src/extensibility/custom-commands/types.ts +4 -4
  128. package/src/extensibility/custom-tools/loader.ts +3 -3
  129. package/src/extensibility/custom-tools/types.ts +5 -4
  130. package/src/extensibility/extensions/loader.ts +3 -3
  131. package/src/extensibility/extensions/types.ts +5 -4
  132. package/src/extensibility/hooks/loader.ts +3 -3
  133. package/src/extensibility/hooks/types.ts +4 -4
  134. package/src/extensibility/legacy-pi-ai-shim.ts +1 -1
  135. package/src/extensibility/legacy-pi-coding-agent-shim.ts +2 -2
  136. package/src/extensibility/legacy-typebox.ts +101 -0
  137. package/src/extensibility/plugins/legacy-pi-compat.ts +13 -22
  138. package/src/goals/tools/goal-tool.ts +1 -1
  139. package/src/launch/broker.ts +222 -6
  140. package/src/launch/client.ts +161 -9
  141. package/src/launch/protocol.ts +52 -0
  142. package/src/lsp/types.ts +1 -1
  143. package/src/main.ts +13 -6
  144. package/src/mcp/config-writer.ts +1 -1
  145. package/src/modes/components/btw-panel.ts +41 -4
  146. package/src/modes/controllers/btw-controller.ts +55 -7
  147. package/src/modes/controllers/command-controller.ts +31 -0
  148. package/src/modes/controllers/input-controller.ts +24 -7
  149. package/src/modes/interactive-mode.ts +16 -2
  150. package/src/modes/theme/theme.ts +3 -3
  151. package/src/modes/types.ts +8 -1
  152. package/src/prompts/session/launch-completion.md +1 -0
  153. package/src/sdk.ts +15 -0
  154. package/src/security/contracts/schemas.ts +202 -184
  155. package/src/security/contracts/validation.ts +6 -2
  156. package/src/security/publication.ts +1 -1
  157. package/src/security/store.ts +2 -2
  158. package/src/session/agent-session-types.ts +6 -0
  159. package/src/session/agent-session.ts +190 -14
  160. package/src/session/launch-completion.ts +37 -0
  161. package/src/session/session-context.ts +26 -0
  162. package/src/session/session-entries.ts +17 -1
  163. package/src/session/session-manager.ts +21 -0
  164. package/src/session/yield-queue.ts +121 -16
  165. package/src/slash-commands/builtin-registry.ts +10 -1
  166. package/src/task/types.ts +1 -1
  167. package/src/tools/ask.ts +1 -1
  168. package/src/tools/ast-edit.ts +1 -1
  169. package/src/tools/ast-grep.ts +1 -1
  170. package/src/tools/bash.ts +61 -3
  171. package/src/tools/browser/cmux/cmux-tab.ts +92 -4
  172. package/src/tools/browser.ts +1 -1
  173. package/src/tools/checkpoint.ts +1 -1
  174. package/src/tools/computer.ts +1 -1
  175. package/src/tools/debug.ts +1 -1
  176. package/src/tools/eval.ts +1 -1
  177. package/src/tools/gh.ts +1 -2
  178. package/src/tools/glob.ts +1 -1
  179. package/src/tools/grep.ts +1 -1
  180. package/src/tools/hub/index.ts +1 -1
  181. package/src/tools/hub/launch.ts +122 -6
  182. package/src/tools/image-gen.ts +1 -1
  183. package/src/tools/index.ts +9 -0
  184. package/src/tools/inspect-image.ts +1 -1
  185. package/src/tools/learn.ts +1 -1
  186. package/src/tools/manage-skill.ts +1 -1
  187. package/src/tools/memory-edit.ts +1 -1
  188. package/src/tools/memory-recall.ts +1 -1
  189. package/src/tools/memory-reflect.ts +1 -1
  190. package/src/tools/memory-retain.ts +1 -1
  191. package/src/tools/read.ts +1 -1
  192. package/src/tools/security-scan.ts +1 -1
  193. package/src/tools/todo.ts +1 -1
  194. package/src/tools/tts.ts +1 -1
  195. package/src/tools/vibe.ts +2 -1
  196. package/src/tools/write.ts +1 -1
  197. package/src/web/search/index.ts +2 -1
  198. package/dist/types/config/file-lock.d.ts +0 -29
  199. package/dist/types/extensibility/typebox.d.ts +0 -181
  200. package/src/config/file-lock.ts +0 -164
  201. package/src/extensibility/typebox.ts +0 -958
@@ -1,660 +1,1238 @@
1
- export declare const securityProducerSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
- kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
3
- name: string;
4
- version?: string | undefined;
5
- vendor?: string | undefined;
6
- revision?: string | undefined;
7
- pluginVersion?: string | undefined;
8
- }, {}>;
9
- export declare const securityProvenanceSchema: import("arktype/internal/variants/object.ts").ObjectType<{
10
- producer: {
1
+ export declare const getSecurityContractSchemas: () => {
2
+ securityProducerSchema: import("@oh-my-pi/omptype").FluentType<{
11
3
  kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
12
4
  name: string;
13
- version?: string | undefined;
14
- vendor?: string | undefined;
15
- revision?: string | undefined;
16
5
  pluginVersion?: string | undefined;
17
- };
18
- createdAt: string;
19
- importedAt?: string | undefined;
20
- sourceIds?: {
21
- [x: string]: string;
22
- } | undefined;
23
- vendorFingerprints?: {
24
- [x: string]: string;
25
- } | undefined;
26
- upstream?: {
27
- repository?: string | undefined;
28
6
  revision?: string | undefined;
29
- packageVersion?: string | undefined;
7
+ vendor?: string | undefined;
8
+ version?: string | undefined;
9
+ }, {
10
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
11
+ name: string;
30
12
  pluginVersion?: string | undefined;
31
- archiveSha256?: string | undefined;
32
- } | undefined;
33
- metadata?: {
34
- [x: string]: unknown;
35
- } | undefined;
36
- }, {}>;
37
- export declare const securityLocationSchema: import("arktype/internal/variants/object.ts").ObjectType<{
38
- path: string;
39
- startLine: number;
40
- endLine?: number | undefined;
41
- startColumn?: number | undefined;
42
- endColumn?: number | undefined;
43
- role?: string | undefined;
44
- }, {}>;
45
- export declare const securityEvidenceSchema: import("arktype/internal/variants/object.ts").ObjectType<{
46
- id: string;
47
- kind: "code" | "note" | "trace" | "validation";
48
- label: string;
49
- explanation: string;
50
- location?: {
51
- path: string;
52
- startLine: number;
53
- endLine?: number | undefined;
54
- startColumn?: number | undefined;
13
+ revision?: string | undefined;
14
+ vendor?: string | undefined;
15
+ version?: string | undefined;
16
+ }>;
17
+ securityProvenanceSchema: import("@oh-my-pi/omptype").FluentType<{
18
+ createdAt: string;
19
+ importedAt?: string | undefined;
20
+ metadata?: Record<string, unknown> | undefined;
21
+ producer: {
22
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
23
+ name: string;
24
+ pluginVersion?: string | undefined;
25
+ revision?: string | undefined;
26
+ vendor?: string | undefined;
27
+ version?: string | undefined;
28
+ };
29
+ sourceIds?: Record<string, string> | undefined;
30
+ upstream?: {
31
+ archiveSha256?: string | undefined;
32
+ packageVersion?: string | undefined;
33
+ pluginVersion?: string | undefined;
34
+ repository?: string | undefined;
35
+ revision?: string | undefined;
36
+ } | undefined;
37
+ vendorFingerprints?: Record<string, string> | undefined;
38
+ }, {
39
+ createdAt: string;
40
+ importedAt?: string | undefined;
41
+ metadata?: Record<string, unknown> | undefined;
42
+ producer: {
43
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
44
+ name: string;
45
+ pluginVersion?: string | undefined;
46
+ revision?: string | undefined;
47
+ vendor?: string | undefined;
48
+ version?: string | undefined;
49
+ };
50
+ sourceIds?: Record<string, string> | undefined;
51
+ upstream?: {
52
+ archiveSha256?: string | undefined;
53
+ packageVersion?: string | undefined;
54
+ pluginVersion?: string | undefined;
55
+ repository?: string | undefined;
56
+ revision?: string | undefined;
57
+ } | undefined;
58
+ vendorFingerprints?: Record<string, string> | undefined;
59
+ }>;
60
+ securityLocationSchema: import("@oh-my-pi/omptype").FluentType<{
55
61
  endColumn?: number | undefined;
56
- role?: string | undefined;
57
- } | undefined;
58
- excerpt?: string | undefined;
59
- }, {}>;
60
- export declare const securityOccurrenceSchema: import("arktype/internal/variants/object.ts").ObjectType<{
61
- id: string;
62
- locations: {
63
- path: string;
64
- startLine: number;
65
62
  endLine?: number | undefined;
63
+ path: string;
64
+ role?: string | undefined;
66
65
  startColumn?: number | undefined;
66
+ startLine: number;
67
+ }, {
67
68
  endColumn?: number | undefined;
69
+ endLine?: number | undefined;
70
+ path: string;
68
71
  role?: string | undefined;
69
- }[];
70
- evidenceIds: string[];
71
- }, {}>;
72
- export declare const securityFindingSchema: import("arktype/internal/variants/object.ts").ObjectType<{
73
- id: string;
74
- scanId: string;
75
- fingerprint: string;
76
- ruleId: string;
77
- anchor?: string | undefined;
78
- title: string;
79
- summary: string;
80
- severity: {
81
- level: "critical" | "high" | "informational" | "low" | "medium";
82
- score?: number | undefined;
83
- scoringSystem?: string | undefined;
84
- vector?: string | undefined;
85
- rationale?: string | undefined;
86
- };
87
- confidence: {
88
- level: "high" | "low" | "medium";
89
- rationale?: string | undefined;
90
- };
91
- taxonomy: {
92
- category: string;
93
- cwe: string[];
94
- tags?: string[] | undefined;
95
- };
96
- occurrences: {
72
+ startColumn?: number | undefined;
73
+ startLine: number;
74
+ }>;
75
+ securityEvidenceSchema: import("@oh-my-pi/omptype").FluentType<{
76
+ excerpt?: string | undefined;
77
+ explanation: string;
97
78
  id: string;
98
- locations: {
99
- path: string;
100
- startLine: number;
101
- endLine?: number | undefined;
102
- startColumn?: number | undefined;
79
+ kind: "code" | "note" | "trace" | "validation";
80
+ label: string;
81
+ location?: {
103
82
  endColumn?: number | undefined;
83
+ endLine?: number | undefined;
84
+ path: string;
104
85
  role?: string | undefined;
105
- }[];
106
- evidenceIds: string[];
107
- }[];
108
- evidence: {
86
+ startColumn?: number | undefined;
87
+ startLine: number;
88
+ } | undefined;
89
+ }, {
90
+ excerpt?: string | undefined;
91
+ explanation: string;
109
92
  id: string;
110
93
  kind: "code" | "note" | "trace" | "validation";
111
94
  label: string;
112
- explanation: string;
113
95
  location?: {
96
+ endColumn?: number | undefined;
97
+ endLine?: number | undefined;
114
98
  path: string;
99
+ role?: string | undefined;
100
+ startColumn?: number | undefined;
115
101
  startLine: number;
102
+ } | undefined;
103
+ }>;
104
+ securityOccurrenceSchema: import("@oh-my-pi/omptype").FluentType<{
105
+ evidenceIds: string[];
106
+ id: string;
107
+ locations: {
108
+ endColumn?: number | undefined;
116
109
  endLine?: number | undefined;
110
+ path: string;
111
+ role?: string | undefined;
117
112
  startColumn?: number | undefined;
113
+ startLine: number;
114
+ }[];
115
+ }, {
116
+ evidenceIds: string[];
117
+ id: string;
118
+ locations: {
118
119
  endColumn?: number | undefined;
120
+ endLine?: number | undefined;
121
+ path: string;
119
122
  role?: string | undefined;
120
- } | undefined;
121
- excerpt?: string | undefined;
122
- }[];
123
- remediation?: string | undefined;
124
- validation: {
125
- status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
126
- summary?: string | undefined;
127
- evidenceIds: string[];
128
- validatedAt?: string | undefined;
129
- };
130
- disposition: {
131
- status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
132
- rationale?: string | undefined;
133
- updatedAt?: string | undefined;
134
- actor?: string | undefined;
135
- };
136
- provenance: {
137
- producer: {
138
- kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
139
- name: string;
140
- version?: string | undefined;
141
- vendor?: string | undefined;
142
- revision?: string | undefined;
143
- pluginVersion?: string | undefined;
123
+ startColumn?: number | undefined;
124
+ startLine: number;
125
+ }[];
126
+ }>;
127
+ securityFindingSchema: import("@oh-my-pi/omptype").FluentType<{
128
+ anchor?: string | undefined;
129
+ confidence: {
130
+ level: "high" | "low" | "medium";
131
+ rationale?: string | undefined;
144
132
  };
145
- createdAt: string;
146
- importedAt?: string | undefined;
147
- sourceIds?: {
148
- [x: string]: string;
149
- } | undefined;
150
- vendorFingerprints?: {
151
- [x: string]: string;
152
- } | undefined;
153
- upstream?: {
154
- repository?: string | undefined;
155
- revision?: string | undefined;
156
- packageVersion?: string | undefined;
157
- pluginVersion?: string | undefined;
158
- archiveSha256?: string | undefined;
159
- } | undefined;
160
- metadata?: {
161
- [x: string]: unknown;
162
- } | undefined;
163
- };
164
- extensions?: {
165
- [x: string]: unknown;
166
- } | undefined;
167
- }, {}>;
168
- export declare const securityCoverageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
169
- mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
170
- completeness: "complete" | "partial" | "unknown";
171
- inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
172
- includePaths: string[];
173
- excludePaths: string[];
174
- surfaces: {
133
+ disposition: {
134
+ actor?: string | undefined;
135
+ rationale?: string | undefined;
136
+ status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
137
+ updatedAt?: string | undefined;
138
+ };
139
+ evidence: {
140
+ excerpt?: string | undefined;
141
+ explanation: string;
142
+ id: string;
143
+ kind: "code" | "note" | "trace" | "validation";
144
+ label: string;
145
+ location?: {
146
+ endColumn?: number | undefined;
147
+ endLine?: number | undefined;
148
+ path: string;
149
+ role?: string | undefined;
150
+ startColumn?: number | undefined;
151
+ startLine: number;
152
+ } | undefined;
153
+ }[];
154
+ extensions?: Record<string, unknown> | undefined;
155
+ fingerprint: string;
175
156
  id: string;
176
- label: string;
177
- disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
178
- receiptRefs: string[];
179
- riskArea?: string | undefined;
180
- notes?: string | undefined;
181
- }[];
182
- explicitExclusions: {
183
- pattern: string;
184
- reason: string;
185
- }[];
186
- deferred: {
157
+ occurrences: {
158
+ evidenceIds: string[];
159
+ id: string;
160
+ locations: {
161
+ endColumn?: number | undefined;
162
+ endLine?: number | undefined;
163
+ path: string;
164
+ role?: string | undefined;
165
+ startColumn?: number | undefined;
166
+ startLine: number;
167
+ }[];
168
+ }[];
169
+ provenance: {
170
+ createdAt: string;
171
+ importedAt?: string | undefined;
172
+ metadata?: Record<string, unknown> | undefined;
173
+ producer: {
174
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
175
+ name: string;
176
+ pluginVersion?: string | undefined;
177
+ revision?: string | undefined;
178
+ vendor?: string | undefined;
179
+ version?: string | undefined;
180
+ };
181
+ sourceIds?: Record<string, string> | undefined;
182
+ upstream?: {
183
+ archiveSha256?: string | undefined;
184
+ packageVersion?: string | undefined;
185
+ pluginVersion?: string | undefined;
186
+ repository?: string | undefined;
187
+ revision?: string | undefined;
188
+ } | undefined;
189
+ vendorFingerprints?: Record<string, string> | undefined;
190
+ };
191
+ remediation?: string | undefined;
192
+ ruleId: string;
193
+ scanId: string;
194
+ severity: {
195
+ level: "critical" | "high" | "informational" | "low" | "medium";
196
+ rationale?: string | undefined;
197
+ score?: number | undefined;
198
+ scoringSystem?: string | undefined;
199
+ vector?: string | undefined;
200
+ };
201
+ summary: string;
202
+ taxonomy: {
203
+ category: string;
204
+ cwe: string[];
205
+ tags?: string[] | undefined;
206
+ };
207
+ title: string;
208
+ validation: {
209
+ evidenceIds: string[];
210
+ status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
211
+ summary?: string | undefined;
212
+ validatedAt?: string | undefined;
213
+ };
214
+ }, {
215
+ anchor?: string | undefined;
216
+ confidence: {
217
+ level: "high" | "low" | "medium";
218
+ rationale?: string | undefined;
219
+ };
220
+ disposition: {
221
+ actor?: string | undefined;
222
+ rationale?: string | undefined;
223
+ status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
224
+ updatedAt?: string | undefined;
225
+ };
226
+ evidence: {
227
+ excerpt?: string | undefined;
228
+ explanation: string;
229
+ id: string;
230
+ kind: "code" | "note" | "trace" | "validation";
231
+ label: string;
232
+ location?: {
233
+ endColumn?: number | undefined;
234
+ endLine?: number | undefined;
235
+ path: string;
236
+ role?: string | undefined;
237
+ startColumn?: number | undefined;
238
+ startLine: number;
239
+ } | undefined;
240
+ }[];
241
+ extensions?: Record<string, unknown> | undefined;
242
+ fingerprint: string;
187
243
  id: string;
188
- reason: string;
189
- paths?: string[] | undefined;
190
- surfaceIds?: string[] | undefined;
191
- }[];
192
- openQuestions?: {
193
- question: string;
194
- followUpPrompt?: string | undefined;
195
- }[] | undefined;
196
- }, {}>;
197
- export declare const securityTargetSchema: import("arktype/internal/variants/object.ts").ObjectType<{
198
- kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
199
- repositoryRoot: string;
200
- displayName: string;
201
- revision?: string | undefined;
202
- baseRevision?: string | undefined;
203
- headRevision?: string | undefined;
204
- includePaths: string[];
205
- excludePaths: string[];
206
- treeDigest: string;
207
- }, {}>;
208
- export declare const securityScanPlanSchema: import("arktype/internal/variants/object.ts").ObjectType<{
209
- documentType: "omp-security.scan-plan";
210
- schemaVersion: "1.0";
211
- id: string;
212
- createdAt: string;
213
- repositoryRoot: string;
214
- target: {
244
+ occurrences: {
245
+ evidenceIds: string[];
246
+ id: string;
247
+ locations: {
248
+ endColumn?: number | undefined;
249
+ endLine?: number | undefined;
250
+ path: string;
251
+ role?: string | undefined;
252
+ startColumn?: number | undefined;
253
+ startLine: number;
254
+ }[];
255
+ }[];
256
+ provenance: {
257
+ createdAt: string;
258
+ importedAt?: string | undefined;
259
+ metadata?: Record<string, unknown> | undefined;
260
+ producer: {
261
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
262
+ name: string;
263
+ pluginVersion?: string | undefined;
264
+ revision?: string | undefined;
265
+ vendor?: string | undefined;
266
+ version?: string | undefined;
267
+ };
268
+ sourceIds?: Record<string, string> | undefined;
269
+ upstream?: {
270
+ archiveSha256?: string | undefined;
271
+ packageVersion?: string | undefined;
272
+ pluginVersion?: string | undefined;
273
+ repository?: string | undefined;
274
+ revision?: string | undefined;
275
+ } | undefined;
276
+ vendorFingerprints?: Record<string, string> | undefined;
277
+ };
278
+ remediation?: string | undefined;
279
+ ruleId: string;
280
+ scanId: string;
281
+ severity: {
282
+ level: "critical" | "high" | "informational" | "low" | "medium";
283
+ rationale?: string | undefined;
284
+ score?: number | undefined;
285
+ scoringSystem?: string | undefined;
286
+ vector?: string | undefined;
287
+ };
288
+ summary: string;
289
+ taxonomy: {
290
+ category: string;
291
+ cwe: string[];
292
+ tags?: string[] | undefined;
293
+ };
294
+ title: string;
295
+ validation: {
296
+ evidenceIds: string[];
297
+ status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
298
+ summary?: string | undefined;
299
+ validatedAt?: string | undefined;
300
+ };
301
+ }>;
302
+ securityCoverageSchema: import("@oh-my-pi/omptype").FluentType<{
303
+ completeness: "complete" | "partial" | "unknown";
304
+ deferred: {
305
+ id: string;
306
+ paths?: string[] | undefined;
307
+ reason: string;
308
+ surfaceIds?: string[] | undefined;
309
+ }[];
310
+ excludePaths: string[];
311
+ explicitExclusions: {
312
+ pattern: string;
313
+ reason: string;
314
+ }[];
315
+ includePaths: string[];
316
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
317
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
318
+ openQuestions?: {
319
+ followUpPrompt?: string | undefined;
320
+ question: string;
321
+ }[] | undefined;
322
+ surfaces: {
323
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
324
+ id: string;
325
+ label: string;
326
+ notes?: string | undefined;
327
+ receiptRefs: string[];
328
+ riskArea?: string | undefined;
329
+ }[];
330
+ }, {
331
+ completeness: "complete" | "partial" | "unknown";
332
+ deferred: {
333
+ id: string;
334
+ paths?: string[] | undefined;
335
+ reason: string;
336
+ surfaceIds?: string[] | undefined;
337
+ }[];
338
+ excludePaths: string[];
339
+ explicitExclusions: {
340
+ pattern: string;
341
+ reason: string;
342
+ }[];
343
+ includePaths: string[];
344
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
345
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
346
+ openQuestions?: {
347
+ followUpPrompt?: string | undefined;
348
+ question: string;
349
+ }[] | undefined;
350
+ surfaces: {
351
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
352
+ id: string;
353
+ label: string;
354
+ notes?: string | undefined;
355
+ receiptRefs: string[];
356
+ riskArea?: string | undefined;
357
+ }[];
358
+ }>;
359
+ securityTargetSchema: import("@oh-my-pi/omptype").FluentType<{
360
+ baseRevision?: string | undefined;
361
+ displayName: string;
362
+ excludePaths: string[];
363
+ headRevision?: string | undefined;
364
+ includePaths: string[];
215
365
  kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
216
366
  repositoryRoot: string;
217
- displayName: string;
218
367
  revision?: string | undefined;
368
+ treeDigest: string;
369
+ }, {
219
370
  baseRevision?: string | undefined;
371
+ displayName: string;
372
+ excludePaths: string[];
220
373
  headRevision?: string | undefined;
221
374
  includePaths: string[];
222
- excludePaths: string[];
375
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
376
+ repositoryRoot: string;
377
+ revision?: string | undefined;
223
378
  treeDigest: string;
224
- };
225
- knowledgeBases: {
226
- path: string;
227
- sha256: string;
228
- size: number;
229
- }[];
230
- output: {
231
- root: string;
232
- archiveExisting: boolean;
233
- existingState: "absent" | "archivable" | "empty";
234
- };
235
- model: {
236
- provider: string;
237
- modelId: string;
238
- thinkingLevel?: string | undefined;
239
- };
240
- account: {
241
- provider: string;
242
- credentialId: number;
243
- accountId?: string | undefined;
244
- email?: string | undefined;
245
- organizationId?: string | undefined;
246
- organizationName?: string | undefined;
247
- };
248
- configFingerprint: string;
249
- workflowFingerprint: string;
250
- fingerprint: string;
251
- }, {}>;
252
- export declare const securityScanMetricsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
253
- runtimeMs?: number | undefined;
254
- tokenUsage?: {
255
- input: number;
256
- output: number;
257
- reasoning: number;
258
- cacheRead: number;
259
- cacheWrite: number;
260
- total: number;
261
- } | undefined;
262
- cost?: number | undefined;
263
- premiumRequests?: number | undefined;
264
- }, {}>;
265
- export declare const securityScanSchema: import("arktype/internal/variants/object.ts").ObjectType<{
266
- documentType: "omp-security.scan";
267
- schemaVersion: "1.0";
268
- id: string;
269
- projectKey: string;
270
- status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
271
- createdAt: string;
272
- startedAt?: string | undefined;
273
- completedAt?: string | undefined;
274
- plan?: {
379
+ }>;
380
+ securityScanPlanSchema: import("@oh-my-pi/omptype").FluentType<{
381
+ account: {
382
+ accountId?: string | undefined;
383
+ credentialId: number;
384
+ email?: string | undefined;
385
+ organizationId?: string | undefined;
386
+ organizationName?: string | undefined;
387
+ provider: string;
388
+ };
389
+ configFingerprint: string;
390
+ createdAt: string;
275
391
  documentType: "omp-security.scan-plan";
276
- schemaVersion: "1.0";
392
+ fingerprint: string;
277
393
  id: string;
278
- createdAt: string;
279
- repositoryRoot: string;
280
- target: {
281
- kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
282
- repositoryRoot: string;
283
- displayName: string;
284
- revision?: string | undefined;
285
- baseRevision?: string | undefined;
286
- headRevision?: string | undefined;
287
- includePaths: string[];
288
- excludePaths: string[];
289
- treeDigest: string;
290
- };
291
394
  knowledgeBases: {
292
395
  path: string;
293
396
  sha256: string;
294
397
  size: number;
295
398
  }[];
399
+ model: {
400
+ modelId: string;
401
+ provider: string;
402
+ thinkingLevel?: string | undefined;
403
+ };
296
404
  output: {
297
- root: string;
298
405
  archiveExisting: boolean;
299
406
  existingState: "absent" | "archivable" | "empty";
407
+ root: string;
300
408
  };
301
- model: {
302
- provider: string;
303
- modelId: string;
304
- thinkingLevel?: string | undefined;
409
+ repositoryRoot: string;
410
+ schemaVersion: "1.0";
411
+ target: {
412
+ baseRevision?: string | undefined;
413
+ displayName: string;
414
+ excludePaths: string[];
415
+ headRevision?: string | undefined;
416
+ includePaths: string[];
417
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
418
+ repositoryRoot: string;
419
+ revision?: string | undefined;
420
+ treeDigest: string;
305
421
  };
422
+ workflowFingerprint: string;
423
+ }, {
306
424
  account: {
307
- provider: string;
308
- credentialId: number;
309
425
  accountId?: string | undefined;
426
+ credentialId: number;
310
427
  email?: string | undefined;
311
428
  organizationId?: string | undefined;
312
429
  organizationName?: string | undefined;
430
+ provider: string;
313
431
  };
314
432
  configFingerprint: string;
315
- workflowFingerprint: string;
316
- fingerprint: string;
317
- } | undefined;
318
- target: {
319
- kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
320
- repositoryRoot: string;
321
- displayName: string;
322
- revision?: string | undefined;
323
- baseRevision?: string | undefined;
324
- headRevision?: string | undefined;
325
- includePaths: string[];
326
- excludePaths: string[];
327
- treeDigest: string;
328
- };
329
- producer: {
330
- kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
331
- name: string;
332
- version?: string | undefined;
333
- vendor?: string | undefined;
334
- revision?: string | undefined;
335
- pluginVersion?: string | undefined;
336
- };
337
- provenance: {
338
- producer: {
339
- kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
340
- name: string;
341
- version?: string | undefined;
342
- vendor?: string | undefined;
343
- revision?: string | undefined;
344
- pluginVersion?: string | undefined;
345
- };
346
433
  createdAt: string;
347
- importedAt?: string | undefined;
348
- sourceIds?: {
349
- [x: string]: string;
350
- } | undefined;
351
- vendorFingerprints?: {
352
- [x: string]: string;
353
- } | undefined;
354
- upstream?: {
355
- repository?: string | undefined;
356
- revision?: string | undefined;
357
- packageVersion?: string | undefined;
358
- pluginVersion?: string | undefined;
359
- archiveSha256?: string | undefined;
360
- } | undefined;
361
- metadata?: {
362
- [x: string]: unknown;
363
- } | undefined;
364
- };
365
- findingIds: string[];
366
- coverage: {
367
- mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
368
- completeness: "complete" | "partial" | "unknown";
369
- inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
370
- includePaths: string[];
371
- excludePaths: string[];
372
- surfaces: {
373
- id: string;
374
- label: string;
375
- disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
376
- receiptRefs: string[];
377
- riskArea?: string | undefined;
378
- notes?: string | undefined;
379
- }[];
380
- explicitExclusions: {
381
- pattern: string;
382
- reason: string;
383
- }[];
384
- deferred: {
385
- id: string;
386
- reason: string;
387
- paths?: string[] | undefined;
388
- surfaceIds?: string[] | undefined;
434
+ documentType: "omp-security.scan-plan";
435
+ fingerprint: string;
436
+ id: string;
437
+ knowledgeBases: {
438
+ path: string;
439
+ sha256: string;
440
+ size: number;
389
441
  }[];
390
- openQuestions?: {
391
- question: string;
392
- followUpPrompt?: string | undefined;
393
- }[] | undefined;
394
- };
395
- reportRef?: string | undefined;
396
- sarifRef?: string | undefined;
397
- error?: string | undefined;
398
- metrics?: {
442
+ model: {
443
+ modelId: string;
444
+ provider: string;
445
+ thinkingLevel?: string | undefined;
446
+ };
447
+ output: {
448
+ archiveExisting: boolean;
449
+ existingState: "absent" | "archivable" | "empty";
450
+ root: string;
451
+ };
452
+ repositoryRoot: string;
453
+ schemaVersion: "1.0";
454
+ target: {
455
+ baseRevision?: string | undefined;
456
+ displayName: string;
457
+ excludePaths: string[];
458
+ headRevision?: string | undefined;
459
+ includePaths: string[];
460
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
461
+ repositoryRoot: string;
462
+ revision?: string | undefined;
463
+ treeDigest: string;
464
+ };
465
+ workflowFingerprint: string;
466
+ }>;
467
+ securityScanMetricsSchema: import("@oh-my-pi/omptype").FluentType<{
468
+ cost?: number | undefined;
469
+ premiumRequests?: number | undefined;
399
470
  runtimeMs?: number | undefined;
400
471
  tokenUsage?: {
472
+ cacheRead: number;
473
+ cacheWrite: number;
401
474
  input: number;
402
475
  output: number;
403
476
  reasoning: number;
404
- cacheRead: number;
405
- cacheWrite: number;
406
477
  total: number;
407
478
  } | undefined;
479
+ }, {
408
480
  cost?: number | undefined;
409
481
  premiumRequests?: number | undefined;
410
- } | undefined;
411
- }, {}>;
412
- export declare const securityScanBundleSchema: import("arktype/internal/variants/object.ts").ObjectType<{
413
- scan: {
482
+ runtimeMs?: number | undefined;
483
+ tokenUsage?: {
484
+ cacheRead: number;
485
+ cacheWrite: number;
486
+ input: number;
487
+ output: number;
488
+ reasoning: number;
489
+ total: number;
490
+ } | undefined;
491
+ }>;
492
+ securityScanSchema: import("@oh-my-pi/omptype").FluentType<{
493
+ completedAt?: string | undefined;
494
+ coverage: {
495
+ completeness: "complete" | "partial" | "unknown";
496
+ deferred: {
497
+ id: string;
498
+ paths?: string[] | undefined;
499
+ reason: string;
500
+ surfaceIds?: string[] | undefined;
501
+ }[];
502
+ excludePaths: string[];
503
+ explicitExclusions: {
504
+ pattern: string;
505
+ reason: string;
506
+ }[];
507
+ includePaths: string[];
508
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
509
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
510
+ openQuestions?: {
511
+ followUpPrompt?: string | undefined;
512
+ question: string;
513
+ }[] | undefined;
514
+ surfaces: {
515
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
516
+ id: string;
517
+ label: string;
518
+ notes?: string | undefined;
519
+ receiptRefs: string[];
520
+ riskArea?: string | undefined;
521
+ }[];
522
+ };
523
+ createdAt: string;
414
524
  documentType: "omp-security.scan";
415
- schemaVersion: "1.0";
525
+ error?: string | undefined;
526
+ findingIds: string[];
416
527
  id: string;
417
- projectKey: string;
418
- status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
419
- createdAt: string;
420
- startedAt?: string | undefined;
421
- completedAt?: string | undefined;
528
+ metrics?: {
529
+ cost?: number | undefined;
530
+ premiumRequests?: number | undefined;
531
+ runtimeMs?: number | undefined;
532
+ tokenUsage?: {
533
+ cacheRead: number;
534
+ cacheWrite: number;
535
+ input: number;
536
+ output: number;
537
+ reasoning: number;
538
+ total: number;
539
+ } | undefined;
540
+ } | undefined;
422
541
  plan?: {
542
+ account: {
543
+ accountId?: string | undefined;
544
+ credentialId: number;
545
+ email?: string | undefined;
546
+ organizationId?: string | undefined;
547
+ organizationName?: string | undefined;
548
+ provider: string;
549
+ };
550
+ configFingerprint: string;
551
+ createdAt: string;
423
552
  documentType: "omp-security.scan-plan";
424
- schemaVersion: "1.0";
553
+ fingerprint: string;
425
554
  id: string;
426
- createdAt: string;
555
+ knowledgeBases: {
556
+ path: string;
557
+ sha256: string;
558
+ size: number;
559
+ }[];
560
+ model: {
561
+ modelId: string;
562
+ provider: string;
563
+ thinkingLevel?: string | undefined;
564
+ };
565
+ output: {
566
+ archiveExisting: boolean;
567
+ existingState: "absent" | "archivable" | "empty";
568
+ root: string;
569
+ };
427
570
  repositoryRoot: string;
571
+ schemaVersion: "1.0";
428
572
  target: {
429
- kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
430
- repositoryRoot: string;
431
- displayName: string;
432
- revision?: string | undefined;
433
573
  baseRevision?: string | undefined;
574
+ displayName: string;
575
+ excludePaths: string[];
434
576
  headRevision?: string | undefined;
435
577
  includePaths: string[];
436
- excludePaths: string[];
578
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
579
+ repositoryRoot: string;
580
+ revision?: string | undefined;
437
581
  treeDigest: string;
438
582
  };
583
+ workflowFingerprint: string;
584
+ } | undefined;
585
+ producer: {
586
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
587
+ name: string;
588
+ pluginVersion?: string | undefined;
589
+ revision?: string | undefined;
590
+ vendor?: string | undefined;
591
+ version?: string | undefined;
592
+ };
593
+ projectKey: string;
594
+ provenance: {
595
+ createdAt: string;
596
+ importedAt?: string | undefined;
597
+ metadata?: Record<string, unknown> | undefined;
598
+ producer: {
599
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
600
+ name: string;
601
+ pluginVersion?: string | undefined;
602
+ revision?: string | undefined;
603
+ vendor?: string | undefined;
604
+ version?: string | undefined;
605
+ };
606
+ sourceIds?: Record<string, string> | undefined;
607
+ upstream?: {
608
+ archiveSha256?: string | undefined;
609
+ packageVersion?: string | undefined;
610
+ pluginVersion?: string | undefined;
611
+ repository?: string | undefined;
612
+ revision?: string | undefined;
613
+ } | undefined;
614
+ vendorFingerprints?: Record<string, string> | undefined;
615
+ };
616
+ reportRef?: string | undefined;
617
+ sarifRef?: string | undefined;
618
+ schemaVersion: "1.0";
619
+ startedAt?: string | undefined;
620
+ status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
621
+ target: {
622
+ baseRevision?: string | undefined;
623
+ displayName: string;
624
+ excludePaths: string[];
625
+ headRevision?: string | undefined;
626
+ includePaths: string[];
627
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
628
+ repositoryRoot: string;
629
+ revision?: string | undefined;
630
+ treeDigest: string;
631
+ };
632
+ }, {
633
+ completedAt?: string | undefined;
634
+ coverage: {
635
+ completeness: "complete" | "partial" | "unknown";
636
+ deferred: {
637
+ id: string;
638
+ paths?: string[] | undefined;
639
+ reason: string;
640
+ surfaceIds?: string[] | undefined;
641
+ }[];
642
+ excludePaths: string[];
643
+ explicitExclusions: {
644
+ pattern: string;
645
+ reason: string;
646
+ }[];
647
+ includePaths: string[];
648
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
649
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
650
+ openQuestions?: {
651
+ followUpPrompt?: string | undefined;
652
+ question: string;
653
+ }[] | undefined;
654
+ surfaces: {
655
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
656
+ id: string;
657
+ label: string;
658
+ notes?: string | undefined;
659
+ receiptRefs: string[];
660
+ riskArea?: string | undefined;
661
+ }[];
662
+ };
663
+ createdAt: string;
664
+ documentType: "omp-security.scan";
665
+ error?: string | undefined;
666
+ findingIds: string[];
667
+ id: string;
668
+ metrics?: {
669
+ cost?: number | undefined;
670
+ premiumRequests?: number | undefined;
671
+ runtimeMs?: number | undefined;
672
+ tokenUsage?: {
673
+ cacheRead: number;
674
+ cacheWrite: number;
675
+ input: number;
676
+ output: number;
677
+ reasoning: number;
678
+ total: number;
679
+ } | undefined;
680
+ } | undefined;
681
+ plan?: {
682
+ account: {
683
+ accountId?: string | undefined;
684
+ credentialId: number;
685
+ email?: string | undefined;
686
+ organizationId?: string | undefined;
687
+ organizationName?: string | undefined;
688
+ provider: string;
689
+ };
690
+ configFingerprint: string;
691
+ createdAt: string;
692
+ documentType: "omp-security.scan-plan";
693
+ fingerprint: string;
694
+ id: string;
439
695
  knowledgeBases: {
440
696
  path: string;
441
697
  sha256: string;
442
698
  size: number;
443
699
  }[];
444
- output: {
445
- root: string;
446
- archiveExisting: boolean;
447
- existingState: "absent" | "archivable" | "empty";
448
- };
449
700
  model: {
450
- provider: string;
451
701
  modelId: string;
702
+ provider: string;
452
703
  thinkingLevel?: string | undefined;
453
704
  };
454
- account: {
455
- provider: string;
456
- credentialId: number;
457
- accountId?: string | undefined;
458
- email?: string | undefined;
459
- organizationId?: string | undefined;
460
- organizationName?: string | undefined;
705
+ output: {
706
+ archiveExisting: boolean;
707
+ existingState: "absent" | "archivable" | "empty";
708
+ root: string;
709
+ };
710
+ repositoryRoot: string;
711
+ schemaVersion: "1.0";
712
+ target: {
713
+ baseRevision?: string | undefined;
714
+ displayName: string;
715
+ excludePaths: string[];
716
+ headRevision?: string | undefined;
717
+ includePaths: string[];
718
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
719
+ repositoryRoot: string;
720
+ revision?: string | undefined;
721
+ treeDigest: string;
461
722
  };
462
- configFingerprint: string;
463
723
  workflowFingerprint: string;
464
- fingerprint: string;
465
724
  } | undefined;
466
- target: {
467
- kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
468
- repositoryRoot: string;
469
- displayName: string;
470
- revision?: string | undefined;
471
- baseRevision?: string | undefined;
472
- headRevision?: string | undefined;
473
- includePaths: string[];
474
- excludePaths: string[];
475
- treeDigest: string;
476
- };
477
725
  producer: {
478
726
  kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
479
727
  name: string;
480
- version?: string | undefined;
481
- vendor?: string | undefined;
482
- revision?: string | undefined;
483
728
  pluginVersion?: string | undefined;
729
+ revision?: string | undefined;
730
+ vendor?: string | undefined;
731
+ version?: string | undefined;
484
732
  };
733
+ projectKey: string;
485
734
  provenance: {
735
+ createdAt: string;
736
+ importedAt?: string | undefined;
737
+ metadata?: Record<string, unknown> | undefined;
486
738
  producer: {
487
739
  kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
488
740
  name: string;
489
- version?: string | undefined;
490
- vendor?: string | undefined;
491
- revision?: string | undefined;
492
741
  pluginVersion?: string | undefined;
742
+ revision?: string | undefined;
743
+ vendor?: string | undefined;
744
+ version?: string | undefined;
493
745
  };
494
- createdAt: string;
495
- importedAt?: string | undefined;
496
- sourceIds?: {
497
- [x: string]: string;
498
- } | undefined;
499
- vendorFingerprints?: {
500
- [x: string]: string;
501
- } | undefined;
746
+ sourceIds?: Record<string, string> | undefined;
502
747
  upstream?: {
503
- repository?: string | undefined;
504
- revision?: string | undefined;
748
+ archiveSha256?: string | undefined;
505
749
  packageVersion?: string | undefined;
506
750
  pluginVersion?: string | undefined;
507
- archiveSha256?: string | undefined;
508
- } | undefined;
509
- metadata?: {
510
- [x: string]: unknown;
751
+ repository?: string | undefined;
752
+ revision?: string | undefined;
511
753
  } | undefined;
754
+ vendorFingerprints?: Record<string, string> | undefined;
512
755
  };
513
- findingIds: string[];
514
- coverage: {
515
- mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
516
- completeness: "complete" | "partial" | "unknown";
517
- inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
518
- includePaths: string[];
756
+ reportRef?: string | undefined;
757
+ sarifRef?: string | undefined;
758
+ schemaVersion: "1.0";
759
+ startedAt?: string | undefined;
760
+ status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
761
+ target: {
762
+ baseRevision?: string | undefined;
763
+ displayName: string;
519
764
  excludePaths: string[];
520
- surfaces: {
765
+ headRevision?: string | undefined;
766
+ includePaths: string[];
767
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
768
+ repositoryRoot: string;
769
+ revision?: string | undefined;
770
+ treeDigest: string;
771
+ };
772
+ }>;
773
+ securityScanBundleSchema: import("@oh-my-pi/omptype").FluentType<{
774
+ findings: {
775
+ anchor?: string | undefined;
776
+ confidence: {
777
+ level: "high" | "low" | "medium";
778
+ rationale?: string | undefined;
779
+ };
780
+ disposition: {
781
+ actor?: string | undefined;
782
+ rationale?: string | undefined;
783
+ status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
784
+ updatedAt?: string | undefined;
785
+ };
786
+ evidence: {
787
+ excerpt?: string | undefined;
788
+ explanation: string;
521
789
  id: string;
790
+ kind: "code" | "note" | "trace" | "validation";
522
791
  label: string;
523
- disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
524
- receiptRefs: string[];
525
- riskArea?: string | undefined;
526
- notes?: string | undefined;
527
- }[];
528
- explicitExclusions: {
529
- pattern: string;
530
- reason: string;
531
- }[];
532
- deferred: {
533
- id: string;
534
- reason: string;
535
- paths?: string[] | undefined;
536
- surfaceIds?: string[] | undefined;
792
+ location?: {
793
+ endColumn?: number | undefined;
794
+ endLine?: number | undefined;
795
+ path: string;
796
+ role?: string | undefined;
797
+ startColumn?: number | undefined;
798
+ startLine: number;
799
+ } | undefined;
537
800
  }[];
538
- openQuestions?: {
539
- question: string;
540
- followUpPrompt?: string | undefined;
541
- }[] | undefined;
542
- };
543
- reportRef?: string | undefined;
544
- sarifRef?: string | undefined;
545
- error?: string | undefined;
546
- metrics?: {
547
- runtimeMs?: number | undefined;
548
- tokenUsage?: {
549
- input: number;
550
- output: number;
551
- reasoning: number;
552
- cacheRead: number;
553
- cacheWrite: number;
554
- total: number;
555
- } | undefined;
556
- cost?: number | undefined;
557
- premiumRequests?: number | undefined;
558
- } | undefined;
559
- };
560
- findings: {
561
- id: string;
562
- scanId: string;
563
- fingerprint: string;
564
- ruleId: string;
565
- anchor?: string | undefined;
566
- title: string;
567
- summary: string;
568
- severity: {
569
- level: "critical" | "high" | "informational" | "low" | "medium";
570
- score?: number | undefined;
571
- scoringSystem?: string | undefined;
572
- vector?: string | undefined;
573
- rationale?: string | undefined;
574
- };
575
- confidence: {
576
- level: "high" | "low" | "medium";
577
- rationale?: string | undefined;
578
- };
579
- taxonomy: {
580
- category: string;
581
- cwe: string[];
582
- tags?: string[] | undefined;
583
- };
584
- occurrences: {
801
+ extensions?: Record<string, unknown> | undefined;
802
+ fingerprint: string;
585
803
  id: string;
586
- locations: {
587
- path: string;
588
- startLine: number;
589
- endLine?: number | undefined;
590
- startColumn?: number | undefined;
591
- endColumn?: number | undefined;
592
- role?: string | undefined;
804
+ occurrences: {
805
+ evidenceIds: string[];
806
+ id: string;
807
+ locations: {
808
+ endColumn?: number | undefined;
809
+ endLine?: number | undefined;
810
+ path: string;
811
+ role?: string | undefined;
812
+ startColumn?: number | undefined;
813
+ startLine: number;
814
+ }[];
593
815
  }[];
594
- evidenceIds: string[];
816
+ provenance: {
817
+ createdAt: string;
818
+ importedAt?: string | undefined;
819
+ metadata?: Record<string, unknown> | undefined;
820
+ producer: {
821
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
822
+ name: string;
823
+ pluginVersion?: string | undefined;
824
+ revision?: string | undefined;
825
+ vendor?: string | undefined;
826
+ version?: string | undefined;
827
+ };
828
+ sourceIds?: Record<string, string> | undefined;
829
+ upstream?: {
830
+ archiveSha256?: string | undefined;
831
+ packageVersion?: string | undefined;
832
+ pluginVersion?: string | undefined;
833
+ repository?: string | undefined;
834
+ revision?: string | undefined;
835
+ } | undefined;
836
+ vendorFingerprints?: Record<string, string> | undefined;
837
+ };
838
+ remediation?: string | undefined;
839
+ ruleId: string;
840
+ scanId: string;
841
+ severity: {
842
+ level: "critical" | "high" | "informational" | "low" | "medium";
843
+ rationale?: string | undefined;
844
+ score?: number | undefined;
845
+ scoringSystem?: string | undefined;
846
+ vector?: string | undefined;
847
+ };
848
+ summary: string;
849
+ taxonomy: {
850
+ category: string;
851
+ cwe: string[];
852
+ tags?: string[] | undefined;
853
+ };
854
+ title: string;
855
+ validation: {
856
+ evidenceIds: string[];
857
+ status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
858
+ summary?: string | undefined;
859
+ validatedAt?: string | undefined;
860
+ };
595
861
  }[];
596
- evidence: {
862
+ report?: string | undefined;
863
+ sarif?: Record<string, unknown> | undefined;
864
+ scan: {
865
+ completedAt?: string | undefined;
866
+ coverage: {
867
+ completeness: "complete" | "partial" | "unknown";
868
+ deferred: {
869
+ id: string;
870
+ paths?: string[] | undefined;
871
+ reason: string;
872
+ surfaceIds?: string[] | undefined;
873
+ }[];
874
+ excludePaths: string[];
875
+ explicitExclusions: {
876
+ pattern: string;
877
+ reason: string;
878
+ }[];
879
+ includePaths: string[];
880
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
881
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
882
+ openQuestions?: {
883
+ followUpPrompt?: string | undefined;
884
+ question: string;
885
+ }[] | undefined;
886
+ surfaces: {
887
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
888
+ id: string;
889
+ label: string;
890
+ notes?: string | undefined;
891
+ receiptRefs: string[];
892
+ riskArea?: string | undefined;
893
+ }[];
894
+ };
895
+ createdAt: string;
896
+ documentType: "omp-security.scan";
897
+ error?: string | undefined;
898
+ findingIds: string[];
597
899
  id: string;
598
- kind: "code" | "note" | "trace" | "validation";
599
- label: string;
600
- explanation: string;
601
- location?: {
602
- path: string;
603
- startLine: number;
604
- endLine?: number | undefined;
605
- startColumn?: number | undefined;
606
- endColumn?: number | undefined;
607
- role?: string | undefined;
900
+ metrics?: {
901
+ cost?: number | undefined;
902
+ premiumRequests?: number | undefined;
903
+ runtimeMs?: number | undefined;
904
+ tokenUsage?: {
905
+ cacheRead: number;
906
+ cacheWrite: number;
907
+ input: number;
908
+ output: number;
909
+ reasoning: number;
910
+ total: number;
911
+ } | undefined;
912
+ } | undefined;
913
+ plan?: {
914
+ account: {
915
+ accountId?: string | undefined;
916
+ credentialId: number;
917
+ email?: string | undefined;
918
+ organizationId?: string | undefined;
919
+ organizationName?: string | undefined;
920
+ provider: string;
921
+ };
922
+ configFingerprint: string;
923
+ createdAt: string;
924
+ documentType: "omp-security.scan-plan";
925
+ fingerprint: string;
926
+ id: string;
927
+ knowledgeBases: {
928
+ path: string;
929
+ sha256: string;
930
+ size: number;
931
+ }[];
932
+ model: {
933
+ modelId: string;
934
+ provider: string;
935
+ thinkingLevel?: string | undefined;
936
+ };
937
+ output: {
938
+ archiveExisting: boolean;
939
+ existingState: "absent" | "archivable" | "empty";
940
+ root: string;
941
+ };
942
+ repositoryRoot: string;
943
+ schemaVersion: "1.0";
944
+ target: {
945
+ baseRevision?: string | undefined;
946
+ displayName: string;
947
+ excludePaths: string[];
948
+ headRevision?: string | undefined;
949
+ includePaths: string[];
950
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
951
+ repositoryRoot: string;
952
+ revision?: string | undefined;
953
+ treeDigest: string;
954
+ };
955
+ workflowFingerprint: string;
608
956
  } | undefined;
609
- excerpt?: string | undefined;
610
- }[];
611
- remediation?: string | undefined;
612
- validation: {
613
- status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
614
- summary?: string | undefined;
615
- evidenceIds: string[];
616
- validatedAt?: string | undefined;
617
- };
618
- disposition: {
619
- status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
620
- rationale?: string | undefined;
621
- updatedAt?: string | undefined;
622
- actor?: string | undefined;
623
- };
624
- provenance: {
625
957
  producer: {
626
958
  kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
627
959
  name: string;
628
- version?: string | undefined;
960
+ pluginVersion?: string | undefined;
961
+ revision?: string | undefined;
629
962
  vendor?: string | undefined;
963
+ version?: string | undefined;
964
+ };
965
+ projectKey: string;
966
+ provenance: {
967
+ createdAt: string;
968
+ importedAt?: string | undefined;
969
+ metadata?: Record<string, unknown> | undefined;
970
+ producer: {
971
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
972
+ name: string;
973
+ pluginVersion?: string | undefined;
974
+ revision?: string | undefined;
975
+ vendor?: string | undefined;
976
+ version?: string | undefined;
977
+ };
978
+ sourceIds?: Record<string, string> | undefined;
979
+ upstream?: {
980
+ archiveSha256?: string | undefined;
981
+ packageVersion?: string | undefined;
982
+ pluginVersion?: string | undefined;
983
+ repository?: string | undefined;
984
+ revision?: string | undefined;
985
+ } | undefined;
986
+ vendorFingerprints?: Record<string, string> | undefined;
987
+ };
988
+ reportRef?: string | undefined;
989
+ sarifRef?: string | undefined;
990
+ schemaVersion: "1.0";
991
+ startedAt?: string | undefined;
992
+ status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
993
+ target: {
994
+ baseRevision?: string | undefined;
995
+ displayName: string;
996
+ excludePaths: string[];
997
+ headRevision?: string | undefined;
998
+ includePaths: string[];
999
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
1000
+ repositoryRoot: string;
630
1001
  revision?: string | undefined;
631
- pluginVersion?: string | undefined;
1002
+ treeDigest: string;
1003
+ };
1004
+ };
1005
+ }, {
1006
+ findings: {
1007
+ anchor?: string | undefined;
1008
+ confidence: {
1009
+ level: "high" | "low" | "medium";
1010
+ rationale?: string | undefined;
1011
+ };
1012
+ disposition: {
1013
+ actor?: string | undefined;
1014
+ rationale?: string | undefined;
1015
+ status: "accepted_risk" | "false_positive" | "fixed" | "open" | "wont_fix";
1016
+ updatedAt?: string | undefined;
1017
+ };
1018
+ evidence: {
1019
+ excerpt?: string | undefined;
1020
+ explanation: string;
1021
+ id: string;
1022
+ kind: "code" | "note" | "trace" | "validation";
1023
+ label: string;
1024
+ location?: {
1025
+ endColumn?: number | undefined;
1026
+ endLine?: number | undefined;
1027
+ path: string;
1028
+ role?: string | undefined;
1029
+ startColumn?: number | undefined;
1030
+ startLine: number;
1031
+ } | undefined;
1032
+ }[];
1033
+ extensions?: Record<string, unknown> | undefined;
1034
+ fingerprint: string;
1035
+ id: string;
1036
+ occurrences: {
1037
+ evidenceIds: string[];
1038
+ id: string;
1039
+ locations: {
1040
+ endColumn?: number | undefined;
1041
+ endLine?: number | undefined;
1042
+ path: string;
1043
+ role?: string | undefined;
1044
+ startColumn?: number | undefined;
1045
+ startLine: number;
1046
+ }[];
1047
+ }[];
1048
+ provenance: {
1049
+ createdAt: string;
1050
+ importedAt?: string | undefined;
1051
+ metadata?: Record<string, unknown> | undefined;
1052
+ producer: {
1053
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
1054
+ name: string;
1055
+ pluginVersion?: string | undefined;
1056
+ revision?: string | undefined;
1057
+ vendor?: string | undefined;
1058
+ version?: string | undefined;
1059
+ };
1060
+ sourceIds?: Record<string, string> | undefined;
1061
+ upstream?: {
1062
+ archiveSha256?: string | undefined;
1063
+ packageVersion?: string | undefined;
1064
+ pluginVersion?: string | undefined;
1065
+ repository?: string | undefined;
1066
+ revision?: string | undefined;
1067
+ } | undefined;
1068
+ vendorFingerprints?: Record<string, string> | undefined;
1069
+ };
1070
+ remediation?: string | undefined;
1071
+ ruleId: string;
1072
+ scanId: string;
1073
+ severity: {
1074
+ level: "critical" | "high" | "informational" | "low" | "medium";
1075
+ rationale?: string | undefined;
1076
+ score?: number | undefined;
1077
+ scoringSystem?: string | undefined;
1078
+ vector?: string | undefined;
1079
+ };
1080
+ summary: string;
1081
+ taxonomy: {
1082
+ category: string;
1083
+ cwe: string[];
1084
+ tags?: string[] | undefined;
1085
+ };
1086
+ title: string;
1087
+ validation: {
1088
+ evidenceIds: string[];
1089
+ status: "error" | "partial" | "rejected" | "unvalidated" | "validated";
1090
+ summary?: string | undefined;
1091
+ validatedAt?: string | undefined;
1092
+ };
1093
+ }[];
1094
+ report?: string | undefined;
1095
+ sarif?: Record<string, unknown> | undefined;
1096
+ scan: {
1097
+ completedAt?: string | undefined;
1098
+ coverage: {
1099
+ completeness: "complete" | "partial" | "unknown";
1100
+ deferred: {
1101
+ id: string;
1102
+ paths?: string[] | undefined;
1103
+ reason: string;
1104
+ surfaceIds?: string[] | undefined;
1105
+ }[];
1106
+ excludePaths: string[];
1107
+ explicitExclusions: {
1108
+ pattern: string;
1109
+ reason: string;
1110
+ }[];
1111
+ includePaths: string[];
1112
+ inventoryStrategy: "custom" | "diff" | "directory" | "imported" | "repository" | "scoped_path";
1113
+ mode: "deep_repository" | "diff" | "imported" | "repository" | "scoped_path" | "working_tree";
1114
+ openQuestions?: {
1115
+ followUpPrompt?: string | undefined;
1116
+ question: string;
1117
+ }[] | undefined;
1118
+ surfaces: {
1119
+ disposition: "needs_follow_up" | "no_issue_found" | "not_applicable" | "rejected" | "reported";
1120
+ id: string;
1121
+ label: string;
1122
+ notes?: string | undefined;
1123
+ receiptRefs: string[];
1124
+ riskArea?: string | undefined;
1125
+ }[];
632
1126
  };
633
1127
  createdAt: string;
634
- importedAt?: string | undefined;
635
- sourceIds?: {
636
- [x: string]: string;
1128
+ documentType: "omp-security.scan";
1129
+ error?: string | undefined;
1130
+ findingIds: string[];
1131
+ id: string;
1132
+ metrics?: {
1133
+ cost?: number | undefined;
1134
+ premiumRequests?: number | undefined;
1135
+ runtimeMs?: number | undefined;
1136
+ tokenUsage?: {
1137
+ cacheRead: number;
1138
+ cacheWrite: number;
1139
+ input: number;
1140
+ output: number;
1141
+ reasoning: number;
1142
+ total: number;
1143
+ } | undefined;
637
1144
  } | undefined;
638
- vendorFingerprints?: {
639
- [x: string]: string;
1145
+ plan?: {
1146
+ account: {
1147
+ accountId?: string | undefined;
1148
+ credentialId: number;
1149
+ email?: string | undefined;
1150
+ organizationId?: string | undefined;
1151
+ organizationName?: string | undefined;
1152
+ provider: string;
1153
+ };
1154
+ configFingerprint: string;
1155
+ createdAt: string;
1156
+ documentType: "omp-security.scan-plan";
1157
+ fingerprint: string;
1158
+ id: string;
1159
+ knowledgeBases: {
1160
+ path: string;
1161
+ sha256: string;
1162
+ size: number;
1163
+ }[];
1164
+ model: {
1165
+ modelId: string;
1166
+ provider: string;
1167
+ thinkingLevel?: string | undefined;
1168
+ };
1169
+ output: {
1170
+ archiveExisting: boolean;
1171
+ existingState: "absent" | "archivable" | "empty";
1172
+ root: string;
1173
+ };
1174
+ repositoryRoot: string;
1175
+ schemaVersion: "1.0";
1176
+ target: {
1177
+ baseRevision?: string | undefined;
1178
+ displayName: string;
1179
+ excludePaths: string[];
1180
+ headRevision?: string | undefined;
1181
+ includePaths: string[];
1182
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
1183
+ repositoryRoot: string;
1184
+ revision?: string | undefined;
1185
+ treeDigest: string;
1186
+ };
1187
+ workflowFingerprint: string;
640
1188
  } | undefined;
641
- upstream?: {
642
- repository?: string | undefined;
643
- revision?: string | undefined;
644
- packageVersion?: string | undefined;
1189
+ producer: {
1190
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
1191
+ name: string;
645
1192
  pluginVersion?: string | undefined;
646
- archiveSha256?: string | undefined;
647
- } | undefined;
648
- metadata?: {
649
- [x: string]: unknown;
650
- } | undefined;
1193
+ revision?: string | undefined;
1194
+ vendor?: string | undefined;
1195
+ version?: string | undefined;
1196
+ };
1197
+ projectKey: string;
1198
+ provenance: {
1199
+ createdAt: string;
1200
+ importedAt?: string | undefined;
1201
+ metadata?: Record<string, unknown> | undefined;
1202
+ producer: {
1203
+ kind: "codex-security-bundle" | "codex-security-cloud" | "omp-native" | "sarif-import";
1204
+ name: string;
1205
+ pluginVersion?: string | undefined;
1206
+ revision?: string | undefined;
1207
+ vendor?: string | undefined;
1208
+ version?: string | undefined;
1209
+ };
1210
+ sourceIds?: Record<string, string> | undefined;
1211
+ upstream?: {
1212
+ archiveSha256?: string | undefined;
1213
+ packageVersion?: string | undefined;
1214
+ pluginVersion?: string | undefined;
1215
+ repository?: string | undefined;
1216
+ revision?: string | undefined;
1217
+ } | undefined;
1218
+ vendorFingerprints?: Record<string, string> | undefined;
1219
+ };
1220
+ reportRef?: string | undefined;
1221
+ sarifRef?: string | undefined;
1222
+ schemaVersion: "1.0";
1223
+ startedAt?: string | undefined;
1224
+ status: "cancelled" | "completed" | "failed" | "partial" | "planned" | "running";
1225
+ target: {
1226
+ baseRevision?: string | undefined;
1227
+ displayName: string;
1228
+ excludePaths: string[];
1229
+ headRevision?: string | undefined;
1230
+ includePaths: string[];
1231
+ kind: "imported" | "ref_diff" | "repository" | "scoped_path" | "working_tree";
1232
+ repositoryRoot: string;
1233
+ revision?: string | undefined;
1234
+ treeDigest: string;
1235
+ };
651
1236
  };
652
- extensions?: {
653
- [x: string]: unknown;
654
- } | undefined;
655
- }[];
656
- report?: string | undefined;
657
- sarif?: {
658
- [x: string]: unknown;
659
- } | undefined;
660
- }, {}>;
1237
+ }>;
1238
+ };