@intutic/shared-types 2.4.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/anomaly.d.ts +0 -19
- package/dist/anomaly.d.ts.map +1 -1
- package/dist/apiKeyScopes.d.ts +100 -0
- package/dist/apiKeyScopes.d.ts.map +1 -0
- package/dist/apiKeyScopes.js +142 -0
- package/dist/apiKeyScopes.js.map +1 -0
- package/dist/attenuation.d.ts +10 -5
- package/dist/attenuation.d.ts.map +1 -1
- package/dist/attenuation.js +17 -4
- package/dist/attenuation.js.map +1 -1
- package/dist/auth.d.ts +35 -4
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +26 -6
- package/dist/auth.js.map +1 -1
- package/dist/chaos.d.ts +2225 -0
- package/dist/chaos.d.ts.map +1 -0
- package/dist/chaos.js +358 -0
- package/dist/chaos.js.map +1 -0
- package/dist/chaosGate.d.ts +166 -0
- package/dist/chaosGate.d.ts.map +1 -0
- package/dist/chaosGate.js +383 -0
- package/dist/chaosGate.js.map +1 -0
- package/dist/enums.d.ts +9 -26
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +11 -28
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +6 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +6 -1
- package/dist/errors.js.map +1 -1
- package/dist/finops.d.ts +4 -20
- package/dist/finops.d.ts.map +1 -1
- package/dist/guardrailIr.d.ts +6 -6
- package/dist/guardrailRender.d.ts +51 -0
- package/dist/guardrailRender.d.ts.map +1 -1
- package/dist/guardrailRender.js +69 -1
- package/dist/guardrailRender.js.map +1 -1
- package/dist/identity.d.ts +0 -18
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -5
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +22 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +75 -13
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +3 -100
- package/dist/intelligence.d.ts.map +1 -1
- package/dist/intelligence.js +3 -3
- package/dist/intelligence.js.map +1 -1
- package/dist/mcpBudgets.d.ts +16 -16
- package/dist/mcpDaemonPolicyCache.d.ts +32 -0
- package/dist/mcpDaemonPolicyCache.d.ts.map +1 -0
- package/dist/mcpDaemonPolicyCache.js +43 -0
- package/dist/mcpDaemonPolicyCache.js.map +1 -0
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +9 -4
- package/dist/notifications.js.map +1 -1
- package/dist/observability.d.ts +0 -31
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +0 -7
- package/dist/observability.js.map +1 -1
- package/dist/opaqueRefusal.d.ts +40 -0
- package/dist/opaqueRefusal.d.ts.map +1 -0
- package/dist/opaqueRefusal.js +53 -0
- package/dist/opaqueRefusal.js.map +1 -0
- package/dist/piiDetectors.d.ts +3 -0
- package/dist/piiDetectors.d.ts.map +1 -1
- package/dist/piiDetectors.js.map +1 -1
- package/dist/piiDetectors.json +11 -6
- package/dist/policyGuardrails.d.ts +5 -5
- package/dist/posturePresets.d.ts.map +1 -1
- package/dist/posturePresets.js +12 -3
- package/dist/posturePresets.js.map +1 -1
- package/dist/responses/common.d.ts +53 -0
- package/dist/responses/common.d.ts.map +1 -0
- package/dist/responses/common.js +43 -0
- package/dist/responses/common.js.map +1 -0
- package/dist/responses/gateways.d.ts +4999 -0
- package/dist/responses/gateways.d.ts.map +1 -0
- package/dist/responses/gateways.js +394 -0
- package/dist/responses/gateways.js.map +1 -0
- package/dist/responses/guardrails.d.ts +5200 -0
- package/dist/responses/guardrails.d.ts.map +1 -0
- package/dist/responses/guardrails.js +374 -0
- package/dist/responses/guardrails.js.map +1 -0
- package/dist/responses/identity.d.ts +1667 -0
- package/dist/responses/identity.d.ts.map +1 -0
- package/dist/responses/identity.js +292 -0
- package/dist/responses/identity.js.map +1 -0
- package/dist/responses/index.d.ts +15 -0
- package/dist/responses/index.d.ts.map +1 -0
- package/dist/responses/index.js +31 -0
- package/dist/responses/index.js.map +1 -0
- package/dist/responses/integrations.d.ts +4118 -0
- package/dist/responses/integrations.d.ts.map +1 -0
- package/dist/responses/integrations.js +400 -0
- package/dist/responses/integrations.js.map +1 -0
- package/dist/responses/observability.d.ts +3222 -0
- package/dist/responses/observability.d.ts.map +1 -0
- package/dist/responses/observability.js +598 -0
- package/dist/responses/observability.js.map +1 -0
- package/dist/responses/orgSops.d.ts +112 -0
- package/dist/responses/orgSops.d.ts.map +1 -0
- package/dist/responses/orgSops.js +29 -0
- package/dist/responses/orgSops.js.map +1 -0
- package/dist/responses/rules.d.ts +1948 -0
- package/dist/responses/rules.d.ts.map +1 -0
- package/dist/responses/rules.js +352 -0
- package/dist/responses/rules.js.map +1 -0
- package/dist/skillScan.d.ts +31 -0
- package/dist/skillScan.d.ts.map +1 -1
- package/dist/skillScan.js +25 -1
- package/dist/skillScan.js.map +1 -1
- package/dist/sop.d.ts +8 -1
- package/dist/sop.d.ts.map +1 -1
- package/dist/sop.js.map +1 -1
- package/dist/taskManagement.d.ts +34 -82
- package/dist/taskManagement.d.ts.map +1 -1
- package/dist/taskManagement.js +4 -4
- package/dist/toolPoison.d.ts +15 -2
- package/dist/toolPoison.d.ts.map +1 -1
- package/dist/toolPoison.js +14 -4
- package/dist/toolPoison.js.map +1 -1
- package/dist/workspaceSettings.d.ts +33 -14
- package/dist/workspaceSettings.d.ts.map +1 -1
- package/dist/workspaceSettings.js +3 -1
- package/dist/workspaceSettings.js.map +1 -1
- package/package.json +2 -2
package/dist/taskManagement.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Task Management Adapter —
|
|
2
|
+
* Task Management Adapter — read-only interface over external task trackers
|
|
3
|
+
* and incident tools.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* create/update tasks based on governance events.
|
|
5
|
+
* The control plane reads tickets (Jira, Linear) and incidents (PagerDuty) to
|
|
6
|
+
* attach task context to agent sessions. It does not create or update them.
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
11
|
-
export type TaskProvider = 'jira' | '
|
|
10
|
+
/** Providers with a registered adapter. */
|
|
11
|
+
export type TaskProvider = 'jira' | 'pagerduty' | 'linear';
|
|
12
12
|
/** Priority levels mapped across providers. */
|
|
13
13
|
export type TaskPriority = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
|
|
14
14
|
/** Task status (normalized across providers). */
|
|
@@ -20,62 +20,17 @@ export interface TaskProviderCredentials {
|
|
|
20
20
|
baseUrl: string;
|
|
21
21
|
/** Authentication token or API key. */
|
|
22
22
|
authToken: string;
|
|
23
|
-
/** Project or
|
|
23
|
+
/** Project, team or routing key within the provider. */
|
|
24
24
|
projectKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* Jira Cloud only: the email of the Atlassian account the API token belongs
|
|
27
|
+
* to. Jira Cloud authenticates an API token as Basic `email:token`. A
|
|
28
|
+
* connection stores it as `metadata.accountEmail`.
|
|
29
|
+
*/
|
|
30
|
+
accountEmail?: string;
|
|
25
31
|
/** Additional provider-specific config. */
|
|
26
32
|
metadata?: Record<string, unknown>;
|
|
27
33
|
}
|
|
28
|
-
/** Payload for creating a new task. */
|
|
29
|
-
export interface CreateTaskPayload {
|
|
30
|
-
/** Human-readable task title. */
|
|
31
|
-
title: string;
|
|
32
|
-
/** Markdown description of the task. */
|
|
33
|
-
description: string;
|
|
34
|
-
/** Normalized priority. */
|
|
35
|
-
priority: TaskPriority;
|
|
36
|
-
/** Intutic-specific labels for categorization. */
|
|
37
|
-
labels?: string[];
|
|
38
|
-
/** Assignee identifier (provider-specific). */
|
|
39
|
-
assigneeId?: string;
|
|
40
|
-
/** Link back to the Intutic governance event. */
|
|
41
|
-
intuticLink?: {
|
|
42
|
-
/** Type of governance event that created this task. */
|
|
43
|
-
eventType: 'INCIDENT' | 'ANOMALY' | 'SOP_REVIEW' | 'COMPLIANCE';
|
|
44
|
-
/** ID of the governance event. */
|
|
45
|
-
eventId: string;
|
|
46
|
-
/** Workspace this event belongs to. */
|
|
47
|
-
workspaceId: string;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/** Result of creating a task in the external system. */
|
|
51
|
-
export interface CreateTaskResult {
|
|
52
|
-
/** Whether the task was successfully created. */
|
|
53
|
-
success: boolean;
|
|
54
|
-
/** External task ID (e.g., Jira issue key like "PROJ-123"). */
|
|
55
|
-
externalTaskId?: string;
|
|
56
|
-
/** URL to the task in the external system. */
|
|
57
|
-
externalUrl?: string;
|
|
58
|
-
/** Error message if creation failed. */
|
|
59
|
-
error?: string;
|
|
60
|
-
}
|
|
61
|
-
/** Payload for updating an existing task. */
|
|
62
|
-
export interface UpdateTaskPayload {
|
|
63
|
-
/** External task ID to update. */
|
|
64
|
-
externalTaskId: string;
|
|
65
|
-
/** New status (optional). */
|
|
66
|
-
status?: TaskStatus;
|
|
67
|
-
/** Comment to add (optional). */
|
|
68
|
-
comment?: string;
|
|
69
|
-
/** Updated priority (optional). */
|
|
70
|
-
priority?: TaskPriority;
|
|
71
|
-
/** Additional fields (provider-specific). */
|
|
72
|
-
fields?: Record<string, unknown>;
|
|
73
|
-
}
|
|
74
|
-
/** Result of updating a task. */
|
|
75
|
-
export interface UpdateTaskResult {
|
|
76
|
-
success: boolean;
|
|
77
|
-
error?: string;
|
|
78
|
-
}
|
|
79
34
|
/** A task as retrieved from the external system. */
|
|
80
35
|
export interface ExternalTask {
|
|
81
36
|
externalTaskId: string;
|
|
@@ -90,13 +45,22 @@ export interface ExternalTask {
|
|
|
90
45
|
sprint?: string;
|
|
91
46
|
epic?: string;
|
|
92
47
|
}
|
|
48
|
+
/** Filters for `TaskManagementAdapter.searchTasks`. */
|
|
49
|
+
export interface TaskSearchFilters {
|
|
50
|
+
status?: TaskStatus;
|
|
51
|
+
priority?: TaskPriority;
|
|
52
|
+
labels?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* The provider's own id for the assignee. An adapter must apply it: a search
|
|
55
|
+
* for one person's work that comes back with everyone's is worse than none.
|
|
56
|
+
*/
|
|
57
|
+
assigneeId?: string;
|
|
58
|
+
}
|
|
93
59
|
/**
|
|
94
60
|
* Generic task management adapter interface.
|
|
95
61
|
*
|
|
96
|
-
* Implementations
|
|
97
|
-
*
|
|
98
|
-
* when governance events (incidents, anomalies, SOP reviews) require
|
|
99
|
-
* external task creation or updates.
|
|
62
|
+
* Implementations read from an external tracker so the control plane can
|
|
63
|
+
* resolve which ticket or incident an agent session is working on.
|
|
100
64
|
*/
|
|
101
65
|
export interface TaskManagementAdapter {
|
|
102
66
|
/** Provider name for this adapter. */
|
|
@@ -106,18 +70,6 @@ export interface TaskManagementAdapter {
|
|
|
106
70
|
* @returns true if the connection is healthy
|
|
107
71
|
*/
|
|
108
72
|
testConnection(): Promise<boolean>;
|
|
109
|
-
/**
|
|
110
|
-
* Create a new task in the external system.
|
|
111
|
-
* @param payload - Task creation payload
|
|
112
|
-
* @returns Result with external task ID and URL
|
|
113
|
-
*/
|
|
114
|
-
createTask(payload: CreateTaskPayload): Promise<CreateTaskResult>;
|
|
115
|
-
/**
|
|
116
|
-
* Update an existing task in the external system.
|
|
117
|
-
* @param payload - Task update payload
|
|
118
|
-
* @returns Result indicating success/failure
|
|
119
|
-
*/
|
|
120
|
-
updateTask(payload: UpdateTaskPayload): Promise<UpdateTaskResult>;
|
|
121
73
|
/**
|
|
122
74
|
* Retrieve a task by its external ID.
|
|
123
75
|
* @param externalTaskId - The external system's task identifier
|
|
@@ -125,15 +77,15 @@ export interface TaskManagementAdapter {
|
|
|
125
77
|
*/
|
|
126
78
|
getTask(externalTaskId: string): Promise<ExternalTask | null>;
|
|
127
79
|
/**
|
|
128
|
-
* Search for tasks
|
|
129
|
-
*
|
|
130
|
-
*
|
|
80
|
+
* Search for open tasks.
|
|
81
|
+
*
|
|
82
|
+
* Rejects when the provider cannot be asked (unreachable, refused, timed
|
|
83
|
+
* out), so a caller can tell "nothing open" from "could not ask".
|
|
84
|
+
*
|
|
85
|
+
* @param workspaceId - Intutic workspace ID, for logging
|
|
86
|
+
* @param filters - Optional filters (status, priority, labels, assignee)
|
|
131
87
|
* @returns List of matching external tasks
|
|
132
88
|
*/
|
|
133
|
-
searchTasks(workspaceId: string, filters?:
|
|
134
|
-
status?: TaskStatus;
|
|
135
|
-
priority?: TaskPriority;
|
|
136
|
-
labels?: string[];
|
|
137
|
-
}): Promise<ExternalTask[]>;
|
|
89
|
+
searchTasks(workspaceId: string, filters?: TaskSearchFilters): Promise<ExternalTask[]>;
|
|
138
90
|
}
|
|
139
91
|
//# sourceMappingURL=taskManagement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagement.d.ts","sourceRoot":"","sources":["../src/taskManagement.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"taskManagement.d.ts","sourceRoot":"","sources":["../src/taskManagement.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AAE1D,+CAA+C;AAC/C,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEjE,iDAAiD;AACjD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEvE,gEAAgE;AAChE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAA;IACf,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAA;IAClB;;;;OAIG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Task Management Adapter —
|
|
3
|
+
* Task Management Adapter — read-only interface over external task trackers
|
|
4
|
+
* and incident tools.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* create/update tasks based on governance events.
|
|
6
|
+
* The control plane reads tickets (Jira, Linear) and incidents (PagerDuty) to
|
|
7
|
+
* attach task context to agent sessions. It does not create or update them.
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
package/dist/toolPoison.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* toolPoison.ts — Tool-description poisoning patterns.
|
|
3
3
|
*
|
|
4
4
|
* Direct TypeScript port of `packages/proxy/src/tool_poison.rs`'s `scan`
|
|
5
|
-
* function and its
|
|
5
|
+
* function and its named patterns. This is a SEPARATE pattern set from
|
|
6
6
|
* the MCP proxy's `injection.ts`, on purpose: `tool_poison.rs`'s own module
|
|
7
7
|
* doc records that it tried reusing `injection::scan` for this and measured
|
|
8
8
|
* that its five patterns match ZERO of the tool-poisoning payloads — they are
|
|
@@ -21,10 +21,23 @@
|
|
|
21
21
|
* module's own `gating_never_changes_a_verdict` test), and the volume of tool
|
|
22
22
|
* descriptions scanned here is orders of magnitude below the Rust proxy's
|
|
23
23
|
* request path. The pattern SOURCE TEXT below is unchanged from the Rust
|
|
24
|
-
* `PATTERNS` array
|
|
24
|
+
* `PATTERNS` array, `/` escaped as `\/` for a regex literal;
|
|
25
|
+
* `__tests__/toolPoison.test.ts` reads the Rust file and holds the two equal.
|
|
25
26
|
*
|
|
26
27
|
@module
|
|
27
28
|
*/
|
|
29
|
+
export interface ToolPoisonPattern {
|
|
30
|
+
name: string;
|
|
31
|
+
regex: RegExp;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Ported verbatim from `tool_poison.rs`'s `PATTERNS` const. All bounded
|
|
35
|
+
* repetitions here are small fixed-width gaps (`{0,40}`, `{0,60}`, `{0,80}`)
|
|
36
|
+
* over a handful of alternations — the same "no wide bounded repetition, no
|
|
37
|
+
* RegexSet performance regression" shape the MCP proxy's `injection.ts` documents, not the
|
|
38
|
+
* `dlp.rs` shape that regressed.
|
|
39
|
+
*/
|
|
40
|
+
export declare const TOOL_POISON_PATTERNS: readonly ToolPoisonPattern[];
|
|
28
41
|
/**
|
|
29
42
|
* Pattern names matching this tool description, deduplicated, empty when it
|
|
30
43
|
* looks like ordinary prose (the overwhelmingly common case).
|
package/dist/toolPoison.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolPoison.d.ts","sourceRoot":"","sources":["../src/toolPoison.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"toolPoison.d.ts","sourceRoot":"","sources":["../src/toolPoison.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EA2C5D,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAOjE"}
|
package/dist/toolPoison.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* toolPoison.ts — Tool-description poisoning patterns.
|
|
4
4
|
*
|
|
5
5
|
* Direct TypeScript port of `packages/proxy/src/tool_poison.rs`'s `scan`
|
|
6
|
-
* function and its
|
|
6
|
+
* function and its named patterns. This is a SEPARATE pattern set from
|
|
7
7
|
* the MCP proxy's `injection.ts`, on purpose: `tool_poison.rs`'s own module
|
|
8
8
|
* doc records that it tried reusing `injection::scan` for this and measured
|
|
9
9
|
* that its five patterns match ZERO of the tool-poisoning payloads — they are
|
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
* module's own `gating_never_changes_a_verdict` test), and the volume of tool
|
|
23
23
|
* descriptions scanned here is orders of magnitude below the Rust proxy's
|
|
24
24
|
* request path. The pattern SOURCE TEXT below is unchanged from the Rust
|
|
25
|
-
* `PATTERNS` array
|
|
25
|
+
* `PATTERNS` array, `/` escaped as `\/` for a regex literal;
|
|
26
|
+
* `__tests__/toolPoison.test.ts` reads the Rust file and holds the two equal.
|
|
26
27
|
*
|
|
27
28
|
@module
|
|
28
29
|
*/
|
|
29
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.TOOL_POISON_PATTERNS = void 0;
|
|
30
32
|
exports.scanToolDescription = scanToolDescription;
|
|
31
33
|
/**
|
|
32
34
|
* Ported verbatim from `tool_poison.rs`'s `PATTERNS` const. All bounded
|
|
@@ -35,7 +37,7 @@ exports.scanToolDescription = scanToolDescription;
|
|
|
35
37
|
* RegexSet performance regression" shape the MCP proxy's `injection.ts` documents, not the
|
|
36
38
|
* `dlp.rs` shape that regressed.
|
|
37
39
|
*/
|
|
38
|
-
|
|
40
|
+
exports.TOOL_POISON_PATTERNS = [
|
|
39
41
|
{
|
|
40
42
|
name: 'hidden-instruction-block',
|
|
41
43
|
regex: /<\s*(important|secret|system|hidden|instructions?)\s*>/i,
|
|
@@ -67,6 +69,14 @@ const PATTERNS = [
|
|
|
67
69
|
name: 'tool-scoped-instruction-override',
|
|
68
70
|
regex: /\b(ignore|disregard|override)\b[^.!?]{0,40}\b(other\s+tools?|previous\s+tools?|system\s+prompt)\b/i,
|
|
69
71
|
},
|
|
72
|
+
{
|
|
73
|
+
// An order to run a command that destroys the machine or its data: a
|
|
74
|
+
// recursive delete of the filesystem root or the home directory (never a
|
|
75
|
+
// path below either), formatting or raw-writing a block device, dropping a
|
|
76
|
+
// database, piping a download into a shell, a fork bomb.
|
|
77
|
+
name: 'destructive-command-instruction',
|
|
78
|
+
regex: /\b(run|execute|exec|invoke|issue|type|enter|paste)\b[^.!?]{0,40}(\brm\s+-[a-z-]*[rf][a-z-]*\s+(-\S+\s+){0,4}["'`]?(\/\*?|~\/?\*?|\$\{?home\}?\/?\*?)(["'`;&|)\s]|$)|\bmkfs\b|\bdd\s[^.!?]{0,60}\bof=\/dev\/|\bdrop\s+(database|schema)\b|\b(curl|wget)\s[^|\n]{0,120}\|\s*(sudo\s+)?(ba|z|da|k)?sh\b|:\(\)\s*\{\s*:\s*\|\s*:)/i,
|
|
79
|
+
},
|
|
70
80
|
];
|
|
71
81
|
/**
|
|
72
82
|
* Pattern names matching this tool description, deduplicated, empty when it
|
|
@@ -76,7 +86,7 @@ function scanToolDescription(description) {
|
|
|
76
86
|
if (!description)
|
|
77
87
|
return [];
|
|
78
88
|
const found = [];
|
|
79
|
-
for (const { name, regex } of
|
|
89
|
+
for (const { name, regex } of exports.TOOL_POISON_PATTERNS) {
|
|
80
90
|
if (regex.test(description))
|
|
81
91
|
found.push(name);
|
|
82
92
|
}
|
package/dist/toolPoison.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolPoison.js","sourceRoot":"","sources":["../src/toolPoison.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"toolPoison.js","sourceRoot":"","sources":["../src/toolPoison.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;AA+DH,kDAOC;AA/DD;;;;;;GAMG;AACU,QAAA,oBAAoB,GAAiC;IAChE;QACE,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE,yDAAyD;KACjE;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EACH,kJAAkJ;KACrJ;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EACH,oKAAoK;KACvK;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,qEAAqE;QACrE,iEAAiE;QACjE,sDAAsD;QACtD,KAAK,EAAE,+GAA+G;KACvH;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,0GAA0G;KAClH;IACD;QACE,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,kHAAkH;KAC1H;IACD;QACE,IAAI,EAAE,kCAAkC;QACxC,KAAK,EAAE,oGAAoG;KAC5G;IACD;QACE,qEAAqE;QACrE,yEAAyE;QACzE,2EAA2E;QAC3E,yDAAyD;QACzD,IAAI,EAAE,iCAAiC;QACvC,KAAK,EACH,gUAAgU;KACnU;CACF,CAAA;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,WAAmB;IACrD,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAA;IAC3B,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,4BAAoB,EAAE,CAAC;QACnD,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC/C,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -14,6 +14,7 @@ import type { SsoGroupPolicy } from './attenuation.js';
|
|
|
14
14
|
import type { McpBudgetSettings } from './mcpBudgets.js';
|
|
15
15
|
import type { PiiDetectorSettings } from './piiDetectors.js';
|
|
16
16
|
import type { UpstreamRetrySettings } from './upstreamRetry.js';
|
|
17
|
+
import type { InterventionMode } from './policy.js';
|
|
17
18
|
export type { McpProxyFailBehavior, McpProxyMode, BypassEnforcementTier };
|
|
18
19
|
/**
|
|
19
20
|
* The MCP governance proxy's anomaly detectors, by id. The proxy's own
|
|
@@ -93,6 +94,17 @@ export interface WorkspaceSettings {
|
|
|
93
94
|
* in a settings write clears it, and is never stored.
|
|
94
95
|
*/
|
|
95
96
|
piiDetectors?: PiiDetectorSettings | null;
|
|
97
|
+
/**
|
|
98
|
+
* Keep tool-call argument values in the sampled replay contexts the LLM
|
|
99
|
+
* proxy attaches to traces (`context_snapshot`, `WASM_CONTEXT_SNAPSHOT_RATE`).
|
|
100
|
+
* Absent or `false`, the default: each call keeps its name and its
|
|
101
|
+
* arguments' top-level keys and size, never their values. `true`: the
|
|
102
|
+
* values are kept, with secrets, card numbers, IBANs, SSNs, email addresses
|
|
103
|
+
* and phone numbers redacted, so `POST /api/v1/wasm-rules/:id/replay` can
|
|
104
|
+
* replay a rule that reads `tool_calls[].arguments`. The proxy reads it from
|
|
105
|
+
* `/api/v1/auth/key-context`.
|
|
106
|
+
*/
|
|
107
|
+
storeToolArguments?: boolean;
|
|
96
108
|
/**
|
|
97
109
|
* How the LLM proxy retries a provider call that failed before any response
|
|
98
110
|
* reached the client, and the ordered fallback targets it tries when those
|
|
@@ -171,20 +183,11 @@ export interface WorkspaceSettings {
|
|
|
171
183
|
*
|
|
172
184
|
* Declaring it here is not enough on its own — the PUT schema in
|
|
173
185
|
* `routes/workspace.ts` must list it too, because that `z.object` strips
|
|
174
|
-
* unknown keys. `ff_metaclaw_evolution` above
|
|
175
|
-
* there, so
|
|
186
|
+
* unknown keys. This flag and `ff_metaclaw_evolution` above were both once
|
|
187
|
+
* declared here and omitted there, so neither could be stored until both
|
|
188
|
+
* were added to it.
|
|
176
189
|
*/
|
|
177
190
|
ff_shadow_enforcement?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Let a MetaClaw evolution proposal auto-apply instead of waiting for
|
|
180
|
-
* human review. Read directly off raw settings JSON by
|
|
181
|
-
* `promptEvolutionService.runEvolutionCycle` — no Valkey mirror, since
|
|
182
|
-
* nothing else needs a hot-path read of it.
|
|
183
|
-
*
|
|
184
|
-
* Also declared here without being settable until now — same "declared,
|
|
185
|
-
* never added to the PUT schema" bug as `ff_shadow_enforcement` above.
|
|
186
|
-
*/
|
|
187
|
-
ff_metaclaw_auto_apply?: boolean;
|
|
188
191
|
/**
|
|
189
192
|
* Let a high-confidence SkillOpt config-edit suggestion auto-apply
|
|
190
193
|
* instead of waiting for human review. Mirrored into Valkey
|
|
@@ -200,7 +203,7 @@ export interface WorkspaceSettings {
|
|
|
200
203
|
* `buildSnapshotRules` (`services/sync-daemon/src/lib/policySnapshot.ts`)
|
|
201
204
|
* applies it as a per-rule override on the next sync cycle — independent
|
|
202
205
|
* of `DESTRUCTIVE_TIER_SEVERITY`, the evidence-gated promotion ramp that
|
|
203
|
-
* governs the
|
|
206
|
+
* governs the eight block-severity `DESTRUCTIVE_COMMAND_PATTERNS` entries.
|
|
204
207
|
* `destructive.sql_drop` was never part of that ramp (its own static
|
|
205
208
|
* definition is `severity: 'warn'`, not `'block'`, so the ramp's ternary
|
|
206
209
|
* never reaches it) — its rationale is a genuinely different one
|
|
@@ -210,7 +213,7 @@ export interface WorkspaceSettings {
|
|
|
210
213
|
* MCP path anyway, accepting the dev-DSN false-positive risk explicitly.
|
|
211
214
|
* `false` by default; `true` in the `strict` security posture preset
|
|
212
215
|
* (`posturePresets.ts`) — never auto-promoted by traffic evidence the
|
|
213
|
-
* way the
|
|
216
|
+
* way the block-pattern ramp is.
|
|
214
217
|
*/
|
|
215
218
|
ff_sql_drop_strict_block?: boolean;
|
|
216
219
|
};
|
|
@@ -516,6 +519,22 @@ export interface WorkspaceSettings {
|
|
|
516
519
|
* enforcement actually runs under.
|
|
517
520
|
*/
|
|
518
521
|
trajectory_monitor_mode?: 'ACTIVE' | 'PASSIVE' | 'OFF';
|
|
522
|
+
/**
|
|
523
|
+
* What an agent is told when a call is refused on workspace policy, for the
|
|
524
|
+
* whole workspace: `TRANSPARENT` names the rule and its reason, `OPAQUE`
|
|
525
|
+
* refuses the same calls with one generic sentence while audit records keep
|
|
526
|
+
* the rule, and `SILENT_LOG` lets the local hook gates run a call a workspace
|
|
527
|
+
* rule would block and report it as `tool_would_block`.
|
|
528
|
+
*
|
|
529
|
+
* Every surface resolves it through
|
|
530
|
+
* `services/control-plane/src/lib/interventionMode.ts`: the stored value
|
|
531
|
+
* when there is one. Until 2.6.0, a workspace that has not stored it falls
|
|
532
|
+
* back to the deprecated rule — the mode of its active enforcement policy
|
|
533
|
+
* with the lowest priority — and migration 234 wrote that mode here for
|
|
534
|
+
* every workspace that had an active policy. The default matches what the
|
|
535
|
+
* fallback gives a workspace with no policy.
|
|
536
|
+
*/
|
|
537
|
+
interventionMode?: InterventionMode;
|
|
519
538
|
/**
|
|
520
539
|
* Additive MCP tool allowlist, enforced by the MCP governance proxy
|
|
521
540
|
* (`packages/mcp-proxy`) and served to it by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceSettings.d.ts","sourceRoot":"","sources":["../src/workspaceSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"workspaceSettings.d.ts","sourceRoot":"","sources":["../src/workspaceSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAA;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,uJA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GAGG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI,GAAG,SAAS,GACpD,iBAAiB,CAKnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAIlF"}
|
|
@@ -56,7 +56,6 @@ exports.DEFAULT_WORKSPACE_SETTINGS = {
|
|
|
56
56
|
// Off by default, and the proxy resolves an absent flag to false as well —
|
|
57
57
|
// an unreachable flag service must never silently disable enforcement.
|
|
58
58
|
ff_shadow_enforcement: false,
|
|
59
|
-
ff_metaclaw_auto_apply: false,
|
|
60
59
|
ff_skillopt_auto_apply: false,
|
|
61
60
|
// Off by default — see the field doc. The `strict` security posture
|
|
62
61
|
// preset turns it on; nothing else does.
|
|
@@ -101,6 +100,9 @@ exports.DEFAULT_WORKSPACE_SETTINGS = {
|
|
|
101
100
|
// resolution only — a different value here would make the UI show a mode
|
|
102
101
|
// enforcement does not actually run under. See the field doc.
|
|
103
102
|
trajectory_monitor_mode: 'PASSIVE',
|
|
103
|
+
// What the resolver gives a workspace that has neither the setting nor an
|
|
104
|
+
// active enforcement policy. See the field doc.
|
|
105
|
+
interventionMode: 'TRANSPARENT',
|
|
104
106
|
// Off by default — mirrors anomalyEnforcementService.ts's own DISABLED
|
|
105
107
|
// default exactly, so a workspace that never configures this sees the
|
|
106
108
|
// identical values whether resolved here or read directly from the DB.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceSettings.js","sourceRoot":"","sources":["../src/workspaceSettings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"workspaceSettings.js","sourceRoot":"","sources":["../src/workspaceSettings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAmzBH,4DAOC;AAWD,wEAIC;AA7zBD;;;;;;GAMG;AACU,QAAA,wBAAwB,GAAG;IACtC,oBAAoB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OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC;QAAE,OAAO,GAAG,CAAA;IAC1F,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intutic/shared-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Shared TypeScript types for the Intutic control plane, CLI, and sync daemon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"zod": "^3.23",
|
|
21
|
-
"@intutic/anomaly-taxonomy": "2.
|
|
21
|
+
"@intutic/anomaly-taxonomy": "2.5.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.5",
|