[Init] Initial commit - NetMesh terminal manager
Some checks failed
build-packages / resolve bundled mosh-client (push) Has been cancelled
build-packages / resolve bundled et-client (push) Has been cancelled
build-packages / build-macos (push) Has been cancelled
build-packages / build-windows (push) Has been cancelled
build-packages / build-linux-x64 (push) Has been cancelled
build-packages / build-linux-arm64 (push) Has been cancelled
build-packages / release (push) Has been cancelled
build-packages / update Nix release metadata (push) Has been cancelled
build-packages / bump homebrew tap (push) Has been cancelled
test / lint-and-test (push) Has been cancelled
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
build-et-binaries / build-linux-x64 (push) Has been cancelled
build-et-binaries / build-linux-arm64 (push) Has been cancelled
build-et-binaries / build-macos-universal (push) Has been cancelled
build-et-binaries / build-windows-x64 (push) Has been cancelled
build-et-binaries / release (push) Has been cancelled
Some checks failed
build-packages / resolve bundled mosh-client (push) Has been cancelled
build-packages / resolve bundled et-client (push) Has been cancelled
build-packages / build-macos (push) Has been cancelled
build-packages / build-windows (push) Has been cancelled
build-packages / build-linux-x64 (push) Has been cancelled
build-packages / build-linux-arm64 (push) Has been cancelled
build-packages / release (push) Has been cancelled
build-packages / update Nix release metadata (push) Has been cancelled
build-packages / bump homebrew tap (push) Has been cancelled
test / lint-and-test (push) Has been cancelled
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
build-et-binaries / build-linux-x64 (push) Has been cancelled
build-et-binaries / build-linux-arm64 (push) Has been cancelled
build-et-binaries / build-macos-universal (push) Has been cancelled
build-et-binaries / build-windows-x64 (push) Has been cancelled
build-et-binaries / release (push) Has been cancelled
This commit is contained in:
147
infrastructure/ai/harness/index.ts
Normal file
147
infrastructure/ai/harness/index.ts
Normal file
@@ -0,0 +1,147 @@
|
||||
export type {
|
||||
AgentBackend,
|
||||
AgentEvent,
|
||||
AgentEventListener,
|
||||
AgentEventType,
|
||||
ApprovalOutcome,
|
||||
CompactionEvent,
|
||||
CompactionTrace,
|
||||
ContextPrepareResult,
|
||||
ContextPrepareTrigger,
|
||||
ExternalBridgeHistoryMessage,
|
||||
TokenEstimatorKind,
|
||||
UsageEvent,
|
||||
PerformanceEvent,
|
||||
ModelCallStartEvent,
|
||||
StepEndEvent,
|
||||
} from './types';
|
||||
export type {
|
||||
TurnSteerFailureReason,
|
||||
TurnSteerInput,
|
||||
TurnSteerResult,
|
||||
} from './turnDrivers/types';
|
||||
|
||||
export { TraceStore, globalTraceStore } from './traceStore';
|
||||
export type { TraceExport } from './traceStore';
|
||||
|
||||
export { stopAgentTurn, clearChatSessionCancelled } from './agentStop';
|
||||
export type { AgentStopBridge, StopAgentTurnParams, StopAgentTurnReason } from './agentStop';
|
||||
|
||||
export { AgentRuntime } from './agentRuntime';
|
||||
export { globalAgentRuntime, getAgentRuntime } from './globalAgentRuntime';
|
||||
|
||||
export {
|
||||
estimateModelMessagesTokens,
|
||||
estimateModelMessagesTokensWithKind,
|
||||
estimateTextTokens,
|
||||
estimateUnknownTokens,
|
||||
} from './tokenEstimator';
|
||||
export type { EstimateModelMessagesTokensInput, EstimateModelMessagesTokensResult } from './tokenEstimator';
|
||||
|
||||
export { ToolOutputStore, globalToolOutputStore } from './toolOutputStore';
|
||||
export type {
|
||||
ToolOutputHandle,
|
||||
StoreToolOutputInput,
|
||||
ReadToolOutputInput,
|
||||
ToolOutputReadResult,
|
||||
ToolOutputPersistence,
|
||||
ToolOutputStoreOptions,
|
||||
} from './toolOutputStore';
|
||||
|
||||
export { ToolResultDedup, hashScopeKey, previewToolResult } from './toolResultDedup';
|
||||
export type { ToolResultDedupEntry } from './toolResultDedup';
|
||||
|
||||
export { cattyTurnDriver } from './turnDrivers/cattyTurnDriver';
|
||||
export { externalSdkTurnDriver } from './turnDrivers/externalSdkTurnDriver';
|
||||
export type {
|
||||
TurnInput,
|
||||
TurnResult,
|
||||
TurnDriver,
|
||||
TurnDriverContext,
|
||||
TurnUiCallbacks,
|
||||
CattyTurnInput,
|
||||
ExternalTurnInput,
|
||||
} from './turnDrivers/types';
|
||||
|
||||
export {
|
||||
prepareTurnContext,
|
||||
prepareStepContext,
|
||||
buildExternalBridgeContext,
|
||||
extractLatestUserGoal,
|
||||
} from './contextManager';
|
||||
export type { PrepareTurnContextInput, PostCompactReinjection } from './contextManager';
|
||||
|
||||
export {
|
||||
computeCompactionThreshold,
|
||||
computeTotalInputTokens,
|
||||
shouldCompactByBudget,
|
||||
DEFAULT_MAX_OUTPUT_TOKENS,
|
||||
} from './contextBudget';
|
||||
|
||||
export { SessionStateStore, globalSessionStateStore } from './sessionState';
|
||||
export type { CattySessionState } from './sessionState';
|
||||
|
||||
export { repairToolMessageIntegrity } from './toolMessageIntegrity';
|
||||
export { redactSecretsForModel } from './modelSecretRedaction';
|
||||
export { buildPromptContextSnapshot } from './promptContextSnapshot';
|
||||
export type { PromptContextSnapshot } from './promptContextSnapshot';
|
||||
|
||||
export { pruneStaleToolContext } from './staleContextPruner';
|
||||
export { pruneUntilFitsCompaction } from './compactionPruner';
|
||||
|
||||
export { CATTY_COMPACTION_STATUS_KEYS } from './compactionStatusKeys';
|
||||
|
||||
export { buildExternalBridgeContextMessages } from './externalBridgeContext';
|
||||
|
||||
export {
|
||||
fitTerminalExecuteResultForModel,
|
||||
MAX_LIVE_TERMINAL_STDOUT_CHARS,
|
||||
MAX_LIVE_TERMINAL_STDERR_CHARS,
|
||||
} from './terminalCompression';
|
||||
export type { TerminalExecuteResult, TerminalOutputHandle } from './terminalCompression';
|
||||
|
||||
export {
|
||||
encodeSdkSessionIdentity,
|
||||
parseSdkSessionIdentity,
|
||||
SDK_SESSION_ID_PREFIX,
|
||||
} from './sdkSessionIdentity';
|
||||
export type { SdkSessionIdentityPayload } from './sdkSessionIdentity';
|
||||
|
||||
export {
|
||||
mapCattyStreamChunkToAgentEvents,
|
||||
mapSdkStreamEventToAgentEvents,
|
||||
createHarnessEventSink,
|
||||
} from './agentEventAdapter';
|
||||
export type { StreamEventContext } from './agentEventAdapter';
|
||||
|
||||
export {
|
||||
compactCattyMessages,
|
||||
prepareCattyMessagesForStream,
|
||||
} from './cattyRuntime';
|
||||
export type { CompactCattyMessagesInput, CompactCattyMessagesResult } from './cattyRuntime';
|
||||
|
||||
export { createCattyToolsFromCatalog } from './capabilityTools';
|
||||
export type { CattyToolsBundle } from './capabilityTools';
|
||||
|
||||
export {
|
||||
createInitialCattyRuntimeContext,
|
||||
cattyRuntimeContextSchema,
|
||||
cattyToolContextSchema,
|
||||
} from './cattyRuntimeContext';
|
||||
export type { CattyRuntimeContext, CattyToolContext } from './cattyRuntimeContext';
|
||||
|
||||
export { buildCattyStreamTimeouts, buildCattyCompactionTimeout } from './streamTimeouts';
|
||||
export { buildCattyToolApproval } from './cattyToolApproval';
|
||||
|
||||
export {
|
||||
PermissionGrantStore,
|
||||
buildGrantFromApproval,
|
||||
createPermissionGrantId,
|
||||
getActivePermissionGrants,
|
||||
matchPermissionGrant,
|
||||
patternMatches,
|
||||
resolveCapabilityId,
|
||||
sanitizePermissionGrants,
|
||||
setActivePermissionGrants,
|
||||
} from './permissionGrants';
|
||||
export type { PermissionGrantMatchContext, PermissionGrantRule } from './permissionGrants';
|
||||
Reference in New Issue
Block a user