@agentconnect.md/daemon 1.0.0-rc.263 → 1.0.0-rc.265

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.
@@ -9762,17 +9762,6 @@ var AcpHost = class {
9762
9762
  promptSupports(kind) {
9763
9763
  return Boolean(this.promptCaps[kind]);
9764
9764
  }
9765
- /** The system-prompt seed to prepend as the first prompt text block of a newly
9766
- * created session, or undefined when none should be inlined. Only NON-Claude
9767
- * runtimes get it here: Claude receives the prompt via `_meta.systemPrompt` on
9768
- * session/new|load (see claudeSessionMeta), so returning undefined for Claude
9769
- * avoids injecting it twice. The caller (SessionManager) prepends the returned
9770
- * text ahead of the first turn's blocks, only when it created the ACP session. */
9771
- inlineSystemPrompt() {
9772
- const seed = this.opts.configPrefs?.systemPrompt;
9773
- if (!seed || this.isClaudeRuntime()) return void 0;
9774
- return seed;
9775
- }
9776
9765
  /** Whether this runtime carries the system prompt (and the fresh-session memory
9777
9766
  * index) via `_meta.systemPrompt` — true for Claude, which gets them there rather
9778
9767
  * than as a leading inline block. Lets SessionManager route memory correctly:
@@ -9784,10 +9773,11 @@ var AcpHost = class {
9784
9773
  * when set) takes the place of the agent default in the Claude `_meta` — the only
9785
9774
  * channel `ultracode` can ride (the `thought_level` select rejects it); select-based
9786
9775
  * effort/model/fast overrides are layered on afterward by the daemon at turn start.
9787
- * `memoryAppend` (the agent's memory index for a FRESH session) rides the same Claude
9788
- * `_meta.systemPrompt` append — standing context, never a user turn (see #398). */
9789
- async newSession(cwd, mcpServers = [], effortOverride, memoryAppend) {
9790
- const _meta = claudeSessionMeta(effortOverride ?? this.opts.configPrefs?.reasoningEffort, this.isClaudeRuntime(), this.opts.configPrefs?.systemPrompt, memoryAppend);
9776
+ * `systemAppend` (the agent meta object + the agent's memory index, for a FRESH
9777
+ * session) rides the Claude `_meta.systemPrompt` append — standing context, never a
9778
+ * user turn (see #398). */
9779
+ async newSession(cwd, mcpServers = [], effortOverride, systemAppend) {
9780
+ const _meta = claudeSessionMeta(effortOverride ?? this.opts.configPrefs?.reasoningEffort, this.isClaudeRuntime(), this.opts.configPrefs?.systemPrompt, systemAppend);
9791
9781
  const res = await this.conn.agent.request(methods.agent.session.new, {
9792
9782
  cwd,
9793
9783
  mcpServers,
@@ -9933,12 +9923,14 @@ var AcpHost = class {
9933
9923
  /** Resume a previously-created session by id (ACP `session/load`). The agent
9934
9924
  * restores its own history server-side; its replayed session/update stream is
9935
9925
  * suppressed so it isn't re-posted. `mcpServers` must be re-attached here — the
9936
- * agent doesn't persist them across processes. Throws if the agent can't load
9937
- * the id (caller falls back to newSession). */
9938
- async loadSession(sessionId, cwd, mcpServers = [], effortOverride) {
9926
+ * agent doesn't persist them across processes. `systemAppend` (the agent meta
9927
+ * object) is re-asserted via `_meta.systemPrompt` so a session resumed in a fresh
9928
+ * agent process keeps its system prompt. Throws if the agent can't load the id
9929
+ * (caller falls back to newSession). */
9930
+ async loadSession(sessionId, cwd, mcpServers = [], effortOverride, systemAppend) {
9939
9931
  this.loadingSessions.add(sessionId);
9940
9932
  try {
9941
- const _meta = claudeSessionMeta(effortOverride ?? this.opts.configPrefs?.reasoningEffort, this.isClaudeRuntime(), this.opts.configPrefs?.systemPrompt);
9933
+ const _meta = claudeSessionMeta(effortOverride ?? this.opts.configPrefs?.reasoningEffort, this.isClaudeRuntime(), systemAppend ?? this.opts.configPrefs?.systemPrompt);
9942
9934
  const res = await this.conn.agent.request(methods.agent.session.load, {
9943
9935
  sessionId,
9944
9936
  cwd,
@@ -10001,4 +9993,4 @@ var AcpHost = class {
10001
9993
  //#endregion
10002
9994
  export { resolveRuntimes as S, writeMemoryFile as _, initGitInjection as a, cachedRuntimeNames as b, simpleGit as c, memoryProviderFor as d, MemoryConflictError as f, resolveInMemoryDir as g, listMemory as h, prepareWorkspace as i, createMemoryProvider as l, MemoryTooLargeError as m, installedRuntimes as n, probeGitVersion as o, MemoryPathError as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, memoryKindOf as u, MEMORY_TOOL_NAMES as v, cachedRuntimeVersions as x, toolsForIntegrations as y };
10003
9995
 
10004
- //# sourceMappingURL=acp-host-DRbb-vvg.js.map
9996
+ //# sourceMappingURL=acp-host-Ckkd4YgQ.js.map