@townco/cli 0.1.44 → 0.1.45

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.
@@ -128,6 +128,15 @@ function CreateApp({ name: initialName, model: initialModel, tools: initialTools
128
128
  model,
129
129
  systemPrompt: agentDef.systemPrompt || null,
130
130
  tools: agentDef.tools || [],
131
+ hooks: [
132
+ {
133
+ type: "context_size",
134
+ setting: {
135
+ threshold: 95,
136
+ },
137
+ callback: "compaction_tool",
138
+ },
139
+ ],
131
140
  };
132
141
  // Create agent in project
133
142
  scaffoldAgent({
@@ -1,9 +1,14 @@
1
1
  interface MCPAddProps {
2
- name?: string;
3
- url?: string;
4
- command?: string;
5
- args?: readonly string[];
2
+ name?: string;
3
+ url?: string;
4
+ command?: string;
5
+ args?: readonly string[];
6
6
  }
7
- declare function MCPAddApp({ name: initialName, url: initialUrl, command: initialCommand, args: initialArgs, }: MCPAddProps): import("react/jsx-runtime").JSX.Element | null;
7
+ declare function MCPAddApp({
8
+ name: initialName,
9
+ url: initialUrl,
10
+ command: initialCommand,
11
+ args: initialArgs,
12
+ }: MCPAddProps): import("react/jsx-runtime").JSX.Element | null;
8
13
  export default MCPAddApp;
9
14
  export declare function runMCPAdd(props?: MCPAddProps): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@townco/cli",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "town": "./dist/index.js"
@@ -15,17 +15,17 @@
15
15
  "build": "tsc"
16
16
  },
17
17
  "devDependencies": {
18
- "@townco/tsconfig": "0.1.36",
18
+ "@townco/tsconfig": "0.1.37",
19
19
  "@types/bun": "^1.3.1",
20
20
  "@types/react": "^19.2.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@optique/core": "^0.6.2",
24
24
  "@optique/run": "^0.6.2",
25
- "@townco/agent": "0.1.44",
26
- "@townco/core": "0.0.17",
27
- "@townco/secret": "0.1.39",
28
- "@townco/ui": "0.1.39",
25
+ "@townco/agent": "0.1.45",
26
+ "@townco/core": "0.0.18",
27
+ "@townco/secret": "0.1.40",
28
+ "@townco/ui": "0.1.40",
29
29
  "@types/inquirer": "^9.0.9",
30
30
  "ink": "^6.4.0",
31
31
  "ink-text-input": "^6.0.0",