@stigmer/coding-agent-plugin 0.3.2 → 0.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/coding-agent-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Stigmer's plugin for coding agents (Claude Code, Codex, Cursor): a skill that answers questions about Stigmer from its live docs, the guide that sets Stigmer up for a project, the bundled stigmer mcp-server and a guard that asks before what can't be undone, published at the CLI's own version so `stigmer coding-agent` prints the guide its CLI follows",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stigmer",
|
|
3
3
|
"displayName": "Stigmer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Stigmer",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stigmer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Stigmer",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stigmer",
|
|
3
3
|
"displayName": "Stigmer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Stigmer"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stigmer-integrate
|
|
3
3
|
description: >
|
|
4
|
-
Puts the person's Stigmer agent into their own product
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
users are signed in with Auth0", "each
|
|
15
|
-
"approve in our own dashboard" or "we're on
|
|
16
|
-
set Stigmer up
|
|
17
|
-
read its runs, the stigmer-run skill; for questions
|
|
18
|
-
|
|
4
|
+
Puts the person's Stigmer agent into their own product: calls it from
|
|
5
|
+
their backend (TypeScript, Python, Go or Java), streams its reply to
|
|
6
|
+
their page, puts the chat in their React app with their own look, cards
|
|
7
|
+
and tools, signs their users in (their own sign-in, Auth0, Okta, Clerk),
|
|
8
|
+
decides whose conversation a run becomes, walls each business customer
|
|
9
|
+
off in an organization of its own, answers approvals in their own
|
|
10
|
+
screens, and moves code off Claude Managed Agents. Use when the person
|
|
11
|
+
says "call our agent from our backend", "when a customer uploads X, run
|
|
12
|
+
the agent on it", "stream the reply to the page", "make the chat look
|
|
13
|
+
and act like ours", "show our own card when our tool runs", "let the
|
|
14
|
+
agent open our screens", "our users are signed in with Auth0", "each
|
|
15
|
+
customer must be separate", "approve in our own dashboard" or "we're on
|
|
16
|
+
Claude Managed Agents". To set Stigmer up, use the stigmer-setup skill;
|
|
17
|
+
to run an agent or read its runs, the stigmer-run skill; for questions
|
|
18
|
+
about Stigmer, the stigmer skill.
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
# Putting a Stigmer agent in the person's product
|
|
@@ -55,7 +55,7 @@ Find these before you answer or write anything. Each one changes the code.
|
|
|
55
55
|
request names the signed-in user.
|
|
56
56
|
|
|
57
57
|
Then check what their installed SDK has before you write against it:
|
|
58
|
-
`npm ls @stigmer/client`, `pip show stigmer-sdk`, the `go.stigmer.ai/sdk`
|
|
58
|
+
`npm ls @stigmer/client @stigmer/react-sdk`, `pip show stigmer-sdk`, the `go.stigmer.ai/sdk`
|
|
59
59
|
line in `go.mod`, the `stigmer-sdk` dependency in their build file. The
|
|
60
60
|
docs follow Stigmer's newest code: when a page shows something their
|
|
61
61
|
installed SDK lacks, say it is newer than their version and that upgrading
|
|
@@ -154,19 +154,52 @@ https://stigmer.ai/docs/getting-started/embed-agent, https://stigmer.ai/docs/gui
|
|
|
154
154
|
- Allowed origins in the embedding settings restrict which pages may use
|
|
155
155
|
the tokens.
|
|
156
156
|
|
|
157
|
-
### Make the chat
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
157
|
+
### Make the chat their own
|
|
158
|
+
|
|
159
|
+
Climb only as far as the ask needs; each level keeps everything below it
|
|
160
|
+
Stigmer's. Pages: https://stigmer.ai/docs/getting-started/make-the-chat-your-own,
|
|
161
|
+
https://stigmer.ai/docs/sdk/theme/theming,
|
|
162
|
+
https://stigmer.ai/docs/guides/channels/embed-an-agent,
|
|
163
|
+
https://stigmer.ai/docs/sdk/react-core/build-a-chat,
|
|
164
|
+
https://stigmer.ai/docs/sdk/streaming.
|
|
165
|
+
|
|
166
|
+
1. **Their look**: a theme class overriding the `--stgm-*` tokens (color
|
|
167
|
+
with its `-foreground` partner, font, radius), passed as `className` to
|
|
168
|
+
`StigmerProvider`, with `colorMode` from their own toggle or `"system"`;
|
|
169
|
+
every token they override needs a dark value too.
|
|
170
|
+
2. **Their card or their button on our parts**: a card for one of their
|
|
171
|
+
tools goes in `toolCards` on `StigmerProvider`, keyed by the tool's name
|
|
172
|
+
as the agent sees it (`mcp__<server>__<tool>` for a connected server's
|
|
173
|
+
tool, the declared name for one of the app's own). It replaces only what
|
|
174
|
+
opens under our row: the row's step line (running, done or failed) and
|
|
175
|
+
any approval stay ours. It is drawn from the call's start, so it draws
|
|
176
|
+
every state (`call.state`: running, completed, failed, stopped), never
|
|
177
|
+
only a result. An action on a message
|
|
178
|
+
(`messageActions` on `AgentChat`) is a function from the message's info,
|
|
179
|
+
`isFinalAnswer` included, to their actions, drawn beside Copy.
|
|
180
|
+
3. **Tools their app answers**: the agent calls the app's own tools,
|
|
181
|
+
declared with `defineCustomTool` (`@stigmer/client`) in `AgentChat`'s
|
|
182
|
+
`customTools`. A call waits until the app answers: the card's `answer`,
|
|
183
|
+
`onCustomToolUse` for a panel of their own, or `answerCustomToolUse`
|
|
184
|
+
from their backend. The agent reads the answer; `isError` tells it the
|
|
185
|
+
tool failed.
|
|
186
|
+
4. **One of our parts swapped**: `threadSlots` replaces a part (the
|
|
187
|
+
person's bubble, the approval card) with theirs, which hands every case
|
|
188
|
+
it doesn't draw back to the built-in, exported from
|
|
189
|
+
`@stigmer/react-sdk/chat` too.
|
|
190
|
+
5. **Their whole screen**: their own markup from the `@stigmer/react-core`
|
|
191
|
+
hooks (`useSessionConversation`); then the TypeScript SDK alone.
|
|
167
192
|
|
|
168
193
|
- Never override the kit's internal class names, use `!important`, or fork
|
|
169
|
-
the kit
|
|
194
|
+
the kit; nor invent a `renderTool`, `onToolCall` or other prop the pages
|
|
195
|
+
don't name.
|
|
196
|
+
- Built-in tools (shell, files, search) take no card; only theirs do.
|
|
197
|
+
- Define cards and slots at module level, not inside a component.
|
|
198
|
+
- An approval's decision is Stigmer's: a step that needs one keeps Allow
|
|
199
|
+
and Deny, and a replaced approval card answers through the slot's
|
|
200
|
+
wiring. Only its look is theirs.
|
|
201
|
+
- Only the conversation's owner answers a waiting call; `customTools` are
|
|
202
|
+
read once, when the conversation is created.
|
|
170
203
|
- Their page loads their font itself; the token only names it.
|
|
171
204
|
|
|
172
205
|
### One organization per business customer
|
|
@@ -213,8 +246,11 @@ https://stigmer.ai/docs/concepts/coming-from-claude-managed-agents, https://stig
|
|
|
213
246
|
tool confirmations included.
|
|
214
247
|
- Creating Sessions does not: they are created through Stigmer's SDK or
|
|
215
248
|
console, and their ids then used with Anthropic's SDK.
|
|
216
|
-
- Custom tools
|
|
217
|
-
|
|
249
|
+
- Custom tools carry over: the app declares them on the Session it creates
|
|
250
|
+
(`custom_tools` through Stigmer's SDK, not `agent_with_overrides`), and
|
|
251
|
+
`agent.custom_tool_use` and `user.custom_tool_result` keep their shape, so
|
|
252
|
+
the handler stays. The answer is text, and only the Session's owner sends
|
|
253
|
+
it. Outcomes have no counterpart (Scores grade a finished run).
|
|
218
254
|
- Name only the SDK versions the page names as tested.
|
|
219
255
|
|
|
220
256
|
## Before calling it done
|