solfaces 1.0.2 → 2.1.0
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 +489 -97
- package/SKILL.md +171 -0
- package/dist/agent/index.cjs +15 -14
- package/dist/agent/index.js +5 -4
- package/dist/agent/mcp-server.cjs +2956 -287
- package/dist/chunk-6QRDULAO.cjs +191 -0
- package/dist/chunk-6QRDULAO.cjs.map +1 -0
- package/dist/{chunk-RX6D5FGH.js → chunk-77SPWQU5.js} +69 -28
- package/dist/chunk-77SPWQU5.js.map +1 -0
- package/dist/chunk-CQWXUU7P.js +239 -0
- package/dist/chunk-CQWXUU7P.js.map +1 -0
- package/dist/chunk-CXRVPOTI.cjs +244 -0
- package/dist/chunk-CXRVPOTI.cjs.map +1 -0
- package/dist/chunk-DRUSCLEF.js +177 -0
- package/dist/chunk-DRUSCLEF.js.map +1 -0
- package/dist/{chunk-VMNATBH3.cjs → chunk-F244Q4KC.cjs} +74 -33
- package/dist/chunk-F244Q4KC.cjs.map +1 -0
- package/dist/chunk-HVPGR6G5.cjs +647 -0
- package/dist/chunk-HVPGR6G5.cjs.map +1 -0
- package/dist/{chunk-SNJABBAT.js → chunk-MGP7F65H.js} +3 -3
- package/dist/{chunk-SNJABBAT.js.map → chunk-MGP7F65H.js.map} +1 -1
- package/dist/chunk-R3MC2AJZ.cjs +2247 -0
- package/dist/chunk-R3MC2AJZ.cjs.map +1 -0
- package/dist/chunk-SWML743U.js +625 -0
- package/dist/chunk-SWML743U.js.map +1 -0
- package/dist/chunk-SX3FQDKM.js +2238 -0
- package/dist/chunk-SX3FQDKM.js.map +1 -0
- package/dist/{chunk-A6N3RPEA.cjs → chunk-WTCXTXTV.cjs} +6 -6
- package/dist/{chunk-A6N3RPEA.cjs.map → chunk-WTCXTXTV.cjs.map} +1 -1
- package/dist/constants-Bi5uTRp5.d.cts +17 -0
- package/dist/constants-Bi5uTRp5.d.ts +17 -0
- package/dist/core/index.cjs +69 -29
- package/dist/core/index.d.cts +29 -47
- package/dist/core/index.d.ts +29 -47
- package/dist/core/index.js +3 -3
- package/dist/index.cjs +104 -35
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -5
- package/dist/names/index.cjs +40 -0
- package/dist/names/index.cjs.map +1 -0
- package/dist/names/index.d.cts +36 -0
- package/dist/names/index.d.ts +36 -0
- package/dist/names/index.js +3 -0
- package/dist/names/index.js.map +1 -0
- package/dist/react/index.cjs +454 -397
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +17 -3
- package/dist/react/index.d.ts +17 -3
- package/dist/react/index.js +450 -394
- package/dist/react/index.js.map +1 -1
- package/dist/solfaces.cdn.global.js +2 -2
- package/dist/solfaces.cdn.global.js.map +1 -1
- package/dist/themes/index.cjs +29 -17
- package/dist/themes/index.d.cts +10 -7
- package/dist/themes/index.d.ts +10 -7
- package/dist/themes/index.js +1 -1
- package/dist/{traits-DAFZnXeS.d.cts → traits-QlWuxZDD.d.cts} +45 -1
- package/dist/{traits-DAFZnXeS.d.ts → traits-QlWuxZDD.d.ts} +45 -1
- package/dist/vanilla/index.cjs +20 -8
- package/dist/vanilla/index.cjs.map +1 -1
- package/dist/vanilla/index.d.cts +1 -1
- package/dist/vanilla/index.d.ts +1 -1
- package/dist/vanilla/index.js +17 -5
- package/dist/vanilla/index.js.map +1 -1
- package/package.json +22 -5
- package/python/solfaces.py +830 -237
- package/reference/integrations.md +166 -0
- package/reference/react.md +108 -0
- package/reference/themes.md +124 -0
- package/dist/chunk-2DIKGLXZ.cjs +0 -126
- package/dist/chunk-2DIKGLXZ.cjs.map +0 -1
- package/dist/chunk-CVFO7YHY.cjs +0 -97
- package/dist/chunk-CVFO7YHY.cjs.map +0 -1
- package/dist/chunk-H3SK3MNX.cjs +0 -409
- package/dist/chunk-H3SK3MNX.cjs.map +0 -1
- package/dist/chunk-KSGFMW33.js +0 -401
- package/dist/chunk-KSGFMW33.js.map +0 -1
- package/dist/chunk-LQWJRHGC.js +0 -86
- package/dist/chunk-LQWJRHGC.js.map +0 -1
- package/dist/chunk-RX6D5FGH.js.map +0 -1
- package/dist/chunk-VMNATBH3.cjs.map +0 -1
- package/dist/chunk-WURY4QGH.js +0 -117
- package/dist/chunk-WURY4QGH.js.map +0 -1
- package/skill.md +0 -463
package/dist/core/index.d.ts
CHANGED
|
@@ -1,63 +1,45 @@
|
|
|
1
|
-
import { R as RenderOptions, b as SolFaceTraits } from '../traits-
|
|
2
|
-
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, S as SKIN_COLORS, a as SolFaceTheme, g as generateTraits, c as getTraitLabels, r as resolveTheme, t as traitHash } from '../traits-
|
|
1
|
+
import { R as RenderOptions, b as SolFaceTraits } from '../traits-QlWuxZDD.js';
|
|
2
|
+
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, S as SKIN_COLORS, a as SolFaceTheme, e as effectiveAccessory, g as generateTraits, c as getTraitLabels, m as mergeTheme, r as resolveTheme, t as traitHash } from '../traits-QlWuxZDD.js';
|
|
3
|
+
|
|
4
|
+
declare function hexToRgb(hex: string): [number, number, number];
|
|
5
|
+
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
6
|
+
declare function darken(hex: string, pct?: number): string;
|
|
7
|
+
declare function lighten(hex: string, pct?: number): string;
|
|
8
|
+
declare function blend(a: string, b: string, t?: number): string;
|
|
9
|
+
declare function luminance(hex: string): number;
|
|
10
|
+
interface DerivedColors {
|
|
11
|
+
skinHi: string;
|
|
12
|
+
skinLo: string;
|
|
13
|
+
skinMid: string;
|
|
14
|
+
isDark: boolean;
|
|
15
|
+
cheekColor: string;
|
|
16
|
+
cheekOpacity: number;
|
|
17
|
+
lipColor: string;
|
|
18
|
+
noseFill: string;
|
|
19
|
+
browColor: string;
|
|
20
|
+
earFill: string;
|
|
21
|
+
earShadow: string;
|
|
22
|
+
eyeWhiteAdapted: string;
|
|
23
|
+
lidColor: string;
|
|
24
|
+
accessoryColor: string;
|
|
25
|
+
}
|
|
26
|
+
declare function deriveSkinColors(skin: string): DerivedColors;
|
|
27
|
+
/** Compute buzz cut opacity — higher when hair/skin contrast is low */
|
|
28
|
+
declare function buzzOpacity(hairCol: string, skin: string): number;
|
|
3
29
|
|
|
4
30
|
declare function renderSolFaceSVG(walletAddress: string, options?: RenderOptions): string;
|
|
5
31
|
declare function renderSolFaceDataURI(walletAddress: string, options?: RenderOptions): string;
|
|
6
32
|
declare function renderSolFaceBase64(walletAddress: string, options?: RenderOptions): string;
|
|
7
33
|
|
|
8
34
|
interface DescribeOptions {
|
|
9
|
-
/** Include background color in description. Default: true */
|
|
10
35
|
includeBackground?: boolean;
|
|
11
|
-
/** Output format. Default: "paragraph" */
|
|
12
36
|
format?: "paragraph" | "structured" | "compact";
|
|
13
|
-
/** Perspective: how the description is framed. Default: "third" */
|
|
14
37
|
perspective?: "first" | "third";
|
|
15
|
-
/** Optional name to use instead of "This SolFace" / "I". */
|
|
16
38
|
name?: string;
|
|
17
39
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Generate a natural language description of a SolFace avatar.
|
|
20
|
-
*
|
|
21
|
-
* Designed for AI agent system prompts, profile bios, alt text,
|
|
22
|
-
* and anywhere a wallet's visual identity needs to be described in words.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* // For an AI agent's system prompt
|
|
27
|
-
* const desc = describeAppearance("7xKXq...", {
|
|
28
|
-
* perspective: "first",
|
|
29
|
-
* name: "Atlas",
|
|
30
|
-
* });
|
|
31
|
-
* // → "I'm Atlas. I have a round face with light peach skin, wide
|
|
32
|
-
* // and expressive blue eyes with elegantly arched eyebrows, and
|
|
33
|
-
* // tall, spiky Solana mint green hair. I'm wearing round glasses
|
|
34
|
-
* // and have a confident smirk."
|
|
35
|
-
*
|
|
36
|
-
* // For alt text
|
|
37
|
-
* const alt = describeAppearance("7xKXq...", { format: "compact" });
|
|
38
|
-
* // → "Round face, light peach skin, blue wide eyes, spiky mint hair, round glasses, smirking"
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
40
|
declare function describeAppearance(walletAddress: string, options?: DescribeOptions): string;
|
|
42
|
-
/**
|
|
43
|
-
* Generate description from pre-computed traits (for when you already have them).
|
|
44
|
-
*/
|
|
45
41
|
declare function describeTraits(traits: SolFaceTraits, options?: DescribeOptions): string;
|
|
46
|
-
/**
|
|
47
|
-
* Generate accessible alt text for a SolFace avatar.
|
|
48
|
-
* Shorter than full description, optimized for screen readers.
|
|
49
|
-
*/
|
|
50
42
|
declare function solFaceAltText(walletAddress: string): string;
|
|
51
|
-
/**
|
|
52
|
-
* Generate a system prompt snippet for an AI agent describing its appearance.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const appearance = agentAppearancePrompt("7xKXq...", "Atlas");
|
|
57
|
-
* // Use in system prompt:
|
|
58
|
-
* // `You are Atlas, an AI agent. ${appearance}`
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
43
|
declare function agentAppearancePrompt(walletAddress: string, agentName?: string): string;
|
|
62
44
|
|
|
63
45
|
interface PNGOptions extends RenderOptions {
|
|
@@ -101,4 +83,4 @@ declare function renderSolFacePNGBrowser(walletAddress: string, options?: PNGOpt
|
|
|
101
83
|
*/
|
|
102
84
|
declare function renderSolFacePNGDataURL(walletAddress: string, options?: PNGOptions): Promise<string>;
|
|
103
85
|
|
|
104
|
-
export { type DescribeOptions, type PNGOptions, RenderOptions, SolFaceTraits, agentAppearancePrompt, describeAppearance, describeTraits, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, solFaceAltText };
|
|
86
|
+
export { type DerivedColors, type DescribeOptions, type PNGOptions, RenderOptions, SolFaceTraits, agentAppearancePrompt, blend, buzzOpacity, darken, deriveSkinColors, describeAppearance, describeTraits, hexToRgb, lighten, luminance, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, rgbToHex, solFaceAltText };
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL } from '../chunk-
|
|
2
|
-
export { agentAppearancePrompt, describeAppearance, describeTraits,
|
|
3
|
-
export { BG_COLORS, EYE_COLORS, HAIR_COLORS, SKIN_COLORS, generateTraits, getTraitLabels, resolveTheme, traitHash } from '../chunk-
|
|
1
|
+
export { renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL } from '../chunk-MGP7F65H.js';
|
|
2
|
+
export { agentAppearancePrompt, describeAppearance, describeTraits, solFaceAltText } from '../chunk-CQWXUU7P.js';
|
|
3
|
+
export { BG_COLORS, EYE_COLORS, HAIR_COLORS, SKIN_COLORS, blend, buzzOpacity, darken, deriveSkinColors, effectiveAccessory, generateTraits, getTraitLabels, hexToRgb, lighten, luminance, mergeTheme, renderSolFaceBase64, renderSolFaceDataURI, renderSolFaceSVG, resolveTheme, rgbToHex, traitHash } from '../chunk-SWML743U.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,100 +1,169 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkWTCXTXTV_cjs = require('./chunk-WTCXTXTV.cjs');
|
|
4
|
+
var chunkF244Q4KC_cjs = require('./chunk-F244Q4KC.cjs');
|
|
5
|
+
var chunkCXRVPOTI_cjs = require('./chunk-CXRVPOTI.cjs');
|
|
6
|
+
var chunkHVPGR6G5_cjs = require('./chunk-HVPGR6G5.cjs');
|
|
7
|
+
var chunk6QRDULAO_cjs = require('./chunk-6QRDULAO.cjs');
|
|
8
|
+
var chunkR3MC2AJZ_cjs = require('./chunk-R3MC2AJZ.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "renderSolFacePNG", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkWTCXTXTV_cjs.renderSolFacePNG; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "renderSolFacePNGBrowser", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWTCXTXTV_cjs.renderSolFacePNGBrowser; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "renderSolFacePNGDataURL", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkWTCXTXTV_cjs.renderSolFacePNGDataURL; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "SOLFACE_TOOLS", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkF244Q4KC_cjs.SOLFACE_TOOLS; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "handleToolCall", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkF244Q4KC_cjs.handleToolCall; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "agentAppearancePrompt", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkCXRVPOTI_cjs.agentAppearancePrompt; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "describeAppearance", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkCXRVPOTI_cjs.describeAppearance; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "describeTraits", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkCXRVPOTI_cjs.describeTraits; }
|
|
42
43
|
});
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "solFaceAltText", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkCXRVPOTI_cjs.solFaceAltText; }
|
|
46
47
|
});
|
|
47
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "BG_COLORS", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkHVPGR6G5_cjs.BG_COLORS; }
|
|
50
51
|
});
|
|
51
|
-
Object.defineProperty(exports, "
|
|
52
|
+
Object.defineProperty(exports, "EYE_COLORS", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkHVPGR6G5_cjs.EYE_COLORS; }
|
|
54
55
|
});
|
|
55
|
-
Object.defineProperty(exports, "
|
|
56
|
+
Object.defineProperty(exports, "HAIR_COLORS", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkHVPGR6G5_cjs.HAIR_COLORS; }
|
|
58
59
|
});
|
|
59
|
-
Object.defineProperty(exports, "
|
|
60
|
+
Object.defineProperty(exports, "SKIN_COLORS", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkHVPGR6G5_cjs.SKIN_COLORS; }
|
|
62
63
|
});
|
|
63
|
-
Object.defineProperty(exports, "
|
|
64
|
+
Object.defineProperty(exports, "blend", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkHVPGR6G5_cjs.blend; }
|
|
66
67
|
});
|
|
67
|
-
Object.defineProperty(exports, "
|
|
68
|
+
Object.defineProperty(exports, "buzzOpacity", {
|
|
68
69
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHVPGR6G5_cjs.buzzOpacity; }
|
|
70
71
|
});
|
|
71
|
-
Object.defineProperty(exports, "
|
|
72
|
+
Object.defineProperty(exports, "darken", {
|
|
72
73
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkHVPGR6G5_cjs.darken; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "deriveSkinColors", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkHVPGR6G5_cjs.deriveSkinColors; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "effectiveAccessory", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkHVPGR6G5_cjs.effectiveAccessory; }
|
|
74
83
|
});
|
|
75
84
|
Object.defineProperty(exports, "generateTraits", {
|
|
76
85
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkHVPGR6G5_cjs.generateTraits; }
|
|
78
87
|
});
|
|
79
88
|
Object.defineProperty(exports, "getTraitLabels", {
|
|
80
89
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkHVPGR6G5_cjs.getTraitLabels; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "hexToRgb", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkHVPGR6G5_cjs.hexToRgb; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "lighten", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkHVPGR6G5_cjs.lighten; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "luminance", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkHVPGR6G5_cjs.luminance; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "mergeTheme", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkHVPGR6G5_cjs.mergeTheme; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "renderSolFaceBase64", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunkHVPGR6G5_cjs.renderSolFaceBase64; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "renderSolFaceDataURI", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunkHVPGR6G5_cjs.renderSolFaceDataURI; }
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "renderSolFaceSVG", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunkHVPGR6G5_cjs.renderSolFaceSVG; }
|
|
82
119
|
});
|
|
83
120
|
Object.defineProperty(exports, "resolveTheme", {
|
|
84
121
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkHVPGR6G5_cjs.resolveTheme; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "rgbToHex", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunkHVPGR6G5_cjs.rgbToHex; }
|
|
86
127
|
});
|
|
87
128
|
Object.defineProperty(exports, "traitHash", {
|
|
88
129
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkHVPGR6G5_cjs.traitHash; }
|
|
90
131
|
});
|
|
91
132
|
Object.defineProperty(exports, "PRESET_THEMES", {
|
|
92
133
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk6QRDULAO_cjs.PRESET_THEMES; }
|
|
94
135
|
});
|
|
95
136
|
Object.defineProperty(exports, "getPresetTheme", {
|
|
96
137
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk6QRDULAO_cjs.getPresetTheme; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "ADJECTIVES", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunkR3MC2AJZ_cjs.ADJECTIVES; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "NOUNS", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkR3MC2AJZ_cjs.NOUNS; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "SOLNAMES_VERSION", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkR3MC2AJZ_cjs.SOLNAMES_VERSION; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "deriveIdentity", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunkR3MC2AJZ_cjs.deriveIdentity; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "deriveName", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunkR3MC2AJZ_cjs.deriveName; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "isValidSolName", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunkR3MC2AJZ_cjs.isValidSolName; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "parseSolName", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunkR3MC2AJZ_cjs.parseSolName; }
|
|
98
167
|
});
|
|
99
168
|
//# sourceMappingURL=index.cjs.map
|
|
100
169
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, R as RenderOptions, S as SKIN_COLORS, a as SolFaceTheme, b as SolFaceTraits, g as generateTraits, c as getTraitLabels, r as resolveTheme, t as traitHash } from './traits-
|
|
2
|
-
export { DescribeOptions, PNGOptions, agentAppearancePrompt, describeAppearance, describeTraits, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, solFaceAltText } from './core/index.cjs';
|
|
1
|
+
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, R as RenderOptions, S as SKIN_COLORS, a as SolFaceTheme, b as SolFaceTraits, e as effectiveAccessory, g as generateTraits, c as getTraitLabels, m as mergeTheme, r as resolveTheme, t as traitHash } from './traits-QlWuxZDD.cjs';
|
|
2
|
+
export { DerivedColors, DescribeOptions, PNGOptions, agentAppearancePrompt, blend, buzzOpacity, darken, deriveSkinColors, describeAppearance, describeTraits, hexToRgb, lighten, luminance, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, rgbToHex, solFaceAltText } from './core/index.cjs';
|
|
3
|
+
export { ParsedSolName, deriveIdentity, deriveName, isValidSolName, parseSolName } from './names/index.cjs';
|
|
4
|
+
export { A as ADJECTIVES, N as NOUNS, a as NameFormat, S as SOLNAMES_VERSION, b as SolNameIdentity } from './constants-Bi5uTRp5.cjs';
|
|
3
5
|
export { PRESET_THEMES, getPresetTheme } from './themes/index.cjs';
|
|
4
6
|
export { SOLFACE_TOOLS, SolFaceTool, handleToolCall } from './agent/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, R as RenderOptions, S as SKIN_COLORS, a as SolFaceTheme, b as SolFaceTraits, g as generateTraits, c as getTraitLabels, r as resolveTheme, t as traitHash } from './traits-
|
|
2
|
-
export { DescribeOptions, PNGOptions, agentAppearancePrompt, describeAppearance, describeTraits, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, solFaceAltText } from './core/index.js';
|
|
1
|
+
export { B as BG_COLORS, E as EYE_COLORS, H as HAIR_COLORS, R as RenderOptions, S as SKIN_COLORS, a as SolFaceTheme, b as SolFaceTraits, e as effectiveAccessory, g as generateTraits, c as getTraitLabels, m as mergeTheme, r as resolveTheme, t as traitHash } from './traits-QlWuxZDD.js';
|
|
2
|
+
export { DerivedColors, DescribeOptions, PNGOptions, agentAppearancePrompt, blend, buzzOpacity, darken, deriveSkinColors, describeAppearance, describeTraits, hexToRgb, lighten, luminance, renderSolFaceBase64, renderSolFaceDataURI, renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL, renderSolFaceSVG, rgbToHex, solFaceAltText } from './core/index.js';
|
|
3
|
+
export { ParsedSolName, deriveIdentity, deriveName, isValidSolName, parseSolName } from './names/index.js';
|
|
4
|
+
export { A as ADJECTIVES, N as NOUNS, a as NameFormat, S as SOLNAMES_VERSION, b as SolNameIdentity } from './constants-Bi5uTRp5.js';
|
|
3
5
|
export { PRESET_THEMES, getPresetTheme } from './themes/index.js';
|
|
4
6
|
export { SOLFACE_TOOLS, SolFaceTool, handleToolCall } from './agent/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL } from './chunk-
|
|
2
|
-
export { SOLFACE_TOOLS, handleToolCall } from './chunk-
|
|
3
|
-
export { agentAppearancePrompt, describeAppearance, describeTraits,
|
|
4
|
-
export { BG_COLORS, EYE_COLORS, HAIR_COLORS, SKIN_COLORS, generateTraits, getTraitLabels, resolveTheme, traitHash } from './chunk-
|
|
5
|
-
export { PRESET_THEMES, getPresetTheme } from './chunk-
|
|
1
|
+
export { renderSolFacePNG, renderSolFacePNGBrowser, renderSolFacePNGDataURL } from './chunk-MGP7F65H.js';
|
|
2
|
+
export { SOLFACE_TOOLS, handleToolCall } from './chunk-77SPWQU5.js';
|
|
3
|
+
export { agentAppearancePrompt, describeAppearance, describeTraits, solFaceAltText } from './chunk-CQWXUU7P.js';
|
|
4
|
+
export { BG_COLORS, EYE_COLORS, HAIR_COLORS, SKIN_COLORS, blend, buzzOpacity, darken, deriveSkinColors, effectiveAccessory, generateTraits, getTraitLabels, hexToRgb, lighten, luminance, mergeTheme, renderSolFaceBase64, renderSolFaceDataURI, renderSolFaceSVG, resolveTheme, rgbToHex, traitHash } from './chunk-SWML743U.js';
|
|
5
|
+
export { PRESET_THEMES, getPresetTheme } from './chunk-DRUSCLEF.js';
|
|
6
|
+
export { ADJECTIVES, NOUNS, SOLNAMES_VERSION, deriveIdentity, deriveName, isValidSolName, parseSolName } from './chunk-SX3FQDKM.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkR3MC2AJZ_cjs = require('../chunk-R3MC2AJZ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ADJECTIVES", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkR3MC2AJZ_cjs.ADJECTIVES; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "BLOCKED_COMBOS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkR3MC2AJZ_cjs.BLOCKED_COMBOS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "NOUNS", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkR3MC2AJZ_cjs.NOUNS; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "SOLNAMES_VERSION", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkR3MC2AJZ_cjs.SOLNAMES_VERSION; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "deriveIdentity", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkR3MC2AJZ_cjs.deriveIdentity; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "deriveName", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkR3MC2AJZ_cjs.deriveName; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isValidSolName", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkR3MC2AJZ_cjs.isValidSolName; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "parseSolName", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkR3MC2AJZ_cjs.parseSolName; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.cjs.map
|
|
40
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { b as SolNameIdentity, a as NameFormat } from '../constants-Bi5uTRp5.cjs';
|
|
2
|
+
export { A as ADJECTIVES, B as BLOCKED_COMBOS, N as NOUNS, S as SOLNAMES_VERSION } from '../constants-Bi5uTRp5.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Derive a deterministic name from a Solana wallet address.
|
|
6
|
+
*
|
|
7
|
+
* @param wallet Base58 wallet address
|
|
8
|
+
* @param format Name format (default: "display")
|
|
9
|
+
* @returns Formatted name string
|
|
10
|
+
*/
|
|
11
|
+
declare function deriveName(wallet: string, format?: NameFormat): string;
|
|
12
|
+
/**
|
|
13
|
+
* Derive the full identity bundle for a wallet address.
|
|
14
|
+
* Returns all four name formats plus component parts.
|
|
15
|
+
*/
|
|
16
|
+
declare function deriveIdentity(wallet: string): SolNameIdentity;
|
|
17
|
+
|
|
18
|
+
interface ParsedSolName {
|
|
19
|
+
adjective: string;
|
|
20
|
+
noun: string;
|
|
21
|
+
discriminator?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a string is a valid SolName (display, tag, or full format).
|
|
25
|
+
*/
|
|
26
|
+
declare function isValidSolName(name: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Parse a SolName string into its component parts.
|
|
29
|
+
* Supports display ("SunnyIcon"), tag ("SunnyIcon#2f95"),
|
|
30
|
+
* and full ("SunnyIcon-InfiniteOre") formats.
|
|
31
|
+
*
|
|
32
|
+
* Returns null if the name doesn't match any valid format.
|
|
33
|
+
*/
|
|
34
|
+
declare function parseSolName(name: string): ParsedSolName | null;
|
|
35
|
+
|
|
36
|
+
export { NameFormat, type ParsedSolName, SolNameIdentity, deriveIdentity, deriveName, isValidSolName, parseSolName };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { b as SolNameIdentity, a as NameFormat } from '../constants-Bi5uTRp5.js';
|
|
2
|
+
export { A as ADJECTIVES, B as BLOCKED_COMBOS, N as NOUNS, S as SOLNAMES_VERSION } from '../constants-Bi5uTRp5.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Derive a deterministic name from a Solana wallet address.
|
|
6
|
+
*
|
|
7
|
+
* @param wallet Base58 wallet address
|
|
8
|
+
* @param format Name format (default: "display")
|
|
9
|
+
* @returns Formatted name string
|
|
10
|
+
*/
|
|
11
|
+
declare function deriveName(wallet: string, format?: NameFormat): string;
|
|
12
|
+
/**
|
|
13
|
+
* Derive the full identity bundle for a wallet address.
|
|
14
|
+
* Returns all four name formats plus component parts.
|
|
15
|
+
*/
|
|
16
|
+
declare function deriveIdentity(wallet: string): SolNameIdentity;
|
|
17
|
+
|
|
18
|
+
interface ParsedSolName {
|
|
19
|
+
adjective: string;
|
|
20
|
+
noun: string;
|
|
21
|
+
discriminator?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a string is a valid SolName (display, tag, or full format).
|
|
25
|
+
*/
|
|
26
|
+
declare function isValidSolName(name: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Parse a SolName string into its component parts.
|
|
29
|
+
* Supports display ("SunnyIcon"), tag ("SunnyIcon#2f95"),
|
|
30
|
+
* and full ("SunnyIcon-InfiniteOre") formats.
|
|
31
|
+
*
|
|
32
|
+
* Returns null if the name doesn't match any valid format.
|
|
33
|
+
*/
|
|
34
|
+
declare function parseSolName(name: string): ParsedSolName | null;
|
|
35
|
+
|
|
36
|
+
export { NameFormat, type ParsedSolName, SolNameIdentity, deriveIdentity, deriveName, isValidSolName, parseSolName };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|