@artemiskit/sdk 0.4.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +25 -0
  3. package/dist/artemiskit.d.ts +5 -1
  4. package/dist/artemiskit.d.ts.map +1 -1
  5. package/dist/builders/index.js +66 -20
  6. package/dist/contracts/index.js +50 -4
  7. package/dist/guardian/action-validator.d.ts +1 -1
  8. package/dist/guardian/circuit-breaker.d.ts +1 -1
  9. package/dist/guardian/guardian.d.ts +5 -5
  10. package/dist/guardian/guardrails.d.ts +1 -1
  11. package/dist/guardian/index.d.ts +9 -9
  12. package/dist/guardian/intent-classifier.d.ts +1 -1
  13. package/dist/guardian/interceptor.d.ts +1 -1
  14. package/dist/guardian/policy.d.ts +1 -1
  15. package/dist/guardian/semantic-validator.d.ts +1 -1
  16. package/dist/index.d.ts +12 -10
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3192 -46894
  19. package/dist/matchers/core.d.ts +1 -1
  20. package/dist/matchers/index.d.ts +1 -1
  21. package/dist/matchers/index.js +60 -14
  22. package/dist/matchers/jest.d.ts +14 -14
  23. package/dist/matchers/jest.js +47 -1
  24. package/dist/matchers/vitest.d.ts +14 -14
  25. package/dist/matchers/vitest.js +47 -1
  26. package/dist/types-only.d.ts +7 -6
  27. package/dist/types-only.d.ts.map +1 -1
  28. package/dist/types-only.js +0 -1
  29. package/dist/types.d.ts +12 -1
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/utils/index.d.ts +1 -1
  32. package/dist/utils/index.js +58 -12
  33. package/dist/workflow.d.ts +4 -0
  34. package/dist/workflow.d.ts.map +1 -0
  35. package/package.json +18 -18
  36. package/src/__tests__/workflow.test.ts +244 -0
  37. package/src/artemiskit.ts +12 -0
  38. package/src/index.ts +49 -0
  39. package/src/types-only.ts +30 -0
  40. package/src/types.ts +16 -0
  41. package/src/workflow.ts +51 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @artemiskit/sdk
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add native controlled workflow execution for milestone 0.6.1. CLI workflow run/preflight and SDK
8
+ sessions share strict tool and permission enforcement, cumulative budgets, explicit tool-protocol
9
+ preflight, measured-usage states, bounded events, cancellation, and truthful cleanup evidence.
10
+ Run against detached simulated state or a disposable Docker filesystem with a fixed local image,
11
+ no host mounts or network, and no arbitrary command tool. Save bounded execution metadata separately
12
+ from explicitly requested sensitive state exports. Task verification remains unavailable until 0.6.2.
13
+
14
+ OpenAI and Ling workflow transports forward abort signals, disable automatic retries, and distinguish
15
+ missing or malformed token usage from explicitly measured zero. Preserve existing scenario APIs and
16
+ offline workflow validation. Package versions remain independent of the milestone label.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @artemiskit/core@0.6.1
22
+ - @artemiskit/redteam@0.3.9
23
+
24
+ ## 0.5.0
25
+
26
+ ### Minor Changes
27
+
28
+ - 2ca73a5: Introduce the 0.6.0 agent-workflow contract: strict versioned scenarios, twelve simulated tools,
29
+ provider-neutral single-turn targets, CLI authoring and offline validation, and public SDK exports.
30
+ Preserve OpenAI structured tool-call transcripts for continuation. Full workflow execution,
31
+ cumulative budgets, sandbox environments, scoring and recovery remain later milestones.
32
+
33
+ Publish Node-compatible library bundles and NodeNext-compatible TypeScript declarations, verified
34
+ with fresh tarball consumers on Node 24 and Bun 1.3. The CLI and Docker MCP server retain Bun entry
35
+ points. Package versions remain independent; the milestone release manifest records their mapping.
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [2ca73a5]
40
+ - @artemiskit/core@0.6.0
41
+ - @artemiskit/redteam@0.3.8
42
+
3
43
  ## 0.4.6
4
44
 
5
45
  ### Patch Changes
package/README.md CHANGED
@@ -48,6 +48,31 @@ console.log('All tests passed! ✅');
48
48
 
49
49
  ## API Reference
50
50
 
