tycono 0.3.14-beta.4 → 0.3.14-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.3.14-beta.4",
3
+ "version": "0.3.14-beta.6",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,6 +33,7 @@ import { questsRouter } from './routes/quests.js';
33
33
  import { coinsRouter } from './routes/coins.js';
34
34
  import { activeSessionsRouter } from './routes/active-sessions.js';
35
35
  import { supervisionRouter } from './routes/supervision.js';
36
+ import { presetsRouter } from './routes/presets.js';
36
37
  import { importKnowledge } from './services/knowledge-importer.js';
37
38
  import { AnthropicProvider, type LLMProvider } from './engine/llm-adapter.js';
38
39
  import { readConfig } from './services/company-config.js';
@@ -212,6 +213,7 @@ export function createExpressApp(): express.Application {
212
213
  app.use('/api/coins', coinsRouter);
213
214
  app.use('/api/active-sessions', activeSessionsRouter);
214
215
  app.use('/api/supervision', supervisionRouter);
216
+ app.use('/api/presets', presetsRouter);
215
217
 
216
218
  app.get('/api/health', (_req, res) => {
217
219
  res.json({ status: 'ok', companyRoot: COMPANY_ROOT });
@@ -180,7 +180,7 @@ class ExecutionManager {
180
180
 
181
181
  this.executions.set(execId, execution);
182
182
 
183
- this.initializeAndRunExecution(execution, params, orgTree);
183
+ this.initializeAndRunExecution(execution, params, orgTree, presetId);
184
184
 
185
185
  return execution;
186
186
  }
@@ -189,6 +189,7 @@ class ExecutionManager {
189
189
  execution: Execution,
190
190
  params: StartExecutionParams,
191
191
  orgTree: ReturnType<typeof buildOrgTree>,
192
+ presetId?: string,
192
193
  ): Promise<void> {
193
194
  try {
194
195
  const ports = await portRegistry.allocate(execution.sessionId || execution.id, params.roleId, params.task);