@cerebriline/core 4.100.254 → 4.100.256

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.
Files changed (47) hide show
  1. package/assets/prompt-templates/claude.md +123 -90
  2. package/assets/prompt-templates/deepseek.md +62 -20
  3. package/assets/prompt-templates/default.md +14 -14
  4. package/assets/prompt-templates/gemma.md +46 -18
  5. package/assets/prompt-templates/glm.md +60 -35
  6. package/assets/prompt-templates/kimi-k3.md +41 -32
  7. package/assets/prompt-templates/kimi.md +35 -31
  8. package/assets/prompt-templates/minimax-m3.1-flash.md +563 -0
  9. package/assets/prompt-templates/minimax.md +72 -92
  10. package/assets/prompt-templates/nemotron.md +50 -78
  11. package/assets/prompt-templates/qwen.md +83 -69
  12. package/dist/cloud/index.js +1 -1
  13. package/dist/document-reader-child.js +13 -13
  14. package/dist/extensions/config/prompt-template-review.d.ts +41 -1
  15. package/dist/extensions/context/agentic-compaction.d.ts +2 -1
  16. package/dist/extensions/context/capped-thinking.d.ts +24 -2
  17. package/dist/extensions/context/compaction-shared.d.ts +47 -11
  18. package/dist/extensions/context/compaction.d.ts +1 -1
  19. package/dist/extensions/context/council-compaction.d.ts +3 -1
  20. package/dist/extensions/context/replay-compaction.d.ts +1 -1
  21. package/dist/extensions/context/tool-ledger.d.ts +13 -1
  22. package/dist/extensions/tools/check-on-failure.d.ts +3 -0
  23. package/dist/extensions/tools/edit-verification.d.ts +26 -5
  24. package/dist/extensions/tools/executors/bash.d.ts +22 -0
  25. package/dist/extensions/tools/executors/document/formats.d.ts +6 -0
  26. package/dist/extensions/tools/executors/read-receipts.d.ts +12 -0
  27. package/dist/extensions/tools/helpers.d.ts +12 -0
  28. package/dist/extensions/tools/list-files.d.ts +1 -1
  29. package/dist/extensions/tools/schemas.d.ts +32 -0
  30. package/dist/extensions/tools/team/delegated-agent.d.ts +8 -1
  31. package/dist/hub/daemon/entry.js +625 -615
  32. package/dist/hub/index.js +637 -627
  33. package/dist/index.js +1421 -3762
  34. package/dist/remote/remote-helper-entry.js +1 -1
  35. package/dist/remote/remote-helper.js +1 -1
  36. package/dist/runtime/atomic/file-revisions.d.ts +2 -0
  37. package/dist/runtime/atomic/revision-capture.d.ts +1 -1
  38. package/dist/runtime/host/loop-cut-log.d.ts +18 -0
  39. package/dist/runtime/orchestration/session-runtime.d.ts +5 -0
  40. package/dist/runtime/safety/struggle-detector.d.ts +1 -1
  41. package/dist/services/llms/apihandler-agent-model-adapter.d.ts +4 -2
  42. package/dist/services/retrieval/tar-extract.d.ts +4 -0
  43. package/dist/session/persisted-tool-result-content.d.ts +10 -1
  44. package/dist/session/services/message-builder.d.ts +15 -1
  45. package/dist/session/tool-result-format-pin.d.ts +17 -0
  46. package/dist/types/config.d.ts +9 -2
  47. package/package.json +4 -4
@@ -6,7 +6,7 @@ import type { AgentNodePlacement } from "./agent-node-placement";
6
6
  import type { AgentSlotGate, AgentSlotGateRegistry } from "./agent-slot-gate";
7
7
  import { type RealizedSpawnSampling, type SpawnSamplingDraw } from "./spawn-sampling";
8
8
  type AgentExtension = NonNullable<AgentConfig["extensions"]>[number];
9
- export type DelegatedAgentConnectionConfig = Pick<AgentConfig, "providerId" | "modelId" | "apiKey" | "baseUrl" | "headers" | "onAuthError" | "providerConfig" | "knownModels" | "thinking" | "reasoningEffort" | "thinkingBudgetTokens" | "maxTokensPerTurn" | "maxToolResultChars" | "staleReadRewrites" | "temperature">;
9
+ export type DelegatedAgentConnectionConfig = Pick<AgentConfig, "providerId" | "modelId" | "apiKey" | "baseUrl" | "headers" | "onAuthError" | "providerConfig" | "knownModels" | "thinking" | "reasoningEffort" | "thinkingBudgetTokens" | "maxTokensPerTurn" | "maxToolResultChars" | "staleReadRewrites" | "toolResultFormat" | "temperature">;
10
10
  export interface DelegatedAgentRuntimeConfig extends DelegatedAgentConnectionConfig {
11
11
  cwd?: string;
12
12
  providerId: string;
@@ -104,6 +104,13 @@ export interface DelegatedAgentRuntimeConfig extends DelegatedAgentConnectionCon
104
104
  createPrepareTurn?: (agent?: DelegatedPrepareTurnTarget) => AgentConfig["prepareTurn"];
105
105
  /** The pipeline's other half; stateless, so shared rather than built. */
106
106
  condenseDiscardedReasoning?: AgentConfig["condenseDiscardedReasoning"];
107
+ /**
108
+ * Where this agent's guards hand the text they cut; see `LoopCutRecord`.
109
+ * The record carries the agent's id, which is how the host files it beside
110
+ * that agent's own transcript. Absent, an agent's cuts are thrown away, as
111
+ * every delegated agent's were until this field.
112
+ */
113
+ onLoopCut?: AgentConfig["onLoopCut"];
107
114
  }
108
115
  /**
109
116
  * Whose compaction a delegated agent's pipeline is.