@intutic/shared-types 1.9.0 → 1.10.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 +1 -1
- package/dist/anomaly.d.ts +11 -0
- package/dist/anomaly.d.ts.map +1 -1
- package/dist/api-contracts.d.ts +97 -9
- package/dist/api-contracts.d.ts.map +1 -1
- package/dist/api-contracts.js +9 -0
- package/dist/api-contracts.js.map +1 -1
- package/dist/auth.d.ts +157 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +39 -1
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +2 -99
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +2 -17
- package/dist/billing.js.map +1 -1
- package/dist/enums.d.ts +341 -4
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +369 -6
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +20 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +20 -1
- package/dist/errors.js.map +1 -1
- package/dist/finops.d.ts +97 -1
- package/dist/finops.d.ts.map +1 -1
- package/dist/governanceCoverage.d.ts +82 -0
- package/dist/governanceCoverage.d.ts.map +1 -0
- package/dist/governanceCoverage.js +72 -0
- package/dist/governanceCoverage.js.map +1 -0
- package/dist/guardrailIr.d.ts +287 -0
- package/dist/guardrailIr.d.ts.map +1 -0
- package/dist/guardrailIr.js +301 -0
- package/dist/guardrailIr.js.map +1 -0
- package/dist/guardrailRender.d.ts +154 -0
- package/dist/guardrailRender.d.ts.map +1 -0
- package/dist/guardrailRender.js +440 -0
- package/dist/guardrailRender.js.map +1 -0
- package/dist/identity.d.ts +75 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +5 -1
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +34 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -2
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +37 -11
- package/dist/intelligence.d.ts.map +1 -1
- package/dist/intelligence.js.map +1 -1
- package/dist/modelCatalog.d.ts +89 -0
- package/dist/modelCatalog.d.ts.map +1 -0
- package/dist/modelCatalog.generated.d.ts +7204 -0
- package/dist/modelCatalog.generated.d.ts.map +1 -0
- package/dist/modelCatalog.generated.js +576 -0
- package/dist/modelCatalog.generated.js.map +1 -0
- package/dist/modelCatalog.js +112 -0
- package/dist/modelCatalog.js.map +1 -0
- package/dist/notifications.d.ts +134 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/observability.d.ts +4 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/policyGuardrails.d.ts +433 -0
- package/dist/policyGuardrails.d.ts.map +1 -0
- package/dist/policyGuardrails.js +91 -0
- package/dist/policyGuardrails.js.map +1 -0
- package/dist/posturePresets.d.ts +74 -0
- package/dist/posturePresets.d.ts.map +1 -0
- package/dist/posturePresets.js +139 -0
- package/dist/posturePresets.js.map +1 -0
- package/dist/providerVerification.d.ts +64 -0
- package/dist/providerVerification.d.ts.map +1 -0
- package/dist/providerVerification.js +184 -0
- package/dist/providerVerification.js.map +1 -0
- package/dist/providers.d.ts +93 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +176 -0
- package/dist/providers.js.map +1 -0
- package/dist/rulePredicateDsl.d.ts +101 -0
- package/dist/rulePredicateDsl.d.ts.map +1 -0
- package/dist/rulePredicateDsl.js +263 -0
- package/dist/rulePredicateDsl.js.map +1 -0
- package/dist/rulePredicateEval.d.ts +38 -0
- package/dist/rulePredicateEval.d.ts.map +1 -0
- package/dist/rulePredicateEval.js +124 -0
- package/dist/rulePredicateEval.js.map +1 -0
- package/dist/scriptScan.d.ts +162 -0
- package/dist/scriptScan.d.ts.map +1 -0
- package/dist/scriptScan.js +362 -0
- package/dist/scriptScan.js.map +1 -0
- package/dist/secretPatterns.d.ts +43 -0
- package/dist/secretPatterns.d.ts.map +1 -0
- package/dist/secretPatterns.js +73 -0
- package/dist/secretPatterns.js.map +1 -0
- package/dist/skillScan.d.ts +166 -0
- package/dist/skillScan.d.ts.map +1 -0
- package/dist/skillScan.js +398 -0
- package/dist/skillScan.js.map +1 -0
- package/dist/sop.d.ts +188 -9
- package/dist/sop.d.ts.map +1 -1
- package/dist/sop.js +54 -2
- package/dist/sop.js.map +1 -1
- package/dist/sourceProviders.d.ts +41 -0
- package/dist/sourceProviders.d.ts.map +1 -0
- package/dist/sourceProviders.js +48 -0
- package/dist/sourceProviders.js.map +1 -0
- package/dist/sync.d.ts +98 -8
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js.map +1 -1
- package/dist/toon.d.ts +80 -0
- package/dist/toon.d.ts.map +1 -0
- package/dist/toon.js +278 -0
- package/dist/toon.js.map +1 -0
- package/dist/usage.d.ts +23 -0
- package/dist/usage.d.ts.map +1 -1
- package/dist/wasmHost.d.ts +58 -0
- package/dist/wasmHost.d.ts.map +1 -0
- package/dist/wasmHost.js +80 -0
- package/dist/wasmHost.js.map +1 -0
- package/dist/workspaceSettings.d.ts +463 -21
- package/dist/workspaceSettings.d.ts.map +1 -1
- package/dist/workspaceSettings.js +86 -1
- package/dist/workspaceSettings.js.map +1 -1
- package/package.json +4 -3
package/dist/enums.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @module
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DriftDetectionMode = exports.DriftClassification = exports.BypassEnforcementTier = exports.McpProxyMode = exports.McpProxyFailBehavior = exports.WorkspaceRole = exports.RoutingTier = exports.HookPhase = exports.SopType = exports.SopLifecycleState = exports.PlanLifecycleState = exports.IncidentStatus = exports.ExecutionMode = exports.HarnessType = exports.AnomalyType = exports.ChangeClassification = exports.ComplexityTier = exports.BudgetTier = exports.TokenUtility = exports.EnforcementAction = exports.RiskLevel = void 0;
|
|
16
|
+
exports.AmendmentSource = exports.DriftDetectionMode = exports.DriftClassification = exports.BypassEnforcementTier = exports.McpProxyMode = exports.McpProxyFailBehavior = exports.WorkspaceRole = exports.RoutingTier = exports.HookPhase = exports.SopType = exports.SopLifecycleState = exports.PlanExecutionOutcome = exports.PlanLifecycleState = exports.IncidentStatus = exports.ExecutionMode = exports.HARNESS_HEADLINE_COUNT = exports.HARNESS_COUNT = exports.HarnessType = exports.AnomalyType = exports.ChangeClassification = exports.ComplexityTier = exports.BudgetTier = exports.TokenUtility = exports.EnforcementAction = exports.RiskLevel = void 0;
|
|
17
17
|
// ─── Risk Level ──────────────────────────────────────────────────────
|
|
18
18
|
// HLD §3.5, LLD §3.1 — risk_level enum
|
|
19
19
|
/** Risk severity classification for SOPs, anomalies, and incidents. */
|
|
@@ -25,12 +25,44 @@ exports.RiskLevel = {
|
|
|
25
25
|
};
|
|
26
26
|
// ─── Enforcement Action ──────────────────────────────────────────────
|
|
27
27
|
// HLD §3.3, LLD §3.1 — enforcement_action_type enum
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* PCAS enforcement action applied to a tool call.
|
|
30
|
+
*
|
|
31
|
+
* BYPASS..KILL are listed in increasing severity. `REASK` sits between
|
|
32
|
+
* `HIJACK` and `KILL`: the attempt is refused and the reason handed back to
|
|
33
|
+
* the agent, which may retry a bounded number of times before the finding
|
|
34
|
+
* escalates to a block.
|
|
35
|
+
*
|
|
36
|
+
* It exists because the proxy's promotion rule
|
|
37
|
+
* (`packages/proxy/src/plugins/anomaly/mod.rs`) forbids a heuristic from
|
|
38
|
+
* killing until its false-positive rate has been measured, and five detectors
|
|
39
|
+
* were doing exactly that. Demoting them to `HIJACK` would have honoured the
|
|
40
|
+
* rule and lost the enforcement; `REASK` keeps both.
|
|
41
|
+
*
|
|
42
|
+
* Mirrors `enforcement_action_type` — see migration 114.
|
|
43
|
+
*
|
|
44
|
+
* `OBSERVED` (migration 156) is deliberately OUTSIDE that severity ladder —
|
|
45
|
+
* it does not mean "PCAS acted with this severity", it means "PCAS took no
|
|
46
|
+
* action because the request never produced a response to act on". It is
|
|
47
|
+
* `mapVerdict`'s (`services/control-plane/src/lib/valkeySubscriber.ts`)
|
|
48
|
+
* target for the proxy's `"upstream_error"` verdict — a provider 5xx or an
|
|
49
|
+
* unservable-model rejection. Before this value existed, `mapVerdict`'s
|
|
50
|
+
* fail-closed default mapped every unrecognised verdict to `KILL`, so every
|
|
51
|
+
* upstream_error trace was recorded as an enforcement block that never
|
|
52
|
+
* happened: an honest failure record read as PCAS having stopped the
|
|
53
|
+
* request. `BYPASS` was considered and rejected for the same reason in the
|
|
54
|
+
* other direction — it means the call went through and completed, which an
|
|
55
|
+
* upstream_error trace never did. Nothing existing fit, so this is the
|
|
56
|
+
* smallest addition that lets "PCAS did not enforce anything here, the
|
|
57
|
+
* provider itself failed" be recorded truthfully.
|
|
58
|
+
*/
|
|
29
59
|
exports.EnforcementAction = {
|
|
30
60
|
BYPASS: 'BYPASS',
|
|
31
61
|
ENHANCE: 'ENHANCE',
|
|
32
62
|
HIJACK: 'HIJACK',
|
|
63
|
+
REASK: 'REASK',
|
|
33
64
|
KILL: 'KILL',
|
|
65
|
+
OBSERVED: 'OBSERVED',
|
|
34
66
|
};
|
|
35
67
|
// ─── Token Utility ───────────────────────────────────────────────────
|
|
36
68
|
// HLD §3.6, LLD §3.1 — token_utility_type enum
|
|
@@ -81,7 +113,13 @@ var anomaly_taxonomy_1 = require("@intutic/anomaly-taxonomy");
|
|
|
81
113
|
Object.defineProperty(exports, "AnomalyType", { enumerable: true, get: function () { return anomaly_taxonomy_1.AnomalyType; } });
|
|
82
114
|
// ─── Harness Type ────────────────────────────────────────────────────
|
|
83
115
|
// HLD §3.14, §4.5 — Supported AI agent harness integrations
|
|
84
|
-
// Full matrix: HLD §3.14 Harness Onboarding Matrix (
|
|
116
|
+
// Full matrix: HLD §3.14 Harness Onboarding Matrix (31 harnesses — 21
|
|
117
|
+
// hook/config-gated (19 base + Muse Code + Grok Build) + LangGraph +
|
|
118
|
+
// Wave 1's 8 SDK-gated Python frameworks + Xirp + Agentic Orchestrator —
|
|
119
|
+
// the two harnesses with no gate/config format of their own because they
|
|
120
|
+
// WRAP other already-gated harnesses rather than running tools themselves;
|
|
121
|
+
// see gateKind.ts's 'delegated' kind and gateRegistry.ts's NO_GATE rows for
|
|
122
|
+
// 'xirp' and 'agentic-orchestrator')
|
|
85
123
|
/** Supported AI agent harness/IDE integrations. */
|
|
86
124
|
exports.HarnessType = {
|
|
87
125
|
CURSOR: 'cursor',
|
|
@@ -102,7 +140,303 @@ exports.HarnessType = {
|
|
|
102
140
|
GOOSE: 'goose',
|
|
103
141
|
OPEN_WEBUI: 'open-webui',
|
|
104
142
|
GITHUB_COPILOT: 'github-copilot',
|
|
143
|
+
LANGGRAPH: 'langgraph',
|
|
144
|
+
/** Meta "Muse Code" — binary `muse`, model Muse Spark. Beta since 2026-08-05. */
|
|
145
|
+
MUSE_CODE: 'muse-code',
|
|
146
|
+
/** xAI Grok Build (binary `grok`, GA 2026-05, open-sourced 2026-07-15). */
|
|
147
|
+
GROK: 'grok',
|
|
148
|
+
/** OpenCode (the open-source terminal coding agent: npm `opencode-ai` 1.x,
|
|
149
|
+
* `@opencode/cli` 2.x). Gated by a generated plugin OpenCode loads into
|
|
150
|
+
* its own process — `.opencode/plugins/intutic-governance.js`, hook
|
|
151
|
+
* `tool.execute.before` (1.x) / `tool execute.before` (2.x), which throws
|
|
152
|
+
* to refuse — see `services/sync-daemon/src/harness/openCodeHooks.ts`. */
|
|
153
|
+
OPENCODE: 'opencode',
|
|
154
|
+
/** DeepSeek's "dsh" (binary `dsh`, `@deepseek-ai/dsh`). Developer preview
|
|
155
|
+
* since 2026-08-13; gated via a Cordis plugin (`@intutic/gate/dsh`), not a
|
|
156
|
+
* generated hook file — see gateRegistry.ts's `dsh` row. */
|
|
157
|
+
DEEPSEEK_HARNESS: 'dsh',
|
|
158
|
+
/**
|
|
159
|
+
* Spotify "Xirp" — macOS-only desktop orchestrator, beta since 2026-08-11.
|
|
160
|
+
* NOT itself an AI agent: it spawns already-installed CLI harnesses
|
|
161
|
+
* (Claude Code, Codex, Gemini CLI) each inside its own tmux session and
|
|
162
|
+
* `git worktree`, preserving each wrapped harness's native, unmodified
|
|
163
|
+
* config (per Xirp's own FAQ). Detected for reporting/reconciliation
|
|
164
|
+
* purposes only — see `tools/cli/src/harness/xirp.ts` and
|
|
165
|
+
* `gateRegistry.ts`'s NO_GATE row for why it writes no config of its own.
|
|
166
|
+
*/
|
|
167
|
+
XIRP: 'xirp',
|
|
168
|
+
/**
|
|
169
|
+
* DoorDash's "Agentic Orchestrator" (binary `agentico`, Go, Apache-2.0,
|
|
170
|
+
* `doordash-oss/agentic-orchestrator` — CONFIRMED real/public: live-verified
|
|
171
|
+
* by running the actual released binary, not just reading its README).
|
|
172
|
+
* Desktop app + CLI, cross-platform (macOS AND Linux — unlike Xirp's
|
|
173
|
+
* macOS-only beta). NOT itself an AI agent: it wraps already-installed CLI
|
|
174
|
+
* backends — Claude Code, Codex, and OpenCode (CONFIRMED via `agentico
|
|
175
|
+
* server --help`'s `--providers` flag) — each running a feature in its own
|
|
176
|
+
* `git worktree` under `~/.agentic-orchestrator/worktrees/` (CONFIRMED via
|
|
177
|
+
* the project's own README). Detected for reporting/reconciliation
|
|
178
|
+
* purposes only — see `tools/cli/src/harness/agenticOrchestrator.ts` and
|
|
179
|
+
* `gateRegistry.ts`'s NO_GATE row for why it writes no config of its own
|
|
180
|
+
* (`GateKind: 'delegated'`, same as Xirp).
|
|
181
|
+
*
|
|
182
|
+
* All three wrapped backends are themselves supported harnesses: Claude
|
|
183
|
+
* Code and Codex through their hook files, and OpenCode (since TD-397
|
|
184
|
+
* closed, 2026-09-23) through the plugin `openCodeHooks.ts` generates —
|
|
185
|
+
* the worktree propagation re-runs every backend's writer per worktree,
|
|
186
|
+
* so a feature run against any `--providers` value is governed.
|
|
187
|
+
*/
|
|
188
|
+
AGENTIC_ORCHESTRATOR: 'agentic-orchestrator',
|
|
189
|
+
// ─── Wave 1: Python-SDK-gated frameworks (no on-disk hook/config file) ───
|
|
190
|
+
// Same family as LANGGRAPH: the blocking gate ships in intutic-clawde
|
|
191
|
+
// (intutic_clawde.gate, python-raise contract), evaluated in-process before
|
|
192
|
+
// the tool body runs. This adapter writes .env.intutic (proxy base-URL vars
|
|
193
|
+
// only) — see gateRegistry.ts NO_GATE rows and harness/gateKind.ts.
|
|
194
|
+
/** LangChain — covers BOTH the Python (`langchain`/`langchain-core`) and
|
|
195
|
+
* JS/TS (`langchain` npm package) ecosystems for detection purposes, since
|
|
196
|
+
* the framework itself ships in both. This env-adapter (`langchain.ts`) is
|
|
197
|
+
* Python-only, matching intutic-clawde's `langchain.py` gate adapter; a
|
|
198
|
+
* JS/TS tool-call gate for LangChain.js is a `@intutic/gate` TypeScript
|
|
199
|
+
* package concern for a different phase, not this one. */
|
|
200
|
+
LANGCHAIN: 'langchain',
|
|
201
|
+
CREWAI: 'crewai',
|
|
202
|
+
/** Detected via any of autogen-agentchat / autogen-core / autogen-ext. */
|
|
203
|
+
AUTOGEN: 'autogen',
|
|
204
|
+
AG2: 'ag2',
|
|
205
|
+
GOOGLE_ADK: 'google-adk',
|
|
206
|
+
/** OpenAI Agents SDK — covers BOTH the Python (`openai-agents` on PyPI)
|
|
207
|
+
* and JS/TS (`@openai/agents` on npm) ecosystems, same dual-ecosystem
|
|
208
|
+
* pattern as LANGCHAIN above — but unlike LangChain, BOTH sides have a
|
|
209
|
+
* shipped gate: Python via `intutic_clawde.gate.adapters.openai_agents`
|
|
210
|
+
* (`intutic_tool_guardrail`), TypeScript via `@intutic/gate/openai`
|
|
211
|
+
* (packages/gate-js — tool input guardrails, `wrapAgent()` for
|
|
212
|
+
* mcpServers-derived tools, and the tracing-exporter DLP kill-switch).
|
|
213
|
+
* Detection (`tools/cli/src/harness/openaiAgents.ts`) matches Python
|
|
214
|
+
* manifests AND package.json `@openai/agents*` deps. */
|
|
215
|
+
OPENAI_AGENTS: 'openai-agents',
|
|
216
|
+
/** Detected via pydantic-ai / pydantic-ai-slim. */
|
|
217
|
+
PYDANTIC_AI: 'pydantic-ai',
|
|
218
|
+
SMOLAGENTS: 'smolagents',
|
|
219
|
+
/** AWS Strands Agents (`strands-agents` on PyPI — the default framework in
|
|
220
|
+
* Bedrock AgentCore's own quickstarts). Detected via `strands-agents` in
|
|
221
|
+
* Python dependency manifests. Gate: `intutic_clawde.gate.adapters.strands`'s
|
|
222
|
+
* `IntuticHookProvider`, built on Strands' documented
|
|
223
|
+
* `BeforeToolCallEvent.cancel_tool` veto (verified against a real
|
|
224
|
+
* strands-agents==1.52.0 install). NOTE: the framework's DEFAULT model
|
|
225
|
+
* provider (Bedrock, SigV4-signed via boto3) is NOT routable through the
|
|
226
|
+
* Intutic proxy — see apps/docs/integrations/strands.md. */
|
|
227
|
+
STRANDS: 'strands',
|
|
228
|
+
// ─── T2: JS/TS SDK-gated frameworks (no on-disk hook/config file) ───────
|
|
229
|
+
// Same family as LANGCHAIN/LANGGRAPH above, but JS/TS-native: the blocking
|
|
230
|
+
// gate ships in @intutic/gate (packages/gate-js), a subpath adapter per
|
|
231
|
+
// framework, evaluated in-process before the tool body runs. This
|
|
232
|
+
// env-adapter writes .env.intutic (proxy base-URL vars only — see
|
|
233
|
+
// gateRegistry.ts NO_GATE rows) — see also configWriter.ts's HARNESS_FILES.
|
|
234
|
+
/** Detected via `@mastra/core`/`mastra` in `package.json`. Gate:
|
|
235
|
+
* `@intutic/gate/mastra`'s `intuticHooks()` — see that module's doc for
|
|
236
|
+
* the per-call-hooks-override bypass this framework's own design imposes. */
|
|
237
|
+
MASTRA: 'mastra',
|
|
238
|
+
/** Detected via `ai` (v6+) plus any `@ai-sdk/*` package in `package.json`.
|
|
239
|
+
* Gate: `@intutic/gate/vercel`'s `intuticToolApproval()`. Unlike most
|
|
240
|
+
* harnesses here, this framework has NO env-var LLM-egress routing — see
|
|
241
|
+
* `@intutic/gate/vercel`'s `withIntuticProxy()` and its module doc. */
|
|
242
|
+
VERCEL_AI_SDK: 'vercel-ai-sdk',
|
|
243
|
+
/** Vercel's "eve" (npm `eve`, github.com/vercel/eve) — filesystem-first
|
|
244
|
+
* durable backend AI agents; an agent is an `agent/` directory eve builds
|
|
245
|
+
* by walking the tree. Pre-1.0 PREVIEW (0.39.x). Detected via `eve` in
|
|
246
|
+
* `package.json` PLUS the characteristic `agent/` directory (a compound
|
|
247
|
+
* check — either alone is too generic; see tools/cli/src/harness/eve.ts).
|
|
248
|
+
* Gate: `@intutic/gate/eve`'s `intuticApproval()` on eve's per-tool /
|
|
249
|
+
* per-connection `approval` policy surface — see gateRegistry.ts's `eve`
|
|
250
|
+
* row and TD-410 for the preview-churn shield. */
|
|
251
|
+
EVE: 'eve',
|
|
252
|
+
/**
|
|
253
|
+
* TrueFoundry's "TrueForge" (github.com/truefoundry/trueforge, MIT,
|
|
254
|
+
* TS/Node) — an open-source agent-runtime library. Same JS/TS SDK-gated
|
|
255
|
+
* family as MASTRA/VERCEL_AI_SDK/EVE above, but TrueForge ships in two
|
|
256
|
+
* structurally different deployment modes with different detection and
|
|
257
|
+
* different governance surfaces, so it gets two `HarnessType` rows rather
|
|
258
|
+
* than one (see TRUEFORGE_SERVER's own doc below for why one enum value
|
|
259
|
+
* can't answer `gateKindForHarness` two ways). THIS row
|
|
260
|
+
* covers only the EMBEDDED mode: another team's Node process importing
|
|
261
|
+
* `@truefoundry/trueforge-core` directly and driving its
|
|
262
|
+
* `SessionHandle`/`TurnHandle` API in-process. Detected via
|
|
263
|
+
* `@truefoundry/trueforge-core` in `package.json`. Gate:
|
|
264
|
+
* `@intutic/gate/trueforge`'s `intuticApprovalResponder()` — confirmed
|
|
265
|
+
* against the real published package (`@truefoundry/trueforge-core@0.1.4`)
|
|
266
|
+
* that there is NO synchronous in-process approval callback anywhere in
|
|
267
|
+
* it; the only approval mechanism, embedded or not, is the same
|
|
268
|
+
* `tool.approval_required` / `user.tool_approval` turn-and-event contract
|
|
269
|
+
* TrueForge's standalone server exposes over HTTP, so this adapter is
|
|
270
|
+
* shaped like the AI_SDK_HARNESS/AI_SDK_WORKFLOW "approval responder"
|
|
271
|
+
* family rather than MASTRA/VERCEL_AI_SDK's single-callback shape — see
|
|
272
|
+
* that module's doc for the full record.
|
|
273
|
+
*
|
|
274
|
+
* TrueForge run as its OWN standalone/hosted server (`npx
|
|
275
|
+
* @truefoundry/trueforge`, Docker Compose, or the Helm chart) is
|
|
276
|
+
* deliberately NOT covered by this row — nobody embeds an Intutic gate
|
|
277
|
+
* into a third-party OSS server process, so that deployment mode needs
|
|
278
|
+
* governance running in an external Intutic-operated bridge service. See
|
|
279
|
+
* TRUEFORGE_SERVER below.
|
|
280
|
+
*/
|
|
281
|
+
TRUEFORGE: 'trueforge',
|
|
282
|
+
// ─── A3: Vercel platform-agent runtimes (JS/TS SDK-gated, gate-js) ──────
|
|
283
|
+
// Same family as MASTRA/VERCEL_AI_SDK, but the tool-execution model
|
|
284
|
+
// differs enough to matter: harness tools run SERVER-SIDE in Vercel
|
|
285
|
+
// Sandbox microVMs (the laptop proxy never sees sandbox egress), and
|
|
286
|
+
// workflow tools run inside a DURABLE runtime that retries thrown errors
|
|
287
|
+
// (refusals must be FatalError-compatible). See each adapter's module doc.
|
|
288
|
+
/** Vercel `@ai-sdk/harness` (HarnessAgent — sandboxed coding-agent
|
|
289
|
+
* harnesses, e.g. `@ai-sdk/harness-claude-code`/`-grok-build`). Detected
|
|
290
|
+
* via `@ai-sdk/harness`, any `@ai-sdk/harness-*` adapter, or any
|
|
291
|
+
* `@ai-sdk/sandbox-*` provider in `package.json`. Gate:
|
|
292
|
+
* `@intutic/gate/harness`'s approval responder — the framework's
|
|
293
|
+
* `toolApproval` setting is a STATIC record without callback support, so
|
|
294
|
+
* per-call gating routes through the tool-approval flow; built-in sandbox
|
|
295
|
+
* tools are governed only by `permissionMode`, which DEFAULTS to
|
|
296
|
+
* 'allow-all'. See gateRegistry.ts's NO_GATE row and TD-415..417. */
|
|
297
|
+
AI_SDK_HARNESS: 'ai-sdk-harness',
|
|
298
|
+
/** Vercel `@ai-sdk/workflow` (WorkflowAgent — durable workflow agents on
|
|
299
|
+
* the Workflow DevKit). Detected via `@ai-sdk/workflow` in `package.json`
|
|
300
|
+
* (the unscoped `workflow` package alone is deliberately NOT a trigger —
|
|
301
|
+
* it is the durable runtime with no agent surface, and the bare name is
|
|
302
|
+
* too generic). Gate: `@intutic/gate/workflow`'s `intuticNeedsApproval()`
|
|
303
|
+
* on each tool — WorkflowAgent itself has zero approval fields; refusals
|
|
304
|
+
* are FatalError-compatible so the durable runtime aborts rather than
|
|
305
|
+
* retry-looping a governance denial. See gateRegistry.ts's NO_GATE row
|
|
306
|
+
* and TD-418..419. */
|
|
307
|
+
AI_SDK_WORKFLOW: 'ai-sdk-workflow',
|
|
308
|
+
// ─── B2: AWS Bedrock AgentCore ───────────────────────────────────────────
|
|
309
|
+
/**
|
|
310
|
+
* AWS Bedrock AgentCore **Runtime** (GA 2025-10) — a managed hosting
|
|
311
|
+
* environment for a customer's OWN agent code (any framework), NOT itself
|
|
312
|
+
* an agent framework. Detected via the `bedrock-agentcore` SDK (PyPI
|
|
313
|
+
* `bedrock-agentcore`, CONFIRMED at 1.22.0; npm `bedrock-agentcore`,
|
|
314
|
+
* CONFIRMED at 0.4.3 — both live-checked via `pip index versions`/`npm
|
|
315
|
+
* view` and by downloading and inspecting the real packages, not assumed)
|
|
316
|
+
* OR the local dev-loop config files the `agentcore` CLI (npm
|
|
317
|
+
* `@aws/agentcore`, CONFIRMED at 0.27.0) and the Python
|
|
318
|
+
* `bedrock-agentcore-starter-toolkit` (CONFIRMED at 0.3.11) write:
|
|
319
|
+
* `.bedrock_agentcore.yaml`, `agentcore/agentcore.json`, `aws-targets.json`
|
|
320
|
+
* — all three confirmed by extracting the real published tarballs/wheels
|
|
321
|
+
* and grepping their compiled/source output for the literal filenames.
|
|
322
|
+
*
|
|
323
|
+
* Classified `'delegated'` (see `gateKind.ts`), the SAME kind as XIRP and
|
|
324
|
+
* AGENTIC_ORCHESTRATOR, for an analogous but distinct reason: Runtime
|
|
325
|
+
* hosts the customer's chosen framework's code UNCHANGED, so a tool call
|
|
326
|
+
* made inside it is governed by whichever already-supported framework
|
|
327
|
+
* adapter that code uses (Strands, LangGraph, CrewAI, ...) — this
|
|
328
|
+
* adapter's own `writeConfig` is a no-op, same as Xirp/Agentic
|
|
329
|
+
* Orchestrator's. Unlike those two, Runtime does not SPAWN another
|
|
330
|
+
* already-installed CLI harness as a subprocess; it hosts a customer's
|
|
331
|
+
* framework-SDK code as the deployment target, so if that code uses no
|
|
332
|
+
* framework this registry supports (raw boto3, a hand-rolled tool loop),
|
|
333
|
+
* coverage is genuinely zero — the same honest gap AGENTIC_ORCHESTRATOR's
|
|
334
|
+
* OpenCode backend has (TD-397). Deployment-target constraints that are
|
|
335
|
+
* NOT a gate concern (environment-variable caps, VPC/NAT egress topology,
|
|
336
|
+
* SigV4 traffic not being proxyable) are documented in
|
|
337
|
+
* apps/docs/integrations/agentcore.md rather than encoded here.
|
|
338
|
+
*
|
|
339
|
+
* AgentCore **Gateway** (the MCP-tool-call interceptor path) deliberately
|
|
340
|
+
* has NO enum entry here — same precedent QM set (see TD-400): it is a
|
|
341
|
+
* deployed AWS resource (a Lambda attached to a Gateway), never something
|
|
342
|
+
* `intutic init`/`intutic connect` finds on a developer's laptop. Its
|
|
343
|
+
* coverage is the `tools/agentcore-interceptor` Lambda calling
|
|
344
|
+
* `POST /api/v1/integrations/agentcore/gateway-check` — see TD-430.
|
|
345
|
+
*
|
|
346
|
+
* AgentCore **Policy** (Cedar/"Dogwood") has NO third-party HTTP policy
|
|
347
|
+
* backend at all (confirmed against `GatewayPolicyEngineConfiguration`'s
|
|
348
|
+
* real API reference: `arn` only ever names an AWS-native
|
|
349
|
+
* `policy-engine/...` resource) — not integrable by design, not a gap.
|
|
350
|
+
*
|
|
351
|
+
* See apps/docs/integrations/agentcore.md and TD-430..432.
|
|
352
|
+
*/
|
|
353
|
+
AGENTCORE_RUNTIME: 'agentcore-runtime',
|
|
354
|
+
// ─── B3: TrueForge, standalone/hosted server (bridge-gated) ─────────────
|
|
355
|
+
/**
|
|
356
|
+
* TrueFoundry's "TrueForge" (github.com/truefoundry/trueforge, MIT,
|
|
357
|
+
* TS/Node), run as its OWN standalone/hosted server process — `npx
|
|
358
|
+
* @truefoundry/trueforge`, its Docker Compose stack, or its Helm chart —
|
|
359
|
+
* rather than embedded into another team's Node process (see TRUEFORGE
|
|
360
|
+
* above for that mode). Not detected by `intutic init`'s repo scan: there
|
|
361
|
+
* is no per-repo `package.json` dependency or config file to find, because
|
|
362
|
+
* this is an operator-configured DEPLOYMENT, not a library dependency of
|
|
363
|
+
* whatever repo `intutic init` happens to run against. An operator points
|
|
364
|
+
* `services/trueforge-bridge` at their running instance instead — see
|
|
365
|
+
* that service's README and `apps/docs/integrations/trueforge.md`'s
|
|
366
|
+
* server-mode section.
|
|
367
|
+
*
|
|
368
|
+
* Gate: classified `'bridge'` (see `gateKind.ts`), a shape distinct from
|
|
369
|
+
* every other row in this enum. TrueForge exposes exactly one tool-call
|
|
370
|
+
* governance surface, embedded or standalone alike (see TRUEFORGE's own
|
|
371
|
+
* doc for how this was confirmed against the real package): a turn pauses
|
|
372
|
+
* with a `tool.approval_required` event naming each pending call only as
|
|
373
|
+
* `{id, source_event_id}`, resolved by starting a NEW turn
|
|
374
|
+
* (`POST /{session_id}/turns`, `previous_turn_id` chained) carrying a
|
|
375
|
+
* `user.tool_approval` input item. Nobody embeds an Intutic gate into a
|
|
376
|
+
* third-party OSS server process, so unlike TRUEFORGE this mode cannot be
|
|
377
|
+
* `'sdk'` — there is no host process of ours to run in. It also is not
|
|
378
|
+
* `'hook'` (no on-disk file this deployment reads) or `'delegated'` (it
|
|
379
|
+
* does not wrap another already-gated harness). The gate instead runs OUT
|
|
380
|
+
* OF PROCESS, in `services/trueforge-bridge` — an Intutic-operated service
|
|
381
|
+
* that watches each session's turn/event stream (SSE subscribe, or
|
|
382
|
+
* `listTurnEventsRoute` polling as a fallback; there is no webhook —
|
|
383
|
+
* TrueForge never pushes anything to an external system), resolves a
|
|
384
|
+
* pending call's `source_event_id` back to the real tool name and
|
|
385
|
+
* arguments via the referenced `model.message` event, evaluates it through
|
|
386
|
+
* the same `packages/gate-js` machinery every other JS/TS-native row here
|
|
387
|
+
* uses (`soprules.ts`'s `ruleMatches` plus `POST /api/v1/hook-gate`), and
|
|
388
|
+
* answers with `{status:'allow'}` or `{status:'deny', reason}`.
|
|
389
|
+
*
|
|
390
|
+
* The load-bearing caveat, stated plainly rather than buried: whether a
|
|
391
|
+
* tool call ever emits `tool.approval_required` in the first place is
|
|
392
|
+
* controlled by each registered MCP server's own approval-tool-selector
|
|
393
|
+
* config (`McpServerApprovalToolSelector`: `"@all" | "@write" |
|
|
394
|
+
* "@destructive" | <tool name>`). A narrow/default selector means some
|
|
395
|
+
* tool calls never pause and are invisible to the bridge — this is
|
|
396
|
+
* TrueForge's own design, not something this gate kind can work around.
|
|
397
|
+
* See `apps/docs/reference/harness-security-matrix.md` row 42 and
|
|
398
|
+
* `apps/docs/integrations/trueforge.md`'s server-mode section for the full
|
|
399
|
+
* scoping statement, including how this Hook(A) trust shape — the gate
|
|
400
|
+
* co-resident in a wholly SEPARATE process reacting to a pull-only event
|
|
401
|
+
* stream — is weaker than every other Hook(A) mark in this catalog, all
|
|
402
|
+
* of which run co-resident with or embedded in the harness's own process.
|
|
403
|
+
*/
|
|
404
|
+
TRUEFORGE_SERVER: 'trueforge-server',
|
|
105
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* The real count of `HarnessType` members — one number, exported so no doc
|
|
408
|
+
* or README prose ever has to state it by hand again (Wave 8,
|
|
409
|
+
* audit-remediation). `check-harness-counts.js` (`lint:claims`) asserts
|
|
410
|
+
* every harness-count claim in `apps/docs/**` and `README.md` matches
|
|
411
|
+
* either this or `HARNESS_HEADLINE_COUNT` below, so this drifting out of
|
|
412
|
+
* sync with prose is now a lint failure, not a silent staleness.
|
|
413
|
+
*/
|
|
414
|
+
exports.HARNESS_COUNT = Object.keys(exports.HarnessType).length;
|
|
415
|
+
/**
|
|
416
|
+
* `HARNESS_COUNT` minus the harnesses with a confirmed, currently-open
|
|
417
|
+
* support gap — the number safe to use in headline/marketing copy
|
|
418
|
+
* ("works with N coding agents") without overclaiming. Each exclusion must
|
|
419
|
+
* be a harness with its own `docs/TECH_DEBT.md` entry describing a REAL,
|
|
420
|
+
* currently-unactionable gap (not a caveat, not a "documented, not a
|
|
421
|
+
* defect" note). The list is EMPTY since 2026-09-23 and the mechanism is
|
|
422
|
+
* kept so the next real gap goes here and nowhere else:
|
|
423
|
+
*
|
|
424
|
+
* - `agentic-orchestrator` was excluded under TD-397 while its OpenCode
|
|
425
|
+
* backend had no gate; OpenCode is a harness of its own now.
|
|
426
|
+
* - `autogen` was excluded under TD-374 while `InterventionHandler.on_send`
|
|
427
|
+
* was blind to `AssistantAgent`'s own tool calls; `IntuticWorkbench`
|
|
428
|
+
* (2026-09-22) governs them.
|
|
429
|
+
*
|
|
430
|
+
* Deliberately does NOT exclude `mastra` — TD-380 is explicitly marked
|
|
431
|
+
* "🟢 Documented, not a defect" in TECH_DEBT.md, a caveat about a call-site
|
|
432
|
+
* hook override, not a coverage gap, so excluding it here would be the
|
|
433
|
+
* exact overclaim-avoidance discipline applied backwards. Also does NOT
|
|
434
|
+
* exclude `continue` over its headless-mode limitation (`cn -p` skips
|
|
435
|
+
* PreToolUse hooks): that is a secondary invocation mode of a harness whose
|
|
436
|
+
* primary (interactive) path is fully covered, not a reason to undercount
|
|
437
|
+
* the harness itself.
|
|
438
|
+
*/
|
|
439
|
+
exports.HARNESS_HEADLINE_COUNT = exports.HARNESS_COUNT - [].length;
|
|
106
440
|
// ─── Execution Mode ──────────────────────────────────────────────────
|
|
107
441
|
// HLD §3.4 — Agent execution modes
|
|
108
442
|
/** Agent execution mode controlling autonomy level. */
|
|
@@ -131,6 +465,17 @@ exports.PlanLifecycleState = {
|
|
|
131
465
|
EXECUTING: 'EXECUTING',
|
|
132
466
|
COMPLETED: 'COMPLETED',
|
|
133
467
|
};
|
|
468
|
+
// ─── Plan Execution Outcome ──────────────────────────────────────────
|
|
469
|
+
// HLD §3.4.1 — result category recorded when a plan is closed
|
|
470
|
+
// (lifecycleState -> COMPLETED). Meaningful only in that state; null
|
|
471
|
+
// otherwise — a REJECTED plan never executed, so it has no outcome.
|
|
472
|
+
/** Result category for a closed (COMPLETED) stored plan. */
|
|
473
|
+
exports.PlanExecutionOutcome = {
|
|
474
|
+
SUCCESS: 'SUCCESS',
|
|
475
|
+
FAILED: 'FAILED',
|
|
476
|
+
PARTIAL: 'PARTIAL',
|
|
477
|
+
ABORTED: 'ABORTED',
|
|
478
|
+
};
|
|
134
479
|
// ─── SOP Lifecycle State ─────────────────────────────────────────────
|
|
135
480
|
// HLD §3.4, LLD #6 §4.2 — 7-state FSM: DRAFT → PENDING_REVIEW → GENERATED
|
|
136
481
|
// → HYPOTHESIZED → REFINED → VALIDATED → INVALIDATED
|
|
@@ -192,8 +537,10 @@ exports.WorkspaceRole = {
|
|
|
192
537
|
* - `open` (default): pass through the tool call + emit a warning event
|
|
193
538
|
* - `closed`: block the tool call with a user-visible error message
|
|
194
539
|
*
|
|
195
|
-
* Note: `closed` only affects harnesses with MCP proxy injection (
|
|
196
|
-
*
|
|
540
|
+
* Note: `closed` only affects harnesses with MCP proxy injection (9/20 —
|
|
541
|
+
* 10 config paths across 9 harnesses, see sync-daemon mcpAutoWrite.ts).
|
|
542
|
+
* For harnesses without MCP proxy injection (e.g. n8n, pi, codex,
|
|
543
|
+
* open-webui), see TD-151.
|
|
197
544
|
*/
|
|
198
545
|
exports.McpProxyFailBehavior = {
|
|
199
546
|
OPEN: 'open',
|
|
@@ -204,7 +551,8 @@ exports.McpProxyFailBehavior = {
|
|
|
204
551
|
* - `per-session` (default, Phase 4): new proxy process per MCP connection
|
|
205
552
|
* - `daemon` (Phase 5): long-lived daemon, per-session shims delegate via Unix socket
|
|
206
553
|
*
|
|
207
|
-
* See TD-153 — daemon requires macOS notarization.
|
|
554
|
+
* See TD-153 — daemon requires macOS notarization. Both modes are active: the
|
|
555
|
+
* mcp-proxy honours `daemon` by answering policy lookups over the daemon socket.
|
|
208
556
|
*/
|
|
209
557
|
exports.McpProxyMode = {
|
|
210
558
|
PER_SESSION: 'per-session',
|
|
@@ -237,4 +585,19 @@ exports.DriftDetectionMode = {
|
|
|
237
585
|
TURBOVEC: 'turbovec',
|
|
238
586
|
COMPLIANCE_SCORE_FALLBACK: 'compliance_score_fallback',
|
|
239
587
|
};
|
|
588
|
+
/**
|
|
589
|
+
* Migration 163: which of `sop_amendments`' three producers wrote a row.
|
|
590
|
+
* INCIDENT_MINING (`dreamCycleService.runDreamCycle`, `runId` prefixed
|
|
591
|
+
* `dcr_`) and METACLAW (`promptEvolutionService.runEvolutionCycle`, `runId`
|
|
592
|
+
* prefixed `mcr_`, has a matching `metaclaw_runs` row — the only source a
|
|
593
|
+
* clause diff is meaningful for) are both manually/dashboard-triggered.
|
|
594
|
+
* HEALTH_CRON (`sopHealthCron.ts`, `runId` NULL) is the only one currently
|
|
595
|
+
* on a schedule — its output was invisible to every UI before this column
|
|
596
|
+
* existed, since the sole proposals feed filtered `runId IS NOT NULL`.
|
|
597
|
+
*/
|
|
598
|
+
exports.AmendmentSource = {
|
|
599
|
+
INCIDENT_MINING: 'INCIDENT_MINING',
|
|
600
|
+
METACLAW: 'METACLAW',
|
|
601
|
+
HEALTH_CRON: 'HEALTH_CRON',
|
|
602
|
+
};
|
|
240
603
|
//# sourceMappingURL=enums.js.map
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH,wEAAwE;AACxE,uCAAuC;AAEvC,uEAAuE;AAC1D,QAAA,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE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|
@@ -13,6 +13,10 @@ export declare const E_NOT_FOUND: "E_NOT_FOUND";
|
|
|
13
13
|
export declare const E_CACHE_UNAVAILABLE: "E_CACHE_UNAVAILABLE";
|
|
14
14
|
/** Missing or invalid authentication credentials. */
|
|
15
15
|
export declare const E_UNAUTHORIZED: "E_UNAUTHORIZED";
|
|
16
|
+
/** SCIM bearer token missing, unknown, expired or revoked. */
|
|
17
|
+
export declare const E_SCIM_AUTH_FAILED: "SCIM_AUTH_FAILED";
|
|
18
|
+
/** SCIM create for a userName that already exists in the workspace. */
|
|
19
|
+
export declare const E_SCIM_DUPLICATE: "SCIM_DUPLICATE";
|
|
16
20
|
/** Authenticated but insufficient permissions. */
|
|
17
21
|
export declare const E_FORBIDDEN: "E_FORBIDDEN";
|
|
18
22
|
/** Budget limit exceeded — HLD §3.6 FinOps guardrail. */
|
|
@@ -54,6 +58,13 @@ export declare const E_TOKEN_INVALID: "TOKEN_INVALID";
|
|
|
54
58
|
export declare const E_TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
55
59
|
/** Resource is already in the target state. */
|
|
56
60
|
export declare const E_ALREADY_VERIFIED: "ALREADY_VERIFIED";
|
|
61
|
+
/**
|
|
62
|
+
* Org creation was attempted against a domain-verification that isn't in
|
|
63
|
+
* `verified` status — pending (DNS not seen yet), already consumed by a
|
|
64
|
+
* prior org, or expired. Distinct from E_TOKEN_INVALID/E_TOKEN_EXPIRED:
|
|
65
|
+
* the verification row itself may be perfectly valid, just not proven yet.
|
|
66
|
+
*/
|
|
67
|
+
export declare const E_DOMAIN_NOT_VERIFIED: "DOMAIN_NOT_VERIFIED";
|
|
57
68
|
/** Generic validation failure (legacy alias). */
|
|
58
69
|
export declare const E_VALIDATION: "E_VALIDATION";
|
|
59
70
|
/** SSO is not configured or disabled for this workspace. */
|
|
@@ -74,6 +85,14 @@ export declare const E_PROVIDER_IN_USE: "PROVIDER_IN_USE";
|
|
|
74
85
|
export declare const E_OFFBOARDING_IN_PROGRESS: "OFFBOARDING_IN_PROGRESS";
|
|
75
86
|
/** Feature is not available on the current plan tier. */
|
|
76
87
|
export declare const E_FEATURE_NOT_AVAILABLE: "FEATURE_NOT_AVAILABLE";
|
|
88
|
+
/**
|
|
89
|
+
* A session has no SSL graph, so there is nothing to audit it against.
|
|
90
|
+
*
|
|
91
|
+
* Distinct from "compliant" on purpose. The compliance report used to score an
|
|
92
|
+
* unseeded session 1.0 — a perfect result for a session that was never enforced —
|
|
93
|
+
* which made the unenforced sessions rank best in a workspace's audit history.
|
|
94
|
+
*/
|
|
95
|
+
export declare const E_SSL_NOT_ENFORCED: "SSL_NOT_ENFORCED";
|
|
77
96
|
/**
|
|
78
97
|
* Requested child capabilities are not a subset of the parent key's capabilities.
|
|
79
98
|
* HLD §5.6 — DCT Token Attenuation (Patent Family A).
|
|
@@ -92,7 +111,7 @@ export declare const E_OVERAGE_HARD_CAP_EXCEEDED: "OVERAGE_HARD_CAP_EXCEEDED";
|
|
|
92
111
|
* function handle(code: IntuticErrorCode) { ... }
|
|
93
112
|
* ```
|
|
94
113
|
*/
|
|
95
|
-
export type IntuticErrorCode = typeof E_NOT_FOUND | typeof E_CACHE_UNAVAILABLE | typeof E_UNAUTHORIZED | typeof E_FORBIDDEN | typeof E_BUDGET_EXCEEDED | typeof E_RATE_LIMITED | typeof E_APPEND_ONLY_VIOLATION | typeof E_APPROVAL_RATIONALE_REQUIRED | typeof E_VALIDATION_FAILED | typeof E_CHECKOUT_DISABLED | typeof E_SIGNUP_DISABLED | typeof E_ALREADY_ON_TIER | typeof E_STRIPE_ERROR | typeof E_SIGNATURE_INVALID | typeof E_TRIAL_EXPIRED | typeof E_EMAIL_ALREADY_EXISTS | typeof E_OAUTH_FAILED | typeof E_TOKEN_INVALID | typeof E_TOKEN_EXPIRED | typeof E_ALREADY_VERIFIED | typeof E_VALIDATION | typeof E_SSO_DISABLED | typeof E_SSO_NO_MEMBERSHIP | typeof E_OIDC_INVALID_STATE | typeof E_OIDC_TOKEN_EXCHANGE_FAILED | typeof E_OIDC_CLAIMS_MISSING | typeof E_PROVIDER_DISABLED | typeof E_PROVIDER_IN_USE | typeof E_OFFBOARDING_IN_PROGRESS | typeof E_FEATURE_NOT_AVAILABLE | typeof E_ATTENUATION_CAP_VIOLATION | typeof E_OVERAGE_HARD_CAP_EXCEEDED;
|
|
114
|
+
export type IntuticErrorCode = typeof E_NOT_FOUND | typeof E_CACHE_UNAVAILABLE | typeof E_UNAUTHORIZED | typeof E_SCIM_AUTH_FAILED | typeof E_SCIM_DUPLICATE | typeof E_FORBIDDEN | typeof E_BUDGET_EXCEEDED | typeof E_RATE_LIMITED | typeof E_APPEND_ONLY_VIOLATION | typeof E_APPROVAL_RATIONALE_REQUIRED | typeof E_VALIDATION_FAILED | typeof E_CHECKOUT_DISABLED | typeof E_SIGNUP_DISABLED | typeof E_DOMAIN_NOT_VERIFIED | typeof E_ALREADY_ON_TIER | typeof E_STRIPE_ERROR | typeof E_SIGNATURE_INVALID | typeof E_TRIAL_EXPIRED | typeof E_EMAIL_ALREADY_EXISTS | typeof E_OAUTH_FAILED | typeof E_TOKEN_INVALID | typeof E_TOKEN_EXPIRED | typeof E_ALREADY_VERIFIED | typeof E_VALIDATION | typeof E_SSO_DISABLED | typeof E_SSO_NO_MEMBERSHIP | typeof E_OIDC_INVALID_STATE | typeof E_OIDC_TOKEN_EXCHANGE_FAILED | typeof E_OIDC_CLAIMS_MISSING | typeof E_PROVIDER_DISABLED | typeof E_PROVIDER_IN_USE | typeof E_OFFBOARDING_IN_PROGRESS | typeof E_FEATURE_NOT_AVAILABLE | typeof E_SSL_NOT_ENFORCED | typeof E_ATTENUATION_CAP_VIOLATION | typeof E_OVERAGE_HARD_CAP_EXCEEDED;
|
|
96
115
|
/**
|
|
97
116
|
* Structured error class used across all Intutic services.
|
|
98
117
|
*
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],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AM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQpC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,YAAY,CAQhE"}
|
package/dist/errors.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.IntuticError = exports.E_OVERAGE_HARD_CAP_EXCEEDED = exports.E_ATTENUATION_CAP_VIOLATION = exports.E_FEATURE_NOT_AVAILABLE = exports.E_OFFBOARDING_IN_PROGRESS = exports.E_PROVIDER_IN_USE = exports.E_PROVIDER_DISABLED = exports.E_OIDC_CLAIMS_MISSING = exports.E_OIDC_TOKEN_EXCHANGE_FAILED = exports.E_OIDC_INVALID_STATE = exports.E_SSO_NO_MEMBERSHIP = exports.E_SSO_DISABLED = exports.E_VALIDATION = exports.E_ALREADY_VERIFIED = exports.E_TOKEN_EXPIRED = exports.E_TOKEN_INVALID = exports.E_OAUTH_FAILED = exports.E_EMAIL_ALREADY_EXISTS = exports.E_TRIAL_EXPIRED = exports.E_SIGNATURE_INVALID = exports.E_STRIPE_ERROR = exports.E_ALREADY_ON_TIER = exports.E_SIGNUP_DISABLED = exports.E_CHECKOUT_DISABLED = exports.E_VALIDATION_FAILED = exports.E_APPROVAL_RATIONALE_REQUIRED = exports.E_APPEND_ONLY_VIOLATION = exports.E_RATE_LIMITED = exports.E_BUDGET_EXCEEDED = exports.E_FORBIDDEN = exports.E_UNAUTHORIZED = exports.E_CACHE_UNAVAILABLE = exports.E_NOT_FOUND = void 0;
|
|
12
|
+
exports.IntuticError = exports.E_OVERAGE_HARD_CAP_EXCEEDED = exports.E_ATTENUATION_CAP_VIOLATION = exports.E_SSL_NOT_ENFORCED = exports.E_FEATURE_NOT_AVAILABLE = exports.E_OFFBOARDING_IN_PROGRESS = exports.E_PROVIDER_IN_USE = exports.E_PROVIDER_DISABLED = exports.E_OIDC_CLAIMS_MISSING = exports.E_OIDC_TOKEN_EXCHANGE_FAILED = exports.E_OIDC_INVALID_STATE = exports.E_SSO_NO_MEMBERSHIP = exports.E_SSO_DISABLED = exports.E_VALIDATION = exports.E_DOMAIN_NOT_VERIFIED = exports.E_ALREADY_VERIFIED = exports.E_TOKEN_EXPIRED = exports.E_TOKEN_INVALID = exports.E_OAUTH_FAILED = exports.E_EMAIL_ALREADY_EXISTS = exports.E_TRIAL_EXPIRED = exports.E_SIGNATURE_INVALID = exports.E_STRIPE_ERROR = exports.E_ALREADY_ON_TIER = exports.E_SIGNUP_DISABLED = exports.E_CHECKOUT_DISABLED = exports.E_VALIDATION_FAILED = exports.E_APPROVAL_RATIONALE_REQUIRED = exports.E_APPEND_ONLY_VIOLATION = exports.E_RATE_LIMITED = exports.E_BUDGET_EXCEEDED = exports.E_FORBIDDEN = exports.E_SCIM_DUPLICATE = exports.E_SCIM_AUTH_FAILED = exports.E_UNAUTHORIZED = exports.E_CACHE_UNAVAILABLE = exports.E_NOT_FOUND = void 0;
|
|
13
13
|
exports.isIntuticError = isIntuticError;
|
|
14
14
|
// ─── Error Code Constants ────────────────────────────────────────────
|
|
15
15
|
/** Resource not found. */
|
|
@@ -18,6 +18,10 @@ exports.E_NOT_FOUND = 'E_NOT_FOUND';
|
|
|
18
18
|
exports.E_CACHE_UNAVAILABLE = 'E_CACHE_UNAVAILABLE';
|
|
19
19
|
/** Missing or invalid authentication credentials. */
|
|
20
20
|
exports.E_UNAUTHORIZED = 'E_UNAUTHORIZED';
|
|
21
|
+
/** SCIM bearer token missing, unknown, expired or revoked. */
|
|
22
|
+
exports.E_SCIM_AUTH_FAILED = 'SCIM_AUTH_FAILED';
|
|
23
|
+
/** SCIM create for a userName that already exists in the workspace. */
|
|
24
|
+
exports.E_SCIM_DUPLICATE = 'SCIM_DUPLICATE';
|
|
21
25
|
/** Authenticated but insufficient permissions. */
|
|
22
26
|
exports.E_FORBIDDEN = 'E_FORBIDDEN';
|
|
23
27
|
/** Budget limit exceeded — HLD §3.6 FinOps guardrail. */
|
|
@@ -59,6 +63,13 @@ exports.E_TOKEN_INVALID = 'TOKEN_INVALID';
|
|
|
59
63
|
exports.E_TOKEN_EXPIRED = 'TOKEN_EXPIRED';
|
|
60
64
|
/** Resource is already in the target state. */
|
|
61
65
|
exports.E_ALREADY_VERIFIED = 'ALREADY_VERIFIED';
|
|
66
|
+
/**
|
|
67
|
+
* Org creation was attempted against a domain-verification that isn't in
|
|
68
|
+
* `verified` status — pending (DNS not seen yet), already consumed by a
|
|
69
|
+
* prior org, or expired. Distinct from E_TOKEN_INVALID/E_TOKEN_EXPIRED:
|
|
70
|
+
* the verification row itself may be perfectly valid, just not proven yet.
|
|
71
|
+
*/
|
|
72
|
+
exports.E_DOMAIN_NOT_VERIFIED = 'DOMAIN_NOT_VERIFIED';
|
|
62
73
|
/** Generic validation failure (legacy alias). */
|
|
63
74
|
exports.E_VALIDATION = 'E_VALIDATION';
|
|
64
75
|
// ─── Identity Federation Error Codes (LLD #11) ─────────────────────
|
|
@@ -80,6 +91,14 @@ exports.E_PROVIDER_IN_USE = 'PROVIDER_IN_USE';
|
|
|
80
91
|
exports.E_OFFBOARDING_IN_PROGRESS = 'OFFBOARDING_IN_PROGRESS';
|
|
81
92
|
/** Feature is not available on the current plan tier. */
|
|
82
93
|
exports.E_FEATURE_NOT_AVAILABLE = 'FEATURE_NOT_AVAILABLE';
|
|
94
|
+
/**
|
|
95
|
+
* A session has no SSL graph, so there is nothing to audit it against.
|
|
96
|
+
*
|
|
97
|
+
* Distinct from "compliant" on purpose. The compliance report used to score an
|
|
98
|
+
* unseeded session 1.0 — a perfect result for a session that was never enforced —
|
|
99
|
+
* which made the unenforced sessions rank best in a workspace's audit history.
|
|
100
|
+
*/
|
|
101
|
+
exports.E_SSL_NOT_ENFORCED = 'SSL_NOT_ENFORCED';
|
|
83
102
|
// ─── WS4 — Enterprise Identity & Compliance (LLD #19) ───────────────
|
|
84
103
|
/**
|
|
85
104
|
* Requested child capabilities are not a subset of the parent key's capabilities.
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AA6OH,wCAQC;AAnPD,wEAAwE;AAExE,0BAA0B;AACb,QAAA,WAAW,GAAG,aAAsB,CAAA;AAEjD,wDAAwD;AAC3C,QAAA,mBAAmB,GAAG,qBAA8B,CAAA;AAGjE,qDAAqD;AACxC,QAAA,cAAc,GAAG,gBAAyB,CAAA;AACvD,8DAA8D;AACjD,QAAA,kBAAkB,GAAG,kBAA2B,CAAA;AAC7D,uEAAuE;AAC1D,QAAA,gBAAgB,GAAG,gBAAyB,CAAA;AAEzD,kDAAkD;AACrC,QAAA,WAAW,GAAG,aAAsB,CAAA;AAEjD,yDAAyD;AAC5C,QAAA,iBAAiB,GAAG,mBAA4B,CAAA;AAE7D,mCAAmC;AACtB,QAAA,cAAc,GAAG,gBAAyB,CAAA;AAEvD,gFAAgF;AACnE,QAAA,uBAAuB,GAAG,yBAAkC,CAAA;AAEzE,sFAAsF;AACzE,QAAA,6BAA6B,GAAG,+BAAwC,CAAA;AAErF,oDAAoD;AACvC,QAAA,mBAAmB,GAAG,qBAA8B,CAAA;AAEjE,uDAAuD;AAC1C,QAAA,mBAAmB,GAAG,mBAA4B,CAAA;AAC/D;;;;;;;GAOG;AACU,QAAA,iBAAiB,GAAG,iBAA0B,CAAA;AAE3D,+CAA+C;AAClC,QAAA,iBAAiB,GAAG,iBAA0B,CAAA;AAE3D,wBAAwB;AACX,QAAA,cAAc,GAAG,cAAuB,CAAA;AAErD,2CAA2C;AAC9B,QAAA,mBAAmB,GAAG,mBAA4B,CAAA;AAE/D,wCAAwC;AAC3B,QAAA,eAAe,GAAG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