@stigmer/examples 0.0.0-stage → 0.3.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/LICENSE +194 -0
- package/README.md +55 -2
- package/catalogue.gen.d.ts +6 -0
- package/catalogue.gen.d.ts.map +1 -0
- package/catalogue.gen.js +181 -0
- package/catalogue.gen.js.map +1 -0
- package/index.d.ts +10 -0
- package/index.d.ts.map +1 -0
- package/index.js +19 -0
- package/index.js.map +1 -0
- package/journey/index.d.ts +9 -0
- package/journey/index.d.ts.map +1 -0
- package/journey/index.js +19 -0
- package/journey/index.js.map +1 -0
- package/journey/own-agent.d.ts +9 -0
- package/journey/own-agent.d.ts.map +1 -0
- package/journey/own-agent.js +23 -0
- package/journey/own-agent.js.map +1 -0
- package/journey/slugs.gen.d.ts +3 -0
- package/journey/slugs.gen.d.ts.map +1 -0
- package/journey/slugs.gen.js +6 -0
- package/journey/slugs.gen.js.map +1 -0
- package/package.json +33 -4
- package/src/catalogue.gen.ts +184 -0
- package/src/index.ts +24 -0
- package/src/journey/index.ts +21 -0
- package/src/journey/own-agent.ts +23 -0
- package/src/journey/slugs.gen.ts +6 -0
- package/src/types.ts +80 -0
- package/types.d.ts +73 -0
- package/types.d.ts.map +1 -0
- package/types.js +8 -0
- package/types.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Stigmer Contributors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
191
|
+
|
|
192
|
+
Except for the contents of the ee/ directory, which are licensed under the
|
|
193
|
+
Stigmer Enterprise License (see ee/LICENSE), everything in this repository
|
|
194
|
+
is licensed under the Apache License, Version 2.0, above.
|
package/README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Examples
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Each example is a job an agent does inside a developer's product: whose product
|
|
4
|
+
it is, what its users hand over, and what the agent hands back. Each folder holds
|
|
5
|
+
the Agent and its sample files.
|
|
6
|
+
|
|
7
|
+
| Job | What goes in | What comes back | Folder |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Variance report, for an accounting product | A quarter's ledger | `variance-report.md`, flagged accounts first | [`variance-report/`](variance-report/) |
|
|
10
|
+
| Ticket replies, for a help desk | An export of open tickets | `replies.md`, a drafted reply for each | [`ticket-replies/`](ticket-replies/) |
|
|
11
|
+
| Contract check, for a legal or HR tool | A services agreement | `contract-review.md`, each risky clause with a safer wording | [`contract-check/`](contract-check/) |
|
|
12
|
+
| Invoice match, for a procurement tool | An invoice and its purchase order | `mismatches.md`, every line that doesn't match, with the amount at stake | [`invoice-match/`](invoice-match/) |
|
|
13
|
+
|
|
14
|
+
The console asks a newcomer the same question with the same four jobs, and
|
|
15
|
+
`catalogue.json` is the list both read: `scripts/generate.mjs` turns it, the
|
|
16
|
+
manifests, the samples and the skills into the `@stigmer/examples` package.
|
|
17
|
+
|
|
18
|
+
[`skills/spreadsheet-export/`](skills/spreadsheet-export/SKILL.md) is a
|
|
19
|
+
ready-made skill any of the four agents can be given: it hands back the job's
|
|
20
|
+
table as a `.csv` file too, beside the report, which opens in any spreadsheet.
|
|
21
|
+
[Make it yours](https://stigmer.ai/docs/getting-started/make-it-yours) gives it
|
|
22
|
+
to the variance reporter.
|
|
23
|
+
|
|
24
|
+
## Variance report (`variance-report/`)
|
|
25
|
+
|
|
26
|
+
An accounting product's user uploads a quarter's ledger. The agent works out
|
|
27
|
+
each account's variance against its budget, flags the accounts that ran more
|
|
28
|
+
than 10% over or under, and hands back `variance-report.md`, a file the user can
|
|
29
|
+
open.
|
|
30
|
+
|
|
31
|
+
- [`variance-reporter.yaml`](variance-report/variance-reporter.yaml) is the
|
|
32
|
+
Agent: what the job is and how to do it. It has no shell, because the job
|
|
33
|
+
needs none.
|
|
34
|
+
- [`ledger.csv`](variance-report/ledger.csv) is the user's ledger.
|
|
35
|
+
|
|
36
|
+
With Stigmer running (`stigmer up`, and your Anthropic key in
|
|
37
|
+
`ANTHROPIC_API_KEY`), from this folder:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
stigmer apply -f variance-reporter.yaml
|
|
41
|
+
stigmer run variance-reporter --attach ledger.csv --download ./out --until turn -m "Review this quarter's ledger."
|
|
42
|
+
cat out/variance-report.md
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[Your first agent job](https://stigmer.ai/docs/getting-started/quickstart) walks
|
|
46
|
+
through the same job step by step. To start it from your own code instead, read
|
|
47
|
+
[Do the same job from your app](https://stigmer.ai/docs/getting-started/call-from-your-app);
|
|
48
|
+
to give your users the chat, read
|
|
49
|
+
[Put the agent in your app](https://stigmer.ai/docs/getting-started/embed-agent).
|
|
50
|
+
[Agents](https://stigmer.ai/docs/concepts/agents),
|
|
51
|
+
[Sessions](https://stigmer.ai/docs/concepts/sessions) and
|
|
52
|
+
[Files](https://stigmer.ai/docs/concepts/files) explain what each step did.
|
|
53
|
+
|
|
54
|
+
The variance report's two files are the quickstart's own, byte for byte, and a
|
|
55
|
+
test keeps them so. Every other example runs the same way from its own folder,
|
|
56
|
+
with its manifest and its samples.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Example, ExampleSkill } from "./types.js";
|
|
2
|
+
/** Every example, in the order the catalogue lists them. */
|
|
3
|
+
export declare const EXAMPLES: readonly Example[];
|
|
4
|
+
/** Every ready-made skill, in the order the catalogue lists them. */
|
|
5
|
+
export declare const SKILLS: readonly ExampleSkill[];
|
|
6
|
+
//# sourceMappingURL=catalogue.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogue.gen.d.ts","sourceRoot":"","sources":["src/catalogue.gen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAExD,4DAA4D;AAC5D,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EAqKtC,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,MAAM,EAAE,SAAS,YAAY,EAQzC,CAAC"}
|
package/catalogue.gen.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Code generated by examples/scripts/generate.mjs from catalogue.json, the
|
|
2
|
+
// manifests, the samples and the skills. DO NOT EDIT: change those files
|
|
3
|
+
// and run `npm run generate -w @stigmer/examples`.
|
|
4
|
+
/** Every example, in the order the catalogue lists them. */
|
|
5
|
+
export const EXAMPLES = [
|
|
6
|
+
{
|
|
7
|
+
"id": "variance-report",
|
|
8
|
+
"for": "For an accounting product",
|
|
9
|
+
"name": "Variance report",
|
|
10
|
+
"gives": "A quarter's ledger",
|
|
11
|
+
"gets": "A variance report, flagged accounts first",
|
|
12
|
+
"category": "data-analysis",
|
|
13
|
+
"tags": [
|
|
14
|
+
"accounting",
|
|
15
|
+
"ledger",
|
|
16
|
+
"budget",
|
|
17
|
+
"variance",
|
|
18
|
+
"report",
|
|
19
|
+
"file"
|
|
20
|
+
],
|
|
21
|
+
"message": "Here is this quarter's ledger, ledger.csv. Write the variance report.",
|
|
22
|
+
"ownFileMessage": "Here is one of our ledgers. Write the variance report.",
|
|
23
|
+
"output": "variance-report.md",
|
|
24
|
+
"agent": {
|
|
25
|
+
"name": "Variance Reporter",
|
|
26
|
+
"slug": "variance-reporter",
|
|
27
|
+
"description": "Turns a customer's ledger into a variance report.",
|
|
28
|
+
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\nHand back the report as a file named variance-report.md: a\ntwo-sentence summary, then one table of every account, flagged\naccounts first.\n",
|
|
29
|
+
"disallowedTools": [
|
|
30
|
+
"Bash"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"manifest": {
|
|
34
|
+
"name": "variance-reporter.yaml",
|
|
35
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n Hand back the report as a file named variance-report.md: a\n two-sentence summary, then one table of every account, flagged\n accounts first.\n disallowed_tools: [Bash]\n"
|
|
36
|
+
},
|
|
37
|
+
"sampleName": "ledger",
|
|
38
|
+
"samples": [
|
|
39
|
+
{
|
|
40
|
+
"name": "ledger.csv",
|
|
41
|
+
"type": "text/csv",
|
|
42
|
+
"text": "account,budget,actual\nRevenue,120000,131500\nCost of goods sold,48000,55200\nSalaries,36000,36400\nMarketing,9000,14100\nSoftware,4000,3900\nTravel,3000,1200\n"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "ticket-replies",
|
|
48
|
+
"for": "For a help desk",
|
|
49
|
+
"name": "Ticket replies",
|
|
50
|
+
"gives": "An export of open tickets",
|
|
51
|
+
"gets": "A drafted reply for each, ready to review",
|
|
52
|
+
"category": "content",
|
|
53
|
+
"tags": [
|
|
54
|
+
"support",
|
|
55
|
+
"help desk",
|
|
56
|
+
"tickets",
|
|
57
|
+
"replies",
|
|
58
|
+
"drafts",
|
|
59
|
+
"file"
|
|
60
|
+
],
|
|
61
|
+
"message": "Here are today's open tickets, open-tickets.csv. Draft a reply for each.",
|
|
62
|
+
"ownFileMessage": "Here is an export of our open tickets. Draft a reply for each.",
|
|
63
|
+
"output": "replies.md",
|
|
64
|
+
"agent": {
|
|
65
|
+
"name": "Ticket Replier",
|
|
66
|
+
"slug": "ticket-replier",
|
|
67
|
+
"description": "Drafts a reply to each open ticket in a help desk's export.",
|
|
68
|
+
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\nHand back the replies as a file named replies.md: one section\nper ticket, headed by its number and subject, with the drafted reply\nunder it, then one line on anything a person should check before\nsending.\n",
|
|
69
|
+
"disallowedTools": [
|
|
70
|
+
"Bash"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"manifest": {
|
|
74
|
+
"name": "ticket-replier.yaml",
|
|
75
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n Hand back the replies as a file named replies.md: one section\n per ticket, headed by its number and subject, with the drafted reply\n under it, then one line on anything a person should check before\n sending.\n disallowed_tools: [Bash]\n"
|
|
76
|
+
},
|
|
77
|
+
"sampleName": "ticket export",
|
|
78
|
+
"samples": [
|
|
79
|
+
{
|
|
80
|
+
"name": "open-tickets.csv",
|
|
81
|
+
"type": "text/csv",
|
|
82
|
+
"text": "ticket,from,subject,message\nT-1042,Priya N.,Charged twice this month,\"I see two charges of $29 on my card for October. I only have one account. Can you refund one?\"\nT-1043,Marco D.,Can't sign in after password reset,\"I reset my password this morning and the new one doesn't work. I've tried three times and now it says I'm locked out.\"\nT-1044,Aisha K.,Export to spreadsheet,\"Is there a way to export all my projects to a spreadsheet? I need it for an audit by Friday.\"\nT-1045,Tom W.,App is slow on large files,\"Opening any file over 50 MB takes more than a minute. It used to be a few seconds. Did something change?\"\nT-1046,Lena F.,Add a teammate,\"How do I add my colleague to our workspace? I can't find an invite button anywhere.\"\nT-1047,Sam O.,Cancel my plan,\"Please cancel my subscription at the end of this billing period. I don't want to lose my files before then.\"\nT-1048,Grace H.,Wrong time zone on reminders,\"All my reminders arrive an hour late since the clocks changed. My time zone is set correctly in my profile.\"\nT-1049,Diego R.,Feature request: dark mode,\"Any plans for a dark mode? I work late and the white screen is hard on my eyes.\"\n"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "contract-check",
|
|
88
|
+
"for": "For a legal or HR tool",
|
|
89
|
+
"name": "Contract check",
|
|
90
|
+
"gives": "A contract",
|
|
91
|
+
"gets": "The risky clauses, each with a safer wording",
|
|
92
|
+
"category": "content",
|
|
93
|
+
"tags": [
|
|
94
|
+
"legal",
|
|
95
|
+
"hr",
|
|
96
|
+
"contract",
|
|
97
|
+
"clauses",
|
|
98
|
+
"review",
|
|
99
|
+
"file"
|
|
100
|
+
],
|
|
101
|
+
"message": "Here is the contract, services-agreement.md. Find the clauses that put us at risk.",
|
|
102
|
+
"ownFileMessage": "Here is one of our contracts. Find the clauses that put us at risk.",
|
|
103
|
+
"output": "contract-review.md",
|
|
104
|
+
"agent": {
|
|
105
|
+
"name": "Contract Reviewer",
|
|
106
|
+
"slug": "contract-reviewer",
|
|
107
|
+
"description": "Flags a contract's risky clauses, each with a safer wording.",
|
|
108
|
+
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\nHand back the review as a file named contract-review.md: one\nline saying this is a first read and not legal advice, a two-sentence\nsummary, then one section per risky clause, most serious first.\n",
|
|
109
|
+
"disallowedTools": [
|
|
110
|
+
"Bash"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"manifest": {
|
|
114
|
+
"name": "contract-reviewer.yaml",
|
|
115
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n Hand back the review as a file named contract-review.md: one\n line saying this is a first read and not legal advice, a two-sentence\n summary, then one section per risky clause, most serious first.\n disallowed_tools: [Bash]\n"
|
|
116
|
+
},
|
|
117
|
+
"sampleName": "contract",
|
|
118
|
+
"samples": [
|
|
119
|
+
{
|
|
120
|
+
"name": "services-agreement.md",
|
|
121
|
+
"type": "text/markdown",
|
|
122
|
+
"text": "# Services Agreement\n\nThis agreement is between Harbor Lane Studio (\"the Provider\") and the\ncompany signing below (\"the Client\"). It starts on the date the Client\nsigns it.\n\n## 1. Services\n\nThe Provider will design and build the Client's customer portal, as set\nout in the attached statement of work.\n\n## 2. Fees\n\nThe Client will pay $48,000, in four monthly instalments of $12,000. The\nProvider may change its rates at any time by updating its website, and\nthe new rates apply to work not yet invoiced.\n\n## 3. Payment\n\nInvoices are due within 10 days. Any amount not paid on time carries a\nlate fee of 5% per month, compounded.\n\n## 4. Term and renewal\n\nThis agreement runs for 12 months and then renews automatically for\nanother 12 months unless the Client gives written notice at least 90\ndays before the end of the term.\n\n## 5. Ownership of work\n\nEverything the Provider makes under this agreement belongs to the\nProvider. The Provider grants the Client a licence to use it while this\nagreement is in force. Any materials the Client supplies become the\nProvider's property once delivered.\n\n## 6. Confidentiality\n\nEach side will keep the other's confidential information secret and use\nit only for this agreement, during the term and for two years after.\n\n## 7. Liability\n\nThe Client is liable for any loss the Provider suffers in connection with\nthis agreement, without limit. The Provider's total liability to the\nClient is limited to the fees paid in the month before the claim.\n\n## 8. Termination\n\nThe Provider may end this agreement at any time with 7 days' notice. The\nClient may end it only if the Provider has failed to deliver for 60 days\nin a row, and must still pay every remaining instalment.\n\n## 9. Governing law\n\nThis agreement is governed by the laws of the place where the Provider\nhas its main office.\n"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "invoice-match",
|
|
128
|
+
"for": "For a procurement tool",
|
|
129
|
+
"name": "Invoice match",
|
|
130
|
+
"gives": "An invoice and its purchase order",
|
|
131
|
+
"gets": "Every line that doesn't match, with the amount at stake",
|
|
132
|
+
"category": "data-analysis",
|
|
133
|
+
"tags": [
|
|
134
|
+
"procurement",
|
|
135
|
+
"invoice",
|
|
136
|
+
"purchase order",
|
|
137
|
+
"reconciliation",
|
|
138
|
+
"file"
|
|
139
|
+
],
|
|
140
|
+
"message": "Here is invoice-4471.csv and the purchase order it bills, po-2210.csv. Find every line that doesn't match.",
|
|
141
|
+
"ownFileMessage": "Here is one of our invoices and the purchase order it bills. Find every line that doesn't match.",
|
|
142
|
+
"output": "mismatches.md",
|
|
143
|
+
"agent": {
|
|
144
|
+
"name": "Invoice Matcher",
|
|
145
|
+
"slug": "invoice-matcher",
|
|
146
|
+
"description": "Matches an invoice against its purchase order and lists every line that differs.",
|
|
147
|
+
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\nHand back the result as a file named mismatches.md: one line\nwith the total amount at stake, then one table of every line that\ndoesn't match (SKU, what the order says, what the invoice says, the\namount at stake), largest first. If every line matches, say so.\n",
|
|
148
|
+
"disallowedTools": [
|
|
149
|
+
"Bash"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"manifest": {
|
|
153
|
+
"name": "invoice-matcher.yaml",
|
|
154
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n Hand back the result as a file named mismatches.md: one line\n with the total amount at stake, then one table of every line that\n doesn't match (SKU, what the order says, what the invoice says, the\n amount at stake), largest first. If every line matches, say so.\n disallowed_tools: [Bash]\n"
|
|
155
|
+
},
|
|
156
|
+
"sampleName": "invoice and purchase order",
|
|
157
|
+
"samples": [
|
|
158
|
+
{
|
|
159
|
+
"name": "invoice-4471.csv",
|
|
160
|
+
"type": "text/csv",
|
|
161
|
+
"text": "sku,description,quantity,unit_price\nDSK-120,Standing desk frame,10,340.00\nDSK-121,Desk top 160 cm,12,95.00\nCHR-310,Task chair,12,235.00\nMON-27,27-inch monitor,12,229.00\nARM-02,Dual monitor arm,6,79.00\nCBL-05,Cable tray,10,18.50\nSRV-01,Assembly and delivery,1,450.00\n"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "po-2210.csv",
|
|
165
|
+
"type": "text/csv",
|
|
166
|
+
"text": "sku,description,quantity,unit_price\nDSK-120,Standing desk frame,10,340.00\nDSK-121,Desk top 160 cm,10,95.00\nCHR-310,Task chair,12,210.00\nMON-27,27-inch monitor,12,229.00\nARM-02,Dual monitor arm,6,79.00\nCBL-05,Cable tray,10,18.50\n"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
];
|
|
171
|
+
/** Every ready-made skill, in the order the catalogue lists them. */
|
|
172
|
+
export const SKILLS = [
|
|
173
|
+
{
|
|
174
|
+
"id": "spreadsheet-export",
|
|
175
|
+
"name": "Spreadsheet export",
|
|
176
|
+
"description": "Use whenever your work makes a table, to save it as a .csv too.",
|
|
177
|
+
"file": "skills/spreadsheet-export/SKILL.md",
|
|
178
|
+
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\nhand back that table as a CSV file, beside the file your instructions name.\n\n- Name it after that file, with `.csv` in place of its extension: a report saved\n as `variance-report.md` comes with `variance-report.csv`.\n- Write a header row first, then one row per item, in the table's order.\n- Separate columns with commas. Put a value that holds a comma or a quote in\n double quotes, and double each quote inside it.\n- Write numbers plainly: `5100`, not `$5,100`; `-60.0`, not `-60%`.\n\nName the CSV in your answer, in one short line.\n"
|
|
179
|
+
}
|
|
180
|
+
];
|
|
181
|
+
//# sourceMappingURL=catalogue.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogue.gen.js","sourceRoot":"","sources":["src/catalogue.gen.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,mDAAmD;AAInD,4DAA4D;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAuB;IAC1C;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,iBAAiB;QACzB,OAAO,EAAE,oBAAoB;QAC7B,MAAM,EAAE,2CAA2C;QACnD,UAAU,EAAE,eAAe;QAC3B,MAAM,EAAE;YACN,YAAY;YACZ,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,QAAQ;YACR,MAAM;SACP;QACD,SAAS,EAAE,uEAAuE;QAClF,gBAAgB,EAAE,wDAAwD;QAC1E,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,mBAAmB;YAC3B,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,mDAAmD;YAClE,cAAc,EAAE,mdAAmd;YACne,iBAAiB,EAAE;gBACjB,MAAM;aACP;SACF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,wBAAwB;YAChC,MAAM,EAAE,qsBAAqsB;SAC9sB;QACD,YAAY,EAAE,QAAQ;QACtB,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,YAAY;gBACpB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,kKAAkK;aAC3K;SACF;KACF;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,iBAAiB;QACxB,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,2BAA2B;QACpC,MAAM,EAAE,2CAA2C;QACnD,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE;YACN,SAAS;YACT,WAAW;YACX,SAAS;YACT,SAAS;YACT,QAAQ;YACR,MAAM;SACP;QACD,SAAS,EAAE,0EAA0E;QACrF,gBAAgB,EAAE,gEAAgE;QAClF,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE;YACP,MAAM,EAAE,gBAAgB;YACxB,MAAM,EAAE,gBAAgB;YACxB,aAAa,EAAE,6DAA6D;YAC5E,cAAc,EAAE,mrBAAmrB;YACnsB,iBAAiB,EAAE;gBACjB,MAAM;aACP;SACF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,qBAAqB;YAC7B,MAAM,EAAE,w7BAAw7B;SACj8B;QACD,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,kBAAkB;gBAC1B,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,2pCAA2pC;aACpqC;SACF;KACF;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,wBAAwB;QAC/B,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE,8CAA8C;QACtD,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE;YACN,OAAO;YACP,IAAI;YACJ,UAAU;YACV,SAAS;YACT,QAAQ;YACR,MAAM;SACP;QACD,SAAS,EAAE,oFAAoF;QAC/F,gBAAgB,EAAE,qEAAqE;QACvF,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,mBAAmB;YAC3B,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,8DAA8D;YAC7E,cAAc,EAAE,yrBAAyrB;YACzsB,iBAAiB,EAAE;gBACjB,MAAM;aACP;SACF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,wBAAwB;YAChC,MAAM,EAAE,87BAA87B;SACv8B;QACD,YAAY,EAAE,UAAU;QACxB,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,uBAAuB;gBAC/B,MAAM,EAAE,eAAe;gBACvB,MAAM,EAAE,21DAA21D;aACp2D;SACF;KACF;IACD;QACE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,wBAAwB;QAC/B,MAAM,EAAE,eAAe;QACvB,OAAO,EAAE,mCAAmC;QAC5C,MAAM,EAAE,yDAAyD;QACjE,UAAU,EAAE,eAAe;QAC3B,MAAM,EAAE;YACN,aAAa;YACb,SAAS;YACT,gBAAgB;YAChB,gBAAgB;YAChB,MAAM;SACP;QACD,SAAS,EAAE,4GAA4G;QACvH,gBAAgB,EAAE,kGAAkG;QACpH,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE;YACP,MAAM,EAAE,iBAAiB;YACzB,MAAM,EAAE,iBAAiB;YACzB,aAAa,EAAE,kFAAkF;YACjG,cAAc,EAAE,iuBAAiuB;YACjvB,iBAAiB,EAAE;gBACjB,MAAM;aACP;SACF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,sBAAsB;YAC9B,MAAM,EAAE,4/BAA4/B;SACrgC;QACD,YAAY,EAAE,4BAA4B;QAC1C,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,kBAAkB;gBAC1B,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,oRAAoR;aAC7R;YACD;gBACE,MAAM,EAAE,aAAa;gBACrB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,6OAA6O;aACtP;SACF;KACF;CACF,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,MAAM,GAA4B;IAC7C;QACE,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,iEAAiE;QAChF,MAAM,EAAE,oCAAoC;QAC5C,MAAM,EAAE,iwBAAiwB;KAC1wB;CACF,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EXAMPLES, SKILLS } from "./catalogue.gen.js";
|
|
2
|
+
import { EXAMPLE_AGENT_SLUGS } from "./journey/slugs.gen.js";
|
|
3
|
+
import type { Example, ExampleSkill } from "./types.js";
|
|
4
|
+
export { EXAMPLE_AGENT_SLUGS, EXAMPLES, SKILLS };
|
|
5
|
+
export type { Example, ExampleAgent, ExampleCategory, ExampleSample, ExampleSkill } from "./types.js";
|
|
6
|
+
/** The example with this id, or undefined. */
|
|
7
|
+
export declare function exampleById(id: string): Example | undefined;
|
|
8
|
+
/** The ready-made skill with this id, or undefined. */
|
|
9
|
+
export declare function skillById(id: string): ExampleSkill | undefined;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACjD,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEtG,8CAA8C;AAC9C,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAE3D;AAED,uDAAuD;AACvD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAE9D"}
|
package/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Stigmer's example agents as one list every reader shares: today the React
|
|
2
|
+
// kit's launcher (its first question), its create picker and the agent
|
|
3
|
+
// page's "Make it yours" tab, in the web console and the desktop app; and
|
|
4
|
+
// the ready-made skills that tab offers. Each is a job an agent does for a product's users,
|
|
5
|
+
// with a sample file in and a file out; the folders beside this package's
|
|
6
|
+
// source are what people download, and catalogue.gen.ts is generated from
|
|
7
|
+
// them (scripts/generate.mjs).
|
|
8
|
+
import { EXAMPLES, SKILLS } from "./catalogue.gen.js";
|
|
9
|
+
import { EXAMPLE_AGENT_SLUGS } from "./journey/slugs.gen.js";
|
|
10
|
+
export { EXAMPLE_AGENT_SLUGS, EXAMPLES, SKILLS };
|
|
11
|
+
/** The example with this id, or undefined. */
|
|
12
|
+
export function exampleById(id) {
|
|
13
|
+
return EXAMPLES.find((example) => example.id === id);
|
|
14
|
+
}
|
|
15
|
+
/** The ready-made skill with this id, or undefined. */
|
|
16
|
+
export function skillById(id) {
|
|
17
|
+
return SKILLS.find((skill) => skill.id === id);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,uEAAuE;AACvE,0EAA0E;AAC1E,4FAA4F;AAC5F,0EAA0E;AAC1E,0EAA0E;AAC1E,+BAA+B;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAGjD,8CAA8C;AAC9C,MAAM,UAAU,WAAW,CAAC,EAAU;IACpC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACvD,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,SAAS,CAAC,EAAU;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EXAMPLE_AGENT_SLUGS } from "./slugs.gen.js";
|
|
2
|
+
export { EXAMPLE_AGENT_SLUGS };
|
|
3
|
+
export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from "./own-agent.js";
|
|
4
|
+
/**
|
|
5
|
+
* Whether `slug` is an agent the journey made: an example's, or one
|
|
6
|
+
* described in the person's own words. An agent made any other way is not.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isJourneyAgentSlug(slug: string): boolean;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
package/journey/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Which agents a newcomer made on the journey from a first agent to their
|
|
2
|
+
// users: an example's agent (the React kit's first question makes it under
|
|
3
|
+
// the example's slug) or one described in their own words (`your-agent`,
|
|
4
|
+
// then `your-agent-2` and on). The kit makes agents under these names and
|
|
5
|
+
// the server reads them when it says how far an organization got, so both
|
|
6
|
+
// import this entry. It carries no example's data, only names, so a first
|
|
7
|
+
// download and the server stay light: `@stigmer/examples/journey`.
|
|
8
|
+
import { EXAMPLE_AGENT_SLUGS } from "./slugs.gen.js";
|
|
9
|
+
import { isOwnAgentSlug } from "./own-agent.js";
|
|
10
|
+
export { EXAMPLE_AGENT_SLUGS };
|
|
11
|
+
export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from "./own-agent.js";
|
|
12
|
+
/**
|
|
13
|
+
* Whether `slug` is an agent the journey made: an example's, or one
|
|
14
|
+
* described in the person's own words. An agent made any other way is not.
|
|
15
|
+
*/
|
|
16
|
+
export function isJourneyAgentSlug(slug) {
|
|
17
|
+
return EXAMPLE_AGENT_SLUGS.includes(slug) || isOwnAgentSlug(slug);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/journey/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,0EAA0E;AAC1E,0EAA0E;AAC1E,mEAAmE;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The slug an agent described in the person's own words is made under, before any number. */
|
|
2
|
+
export declare const OWN_AGENT_SLUG = "your-agent";
|
|
3
|
+
/** How many names (`your-agent`, `your-agent-2`, …) a described agent tries before saying so. */
|
|
4
|
+
export declare const OWN_AGENT_TRIES = 10;
|
|
5
|
+
/** The slug the `n`th try of a described agent is made under: `your-agent`, then `your-agent-2`. */
|
|
6
|
+
export declare function ownAgentSlug(n: number): string;
|
|
7
|
+
/** Whether `slug` is an agent described in the person's own words. */
|
|
8
|
+
export declare function isOwnAgentSlug(slug: string): boolean;
|
|
9
|
+
//# sourceMappingURL=own-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"own-agent.d.ts","sourceRoot":"","sources":["../src/journey/own-agent.ts"],"names":[],"mappings":"AAKA,8FAA8F;AAC9F,eAAO,MAAM,cAAc,eAAe,CAAC;AAC3C,iGAAiG;AACjG,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,oGAAoG;AACpG,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMpD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// The names an agent described in the person's own words is made under:
|
|
2
|
+
// `your-agent`, then `your-agent-2` and on, up to the tries the React kit's
|
|
3
|
+
// first question makes. The kit makes agents under these names and the
|
|
4
|
+
// server counts them as the journey's, so both read this one module.
|
|
5
|
+
/** The slug an agent described in the person's own words is made under, before any number. */
|
|
6
|
+
export const OWN_AGENT_SLUG = "your-agent";
|
|
7
|
+
/** How many names (`your-agent`, `your-agent-2`, …) a described agent tries before saying so. */
|
|
8
|
+
export const OWN_AGENT_TRIES = 10;
|
|
9
|
+
/** The slug the `n`th try of a described agent is made under: `your-agent`, then `your-agent-2`. */
|
|
10
|
+
export function ownAgentSlug(n) {
|
|
11
|
+
return n === 1 ? OWN_AGENT_SLUG : `${OWN_AGENT_SLUG}-${n}`;
|
|
12
|
+
}
|
|
13
|
+
/** Whether `slug` is an agent described in the person's own words. */
|
|
14
|
+
export function isOwnAgentSlug(slug) {
|
|
15
|
+
if (slug === OWN_AGENT_SLUG)
|
|
16
|
+
return true;
|
|
17
|
+
const match = /^your-agent-(\d+)$/.exec(slug);
|
|
18
|
+
if (match === null)
|
|
19
|
+
return false;
|
|
20
|
+
const n = Number(match[1]);
|
|
21
|
+
return String(n) === match[1] && n >= 2 && n <= OWN_AGENT_TRIES;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=own-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"own-agent.js","sourceRoot":"","sources":["../src/journey/own-agent.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,4EAA4E;AAC5E,uEAAuE;AACvE,qEAAqE;AAErE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAC3C,iGAAiG;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAElC,oGAAoG;AACpG,MAAM,UAAU,YAAY,CAAC,CAAS;IACpC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,IAAI,CAAC,EAAE,CAAC;AAC7D,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,IAAI,IAAI,KAAK,cAAc;QAAE,OAAO,IAAI,CAAC;IACzC,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IACjC,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slugs.gen.d.ts","sourceRoot":"","sources":["../src/journey/slugs.gen.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAiF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by examples/scripts/generate.mjs from catalogue.json and
|
|
2
|
+
// the manifests. DO NOT EDIT: change those files and run
|
|
3
|
+
// `npm run generate -w @stigmer/examples`.
|
|
4
|
+
/** Every example's agent slug, in the catalogue's order. */
|
|
5
|
+
export const EXAMPLE_AGENT_SLUGS = ["variance-reporter", "ticket-replier", "contract-reviewer", "invoice-matcher"];
|
|
6
|
+
//# sourceMappingURL=slugs.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slugs.gen.js","sourceRoot":"","sources":["../src/journey/slugs.gen.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,yDAAyD;AACzD,2CAA2C;AAE3C,4DAA4D;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAsB,CAAC,mBAAmB,EAAC,gBAAgB,EAAC,mBAAmB,EAAC,iBAAiB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/examples",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Stigmer's example agents as one list: each a job an agent does for a product's users, with its agent, its sample files and its first message, read by the React kit's launcher and its create picker",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/stigmer/stigmer.git",
|
|
11
|
+
"directory": "examples"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": "^22.13.0 || >=23.4.0"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"stigmer",
|
|
18
|
+
"agents",
|
|
19
|
+
"examples"
|
|
20
|
+
],
|
|
21
|
+
"main": "./index.js",
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"import": "./index.js",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
},
|
|
29
|
+
"./journey": {
|
|
30
|
+
"types": "./journey/index.d.ts",
|
|
31
|
+
"import": "./journey/index.js",
|
|
32
|
+
"default": "./journey/index.js"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// Code generated by examples/scripts/generate.mjs from catalogue.json, the
|
|
2
|
+
// manifests, the samples and the skills. DO NOT EDIT: change those files
|
|
3
|
+
// and run `npm run generate -w @stigmer/examples`.
|
|
4
|
+
|
|
5
|
+
import type { Example, ExampleSkill } from "./types.js";
|
|
6
|
+
|
|
7
|
+
/** Every example, in the order the catalogue lists them. */
|
|
8
|
+
export const EXAMPLES: readonly Example[] = [
|
|
9
|
+
{
|
|
10
|
+
"id": "variance-report",
|
|
11
|
+
"for": "For an accounting product",
|
|
12
|
+
"name": "Variance report",
|
|
13
|
+
"gives": "A quarter's ledger",
|
|
14
|
+
"gets": "A variance report, flagged accounts first",
|
|
15
|
+
"category": "data-analysis",
|
|
16
|
+
"tags": [
|
|
17
|
+
"accounting",
|
|
18
|
+
"ledger",
|
|
19
|
+
"budget",
|
|
20
|
+
"variance",
|
|
21
|
+
"report",
|
|
22
|
+
"file"
|
|
23
|
+
],
|
|
24
|
+
"message": "Here is this quarter's ledger, ledger.csv. Write the variance report.",
|
|
25
|
+
"ownFileMessage": "Here is one of our ledgers. Write the variance report.",
|
|
26
|
+
"output": "variance-report.md",
|
|
27
|
+
"agent": {
|
|
28
|
+
"name": "Variance Reporter",
|
|
29
|
+
"slug": "variance-reporter",
|
|
30
|
+
"description": "Turns a customer's ledger into a variance report.",
|
|
31
|
+
"instructions": "You review a customer's quarterly ledger. Each row has an account,\nits budget and its actual amount.\n\nFor every account, work out the variance (actual minus budget), in\nmoney and as a percentage of the budget. Flag each account that is\nmore than 10% over or under budget, and say in one line what could\nexplain it.\n\nHand back the report as a file named variance-report.md: a\ntwo-sentence summary, then one table of every account, flagged\naccounts first.\n",
|
|
32
|
+
"disallowedTools": [
|
|
33
|
+
"Bash"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"manifest": {
|
|
37
|
+
"name": "variance-reporter.yaml",
|
|
38
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: variance-reporter\nspec:\n description: Turns a customer's ledger into a variance report.\n instructions: |\n You review a customer's quarterly ledger. Each row has an account,\n its budget and its actual amount.\n\n For every account, work out the variance (actual minus budget), in\n money and as a percentage of the budget. Flag each account that is\n more than 10% over or under budget, and say in one line what could\n explain it.\n\n Hand back the report as a file named variance-report.md: a\n two-sentence summary, then one table of every account, flagged\n accounts first.\n disallowed_tools: [Bash]\n"
|
|
39
|
+
},
|
|
40
|
+
"sampleName": "ledger",
|
|
41
|
+
"samples": [
|
|
42
|
+
{
|
|
43
|
+
"name": "ledger.csv",
|
|
44
|
+
"type": "text/csv",
|
|
45
|
+
"text": "account,budget,actual\nRevenue,120000,131500\nCost of goods sold,48000,55200\nSalaries,36000,36400\nMarketing,9000,14100\nSoftware,4000,3900\nTravel,3000,1200\n"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "ticket-replies",
|
|
51
|
+
"for": "For a help desk",
|
|
52
|
+
"name": "Ticket replies",
|
|
53
|
+
"gives": "An export of open tickets",
|
|
54
|
+
"gets": "A drafted reply for each, ready to review",
|
|
55
|
+
"category": "content",
|
|
56
|
+
"tags": [
|
|
57
|
+
"support",
|
|
58
|
+
"help desk",
|
|
59
|
+
"tickets",
|
|
60
|
+
"replies",
|
|
61
|
+
"drafts",
|
|
62
|
+
"file"
|
|
63
|
+
],
|
|
64
|
+
"message": "Here are today's open tickets, open-tickets.csv. Draft a reply for each.",
|
|
65
|
+
"ownFileMessage": "Here is an export of our open tickets. Draft a reply for each.",
|
|
66
|
+
"output": "replies.md",
|
|
67
|
+
"agent": {
|
|
68
|
+
"name": "Ticket Replier",
|
|
69
|
+
"slug": "ticket-replier",
|
|
70
|
+
"description": "Drafts a reply to each open ticket in a help desk's export.",
|
|
71
|
+
"instructions": "You draft replies for a help desk. Each row of the export is an open\nticket: its number, the person who wrote in, a subject and their\nmessage.\n\nFor every ticket, draft a short, kind reply that answers what they\nasked, in plain words. When you need something you don't have, such\nas an order number or a screenshot, ask for it in the reply rather\nthan guessing. Never promise a refund, a date or a fix the ticket\ndoesn't already confirm; say who will follow up instead.\n\nHand back the replies as a file named replies.md: one section\nper ticket, headed by its number and subject, with the drafted reply\nunder it, then one line on anything a person should check before\nsending.\n",
|
|
72
|
+
"disallowedTools": [
|
|
73
|
+
"Bash"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"manifest": {
|
|
77
|
+
"name": "ticket-replier.yaml",
|
|
78
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: ticket-replier\nspec:\n description: Drafts a reply to each open ticket in a help desk's export.\n instructions: |\n You draft replies for a help desk. Each row of the export is an open\n ticket: its number, the person who wrote in, a subject and their\n message.\n\n For every ticket, draft a short, kind reply that answers what they\n asked, in plain words. When you need something you don't have, such\n as an order number or a screenshot, ask for it in the reply rather\n than guessing. Never promise a refund, a date or a fix the ticket\n doesn't already confirm; say who will follow up instead.\n\n Hand back the replies as a file named replies.md: one section\n per ticket, headed by its number and subject, with the drafted reply\n under it, then one line on anything a person should check before\n sending.\n disallowed_tools: [Bash]\n"
|
|
79
|
+
},
|
|
80
|
+
"sampleName": "ticket export",
|
|
81
|
+
"samples": [
|
|
82
|
+
{
|
|
83
|
+
"name": "open-tickets.csv",
|
|
84
|
+
"type": "text/csv",
|
|
85
|
+
"text": "ticket,from,subject,message\nT-1042,Priya N.,Charged twice this month,\"I see two charges of $29 on my card for October. I only have one account. Can you refund one?\"\nT-1043,Marco D.,Can't sign in after password reset,\"I reset my password this morning and the new one doesn't work. I've tried three times and now it says I'm locked out.\"\nT-1044,Aisha K.,Export to spreadsheet,\"Is there a way to export all my projects to a spreadsheet? I need it for an audit by Friday.\"\nT-1045,Tom W.,App is slow on large files,\"Opening any file over 50 MB takes more than a minute. It used to be a few seconds. Did something change?\"\nT-1046,Lena F.,Add a teammate,\"How do I add my colleague to our workspace? I can't find an invite button anywhere.\"\nT-1047,Sam O.,Cancel my plan,\"Please cancel my subscription at the end of this billing period. I don't want to lose my files before then.\"\nT-1048,Grace H.,Wrong time zone on reminders,\"All my reminders arrive an hour late since the clocks changed. My time zone is set correctly in my profile.\"\nT-1049,Diego R.,Feature request: dark mode,\"Any plans for a dark mode? I work late and the white screen is hard on my eyes.\"\n"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "contract-check",
|
|
91
|
+
"for": "For a legal or HR tool",
|
|
92
|
+
"name": "Contract check",
|
|
93
|
+
"gives": "A contract",
|
|
94
|
+
"gets": "The risky clauses, each with a safer wording",
|
|
95
|
+
"category": "content",
|
|
96
|
+
"tags": [
|
|
97
|
+
"legal",
|
|
98
|
+
"hr",
|
|
99
|
+
"contract",
|
|
100
|
+
"clauses",
|
|
101
|
+
"review",
|
|
102
|
+
"file"
|
|
103
|
+
],
|
|
104
|
+
"message": "Here is the contract, services-agreement.md. Find the clauses that put us at risk.",
|
|
105
|
+
"ownFileMessage": "Here is one of our contracts. Find the clauses that put us at risk.",
|
|
106
|
+
"output": "contract-review.md",
|
|
107
|
+
"agent": {
|
|
108
|
+
"name": "Contract Reviewer",
|
|
109
|
+
"slug": "contract-reviewer",
|
|
110
|
+
"description": "Flags a contract's risky clauses, each with a safer wording.",
|
|
111
|
+
"instructions": "You read a contract for the person about to sign it, the Client\nunless they say otherwise, and find the clauses that put them at\nrisk: one-sided liability, automatic renewals, price changes, who\nowns the work, payment and late fees, and how either side can leave.\n\nFor every risky clause, say in one line what it does, why it is a\nrisk for them, and a safer wording they could propose. Quote the\nclause's number as the contract numbers it. Leave out clauses that\nare ordinary and fair.\n\nHand back the review as a file named contract-review.md: one\nline saying this is a first read and not legal advice, a two-sentence\nsummary, then one section per risky clause, most serious first.\n",
|
|
112
|
+
"disallowedTools": [
|
|
113
|
+
"Bash"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"manifest": {
|
|
117
|
+
"name": "contract-reviewer.yaml",
|
|
118
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: contract-reviewer\nspec:\n description: Flags a contract's risky clauses, each with a safer wording.\n instructions: |\n You read a contract for the person about to sign it, the Client\n unless they say otherwise, and find the clauses that put them at\n risk: one-sided liability, automatic renewals, price changes, who\n owns the work, payment and late fees, and how either side can leave.\n\n For every risky clause, say in one line what it does, why it is a\n risk for them, and a safer wording they could propose. Quote the\n clause's number as the contract numbers it. Leave out clauses that\n are ordinary and fair.\n\n Hand back the review as a file named contract-review.md: one\n line saying this is a first read and not legal advice, a two-sentence\n summary, then one section per risky clause, most serious first.\n disallowed_tools: [Bash]\n"
|
|
119
|
+
},
|
|
120
|
+
"sampleName": "contract",
|
|
121
|
+
"samples": [
|
|
122
|
+
{
|
|
123
|
+
"name": "services-agreement.md",
|
|
124
|
+
"type": "text/markdown",
|
|
125
|
+
"text": "# Services Agreement\n\nThis agreement is between Harbor Lane Studio (\"the Provider\") and the\ncompany signing below (\"the Client\"). It starts on the date the Client\nsigns it.\n\n## 1. Services\n\nThe Provider will design and build the Client's customer portal, as set\nout in the attached statement of work.\n\n## 2. Fees\n\nThe Client will pay $48,000, in four monthly instalments of $12,000. The\nProvider may change its rates at any time by updating its website, and\nthe new rates apply to work not yet invoiced.\n\n## 3. Payment\n\nInvoices are due within 10 days. Any amount not paid on time carries a\nlate fee of 5% per month, compounded.\n\n## 4. Term and renewal\n\nThis agreement runs for 12 months and then renews automatically for\nanother 12 months unless the Client gives written notice at least 90\ndays before the end of the term.\n\n## 5. Ownership of work\n\nEverything the Provider makes under this agreement belongs to the\nProvider. The Provider grants the Client a licence to use it while this\nagreement is in force. Any materials the Client supplies become the\nProvider's property once delivered.\n\n## 6. Confidentiality\n\nEach side will keep the other's confidential information secret and use\nit only for this agreement, during the term and for two years after.\n\n## 7. Liability\n\nThe Client is liable for any loss the Provider suffers in connection with\nthis agreement, without limit. The Provider's total liability to the\nClient is limited to the fees paid in the month before the claim.\n\n## 8. Termination\n\nThe Provider may end this agreement at any time with 7 days' notice. The\nClient may end it only if the Provider has failed to deliver for 60 days\nin a row, and must still pay every remaining instalment.\n\n## 9. Governing law\n\nThis agreement is governed by the laws of the place where the Provider\nhas its main office.\n"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "invoice-match",
|
|
131
|
+
"for": "For a procurement tool",
|
|
132
|
+
"name": "Invoice match",
|
|
133
|
+
"gives": "An invoice and its purchase order",
|
|
134
|
+
"gets": "Every line that doesn't match, with the amount at stake",
|
|
135
|
+
"category": "data-analysis",
|
|
136
|
+
"tags": [
|
|
137
|
+
"procurement",
|
|
138
|
+
"invoice",
|
|
139
|
+
"purchase order",
|
|
140
|
+
"reconciliation",
|
|
141
|
+
"file"
|
|
142
|
+
],
|
|
143
|
+
"message": "Here is invoice-4471.csv and the purchase order it bills, po-2210.csv. Find every line that doesn't match.",
|
|
144
|
+
"ownFileMessage": "Here is one of our invoices and the purchase order it bills. Find every line that doesn't match.",
|
|
145
|
+
"output": "mismatches.md",
|
|
146
|
+
"agent": {
|
|
147
|
+
"name": "Invoice Matcher",
|
|
148
|
+
"slug": "invoice-matcher",
|
|
149
|
+
"description": "Matches an invoice against its purchase order and lists every line that differs.",
|
|
150
|
+
"instructions": "You check a supplier's invoice against the purchase order it bills.\nBoth are tables of lines, each with a SKU, a description, a quantity\nand a unit price.\n\nMatch the lines by SKU. A line doesn't match when its quantity or\nunit price differs from the order, when the invoice bills a SKU the\norder doesn't have, or when the order has a SKU the invoice leaves\nout. For each one, work out the amount at stake: what the invoice\ncharges beyond what the order agreed.\n\nHand back the result as a file named mismatches.md: one line\nwith the total amount at stake, then one table of every line that\ndoesn't match (SKU, what the order says, what the invoice says, the\namount at stake), largest first. If every line matches, say so.\n",
|
|
151
|
+
"disallowedTools": [
|
|
152
|
+
"Bash"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"manifest": {
|
|
156
|
+
"name": "invoice-matcher.yaml",
|
|
157
|
+
"text": "apiVersion: agentic.stigmer.ai/v1\nkind: Agent\nmetadata:\n name: invoice-matcher\nspec:\n description: Matches an invoice against its purchase order and lists every line that differs.\n instructions: |\n You check a supplier's invoice against the purchase order it bills.\n Both are tables of lines, each with a SKU, a description, a quantity\n and a unit price.\n\n Match the lines by SKU. A line doesn't match when its quantity or\n unit price differs from the order, when the invoice bills a SKU the\n order doesn't have, or when the order has a SKU the invoice leaves\n out. For each one, work out the amount at stake: what the invoice\n charges beyond what the order agreed.\n\n Hand back the result as a file named mismatches.md: one line\n with the total amount at stake, then one table of every line that\n doesn't match (SKU, what the order says, what the invoice says, the\n amount at stake), largest first. If every line matches, say so.\n disallowed_tools: [Bash]\n"
|
|
158
|
+
},
|
|
159
|
+
"sampleName": "invoice and purchase order",
|
|
160
|
+
"samples": [
|
|
161
|
+
{
|
|
162
|
+
"name": "invoice-4471.csv",
|
|
163
|
+
"type": "text/csv",
|
|
164
|
+
"text": "sku,description,quantity,unit_price\nDSK-120,Standing desk frame,10,340.00\nDSK-121,Desk top 160 cm,12,95.00\nCHR-310,Task chair,12,235.00\nMON-27,27-inch monitor,12,229.00\nARM-02,Dual monitor arm,6,79.00\nCBL-05,Cable tray,10,18.50\nSRV-01,Assembly and delivery,1,450.00\n"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "po-2210.csv",
|
|
168
|
+
"type": "text/csv",
|
|
169
|
+
"text": "sku,description,quantity,unit_price\nDSK-120,Standing desk frame,10,340.00\nDSK-121,Desk top 160 cm,10,95.00\nCHR-310,Task chair,12,210.00\nMON-27,27-inch monitor,12,229.00\nARM-02,Dual monitor arm,6,79.00\nCBL-05,Cable tray,10,18.50\n"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
];
|
|
174
|
+
|
|
175
|
+
/** Every ready-made skill, in the order the catalogue lists them. */
|
|
176
|
+
export const SKILLS: readonly ExampleSkill[] = [
|
|
177
|
+
{
|
|
178
|
+
"id": "spreadsheet-export",
|
|
179
|
+
"name": "Spreadsheet export",
|
|
180
|
+
"description": "Use whenever your work makes a table, to save it as a .csv too.",
|
|
181
|
+
"file": "skills/spreadsheet-export/SKILL.md",
|
|
182
|
+
"text": "---\nname: spreadsheet-export\ndescription: Use whenever your work makes a table, to save it as a .csv too.\n---\n\n# Spreadsheet export\n\nWhen your work makes a table (one row per account, ticket, clause or line), also\nhand back that table as a CSV file, beside the file your instructions name.\n\n- Name it after that file, with `.csv` in place of its extension: a report saved\n as `variance-report.md` comes with `variance-report.csv`.\n- Write a header row first, then one row per item, in the table's order.\n- Separate columns with commas. Put a value that holds a comma or a quote in\n double quotes, and double each quote inside it.\n- Write numbers plainly: `5100`, not `$5,100`; `-60.0`, not `-60%`.\n\nName the CSV in your answer, in one short line.\n"
|
|
183
|
+
}
|
|
184
|
+
];
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Stigmer's example agents as one list every reader shares: today the React
|
|
2
|
+
// kit's launcher (its first question), its create picker and the agent
|
|
3
|
+
// page's "Make it yours" tab, in the web console and the desktop app; and
|
|
4
|
+
// the ready-made skills that tab offers. Each is a job an agent does for a product's users,
|
|
5
|
+
// with a sample file in and a file out; the folders beside this package's
|
|
6
|
+
// source are what people download, and catalogue.gen.ts is generated from
|
|
7
|
+
// them (scripts/generate.mjs).
|
|
8
|
+
|
|
9
|
+
import { EXAMPLES, SKILLS } from "./catalogue.gen.js";
|
|
10
|
+
import { EXAMPLE_AGENT_SLUGS } from "./journey/slugs.gen.js";
|
|
11
|
+
import type { Example, ExampleSkill } from "./types.js";
|
|
12
|
+
|
|
13
|
+
export { EXAMPLE_AGENT_SLUGS, EXAMPLES, SKILLS };
|
|
14
|
+
export type { Example, ExampleAgent, ExampleCategory, ExampleSample, ExampleSkill } from "./types.js";
|
|
15
|
+
|
|
16
|
+
/** The example with this id, or undefined. */
|
|
17
|
+
export function exampleById(id: string): Example | undefined {
|
|
18
|
+
return EXAMPLES.find((example) => example.id === id);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The ready-made skill with this id, or undefined. */
|
|
22
|
+
export function skillById(id: string): ExampleSkill | undefined {
|
|
23
|
+
return SKILLS.find((skill) => skill.id === id);
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Which agents a newcomer made on the journey from a first agent to their
|
|
2
|
+
// users: an example's agent (the React kit's first question makes it under
|
|
3
|
+
// the example's slug) or one described in their own words (`your-agent`,
|
|
4
|
+
// then `your-agent-2` and on). The kit makes agents under these names and
|
|
5
|
+
// the server reads them when it says how far an organization got, so both
|
|
6
|
+
// import this entry. It carries no example's data, only names, so a first
|
|
7
|
+
// download and the server stay light: `@stigmer/examples/journey`.
|
|
8
|
+
|
|
9
|
+
import { EXAMPLE_AGENT_SLUGS } from "./slugs.gen.js";
|
|
10
|
+
import { isOwnAgentSlug } from "./own-agent.js";
|
|
11
|
+
|
|
12
|
+
export { EXAMPLE_AGENT_SLUGS };
|
|
13
|
+
export { OWN_AGENT_SLUG, OWN_AGENT_TRIES, isOwnAgentSlug, ownAgentSlug } from "./own-agent.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Whether `slug` is an agent the journey made: an example's, or one
|
|
17
|
+
* described in the person's own words. An agent made any other way is not.
|
|
18
|
+
*/
|
|
19
|
+
export function isJourneyAgentSlug(slug: string): boolean {
|
|
20
|
+
return EXAMPLE_AGENT_SLUGS.includes(slug) || isOwnAgentSlug(slug);
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// The names an agent described in the person's own words is made under:
|
|
2
|
+
// `your-agent`, then `your-agent-2` and on, up to the tries the React kit's
|
|
3
|
+
// first question makes. The kit makes agents under these names and the
|
|
4
|
+
// server counts them as the journey's, so both read this one module.
|
|
5
|
+
|
|
6
|
+
/** The slug an agent described in the person's own words is made under, before any number. */
|
|
7
|
+
export const OWN_AGENT_SLUG = "your-agent";
|
|
8
|
+
/** How many names (`your-agent`, `your-agent-2`, …) a described agent tries before saying so. */
|
|
9
|
+
export const OWN_AGENT_TRIES = 10;
|
|
10
|
+
|
|
11
|
+
/** The slug the `n`th try of a described agent is made under: `your-agent`, then `your-agent-2`. */
|
|
12
|
+
export function ownAgentSlug(n: number): string {
|
|
13
|
+
return n === 1 ? OWN_AGENT_SLUG : `${OWN_AGENT_SLUG}-${n}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Whether `slug` is an agent described in the person's own words. */
|
|
17
|
+
export function isOwnAgentSlug(slug: string): boolean {
|
|
18
|
+
if (slug === OWN_AGENT_SLUG) return true;
|
|
19
|
+
const match = /^your-agent-(\d+)$/.exec(slug);
|
|
20
|
+
if (match === null) return false;
|
|
21
|
+
const n = Number(match[1]);
|
|
22
|
+
return String(n) === match[1] && n >= 2 && n <= OWN_AGENT_TRIES;
|
|
23
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by examples/scripts/generate.mjs from catalogue.json and
|
|
2
|
+
// the manifests. DO NOT EDIT: change those files and run
|
|
3
|
+
// `npm run generate -w @stigmer/examples`.
|
|
4
|
+
|
|
5
|
+
/** Every example's agent slug, in the catalogue's order. */
|
|
6
|
+
export const EXAMPLE_AGENT_SLUGS: readonly string[] = ["variance-reporter","ticket-replier","contract-reviewer","invoice-matcher"];
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// The shape of one example agent, as a reader of the list sees it: the
|
|
2
|
+
// card's words, the first message, the agent to make, the manifest people
|
|
3
|
+
// download and the sample files the first run attaches; and of one
|
|
4
|
+
// ready-made skill a newcomer can give an agent. The data itself is
|
|
5
|
+
// generated into catalogue.gen.ts from the folders beside this package's
|
|
6
|
+
// source, so the downloadable files stay the only definition.
|
|
7
|
+
|
|
8
|
+
/** Where an example sits in a template gallery; the same values the console's create picker groups by. */
|
|
9
|
+
export type ExampleCategory = "data-analysis" | "devops" | "content" | "integration" | "general";
|
|
10
|
+
|
|
11
|
+
/** The agent an example makes: its manifest, read into the fields a create call takes. */
|
|
12
|
+
export interface ExampleAgent {
|
|
13
|
+
/** Display name, from the manifest's slug ("Variance Reporter"). */
|
|
14
|
+
readonly name: string;
|
|
15
|
+
/** The manifest's `metadata.name`, the agent's slug in an organization. */
|
|
16
|
+
readonly slug: string;
|
|
17
|
+
readonly description: string;
|
|
18
|
+
readonly instructions: string;
|
|
19
|
+
/** Tools the agent may not use (`disallowed_tools`); the examples need no shell. */
|
|
20
|
+
readonly disallowedTools: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** One sample file a first run attaches, inlined as text. */
|
|
24
|
+
export interface ExampleSample {
|
|
25
|
+
/** File name, as the first message names it ("ledger.csv"). */
|
|
26
|
+
readonly name: string;
|
|
27
|
+
/** Media type ("text/csv", "text/markdown"). */
|
|
28
|
+
readonly type: string;
|
|
29
|
+
readonly text: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** One example job: what a product's user hands over and what the agent hands back. */
|
|
33
|
+
export interface Example {
|
|
34
|
+
/** Stable id, the example's folder name ("variance-report"). */
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/** Whose product it is, in one line ("For an accounting product"). */
|
|
37
|
+
readonly for: string;
|
|
38
|
+
/** The job's name ("Variance report"). */
|
|
39
|
+
readonly name: string;
|
|
40
|
+
/** What the product's user hands over ("A quarter's ledger"). */
|
|
41
|
+
readonly gives: string;
|
|
42
|
+
/** What the agent hands back. */
|
|
43
|
+
readonly gets: string;
|
|
44
|
+
readonly category: ExampleCategory;
|
|
45
|
+
readonly tags: readonly string[];
|
|
46
|
+
/** The first message, naming every sample it sends. */
|
|
47
|
+
readonly message: string;
|
|
48
|
+
/**
|
|
49
|
+
* The message for a run on the person's own file instead of the samples
|
|
50
|
+
* ("Here is one of our ledgers. Write the variance report."): it names no
|
|
51
|
+
* file, since the person attaches their own.
|
|
52
|
+
*/
|
|
53
|
+
readonly ownFileMessage: string;
|
|
54
|
+
/** The file the agent's instructions promise to save ("variance-report.md"). */
|
|
55
|
+
readonly output: string;
|
|
56
|
+
readonly agent: ExampleAgent;
|
|
57
|
+
/** The manifest people download, by its file name and text. */
|
|
58
|
+
readonly manifest: { readonly name: string; readonly text: string };
|
|
59
|
+
/** The samples in words, as a sentence names them ("ledger", "invoice and purchase order"). */
|
|
60
|
+
readonly sampleName: string;
|
|
61
|
+
readonly samples: readonly ExampleSample[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A ready-made skill a newcomer can give an example's agent: its SKILL.md,
|
|
66
|
+
* inlined, so a console can make the skill in an organization without a
|
|
67
|
+
* download (zipped as the skill's only file).
|
|
68
|
+
*/
|
|
69
|
+
export interface ExampleSkill {
|
|
70
|
+
/** The skill's slug, its SKILL.md frontmatter `name` ("spreadsheet-export"). */
|
|
71
|
+
readonly id: string;
|
|
72
|
+
/** Its name in words ("Spreadsheet export"). */
|
|
73
|
+
readonly name: string;
|
|
74
|
+
/** Its SKILL.md frontmatter `description`. */
|
|
75
|
+
readonly description: string;
|
|
76
|
+
/** Its SKILL.md's path in this package's folder, as people download it ("skills/spreadsheet-export/SKILL.md"). */
|
|
77
|
+
readonly file: string;
|
|
78
|
+
/** The SKILL.md's text, byte for byte. */
|
|
79
|
+
readonly text: string;
|
|
80
|
+
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** Where an example sits in a template gallery; the same values the console's create picker groups by. */
|
|
2
|
+
export type ExampleCategory = "data-analysis" | "devops" | "content" | "integration" | "general";
|
|
3
|
+
/** The agent an example makes: its manifest, read into the fields a create call takes. */
|
|
4
|
+
export interface ExampleAgent {
|
|
5
|
+
/** Display name, from the manifest's slug ("Variance Reporter"). */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** The manifest's `metadata.name`, the agent's slug in an organization. */
|
|
8
|
+
readonly slug: string;
|
|
9
|
+
readonly description: string;
|
|
10
|
+
readonly instructions: string;
|
|
11
|
+
/** Tools the agent may not use (`disallowed_tools`); the examples need no shell. */
|
|
12
|
+
readonly disallowedTools: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
/** One sample file a first run attaches, inlined as text. */
|
|
15
|
+
export interface ExampleSample {
|
|
16
|
+
/** File name, as the first message names it ("ledger.csv"). */
|
|
17
|
+
readonly name: string;
|
|
18
|
+
/** Media type ("text/csv", "text/markdown"). */
|
|
19
|
+
readonly type: string;
|
|
20
|
+
readonly text: string;
|
|
21
|
+
}
|
|
22
|
+
/** One example job: what a product's user hands over and what the agent hands back. */
|
|
23
|
+
export interface Example {
|
|
24
|
+
/** Stable id, the example's folder name ("variance-report"). */
|
|
25
|
+
readonly id: string;
|
|
26
|
+
/** Whose product it is, in one line ("For an accounting product"). */
|
|
27
|
+
readonly for: string;
|
|
28
|
+
/** The job's name ("Variance report"). */
|
|
29
|
+
readonly name: string;
|
|
30
|
+
/** What the product's user hands over ("A quarter's ledger"). */
|
|
31
|
+
readonly gives: string;
|
|
32
|
+
/** What the agent hands back. */
|
|
33
|
+
readonly gets: string;
|
|
34
|
+
readonly category: ExampleCategory;
|
|
35
|
+
readonly tags: readonly string[];
|
|
36
|
+
/** The first message, naming every sample it sends. */
|
|
37
|
+
readonly message: string;
|
|
38
|
+
/**
|
|
39
|
+
* The message for a run on the person's own file instead of the samples
|
|
40
|
+
* ("Here is one of our ledgers. Write the variance report."): it names no
|
|
41
|
+
* file, since the person attaches their own.
|
|
42
|
+
*/
|
|
43
|
+
readonly ownFileMessage: string;
|
|
44
|
+
/** The file the agent's instructions promise to save ("variance-report.md"). */
|
|
45
|
+
readonly output: string;
|
|
46
|
+
readonly agent: ExampleAgent;
|
|
47
|
+
/** The manifest people download, by its file name and text. */
|
|
48
|
+
readonly manifest: {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly text: string;
|
|
51
|
+
};
|
|
52
|
+
/** The samples in words, as a sentence names them ("ledger", "invoice and purchase order"). */
|
|
53
|
+
readonly sampleName: string;
|
|
54
|
+
readonly samples: readonly ExampleSample[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A ready-made skill a newcomer can give an example's agent: its SKILL.md,
|
|
58
|
+
* inlined, so a console can make the skill in an organization without a
|
|
59
|
+
* download (zipped as the skill's only file).
|
|
60
|
+
*/
|
|
61
|
+
export interface ExampleSkill {
|
|
62
|
+
/** The skill's slug, its SKILL.md frontmatter `name` ("spreadsheet-export"). */
|
|
63
|
+
readonly id: string;
|
|
64
|
+
/** Its name in words ("Spreadsheet export"). */
|
|
65
|
+
readonly name: string;
|
|
66
|
+
/** Its SKILL.md frontmatter `description`. */
|
|
67
|
+
readonly description: string;
|
|
68
|
+
/** Its SKILL.md's path in this package's folder, as people download it ("skills/spreadsheet-export/SKILL.md"). */
|
|
69
|
+
readonly file: string;
|
|
70
|
+
/** The SKILL.md's text, byte for byte. */
|
|
71
|
+
readonly text: string;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAOA,0GAA0G;AAC1G,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAEjG,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,uFAAuF;AACvF,MAAM,WAAW,OAAO;IACtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,gFAAgF;IAChF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,+FAA+F;IAC/F,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;CAC5C;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kHAAkH;IAClH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
package/types.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// The shape of one example agent, as a reader of the list sees it: the
|
|
2
|
+
// card's words, the first message, the agent to make, the manifest people
|
|
3
|
+
// download and the sample files the first run attaches; and of one
|
|
4
|
+
// ready-made skill a newcomer can give an agent. The data itself is
|
|
5
|
+
// generated into catalogue.gen.ts from the folders beside this package's
|
|
6
|
+
// source, so the downloadable files stay the only definition.
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=types.js.map
|
package/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,0EAA0E;AAC1E,mEAAmE;AACnE,oEAAoE;AACpE,yEAAyE;AACzE,8DAA8D"}
|