newtype-profile 1.0.64 → 1.0.66

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/cli/index.js CHANGED
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
2253
2253
  var require_package = __commonJS((exports, module) => {
2254
2254
  module.exports = {
2255
2255
  name: "newtype-profile",
2256
- version: "1.0.64",
2256
+ version: "1.0.66",
2257
2257
  description: "AI Agent Collaboration System for Content Creation - Based on oh-my-opencode",
2258
2258
  main: "dist/index.js",
2259
2259
  types: "dist/index.d.ts",
package/dist/index.js CHANGED
@@ -8697,6 +8697,7 @@ Incomplete tasks remain in your todo list. Continue working on the next pending
8697
8697
  - Do not stop until all tasks are done`;
8698
8698
  var COUNTDOWN_SECONDS = 2;
8699
8699
  var TOAST_DURATION_MS = 900;
8700
+ var MAX_INJECTIONS = 3;
8700
8701
  var COUNTDOWN_GRACE_PERIOD_MS = 500;
8701
8702
  function getMessageDir(sessionID) {
8702
8703
  if (!existsSync2(MESSAGE_STORAGE))
@@ -8732,7 +8733,7 @@ function createTodoContinuationEnforcer(ctx, options = {}) {
8732
8733
  function getState(sessionID) {
8733
8734
  let state2 = sessions.get(sessionID);
8734
8735
  if (!state2) {
8735
- state2 = {};
8736
+ state2 = { injectionCount: 0 };
8736
8737
  sessions.set(sessionID, state2);
8737
8738
  }
8738
8739
  return state2;
@@ -8784,6 +8785,10 @@ function createTodoContinuationEnforcer(ctx, options = {}) {
8784
8785
  log(`[${HOOK_NAME}] Skipped injection: in recovery`, { sessionID });
8785
8786
  return;
8786
8787
  }
8788
+ if (state2 && state2.injectionCount >= MAX_INJECTIONS) {
8789
+ log(`[${HOOK_NAME}] Skipped injection: max retries reached (${MAX_INJECTIONS})`, { sessionID, injectionCount: state2.injectionCount });
8790
+ return;
8791
+ }
8787
8792
  const hasRunningBgTasks = backgroundManager ? backgroundManager.getTasksByParentSession(sessionID).some((t) => t.status === "running") : false;
8788
8793
  if (hasRunningBgTasks) {
8789
8794
  log(`[${HOOK_NAME}] Skipped injection: background tasks running`, { sessionID });
@@ -8830,6 +8835,9 @@ function createTodoContinuationEnforcer(ctx, options = {}) {
8830
8835
  query: { directory: ctx.directory }
8831
8836
  });
8832
8837
  log(`[${HOOK_NAME}] Injection successful`, { sessionID });
8838
+ if (state2) {
8839
+ state2.injectionCount++;
8840
+ }
8833
8841
  } catch (err) {
8834
8842
  log(`[${HOOK_NAME}] Injection failed`, { sessionID, error: String(err) });
8835
8843
  }
@@ -50561,6 +50569,10 @@ function createCleanMcpEnvironment(customEnv = {}) {
50561
50569
  }
50562
50570
 
50563
50571
  // src/features/skill-mcp-manager/manager.ts
50572
+ var silentValidator = {
50573
+ getValidator: () => (input) => ({ valid: true, data: input, errorMessage: undefined })
50574
+ };
50575
+
50564
50576
  class SkillMcpManager {
50565
50577
  clients = new Map;
50566
50578
  pendingConnections = new Map;
@@ -50645,7 +50657,7 @@ class SkillMcpManager {
50645
50657
  env: mergedEnv,
50646
50658
  stderr: "ignore"
50647
50659
  });
50648
- const client2 = new Client({ name: `skill-mcp-${info.skillName}-${info.serverName}`, version: "1.0.0" }, { capabilities: {} });
50660
+ const client2 = new Client({ name: `skill-mcp-${info.skillName}-${info.serverName}`, version: "1.0.0" }, { capabilities: {}, jsonSchemaValidator: silentValidator });
50649
50661
  try {
50650
50662
  await client2.connect(transport);
50651
50663
  } catch (error45) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newtype-profile",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "AI Agent Collaboration System for Content Creation - Based on oh-my-opencode",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",