@steerable/agent-shell 0.12.7 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/credentials.d.ts +83 -0
- package/dist/auth/credentials.js +426 -0
- package/dist/auth/index.d.ts +33 -9
- package/dist/auth/index.js +85 -0
- package/dist/host/external-pack-loader.d.ts +40 -0
- package/dist/host/external-pack-loader.js +247 -0
- package/dist/host/http-routes.d.ts +6 -2
- package/dist/host/http-routes.js +5 -2
- package/dist/host/pack-assembly.d.ts +9 -1
- package/dist/host/runtime.js +54 -1
- package/dist/local-backend/coreloop-stream.d.ts +4 -0
- package/dist/local-backend/coreloop-stream.js +4 -0
- package/dist/local-backend/fact-chain.d.ts +38 -0
- package/dist/local-backend/fact-chain.js +145 -0
- package/dist/local-backend/router.d.ts +3 -1
- package/dist/local-backend/router.js +329 -35
- package/dist/local-backend/state-reconcile.d.ts +42 -0
- package/dist/local-backend/state-reconcile.js +81 -0
- package/dist/local-backend/title-refresh.d.ts +39 -0
- package/dist/local-backend/title-refresh.js +80 -0
- package/dist/local-backend/turn-security-context.d.ts +42 -0
- package/dist/local-backend/turn-security-context.js +62 -0
- package/dist/local-backend/ui-surface.d.ts +75 -0
- package/dist/local-backend/ui-surface.js +368 -0
- package/dist/local-executor.d.ts +3 -0
- package/dist/local-executor.js +40 -1
- package/dist/memory/authoring-candidates.d.ts +26 -0
- package/dist/memory/authoring-candidates.js +73 -0
- package/dist/memory/injector.d.ts +34 -0
- package/dist/memory/injector.js +111 -0
- package/dist/memory/routes.d.ts +16 -0
- package/dist/memory/routes.js +146 -0
- package/dist/memory/store.d.ts +176 -0
- package/dist/memory/store.js +623 -0
- package/dist/memory/tools.d.ts +83 -0
- package/dist/memory/tools.js +143 -0
- package/dist/present-files.d.ts +25 -1
- package/dist/present-files.js +170 -2
- package/dist/scenario/applications.d.ts +52 -0
- package/dist/scenario/applications.js +143 -0
- package/dist/scenario/pack.d.ts +1 -1
- package/dist/security/policy-digest.d.ts +28 -0
- package/dist/security/policy-digest.js +104 -0
- package/dist/server/http-server.js +23 -6
- package/dist/sidecar/boot.d.ts +1 -0
- package/dist/sidecar/boot.js +2 -0
- package/dist/sidecar/rejected-before-effect.d.ts +22 -0
- package/dist/sidecar/rejected-before-effect.js +63 -0
- package/dist/sidecar/reverse-approval.d.ts +2 -0
- package/dist/sidecar/reverse-approval.js +28 -5
- package/dist/sidecar/reverse-tools.d.ts +3 -0
- package/dist/sidecar/reverse-tools.js +129 -17
- package/dist/sidecar/types.d.ts +6 -0
- package/dist/storage/fde-fallback.d.ts +4 -0
- package/dist/storage/fde-fallback.js +354 -0
- package/dist/storage/fde-types.d.ts +215 -0
- package/dist/storage/fde-types.js +1 -0
- package/dist/storage/index.d.ts +113 -1
- package/dist/storage/index.js +797 -0
- package/dist/storage/insights-redact.d.ts +4 -1
- package/dist/storage/insights-redact.js +6 -1
- package/dist/storage/process-locks.d.ts +1 -1
- package/dist/storage/process-locks.js +1 -1
- package/dist/storage/scoped-store.d.ts +3 -1
- package/dist/tool-presentation.js +20 -0
- package/dist/tool-router.d.ts +20 -1
- package/dist/tool-router.js +76 -12
- package/package.json +5 -5
package/dist/storage/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { type LlmSettings } from './llm-settings.js';
|
|
|
3
3
|
import { type TelemetrySettings } from './telemetry-settings.js';
|
|
4
4
|
import { type WebSearchSettings } from './web-search-settings.js';
|
|
5
5
|
import { type InsightKind, type InsightsProfile, type InsightsSettings, type InsightsSettingsPatch } from './insights-settings.js';
|
|
6
|
+
import type { ChatDeliverableRecord, ChatUiReceiptRecord, ChatUiSurfaceRecord, MemoryDocumentRecord, MemoryEntryRecord, MemoryRefinementMetaRecord, MemoryScopeKind, PackCredentialRecord, PendingReconciliationRecord, Phase9ScopedStore } from './fde-types.js';
|
|
7
|
+
import type { UiSurfaceSpec, VerifierIssue } from '../scenario/pack.js';
|
|
6
8
|
import { type UsageSummary } from './usage-summary.js';
|
|
7
9
|
import type { ReliabilitySummary } from './reliability-summary.js';
|
|
8
10
|
import type { TenantScope } from './driver.js';
|
|
@@ -143,7 +145,7 @@ export interface InsightOutboxRow {
|
|
|
143
145
|
uploadError: string | null;
|
|
144
146
|
}
|
|
145
147
|
declare const INSIGHTS_EXPORT_SCHEMA = "deeppath-agent-insights/v1";
|
|
146
|
-
export declare class SqliteScopedStore implements ScopedStore {
|
|
148
|
+
export declare class SqliteScopedStore implements ScopedStore, Phase9ScopedStore {
|
|
147
149
|
private readonly db;
|
|
148
150
|
readonly scope: TenantScope;
|
|
149
151
|
constructor(db: Database.Database, scope: TenantScope);
|
|
@@ -430,6 +432,116 @@ export declare class SqliteScopedStore implements ScopedStore {
|
|
|
430
432
|
private mapHarnessTrace;
|
|
431
433
|
private mapTask;
|
|
432
434
|
private mapChatAgent;
|
|
435
|
+
getCustomSetting(key: string): Promise<string | null>;
|
|
436
|
+
setCustomSetting(key: string, value: string | null): Promise<void>;
|
|
437
|
+
upsertPackCredential(input: {
|
|
438
|
+
ownerUserId: string;
|
|
439
|
+
sourceId: string;
|
|
440
|
+
authKind: string;
|
|
441
|
+
cipherText: string;
|
|
442
|
+
iv: string;
|
|
443
|
+
authTag: string;
|
|
444
|
+
updatedBy: string;
|
|
445
|
+
}): Promise<PackCredentialRecord>;
|
|
446
|
+
getPackCredential(ownerUserId: string, sourceId: string): Promise<PackCredentialRecord | null>;
|
|
447
|
+
listPackCredentials(ownerUserIds?: readonly string[]): Promise<PackCredentialRecord[]>;
|
|
448
|
+
deletePackCredential(ownerUserId: string, sourceId: string): Promise<boolean>;
|
|
449
|
+
private mapPackCredential;
|
|
450
|
+
createPendingReconciliation(input: {
|
|
451
|
+
id?: string;
|
|
452
|
+
chatId: string;
|
|
453
|
+
toolName: string;
|
|
454
|
+
argsDigest: string;
|
|
455
|
+
argsPreview: string;
|
|
456
|
+
errorDetail: string;
|
|
457
|
+
}): Promise<PendingReconciliationRecord>;
|
|
458
|
+
listPendingReconciliations(chatId: string, options?: {
|
|
459
|
+
includeResolved?: boolean;
|
|
460
|
+
}): Promise<PendingReconciliationRecord[]>;
|
|
461
|
+
resolvePendingReconciliation(input: {
|
|
462
|
+
chatId: string;
|
|
463
|
+
reconciliationId: string;
|
|
464
|
+
status: 'confirmed_executed' | 'confirmed_not_executed';
|
|
465
|
+
resolutionNote?: string | null;
|
|
466
|
+
resolvedBy: string;
|
|
467
|
+
}): Promise<PendingReconciliationRecord | null>;
|
|
468
|
+
private mapPendingReconciliation;
|
|
469
|
+
upsertChatUiSurface(input: {
|
|
470
|
+
chatId: string;
|
|
471
|
+
spec: UiSurfaceSpec;
|
|
472
|
+
state?: Record<string, unknown>;
|
|
473
|
+
status?: 'active' | 'submitted' | 'archived';
|
|
474
|
+
}): Promise<ChatUiSurfaceRecord>;
|
|
475
|
+
getChatUiSurface(chatId: string, surfaceId: string): Promise<ChatUiSurfaceRecord | null>;
|
|
476
|
+
listChatUiSurfaces(chatId: string): Promise<ChatUiSurfaceRecord[]>;
|
|
477
|
+
private mapChatUiSurface;
|
|
478
|
+
recordChatUiReceipt(input: {
|
|
479
|
+
chatId: string;
|
|
480
|
+
surfaceId: string;
|
|
481
|
+
revision: number;
|
|
482
|
+
actionId: string;
|
|
483
|
+
toolName: string;
|
|
484
|
+
payload: Record<string, unknown>;
|
|
485
|
+
sourceFingerprints: Record<string, string>;
|
|
486
|
+
result: Record<string, unknown>;
|
|
487
|
+
actorId: string;
|
|
488
|
+
}): Promise<ChatUiReceiptRecord>;
|
|
489
|
+
listChatUiReceipts(chatId: string, surfaceId?: string): Promise<ChatUiReceiptRecord[]>;
|
|
490
|
+
saveChatDeliverable(input: {
|
|
491
|
+
id?: string;
|
|
492
|
+
chatId: string;
|
|
493
|
+
messageId?: string | null;
|
|
494
|
+
filePath: string;
|
|
495
|
+
fileName: string;
|
|
496
|
+
mimeType: string;
|
|
497
|
+
sizeBytes: number;
|
|
498
|
+
sha256: string;
|
|
499
|
+
verificationStatus: 'verified' | 'warnings' | 'failed' | 'unverified';
|
|
500
|
+
verifierId?: string | null;
|
|
501
|
+
issues?: readonly VerifierIssue[];
|
|
502
|
+
summary?: string | null;
|
|
503
|
+
reportPath?: string | null;
|
|
504
|
+
sourceRefs?: readonly string[];
|
|
505
|
+
toolCalls?: ReadonlyArray<{
|
|
506
|
+
id?: string;
|
|
507
|
+
tool: string;
|
|
508
|
+
summary?: string;
|
|
509
|
+
}>;
|
|
510
|
+
}): Promise<ChatDeliverableRecord>;
|
|
511
|
+
listChatDeliverables(chatId: string): Promise<ChatDeliverableRecord[]>;
|
|
512
|
+
getMemoryDocument(scopeKind: MemoryScopeKind, scopeId: string): Promise<MemoryDocumentRecord | null>;
|
|
513
|
+
putMemoryDocument(input: {
|
|
514
|
+
scopeKind: MemoryScopeKind;
|
|
515
|
+
scopeId: string;
|
|
516
|
+
contentMarkdown: string;
|
|
517
|
+
contentSha256: string;
|
|
518
|
+
updatedBy: string;
|
|
519
|
+
sourceChatId?: string | null;
|
|
520
|
+
}): Promise<MemoryDocumentRecord>;
|
|
521
|
+
listMemoryEntries(scopeKind?: MemoryScopeKind, scopeId?: string, includeRevoked?: boolean): Promise<MemoryEntryRecord[]>;
|
|
522
|
+
upsertMemoryEntry(input: {
|
|
523
|
+
id?: string;
|
|
524
|
+
scopeKind: MemoryScopeKind;
|
|
525
|
+
scopeId: string;
|
|
526
|
+
content: string;
|
|
527
|
+
contentSha256: string;
|
|
528
|
+
sourceChatId?: string | null;
|
|
529
|
+
}): Promise<{
|
|
530
|
+
entry: MemoryEntryRecord;
|
|
531
|
+
skippedRevoked: boolean;
|
|
532
|
+
}>;
|
|
533
|
+
revokeMemoryEntry(entryId: string): Promise<MemoryEntryRecord | null>;
|
|
534
|
+
isMemoryHashRevoked(scopeKind: MemoryScopeKind, scopeId: string, contentSha256: string): Promise<boolean>;
|
|
535
|
+
clearMemoryScope(scopeKind?: MemoryScopeKind, scopeId?: string): Promise<number>;
|
|
536
|
+
getMemoryRefinementMeta(scopeKind: MemoryScopeKind, scopeId: string): Promise<MemoryRefinementMetaRecord>;
|
|
537
|
+
setMemoryRefinementMeta(input: {
|
|
538
|
+
scopeKind: MemoryScopeKind;
|
|
539
|
+
scopeId: string;
|
|
540
|
+
refinedSessionCount: number;
|
|
541
|
+
lastRefinedAt?: string | null;
|
|
542
|
+
lastStatus?: string | null;
|
|
543
|
+
}): Promise<MemoryRefinementMetaRecord>;
|
|
544
|
+
private mapMemoryEntry;
|
|
433
545
|
private getSetting;
|
|
434
546
|
private setSetting;
|
|
435
547
|
private safeJson;
|