codetyper-cli 0.2.1 → 0.2.2

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/dist/index.js CHANGED
@@ -65601,7 +65601,7 @@ var logIdCounter = 0, generateLogId = () => `log-${++logIdCounter}-${Date.now()}
65601
65601
  selectedIndex: 0
65602
65602
  }), AppStoreProvider, useAppStore, storeRef = null, setAppStoreRef = (store) => {
65603
65603
  storeRef = store;
65604
- }, appStore;
65604
+ }, defaultAppState, appStore;
65605
65605
  var init_app = __esm(async () => {
65606
65606
  init_server();
65607
65607
  init_server2();
@@ -66062,10 +66062,36 @@ var init_app = __esm(async () => {
66062
66062
  };
66063
66063
  }
66064
66064
  }));
66065
+ defaultAppState = {
66066
+ mode: "idle",
66067
+ screenMode: "home",
66068
+ interactionMode: "agent",
66069
+ currentAgent: "default",
66070
+ inputBuffer: "",
66071
+ logs: [],
66072
+ currentToolCall: null,
66073
+ permissionRequest: null,
66074
+ learningPrompt: null,
66075
+ thinkingMessage: null,
66076
+ sessionId: null,
66077
+ provider: "copilot",
66078
+ model: "",
66079
+ version: "0.1.0",
66080
+ sessionStats: createInitialSessionStats(),
66081
+ cascadeEnabled: true,
66082
+ todosVisible: true,
66083
+ debugLogVisible: false,
66084
+ interruptPending: false,
66085
+ exitPending: false,
66086
+ isCompacting: false,
66087
+ streamingLog: createInitialStreamingState(),
66088
+ suggestions: createInitialSuggestionState()
66089
+ };
66065
66090
  appStore = {
66066
66091
  getState: () => {
66067
- if (!storeRef)
66068
- throw new Error("AppStore not initialized");
66092
+ if (!storeRef) {
66093
+ return defaultAppState;
66094
+ }
66069
66095
  return {
66070
66096
  mode: storeRef.mode(),
66071
66097
  screenMode: storeRef.screenMode(),
@@ -66094,177 +66120,177 @@ var init_app = __esm(async () => {
66094
66120
  },
66095
66121
  addLog: (entry) => {
66096
66122
  if (!storeRef)
66097
- throw new Error("AppStore not initialized");
66123
+ return "";
66098
66124
  return storeRef.addLog(entry);
66099
66125
  },
66100
66126
  updateLog: (id, updates) => {
66101
66127
  if (!storeRef)
66102
- throw new Error("AppStore not initialized");
66128
+ return;
66103
66129
  storeRef.updateLog(id, updates);
66104
66130
  },
66105
66131
  setMode: (mode) => {
66106
66132
  if (!storeRef)
66107
- throw new Error("AppStore not initialized");
66133
+ return;
66108
66134
  storeRef.setMode(mode);
66109
66135
  },
66110
66136
  toggleInteractionMode: () => {
66111
66137
  if (!storeRef)
66112
- throw new Error("AppStore not initialized");
66138
+ return;
66113
66139
  storeRef.toggleInteractionMode();
66114
66140
  },
66115
66141
  setCurrentAgent: (agent) => {
66116
66142
  if (!storeRef)
66117
- throw new Error("AppStore not initialized");
66143
+ return;
66118
66144
  storeRef.setCurrentAgent(agent);
66119
66145
  },
66120
66146
  setCurrentToolCall: (toolCall) => {
66121
66147
  if (!storeRef)
66122
- throw new Error("AppStore not initialized");
66148
+ return;
66123
66149
  storeRef.setCurrentToolCall(toolCall);
66124
66150
  },
66125
66151
  updateToolCall: (updates) => {
66126
66152
  if (!storeRef)
66127
- throw new Error("AppStore not initialized");
66153
+ return;
66128
66154
  storeRef.updateToolCall(updates);
66129
66155
  },
66130
66156
  setThinkingMessage: (message) => {
66131
66157
  if (!storeRef)
66132
- throw new Error("AppStore not initialized");
66158
+ return;
66133
66159
  storeRef.setThinkingMessage(message);
66134
66160
  },
66135
66161
  setPermissionRequest: (request) => {
66136
66162
  if (!storeRef)
66137
- throw new Error("AppStore not initialized");
66163
+ return;
66138
66164
  storeRef.setPermissionRequest(request);
66139
66165
  },
66140
66166
  setLearningPrompt: (prompt2) => {
66141
66167
  if (!storeRef)
66142
- throw new Error("AppStore not initialized");
66168
+ return;
66143
66169
  storeRef.setLearningPrompt(prompt2);
66144
66170
  },
66145
66171
  clearInput: () => {
66146
66172
  if (!storeRef)
66147
- throw new Error("AppStore not initialized");
66173
+ return;
66148
66174
  storeRef.clearInput();
66149
66175
  },
66150
66176
  clearLogs: () => {
66151
66177
  if (!storeRef)
66152
- throw new Error("AppStore not initialized");
66178
+ return;
66153
66179
  storeRef.clearLogs();
66154
66180
  },
66155
66181
  openCommandMenu: () => {
66156
66182
  if (!storeRef)
66157
- throw new Error("AppStore not initialized");
66183
+ return;
66158
66184
  storeRef.openCommandMenu();
66159
66185
  },
66160
66186
  closeCommandMenu: () => {
66161
66187
  if (!storeRef)
66162
- throw new Error("AppStore not initialized");
66188
+ return;
66163
66189
  storeRef.closeCommandMenu();
66164
66190
  },
66165
66191
  transitionFromCommandMenu: (newMode) => {
66166
66192
  if (!storeRef)
66167
- throw new Error("AppStore not initialized");
66193
+ return;
66168
66194
  storeRef.transitionFromCommandMenu(newMode);
66169
66195
  },
66170
66196
  setAvailableModels: (models) => {
66171
66197
  if (!storeRef)
66172
- throw new Error("AppStore not initialized");
66198
+ return;
66173
66199
  storeRef.setAvailableModels(models);
66174
66200
  },
66175
66201
  setModel: (model) => {
66176
66202
  if (!storeRef)
66177
- throw new Error("AppStore not initialized");
66203
+ return;
66178
66204
  storeRef.setModel(model);
66179
66205
  },
66180
66206
  startThinking: () => {
66181
66207
  if (!storeRef)
66182
- throw new Error("AppStore not initialized");
66208
+ return;
66183
66209
  storeRef.startThinking();
66184
66210
  },
66185
66211
  stopThinking: () => {
66186
66212
  if (!storeRef)
66187
- throw new Error("AppStore not initialized");
66213
+ return;
66188
66214
  storeRef.stopThinking();
66189
66215
  },
66190
66216
  addTokens: (input, output) => {
66191
66217
  if (!storeRef)
66192
- throw new Error("AppStore not initialized");
66218
+ return;
66193
66219
  storeRef.addTokens(input, output);
66194
66220
  },
66195
66221
  resetSessionStats: () => {
66196
66222
  if (!storeRef)
66197
- throw new Error("AppStore not initialized");
66223
+ return;
66198
66224
  storeRef.resetSessionStats();
66199
66225
  },
66200
66226
  toggleTodos: () => {
66201
66227
  if (!storeRef)
66202
- throw new Error("AppStore not initialized");
66228
+ return;
66203
66229
  storeRef.toggleTodos();
66204
66230
  },
66205
66231
  toggleDebugLog: () => {
66206
66232
  if (!storeRef)
66207
- throw new Error("AppStore not initialized");
66233
+ return;
66208
66234
  storeRef.toggleDebugLog();
66209
66235
  },
66210
66236
  setInterruptPending: (pending) => {
66211
66237
  if (!storeRef)
66212
- throw new Error("AppStore not initialized");
66238
+ return;
66213
66239
  storeRef.setInterruptPending(pending);
66214
66240
  },
66215
66241
  setIsCompacting: (compacting) => {
66216
66242
  if (!storeRef)
66217
- throw new Error("AppStore not initialized");
66243
+ return;
66218
66244
  storeRef.setIsCompacting(compacting);
66219
66245
  },
66220
66246
  startStreaming: () => {
66221
66247
  if (!storeRef)
66222
- throw new Error("AppStore not initialized");
66248
+ return "";
66223
66249
  return storeRef.startStreaming();
66224
66250
  },
66225
66251
  appendStreamContent: (content) => {
66226
66252
  if (!storeRef)
66227
- throw new Error("AppStore not initialized");
66253
+ return;
66228
66254
  storeRef.appendStreamContent(content);
66229
66255
  },
66230
66256
  completeStreaming: () => {
66231
66257
  if (!storeRef)
66232
- throw new Error("AppStore not initialized");
66258
+ return;
66233
66259
  storeRef.completeStreaming();
66234
66260
  },
66235
66261
  cancelStreaming: () => {
66236
66262
  if (!storeRef)
66237
- throw new Error("AppStore not initialized");
66263
+ return;
66238
66264
  storeRef.cancelStreaming();
66239
66265
  },
66240
66266
  setSuggestions: (suggestions) => {
66241
66267
  if (!storeRef)
66242
- throw new Error("AppStore not initialized");
66268
+ return;
66243
66269
  storeRef.setSuggestions(suggestions);
66244
66270
  },
66245
66271
  clearSuggestions: () => {
66246
66272
  if (!storeRef)
66247
- throw new Error("AppStore not initialized");
66273
+ return;
66248
66274
  storeRef.clearSuggestions();
66249
66275
  },
66250
66276
  hideSuggestions: () => {
66251
66277
  if (!storeRef)
66252
- throw new Error("AppStore not initialized");
66278
+ return;
66253
66279
  storeRef.hideSuggestions();
66254
66280
  },
66255
66281
  setProvider: (provider) => {
66256
66282
  if (!storeRef)
66257
- throw new Error("AppStore not initialized");
66283
+ return;
66258
66284
  storeRef.setProvider(provider);
66259
66285
  },
66260
66286
  setCascadeEnabled: (enabled) => {
66261
66287
  if (!storeRef)
66262
- throw new Error("AppStore not initialized");
66288
+ return;
66263
66289
  storeRef.setCascadeEnabled(enabled);
66264
66290
  },
66265
66291
  toggleCascadeEnabled: () => {
66266
66292
  if (!storeRef)
66267
- throw new Error("AppStore not initialized");
66293
+ return;
66268
66294
  storeRef.toggleCascadeEnabled();
66269
66295
  }
66270
66296
  };
@@ -73666,7 +73692,7 @@ var init_semantic_search = __esm(() => {
73666
73692
  var version_default;
73667
73693
  var init_version = __esm(() => {
73668
73694
  version_default = {
73669
- version: "0.2.1"
73695
+ version: "0.2.2"
73670
73696
  };
73671
73697
  });
73672
73698
 
@@ -106497,7 +106523,6 @@ MCP Status
106497
106523
  };
106498
106524
 
106499
106525
  // src/commands/components/chat/mcp/handle-mcp.ts
106500
- await init_app();
106501
106526
  var handleMCP = async (args) => {
106502
106527
  const subcommand = args[0] || "status";
106503
106528
  const handlers = {
@@ -108945,4 +108970,4 @@ ${plan.steps.map((s) => `${s.id}. ${s.description}`).join(`
108945
108970
  });
108946
108971
  program2.parse(process.argv);
108947
108972
 
108948
- //# debugId=A668908B12C6E01864756E2164756E21
108973
+ //# debugId=0B841F2DBC1F214564756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codetyper-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "CodeTyper AI Agent - Standalone CLI for autonomous code generation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.2.1"
2
+ "version": "0.2.2"
3
3
  }