@nahisaho/musubix-agent-orchestrator 2.4.2 → 3.0.7
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* KnowledgeContextStore Infrastructure
|
|
3
3
|
*
|
|
4
|
-
* Persists execution contexts to
|
|
4
|
+
* Persists execution contexts to @musubix/knowledge store
|
|
5
5
|
*
|
|
6
6
|
* @see REQ-SDD-003 - Context Sharing
|
|
7
7
|
*/
|
|
@@ -39,14 +39,22 @@ export interface IContextStore {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function createInMemoryContextStore(): IContextStore;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Knowledge Store-based context store
|
|
43
43
|
*
|
|
44
44
|
* Note: This is a placeholder. In production, this would integrate
|
|
45
|
-
* with the
|
|
45
|
+
* with the @musubix/knowledge store.
|
|
46
|
+
*
|
|
47
|
+
* @deprecated Use createKnowledgeContextStore instead
|
|
48
|
+
*/
|
|
49
|
+
export declare function createYATAContextStore(_knowledgeStore?: unknown): IContextStore;
|
|
50
|
+
/**
|
|
51
|
+
* Knowledge Store-based context store (v3.0.0)
|
|
52
|
+
*
|
|
53
|
+
* Uses @musubix/knowledge for context persistence
|
|
46
54
|
*/
|
|
47
|
-
export declare function
|
|
55
|
+
export declare function createKnowledgeContextStore(_knowledgeStore?: unknown): IContextStore;
|
|
48
56
|
/**
|
|
49
57
|
* Store factory
|
|
50
58
|
*/
|
|
51
|
-
export declare function createContextStoreFactory(
|
|
59
|
+
export declare function createContextStoreFactory(useKnowledgeStore?: boolean, knowledgeStore?: unknown): IContextStore;
|
|
52
60
|
//# sourceMappingURL=YATAContextStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YATAContextStore.d.ts","sourceRoot":"","sources":["../../src/infrastructure/YATAContextStore.ts"],"names":[],"mappings":"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A0C/E;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,aAAa,CAEpF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,iBAAiB,GAAE,OAAe,EAClC,cAAc,CAAC,EAAE,OAAO,GACvB,aAAa,CAKf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* KnowledgeContextStore Infrastructure
|
|
3
3
|
*
|
|
4
|
-
* Persists execution contexts to
|
|
4
|
+
* Persists execution contexts to @musubix/knowledge store
|
|
5
5
|
*
|
|
6
6
|
* @see REQ-SDD-003 - Context Sharing
|
|
7
7
|
*/
|
|
@@ -37,50 +37,62 @@ export function createInMemoryContextStore() {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Knowledge Store-based context store
|
|
41
41
|
*
|
|
42
42
|
* Note: This is a placeholder. In production, this would integrate
|
|
43
|
-
* with the
|
|
43
|
+
* with the @musubix/knowledge store.
|
|
44
|
+
*
|
|
45
|
+
* @deprecated Use createKnowledgeContextStore instead
|
|
44
46
|
*/
|
|
45
|
-
export function createYATAContextStore(
|
|
46
|
-
// Fallback to in-memory store until
|
|
47
|
+
export function createYATAContextStore(_knowledgeStore) {
|
|
48
|
+
// Fallback to in-memory store until @musubix/knowledge integration is complete
|
|
47
49
|
const inMemoryStore = createInMemoryContextStore();
|
|
48
50
|
return {
|
|
49
51
|
async save(context) {
|
|
50
|
-
// In production, this would persist to
|
|
51
|
-
// await
|
|
52
|
-
//
|
|
53
|
-
//
|
|
52
|
+
// In production, this would persist to @musubix/knowledge:
|
|
53
|
+
// await knowledgeStore.putEntity({
|
|
54
|
+
// id: `context:${context.taskId}`,
|
|
55
|
+
// type: 'code',
|
|
56
|
+
// name: `ExecutionContext-${context.taskId}`,
|
|
54
57
|
// properties: createContextSnapshot(context),
|
|
58
|
+
// tags: ['execution-context'],
|
|
55
59
|
// });
|
|
56
60
|
return inMemoryStore.save(context);
|
|
57
61
|
},
|
|
58
62
|
async load(taskId) {
|
|
59
|
-
// In production, this would load from
|
|
60
|
-
// const entity = await
|
|
63
|
+
// In production, this would load from @musubix/knowledge:
|
|
64
|
+
// const entity = await knowledgeStore.getEntity(`context:${taskId}`);
|
|
61
65
|
// if (!entity) return null;
|
|
62
66
|
// return restoreContextFromSnapshot(entity.properties);
|
|
63
67
|
return inMemoryStore.load(taskId);
|
|
64
68
|
},
|
|
65
69
|
async delete(taskId) {
|
|
66
70
|
// In production:
|
|
67
|
-
// await
|
|
71
|
+
// await knowledgeStore.deleteEntity(`context:${taskId}`);
|
|
68
72
|
return inMemoryStore.delete(taskId);
|
|
69
73
|
},
|
|
70
74
|
async list() {
|
|
71
75
|
// In production:
|
|
72
|
-
// const entities = await
|
|
73
|
-
// return entities.map(e => e.id);
|
|
76
|
+
// const entities = await knowledgeStore.query({ type: 'code', tags: ['execution-context'] });
|
|
77
|
+
// return entities.map(e => e.id.replace('context:', ''));
|
|
74
78
|
return inMemoryStore.list();
|
|
75
79
|
},
|
|
76
80
|
};
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Knowledge Store-based context store (v3.0.0)
|
|
84
|
+
*
|
|
85
|
+
* Uses @musubix/knowledge for context persistence
|
|
86
|
+
*/
|
|
87
|
+
export function createKnowledgeContextStore(_knowledgeStore) {
|
|
88
|
+
return createYATAContextStore(_knowledgeStore);
|
|
89
|
+
}
|
|
78
90
|
/**
|
|
79
91
|
* Store factory
|
|
80
92
|
*/
|
|
81
|
-
export function createContextStoreFactory(
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
93
|
+
export function createContextStoreFactory(useKnowledgeStore = false, knowledgeStore) {
|
|
94
|
+
if (useKnowledgeStore && knowledgeStore) {
|
|
95
|
+
return createKnowledgeContextStore(knowledgeStore);
|
|
84
96
|
}
|
|
85
97
|
return createInMemoryContextStore();
|
|
86
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YATAContextStore.js","sourceRoot":"","sources":["../../src/infrastructure/YATAContextStore.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAkCzE;;GAEG;AACH,MAAM,UAAU,0BAA0B;IACxC,MAAM,KAAK,GAAG,IAAI,GAAG,EAA2B,CAAC;IAEjD,OAAO;QACL,KAAK,CAAC,IAAI,CAAC,OAAyB;YAClC,MAAM,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;YAChD,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpC,OAAO,OAAO,CAAC,MAAM,CAAC;QACxB,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,MAAc;YACvB,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACnC,IAAI,CAAC,QAAQ;gBAAE,OAAO,IAAI,CAAC;YAE3B,OAAO,sBAAsB,CAAC;gBAC5B,MAAM,EAAE,QAAQ,CAAC,MAAM;gBACvB,eAAe,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gBAC5D,QAAQ,EAAE,QAAQ,CAAC,QAAQ;aAC5B,CAAC,CAAC;QACL,CAAC;QAED,KAAK,CAAC,MAAM,CAAC,MAAc;YACzB,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;QAED,KAAK,CAAC,IAAI;YACR,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QAClC,CAAC;KACF,CAAC;AACJ,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"YATAContextStore.js","sourceRoot":"","sources":["../../src/infrastruct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CAAC,IAAI,CAAC,OAAyB;YAClC,2DAA2D;YAC3D,mCAAmC;YACnC,qCAAqC;YACrC,kBAAkB;YAClB,gDAAgD;YAChD,gDAAgD;YAChD,iCAAiC;YACjC,MAAM;YAEN,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,MAAc;YACvB,0DAA0D;YAC1D,sEAAsE;YACtE,4BAA4B;YAC5B,wDAAwD;YAExD,OAAO,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;QAED,KAAK,CAAC,MAAM,CAAC,MAAc;YACzB,iBAAiB;YACjB,0DAA0D;YAE1D,OAAO,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;QAED,KAAK,CAAC,IAAI;YACR,iBAAiB;YACjB,8FAA8F;YAC9F,0DAA0D;YAE1D,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAyB;IACnE,OAAO,sBAAsB,CAAC,eAAe,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CACvC,oBAA6B,KAAK,EAClC,cAAwB;IAExB,IAAI,iBAAiB,IAAI,cAAc,EAAE,CAAC;QACxC,OAAO,2BAA2B,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,0BAA0B,EAAE,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nahisaho/musubix-agent-orchestrator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "MUSUBIX Agent Orchestrator - Subagent Management and Task Decomposition",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"author": "nahisaho",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@nahisaho/musubix-core": "*"
|
|
44
|
-
"@nahisaho/musubix-yata-client": "*"
|
|
43
|
+
"@nahisaho/musubix-core": "*"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"rimraf": "^5.0.5",
|