@teammy/server 0.1.10 → 0.1.12

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.
@@ -123,12 +123,13 @@ async function piChild() {
123
123
  input.compactAt,
124
124
  input.prompt,
125
125
  input.sessionDir,
126
- input.tools
126
+ input.tools,
127
+ input.transient ? input.runId : null
127
128
  ]);
128
129
  if (session && key === configKey) return;
129
130
  session?.dispose();
130
131
  await mkdir(input.sessionDir, { recursive: true });
131
- manager = input.sessionFile && existsSync2(input.sessionFile) ? SessionManager.open(input.sessionFile, input.sessionDir, input.cwd ?? "/project") : SessionManager.create(input.cwd ?? "/project", input.sessionDir);
132
+ manager = input.transient ? SessionManager.inMemory(input.cwd ?? "/project") : input.sessionFile && existsSync2(input.sessionFile) ? SessionManager.open(input.sessionFile, input.sessionDir, input.cwd ?? "/project") : SessionManager.create(input.cwd ?? "/project", input.sessionDir);
132
133
  const modelRuntime = await ModelRuntime.create({
133
134
  credentials: new InMemoryCredentialStore(),
134
135
  modelsStore: new InMemoryModelsStore(),
@@ -160,9 +161,9 @@ async function piChild() {
160
161
  getPrompts: () => ({ prompts: [], diagnostics: [] }),
161
162
  getThemes: () => ({ themes: [], diagnostics: [] }),
162
163
  getAgentsFiles: () => ({ agentsFiles: [] }),
163
- getSystemPrompt: () => void 0,
164
+ getSystemPrompt: () => input.prompt,
164
165
  getSystemPromptSource: () => void 0,
165
- getAppendSystemPrompt: () => [input.prompt],
166
+ getAppendSystemPrompt: () => [],
166
167
  getAppendSystemPromptSources: () => [],
167
168
  extendResources: () => {
168
169
  },
@@ -260,7 +261,8 @@ async function piChild() {
260
261
  async function run(input) {
261
262
  await open(input);
262
263
  const native = session, state = manager;
263
- await channel.send({ type: "session", file: state.getSessionFile() });
264
+ const sessionFile = state.getSessionFile();
265
+ if (sessionFile) await channel.send({ type: "session", file: sessionFile });
264
266
  const markers = state.getEntries().flatMap(
265
267
  (entry) => entry.type === "custom" && entry.customType === "teammy-run" && entry.data ? [entry.data] : []
266
268
  );
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teammy/server",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "The centralized Teammy collaboration hub server.",
5
5
  "type": "module",
6
6
  "bin": {