@jungjaehoon/mama-core 1.9.0 → 2.1.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/db/migrations/043-add-tool-trace-failure-code.sql +11 -0
- package/dist/agent-graph/alias-write.js +3 -0
- package/dist/agent-graph/entity-resolve.js +3 -7
- package/dist/agent-graph/graph-query.js +5 -4
- package/dist/agent-graph/types.d.ts +30 -0
- package/dist/cases/store.d.ts +0 -4
- package/dist/cases/store.js +0 -66
- package/dist/cases/wiki-page-index.d.ts +0 -13
- package/dist/cases/wiki-page-index.js +0 -153
- package/dist/connectors/event-index.d.ts +1 -22
- package/dist/connectors/event-index.js +0 -157
- package/dist/context-compile/channel-grant.d.ts +46 -0
- package/dist/context-compile/channel-grant.js +66 -0
- package/dist/context-compile/compiler.js +5 -2
- package/dist/context-compile/index.d.ts +1 -0
- package/dist/context-compile/index.js +1 -0
- package/dist/context-compile/packet-store.d.ts +0 -1
- package/dist/context-compile/packet-store.js +0 -16
- package/dist/context-compile/source-readers.d.ts +1 -0
- package/dist/context-compile/source-readers.js +156 -23
- package/dist/context-compile/types.d.ts +17 -0
- package/dist/context-compile/visibility.js +28 -4
- package/dist/db-adapter/node-sqlite-adapter.js +4 -0
- package/dist/db-manager.d.ts +0 -13
- package/dist/db-manager.js +0 -66
- package/dist/decision-formatter.d.ts +0 -11
- package/dist/decision-formatter.js +0 -122
- package/dist/decision-tracker.d.ts +0 -12
- package/dist/decision-tracker.js +0 -50
- package/dist/edges/ref-validation.d.ts +1 -2
- package/dist/edges/ref-validation.js +33 -13
- package/dist/edges/store.d.ts +1 -3
- package/dist/edges/store.js +0 -214
- package/dist/edges/types.d.ts +10 -0
- package/dist/embedding-client.d.ts +0 -17
- package/dist/embedding-client.js +0 -80
- package/dist/embedding-server/mobile/auth.d.ts +1 -10
- package/dist/embedding-server/mobile/auth.js +0 -15
- package/dist/embeddings.d.ts +0 -12
- package/dist/embeddings.js +0 -68
- package/dist/entities/audit-metrics.d.ts +0 -5
- package/dist/entities/audit-metrics.js +0 -4
- package/dist/entities/candidate-generator.d.ts +1 -2
- package/dist/entities/candidate-generator.js +0 -412
- package/dist/entities/entity-list.d.ts +0 -1
- package/dist/entities/entity-list.js +0 -96
- package/dist/entities/entity-orphan-list.d.ts +0 -9
- package/dist/entities/entity-orphan-list.js +0 -88
- package/dist/entities/entity-search.d.ts +0 -1
- package/dist/entities/entity-search.js +0 -147
- package/dist/entities/errors.d.ts +0 -10
- package/dist/entities/errors.js +1 -25
- package/dist/entities/lineage-store.d.ts +0 -23
- package/dist/entities/lineage-store.js +0 -104
- package/dist/entities/policy-store.d.ts +0 -9
- package/dist/entities/policy-store.js +0 -188
- package/dist/entities/provenance-query.d.ts +0 -1
- package/dist/entities/provenance-query.js +0 -164
- package/dist/entities/resolution-engine.d.ts +1 -8
- package/dist/entities/resolution-engine.js +0 -66
- package/dist/entities/rollback-preview.d.ts +0 -4
- package/dist/entities/rollback-preview.js +0 -232
- package/dist/entities/store.d.ts +1 -10
- package/dist/entities/store.js +0 -49
- package/dist/index.d.ts +15 -31
- package/dist/index.js +4 -46
- package/dist/mama-api.d.ts +19 -1
- package/dist/mama-api.js +97 -2
- package/dist/memory/api.d.ts +8 -0
- package/dist/memory/api.js +55 -2
- package/dist/memory/event-store.d.ts +0 -1
- package/dist/memory/event-store.js +0 -15
- package/dist/memory/finding-store.d.ts +0 -1
- package/dist/memory/finding-store.js +0 -12
- package/dist/memory/scope-backfill.d.ts +0 -3
- package/dist/memory/scope-backfill.js +0 -74
- package/dist/memory/scope-store.d.ts +0 -1
- package/dist/memory/scope-store.js +0 -4
- package/dist/memory/truth-store.d.ts +0 -3
- package/dist/memory/truth-store.js +0 -22
- package/dist/memory/types.d.ts +0 -1
- package/dist/memory/types.js +0 -13
- package/dist/memory-store.d.ts +0 -16
- package/dist/memory-store.js +0 -51
- package/dist/model-runs/tool-trace-store.js +9 -5
- package/dist/model-runs/types.d.ts +3 -0
- package/dist/ollama-client.d.ts +0 -9
- package/dist/ollama-client.js +0 -125
- package/dist/outcome-tracker.d.ts +0 -14
- package/dist/outcome-tracker.js +0 -44
- package/dist/progress-indicator.d.ts +0 -4
- package/dist/progress-indicator.js +0 -7
- package/dist/provenance/source-ref.d.ts +0 -9
- package/dist/provenance/source-ref.js +0 -145
- package/dist/query-intent.d.ts +0 -4
- package/dist/query-intent.js +0 -30
- package/dist/relevance-scorer.d.ts +0 -9
- package/dist/relevance-scorer.js +0 -81
- package/dist/search/feedback-store.d.ts +0 -1
- package/dist/search/feedback-store.js +0 -4
- package/dist/search/ranker-rescore.d.ts +0 -3
- package/dist/search/ranker-rescore.js +0 -27
- package/dist/search/ranker-trainer.d.ts +0 -8
- package/dist/search/ranker-trainer.js +0 -376
- package/dist/tier-validator.d.ts +0 -12
- package/dist/tier-validator.js +0 -56
- package/package.json +1 -10
- package/dist/cases/case-links.d.ts +0 -116
- package/dist/cases/case-links.js +0 -794
- package/dist/cases/composition-overrides.d.ts +0 -90
- package/dist/cases/composition-overrides.js +0 -724
- package/dist/cases/corrections.d.ts +0 -156
- package/dist/cases/corrections.js +0 -1045
- package/dist/cases/freshness.d.ts +0 -57
- package/dist/cases/freshness.js +0 -283
- package/dist/cases/live-state.d.ts +0 -48
- package/dist/cases/live-state.js +0 -256
- package/dist/cases/membership-explain.d.ts +0 -56
- package/dist/cases/membership-explain.js +0 -140
- package/dist/cases/membership-matcher.d.ts +0 -23
- package/dist/cases/membership-matcher.js +0 -193
- package/dist/cases/merge-split.d.ts +0 -61
- package/dist/cases/merge-split.js +0 -368
- package/dist/cases/role-inference.d.ts +0 -10
- package/dist/cases/role-inference.js +0 -85
- package/dist/cases/sqlite-transaction.d.ts +0 -10
- package/dist/cases/sqlite-transaction.js +0 -62
- package/dist/cases/target-ref.d.ts +0 -25
- package/dist/cases/target-ref.js +0 -22
- package/dist/cases/tombstone-sweeper.d.ts +0 -13
- package/dist/cases/tombstone-sweeper.js +0 -128
- package/dist/entities/entity-impact.d.ts +0 -41
- package/dist/entities/entity-impact.js +0 -140
- package/dist/entities/exact-merge-backfill.d.ts +0 -11
- package/dist/entities/exact-merge-backfill.js +0 -161
- package/dist/entities/lineage-backfill.d.ts +0 -12
- package/dist/entities/lineage-backfill.js +0 -101
- package/dist/memory-inject.d.ts +0 -24
- package/dist/memory-inject.js +0 -116
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { DatabaseAdapter } from '../db-manager.js';
|
|
2
|
-
import type { CaseMembershipSourceType } from './types.js';
|
|
3
|
-
export interface CaseCompositionCasInput {
|
|
4
|
-
expected_current_value_json?: string | null;
|
|
5
|
-
reconfirm_token?: string | null;
|
|
6
|
-
session_id?: string | null;
|
|
7
|
-
}
|
|
8
|
-
export interface PinCaseMembershipInput extends CaseCompositionCasInput {
|
|
9
|
-
case_id: string;
|
|
10
|
-
source_type: CaseMembershipSourceType;
|
|
11
|
-
source_id: string;
|
|
12
|
-
pinned_by: string;
|
|
13
|
-
reason: string;
|
|
14
|
-
now?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface UnpinCaseMembershipInput extends CaseCompositionCasInput {
|
|
17
|
-
case_id: string;
|
|
18
|
-
source_type: CaseMembershipSourceType;
|
|
19
|
-
source_id: string;
|
|
20
|
-
unpinned_by: string;
|
|
21
|
-
reason?: string | null;
|
|
22
|
-
now?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface PromoteCaseSourceInput extends CaseCompositionCasInput {
|
|
25
|
-
case_id: string;
|
|
26
|
-
source_type: 'decision' | 'event' | 'observation' | 'artifact';
|
|
27
|
-
source_id: string;
|
|
28
|
-
promoted_by: string;
|
|
29
|
-
reason: string;
|
|
30
|
-
now?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface CaseCompositionRequiresReconfirmResult {
|
|
33
|
-
kind: 'requires_reconfirm';
|
|
34
|
-
code: 'case.correction_requires_reconfirm';
|
|
35
|
-
case_id: string;
|
|
36
|
-
target_kind: 'membership';
|
|
37
|
-
target_ref_json: string;
|
|
38
|
-
current_value_json: string;
|
|
39
|
-
old_value_json: string | null;
|
|
40
|
-
proposed_new_value_json: string;
|
|
41
|
-
reconfirm_token: string;
|
|
42
|
-
reconfirm_token_expires_at: string;
|
|
43
|
-
message: string;
|
|
44
|
-
}
|
|
45
|
-
export type CaseCompositionRejectedCode = 'case.precompile_gap' | 'case.terminal_status' | 'case.membership_not_found' | 'case.membership_stale' | 'case.promote_invalid_source_type' | 'case.promote_source_not_active' | 'case.reconfirm_token_replayed';
|
|
46
|
-
export type PinCaseMembershipResult = {
|
|
47
|
-
kind: 'pinned';
|
|
48
|
-
case_id: string;
|
|
49
|
-
terminal_case_id: string;
|
|
50
|
-
resolved_via_case_id: string | null;
|
|
51
|
-
chain: string[];
|
|
52
|
-
membership_case_id: string;
|
|
53
|
-
} | CaseCompositionRequiresReconfirmResult | {
|
|
54
|
-
kind: 'rejected';
|
|
55
|
-
code: CaseCompositionRejectedCode;
|
|
56
|
-
message: string;
|
|
57
|
-
case_id?: string;
|
|
58
|
-
};
|
|
59
|
-
export type UnpinCaseMembershipResult = {
|
|
60
|
-
kind: 'unpinned';
|
|
61
|
-
case_id: string;
|
|
62
|
-
terminal_case_id: string;
|
|
63
|
-
resolved_via_case_id: string | null;
|
|
64
|
-
chain: string[];
|
|
65
|
-
membership_case_id: string;
|
|
66
|
-
} | CaseCompositionRequiresReconfirmResult | {
|
|
67
|
-
kind: 'rejected';
|
|
68
|
-
code: CaseCompositionRejectedCode;
|
|
69
|
-
message: string;
|
|
70
|
-
case_id?: string;
|
|
71
|
-
};
|
|
72
|
-
export type PromoteCaseSourceResult = {
|
|
73
|
-
kind: 'promoted';
|
|
74
|
-
case_id: string;
|
|
75
|
-
terminal_case_id: string;
|
|
76
|
-
resolved_via_case_id: string | null;
|
|
77
|
-
chain: string[];
|
|
78
|
-
membership_case_id: string;
|
|
79
|
-
canonical_decision_id: string | null;
|
|
80
|
-
canonical_event_id: string | null;
|
|
81
|
-
} | CaseCompositionRequiresReconfirmResult | {
|
|
82
|
-
kind: 'rejected';
|
|
83
|
-
code: CaseCompositionRejectedCode;
|
|
84
|
-
message: string;
|
|
85
|
-
case_id?: string;
|
|
86
|
-
};
|
|
87
|
-
export declare function pinCaseMembership(adapter: DatabaseAdapter, input: PinCaseMembershipInput): PinCaseMembershipResult;
|
|
88
|
-
export declare function unpinCaseMembership(adapter: DatabaseAdapter, input: UnpinCaseMembershipInput): UnpinCaseMembershipResult;
|
|
89
|
-
export declare function promoteCaseSource(adapter: DatabaseAdapter, input: PromoteCaseSourceInput): PromoteCaseSourceResult;
|
|
90
|
-
//# sourceMappingURL=composition-overrides.d.ts.map
|