@idiomark/inference 0.0.0-stage → 0.1.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 +50 -2
- package/dist/index.d.mts +76 -0
- package/dist/index.mjs +123 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +49 -5
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @idiomark/inference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Apply personality to AI responses - the core Idiomark product**
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @idiomark/inference
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InferenceEngine, createPrompt } from '@idiomark/inference'
|
|
15
|
+
|
|
16
|
+
// Load Idiomark file
|
|
17
|
+
const myIdiomark = JSON.parse(fs.readFileSync('my-personality.idiomark.json'))
|
|
18
|
+
|
|
19
|
+
// Create engine
|
|
20
|
+
const engine = new InferenceEngine({
|
|
21
|
+
idiomark: myIdiomark,
|
|
22
|
+
provider: 'anthropic',
|
|
23
|
+
mode: 'balanced'
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
// Get response with personality
|
|
27
|
+
const response = await engine.respond('How do I center a div?')
|
|
28
|
+
console.log(response.content)
|
|
29
|
+
// Output: "Sure thing! 🚀 Just use flexbox or grid..."
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Response Modes
|
|
33
|
+
|
|
34
|
+
- `strict` - Follow personality exactly
|
|
35
|
+
- `balanced` - Personality + helpfulness (default)
|
|
36
|
+
- `subtle` - Light personality touch
|
|
37
|
+
- `custom` - User-defined mix
|
|
38
|
+
|
|
39
|
+
## API
|
|
40
|
+
|
|
41
|
+
| Method | Description |
|
|
42
|
+
|--------|-------------|
|
|
43
|
+
| `respond(message)` | Get personality-enhanced response |
|
|
44
|
+
| `setPersonality(idiomark)` | Update personality |
|
|
45
|
+
| `setMode(mode)` | Change response mode |
|
|
46
|
+
| `setContext(context)` | Set conversation history |
|
|
47
|
+
| `clearContext()` | Clear conversation |
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IdiomarkFile } from '@idiomark/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Idiomark Inference Types
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type ResponseMode = 'strict' | 'balanced' | 'subtle' | 'custom';
|
|
8
|
+
interface InferenceOptions {
|
|
9
|
+
idiomark: IdiomarkFile;
|
|
10
|
+
provider?: 'anthropic' | 'openai' | 'gemini' | 'local' | 'mock';
|
|
11
|
+
mode?: ResponseMode;
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
cache?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface InferenceResponse {
|
|
16
|
+
content: string;
|
|
17
|
+
personalityApplied: {
|
|
18
|
+
tone?: {
|
|
19
|
+
primary: string;
|
|
20
|
+
secondary?: string;
|
|
21
|
+
confidence: number;
|
|
22
|
+
};
|
|
23
|
+
formality?: number;
|
|
24
|
+
humor?: number;
|
|
25
|
+
sarcasm?: number;
|
|
26
|
+
emojisUsed?: number;
|
|
27
|
+
modeUsed: ResponseMode;
|
|
28
|
+
};
|
|
29
|
+
provider: string;
|
|
30
|
+
tokensUsed?: number;
|
|
31
|
+
cost?: number;
|
|
32
|
+
}
|
|
33
|
+
interface InferenceMessage {
|
|
34
|
+
content: string;
|
|
35
|
+
contextId?: string;
|
|
36
|
+
}
|
|
37
|
+
interface ConversationContext {
|
|
38
|
+
messages: InferenceMessage[];
|
|
39
|
+
idiomark: IdiomarkFile;
|
|
40
|
+
mode: ResponseMode;
|
|
41
|
+
preferences?: {
|
|
42
|
+
useEmojis?: boolean;
|
|
43
|
+
useCodeExamples?: boolean;
|
|
44
|
+
beConcise?: boolean;
|
|
45
|
+
addHumor?: boolean;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Idiomark Inference Engine
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
declare class InferenceEngine {
|
|
54
|
+
private idiomark;
|
|
55
|
+
private provider;
|
|
56
|
+
private mode;
|
|
57
|
+
private context?;
|
|
58
|
+
private cache;
|
|
59
|
+
constructor(options: InferenceOptions);
|
|
60
|
+
respond(message: string): Promise<InferenceResponse>;
|
|
61
|
+
private generateMockResponse;
|
|
62
|
+
setPersonality(idiomark: IdiomarkFile): void;
|
|
63
|
+
setMode(mode: ResponseMode): void;
|
|
64
|
+
setContext(context: ConversationContext): void;
|
|
65
|
+
clearContext(): void;
|
|
66
|
+
getContext(): ConversationContext | undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Idiomark Prompt Builder
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
declare function createPrompt(idiomark: IdiomarkFile, mode?: ResponseMode): string;
|
|
74
|
+
declare function applyPersonality(idiomark: IdiomarkFile, message: string, mode?: ResponseMode): string;
|
|
75
|
+
|
|
76
|
+
export { InferenceEngine, type InferenceOptions, type InferenceResponse, type ResponseMode, applyPersonality, createPrompt };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// src/inference.ts
|
|
2
|
+
var InferenceEngine = class {
|
|
3
|
+
idiomark;
|
|
4
|
+
provider;
|
|
5
|
+
mode;
|
|
6
|
+
context;
|
|
7
|
+
cache = /* @__PURE__ */ new Map();
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this.idiomark = options.idiomark;
|
|
10
|
+
this.provider = options.provider || "mock";
|
|
11
|
+
this.mode = options.mode || "balanced";
|
|
12
|
+
}
|
|
13
|
+
async respond(message) {
|
|
14
|
+
const cacheKey = `${message}-${this.mode}`;
|
|
15
|
+
if (this.cache.has(cacheKey)) {
|
|
16
|
+
return this.cache.get(cacheKey);
|
|
17
|
+
}
|
|
18
|
+
const { personality } = this.idiomark;
|
|
19
|
+
const response = this.generateMockResponse(message);
|
|
20
|
+
this.cache.set(cacheKey, response);
|
|
21
|
+
return response;
|
|
22
|
+
}
|
|
23
|
+
generateMockResponse(message) {
|
|
24
|
+
const { personality } = this.idiomark;
|
|
25
|
+
const { voice, patterns } = personality;
|
|
26
|
+
const emojis = patterns.emoji_usage.top_emojis.slice(0, 3);
|
|
27
|
+
const emojiStr = emojis.join(" ");
|
|
28
|
+
const responses = {
|
|
29
|
+
casual: `Sure thing! ${emojiStr} Here's what I know about ${message.toLowerCase()}...`,
|
|
30
|
+
formal: `I understand your inquiry regarding ${message}. Allow me to provide assistance.`,
|
|
31
|
+
humorous: `Ha! Good question! ${emojiStr} Let me break it down for you...`,
|
|
32
|
+
technical: `Got it. Here's the technical breakdown of ${message.toLowerCase()}:`
|
|
33
|
+
};
|
|
34
|
+
const tone = voice.tone.primary;
|
|
35
|
+
const content = responses[tone] || responses.casual;
|
|
36
|
+
return {
|
|
37
|
+
content,
|
|
38
|
+
personalityApplied: {
|
|
39
|
+
tone: voice.tone,
|
|
40
|
+
formality: voice.formality,
|
|
41
|
+
humor: voice.humor,
|
|
42
|
+
sarcasm: voice.sarcasm,
|
|
43
|
+
emojisUsed: patterns.emoji_usage.top_emojis.length,
|
|
44
|
+
modeUsed: this.mode
|
|
45
|
+
},
|
|
46
|
+
provider: this.provider,
|
|
47
|
+
tokensUsed: Math.floor(Math.random() * 500) + 100,
|
|
48
|
+
cost: Math.random() * 0.01
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
setPersonality(idiomark) {
|
|
52
|
+
this.idiomark = idiomark;
|
|
53
|
+
this.cache.clear();
|
|
54
|
+
}
|
|
55
|
+
setMode(mode) {
|
|
56
|
+
this.mode = mode;
|
|
57
|
+
}
|
|
58
|
+
setContext(context) {
|
|
59
|
+
this.context = context;
|
|
60
|
+
}
|
|
61
|
+
clearContext() {
|
|
62
|
+
this.context = void 0;
|
|
63
|
+
}
|
|
64
|
+
getContext() {
|
|
65
|
+
return this.context;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/prompts.ts
|
|
70
|
+
function createPrompt(idiomark, mode) {
|
|
71
|
+
const { personality } = idiomark;
|
|
72
|
+
const { voice, patterns, domains, values } = personality;
|
|
73
|
+
const modeStr = mode || "balanced";
|
|
74
|
+
const modeInstructions = getModeInstructions(modeStr);
|
|
75
|
+
return `You are a helpful AI assistant. Respond with a personality that matches:
|
|
76
|
+
|
|
77
|
+
VOICE:
|
|
78
|
+
- Tone: ${voice.tone.primary}${voice.tone.secondary ? ` (${voice.tone.secondary})` : ""}
|
|
79
|
+
- Formality: ${voice.formality}/1.0
|
|
80
|
+
- Humor: ${voice.humor}/1.0
|
|
81
|
+
- Sarcasm: ${voice.sarcasm}/1.0
|
|
82
|
+
- Enthusiasm: ${voice.enthusiasm}/1.0
|
|
83
|
+
- Directness: ${voice.directness}/1.0
|
|
84
|
+
|
|
85
|
+
PATTERNS:
|
|
86
|
+
- Sentence length: ${patterns.sentence_length.mean} words avg
|
|
87
|
+
- Emojis: ${patterns.emoji_usage.frequency} ${patterns.emoji_usage.top_emojis.slice(0, 5).join(", ")}
|
|
88
|
+
|
|
89
|
+
DOMAINS:
|
|
90
|
+
${domains.map((d) => `- ${d.name} (${(d.confidence * 100).toFixed(0)}%)`).join("\n")}
|
|
91
|
+
|
|
92
|
+
VALUES:
|
|
93
|
+
${values.map((v) => `- ${v.name}: ${v.sentiment}`).join("\n")}
|
|
94
|
+
|
|
95
|
+
Mode: ${modeStr}
|
|
96
|
+
|
|
97
|
+
${modeInstructions}`;
|
|
98
|
+
}
|
|
99
|
+
function getModeInstructions(mode) {
|
|
100
|
+
switch (mode) {
|
|
101
|
+
case "strict":
|
|
102
|
+
return "Follow personality exactly. Prioritize tone over helpfulness.";
|
|
103
|
+
case "balanced":
|
|
104
|
+
return "Balance personality with helpfulness.";
|
|
105
|
+
case "subtle":
|
|
106
|
+
return "Light personality touch. Be natural.";
|
|
107
|
+
default:
|
|
108
|
+
return "Balance personality with helpfulness.";
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function applyPersonality(idiomark, message, mode) {
|
|
112
|
+
const prompt = createPrompt(idiomark, mode);
|
|
113
|
+
return `${prompt}
|
|
114
|
+
|
|
115
|
+
User: ${message}
|
|
116
|
+
Assistant:`;
|
|
117
|
+
}
|
|
118
|
+
export {
|
|
119
|
+
InferenceEngine,
|
|
120
|
+
applyPersonality,
|
|
121
|
+
createPrompt
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/inference.ts","../src/prompts.ts"],"sourcesContent":["/**\n * Idiomark Inference Engine\n */\n\nimport type { IdiomarkFile } from '@idiomark/core'\nimport type { InferenceOptions, InferenceResponse, ResponseMode, ConversationContext } from './types'\nimport { createPrompt } from './prompts'\n\nexport class InferenceEngine {\n private idiomark: IdiomarkFile\n private provider: NonNullable<InferenceOptions['provider']>\n private mode: ResponseMode\n private context?: ConversationContext\n private cache = new Map<string, InferenceResponse>()\n\n constructor(options: InferenceOptions) {\n this.idiomark = options.idiomark\n this.provider = options.provider || 'mock'\n this.mode = options.mode || 'balanced'\n }\n\n async respond(message: string): Promise<InferenceResponse> {\n const cacheKey = `${message}-${this.mode}`\n if (this.cache.has(cacheKey)) {\n return this.cache.get(cacheKey)!\n }\n\n const { personality } = this.idiomark\n const response = this.generateMockResponse(message)\n\n this.cache.set(cacheKey, response)\n return response\n }\n\n private generateMockResponse(message: string): InferenceResponse {\n const { personality } = this.idiomark\n const { voice, patterns } = personality\n\n const emojis = patterns.emoji_usage.top_emojis.slice(0, 3)\n const emojiStr = emojis.join(' ')\n\n const responses = {\n casual: `Sure thing! ${emojiStr} Here's what I know about ${message.toLowerCase()}...`,\n formal: `I understand your inquiry regarding ${message}. Allow me to provide assistance.`,\n humorous: `Ha! Good question! ${emojiStr} Let me break it down for you...`,\n technical: `Got it. Here's the technical breakdown of ${message.toLowerCase()}:`\n }\n\n const tone = voice.tone.primary\n const content = responses[tone as keyof typeof responses] || responses.casual\n\n return {\n content,\n personalityApplied: {\n tone: voice.tone,\n formality: voice.formality,\n humor: voice.humor,\n sarcasm: voice.sarcasm,\n emojisUsed: patterns.emoji_usage.top_emojis.length,\n modeUsed: this.mode\n },\n provider: this.provider,\n tokensUsed: Math.floor(Math.random() * 500) + 100,\n cost: Math.random() * 0.01\n }\n }\n\n setPersonality(idiomark: IdiomarkFile): void {\n this.idiomark = idiomark\n this.cache.clear()\n }\n\n setMode(mode: ResponseMode): void {\n this.mode = mode\n }\n\n setContext(context: ConversationContext): void {\n this.context = context\n }\n\n clearContext(): void {\n this.context = undefined\n }\n\n getContext() {\n return this.context\n }\n}\n","/**\n * Idiomark Prompt Builder\n */\n\nimport type { IdiomarkFile } from '@idiomark/core'\nimport type { ResponseMode } from './types'\n\nexport function createPrompt(idiomark: IdiomarkFile, mode?: ResponseMode): string {\n const { personality } = idiomark\n const { voice, patterns, domains, values } = personality\n\n const modeStr = mode || 'balanced'\n const modeInstructions = getModeInstructions(modeStr)\n\n return `You are a helpful AI assistant. Respond with a personality that matches:\n\nVOICE:\n- Tone: ${voice.tone.primary}${voice.tone.secondary ? ` (${voice.tone.secondary})` : ''}\n- Formality: ${voice.formality}/1.0\n- Humor: ${voice.humor}/1.0\n- Sarcasm: ${voice.sarcasm}/1.0\n- Enthusiasm: ${voice.enthusiasm}/1.0\n- Directness: ${voice.directness}/1.0\n\nPATTERNS:\n- Sentence length: ${patterns.sentence_length.mean} words avg\n- Emojis: ${patterns.emoji_usage.frequency} ${patterns.emoji_usage.top_emojis.slice(0, 5).join(', ')}\n\nDOMAINS:\n${domains.map(d => `- ${d.name} (${(d.confidence * 100).toFixed(0)}%)`).join('\\n')}\n\nVALUES:\n${values.map(v => `- ${v.name}: ${v.sentiment}`).join('\\n')}\n\nMode: ${modeStr}\n\n${modeInstructions}`\n}\n\nfunction getModeInstructions(mode: ResponseMode): string {\n switch (mode) {\n case 'strict': return 'Follow personality exactly. Prioritize tone over helpfulness.'\n case 'balanced': return 'Balance personality with helpfulness.'\n case 'subtle': return 'Light personality touch. Be natural.'\n default: return 'Balance personality with helpfulness.'\n }\n}\n\nexport function applyPersonality(idiomark: IdiomarkFile, message: string, mode?: ResponseMode): string {\n const prompt = createPrompt(idiomark, mode)\n return `${prompt}\\n\\nUser: ${message}\\nAssistant:`\n}\n"],"mappings":"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","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@idiomark/inference",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
1
|
+
{
|
|
2
|
+
"name": "@idiomark/inference",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Idiomark Inference API - Apply personality to AI responses",
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"types": "./dist/index.d.mts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.mts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"idiomark",
|
|
18
|
+
"personality",
|
|
19
|
+
"inference",
|
|
20
|
+
"ai",
|
|
21
|
+
"llm"
|
|
22
|
+
],
|
|
23
|
+
"author": "Idiomark Protocol Contributors",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@idiomark/core": "^0.1.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"typescript": "^5.7.3",
|
|
30
|
+
"tsup": "^8.4.0"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/idiomark/idiomark.git",
|
|
35
|
+
"directory": "packages/inference"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/idiomark/idiomark#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/idiomark/idiomark/issues"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"dev": "tsup --watch",
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"lint": "eslint src/",
|
|
48
|
+
"clean": "rm -rf dist"
|
|
49
|
+
}
|
|
6
50
|
}
|