@kolisachint/hoocode-agent 0.5.28 → 0.5.29

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.
@@ -17,6 +17,7 @@ import { sumAssistantUsage } from "../../core/agent-session-stats.js";
17
17
  import { canvasSearchRoots, discoverCanvasExtensions } from "../../core/canvas/discovery.js";
18
18
  import { pluginCanvasExtensions } from "../../core/canvas/plugin-canvases.js";
19
19
  import { gateCanvasExtensions } from "../../core/canvas/trust.js";
20
+ import { getWorkspacePlatforms, setPlatforms } from "../../core/extensions/plugins/formats/platform-targets.js";
20
21
  import { FooterDataProvider } from "../../core/footer-data-provider.js";
21
22
  import { formatDurationSecs } from "../../core/format-duration.js";
22
23
  import { formatTokens } from "../../core/format-tokens.js";
@@ -2742,6 +2743,13 @@ export class InteractiveMode {
2742
2743
  blockImages: this.settingsManager.getBlockImages(),
2743
2744
  enableSkillCommands: this.settingsManager.getEnableSkillCommands(),
2744
2745
  pluginInstallScope: this.settingsManager.getPluginInstallScope(),
2746
+ enablePluginTools: this.settingsManager.getEnablePluginTools(),
2747
+ // Rows write the user settings file, so a key the project file also
2748
+ // sets is merged back over it next session. The pane says which.
2749
+ projectPinnedSettings: Object.keys(this.settingsManager.getProjectSettings()),
2750
+ // The targets actually in force, so a session launched with --platform
2751
+ // shows what it is writing rather than the (possibly unset) setting.
2752
+ platform: getWorkspacePlatforms() ?? [],
2745
2753
  steeringMode: this.session.steeringMode,
2746
2754
  followUpMode: this.session.followUpMode,
2747
2755
  transport: this.settingsManager.getTransport(),
@@ -2876,6 +2884,20 @@ export class InteractiveMode {
2876
2884
  // nothing to reload.
2877
2885
  this.settingsManager.setPluginInstallScope(scope);
2878
2886
  },
2887
+ onEnablePluginToolsChange: (enabled) => {
2888
+ // Master switch for the autonomous plugin system. The lifecycle
2889
+ // tools are attached when the session is built, so they arrive on
2890
+ // the next session; the reuse nudge re-reads settings.json per
2891
+ // check and follows immediately.
2892
+ this.settingsManager.setEnablePluginTools(enabled);
2893
+ },
2894
+ onPlatformChange: (platforms) => {
2895
+ // Persist for later sessions, then update the process-wide session
2896
+ // state so plugin authoring and the /new-* scaffolds pick the new
2897
+ // layout up in this session too.
2898
+ this.settingsManager.setPlatform(platforms);
2899
+ setPlatforms(platforms);
2900
+ },
2879
2901
  onSteeringModeChange: (mode) => {
2880
2902
  this.session.setSteeringMode(mode);
2881
2903
  },