pi-harness-runtime 1.1.421 → 1.1.423
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/index.ts +32 -1
- package/package.json +2 -2
- package/packages/a2a-adapter/package.json +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/architecture-generator/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-refactor/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/cache-strategy/package.json +1 -1
- package/packages/capability-registry/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/cli-plugin-sdk/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/clipboard-plugin/package.json +1 -1
- package/packages/code-generation/package.json +1 -1
- package/packages/code-review/package.json +1 -1
- package/packages/codex-adapter/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/connection-runtime/package.json +1 -1
- package/packages/context-compiler/package.json +1 -1
- package/packages/context-discovery/package.json +1 -1
- package/packages/context-manager/package.json +1 -1
- package/packages/contracts/dist/approvals.d.ts +70 -183
- package/packages/contracts/dist/events.d.ts +83 -57
- package/packages/contracts/dist/jobs.d.ts +77 -156
- package/packages/contracts/dist/notifications.d.ts +68 -230
- package/packages/contracts/dist/projects.d.ts +31 -109
- package/packages/contracts/dist/sessions.d.ts +66 -150
- package/packages/contracts/package.json +2 -2
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/cost-optimizer/package.json +1 -1
- package/packages/dependency-analyzer/package.json +1 -1
- package/packages/django-plugin/package.json +1 -1
- package/packages/doc-generator/package.json +1 -1
- package/packages/durable-review/package.json +1 -1
- package/packages/e2e-tester/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/evaluation-runner/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-sink/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/feedback-collector/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/framework-detector/package.json +1 -1
- package/packages/framework-plugin-sdk/package.json +1 -1
- package/packages/frappe-plugin/package.json +1 -1
- package/packages/generic-web-plugin/package.json +1 -1
- package/packages/health-monitor/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-graph/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/laravel-plugin/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/mcp-adapter/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/milestone-manager/package.json +1 -1
- package/packages/model-registry/package.json +1 -1
- package/packages/nextjs-plugin/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/observability/package.json +1 -1
- package/packages/okf-indexer/package.json +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/permission-mode/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/project-analyzer/package.json +1 -1
- package/packages/project-bootstrap/package.json +1 -1
- package/packages/projection-engine/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/prompt-versioning/package.json +1 -1
- package/packages/provider-adapter-sdk/package.json +1 -1
- package/packages/provider-router/package.json +1 -1
- package/packages/provider-selector/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/rate-limiter/package.json +1 -1
- package/packages/react-vite-plugin/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/release-manager/package.json +1 -1
- package/packages/requirement-compiler/package.json +1 -1
- package/packages/runtime/package.json +1 -1
- package/packages/scheduler/package.json +1 -1
- package/packages/scheduler-adapter/package.json +1 -1
- package/packages/session/package.json +1 -1
- package/packages/session-api/package.json +1 -1
- package/packages/session-export/package.json +1 -1
- package/packages/shared-context/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skill-registry/package.json +1 -1
- package/packages/skills/dist/index.d.ts.map +1 -1
- package/packages/skills/dist/index.js +12 -4
- package/packages/skills/dist/index.js.map +1 -1
- package/packages/skills/dist/sanitize-rules.d.ts +93 -0
- package/packages/skills/dist/sanitize-rules.d.ts.map +1 -0
- package/packages/skills/dist/sanitize-rules.js +173 -0
- package/packages/skills/dist/sanitize-rules.js.map +1 -0
- package/packages/skills/dist/sanitize.d.ts +13 -2
- package/packages/skills/dist/sanitize.d.ts.map +1 -1
- package/packages/skills/dist/sanitize.js +14 -48
- package/packages/skills/dist/sanitize.js.map +1 -1
- package/packages/skills/dist/vector-schema.d.ts +7 -1
- package/packages/skills/dist/vector-schema.d.ts.map +1 -1
- package/packages/skills/dist/vector-schema.js +10 -5
- package/packages/skills/dist/vector-schema.js.map +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/skills/src/index.ts +12 -5
- package/packages/skills/src/sanitize-rules.ts +218 -0
- package/packages/skills/src/sanitize.ts +26 -56
- package/packages/skills/src/vector-schema.ts +22 -14
- package/packages/skills/test/remote-skills.test.ts +33 -6
- package/packages/skills/test/sanitize.test.ts +163 -44
- package/packages/sprint-planner/package.json +1 -1
- package/packages/subscription-engine/package.json +1 -1
- package/packages/task-compiler/package.json +1 -1
- package/packages/telegram/package.json +1 -1
- package/packages/tencentdb-memory/package.json +1 -1
- package/packages/tencentdb-sync/package.json +1 -1
- package/packages/test-data-generator/package.json +1 -1
- package/packages/test-generator/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/token-optimizer/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/voice-api/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/workflow-events/package.json +1 -1
- package/packages/workspace-scanner/package.json +1 -1
- package/packages/worktree/package.json +1 -1
- package/packages/write-review/package.json +1 -1
- package/scripts/sync-to-qdrant.ts +5 -9
package/index.ts
CHANGED
|
@@ -3459,7 +3459,7 @@ async function initHermesSkills(pi: ExtensionAPI): Promise<void> {
|
|
|
3459
3459
|
addHarnessMessage("Skills", "initializing", "wait");
|
|
3460
3460
|
try {
|
|
3461
3461
|
// Dynamically import to avoid circular deps
|
|
3462
|
-
const { initSkills } =
|
|
3462
|
+
const { initSkills, sanitizationStatus } =
|
|
3463
3463
|
await import("./packages/skills/dist/index.js");
|
|
3464
3464
|
|
|
3465
3465
|
// Scan skills from default locations
|
|
@@ -3471,6 +3471,37 @@ async function initHermesSkills(pi: ExtensionAPI): Promise<void> {
|
|
|
3471
3471
|
// shared skill, and a single "N discovered" hides that difference.
|
|
3472
3472
|
const local = localSkillsReport(localCount);
|
|
3473
3473
|
addHarnessMessage("Skills", local.text, local.status, local.details);
|
|
3474
|
+
// The rules that keep a client name out of the shared collection
|
|
3475
|
+
// live in a local file - they are not in the repository, it is
|
|
3476
|
+
// public. Without them only the generic rules hold, and a client
|
|
3477
|
+
// name travels into the collection. That is a visible state, not
|
|
3478
|
+
// a silent one.
|
|
3479
|
+
try {
|
|
3480
|
+
const rules = sanitizationStatus();
|
|
3481
|
+
if (!rules.configured) {
|
|
3482
|
+
addHarnessMessage(
|
|
3483
|
+
"Skill privacy",
|
|
3484
|
+
"sanitization rules not configured",
|
|
3485
|
+
"warn",
|
|
3486
|
+
[
|
|
3487
|
+
`How to fix: create ${rules.path} with the rules of your client names, or set PI_SKILL_SANITIZATION_FILE to a file that holds them.`,
|
|
3488
|
+
"The rules are not in the repository - it is public, and a list of client names in it is a list of client names in the world.",
|
|
3489
|
+
"A client name can travel into the shared collection until they are.",
|
|
3490
|
+
...(rules.error ? [rules.error] : []),
|
|
3491
|
+
],
|
|
3492
|
+
);
|
|
3493
|
+
}
|
|
3494
|
+
} catch (err) {
|
|
3495
|
+
addHarnessMessage(
|
|
3496
|
+
"Skill privacy",
|
|
3497
|
+
"the sanitization rules could not be read",
|
|
3498
|
+
"warn",
|
|
3499
|
+
[
|
|
3500
|
+
"How to fix: check that ~/.pi-harness-runtime/skill-sanitization.json exists and holds valid JSON.",
|
|
3501
|
+
err instanceof Error ? err.message : String(err),
|
|
3502
|
+
],
|
|
3503
|
+
);
|
|
3504
|
+
}
|
|
3474
3505
|
// The server-held skills. The service holds the authoritative
|
|
3475
3506
|
// files, so a machine without a local copy can still use a skill.
|
|
3476
3507
|
// It is only used when it is configured - a client without a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-harness-runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.423",
|
|
4
4
|
"description": "[BETA] Codex-style /usage status + autonomous coding harness for pi. Not production ready — expect breaking changes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"deepagents": "^1.10.5",
|
|
117
117
|
"langchain": "^1.5.10",
|
|
118
118
|
"ws": "^8.22.0",
|
|
119
|
-
"zod": "^4.
|
|
119
|
+
"zod": "^4.6.7"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"pi-mcp-adapter": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-harness/capability-registry",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.423",
|
|
4
4
|
"description": "Capability Registry for pi-harness-runtime — tracks model capabilities and enables capability-based routing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -5,20 +5,44 @@ import { z } from 'zod';
|
|
|
5
5
|
/**
|
|
6
6
|
* Approval status
|
|
7
7
|
*/
|
|
8
|
-
export declare const ApprovalStatus: z.ZodEnum<
|
|
8
|
+
export declare const ApprovalStatus: z.ZodEnum<{
|
|
9
|
+
approved: "approved";
|
|
10
|
+
expired: "expired";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
rejected: "rejected";
|
|
13
|
+
}>;
|
|
9
14
|
export type ApprovalStatus = z.infer<typeof ApprovalStatus>;
|
|
10
15
|
/**
|
|
11
16
|
* Approval type
|
|
12
17
|
*/
|
|
13
|
-
export declare const ApprovalType: z.ZodEnum<
|
|
18
|
+
export declare const ApprovalType: z.ZodEnum<{
|
|
19
|
+
command_execution: "command_execution";
|
|
20
|
+
external_action: "external_action";
|
|
21
|
+
file_delete: "file_delete";
|
|
22
|
+
file_write: "file_write";
|
|
23
|
+
network_request: "network_request";
|
|
24
|
+
tool_execution: "tool_execution";
|
|
25
|
+
}>;
|
|
14
26
|
export type ApprovalType = z.infer<typeof ApprovalType>;
|
|
15
27
|
/**
|
|
16
28
|
* Approval definition
|
|
17
29
|
*/
|
|
18
30
|
export declare const Approval: z.ZodObject<{
|
|
19
31
|
id: z.ZodString;
|
|
20
|
-
type: z.ZodEnum<
|
|
21
|
-
|
|
32
|
+
type: z.ZodEnum<{
|
|
33
|
+
command_execution: "command_execution";
|
|
34
|
+
external_action: "external_action";
|
|
35
|
+
file_delete: "file_delete";
|
|
36
|
+
file_write: "file_write";
|
|
37
|
+
network_request: "network_request";
|
|
38
|
+
tool_execution: "tool_execution";
|
|
39
|
+
}>;
|
|
40
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
41
|
+
approved: "approved";
|
|
42
|
+
expired: "expired";
|
|
43
|
+
pending: "pending";
|
|
44
|
+
rejected: "rejected";
|
|
45
|
+
}>>;
|
|
22
46
|
workspaceId: z.ZodString;
|
|
23
47
|
sessionId: z.ZodString;
|
|
24
48
|
jobId: z.ZodOptional<z.ZodString>;
|
|
@@ -33,49 +57,20 @@ export declare const Approval: z.ZodObject<{
|
|
|
33
57
|
requestedBy: z.ZodString;
|
|
34
58
|
approvedBy: z.ZodOptional<z.ZodString>;
|
|
35
59
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
36
|
-
},
|
|
37
|
-
id: string;
|
|
38
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
39
|
-
status: "approved" | "expired" | "pending" | "rejected";
|
|
40
|
-
workspaceId: string;
|
|
41
|
-
sessionId: string;
|
|
42
|
-
jobId?: string | undefined;
|
|
43
|
-
tool?: string | undefined;
|
|
44
|
-
command?: string | undefined;
|
|
45
|
-
file?: string | undefined;
|
|
46
|
-
description: string;
|
|
47
|
-
reason?: string | undefined;
|
|
48
|
-
requestedAt: string;
|
|
49
|
-
respondedAt?: string | undefined;
|
|
50
|
-
expiresAt?: string | undefined;
|
|
51
|
-
requestedBy: string;
|
|
52
|
-
approvedBy?: string | undefined;
|
|
53
|
-
metadata?: Record<string, unknown> | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
id: string;
|
|
56
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
57
|
-
status?: "approved" | "expired" | "pending" | "rejected" | undefined;
|
|
58
|
-
workspaceId: string;
|
|
59
|
-
sessionId: string;
|
|
60
|
-
jobId?: string | undefined;
|
|
61
|
-
tool?: string | undefined;
|
|
62
|
-
command?: string | undefined;
|
|
63
|
-
file?: string | undefined;
|
|
64
|
-
description: string;
|
|
65
|
-
reason?: string | undefined;
|
|
66
|
-
requestedAt: string;
|
|
67
|
-
respondedAt?: string | undefined;
|
|
68
|
-
expiresAt?: string | undefined;
|
|
69
|
-
requestedBy: string;
|
|
70
|
-
approvedBy?: string | undefined;
|
|
71
|
-
metadata?: Record<string, unknown> | undefined;
|
|
72
|
-
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
73
61
|
export type Approval = z.infer<typeof Approval>;
|
|
74
62
|
/**
|
|
75
63
|
* Approval request input
|
|
76
64
|
*/
|
|
77
65
|
export declare const ApprovalRequest: z.ZodObject<{
|
|
78
|
-
type: z.ZodEnum<
|
|
66
|
+
type: z.ZodEnum<{
|
|
67
|
+
command_execution: "command_execution";
|
|
68
|
+
external_action: "external_action";
|
|
69
|
+
file_delete: "file_delete";
|
|
70
|
+
file_write: "file_write";
|
|
71
|
+
network_request: "network_request";
|
|
72
|
+
tool_execution: "tool_execution";
|
|
73
|
+
}>;
|
|
79
74
|
workspaceId: z.ZodString;
|
|
80
75
|
sessionId: z.ZodString;
|
|
81
76
|
jobId: z.ZodOptional<z.ZodString>;
|
|
@@ -86,31 +81,7 @@ export declare const ApprovalRequest: z.ZodObject<{
|
|
|
86
81
|
reason: z.ZodOptional<z.ZodString>;
|
|
87
82
|
expiresIn: z.ZodOptional<z.ZodNumber>;
|
|
88
83
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
89
|
-
},
|
|
90
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
91
|
-
workspaceId: string;
|
|
92
|
-
sessionId: string;
|
|
93
|
-
jobId?: string | undefined;
|
|
94
|
-
tool?: string | undefined;
|
|
95
|
-
command?: string | undefined;
|
|
96
|
-
file?: string | undefined;
|
|
97
|
-
description: string;
|
|
98
|
-
reason?: string | undefined;
|
|
99
|
-
expiresIn?: number | undefined;
|
|
100
|
-
metadata?: Record<string, unknown> | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
103
|
-
workspaceId: string;
|
|
104
|
-
sessionId: string;
|
|
105
|
-
jobId?: string | undefined;
|
|
106
|
-
tool?: string | undefined;
|
|
107
|
-
command?: string | undefined;
|
|
108
|
-
file?: string | undefined;
|
|
109
|
-
description: string;
|
|
110
|
-
reason?: string | undefined;
|
|
111
|
-
expiresIn?: number | undefined;
|
|
112
|
-
metadata?: Record<string, unknown> | undefined;
|
|
113
|
-
}>;
|
|
84
|
+
}, z.core.$strip>;
|
|
114
85
|
export type ApprovalRequest = z.infer<typeof ApprovalRequest>;
|
|
115
86
|
/**
|
|
116
87
|
* Approval response input
|
|
@@ -119,15 +90,7 @@ export declare const ApprovalResponse: z.ZodObject<{
|
|
|
119
90
|
id: z.ZodString;
|
|
120
91
|
approved: z.ZodBoolean;
|
|
121
92
|
reason: z.ZodOptional<z.ZodString>;
|
|
122
|
-
},
|
|
123
|
-
id: string;
|
|
124
|
-
approved: boolean;
|
|
125
|
-
reason?: string | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
id: string;
|
|
128
|
-
approved: boolean;
|
|
129
|
-
reason?: string | undefined;
|
|
130
|
-
}>;
|
|
93
|
+
}, z.core.$strip>;
|
|
131
94
|
export type ApprovalResponse = z.infer<typeof ApprovalResponse>;
|
|
132
95
|
/**
|
|
133
96
|
* Approval filter
|
|
@@ -136,33 +99,25 @@ export declare const ApprovalFilter: z.ZodObject<{
|
|
|
136
99
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
137
100
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
138
101
|
jobId: z.ZodOptional<z.ZodString>;
|
|
139
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
140
|
-
|
|
102
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
approved: "approved";
|
|
104
|
+
expired: "expired";
|
|
105
|
+
pending: "pending";
|
|
106
|
+
rejected: "rejected";
|
|
107
|
+
}>>;
|
|
108
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
command_execution: "command_execution";
|
|
110
|
+
external_action: "external_action";
|
|
111
|
+
file_delete: "file_delete";
|
|
112
|
+
file_write: "file_write";
|
|
113
|
+
network_request: "network_request";
|
|
114
|
+
tool_execution: "tool_execution";
|
|
115
|
+
}>>;
|
|
141
116
|
since: z.ZodOptional<z.ZodString>;
|
|
142
117
|
until: z.ZodOptional<z.ZodString>;
|
|
143
118
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
144
119
|
cursor: z.ZodOptional<z.ZodString>;
|
|
145
|
-
},
|
|
146
|
-
workspaceId?: string | undefined;
|
|
147
|
-
sessionId?: string | undefined;
|
|
148
|
-
jobId?: string | undefined;
|
|
149
|
-
status?: "approved" | "expired" | "pending" | "rejected" | undefined;
|
|
150
|
-
type?: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution" | undefined;
|
|
151
|
-
since?: string | undefined;
|
|
152
|
-
until?: string | undefined;
|
|
153
|
-
limit: number;
|
|
154
|
-
cursor?: string | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
workspaceId?: string | undefined;
|
|
157
|
-
sessionId?: string | undefined;
|
|
158
|
-
jobId?: string | undefined;
|
|
159
|
-
status?: "approved" | "expired" | "pending" | "rejected" | undefined;
|
|
160
|
-
type?: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution" | undefined;
|
|
161
|
-
since?: string | undefined;
|
|
162
|
-
until?: string | undefined;
|
|
163
|
-
limit?: number | undefined;
|
|
164
|
-
cursor?: string | undefined;
|
|
165
|
-
}>;
|
|
120
|
+
}, z.core.$strip>;
|
|
166
121
|
export type ApprovalFilter = z.infer<typeof ApprovalFilter>;
|
|
167
122
|
/**
|
|
168
123
|
* Approval list response
|
|
@@ -170,8 +125,20 @@ export type ApprovalFilter = z.infer<typeof ApprovalFilter>;
|
|
|
170
125
|
export declare const ApprovalList: z.ZodObject<{
|
|
171
126
|
items: z.ZodArray<z.ZodObject<{
|
|
172
127
|
id: z.ZodString;
|
|
173
|
-
type: z.ZodEnum<
|
|
174
|
-
|
|
128
|
+
type: z.ZodEnum<{
|
|
129
|
+
command_execution: "command_execution";
|
|
130
|
+
external_action: "external_action";
|
|
131
|
+
file_delete: "file_delete";
|
|
132
|
+
file_write: "file_write";
|
|
133
|
+
network_request: "network_request";
|
|
134
|
+
tool_execution: "tool_execution";
|
|
135
|
+
}>;
|
|
136
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
137
|
+
approved: "approved";
|
|
138
|
+
expired: "expired";
|
|
139
|
+
pending: "pending";
|
|
140
|
+
rejected: "rejected";
|
|
141
|
+
}>>;
|
|
175
142
|
workspaceId: z.ZodString;
|
|
176
143
|
sessionId: z.ZodString;
|
|
177
144
|
jobId: z.ZodOptional<z.ZodString>;
|
|
@@ -186,88 +153,8 @@ export declare const ApprovalList: z.ZodObject<{
|
|
|
186
153
|
requestedBy: z.ZodString;
|
|
187
154
|
approvedBy: z.ZodOptional<z.ZodString>;
|
|
188
155
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
189
|
-
},
|
|
190
|
-
id: string;
|
|
191
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
192
|
-
status: "approved" | "expired" | "pending" | "rejected";
|
|
193
|
-
workspaceId: string;
|
|
194
|
-
sessionId: string;
|
|
195
|
-
jobId?: string | undefined;
|
|
196
|
-
tool?: string | undefined;
|
|
197
|
-
command?: string | undefined;
|
|
198
|
-
file?: string | undefined;
|
|
199
|
-
description: string;
|
|
200
|
-
reason?: string | undefined;
|
|
201
|
-
requestedAt: string;
|
|
202
|
-
respondedAt?: string | undefined;
|
|
203
|
-
expiresAt?: string | undefined;
|
|
204
|
-
requestedBy: string;
|
|
205
|
-
approvedBy?: string | undefined;
|
|
206
|
-
metadata?: Record<string, unknown> | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
id: string;
|
|
209
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
210
|
-
status?: "approved" | "expired" | "pending" | "rejected" | undefined;
|
|
211
|
-
workspaceId: string;
|
|
212
|
-
sessionId: string;
|
|
213
|
-
jobId?: string | undefined;
|
|
214
|
-
tool?: string | undefined;
|
|
215
|
-
command?: string | undefined;
|
|
216
|
-
file?: string | undefined;
|
|
217
|
-
description: string;
|
|
218
|
-
reason?: string | undefined;
|
|
219
|
-
requestedAt: string;
|
|
220
|
-
respondedAt?: string | undefined;
|
|
221
|
-
expiresAt?: string | undefined;
|
|
222
|
-
requestedBy: string;
|
|
223
|
-
approvedBy?: string | undefined;
|
|
224
|
-
metadata?: Record<string, unknown> | undefined;
|
|
225
|
-
}>, "many">;
|
|
156
|
+
}, z.core.$strip>>;
|
|
226
157
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
227
158
|
total: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
},
|
|
229
|
-
items: {
|
|
230
|
-
id: string;
|
|
231
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
232
|
-
status: "approved" | "expired" | "pending" | "rejected";
|
|
233
|
-
workspaceId: string;
|
|
234
|
-
sessionId: string;
|
|
235
|
-
jobId?: string | undefined;
|
|
236
|
-
tool?: string | undefined;
|
|
237
|
-
command?: string | undefined;
|
|
238
|
-
file?: string | undefined;
|
|
239
|
-
description: string;
|
|
240
|
-
reason?: string | undefined;
|
|
241
|
-
requestedAt: string;
|
|
242
|
-
respondedAt?: string | undefined;
|
|
243
|
-
expiresAt?: string | undefined;
|
|
244
|
-
requestedBy: string;
|
|
245
|
-
approvedBy?: string | undefined;
|
|
246
|
-
metadata?: Record<string, unknown> | undefined;
|
|
247
|
-
}[];
|
|
248
|
-
nextCursor?: string | undefined;
|
|
249
|
-
total?: number | undefined;
|
|
250
|
-
}, {
|
|
251
|
-
items: {
|
|
252
|
-
id: string;
|
|
253
|
-
type: "command_execution" | "external_action" | "file_delete" | "file_write" | "network_request" | "tool_execution";
|
|
254
|
-
status?: "approved" | "expired" | "pending" | "rejected" | undefined;
|
|
255
|
-
workspaceId: string;
|
|
256
|
-
sessionId: string;
|
|
257
|
-
jobId?: string | undefined;
|
|
258
|
-
tool?: string | undefined;
|
|
259
|
-
command?: string | undefined;
|
|
260
|
-
file?: string | undefined;
|
|
261
|
-
description: string;
|
|
262
|
-
reason?: string | undefined;
|
|
263
|
-
requestedAt: string;
|
|
264
|
-
respondedAt?: string | undefined;
|
|
265
|
-
expiresAt?: string | undefined;
|
|
266
|
-
requestedBy: string;
|
|
267
|
-
approvedBy?: string | undefined;
|
|
268
|
-
metadata?: Record<string, unknown> | undefined;
|
|
269
|
-
}[];
|
|
270
|
-
nextCursor?: string | undefined;
|
|
271
|
-
total?: number | undefined;
|
|
272
|
-
}>;
|
|
159
|
+
}, z.core.$strip>;
|
|
273
160
|
export type ApprovalList = z.infer<typeof ApprovalList>;
|