51
+ ### Controlled agent workflows
52
+
53
+ ```typescript
54
+ const session = await kit.createWorkflowSession({
55
+ workflow: './workflow.yaml',
56
+ providerConfig: { apiKey: process.env.OPENAI_API_KEY },
57
+ preflight: true,
58
+ });
59
+ const result = await session.run();
60
+ console.log(result.record); // bounded metadata; taskVerification is unavailable in 0.6.1
61
+ // session.cancel() stops new work and initiates bounded cleanup.
62
+ // result.state and result.transcript contain sensitive working data.
63
+ ```
64
+
65
+ `kit.runWorkflow(options)` creates and runs a fresh session in one call. Supply a `client` or
66
+ `target` to use an existing trusted adapter or target. The same native controls apply through the
67
+ CLI and SDK: declared tools and permissions, cumulative budgets, explicit preflight, cancellation,
68
+ and cleanup evidence. Workflows use fresh simulated state or a disposable Docker filesystem.
69
+ Independent task scoring follows in 0.6.2; normal execution does not establish a task pass.
70
+
71
+ The root and `/types` entry points expose workflow result/session/event types. Low-level
72
+ `createAgentWorkflowSession` and `runAgentWorkflow` are available for explicit target composition.
73
+ See the [execution guide](https://github.com/code-sensei/artemiskit/blob/main/docs/workflow-execution.md)
74
+ for configuration, Docker requirements, token-accounting limits, events, and safe persistence.
75
+
51
76
  ### ArtemisKit Class
52
77
 
53
78
  #### Constructor
@@ -2,7 +2,7 @@
2
2
  * @artemiskit/sdk
3
3
  * Main ArtemisKit class - programmatic API for LLM testing
4
4
  */
5
- import type { ArtemisKitConfig, ArtemisKitEventName, ArtemisKitEvents, CaseCompleteHandler, CaseStartHandler, CompareOptions, CompareResult, ProgressHandler, RedTeamMutationCompleteHandler, RedTeamMutationStartHandler, RedTeamOptions, RedTeamResult, RunOptions, RunResult, StressOptions, StressRequestCompleteHandler, StressResult, ValidateOptions, ValidationResult } from './types';
5
+ import type { ArtemisKitConfig, ArtemisKitEventName, ArtemisKitEvents, CaseCompleteHandler, CaseStartHandler, CompareOptions, CompareResult, ProgressHandler, RedTeamMutationCompleteHandler, RedTeamMutationStartHandler, RedTeamOptions, RedTeamResult, RunOptions, RunResult, StressOptions, StressRequestCompleteHandler, StressResult, ValidateOptions, ValidationResult, WorkflowRunOptions } from './types.js';
6
6
  /**
7
7
  * ArtemisKit SDK - programmatic API for LLM evaluation testing
8
8
  *
@@ -25,6 +25,10 @@ export declare class ArtemisKit {
25
25
  private eventHandlers;
26
26
  private storage;
27
27
  constructor(config?: ArtemisKitConfig);
28
+ /** Create a cancellable native session without executing model turns or persisting results. */
29
+ createWorkflowSession(options: WorkflowRunOptions): Promise<import("@artemiskit/core").AgentWorkflowSession>;
30
+ /** Execute a workflow; task verification is explicitly unavailable until outcome scoring. */
31
+ runWorkflow(options: WorkflowRunOptions): Promise<import("@artemiskit/core").AgentWorkflowResult>;
28
32
  /**
29
33
  * Register an event handler
30
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"artemiskit.d.ts","sourceRoot":"","sources":["../src/artemiskit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,eAAe,EACf,8BAA8B,EAC9B,2BAA2B,EAC3B,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,aAAa,EACb,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAsBjB;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,aAAa,CAA6D;IAClF,OAAO,CAAC,OAAO,CAA+B;gBAElC,MAAM,GAAE,gBAAqB;IAuBzC;;OAEG;IACH,EAAE,CAAC,CAAC,SAAS,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI;IAQhG;;OAEG;IACH,GAAG,CAAC,CAAC,SAAS,mBAAmB,EAC/B,KAAK,EAAE,CAAC,E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// @bun
1
+ import { createRequire } from "node:module";
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
12
+ var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
20
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
21
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ for (let key of __getOwnPropNames(mod))
23
+ if (!__hasOwnProp.call(to, key))
24
+ __defProp(to, key, {
25
+ get: __accessProp.bind(mod, key),
26
+ enumerable: true
27
+ });
28
+ if (canCache)
29
+ cache.set(mod, to);
30
+ return to;
31
+ };
32
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, {
40
+ get: all[name],
41
+ enumerable: true,
42
+ configurable: true,
43
+ set: __exportSetter.bind(all, name)
44
+ });
45
+ };
46
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
+
2
48
  // src/builders/index.ts
3
49
  class TestCaseBuilder {
4
50
  _id;
@@ -331,24 +377,24 @@ function anyOf(...expectations) {
331
377
  return { type: "combined", operator: "or", expectations };
332
378
  }
333
379
  export {
334
- ScenarioBuilder,
335
- TestCaseBuilder,
336
- allOf,
337
- anyOf,
338
- contains,
339
- containsCase,
340
- exact,
341
- exactCase,
342
- fuzzy,
343
- gradedCase,
344
- inline,
345
- jsonCase,
346
- jsonSchema,
347
- llmGrade,
348
- notContains,
349
- regex,
350
- regexCase,
351
- scenario,
380
+ testCase,
352
381
  similarity,
353
- testCase
382
+ scenario,
383
+ regexCase,
384
+ regex,
385
+ notContains,
386
+ llmGrade,
387
+ jsonSchema,
388
+ jsonCase,
389
+ inline,
390
+ gradedCase,
391
+ fuzzy,
392
+ exactCase,
393
+ exact,
394
+ containsCase,
395
+ contains,
396
+ anyOf,
397
+ allOf,
398
+ TestCaseBuilder,
399
+ ScenarioBuilder
354
400
  };
@@ -1,4 +1,50 @@
1
- // @bun
1
+ import { createRequire } from "node:module";
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
12
+ var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
20
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
21
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ for (let key of __getOwnPropNames(mod))
23
+ if (!__hasOwnProp.call(to, key))
24
+ __defProp(to, key, {
25
+ get: __accessProp.bind(mod, key),
26
+ enumerable: true
27
+ });
28
+ if (canCache)
29
+ cache.set(mod, to);
30
+ return to;
31
+ };
32
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, {
40
+ get: all[name],
41
+ enumerable: true,
42
+ configurable: true,
43
+ set: __exportSetter.bind(all, name)
44
+ });
45
+ };
46
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
+
2
48
  // src/contracts/index.ts
3
49
  function defineAdapter(adapter) {
4
50
  if (!adapter.provider) {
@@ -46,8 +92,8 @@ function definePlugin(plugin) {
46
92
  return plugin;
47
93
  }
48
94
  export {
49
- defineAdapter,
50
- defineEvaluator,
95
+ defineStorage,
51
96
  definePlugin,
52
- defineStorage
97
+ defineEvaluator,
98
+ defineAdapter
53
99
  };
@@ -4,7 +4,7 @@
4
4
  * Validates tool/function calls before execution.
5
5
  * Ensures agents only perform allowed actions with valid parameters.
6
6
  */
7
- import type { ActionDefinition, GuardrailResult, InterceptedToolCall, Violation, ViolationSeverity } from './types';
7
+ import type { ActionDefinition, GuardrailResult, InterceptedToolCall, Violation, ViolationSeverity } from './types.js';
8
8
  /**
9
9
  * Action validation result
10
10
  */
@@ -4,7 +4,7 @@
4
4
  * Implements the circuit breaker pattern to protect against repeated failures
5
5
  * and provides comprehensive metrics tracking for guardian operations.
6
6
  */
7
- import type { CircuitBreakerConfig, CircuitBreakerState, GuardianMetrics, Violation } from './types';
7
+ import type { CircuitBreakerConfig, CircuitBreakerState, GuardianMetrics, Violation } from './types.js';
8
8
  /**
9
9
  * Circuit breaker event types
10
10
  */
@@ -11,10 +11,10 @@
11
11
  * - Metrics collection
12
12
  */
13
13
  import type { ModelClient } from '@artemiskit/core';
14
- import { RateLimiter } from './circuit-breaker';
15
- import { type GuardrailsConfig } from './guardrails';
16
- import { GuardianBlockedError, GuardianInterceptor, type GuardrailFn } from './interceptor';
17
- import type { ActionDefinition, ContentValidationConfig, GuardianEventHandler, GuardianMetrics, GuardianMode, GuardianModeCanonical, GuardianPolicy, MultiTurnConfig, Violation } from './types';
14
+ import { RateLimiter } from './circuit-breaker.js';
15
+ import { type GuardrailsConfig } from './guardrails.js';
16
+ import { GuardianBlockedError, GuardianInterceptor, type GuardrailFn } from './interceptor.js';
17
+ import type { ActionDefinition, ContentValidationConfig, GuardianEventHandler, GuardianMetrics, GuardianMode, GuardianModeCanonical, GuardianPolicy, MultiTurnConfig, Violation } from './types.js';
18
18
  /**
19
19
  * Normalize Guardian mode to canonical form with deprecation warning
20
20
  * @param mode - The mode to normalize
@@ -113,7 +113,7 @@ export declare class Guardian {
113
113
  /**
114
114
  * Classify intent of a message
115
115
  */
116
- classifyIntent(text: string): Promise<import("./types").IntentClassification[]>;
116
+ classifyIntent(text: string): Promise<import("./types.js").IntentClassification[]>;
117
117
  /**
118
118
  * Validate input content
119
119
  */
@@ -7,7 +7,7 @@
7
7
  * - Content filtering
8
8
  * - Custom validation rules
9
9
  */
10
- import type { ContentCategory, ContentFilterResult, GuardrailResult, InjectionDetection, PIIDetection, PIIType, PatternCategory, PatternConfig, ViolationSeverity } from './types';
10
+ import type { ContentCategory, ContentFilterResult, GuardrailResult, InjectionDetection, PIIDetection, PIIType, PatternCategory, PatternConfig, ViolationSeverity } from './types.js';
11
11
  /**
12
12
  * Options for custom pattern matching
13
13
  */
@@ -23,13 +23,13 @@
23
23
  * }
