mio-agent-runtime 0.5.1 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mio-agent-runtime",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Mio Agent Runtime installer and MCP intelligence layer",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -2010,14 +2010,27 @@ async function handleIdeaGenerate(args = {}) {
2010
2010
  } catch (e) {
2011
2011
  related = []
2012
2012
  }
2013
+ const relatedIds = related.map((r) => r.id).filter(Boolean)
2013
2014
  const grounding = related
2014
2015
  .filter((r) => r && (r.content || r.kind))
2015
2016
  .map((r) => '- [' + (r.kind || 'note') + '] ' + String(r.content || '').slice(0, 240))
2016
2017
  .join('\n')
2018
+
2019
+ // Generation strategies give diversity without exposing the mechanism to callers.
2020
+ const strategies = [
2021
+ 'SCAMPER',
2022
+ 'Analogy',
2023
+ 'First-Principles',
2024
+ 'Random-Stimulus',
2025
+ 'Constraint-Inversion'
2026
+ ]
2027
+
2017
2028
  const ideas = []
2018
2029
  for (let i = 0; i < numIdeas; i++) {
2030
+ const strategy = strategies[i % strategies.length]
2019
2031
  const blocks = [
2020
2032
  'Goal: ' + goal,
2033
+ 'Strategy: ' + strategy,
2021
2034
  context ? 'Context: ' + context : '',
2022
2035
  constraints.length ? 'Constraints: ' + constraints.join(', ') : '',
2023
2036
  related.length
@@ -2027,8 +2040,12 @@ async function handleIdeaGenerate(args = {}) {
2027
2040
  ].filter(Boolean)
2028
2041
  ideas.push({
2029
2042
  id: 'idea_' + Date.now() + '_' + i,
2030
- title: 'Idea #' + (i + 1) + ': ' + goal,
2031
- description: blocks.join('\n\n')
2043
+ title: 'Idea #' + (i + 1) + ' (' + strategy + '): ' + goal,
2044
+ description: blocks.join('\n\n'),
2045
+ provenance: {
2046
+ strategy: strategy,
2047
+ relatedMemoryIds: relatedIds
2048
+ }
2032
2049
  })
2033
2050
  }
2034
2051
  return {