@heuresis/mcp 1.0.0-rc.1
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/README.md +152 -0
- package/dist/cli.js +276 -0
- package/dist/cloudClient.js +71 -0
- package/dist/cloudOperators.js +530 -0
- package/dist/cloudTools.js +1727 -0
- package/dist/cloudTypes.js +8 -0
- package/dist/credentials.js +97 -0
- package/dist/index.js +294 -0
- package/dist/llm/client.js +155 -0
- package/dist/llm/cost.js +65 -0
- package/dist/operators/asit.js +50 -0
- package/dist/operators/combine.js +10 -0
- package/dist/operators/contradiction.js +13 -0
- package/dist/operators/explore.js +14 -0
- package/dist/operators/triz-matrix.js +1964 -0
- package/dist/operators/triz.js +23 -0
- package/dist/operators/types.js +10 -0
- package/dist/prompt/compose.js +141 -0
- package/dist/prompt/parse.js +99 -0
- package/dist/prompt/schema.js +30 -0
- package/dist/realtime.js +192 -0
- package/dist/store.js +128 -0
- package/dist/tools.js +264 -0
- package/dist/types.js +5 -0
- package/dist/zod-to-json-schema.js +89 -0
- package/package.json +54 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Combine operator — verbatim duplicate of `src/operators/combine.ts`.
|
|
2
|
+
export const COMBINE_OPERATOR = {
|
|
3
|
+
family: 'COMBINE',
|
|
4
|
+
key: 'synthesize',
|
|
5
|
+
name: 'Synthesize',
|
|
6
|
+
glyph: '⊕',
|
|
7
|
+
oneLiner: 'Combine N concepts into a new one.',
|
|
8
|
+
doctrine: 'Treat all selected concepts as equal inputs. Propose a concept that captures their union, intersection, or a synthesis along the user-supplied angle.',
|
|
9
|
+
promptFragment: 'Apply the COMBINE operator: read the <inputs> block (N grounded concepts). Propose 1–3 new concepts that synthesize them. Each proposed concept should explicitly cite which inputs it draws from.',
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Contradiction operator — verbatim duplicate of
|
|
2
|
+
// `src/operators/contradiction.ts`. The composer + matrix lookup that the
|
|
3
|
+
// webapp uses to surface principles for a given (improving × worsening) pair
|
|
4
|
+
// live in `triz-matrix.ts`.
|
|
5
|
+
export const CONTRADICTION_OPERATOR = {
|
|
6
|
+
family: 'CONTRADICTION',
|
|
7
|
+
key: 'triz_matrix',
|
|
8
|
+
name: 'Contradiction',
|
|
9
|
+
glyph: '⇄',
|
|
10
|
+
oneLiner: 'Resolve a trade-off via the TRIZ matrix.',
|
|
11
|
+
doctrine: 'When improving one parameter worsens another, look up the contradiction in the 39×39 TRIZ matrix to get the inventive principles Altshuller found most often resolved that exact trade-off. Composer asks for the parameter you want to improve and the parameter that gets worse, then preloads the top 3 principles as next operators on the focused node.',
|
|
12
|
+
promptFragment: "Apply the CONTRADICTION operator: the user picked an improving parameter and a worsening parameter from TRIZ's 39 standard parameters. The matrix-suggested inventive principles are listed inline. For each principle, propose 1–2 concrete reformulations of the focused concept that embody that principle and resolve the contradiction.",
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// EXPLORE (Branch) operator — verbatim duplicate of the EXPLORE_OPERATOR
|
|
2
|
+
// constant in `src/operators/explore.ts`. The webapp ALSO exports a
|
|
3
|
+
// `runExploreForBranch` helper from that file, which reaches into the store
|
|
4
|
+
// and the LLM client and is intentionally NOT mirrored here — the MCP runs
|
|
5
|
+
// the operator through its own pipeline in `cloudOperators.ts`.
|
|
6
|
+
export const EXPLORE_OPERATOR = {
|
|
7
|
+
family: 'EXPLORE',
|
|
8
|
+
key: 'branch',
|
|
9
|
+
name: 'Explore branch',
|
|
10
|
+
glyph: '▾',
|
|
11
|
+
oneLiner: 'Propose more children from what is already underneath.',
|
|
12
|
+
doctrine: 'Look at the parent concept and its existing direct children. Infer the axis or theme they share, then propose 4–8 more children that extend the set: cover extremes, inversions, fractional/qualitative variants, and overlooked common cases. If there are no existing children, propose 4–8 natural first partitions.',
|
|
13
|
+
promptFragment: 'Apply the EXPLORE operator: read the <branch> block — the parent concept and its existing direct children (which may be empty). Propose 4–8 additional sibling concepts. Each must be a standalone label suitable as a concept node (short, concrete). Order from most natural to most provocative.',
|
|
14
|
+
};
|