Repository navigation
Expand file tree
/
Copy pathintegration.ts
More file actions
68 lines (66 loc) · 2.44 KB
/
Copy pathintegration.ts
File metadata and controls
68 lines (66 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { AgentDescriptor } from '@garcon/common/agent-integration';
import type { AgentHost } from './host.js';
import type {
AgentAuth,
AgentAttachments,
AgentCatalog,
AgentCommands,
AgentEndpoints,
AgentCompaction,
AgentLifecycle,
AgentMigration,
AgentSettings,
AgentSingleQuery,
AgentSteering,
AgentReadiness,
AgentLiteralExecution,
} from './services.js';
import type { AgentNativeFork } from './native-fork.js';
import type {
AgentConfigurationValidation,
AgentProjectPathUpdates,
AgentSessionConfigurationUpdates,
} from './execution.js';
import type { AgentExecutionV5 } from './execution-v5.js';
import type { AgentPermissions, AgentProducers } from './producer.js';
import type {
AgentHistoryImport,
AgentNativeActivityProbe,
AgentNativeSessionAccess,
} from './native-history.js';
import type { AgentUsageHistory } from './usage-history.js';
export interface AgentIntegration {
readonly descriptor: AgentDescriptor;
readonly literalExecution: AgentLiteralExecution | null;
readonly readiness: AgentReadiness | null;
readonly attachments: AgentAttachments | null;
readonly execution: AgentExecutionV5;
readonly producers: AgentProducers;
readonly permissions: AgentPermissions;
readonly catalog: AgentCatalog;
readonly settings: AgentSettings;
readonly lifecycle: AgentLifecycle;
readonly migration: AgentMigration;
readonly auth: AgentAuth | null;
readonly commands: AgentCommands | null;
readonly compaction: AgentCompaction | null;
readonly forking: AgentNativeFork | null;
readonly steering: AgentSteering | null;
readonly endpoints: AgentEndpoints | null;
readonly singleQuery: AgentSingleQuery | null;
// Imports what a chat's recorded native session held before its transcript
// ledger existed; core skips it for a chat that records no native session.
readonly legacyHistoryImport: AgentHistoryImport | null;
readonly nativeHistoryImport: AgentHistoryImport | null;
readonly nativeActivity: AgentNativeActivityProbe | null;
readonly nativeSessions: AgentNativeSessionAccess | null;
readonly configurationValidation: AgentConfigurationValidation | null;
readonly sessionConfiguration: AgentSessionConfigurationUpdates | null;
readonly projectPathUpdates: AgentProjectPathUpdates | null;
readonly usageHistory: AgentUsageHistory | null;
}
export interface AgentIntegrationClass {
new (host: AgentHost): AgentIntegration;
readonly integrationId: string;
readonly apiVersion: 5;
}