24
24
  * ```
25
25
  */
26
- export { Guardian, createGuardian, normalizeGuardianMode, type GuardianConfig } from './guardian';
27
- export { SemanticValidator, createSemanticValidator } from './semantic-validator';
28
- export { GuardianInterceptor, GuardianBlockedError, createInterceptor, type InterceptorConfig, type InterceptorStats, type GuardrailFn, } from './interceptor';
29
- export { ActionValidator, createDefaultActionValidator, type ActionValidatorConfig, type ActionValidationResult, } from './action-validator';
30
- export { IntentClassifier, createIntentClassifier, type IntentClassifierConfig, type IntentCategory, } from './intent-classifier';
31
- export { detectInjection, createInjectionGuardrail, detectPII, createPIIGuardrail, filterContent, createContentFilterGuardrail, createGuardrails, matchPattern, createCustomPatternGuardrail, type GuardrailsConfig, type CustomPatternOptions, } from './guardrails';
32
- export { loadPolicy, parsePolicy, validatePolicy, createDefaultPolicy, mergePolicies, getRulesByType, isRuleEnabled, generatePolicyTemplate, PolicyLoadError, PolicyValidationError, } from './policy';
33
- export { CircuitBreaker, MetricsCollector, RateLimiter, type CircuitBreakerEvent, type CircuitBreakerEventHandler, type RateLimiterConfig, } from './circuit-breaker';
34
- export type { GuardianMode, ViolationSeverity, ViolationAction, GuardrailType, Violation, GuardrailResult, PolicyRule, PolicyCondition, GuardianPolicy, CircuitBreakerConfig, RateLimitConfig, CostLimitConfig, ActionDefinition, ActionParameter, ParameterValidation, IntentClassification, PIIDetection, PIIType, PIILocation, InjectionDetection, InjectionType, ContentFilterResult, ContentFlag, ContentCategory, HallucinationCheckResult, Citation, UnsupportedClaim, GuardianMetrics, CircuitBreakerState, CostTracking, GuardianEventType, GuardianEvent, GuardianEventHandler, InterceptedRequest, InterceptedResponse, InterceptedToolCall, InterceptedAgentStep, FrameworkType, FrameworkIntegrationConfig, GuardianModeCanonical, GuardianModeLegacy, GuardianModeAll, ContentValidationConfig, PatternConfig, ValidationCategory, PatternCategory, SemanticValidationResult, SessionStorageType, SessionStorageConfig, SessionMessage, SessionMetrics, ConversationSession, TrustBuildingHeuristicConfig, EscalationHeuristicConfig, ContextManipulationHeuristicConfig, SplitPayloadHeuristicConfig, MultiTurnHeuristics, MultiTurnSemanticConfig, MultiTurnConfig, HeuristicResult, HeuristicResults, MultiTurnValidationResult, ValidateMessageOptions, } from './types';
26
+ export { Guardian, createGuardian, normalizeGuardianMode, type GuardianConfig } from './guardian.js';
27
+ export { SemanticValidator, createSemanticValidator } from './semantic-validator.js';
28
+ export { GuardianInterceptor, GuardianBlockedError, createInterceptor, type InterceptorConfig, type InterceptorStats, type GuardrailFn, } from './interceptor.js';
29
+ export { ActionValidator, createDefaultActionValidator, type ActionValidatorConfig, type ActionValidationResult, } from './action-validator.js';
30
+ export { IntentClassifier, createIntentClassifier, type IntentClassifierConfig, type IntentCategory, } from './intent-classifier.js';
31
+ export { detectInjection, createInjectionGuardrail, detectPII, createPIIGuardrail, filterContent, createContentFilterGuardrail, createGuardrails, matchPattern, createCustomPatternGuardrail, type GuardrailsConfig, type CustomPatternOptions, } from './guardrails.js';
32
+ export { loadPolicy, parsePolicy, validatePolicy, createDefaultPolicy, mergePolicies, getRulesByType, isRuleEnabled, generatePolicyTemplate, PolicyLoadError, PolicyValidationError, } from './policy.js';
33
+ export { CircuitBreaker, MetricsCollector, RateLimiter, type CircuitBreakerEvent, type CircuitBreakerEventHandler, type RateLimiterConfig, } from './circuit-breaker.js';
34
+ export type { GuardianMode, ViolationSeverity, ViolationAction, GuardrailType, Violation, GuardrailResult, PolicyRule, PolicyCondition, GuardianPolicy, CircuitBreakerConfig, RateLimitConfig, CostLimitConfig, ActionDefinition, ActionParameter, ParameterValidation, IntentClassification, PIIDetection, PIIType, PIILocation, InjectionDetection, InjectionType, ContentFilterResult, ContentFlag, ContentCategory, HallucinationCheckResult, Citation, UnsupportedClaim, GuardianMetrics, CircuitBreakerState, CostTracking, GuardianEventType, GuardianEvent, GuardianEventHandler, InterceptedRequest, InterceptedResponse, InterceptedToolCall, InterceptedAgentStep, FrameworkType, FrameworkIntegrationConfig, GuardianModeCanonical, GuardianModeLegacy, GuardianModeAll, ContentValidationConfig, PatternConfig, ValidationCategory, PatternCategory, SemanticValidationResult, SessionStorageType, SessionStorageConfig, SessionMessage, SessionMetrics, ConversationSession, TrustBuildingHeuristicConfig, EscalationHeuristicConfig, ContextManipulationHeuristicConfig, SplitPayloadHeuristicConfig, MultiTurnHeuristics, MultiTurnSemanticConfig, MultiTurnConfig, HeuristicResult, HeuristicResults, MultiTurnValidationResult, ValidateMessageOptions, } from './types.js';
35
35
  //# sourceMappingURL=index.d.ts.map
@@ -6,7 +6,7 @@
6
6
  * classification to detect potentially risky intents.
7
7
  */
8
8
  import type { ModelClient } from '@artemiskit/core';
9
- import type { GuardrailResult, IntentClassification, ViolationSeverity } from './types';
9
+ import type { GuardrailResult, IntentClassification, ViolationSeverity } from './types.js';
10
10
  /**
11
11
  * Intent category definition
12
12
  */
@@ -5,7 +5,7 @@
5
5
  * Acts as middleware between the agent and the LLM.
6
6
  */
7
7
  import type { GenerateOptions, GenerateResult, ModelClient } from '@artemiskit/core';
8
- import type { GuardianEventHandler, GuardrailResult, InterceptedRequest, Violation } from './types';
8
+ import type { GuardianEventHandler, GuardrailResult, InterceptedRequest, Violation } from './types.js';
9
9
  /**
10
10
  * Guardrail function signature
11
11
  */
@@ -4,7 +4,7 @@
4
4
  * Loads and validates guardian policies from YAML files.
5
5
  * Policies define the guardrails, rules, and configurations for the guardian.
6
6
  */
7
- import type { GuardianPolicy, GuardrailType, PolicyRule } from './types';
7
+ import type { GuardianPolicy, GuardrailType, PolicyRule } from './types.js';
8
8
  /**
9
9
  * Load a guardian policy from a YAML file
10
10
  */
@@ -6,7 +6,7 @@
6
6
  * to identify threats that regex patterns might miss.
7
7
  */
8
8
  import type { ModelClient } from '@artemiskit/core';
9
- import type { ContentValidationConfig, GuardrailResult, SemanticValidationResult } from './types';
9
+ import type { ContentValidationConfig, GuardrailResult, SemanticValidationResult } from './types.js';
10
10
  /**
11
11
  * SemanticValidator - LLM-based content validation
12
12
  */
package/dist/index.d.ts CHANGED
@@ -2,8 +2,10 @@
2
2
  * @artemiskit/sdk
3
3
  * Programmatic SDK for ArtemisKit LLM evaluation toolkit
4
4
  */
5
- export { ArtemisKit } from './artemiskit';
6
- export type { ArtemisKitConfig, RunOptions, RedTeamOptions, StressOptions, RunResult, RedTeamResult, StressResult, CaseStartEvent, CaseCompleteEvent, ProgressEvent, RedTeamMutationStartEvent, RedTeamMutationCompleteEvent, StressRequestCompleteEvent, CaseStartHandler, CaseCompleteHandler, ProgressHandler, RedTeamMutationStartHandler, RedTeamMutationCompleteHandler, StressRequestCompleteHandler, ArtemisKitEvents, ArtemisKitEventName, ValidateOptions, ValidationResult, ValidationError, ValidationWarning, ScenarioValidation, CompareOptions, CompareResult, RunSummary, ComparisonDetails, } from './types';
5
+ export { ArtemisKit } from './artemiskit.js';
6
+ export { AgentWorkflowSchema, WorkflowPolicySchema, WORKFLOW_TOOL_IDS, validateAgentWorkflow, parseAgentWorkflow, loadAgentWorkflow, listWorkflowTools, getWorkflowTool, executeSimulatedTool, createModelClientTarget, createAgentWorkflowSession, runAgentWorkflow, createSimulatedWorkflowEnvironment, createDockerWorkflowEnvironment, createDockerWorkflowEnvironmentFactory, WORKFLOW_SANDBOX_IMAGE, WorkflowEnvironmentInitializationError, } from '@artemiskit/core';
7
+ export type { AgentWorkflow, WorkflowPolicy, WorkflowJson, WorkflowToolId, WorkflowResource, WorkflowToolDescriptor, SimulatedToolEvidence, SimulatedToolResult, AgentTarget, AgentTurnRequest, AgentTurnResult, AgentTargetCapabilities, AgentTargetFailure, AgentWorkflowExecution, AgentWorkflowReason, AgentWorkflowEvent, AgentWorkflowRecord, AgentWorkflowResult, AgentWorkflowSessionOptions, AgentWorkflowSession, WorkflowState, WorkflowEnvironment, WorkflowEnvironmentFactory, WorkflowEnvironmentCleanup, DockerWorkflowEnvironmentOptions, } from '@artemiskit/core';
8
+ export type { ArtemisKitConfig, WorkflowRunOptions, RunOptions, RedTeamOptions, StressOptions, RunResult, RedTeamResult, StressResult, CaseStartEvent, CaseCompleteEvent, ProgressEvent, RedTeamMutationStartEvent, RedTeamMutationCompleteEvent, StressRequestCompleteEvent, CaseStartHandler, CaseCompleteHandler, ProgressHandler, RedTeamMutationStartHandler, RedTeamMutationCompleteHandler, StressRequestCompleteHandler, ArtemisKitEvents, ArtemisKitEventName, ValidateOptions, ValidationResult, ValidationError, ValidationWarning, ScenarioValidation, CompareOptions, CompareResult, RunSummary, ComparisonDetails, } from './types.js';
7
9
  export type { Scenario, TestCase, Expected, Provider, ProviderConfig, ChatMessageType, Variables, } from '@artemiskit/core';
8
10
  export type { CaseResult, CaseRedactionInfo, RunManifest, RunConfig, RunMetrics, RedTeamManifest, RedTeamConfig, RedTeamMetrics, RedTeamCaseResult, RedTeamStatus, RedTeamSeverity, StressManifest, StressConfig, StressMetrics, StressRequestResult, AnyManifest, ResolvedConfig, ConfigSource, ManifestRedactionInfo, CostEstimateInfo, GitInfo, ProvenanceInfo, } from '@artemiskit/core';
9
11
  export type { ModelClient, ModelCapabilities, GenerateOptions, GenerateResult, TokenUsage, ChatMessage, FunctionDefinition, ToolDefinition, ToolCall, AdapterConfig, BaseAdapterConfig, OpenAIAdapterConfig, AzureOpenAIAdapterConfig, VercelAIAdapterConfig, AnthropicAdapterConfig, LangChainAdapterConfig, DeepAgentsAdapterConfig, ProviderType, } from '@artemiskit/core';
@@ -12,12 +14,12 @@ export type { StorageAdapter, StorageConfig, RunListItem, ListOptions, Compariso
12
14
  export type { RedactionConfig } from '@artemiskit/core';
13
15
  export { isRunManifest, isRedTeamManifest, isStressManifest } from '@artemiskit/core';
14
16
  export type { Severity, SeverityInfo, CvssScore } from '@artemiskit/redteam';
15
- export { artemiskitMatchers, type ArtemisKitMatchers, type MatcherResult } from './matchers';
16
- export { isRunResult, isRedTeamResult, isStressResult, isRunManifestType, isRedTeamManifestType, isStressManifestType, assertDefined, assert, getFailedCases, getPassedCases, getCasesByTag, calculateSuccessRate, } from './utils';
17
- export type { ProviderName, ExpectationType, AnyResult, ExtractRunCases, ExtractRedTeamCases, ExtractStressResults, ExtractManifest, DeepPartial, PartialScenario, RequireFields, OptionalFields, StrictAdapterConfig, } from './utils';
18
- export { defineAdapter, defineEvaluator, defineStorage, definePlugin, } from './contracts';
19
- export type { AdapterContract, EvaluatorContract, StorageContract, AdapterFactory, EvaluatorFactory, StorageFactory, ArtemisKitPlugin, } from './contracts';
20
- export { ScenarioBuilder, TestCaseBuilder, scenario, testCase, containsCase, exactCase, regexCase, jsonCase, gradedCase, exact, contains, notContains, regex, fuzzy, jsonSchema, llmGrade, similarity, inline, allOf, anyOf, } from './builders';
21
- export { Guardian, createGuardian, normalizeGuardianMode, SemanticValidator, createSemanticValidator, GuardianInterceptor, GuardianBlockedError, createInterceptor, ActionValidator, createDefaultActionValidator, IntentClassifier, createIntentClassifier, detectInjection, createInjectionGuardrail, detectPII, createPIIGuardrail, filterContent, createContentFilterGuardrail, createGuardrails, matchPattern, createCustomPatternGuardrail, loadPolicy, parsePolicy, validatePolicy, createDefaultPolicy, mergePolicies, generatePolicyTemplate, PolicyLoadError, PolicyValidationError, CircuitBreaker, MetricsCollector, RateLimiter, } from './guardian';
22
- export type { GuardianConfig, InterceptorConfig, ActionValidatorConfig, IntentClassifierConfig, GuardrailsConfig, RateLimiterConfig, CustomPatternOptions, GuardianMode, ViolationSeverity, ViolationAction, GuardrailType, Violation, GuardrailResult, PolicyRule, PolicyCondition, GuardianPolicy, CircuitBreakerConfig, RateLimitConfig, CostLimitConfig, ActionDefinition, ActionParameter, ParameterValidation, IntentClassification, IntentCategory, PIIDetection, PIIType, PIILocation, InjectionDetection, InjectionType, ContentFilterResult, ContentFlag, ContentCategory, GuardianMetrics, CircuitBreakerState, CostTracking, GuardianEventType, GuardianEvent, GuardianEventHandler, InterceptedRequest, InterceptedResponse, InterceptedToolCall, InterceptedAgentStep, FrameworkType, FrameworkIntegrationConfig, GuardianModeCanonical, GuardianModeLegacy, GuardianModeAll, ContentValidationConfig, PatternConfig, ValidationCategory, PatternCategory, SemanticValidationResult, SessionStorageType, SessionStorageConfig, SessionMessage, SessionMetrics, ConversationSession, TrustBuildingHeuristicConfig, EscalationHeuristicConfig, ContextManipulationHeuristicConfig, SplitPayloadHeuristicConfig, MultiTurnHeuristics, MultiTurnSemanticConfig, MultiTurnConfig, HeuristicResult, HeuristicResults, MultiTurnValidationResult, ValidateMessageOptions, } from './guardian';
17
+ export { artemiskitMatchers, type ArtemisKitMatchers, type MatcherResult } from './matchers/index.js';
18
+ export { isRunResult, isRedTeamResult, isStressResult, isRunManifestType, isRedTeamManifestType, isStressManifestType, assertDefined, assert, getFailedCases, getPassedCases, getCasesByTag, calculateSuccessRate, } from './utils/index.js';
19
+ export type { ProviderName, ExpectationType, AnyResult, ExtractRunCases, ExtractRedTeamCases, ExtractStressResults, ExtractManifest, DeepPartial, PartialScenario, RequireFields, OptionalFields, StrictAdapterConfig, } from './utils/index.js';
20
+ export { defineAdapter, defineEvaluator, defineStorage, definePlugin, } from './contracts/index.js';
21
+ export type { AdapterContract, EvaluatorContract, StorageContract, AdapterFactory, EvaluatorFactory, StorageFactory, ArtemisKitPlugin, } from './contracts/index.js';
22
+ export { ScenarioBuilder, TestCaseBuilder, scenario, testCase, containsCase, exactCase, regexCase, jsonCase, gradedCase, exact, contains, notContains, regex, fuzzy, jsonSchema, llmGrade, similarity, inline, allOf, anyOf, } from './builders/index.js';
23
+ export { Guardian, createGuardian, normalizeGuardianMode, SemanticValidator, createSemanticValidator, GuardianInterceptor, GuardianBlockedError, createInterceptor, ActionValidator, createDefaultActionValidator, IntentClassifier, createIntentClassifier, detectInjection, createInjectionGuardrail, detectPII, createPIIGuardrail, filterContent, createContentFilterGuardrail, createGuardrails, matchPattern, createCustomPatternGuardrail, loadPolicy, parsePolicy, validatePolicy, createDefaultPolicy, mergePolicies, generatePolicyTemplate, PolicyLoadError, PolicyValidationError, CircuitBreaker, MetricsCollector, RateLimiter, } from './guardian/index.js';
24
+ export type { GuardianConfig, InterceptorConfig, ActionValidatorConfig, IntentClassifierConfig, GuardrailsConfig, RateLimiterConfig, CustomPatternOptions, GuardianMode, ViolationSeverity, ViolationAction, GuardrailType, Violation, GuardrailResult, PolicyRule, PolicyCondition, GuardianPolicy, CircuitBreakerConfig, RateLimitConfig, CostLimitConfig, ActionDefinition, ActionParameter, ParameterValidation, IntentClassification, IntentCategory, PIIDetection, PIIType, PIILocation, InjectionDetection, InjectionType, ContentFilterResult, ContentFlag, ContentCategory, GuardianMetrics, CircuitBreakerState, CostTracking, GuardianEventType, GuardianEvent, GuardianEventHandler, InterceptedRequest, InterceptedResponse, InterceptedToolCall, InterceptedAgentStep, FrameworkType, FrameworkIntegrationConfig, GuardianModeCanonical, GuardianModeLegacy, GuardianModeAll, ContentValidationConfig, PatternConfig, ValidationCategory, PatternCategory, SemanticValidationResult, SessionStorageType, SessionStorageConfig, SessionMessage, SessionMetrics, ConversationSession, TrustBuildingHeuristicConfig, EscalationHeuristicConfig, ContextManipulationHeuristicConfig, SplitPayloadHeuristicConfig, MultiTurnHeuristics, MultiTurnSemanticConfig, MultiTurnConfig, HeuristicResult, HeuristicResults, MultiTurnValidationResult, ValidateMessageOptions, } from './guardian/index.js';
23
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,YAAY,EAEV,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,aAAa,EAEb,SAAS,EACT,aAAa,EACb,YAAY,EAEZ,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAE1B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAE5B,gBAAgB,EAChB,mBAAmB,EAEnB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAElB,cAAc,EACd,aAAa,EACb,UAAU,EACV,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAMjB,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,eAAe,EACf,SAAS,GACV,MAAM,kBAAkB,CAAC;AAM1B,YAAY,EAEV,UAAU,EACV,iBAAiB,EAEjB,WAAW,EACX,SAAS,EACT,UAAU,EAEV,eAAe,EACf,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EAEf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,mBAAmB,EAEnB,WAAW,EACX,cAAc,EACd,YAAY,EACZ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AAoB,EACpB,eAAe,EACf,eAAe,EAEf,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EAEnB,oBAAoB,EACpB,cAAc,EAEd,YAAY,EACZ,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,eAAe,EAEf,eAAe,EACf,mBAAmB,EACnB,YAAY,EAEZ,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EAEpB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,0BAA0B,EAE1B,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EAEf,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EAExB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,kCAAkC,EAClC,+BAA+B,EAC/B,sCAAsC,EACtC,sBAAsB,EACtB,sCAAsC,GACvC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB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