@auxiora/autonomy 1.0.0 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxiora/autonomy",
3
- "version": "1.0.0",
3
+ "version": "1.3.0",
4
4
  "description": "Trust engine with 5-level autonomy, escalation, demotion, and audit trail",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -12,11 +12,17 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@auxiora/core": "1.0.0"
15
+ "@auxiora/core": "1.3.0"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=22.0.0"
19
19
  },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "files": [
24
+ "dist/"
25
+ ],
20
26
  "scripts": {
21
27
  "build": "tsc",
22
28
  "clean": "rm -rf dist",
@@ -1,93 +0,0 @@
1
- import * as fs from 'node:fs/promises';
2
- import * as path from 'node:path';
3
- import * as crypto from 'node:crypto';
4
- import { paths } from '@auxiora/core';
5
- import type { ActionAudit, TrustDomain, TrustLevel } from './types.js';
6
-
7
- export interface AuditQueryFilters {
8
- domain?: TrustDomain;
9
- outcome?: ActionAudit['outcome'];
10
- fromTimestamp?: number;
11
- toTimestamp?: number;
12
- limit?: number;
13
- }
14
-
15
- export class ActionAuditTrail {
16
- private entries: ActionAudit[] = [];
17
- private filePath: string;
18
-
19
- constructor(filePath?: string) {
20
- this.filePath = filePath ?? path.join(paths.data(), 'trust-audit.json');
21
- }
22
-
23
- async load(): Promise<void> {
24
- try {
25
- const raw = await fs.readFile(this.filePath, 'utf-8');
26
- this.entries = JSON.parse(raw) as ActionAudit[];
27
- } catch (error) {
28
- if ((error as NodeJS.ErrnoException).code !== 'ENOENT') {
29
- throw error;
30
- }
31
- }
32
- }
33
-
34
- async save(): Promise<void> {
35
- const dir = path.dirname(this.filePath);
36
- await fs.mkdir(dir, { recursive: true });
37
- await fs.writeFile(this.filePath, JSON.stringify(this.entries, null, 2), 'utf-8');
38
- }
39
-
40
- async record(entry: Omit<ActionAudit, 'id' | 'timestamp'>): Promise<ActionAudit> {
41
- const audit: ActionAudit = {
42
- id: crypto.randomUUID(),
43
- timestamp: Date.now(),
44
- ...entry,
45
- };
46
- this.entries.push(audit);
47
- await this.save();
48
- return audit;
49
- }
50
-
51
- query(filters: AuditQueryFilters = {}): ActionAudit[] {
52
- let result = [...this.entries];
53
-
54
- if (filters.domain) {
55
- result = result.filter((e) => e.domain === filters.domain);
56
- }
57
- if (filters.outcome) {
58
- result = result.filter((e) => e.outcome === filters.outcome);
59
- }
60
- if (filters.fromTimestamp !== undefined) {
61
- result = result.filter((e) => e.timestamp >= filters.fromTimestamp!);
62
- }
63
- if (filters.toTimestamp !== undefined) {
64
- result = result.filter((e) => e.timestamp <= filters.toTimestamp!);
65
- }
66
-
67
- // Sort newest first
68
- result.sort((a, b) => b.timestamp - a.timestamp);
69
-
70
- if (filters.limit !== undefined && filters.limit > 0) {
71
- result = result.slice(0, filters.limit);
72
- }
73
-
74
- return result;
75
- }
76
-
77
- getById(id: string): ActionAudit | undefined {
78
- return this.entries.find((e) => e.id === id);
79
- }
80
-
81
- async markRolledBack(id: string): Promise<boolean> {
82
- const entry = this.entries.find((e) => e.id === id);
83
- if (!entry) return false;
84
- entry.outcome = 'rolled_back';
85
- entry.rollbackAvailable = false;
86
- await this.save();
87
- return true;
88
- }
89
-
90
- getAll(): ActionAudit[] {
91
- return [...this.entries];
92
- }
93
- }
package/src/index.ts DELETED
@@ -1,19 +0,0 @@
1
- export type {
2
- TrustLevel,
3
- TrustDomain,
4
- TrustConfig,
5
- TrustEvidence,
6
- TrustPromotion,
7
- TrustDemotion,
8
- ActionAudit,
9
- TrustState,
10
- } from './types.js';
11
- export {
12
- DEFAULT_TRUST_CONFIG,
13
- TRUST_LEVEL_NAMES,
14
- ALL_TRUST_DOMAINS,
15
- } from './types.js';
16
- export { TrustEngine } from './trust-engine.js';
17
- export { ActionAuditTrail, type AuditQueryFilters } from './audit-trail.js';
18
- export { RollbackManager, type RollbackResult } from './rollback.js';
19
- export { TrustGate, type GateResult } from './trust-gate.js';
package/src/rollback.ts DELETED
@@ -1,44 +0,0 @@
1
- import type { ActionAuditTrail } from './audit-trail.js';
2
- import type { ActionAudit } from './types.js';
3
-
4
- export interface RollbackResult {
5
- success: boolean;
6
- auditId: string;
7
- error?: string;
8
- }
9
-
10
- export class RollbackManager {
11
- private auditTrail: ActionAuditTrail;
12
-
13
- constructor(auditTrail: ActionAuditTrail) {
14
- this.auditTrail = auditTrail;
15
- }
16
-
17
- canRollback(auditId: string): boolean {
18
- const entry = this.auditTrail.getById(auditId);
19
- if (!entry) return false;
20
- return entry.rollbackAvailable && entry.outcome !== 'rolled_back';
21
- }
22
-
23
- async rollback(auditId: string): Promise<RollbackResult> {
24
- const entry = this.auditTrail.getById(auditId);
25
- if (!entry) {
26
- return { success: false, auditId, error: 'Audit entry not found' };
27
- }
28
-
29
- if (entry.outcome === 'rolled_back') {
30
- return { success: false, auditId, error: 'Action already rolled back' };
31
- }
32
-
33
- if (!entry.rollbackAvailable) {
34
- return { success: false, auditId, error: 'Rollback not available for this action' };
35
- }
36
-
37
- await this.auditTrail.markRolledBack(auditId);
38
- return { success: true, auditId };
39
- }
40
-
41
- getHistory(): ActionAudit[] {
42
- return this.auditTrail.query({ outcome: 'rolled_back' });
43
- }
44
- }
@@ -1,218 +0,0 @@
1
- import * as fs from 'node:fs/promises';
2
- import * as path from 'node:path';
3
- import { paths } from '@auxiora/core';
4
- import type {
5
- TrustLevel,
6
- TrustDomain,
7
- TrustConfig,
8
- TrustEvidence,
9
- TrustPromotion,
10
- TrustDemotion,
11
- TrustState,
12
- } from './types.js';
13
- import {
14
- DEFAULT_TRUST_CONFIG,
15
- ALL_TRUST_DOMAINS,
16
- } from './types.js';
17
-
18
- function makeFreshEvidence(): TrustEvidence {
19
- return { successes: 0, failures: 0, lastActionAt: 0 };
20
- }
21
-
22
- function makeFreshState(defaultLevel: TrustLevel): TrustState {
23
- const levels = {} as Record<TrustDomain, TrustLevel>;
24
- const evidence = {} as Record<TrustDomain, TrustEvidence>;
25
- for (const domain of ALL_TRUST_DOMAINS) {
26
- levels[domain] = defaultLevel;
27
- evidence[domain] = makeFreshEvidence();
28
- }
29
- return { levels, evidence, promotions: [], demotions: [] };
30
- }
31
-
32
- export class TrustEngine {
33
- private state: TrustState;
34
- private config: TrustConfig;
35
- private statePath: string;
36
-
37
- constructor(config?: Partial<TrustConfig>, statePath?: string) {
38
- this.config = { ...DEFAULT_TRUST_CONFIG, ...config };
39
- this.statePath = statePath ?? path.join(paths.data(), 'trust-state.json');
40
- this.state = makeFreshState(this.config.defaultLevel);
41
- }
42
-
43
- async load(): Promise<void> {
44
- try {
45
- const raw = await fs.readFile(this.statePath, 'utf-8');
46
- const parsed = JSON.parse(raw) as TrustState;
47
- this.state = parsed;
48
-
49
- // Ensure all domains exist (in case new ones were added)
50
- for (const domain of ALL_TRUST_DOMAINS) {
51
- if (this.state.levels[domain] === undefined) {
52
- this.state.levels[domain] = this.config.defaultLevel;
53
- }
54
- if (!this.state.evidence[domain]) {
55
- this.state.evidence[domain] = makeFreshEvidence();
56
- }
57
- }
58
- } catch (error) {
59
- if ((error as NodeJS.ErrnoException).code !== 'ENOENT') {
60
- throw error;
61
- }
62
- // File doesn't exist, use fresh state
63
- }
64
- }
65
-
66
- async save(): Promise<void> {
67
- const dir = path.dirname(this.statePath);
68
- await fs.mkdir(dir, { recursive: true });
69
- await fs.writeFile(this.statePath, JSON.stringify(this.state, null, 2), 'utf-8');
70
- }
71
-
72
- getTrustLevel(domain: TrustDomain): TrustLevel {
73
- return this.state.levels[domain] ?? this.config.defaultLevel;
74
- }
75
-
76
- getAllLevels(): Record<TrustDomain, TrustLevel> {
77
- return { ...this.state.levels };
78
- }
79
-
80
- getEvidence(domain: TrustDomain): TrustEvidence {
81
- return { ...(this.state.evidence[domain] ?? makeFreshEvidence()) };
82
- }
83
-
84
- async setTrustLevel(domain: TrustDomain, level: TrustLevel, reason: string): Promise<void> {
85
- const current = this.getTrustLevel(domain);
86
- if (level === current) return;
87
-
88
- if (level > current) {
89
- this.state.promotions.push({
90
- domain,
91
- fromLevel: current,
92
- toLevel: level,
93
- reason,
94
- timestamp: Date.now(),
95
- automatic: false,
96
- });
97
- this.state.evidence[domain].lastPromotedAt = Date.now();
98
- } else {
99
- this.state.demotions.push({
100
- domain,
101
- fromLevel: current,
102
- toLevel: level,
103
- reason,
104
- timestamp: Date.now(),
105
- });
106
- this.state.evidence[domain].lastDemotedAt = Date.now();
107
- }
108
-
109
- this.state.levels[domain] = level;
110
- await this.save();
111
- }
112
-
113
- checkPermission(domain: TrustDomain, requiredLevel: TrustLevel): boolean {
114
- return this.getTrustLevel(domain) >= requiredLevel;
115
- }
116
-
117
- async recordOutcome(domain: TrustDomain, success: boolean): Promise<TrustPromotion | TrustDemotion | null> {
118
- const ev = this.state.evidence[domain] ?? makeFreshEvidence();
119
- ev.lastActionAt = Date.now();
120
-
121
- if (success) {
122
- ev.successes++;
123
- ev.failures = 0; // Reset consecutive failure count on success
124
- } else {
125
- ev.failures++;
126
- }
127
-
128
- this.state.evidence[domain] = ev;
129
-
130
- // Check for auto-demotion
131
- if (ev.failures >= this.config.demotionThreshold) {
132
- const current = this.getTrustLevel(domain);
133
- if (current > 0) {
134
- const newLevel = (current - 1) as TrustLevel;
135
- const demotion: TrustDemotion = {
136
- domain,
137
- fromLevel: current,
138
- toLevel: newLevel,
139
- reason: `Automatic demotion after ${ev.failures} consecutive failures`,
140
- timestamp: Date.now(),
141
- };
142
- this.state.levels[domain] = newLevel;
143
- this.state.demotions.push(demotion);
144
- ev.failures = 0;
145
- ev.lastDemotedAt = Date.now();
146
- await this.save();
147
- return demotion;
148
- }
149
- }
150
-
151
- // Check for auto-promotion
152
- const promotion = this.evaluatePromotion(domain);
153
- if (promotion) {
154
- this.state.levels[domain] = promotion.toLevel;
155
- this.state.promotions.push(promotion);
156
- ev.successes = 0; // Reset counter after promotion
157
- ev.lastPromotedAt = Date.now();
158
- await this.save();
159
- return promotion;
160
- }
161
-
162
- await this.save();
163
- return null;
164
- }
165
-
166
- evaluatePromotion(domain: TrustDomain): TrustPromotion | null {
167
- if (!this.config.autoPromote) return null;
168
-
169
- const current = this.getTrustLevel(domain);
170
- if (current >= this.config.autoPromoteCeiling) return null;
171
- if (current >= 4) return null;
172
-
173
- const ev = this.state.evidence[domain];
174
- if (!ev || ev.successes < this.config.promotionThreshold) return null;
175
-
176
- const newLevel = (current + 1) as TrustLevel;
177
- return {
178
- domain,
179
- fromLevel: current,
180
- toLevel: newLevel,
181
- reason: `Automatic promotion after ${ev.successes} successful actions`,
182
- timestamp: Date.now(),
183
- automatic: true,
184
- };
185
- }
186
-
187
- async demote(domain: TrustDomain, reason: string): Promise<TrustDemotion | null> {
188
- const current = this.getTrustLevel(domain);
189
- if (current <= 0) return null;
190
-
191
- const newLevel = (current - 1) as TrustLevel;
192
- const demotion: TrustDemotion = {
193
- domain,
194
- fromLevel: current,
195
- toLevel: newLevel,
196
- reason,
197
- timestamp: Date.now(),
198
- };
199
-
200
- this.state.levels[domain] = newLevel;
201
- this.state.demotions.push(demotion);
202
- this.state.evidence[domain].lastDemotedAt = Date.now();
203
- await this.save();
204
- return demotion;
205
- }
206
-
207
- getPromotions(): TrustPromotion[] {
208
- return [...this.state.promotions];
209
- }
210
-
211
- getDemotions(): TrustDemotion[] {
212
- return [...this.state.demotions];
213
- }
214
-
215
- getState(): TrustState {
216
- return JSON.parse(JSON.stringify(this.state)) as TrustState;
217
- }
218
- }
package/src/trust-gate.ts DELETED
@@ -1,36 +0,0 @@
1
- import type { TrustEngine } from './trust-engine.js';
2
- import type { TrustDomain, TrustLevel } from './types.js';
3
- import { TRUST_LEVEL_NAMES } from './types.js';
4
-
5
- export interface GateResult {
6
- allowed: boolean;
7
- currentLevel: TrustLevel;
8
- requiredLevel: TrustLevel;
9
- domain: TrustDomain;
10
- message: string;
11
- }
12
-
13
- export class TrustGate {
14
- private engine: TrustEngine;
15
-
16
- constructor(engine: TrustEngine) {
17
- this.engine = engine;
18
- }
19
-
20
- gate(domain: TrustDomain, action: string, requiredLevel: TrustLevel): GateResult {
21
- const currentLevel = this.engine.getTrustLevel(domain);
22
- const allowed = currentLevel >= requiredLevel;
23
-
24
- const message = allowed
25
- ? `Action "${action}" allowed at trust level ${TRUST_LEVEL_NAMES[currentLevel]}`
26
- : `Action "${action}" denied: requires ${TRUST_LEVEL_NAMES[requiredLevel]} (current: ${TRUST_LEVEL_NAMES[currentLevel]})`;
27
-
28
- return {
29
- allowed,
30
- currentLevel,
31
- requiredLevel,
32
- domain,
33
- message,
34
- };
35
- }
36
- }
package/src/types.ts DELETED
@@ -1,105 +0,0 @@
1
- /** Trust level from 0 (no autonomy) to 4 (full autonomy). */
2
- export type TrustLevel = 0 | 1 | 2 | 3 | 4;
3
-
4
- /** Named trust domains that can have independent trust levels. */
5
- export type TrustDomain =
6
- | 'messaging'
7
- | 'files'
8
- | 'web'
9
- | 'shell'
10
- | 'finance'
11
- | 'calendar'
12
- | 'email'
13
- | 'integrations'
14
- | 'system';
15
-
16
- export interface TrustConfig {
17
- /** Default trust level for new domains. */
18
- defaultLevel: TrustLevel;
19
- /** Whether automatic promotion is enabled. */
20
- autoPromote: boolean;
21
- /** Minimum successful actions before promotion is considered. */
22
- promotionThreshold: number;
23
- /** Number of failures before automatic demotion. */
24
- demotionThreshold: number;
25
- /** Maximum trust level that auto-promotion can reach. */
26
- autoPromoteCeiling: TrustLevel;
27
- }
28
-
29
- export interface TrustEvidence {
30
- /** Number of successful actions in this domain. */
31
- successes: number;
32
- /** Number of failed actions in this domain. */
33
- failures: number;
34
- /** Timestamp of last action. */
35
- lastActionAt: number;
36
- /** Timestamp of last promotion. */
37
- lastPromotedAt?: number;
38
- /** Timestamp of last demotion. */
39
- lastDemotedAt?: number;
40
- }
41
-
42
- export interface TrustPromotion {
43
- domain: TrustDomain;
44
- fromLevel: TrustLevel;
45
- toLevel: TrustLevel;
46
- reason: string;
47
- timestamp: number;
48
- automatic: boolean;
49
- }
50
-
51
- export interface TrustDemotion {
52
- domain: TrustDomain;
53
- fromLevel: TrustLevel;
54
- toLevel: TrustLevel;
55
- reason: string;
56
- timestamp: number;
57
- }
58
-
59
- export interface ActionAudit {
60
- id: string;
61
- timestamp: number;
62
- trustLevel: TrustLevel;
63
- domain: TrustDomain;
64
- intent: string;
65
- plan: string;
66
- executed: boolean;
67
- outcome: 'success' | 'failure' | 'pending' | 'rolled_back';
68
- reasoning: string;
69
- rollbackAvailable: boolean;
70
- }
71
-
72
- export interface TrustState {
73
- levels: Record<TrustDomain, TrustLevel>;
74
- evidence: Record<TrustDomain, TrustEvidence>;
75
- promotions: TrustPromotion[];
76
- demotions: TrustDemotion[];
77
- }
78
-
79
- export const DEFAULT_TRUST_CONFIG: TrustConfig = {
80
- defaultLevel: 0,
81
- autoPromote: true,
82
- promotionThreshold: 10,
83
- demotionThreshold: 3,
84
- autoPromoteCeiling: 3,
85
- };
86
-
87
- export const TRUST_LEVEL_NAMES: Record<TrustLevel, string> = {
88
- 0: 'None',
89
- 1: 'Inform',
90
- 2: 'Suggest',
91
- 3: 'Act & Report',
92
- 4: 'Full Autonomy',
93
- };
94
-
95
- export const ALL_TRUST_DOMAINS: TrustDomain[] = [
96
- 'messaging',
97
- 'files',
98
- 'web',
99
- 'shell',
100
- 'finance',
101
- 'calendar',
102
- 'email',
103
- 'integrations',
104
- 'system',
105
- ];
@@ -1,167 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import * as fs from 'node:fs/promises';
3
- import * as path from 'node:path';
4
- import * as os from 'node:os';
5
- import { ActionAuditTrail } from '../src/audit-trail.js';
6
-
7
- describe('ActionAuditTrail', () => {
8
- let tmpDir: string;
9
- let filePath: string;
10
- let trail: ActionAuditTrail;
11
-
12
- beforeEach(async () => {
13
- tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'audit-trail-'));
14
- filePath = path.join(tmpDir, 'audit.json');
15
- trail = new ActionAuditTrail(filePath);
16
- await trail.load();
17
- });
18
-
19
- afterEach(async () => {
20
- await fs.rm(tmpDir, { recursive: true, force: true });
21
- });
22
-
23
- it('should record an audit entry', async () => {
24
- const entry = await trail.record({
25
- trustLevel: 2,
26
- domain: 'messaging',
27
- intent: 'Send message',
28
- plan: 'Send via Slack',
29
- executed: true,
30
- outcome: 'success',
31
- reasoning: 'User requested message send',
32
- rollbackAvailable: false,
33
- });
34
-
35
- expect(entry.id).toBeTruthy();
36
- expect(entry.timestamp).toBeGreaterThan(0);
37
- expect(entry.domain).toBe('messaging');
38
- });
39
-
40
- it('should retrieve by id', async () => {
41
- const entry = await trail.record({
42
- trustLevel: 1,
43
- domain: 'web',
44
- intent: 'Browse',
45
- plan: 'Open URL',
46
- executed: true,
47
- outcome: 'success',
48
- reasoning: 'Test',
49
- rollbackAvailable: false,
50
- });
51
-
52
- const found = trail.getById(entry.id);
53
- expect(found).toEqual(entry);
54
- });
55
-
56
- it('should return undefined for unknown id', () => {
57
- expect(trail.getById('nonexistent')).toBeUndefined();
58
- });
59
-
60
- it('should query by domain', async () => {
61
- await trail.record({
62
- trustLevel: 1,
63
- domain: 'web',
64
- intent: 'Browse',
65
- plan: 'Open URL',
66
- executed: true,
67
- outcome: 'success',
68
- reasoning: 'Test',
69
- rollbackAvailable: false,
70
- });
71
- await trail.record({
72
- trustLevel: 2,
73
- domain: 'files',
74
- intent: 'Write file',
75
- plan: 'Create file',
76
- executed: true,
77
- outcome: 'success',
78
- reasoning: 'Test',
79
- rollbackAvailable: false,
80
- });
81
-
82
- const webEntries = trail.query({ domain: 'web' });
83
- expect(webEntries).toHaveLength(1);
84
- expect(webEntries[0].domain).toBe('web');
85
- });
86
-
87
- it('should query by outcome', async () => {
88
- await trail.record({
89
- trustLevel: 1,
90
- domain: 'web',
91
- intent: 'Browse',
92
- plan: 'Open URL',
93
- executed: true,
94
- outcome: 'success',
95
- reasoning: 'Test',
96
- rollbackAvailable: false,
97
- });
98
- await trail.record({
99
- trustLevel: 1,
100
- domain: 'web',
101
- intent: 'Browse',
102
- plan: 'Open URL',
103
- executed: false,
104
- outcome: 'failure',
105
- reasoning: 'Blocked',
106
- rollbackAvailable: false,
107
- });
108
-
109
- const failures = trail.query({ outcome: 'failure' });
110
- expect(failures).toHaveLength(1);
111
- });
112
-
113
- it('should query with limit', async () => {
114
- for (let i = 0; i < 5; i++) {
115
- await trail.record({
116
- trustLevel: 1,
117
- domain: 'web',
118
- intent: `Action ${i}`,
119
- plan: 'Plan',
120
- executed: true,
121
- outcome: 'success',
122
- reasoning: 'Test',
123
- rollbackAvailable: false,
124
- });
125
- }
126
-
127
- const limited = trail.query({ limit: 3 });
128
- expect(limited).toHaveLength(3);
129
- });
130
-
131
- it('should mark as rolled back', async () => {
132
- const entry = await trail.record({
133
- trustLevel: 2,
134
- domain: 'files',
135
- intent: 'Delete file',
136
- plan: 'Remove /tmp/test',
137
- executed: true,
138
- outcome: 'success',
139
- reasoning: 'Cleanup',
140
- rollbackAvailable: true,
141
- });
142
-
143
- const result = await trail.markRolledBack(entry.id);
144
- expect(result).toBe(true);
145
-
146
- const updated = trail.getById(entry.id);
147
- expect(updated?.outcome).toBe('rolled_back');
148
- expect(updated?.rollbackAvailable).toBe(false);
149
- });
150
-
151
- it('should persist and reload entries', async () => {
152
- await trail.record({
153
- trustLevel: 1,
154
- domain: 'web',
155
- intent: 'Browse',
156
- plan: 'Open URL',
157
- executed: true,
158
- outcome: 'success',
159
- reasoning: 'Test',
160
- rollbackAvailable: false,
161
- });
162
-
163
- const trail2 = new ActionAuditTrail(filePath);
164
- await trail2.load();
165
- expect(trail2.getAll()).toHaveLength(1);
166
- });
167
- });
@@ -1,135 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import * as fs from 'node:fs/promises';
3
- import * as path from 'node:path';
4
- import * as os from 'node:os';
5
- import { ActionAuditTrail } from '../src/audit-trail.js';
6
- import { RollbackManager } from '../src/rollback.js';
7
-
8
- describe('RollbackManager', () => {
9
- let tmpDir: string;
10
- let trail: ActionAuditTrail;
11
- let rollback: RollbackManager;
12
-
13
- beforeEach(async () => {
14
- tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'rollback-'));
15
- trail = new ActionAuditTrail(path.join(tmpDir, 'audit.json'));
16
- await trail.load();
17
- rollback = new RollbackManager(trail);
18
- });
19
-
20
- afterEach(async () => {
21
- await fs.rm(tmpDir, { recursive: true, force: true });
22
- });
23
-
24
- it('should report rollback availability', async () => {
25
- const entry = await trail.record({
26
- trustLevel: 2,
27
- domain: 'files',
28
- intent: 'Delete file',
29
- plan: 'rm /tmp/test',
30
- executed: true,
31
- outcome: 'success',
32
- reasoning: 'User requested',
33
- rollbackAvailable: true,
34
- });
35
-
36
- expect(rollback.canRollback(entry.id)).toBe(true);
37
- });
38
-
39
- it('should return false for non-rollbackable actions', async () => {
40
- const entry = await trail.record({
41
- trustLevel: 1,
42
- domain: 'messaging',
43
- intent: 'Send message',
44
- plan: 'Send via Slack',
45
- executed: true,
46
- outcome: 'success',
47
- reasoning: 'Sent',
48
- rollbackAvailable: false,
49
- });
50
-
51
- expect(rollback.canRollback(entry.id)).toBe(false);
52
- });
53
-
54
- it('should return false for unknown audit id', () => {
55
- expect(rollback.canRollback('nonexistent')).toBe(false);
56
- });
57
-
58
- it('should perform rollback', async () => {
59
- const entry = await trail.record({
60
- trustLevel: 2,
61
- domain: 'files',
62
- intent: 'Create file',
63
- plan: 'Write to /tmp/test',
64
- executed: true,
65
- outcome: 'success',
66
- reasoning: 'User requested',
67
- rollbackAvailable: true,
68
- });
69
-
70
- const result = await rollback.rollback(entry.id);
71
- expect(result.success).toBe(true);
72
-
73
- // Should not be rollbackable anymore
74
- expect(rollback.canRollback(entry.id)).toBe(false);
75
- });
76
-
77
- it('should fail rollback for non-existent entry', async () => {
78
- const result = await rollback.rollback('nonexistent');
79
- expect(result.success).toBe(false);
80
- expect(result.error).toBe('Audit entry not found');
81
- });
82
-
83
- it('should fail rollback for non-rollbackable entry', async () => {
84
- const entry = await trail.record({
85
- trustLevel: 1,
86
- domain: 'messaging',
87
- intent: 'Send message',
88
- plan: 'Send',
89
- executed: true,
90
- outcome: 'success',
91
- reasoning: 'Sent',
92
- rollbackAvailable: false,
93
- });
94
-
95
- const result = await rollback.rollback(entry.id);
96
- expect(result.success).toBe(false);
97
- expect(result.error).toBe('Rollback not available for this action');
98
- });
99
-
100
- it('should fail double rollback', async () => {
101
- const entry = await trail.record({
102
- trustLevel: 2,
103
- domain: 'files',
104
- intent: 'Create file',
105
- plan: 'Write',
106
- executed: true,
107
- outcome: 'success',
108
- reasoning: 'Test',
109
- rollbackAvailable: true,
110
- });
111
-
112
- await rollback.rollback(entry.id);
113
- const result = await rollback.rollback(entry.id);
114
- expect(result.success).toBe(false);
115
- expect(result.error).toBe('Action already rolled back');
116
- });
117
-
118
- it('should return rollback history', async () => {
119
- const entry = await trail.record({
120
- trustLevel: 2,
121
- domain: 'files',
122
- intent: 'Create file',
123
- plan: 'Write',
124
- executed: true,
125
- outcome: 'success',
126
- reasoning: 'Test',
127
- rollbackAvailable: true,
128
- });
129
-
130
- await rollback.rollback(entry.id);
131
- const history = rollback.getHistory();
132
- expect(history).toHaveLength(1);
133
- expect(history[0].outcome).toBe('rolled_back');
134
- });
135
- });
@@ -1,182 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import * as fs from 'node:fs/promises';
3
- import * as path from 'node:path';
4
- import * as os from 'node:os';
5
- import { TrustEngine } from '../src/trust-engine.js';
6
- import type { TrustLevel } from '../src/types.js';
7
-
8
- describe('TrustEngine', () => {
9
- let tmpDir: string;
10
- let statePath: string;
11
- let engine: TrustEngine;
12
-
13
- beforeEach(async () => {
14
- tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'trust-engine-'));
15
- statePath = path.join(tmpDir, 'trust-state.json');
16
- engine = new TrustEngine({ defaultLevel: 0 }, statePath);
17
- await engine.load();
18
- });
19
-
20
- afterEach(async () => {
21
- await fs.rm(tmpDir, { recursive: true, force: true });
22
- });
23
-
24
- it('should start with default trust level', () => {
25
- expect(engine.getTrustLevel('messaging')).toBe(0);
26
- expect(engine.getTrustLevel('files')).toBe(0);
27
- expect(engine.getTrustLevel('shell')).toBe(0);
28
- });
29
-
30
- it('should return all levels', () => {
31
- const levels = engine.getAllLevels();
32
- expect(levels.messaging).toBe(0);
33
- expect(levels.files).toBe(0);
34
- expect(Object.keys(levels).length).toBeGreaterThanOrEqual(9);
35
- });
36
-
37
- it('should set trust level manually', async () => {
38
- await engine.setTrustLevel('messaging', 3, 'User approved');
39
- expect(engine.getTrustLevel('messaging')).toBe(3);
40
- });
41
-
42
- it('should record a promotion when level increases', async () => {
43
- await engine.setTrustLevel('web', 2, 'Good behavior');
44
- const promotions = engine.getPromotions();
45
- expect(promotions).toHaveLength(1);
46
- expect(promotions[0].domain).toBe('web');
47
- expect(promotions[0].fromLevel).toBe(0);
48
- expect(promotions[0].toLevel).toBe(2);
49
- expect(promotions[0].automatic).toBe(false);
50
- });
51
-
52
- it('should record a demotion when level decreases', async () => {
53
- await engine.setTrustLevel('shell', 3, 'Initial');
54
- await engine.setTrustLevel('shell', 1, 'Bad behavior');
55
- const demotions = engine.getDemotions();
56
- expect(demotions).toHaveLength(1);
57
- expect(demotions[0].fromLevel).toBe(3);
58
- expect(demotions[0].toLevel).toBe(1);
59
- });
60
-
61
- it('should not change when setting same level', async () => {
62
- await engine.setTrustLevel('messaging', 0, 'No change');
63
- expect(engine.getPromotions()).toHaveLength(0);
64
- expect(engine.getDemotions()).toHaveLength(0);
65
- });
66
-
67
- it('should check permission correctly', async () => {
68
- await engine.setTrustLevel('files', 2, 'Set level');
69
- expect(engine.checkPermission('files', 2)).toBe(true);
70
- expect(engine.checkPermission('files', 1)).toBe(true);
71
- expect(engine.checkPermission('files', 3)).toBe(false);
72
- });
73
-
74
- it('should auto-demote after consecutive failures', async () => {
75
- await engine.setTrustLevel('web', 2, 'Initial');
76
-
77
- // Record failures up to demotion threshold (default 3)
78
- await engine.recordOutcome('web', false);
79
- await engine.recordOutcome('web', false);
80
- const result = await engine.recordOutcome('web', false);
81
-
82
- expect(result).not.toBeNull();
83
- expect(engine.getTrustLevel('web')).toBe(1);
84
- });
85
-
86
- it('should reset failure count on success', async () => {
87
- await engine.setTrustLevel('web', 2, 'Initial');
88
-
89
- await engine.recordOutcome('web', false);
90
- await engine.recordOutcome('web', false);
91
- await engine.recordOutcome('web', true); // Resets failures
92
-
93
- await engine.recordOutcome('web', false);
94
- await engine.recordOutcome('web', false);
95
-
96
- // Should still be at level 2 since failures were reset
97
- expect(engine.getTrustLevel('web')).toBe(2);
98
- });
99
-
100
- it('should auto-promote after enough successes', async () => {
101
- engine = new TrustEngine(
102
- { defaultLevel: 0, autoPromote: true, promotionThreshold: 3, autoPromoteCeiling: 3 },
103
- statePath,
104
- );
105
- await engine.load();
106
-
107
- await engine.recordOutcome('messaging', true);
108
- await engine.recordOutcome('messaging', true);
109
- const result = await engine.recordOutcome('messaging', true);
110
-
111
- expect(result).not.toBeNull();
112
- expect(engine.getTrustLevel('messaging')).toBe(1);
113
- });
114
-
115
- it('should not auto-promote above ceiling', async () => {
116
- engine = new TrustEngine(
117
- { defaultLevel: 0, autoPromote: true, promotionThreshold: 1, autoPromoteCeiling: 2 },
118
- statePath,
119
- );
120
- await engine.load();
121
-
122
- // Promote 0 -> 1
123
- await engine.recordOutcome('messaging', true);
124
- expect(engine.getTrustLevel('messaging')).toBe(1);
125
-
126
- // Promote 1 -> 2
127
- await engine.recordOutcome('messaging', true);
128
- expect(engine.getTrustLevel('messaging')).toBe(2);
129
-
130
- // Should NOT promote above ceiling
131
- await engine.recordOutcome('messaging', true);
132
- expect(engine.getTrustLevel('messaging')).toBe(2);
133
- });
134
-
135
- it('should not auto-promote when disabled', async () => {
136
- engine = new TrustEngine(
137
- { defaultLevel: 0, autoPromote: false, promotionThreshold: 1 },
138
- statePath,
139
- );
140
- await engine.load();
141
-
142
- await engine.recordOutcome('messaging', true);
143
- await engine.recordOutcome('messaging', true);
144
- expect(engine.getTrustLevel('messaging')).toBe(0);
145
- });
146
-
147
- it('should persist and reload state', async () => {
148
- await engine.setTrustLevel('shell', 3, 'Set level');
149
- await engine.save();
150
-
151
- const engine2 = new TrustEngine({}, statePath);
152
- await engine2.load();
153
-
154
- expect(engine2.getTrustLevel('shell')).toBe(3);
155
- });
156
-
157
- it('should demote explicitly', async () => {
158
- await engine.setTrustLevel('finance', 3, 'Initial');
159
- const result = await engine.demote('finance', 'User requested');
160
-
161
- expect(result).not.toBeNull();
162
- expect(result!.fromLevel).toBe(3);
163
- expect(result!.toLevel).toBe(2);
164
- expect(engine.getTrustLevel('finance')).toBe(2);
165
- });
166
-
167
- it('should return null when demoting from level 0', async () => {
168
- const result = await engine.demote('messaging', 'Already at zero');
169
- expect(result).toBeNull();
170
- });
171
-
172
- it('should return evidence', async () => {
173
- await engine.recordOutcome('web', true);
174
- await engine.recordOutcome('web', true);
175
- await engine.recordOutcome('web', false);
176
-
177
- const ev = engine.getEvidence('web');
178
- expect(ev.successes).toBe(2); // Not reset on failure
179
- expect(ev.failures).toBe(1);
180
- expect(ev.lastActionAt).toBeGreaterThan(0);
181
- });
182
- });
@@ -1,54 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import * as fs from 'node:fs/promises';
3
- import * as path from 'node:path';
4
- import * as os from 'node:os';
5
- import { TrustEngine } from '../src/trust-engine.js';
6
- import { TrustGate } from '../src/trust-gate.js';
7
-
8
- describe('TrustGate', () => {
9
- let tmpDir: string;
10
- let engine: TrustEngine;
11
- let gate: TrustGate;
12
-
13
- beforeEach(async () => {
14
- tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'trust-gate-'));
15
- engine = new TrustEngine({ defaultLevel: 0 }, path.join(tmpDir, 'state.json'));
16
- await engine.load();
17
- gate = new TrustGate(engine);
18
- });
19
-
20
- afterEach(async () => {
21
- await fs.rm(tmpDir, { recursive: true, force: true });
22
- });
23
-
24
- it('should deny action when trust level is insufficient', () => {
25
- const result = gate.gate('shell', 'run command', 2);
26
- expect(result.allowed).toBe(false);
27
- expect(result.currentLevel).toBe(0);
28
- expect(result.requiredLevel).toBe(2);
29
- expect(result.message).toContain('denied');
30
- });
31
-
32
- it('should allow action when trust level is sufficient', async () => {
33
- await engine.setTrustLevel('shell', 3, 'Approved');
34
- const result = gate.gate('shell', 'run command', 2);
35
- expect(result.allowed).toBe(true);
36
- expect(result.message).toContain('allowed');
37
- });
38
-
39
- it('should allow action when trust level exactly matches', async () => {
40
- await engine.setTrustLevel('files', 2, 'Set');
41
- const result = gate.gate('files', 'write file', 2);
42
- expect(result.allowed).toBe(true);
43
- });
44
-
45
- it('should allow level 0 actions for all', () => {
46
- const result = gate.gate('messaging', 'view messages', 0);
47
- expect(result.allowed).toBe(true);
48
- });
49
-
50
- it('should return correct domain in result', () => {
51
- const result = gate.gate('finance', 'transfer', 4);
52
- expect(result.domain).toBe('finance');
53
- });
54
- });
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src"
6
- },
7
- "include": ["src/**/*"],
8
- "references": [
9
- { "path": "../core" }
10
- ]
11
- }
@@ -1 +0,0 @@
1
- {"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../core/dist/index.d.ts","./src/types.ts","./src/audit-trail.ts","./src/trust-engine.ts","./src/rollback.ts","./src/trust-gate.ts","./src/index.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/blob.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/console.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/crypto.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/encoding.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/utility.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client-stats.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/h2c-client.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-call-history.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/snapshot-agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache-interceptor.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/importmeta.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/messaging.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/performance.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/streams.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/timers.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/web-globals/url.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/inspector/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/path/posix.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/path/win32.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/quic.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/test/reporters.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/util/types.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@25.1.0/node_modules/@types/node/index.d.ts"],"fileIdsList":[[73,132,133,135,143,147,150,152,153,154,166],[73,134,135,143,147,150,152,153,154,166],[135,143,147,150,152,153,154,166],[73,135,143,147,150,152,153,154,166,174],[73,135,136,141,143,146,147,150,152,153,154,156,166,171,183],[73,135,136,137,143,146,147,150,152,153,154,166],[73,135,143,147,150,152,153,154,166],[73,135,138,143,147,150,152,153,154,166,184],[73,135,139,140,143,147,150,152,153,154,157,166],[73,135,140,143,147,150,152,153,154,166,171,180],[73,135,141,143,146,147,150,152,153,154,156,166],[73,134,135,142,143,147,150,152,153,154,166],[73,135,143,144,147,150,152,153,154,166],[73,135,143,145,146,147,150,152,153,154,166],[73,134,135,143,146,147,150,152,153,154,166],[73,135,143,146,147,148,150,152,153,154,166,171,183],[73,135,143,146,147,148,150,152,153,154,166,171,174],[73,122,135,143,146,147,149,150,152,153,154,156,166,171,183],[73,135,143,146,147,149,150,152,153,154,156,166,171,180,183],[73,135,143,147,149,150,151,152,153,154,166,171,180,183],[71,72,73,74,75,76,77,78,79,80,81,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[73,135,143,146,147,150,152,153,154,166],[73,135,143,147,150,152,154,166],[73,135,143,147,150,152,153,154,155,166,183],[73,135,143,146,147,150,152,153,154,156,166,171],[73,135,143,147,150,152,153,154,157,166],[73,135,143,147,150,152,153,154,158,166],[73,135,143,146,147,150,152,153,154,161,166],[73,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[73,135,143,147,150,152,153,154,163,166],[73,135,143,147,150,152,153,154,164,166],[73,135,140,143,147,150,152,153,154,156,166,174],[73,135,143,146,147,150,152,153,154,166,167],[73,135,143,147,150,152,153,154,166,168,184,187],[73,135,143,146,147,150,152,153,154,166,171,173,174],[73,135,143,147,150,152,153,154,166,172,174],[73,135,143,147,150,152,153,154,166,174,184],[73,135,143,147,150,152,153,154,166,175],[73,132,135,143,147,150,152,153,154,166,171,177],[73,135,143,147,150,152,153,154,166,171,176],[73,135,143,146,147,150,152,153,154,166,178,179],[73,135,143,147,150,152,153,154,166,178,179],[73,135,140,143,147,150,152,153,154,156,166,171,180],[73,135,143,147,150,152,153,154,166,181],[73,135,143,147,150,152,153,154,156,166,182],[73,135,143,147,149,150,152,153,154,164,166,183],[73,135,143,147,150,152,153,154,166,184,185],[73,135,140,143,147,150,152,153,154,166,185],[73,135,143,147,150,152,153,154,166,171,186],[73,135,143,147,150,152,153,154,155,166,187],[73,135,143,147,150,152,153,154,166,188],[73,135,138,143,147,150,152,153,154,166],[73,135,140,143,147,150,152,153,154,166],[73,135,143,147,150,152,153,154,166,184],[73,122,135,143,147,150,152,153,154,166],[73,135,143,147,150,152,153,154,166,183],[73,135,143,147,150,152,153,154,166,189],[73,135,143,147,150,152,153,154,161,166],[73,135,143,147,150,152,153,154,166,179],[73,122,135,143,146,147,148,150,152,153,154,161,166,171,174,183,186,187,189],[73,135,143,147,150,152,153,154,166,171,190],[73,88,91,94,95,135,143,147,150,152,153,154,166,183],[73,91,135,143,147,150,152,153,154,166,171,183],[73,91,95,135,143,147,150,152,153,154,166,183],[73,135,143,147,150,152,153,154,166,171],[73,85,135,143,147,150,152,153,154,166],[73,89,135,143,147,150,152,153,154,166],[73,87,88,91,135,143,147,150,152,153,154,166,183],[73,135,143,147,150,152,153,154,156,166,180],[73,135,143,147,150,152,153,154,166,191],[73,85,135,143,147,150,152,153,154,166,191],[73,87,91,135,143,147,150,152,153,154,156,166,183],[73,82,83,84,86,90,135,143,146,147,150,152,153,154,166,171,183],[73,91,99,107,135,143,147,150,152,153,154,166],[73,83,89,135,143,147,150,152,153,154,166],[73,91,116,117,135,143,147,150,152,153,154,166],[73,83,86,91,135,143,147,150,152,153,154,166,174,183,191],[73,91,135,143,147,150,152,153,154,166],[73,87,91,135,143,147,150,152,153,154,166,183],[73,82,135,143,147,150,152,153,154,166],[73,85,86,87,89,90,91,92,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,117,118,119,120,121,135,143,147,150,152,153,154,166],[73,91,109,112,135,143,147,150,152,153,154,166],[73,91,99,100,101,135,143,147,150,152,153,154,166],[73,89,91,100,102,135,143,147,150,152,153,154,166],[73,90,135,143,147,150,152,153,154,166],[73,83,85,91,135,143,147,150,152,153,154,166],[73,91,95,100,102,135,143,147,150,152,153,154,166],[73,95,135,143,147,150,152,153,154,166],[73,89,91,94,135,143,147,150,152,153,154,166,183],[73,83,87,91,99,135,143,147,150,152,153,154,166],[73,91,109,135,143,147,150,152,153,154,166],[73,102,135,143,147,150,152,153,154,166],[73,85,91,116,135,143,147,150,152,153,154,166,174,189,191],[64,65,73,135,140,143,147,148,150,152,153,154,158,166],[65,66,67,68,69,73,135,143,147,150,152,153,154,166],[65,66,73,135,143,147,150,152,153,154,166],[64,65,73,135,143,147,148,150,152,153,154,158,166],[65,67,73,135,143,147,150,152,153,154,166]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"50bce923a573d84f6667d2d05b2f04059ee6a292a4ed236a2174ec034edb7e9c","impliedFormat":99},{"version":"7137fd7b54643b8cfc14885af2a8dff753f36808a482118e78cda70a0047bf03","signature":"2b79d8afa5f63a941b792d1961f843732636999b1923bda4e4a6d27c96d15c39","impliedFormat":99},{"version":"84a8465d158ae4cdbed5dd47be63809872d8b935d11e141c526d9ade08bdfd8b","signature":"8eb4413a478a94ec66deb5c2da4ede9b88df649bbff511733b84927e52dd9a03","impliedFormat":99},{"version":"9c2087289a91cd8be232427cd069d75f8e62d39fed2f4e40d56d9b20368388c1","signature":"58966f3a2cc1ec0b189ffce6cc70fe99c61311c807f348adc71073d9eb0dd103","impliedFormat":99},{"version":"bf1f4f4e7d6240f41f153ab04efeaf1e4107defe89dfd7e4cf65230c2a1c54c9","signature":"88ba2f77196f216493de4e88d966f27363b114a44e0fec72cb0b7b3b6c1fad76","impliedFormat":99},{"version":"e895b43bc92bf8a9a688952597c1441d2fc94373bf909fefb10c040067b912f4","signature":"1b4ac0bca7b60fa7721c6ef8f02961de85e4b3ccf0127842760fb68e0a8e4dd9","impliedFormat":99},{"version":"d6035c1c73c1ba220287fb61e6392bceb0b990646dc9c0caeb3e7afa30da626f","signature":"58d36f1908dc20ea730fe4175613f5995e8f7f2ec8c33408b1d4decdd82729e4","impliedFormat":99},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"438b41419b1df9f1fbe33b5e1b18f5853432be205991d1b19f5b7f351675541e","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"dd0109710de4cd93e245121ab86d8c66d20f3ead80074b68e9c3e349c4f53342","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"435b3711465425770ed2ee2f1cf00ce071835265e0851a7dc4600ab4b007550e","impliedFormat":1},{"version":"7e49f52a159435fc8df4de9dc377ef5860732ca2dc9efec1640531d3cf5da7a3","impliedFormat":1},{"version":"dd4bde4bdc2e5394aed6855e98cf135dfdf5dd6468cad842e03116d31bbcc9bc","impliedFormat":1},{"version":"4d4e879009a84a47c05350b8dca823036ba3a29a3038efed1be76c9f81e45edf","affectsGlobalScope":true,"impliedFormat":1},{"version":"cf83d90d5faf27b994c2e79af02e32b555dbfe42cd9bd1571445f2168d1f4e2d","impliedFormat":1},{"version":"9ba13b47cb450a438e3076c4a3f6afb9dc85e17eae50f26d4b2d72c0688c9251","impliedFormat":1},{"version":"b64cd4401633ea4ecadfd700ddc8323a13b63b106ac7127c1d2726f32424622c","impliedFormat":1},{"version":"37c6e5fe5715814412b43cc9b50b24c67a63c4e04e753e0d1305970d65417a60","impliedFormat":1},{"version":"0e28335ac43f4d94dd2fe6d9e6fa6813570640839addd10d309d7985f33a6308","impliedFormat":1},{"version":"ee0e4946247f842c6dd483cbb60a5e6b484fee07996e3a7bc7343dfb68a04c5d","impliedFormat":1},{"version":"ef051f42b7e0ef5ca04552f54c4552eac84099d64b6c5ad0ef4033574b6035b8","impliedFormat":1},{"version":"853a43154f1d01b0173d9cbd74063507ece57170bad7a3b68f3fa1229ad0a92f","impliedFormat":1},{"version":"56231e3c39a031bfb0afb797690b20ed4537670c93c0318b72d5180833d98b72","impliedFormat":1},{"version":"5cc7c39031bfd8b00ad58f32143d59eb6ffc24f5d41a20931269011dccd36c5e","impliedFormat":1},{"version":"b0b69c61b0f0ec8ca15db4c8c41f6e77f4cacb784d42bca948f42dea33e8757e","affectsGlobalScope":true,"impliedFormat":1},{"version":"f96a48183254c00d24575401f1a761b4ce4927d927407e7862a83e06ce5d6964","impliedFormat":1},{"version":"cc25940cfb27aa538e60d465f98bb5068d4d7d33131861ace43f04fe6947d68f","impliedFormat":1},{"version":"e6f370b5c1d52edabb93ef055d0c0c396a98be77db8aa022fcc3670787b8b5f5","impliedFormat":1},{"version":"01ff95aa1443e3f7248974e5a771f513cb2ac158c8898f470a1792f817bee497","impliedFormat":1},{"version":"9d96a7ce809392ff2cb99691acf7c62e632fe56897356ba013b689277aca3619","impliedFormat":1},{"version":"42a05d8f239f74587d4926aba8cc54792eed8e8a442c7adc9b38b516642aadfe","impliedFormat":1},{"version":"5d21b58d60383cc6ab9ad3d3e265d7d25af24a2c9b506247e0e50b0a884920be","impliedFormat":1},{"version":"101f482fd48cb4c7c0468dcc6d62c843d842977aea6235644b1edd05e81fbf22","impliedFormat":1},{"version":"ae6757460f37078884b1571a3de3ebaf724d827d7e1d53626c02b3c2a408ac63","affectsGlobalScope":true,"impliedFormat":1},{"version":"27c0a08e343c6a0ae17bd13ba6d44a9758236dc904cd5e4b43456996cd51f520","impliedFormat":1},{"version":"3ef397f12387eff17f550bc484ea7c27d21d43816bbe609d495107f44b97e933","impliedFormat":1},{"version":"1023282e2ba810bc07905d3668349fbd37a26411f0c8f94a70ef3c05fe523fcf","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"6f80e51ba310608cd71bcdc09a171d7bbfb3b316048601c9ec215ce16a8dcfbc","impliedFormat":1},{"version":"10947bb49601aeec9ea1dddf61ef6e4f8442f949bd40a8008e12b129deb037be","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f2c62938251b45715fd2a9887060ec4fbc8724727029d1cbce373747252bdd7","impliedFormat":1},{"version":"e3ace08b6bbd84655d41e244677b474fd995923ffef7149ddb68af8848b60b05","impliedFormat":1},{"version":"132580b0e86c48fab152bab850fc57a4b74fe915c8958d2ccb052b809a44b61c","impliedFormat":1},{"version":"af4ab0aa8908fc9a655bb833d3bc28e117c4f0e1038c5a891546158beb25accb","impliedFormat":1},{"version":"69c9a5a9392e8564bd81116e1ed93b13205201fb44cb35a7fde8c9f9e21c4b23","impliedFormat":1},{"version":"5f8fc37f8434691ffac1bfd8fc2634647da2c0e84253ab5d2dd19a7718915b35","impliedFormat":1},{"version":"5981c2340fd8b076cae8efbae818d42c11ffc615994cb060b1cd390795f1be2b","impliedFormat":1},{"version":"1641d32611fc7aa82cdd9fa38ff18349aac4eda9e032ced76b21943673887f9a","impliedFormat":1},{"version":"ed4f674fc8c0c993cc7e145069ac44129e03519b910c62be206a0cc777bdc60b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0250da3eb85c99624f974e77ef355cdf86f43980251bc371475c2b397ba55bcd","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"3d3a5f27ffbc06c885dd4d5f9ee20de61faf877fe2c3a7051c4825903d9a7fdc","impliedFormat":1},{"version":"12806f9f085598ef930edaf2467a5fa1789a878fba077cd27e85dc5851e11834","impliedFormat":1},{"version":"17d06eb5709839c7ce719f0c38ada6f308fb433f2cd6d8c87b35856e07400950","impliedFormat":1},{"version":"a43fe41c33d0a192a0ecaf9b92e87bef3709c9972e6d53c42c49251ccb962d69","impliedFormat":1},{"version":"a177959203c017fad3ecc4f3d96c8757a840957a4959a3ae00dab9d35961ca6c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc727ccf9b36e257ff982ea0badeffbfc2c151802f741bddff00c6af3b784cf","impliedFormat":1},{"version":"2a00d005e3af99cd1cfa75220e60c61b04bfb6be7ca7453bfe2ef6cca37cc03c","impliedFormat":1},{"version":"4844a4c9b4b1e812b257676ed8a80b3f3be0e29bf05e742cc2ea9c3c6865e6c6","impliedFormat":1},{"version":"064878a60367e0407c42fb7ba02a2ea4d83257357dc20088e549bd4d89433e9c","impliedFormat":1},{"version":"14d4bd22d1b05824971b98f7e91b2484c90f1a684805c330476641417c3d9735","impliedFormat":1},{"version":"586eaf66bace2e731cee0ddfbfac326ad74a83c1acfeac4afb2db85ad23226c7","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"d1a14d87cedcf4f0b8173720d6eb29cc02878bf2b6dabf9c9d9cee742f275368","impliedFormat":1},{"version":"41ef7992c555671a8fe54db302788adefa191ded810a50329b79d20a6772d14c","impliedFormat":1},{"version":"041a7781b9127ab568d2cdcce62c58fdea7c7407f40b8c50045d7866a2727130","impliedFormat":1},{"version":"b37f83e7deea729aa9ce5593f78905afb45b7532fdff63041d374f60059e7852","impliedFormat":1},{"version":"e1cb68f3ef3a8dd7b2a9dfb3de482ed6c0f1586ba0db4e7d73c1d2147b6ffc51","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[[65,70]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":199,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":10},"referencedMap":[[132,1],[133,1],[134,2],[73,3],[135,4],[136,5],[137,6],[71,7],[138,8],[139,9],[140,10],[141,11],[142,12],[143,13],[144,13],[145,14],[146,15],[147,16],[148,17],[74,7],[72,7],[149,18],[150,19],[151,20],[191,21],[152,22],[153,23],[154,22],[155,24],[156,25],[157,26],[158,27],[159,27],[160,27],[161,28],[162,29],[163,30],[164,31],[165,32],[166,33],[167,33],[168,34],[169,7],[170,7],[171,35],[172,36],[173,35],[174,37],[175,38],[176,39],[177,40],[178,41],[179,42],[180,43],[181,44],[182,45],[183,46],[184,47],[185,48],[186,49],[187,50],[188,51],[75,22],[76,7],[77,52],[78,53],[79,7],[80,54],[81,7],[123,55],[124,56],[125,57],[126,57],[127,58],[128,7],[129,4],[130,59],[131,56],[189,60],[190,61],[62,7],[63,7],[12,7],[11,7],[2,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[3,7],[21,7],[22,7],[4,7],[23,7],[27,7],[24,7],[25,7],[26,7],[28,7],[29,7],[30,7],[5,7],[31,7],[32,7],[33,7],[34,7],[6,7],[38,7],[35,7],[36,7],[37,7],[39,7],[7,7],[40,7],[45,7],[46,7],[41,7],[42,7],[43,7],[44,7],[8,7],[50,7],[47,7],[48,7],[49,7],[51,7],[9,7],[52,7],[53,7],[54,7],[56,7],[55,7],[57,7],[58,7],[10,7],[59,7],[1,7],[60,7],[61,7],[99,62],[111,63],[97,64],[112,65],[121,66],[88,67],[89,68],[87,69],[120,70],[115,71],[119,72],[91,73],[108,74],[90,75],[118,76],[85,77],[86,71],[92,78],[93,7],[98,79],[96,78],[83,80],[122,81],[113,82],[102,83],[101,78],[103,84],[106,85],[100,86],[104,87],[116,70],[94,88],[95,89],[107,90],[84,65],[110,91],[109,78],[105,92],[114,7],[82,7],[117,93],[66,94],[70,95],[68,96],[67,97],[69,98],[65,7],[64,7]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}