egregore-artifacts 0.10.0 → 0.10.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/lib/templates/emissary.js +14 -23
- package/package.json +7 -2
|
@@ -51,10 +51,7 @@ function badge(text, opts = {}) {
|
|
|
51
51
|
|
|
52
52
|
export function emissaryTemplate(em) {
|
|
53
53
|
const sections = [];
|
|
54
|
-
const
|
|
55
|
-
const launchPrompt = launchUrl
|
|
56
|
-
? `Run this Egregore ${em.kind || 'packet'} packet for me: ${launchUrl}`
|
|
57
|
-
: '';
|
|
54
|
+
const shareLink = em.render_url || em.raw_url || '';
|
|
58
55
|
|
|
59
56
|
// ── Header — sigil + label, title, author + badges ────────────
|
|
60
57
|
const distLabel = em.distribution_mode === 'directed' ? 'directed' : 'public link';
|
|
@@ -119,36 +116,30 @@ export function emissaryTemplate(em) {
|
|
|
119
116
|
fontSize: '15px', fontWeight: 600, marginBottom: '6px',
|
|
120
117
|
fontFamily: fonts.sans,
|
|
121
118
|
},
|
|
122
|
-
}, '
|
|
119
|
+
}, 'Open this emissary'),
|
|
123
120
|
h('div', { style: { color: 'var(--muted)', fontSize: '14px' } },
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
|
|
121
|
+
'Paste the link into Claude, ChatGPT, Codex, or another AI harness. ',
|
|
122
|
+
'With the receiver skill installed, your agent opens the emissary; otherwise it asks first.'),
|
|
123
|
+
shareLink && h('div', {
|
|
127
124
|
style: {
|
|
128
125
|
marginTop: '10px', padding: '8px 12px',
|
|
129
126
|
background: 'var(--subtle-fill)', borderRadius: '6px',
|
|
130
127
|
fontFamily: fonts.mono, fontSize: '13px', wordBreak: 'break-all',
|
|
131
128
|
},
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
h('button', {
|
|
129
|
+
}, shareLink),
|
|
130
|
+
h('div', { className: 'eg-copy-row' },
|
|
131
|
+
shareLink && h('button', {
|
|
135
132
|
type: 'button',
|
|
136
133
|
className: 'eg-copy-button',
|
|
137
|
-
'data-copy-text':
|
|
138
|
-
'data-copy-label': 'Copy
|
|
139
|
-
}, 'Copy
|
|
134
|
+
'data-copy-text': shareLink,
|
|
135
|
+
'data-copy-label': 'Copy link',
|
|
136
|
+
}, 'Copy link'),
|
|
140
137
|
em.raw_url && h('button', {
|
|
141
138
|
type: 'button',
|
|
142
139
|
className: 'eg-copy-button',
|
|
143
140
|
'data-copy-text': em.raw_url,
|
|
144
141
|
'data-copy-label': 'Copy JSON link',
|
|
145
142
|
}, 'Copy JSON link'),
|
|
146
|
-
em.render_url && h('button', {
|
|
147
|
-
type: 'button',
|
|
148
|
-
className: 'eg-copy-button',
|
|
149
|
-
'data-copy-text': em.render_url,
|
|
150
|
-
'data-copy-label': 'Copy page link',
|
|
151
|
-
}, 'Copy page link'),
|
|
152
143
|
),
|
|
153
144
|
)
|
|
154
145
|
);
|
|
@@ -161,11 +152,11 @@ export function emissaryTemplate(em) {
|
|
|
161
152
|
fontSize: '15px', fontWeight: 600, marginBottom: '6px',
|
|
162
153
|
fontFamily: fonts.sans,
|
|
163
154
|
},
|
|
164
|
-
}, 'About Egregore
|
|
155
|
+
}, 'About Egregore emissaries'),
|
|
165
156
|
h('div', { style: { color: 'var(--muted)', fontSize: '14px', lineHeight: 1.55 } },
|
|
166
|
-
'An Egregore
|
|
157
|
+
'An Egregore emissary is a user-shared task bundle: purpose, intake questions, ',
|
|
167
158
|
'and an output spec. This preview shows the author, verification badge, ',
|
|
168
|
-
'visibility, kind, creation date, expiry, and structured JSON source. The
|
|
159
|
+
'visibility, kind, creation date, expiry, and structured JSON source. The ',
|
|
169
160
|
'source is available as JSON for AI tools that can read it. Egregore is ',
|
|
170
161
|
h('a', {
|
|
171
162
|
href: 'https://github.com/egregore-labs/egregore',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egregore-artifacts",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Generate branded HTML artifacts from Egregore data",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,5 +34,10 @@
|
|
|
34
34
|
"html",
|
|
35
35
|
"branded",
|
|
36
36
|
"claude-code"
|
|
37
|
-
]
|
|
37
|
+
],
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/Curve-Labs/egregore.git",
|
|
41
|
+
"directory": "packages/egregore-artifacts"
|
|
42
|
+
}
|
|
38
43
|
}
|