@auxiora/runtime 1.3.0 → 1.10.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/dist/enrichment/__tests__/architect-stage.test.d.ts +2 -0
- package/dist/enrichment/__tests__/architect-stage.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/architect-stage.test.js +189 -0
- package/dist/enrichment/__tests__/architect-stage.test.js.map +1 -0
- package/dist/enrichment/__tests__/integration.test.d.ts +2 -0
- package/dist/enrichment/__tests__/integration.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/integration.test.js +79 -0
- package/dist/enrichment/__tests__/integration.test.js.map +1 -0
- package/dist/enrichment/__tests__/memory-stage.test.d.ts +2 -0
- package/dist/enrichment/__tests__/memory-stage.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/memory-stage.test.js +43 -0
- package/dist/enrichment/__tests__/memory-stage.test.js.map +1 -0
- package/dist/enrichment/__tests__/mode-stage.test.d.ts +2 -0
- package/dist/enrichment/__tests__/mode-stage.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/mode-stage.test.js +139 -0
- package/dist/enrichment/__tests__/mode-stage.test.js.map +1 -0
- package/dist/enrichment/__tests__/model-identity-stage.test.d.ts +2 -0
- package/dist/enrichment/__tests__/model-identity-stage.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/model-identity-stage.test.js +74 -0
- package/dist/enrichment/__tests__/model-identity-stage.test.js.map +1 -0
- package/dist/enrichment/__tests__/pipeline.test.d.ts +2 -0
- package/dist/enrichment/__tests__/pipeline.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/pipeline.test.js +78 -0
- package/dist/enrichment/__tests__/pipeline.test.js.map +1 -0
- package/dist/enrichment/__tests__/self-awareness-stage.test.d.ts +2 -0
- package/dist/enrichment/__tests__/self-awareness-stage.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/self-awareness-stage.test.js +71 -0
- package/dist/enrichment/__tests__/self-awareness-stage.test.js.map +1 -0
- package/dist/enrichment/__tests__/types.test.d.ts +2 -0
- package/dist/enrichment/__tests__/types.test.d.ts.map +1 -0
- package/dist/enrichment/__tests__/types.test.js +31 -0
- package/dist/enrichment/__tests__/types.test.js.map +1 -0
- package/dist/enrichment/index.d.ts +8 -0
- package/dist/enrichment/index.d.ts.map +1 -0
- package/dist/enrichment/index.js +7 -0
- package/dist/enrichment/index.js.map +1 -0
- package/dist/enrichment/pipeline.d.ts +7 -0
- package/dist/enrichment/pipeline.d.ts.map +1 -0
- package/dist/enrichment/pipeline.js +29 -0
- package/dist/enrichment/pipeline.js.map +1 -0
- package/dist/enrichment/stages/architect-stage.d.ts +57 -0
- package/dist/enrichment/stages/architect-stage.d.ts.map +1 -0
- package/dist/enrichment/stages/architect-stage.js +112 -0
- package/dist/enrichment/stages/architect-stage.js.map +1 -0
- package/dist/enrichment/stages/memory-stage.d.ts +15 -0
- package/dist/enrichment/stages/memory-stage.d.ts.map +1 -0
- package/dist/enrichment/stages/memory-stage.js +19 -0
- package/dist/enrichment/stages/memory-stage.js.map +1 -0
- package/dist/enrichment/stages/mode-stage.d.ts +49 -0
- package/dist/enrichment/stages/mode-stage.d.ts.map +1 -0
- package/dist/enrichment/stages/mode-stage.js +60 -0
- package/dist/enrichment/stages/mode-stage.js.map +1 -0
- package/dist/enrichment/stages/model-identity-stage.d.ts +24 -0
- package/dist/enrichment/stages/model-identity-stage.d.ts.map +1 -0
- package/dist/enrichment/stages/model-identity-stage.js +23 -0
- package/dist/enrichment/stages/model-identity-stage.js.map +1 -0
- package/dist/enrichment/stages/self-awareness-stage.d.ts +23 -0
- package/dist/enrichment/stages/self-awareness-stage.d.ts.map +1 -0
- package/dist/enrichment/stages/self-awareness-stage.js +24 -0
- package/dist/enrichment/stages/self-awareness-stage.js.map +1 -0
- package/dist/enrichment/types.d.ts +45 -0
- package/dist/enrichment/types.d.ts.map +1 -0
- package/dist/enrichment/types.js +2 -0
- package/dist/enrichment/types.js.map +1 -0
- package/dist/index.d.ts +77 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3233 -230
- package/dist/index.js.map +1 -1
- package/dist/transparency/__tests__/collector.test.d.ts +2 -0
- package/dist/transparency/__tests__/collector.test.d.ts.map +1 -0
- package/dist/transparency/__tests__/collector.test.js +133 -0
- package/dist/transparency/__tests__/collector.test.js.map +1 -0
- package/dist/transparency/__tests__/confidence-scorer.test.d.ts +2 -0
- package/dist/transparency/__tests__/confidence-scorer.test.d.ts.map +1 -0
- package/dist/transparency/__tests__/confidence-scorer.test.js +118 -0
- package/dist/transparency/__tests__/confidence-scorer.test.js.map +1 -0
- package/dist/transparency/__tests__/source-attributor.test.d.ts +2 -0
- package/dist/transparency/__tests__/source-attributor.test.d.ts.map +1 -0
- package/dist/transparency/__tests__/source-attributor.test.js +47 -0
- package/dist/transparency/__tests__/source-attributor.test.js.map +1 -0
- package/dist/transparency/__tests__/types.test.d.ts +2 -0
- package/dist/transparency/__tests__/types.test.d.ts.map +1 -0
- package/dist/transparency/__tests__/types.test.js +62 -0
- package/dist/transparency/__tests__/types.test.js.map +1 -0
- package/dist/transparency/collector.d.ts +30 -0
- package/dist/transparency/collector.d.ts.map +1 -0
- package/dist/transparency/collector.js +79 -0
- package/dist/transparency/collector.js.map +1 -0
- package/dist/transparency/confidence-scorer.d.ts +17 -0
- package/dist/transparency/confidence-scorer.d.ts.map +1 -0
- package/dist/transparency/confidence-scorer.js +66 -0
- package/dist/transparency/confidence-scorer.js.map +1 -0
- package/dist/transparency/index.d.ts +8 -0
- package/dist/transparency/index.d.ts.map +1 -0
- package/dist/transparency/index.js +4 -0
- package/dist/transparency/index.js.map +1 -0
- package/dist/transparency/source-attributor.d.ts +10 -0
- package/dist/transparency/source-attributor.d.ts.map +1 -0
- package/dist/transparency/source-attributor.js +42 -0
- package/dist/transparency/source-attributor.js.map +1 -0
- package/dist/transparency/types.d.ts +53 -0
- package/dist/transparency/types.d.ts.map +1 -0
- package/dist/transparency/types.js +2 -0
- package/dist/transparency/types.js.map +1 -0
- package/package.json +74 -50
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confidence-scorer.js","sourceRoot":"","sources":["../../src/transparency/confidence-scorer.ts"],"names":[],"mappings":"AAkBA,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B,MAAM,UAAU,eAAe,CAAC,KAAsB;IACpD,IAAI,KAAK,GAAG,UAAU,CAAC;IACvB,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,2BAA2B;IAC3B,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,wBAAwB,KAAK,CAAC,SAAS,CAAC,MAAM,iBAAiB,EAAE,CAAC,CAAC;IACzI,CAAC;IAED,0BAA0B;IAC1B,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;QAC1B,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,6CAA6C,EAAE,CAAC,CAAC;IACvH,CAAC;IAED,sBAAsB;IACtB,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;QACtB,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,mDAAmD,EAAE,CAAC,CAAC;IAClI,CAAC;IAED,yBAAyB;IACzB,IAAI,KAAK,CAAC,YAAY,KAAK,MAAM,EAAE,CAAC;QAClC,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,UA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CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QACjF,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,8DAA8D,EAAE,CAAC,CAAC;IACrI,CAAC;IAED,uBAAuB;IACvB,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;QAC1B,KAAK,IAAI,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,iDAAiD,EAAE,CAAC,CAAC;IAChI,CAAC;IAED,kBAAkB;IAClB,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAoB,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IAEzF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { TransparencyMeta, ConfidenceFactor, SourceAttribution, ConfidenceLevel, SourceType, } from './types.js';
|
|
2
|
+
export { scoreConfidence } from './confidence-scorer.js';
|
|
3
|
+
export type { ConfidenceInput, ConfidenceResult } from './confidence-scorer.js';
|
|
4
|
+
export { attributeSources, countHedgePhrases } from './source-attributor.js';
|
|
5
|
+
export type { SourceInput } from './source-attributor.js';
|
|
6
|
+
export { collectTransparencyMeta } from './collector.js';
|
|
7
|
+
export type { CollectorInput } from './collector.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transparency/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transparency/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SourceAttribution } from './types.js';
|
|
2
|
+
export interface SourceInput {
|
|
3
|
+
readonly toolsUsed: readonly string[];
|
|
4
|
+
readonly hasMemoryRecall: boolean;
|
|
5
|
+
readonly hasKnowledgeGraph: boolean;
|
|
6
|
+
readonly hasUserData: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function attributeSources(input: SourceInput): SourceAttribution[];
|
|
9
|
+
export declare function countHedgePhrases(text: string): number;
|
|
10
|
+
//# sourceMappingURL=source-attributor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-attributor.d.ts","sourceRoot":"","sources":["../../src/transparency/source-attributor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAQD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,EAAE,CA2BxE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYtD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const HEDGE_PHRASES = [
|
|
2
|
+
'i think', 'i believe', "i'm not sure", "i'm not entirely sure",
|
|
3
|
+
'it might be', 'it could be', 'probably', 'possibly', 'if i recall',
|
|
4
|
+
'i may be wrong', 'not certain',
|
|
5
|
+
];
|
|
6
|
+
export function attributeSources(input) {
|
|
7
|
+
const sources = [];
|
|
8
|
+
for (const tool of input.toolsUsed) {
|
|
9
|
+
sources.push({ type: 'tool_result', label: `Tool: ${tool}`, confidence: 0.95 });
|
|
10
|
+
}
|
|
11
|
+
if (input.hasMemoryRecall) {
|
|
12
|
+
sources.push({ type: 'memory_recall', label: 'Similar past conversation', confidence: 0.72 });
|
|
13
|
+
}
|
|
14
|
+
if (input.hasKnowledgeGraph) {
|
|
15
|
+
sources.push({ type: 'knowledge_graph', label: 'Knowledge graph lookup', confidence: 0.85 });
|
|
16
|
+
}
|
|
17
|
+
if (input.hasUserData) {
|
|
18
|
+
sources.push({ type: 'user_data', label: 'User preferences and history', confidence: 0.80 });
|
|
19
|
+
}
|
|
20
|
+
// Always add model generation as the base source
|
|
21
|
+
sources.push({
|
|
22
|
+
type: 'model_generation',
|
|
23
|
+
label: sources.length > 0 ? 'Synthesized from above sources' : 'Generated by model',
|
|
24
|
+
confidence: 0.7,
|
|
25
|
+
});
|
|
26
|
+
return sources;
|
|
27
|
+
}
|
|
28
|
+
export function countHedgePhrases(text) {
|
|
29
|
+
if (!text)
|
|
30
|
+
return 0;
|
|
31
|
+
const lower = text.toLowerCase();
|
|
32
|
+
let count = 0;
|
|
33
|
+
for (const phrase of HEDGE_PHRASES) {
|
|
34
|
+
let idx = 0;
|
|
35
|
+
while ((idx = lower.indexOf(phrase, idx)) !== -1) {
|
|
36
|
+
count++;
|
|
37
|
+
idx += phrase.length;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return count;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=source-attributor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-attributor.js","sourceRoot":"","sources":["../../src/transparency/source-attributor.ts"],"names":[],"mappings":"AASA,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,uBAAuB;IAC/D,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa;IACnE,gBAAgB,EAAE,aAAa;CAChC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,KAAkB;IACjD,MAAM,OAAO,GAAwB,EAAE,CAAC;IAExC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QACnC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;QAC1B,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,2BAA2B,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC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 'knowledge_graph' | 'user_data' | 'model_generation';
|
|
3
|
+
export interface ConfidenceFactor {
|
|
4
|
+
readonly signal: string;
|
|
5
|
+
readonly impact: 'positive' | 'negative';
|
|
6
|
+
readonly detail: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SourceAttribution {
|
|
9
|
+
readonly type: SourceType;
|
|
10
|
+
readonly label: string;
|
|
11
|
+
readonly confidence: number;
|
|
12
|
+
}
|
|
13
|
+
export interface TransparencyMeta {
|
|
14
|
+
readonly confidence: {
|
|
15
|
+
readonly level: ConfidenceLevel;
|
|
16
|
+
readonly score: number;
|
|
17
|
+
readonly factors: readonly ConfidenceFactor[];
|
|
18
|
+
};
|
|
19
|
+
readonly sources: readonly SourceAttribution[];
|
|
20
|
+
readonly model: {
|
|
21
|
+
readonly provider: string;
|
|
22
|
+
readonly model: string;
|
|
23
|
+
readonly tokens: {
|
|
24
|
+
readonly input: number;
|
|
25
|
+
readonly output: number;
|
|
26
|
+
};
|
|
27
|
+
readonly cost: {
|
|
28
|
+
readonly input: number;
|
|
29
|
+
readonly output: number;
|
|
30
|
+
readonly total: number;
|
|
31
|
+
};
|
|
32
|
+
readonly finishReason: string;
|
|
33
|
+
readonly latencyMs: number;
|
|
34
|
+
};
|
|
35
|
+
readonly personality: {
|
|
36
|
+
readonly domain: string;
|
|
37
|
+
readonly emotionalRegister: string;
|
|
38
|
+
readonly activeTraits: ReadonlyArray<{
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly weight: number;
|
|
41
|
+
}>;
|
|
42
|
+
readonly knowledgeBoundary?: {
|
|
43
|
+
readonly topic: string;
|
|
44
|
+
readonly corrections: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly trace: {
|
|
48
|
+
readonly enrichmentStages: readonly string[];
|
|
49
|
+
readonly toolsUsed: readonly string[];
|
|
50
|
+
readonly processingMs: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@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C;YAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3F,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,QAAQ,CAAC,WAAW,EAAE;QACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;QACnC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACzF,QAAQ,CAAC,iBAAiB,CAAC,EAAE;YAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;YACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;SAC9B,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;QAC7C,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;QACtC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;KAC/B,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/transparency/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auxiora/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Runtime that connects all Auxiora components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,57 +13,81 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"express": "^5.1.0",
|
|
16
|
-
"@auxiora/
|
|
17
|
-
"@auxiora/
|
|
18
|
-
"@auxiora/
|
|
19
|
-
"@auxiora/
|
|
20
|
-
"@auxiora/
|
|
21
|
-
"@auxiora/
|
|
22
|
-
"@auxiora/
|
|
23
|
-
"@auxiora/
|
|
24
|
-
"@auxiora/calendar-intelligence": "1.
|
|
25
|
-
"@auxiora/
|
|
26
|
-
"@auxiora/
|
|
27
|
-
"@auxiora/
|
|
28
|
-
"@auxiora/
|
|
29
|
-
"@auxiora/
|
|
30
|
-
"@auxiora/
|
|
31
|
-
"@auxiora/
|
|
32
|
-
"@auxiora/
|
|
33
|
-
"@auxiora/
|
|
34
|
-
"@auxiora/
|
|
35
|
-
"@auxiora/
|
|
36
|
-
"@auxiora/
|
|
37
|
-
"@auxiora/
|
|
38
|
-
"@auxiora/
|
|
39
|
-
"@auxiora/
|
|
40
|
-
"@auxiora/
|
|
41
|
-
"@auxiora/
|
|
42
|
-
"@auxiora/
|
|
43
|
-
"@auxiora/
|
|
44
|
-
"@auxiora/
|
|
45
|
-
"@auxiora/
|
|
46
|
-
"@auxiora/
|
|
47
|
-
"@auxiora/
|
|
48
|
-
"@auxiora/
|
|
49
|
-
"@auxiora/
|
|
50
|
-
"@auxiora/
|
|
51
|
-
"@auxiora/
|
|
52
|
-
"@auxiora/
|
|
53
|
-
"@auxiora/introspection": "1.
|
|
54
|
-
"@auxiora/
|
|
55
|
-
"@auxiora/
|
|
56
|
-
"@auxiora/
|
|
57
|
-
"@auxiora/
|
|
58
|
-
"@auxiora/
|
|
59
|
-
"@auxiora/
|
|
60
|
-
"@auxiora/
|
|
61
|
-
"@auxiora/
|
|
62
|
-
"@auxiora/
|
|
63
|
-
"@auxiora/
|
|
16
|
+
"@auxiora/agent-protocol": "1.10.0",
|
|
17
|
+
"@auxiora/ambient": "1.10.0",
|
|
18
|
+
"@auxiora/approval-queue": "^1.10.0",
|
|
19
|
+
"@auxiora/audit": "1.10.0",
|
|
20
|
+
"@auxiora/a2a": "^1.10.0",
|
|
21
|
+
"@auxiora/autonomy": "1.10.0",
|
|
22
|
+
"@auxiora/backup": "^1.10.0",
|
|
23
|
+
"@auxiora/browser": "1.10.0",
|
|
24
|
+
"@auxiora/calendar-intelligence": "1.10.0",
|
|
25
|
+
"@auxiora/canvas": "^1.10.0",
|
|
26
|
+
"@auxiora/channels": "1.10.0",
|
|
27
|
+
"@auxiora/code-interpreter": "^1.10.0",
|
|
28
|
+
"@auxiora/compose": "1.10.0",
|
|
29
|
+
"@auxiora/connector-google-workspace": "1.10.0",
|
|
30
|
+
"@auxiora/connector-github": "1.10.0",
|
|
31
|
+
"@auxiora/connector-homeassistant": "1.10.0",
|
|
32
|
+
"@auxiora/behaviors": "1.10.0",
|
|
33
|
+
"@auxiora/connector-linear": "1.10.0",
|
|
34
|
+
"@auxiora/config": "1.10.0",
|
|
35
|
+
"@auxiora/connector-notion": "1.10.0",
|
|
36
|
+
"@auxiora/connector-spotify": "1.10.0",
|
|
37
|
+
"@auxiora/connector-social": "1.10.0",
|
|
38
|
+
"@auxiora/connector-hue": "1.10.0",
|
|
39
|
+
"@auxiora/connector-obsidian": "1.10.0",
|
|
40
|
+
"@auxiora/connectors": "1.10.0",
|
|
41
|
+
"@auxiora/consciousness": "1.10.0",
|
|
42
|
+
"@auxiora/connector-microsoft": "1.10.0",
|
|
43
|
+
"@auxiora/contacts": "1.10.0",
|
|
44
|
+
"@auxiora/conversation": "1.10.0",
|
|
45
|
+
"@auxiora/dashboard": "1.10.0",
|
|
46
|
+
"@auxiora/conversation-branch": "^1.10.0",
|
|
47
|
+
"@auxiora/core": "1.10.0",
|
|
48
|
+
"@auxiora/email-intelligence": "1.10.0",
|
|
49
|
+
"@auxiora/gateway": "1.10.0",
|
|
50
|
+
"@auxiora/guardrails": "1.10.0",
|
|
51
|
+
"@auxiora/evaluation": "^1.10.0",
|
|
52
|
+
"@auxiora/intent": "1.10.0",
|
|
53
|
+
"@auxiora/introspection": "1.10.0",
|
|
54
|
+
"@auxiora/image-gen": "^1.10.0",
|
|
55
|
+
"@auxiora/knowledge-graph": "^1.10.0",
|
|
56
|
+
"@auxiora/logger": "1.10.0",
|
|
57
|
+
"@auxiora/mcp": "1.10.0",
|
|
58
|
+
"@auxiora/job-queue": "^1.10.0",
|
|
59
|
+
"@auxiora/memory": "1.10.0",
|
|
60
|
+
"@auxiora/media": "1.10.0",
|
|
61
|
+
"@auxiora/nl-automation": "^1.10.0",
|
|
62
|
+
"@auxiora/orchestrator": "1.10.0",
|
|
63
|
+
"@auxiora/os-bridge": "1.10.0",
|
|
64
|
+
"@auxiora/notification-hub": "1.10.0",
|
|
65
|
+
"@auxiora/personality": "1.10.0",
|
|
66
|
+
"@auxiora/plugins": "1.10.0",
|
|
67
|
+
"@auxiora/react-loop": "^1.10.0",
|
|
68
|
+
"@auxiora/research": "1.10.0",
|
|
69
|
+
"@auxiora/providers": "1.10.0",
|
|
70
|
+
"@auxiora/router": "1.10.0",
|
|
71
|
+
"@auxiora/screen": "1.10.0",
|
|
72
|
+
"@auxiora/sandbox": "^1.10.0",
|
|
73
|
+
"@auxiora/social": "1.10.0",
|
|
74
|
+
"@auxiora/rag": "^1.10.0",
|
|
75
|
+
"@auxiora/stt": "1.10.0",
|
|
76
|
+
"@auxiora/sessions": "1.10.0",
|
|
77
|
+
"@auxiora/tts": "1.10.0",
|
|
78
|
+
"@auxiora/tools": "1.10.0",
|
|
79
|
+
"@auxiora/updater": "1.10.0",
|
|
80
|
+
"@auxiora/vector-store": "^1.10.0",
|
|
81
|
+
"@auxiora/vault": "1.10.0",
|
|
82
|
+
"@auxiora/self-awareness": "1.10.0",
|
|
83
|
+
"@auxiora/webhooks": "1.10.0",
|
|
84
|
+
"@auxiora/workflows": "1.10.0",
|
|
85
|
+
"@auxiora/voice": "1.10.0"
|
|
64
86
|
},
|
|
65
87
|
"devDependencies": {
|
|
66
|
-
"@types/express": "^5.0.0"
|
|
88
|
+
"@types/express": "^5.0.0",
|
|
89
|
+
"@types/supertest": "^6.0.0",
|
|
90
|
+
"supertest": "^7.1.0"
|
|
67
91
|
},
|
|
68
92
|
"engines": {
|
|
69
93
|
"node": ">=22.0.0"
|