@askthew/mcp-plugin 0.4.10 → 0.4.12
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/README.md +43 -179
- package/dist/cli.d.ts +0 -6
- package/dist/cli.js +255 -723
- package/dist/cloud-client.d.ts +80 -0
- package/dist/cloud-client.js +150 -0
- package/dist/index.d.ts +20 -123
- package/dist/index.js +155 -1353
- package/dist/install.d.ts +33 -119
- package/dist/install.js +140 -614
- package/dist/lib/paths.d.ts +2 -2
- package/dist/lib/paths.js +6 -6
- package/dist/outbox.d.ts +32 -0
- package/dist/outbox.js +101 -0
- package/dist/redaction.d.ts +11 -0
- package/dist/redaction.js +52 -0
- package/package.json +2 -2
- package/dist/lib/cli-actions.d.ts +0 -28
- package/dist/lib/cli-actions.js +0 -104
- package/dist/lib/free-install-registration.d.ts +0 -27
- package/dist/lib/free-install-registration.js +0 -52
- package/dist/lib/free-tier-policy.d.ts +0 -22
- package/dist/lib/free-tier-policy.js +0 -52
- package/dist/lib/local-identity.d.ts +0 -44
- package/dist/lib/local-identity.js +0 -81
- package/dist/lib/local-store.d.ts +0 -130
- package/dist/lib/local-store.js +0 -606
- package/dist/lib/loopback-auth.d.ts +0 -8
- package/dist/lib/loopback-auth.js +0 -30
- package/dist/lib/telemetry.d.ts +0 -25
- package/dist/lib/telemetry.js +0 -155
- package/dist/lib/timeline-insights.d.ts +0 -23
- package/dist/lib/timeline-insights.js +0 -115
- package/dist/lib/tip-engine.d.ts +0 -18
- package/dist/lib/tip-engine.js +0 -237
- package/dist/lib/upgrade-nudge.d.ts +0 -19
- package/dist/lib/upgrade-nudge.js +0 -37
- package/dist/lib/upgrade-sync.d.ts +0 -38
- package/dist/lib/upgrade-sync.js +0 -60
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
export type SignalKind = "setup_complete" | "session_checkpoint" | "direction_change" | "implementation_update" | "verification_result" | "final_summary";
|
|
2
|
-
export type DecisionStatus = "proposed" | "committed" | "shipped" | "abandoned";
|
|
3
|
-
export interface LocalSignalInput {
|
|
4
|
-
sessionId: string;
|
|
5
|
-
sequence: number;
|
|
6
|
-
kind: SignalKind;
|
|
7
|
-
summary: string;
|
|
8
|
-
evidence?: unknown[];
|
|
9
|
-
filesTouched?: string[];
|
|
10
|
-
commandsRun?: string[];
|
|
11
|
-
metadata?: Record<string, unknown>;
|
|
12
|
-
scopeKey?: string | null;
|
|
13
|
-
}
|
|
14
|
-
export interface LocalSignal {
|
|
15
|
-
id: number;
|
|
16
|
-
sessionId: string;
|
|
17
|
-
sequence: number;
|
|
18
|
-
kind: SignalKind;
|
|
19
|
-
summary: string;
|
|
20
|
-
evidence: unknown[];
|
|
21
|
-
filesTouched: string[];
|
|
22
|
-
commandsRun: string[];
|
|
23
|
-
metadata: Record<string, unknown>;
|
|
24
|
-
capturedAt: string;
|
|
25
|
-
scopeKey?: string | null;
|
|
26
|
-
}
|
|
27
|
-
export interface LocalDecision {
|
|
28
|
-
id: string;
|
|
29
|
-
sessionId: string | null;
|
|
30
|
-
headline: string;
|
|
31
|
-
why: string | null;
|
|
32
|
-
status: DecisionStatus;
|
|
33
|
-
alignment: "aligned" | "orthogonal" | "conflicts" | "ambiguous" | null;
|
|
34
|
-
files: string[];
|
|
35
|
-
sourceSignalIds: number[];
|
|
36
|
-
rawContent: string;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
uploadedAt: string | null;
|
|
40
|
-
scopeKey?: string | null;
|
|
41
|
-
proposedAt?: string | null;
|
|
42
|
-
committedAt?: string | null;
|
|
43
|
-
shippedAt?: string | null;
|
|
44
|
-
abandonedAt?: string | null;
|
|
45
|
-
}
|
|
46
|
-
export interface LocalDecisionInput {
|
|
47
|
-
id?: string;
|
|
48
|
-
sessionId?: string | null;
|
|
49
|
-
headline?: string;
|
|
50
|
-
why?: string | null;
|
|
51
|
-
status?: DecisionStatus;
|
|
52
|
-
alignment?: LocalDecision["alignment"];
|
|
53
|
-
files?: string[];
|
|
54
|
-
sourceSignalIds?: number[];
|
|
55
|
-
rawContent: string;
|
|
56
|
-
scopeKey?: string | null;
|
|
57
|
-
}
|
|
58
|
-
export interface TelemetryOutboxRow {
|
|
59
|
-
id: number;
|
|
60
|
-
payload: Record<string, unknown>;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
attempts: number;
|
|
63
|
-
lastAttemptAt: string | null;
|
|
64
|
-
deliveredAt: string | null;
|
|
65
|
-
}
|
|
66
|
-
export declare class LocalStore {
|
|
67
|
-
private readonly storePath;
|
|
68
|
-
private data;
|
|
69
|
-
private db;
|
|
70
|
-
private jsonMode;
|
|
71
|
-
private jsonPath;
|
|
72
|
-
private constructor();
|
|
73
|
-
static open(input?: {
|
|
74
|
-
path?: string;
|
|
75
|
-
}): LocalStore;
|
|
76
|
-
get usingJsonFallback(): boolean;
|
|
77
|
-
close(): void;
|
|
78
|
-
migrate(): void;
|
|
79
|
-
getMeta(key: string): string;
|
|
80
|
-
setMeta(key: string, value: string): void;
|
|
81
|
-
insertSignal(input: LocalSignalInput): LocalSignal;
|
|
82
|
-
listSignals(input?: {
|
|
83
|
-
sessionId?: string;
|
|
84
|
-
scopeKey?: string | null;
|
|
85
|
-
since?: string;
|
|
86
|
-
limit?: number;
|
|
87
|
-
cursor?: string;
|
|
88
|
-
uploaded?: boolean;
|
|
89
|
-
}): LocalSignal[];
|
|
90
|
-
getSignal(id: number): LocalSignal | null;
|
|
91
|
-
mostRecentSessionId(input?: {
|
|
92
|
-
scopeKey?: string | null;
|
|
93
|
-
}): any;
|
|
94
|
-
createDecision(input: LocalDecisionInput): LocalDecision;
|
|
95
|
-
updateDecision(id: string, patch: Partial<Omit<LocalDecision, "id" | "createdAt">>): LocalDecision | null;
|
|
96
|
-
deleteDecision(id: string): boolean;
|
|
97
|
-
getDecision(id: string): LocalDecision | null;
|
|
98
|
-
listDecisions(input?: {
|
|
99
|
-
status?: DecisionStatus;
|
|
100
|
-
limit?: number;
|
|
101
|
-
since?: string;
|
|
102
|
-
cursor?: string;
|
|
103
|
-
sessionId?: string;
|
|
104
|
-
scopeKey?: string | null;
|
|
105
|
-
pendingUploadOnly?: boolean;
|
|
106
|
-
}): LocalDecision[];
|
|
107
|
-
listSessionIds(input?: {
|
|
108
|
-
limit?: number;
|
|
109
|
-
scopeKey?: string | null;
|
|
110
|
-
}): string[];
|
|
111
|
-
listSignalsByIds(ids: number[]): LocalSignal[];
|
|
112
|
-
getDecisionForSignal(signalId: number): LocalDecision | null;
|
|
113
|
-
enqueueTelemetry(payload: Record<string, unknown>): number;
|
|
114
|
-
listTelemetryOutbox(input?: {
|
|
115
|
-
undeliveredOnly?: boolean;
|
|
116
|
-
limit?: number;
|
|
117
|
-
}): TelemetryOutboxRow[];
|
|
118
|
-
markTelemetryAttempt(id: number, delivered: boolean): void;
|
|
119
|
-
stats(): {
|
|
120
|
-
signals: number;
|
|
121
|
-
decisions: number;
|
|
122
|
-
decisionsByStatus: Record<string, number>;
|
|
123
|
-
lastSessionId: string | null;
|
|
124
|
-
jsonFallback: boolean;
|
|
125
|
-
};
|
|
126
|
-
private openDatabase;
|
|
127
|
-
private persistJson;
|
|
128
|
-
private nextJsonId;
|
|
129
|
-
private addColumnIfMissing;
|
|
130
|
-
}
|