@cortexkit/pi-magic-context 0.34.2 → 0.35.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/index-gxftx2a4.js +52708 -0
- package/dist/index.js +401 -616
- package/dist/subagent-entry.js +6 -3
- package/package.json +1 -1
- package/dist/index-fw42dv6t.js +0 -184322
package/dist/subagent-entry.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
registerMagicContextTools,
|
|
6
6
|
resolveProjectIdentityForSession,
|
|
7
7
|
setStoragePrivatePermissionEnforcement
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-gxftx2a4.js";
|
|
9
9
|
import {
|
|
10
10
|
log,
|
|
11
11
|
setHarness
|
|
@@ -25,7 +25,9 @@ function magicContextSubagentExtension(pi) {
|
|
|
25
25
|
pi.on("session_start", async () => {
|
|
26
26
|
try {
|
|
27
27
|
const directory = process.cwd();
|
|
28
|
-
const { config: cfg } = loadPiConfig({
|
|
28
|
+
const { config: cfg, registrationPromptSurface } = loadPiConfig({
|
|
29
|
+
cwd: directory
|
|
30
|
+
});
|
|
29
31
|
setStoragePrivatePermissionEnforcement(cfg.storage.enforce_private_permissions);
|
|
30
32
|
const db = openDatabase();
|
|
31
33
|
if (!db) {
|
|
@@ -42,7 +44,8 @@ function magicContextSubagentExtension(pi) {
|
|
|
42
44
|
allowDreamerActions: dreamerActionsEnabled,
|
|
43
45
|
sessionScopedToolsDisabled: true,
|
|
44
46
|
todowriteEnabled: cfg.todowrite.enabled !== false,
|
|
45
|
-
todowriteCommandEnabled: false
|
|
47
|
+
todowriteCommandEnabled: false,
|
|
48
|
+
promptSurface: registrationPromptSurface
|
|
46
49
|
});
|
|
47
50
|
log(`[pi-subagent] registered tools: ctx_search${dreamerActionsEnabled ? ", ctx_memory" : ""}${cfg.todowrite.enabled !== false ? ", todowrite" : ""}` + ` (ctx_note/ctx_expand omitted: --no-session child;` + ` memory=${cfg.memory.enabled}, embedding=${cfg.embedding.provider !== "off"},` + ` git_commits=${cfg.memory.git_commit_indexing.enabled}, dreamer_actions=${dreamerActionsEnabled})`);
|
|
48
51
|
} catch (err) {
|
package/package.json
CHANGED