@botiverse/bottega 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 +202 -0
- package/NOTICE +4 -0
- package/README.md +71 -2
- package/dist/apps/calendar/agent-app.json +31 -0
- package/dist/apps/git/agent-app.json +111 -0
- package/dist/apps/github/agent-app.json +109 -0
- package/dist/apps/gmail/agent-app.json +31 -0
- package/dist/apps/jira/agent-app.json +23 -0
- package/dist/apps/linear/agent-app.json +66 -0
- package/dist/apps/notion/agent-app.json +50 -0
- package/dist/chunk-W6FG2Y6S.js +9560 -0
- package/dist/cli.js +1353 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +22 -0
- package/package.json +63 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @botiverse/bottega
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The bottega agent without its desktop: the command line, and one session
|
|
4
|
+
that another program drives. bottega keeps an agent's state in apps — files,
|
|
5
|
+
a terminal, chat, notes, a plan — not in its context: the context is a screen
|
|
6
|
+
of their windows, rebuilt from them whenever that is best, so it never needs
|
|
7
|
+
compressing. [The repository](https://github.com/botiverse/bottega) explains
|
|
8
|
+
how, and has the desktop app.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install -g @botiverse/bottega # the bottega command
|
|
12
|
+
npm install @botiverse/bottega # for a program
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Node 24 or later.
|
|
16
|
+
|
|
17
|
+
## A session a host drives
|
|
18
|
+
|
|
19
|
+
`bottega serve` runs one session over JSON lines on stdin and stdout. Each line
|
|
20
|
+
in is a command, `{id, method, …}`, answered once by `{type: "response", id,
|
|
21
|
+
result}` or `{…, error: {code, message}}`:
|
|
22
|
+
|
|
23
|
+
- `open {cwd, provider?, model?, thinking?, baseUrl?, apps?, instructions?,
|
|
24
|
+
features?, maxSteps?}` makes a session for that directory; `resume
|
|
25
|
+
{sessionId, cwd, thinking?, instructions?, maxSteps?}` takes one up again.
|
|
26
|
+
A `thinking` the model cannot run is refused. Both answer `{sessionId,
|
|
27
|
+
root, provider, model, thinking, apps}`.
|
|
28
|
+
- `prompt {text, inputId?, origin?}` starts a turn; `steer {…}` puts the same
|
|
29
|
+
into the turn that is running. An input whose `origin.kind` is not `user` is
|
|
30
|
+
an event: it wakes the session and leaves one line saying where to look.
|
|
31
|
+
Its `origin.source`, when bottega has an app by that name (Raft's `raft`),
|
|
32
|
+
turns that app on in a session without it.
|
|
33
|
+
- `cancel` stops the turn; `dispose` ends the session, and under `bottega
|
|
34
|
+
serve` the process.
|
|
35
|
+
|
|
36
|
+
Every other line out is something that happened: `ready`, then
|
|
37
|
+
`turn_started`, `said`, `action`, `note`, `step` (what a model call cost),
|
|
38
|
+
`input_dropped` and `turn_ended {outcome}`.
|
|
39
|
+
|
|
40
|
+
`instructions` is appended to bottega's own prompt.
|
|
41
|
+
|
|
42
|
+
## From a program
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { CLI, serve } from "@botiverse/bottega";
|
|
46
|
+
|
|
47
|
+
// In a process of its own:
|
|
48
|
+
spawn(process.execPath, [CLI, "serve"]);
|
|
49
|
+
|
|
50
|
+
// Or in this one, over any two streams:
|
|
51
|
+
await serve(input, output);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`VERSION` and `PROTOCOL` are what `ready` reports.
|
|
55
|
+
|
|
56
|
+
## Models and keys
|
|
57
|
+
|
|
58
|
+
Every provider and model pi offers; `bottega models` lists them, and
|
|
59
|
+
`baseUrl` points one at another endpoint. `bottega models --json` prints the
|
|
60
|
+
ones a session can open on now, those of providers with a key or a login, as
|
|
61
|
+
`{models: [{provider, id, contextWindow, thinking, default?, …}]}`; `--stale`
|
|
62
|
+
reads the catalog on disk instead of asking each provider first. Keys come from the provider's usual
|
|
63
|
+
environment variable, or from `~/.bottega/.env`; `BOTTEGA_HOME` moves that
|
|
64
|
+
directory.
|
|
65
|
+
|
|
66
|
+
## Apps
|
|
67
|
+
|
|
68
|
+
The standard set (chat, notes, tasks, files, terminal, editor, journal,
|
|
69
|
+
board), the Raft, Slack, Discord and browser apps, and the manifests that
|
|
70
|
+
ship: git, GitHub, Gmail, calendar, Jira, Linear and Notion. `bottega app add`
|
|
71
|
+
installs CLI and MCP apps. A module app, written against `@bottega/core`, does
|
|
72
|
+
not load in this package yet: it needs the source tree.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "calendar",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "Google Calendar",
|
|
6
|
+
"about": "Google Calendar, through Google's own MCP server: events, free time, invitations.",
|
|
7
|
+
"summary": "Google Calendar through Google's own server: list and search events, find free time, create and change events",
|
|
8
|
+
"mcp": {
|
|
9
|
+
"url": "https://calendarmcp.googleapis.com/mcp/v1"
|
|
10
|
+
},
|
|
11
|
+
"config": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"clientId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "OAuth client id",
|
|
17
|
+
"description": "A Google Cloud OAuth client id (Web application) with the Calendar MCP scopes enabled."
|
|
18
|
+
},
|
|
19
|
+
"clientSecret": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "OAuth client secret",
|
|
22
|
+
"secret": true,
|
|
23
|
+
"description": "The client's secret."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["clientId", "clientSecret"]
|
|
27
|
+
},
|
|
28
|
+
"budget": 500,
|
|
29
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
30
|
+
"license": "Apache-2.0"
|
|
31
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "git",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "Git",
|
|
6
|
+
"about": "The repository's status, history and changes, as windows that stay current.",
|
|
7
|
+
"summary": "the repository: `status` and `log` are live windows, `diff`, `show` and `patch` open one each; `add`, `commit` and `checkout` redraw them",
|
|
8
|
+
"guidance": "The status and log windows are drawn again after every step, so what they show is current — do not run `git status` in the terminal to check.",
|
|
9
|
+
"cli": {
|
|
10
|
+
"command": "git",
|
|
11
|
+
"install": "brew install git"
|
|
12
|
+
},
|
|
13
|
+
"startup": "status",
|
|
14
|
+
"verbs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "status",
|
|
17
|
+
"description": "The working tree: branch, staged and unstaged files. Kept live.",
|
|
18
|
+
"argv": ["status", "--short", "--branch"],
|
|
19
|
+
"window": "status",
|
|
20
|
+
"live": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "log",
|
|
24
|
+
"description": "Recent commits, one line each. Kept live.",
|
|
25
|
+
"params": {
|
|
26
|
+
"n?": {
|
|
27
|
+
"description": "How many commits.",
|
|
28
|
+
"default": "20"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"argv": ["log", "--oneline", "--decorate", "-n", "{n}"],
|
|
32
|
+
"window": "log",
|
|
33
|
+
"live": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "diff",
|
|
37
|
+
"description": "What changed and is not committed, as a patch; one path or all of them. Kept live.",
|
|
38
|
+
"params": {
|
|
39
|
+
"path?": "One file or directory; absent, everything."
|
|
40
|
+
},
|
|
41
|
+
"argv": ["diff", "--", "{path?}"],
|
|
42
|
+
"window": "diff {path?}",
|
|
43
|
+
"live": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "staged",
|
|
47
|
+
"description": "What is staged for the next commit, as a patch. Kept live.",
|
|
48
|
+
"argv": ["diff", "--cached"],
|
|
49
|
+
"window": "staged",
|
|
50
|
+
"live": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "show",
|
|
54
|
+
"description": "One commit: its message and which files it touched.",
|
|
55
|
+
"params": {
|
|
56
|
+
"ref": "A commit: a hash, HEAD~2, a tag."
|
|
57
|
+
},
|
|
58
|
+
"argv": ["show", "--stat", "{ref}"],
|
|
59
|
+
"window": "show {ref}"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "patch",
|
|
63
|
+
"description": "One commit's full patch, or one file's part of it.",
|
|
64
|
+
"params": {
|
|
65
|
+
"ref": "A commit: a hash, HEAD~2, a tag.",
|
|
66
|
+
"path?": "One file; absent, the whole patch."
|
|
67
|
+
},
|
|
68
|
+
"argv": ["show", "--patch", "{ref}", "--", "{path?}"],
|
|
69
|
+
"window": "patch {ref} {path?}"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "blame",
|
|
73
|
+
"description": "Who last changed each line of a file.",
|
|
74
|
+
"params": {
|
|
75
|
+
"path": "The file."
|
|
76
|
+
},
|
|
77
|
+
"argv": ["blame", "--date=short", "--", "{path}"],
|
|
78
|
+
"window": "blame {path}"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "add",
|
|
82
|
+
"description": "Stage files for the next commit.",
|
|
83
|
+
"params": {
|
|
84
|
+
"paths": "Paths, separated by spaces; '.' for everything."
|
|
85
|
+
},
|
|
86
|
+
"argv": ["add", "--", "{paths...}"],
|
|
87
|
+
"refresh": ["status", "staged"]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "commit",
|
|
91
|
+
"description": "Commit what is staged, with a message.",
|
|
92
|
+
"params": {
|
|
93
|
+
"message": "The commit message: one line saying what changed and why."
|
|
94
|
+
},
|
|
95
|
+
"argv": ["commit", "-m", "{message}"],
|
|
96
|
+
"refresh": ["status", "log", "staged"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "checkout",
|
|
100
|
+
"description": "Switch to a branch, creating it when asked.",
|
|
101
|
+
"params": {
|
|
102
|
+
"branch": "The branch.",
|
|
103
|
+
"create?": "'yes' to create it first."
|
|
104
|
+
},
|
|
105
|
+
"argv": ["checkout", "-b={create?}", "{branch}"],
|
|
106
|
+
"refresh": ["status", "log"]
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
110
|
+
"license": "Apache-2.0"
|
|
111
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "github",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "GitHub",
|
|
6
|
+
"about": "Issues and pull requests of the repository, through the gh command.",
|
|
7
|
+
"summary": "the repository's issues and pull requests on GitHub: `issues` and `prs` list them, `issue` and `pr` open one with its comments, `comment`, `create` and `close` act and redraw",
|
|
8
|
+
"guidance": "A window is what the service held when it was drawn; other people write there too, so `refresh` before acting on something that may have moved.",
|
|
9
|
+
"cli": {
|
|
10
|
+
"command": "gh",
|
|
11
|
+
"install": "brew install gh, then gh auth login"
|
|
12
|
+
},
|
|
13
|
+
"budget": 600,
|
|
14
|
+
"verbs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "issues",
|
|
17
|
+
"description": "The repository's issues: number, title, labels, age.",
|
|
18
|
+
"params": {
|
|
19
|
+
"state?": {
|
|
20
|
+
"description": "open, closed or all.",
|
|
21
|
+
"default": "open"
|
|
22
|
+
},
|
|
23
|
+
"search?": "Words to search for."
|
|
24
|
+
},
|
|
25
|
+
"argv": ["issue", "list", "--state", "{state}", "--limit", "30", "--search={search?}"],
|
|
26
|
+
"window": "issues"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "issue",
|
|
30
|
+
"description": "One issue, with its comments.",
|
|
31
|
+
"params": {
|
|
32
|
+
"number": "The issue number."
|
|
33
|
+
},
|
|
34
|
+
"argv": ["issue", "view", "{number}", "--comments"],
|
|
35
|
+
"window": "issue {number}"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "prs",
|
|
39
|
+
"description": "The repository's pull requests: number, title, branch, age.",
|
|
40
|
+
"params": {
|
|
41
|
+
"state?": {
|
|
42
|
+
"description": "open, closed, merged or all.",
|
|
43
|
+
"default": "open"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"argv": ["pr", "list", "--state", "{state}", "--limit", "30"],
|
|
47
|
+
"window": "pull requests"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "pr",
|
|
51
|
+
"description": "One pull request: its description, its comments, its checks.",
|
|
52
|
+
"params": {
|
|
53
|
+
"number": "The pull request number."
|
|
54
|
+
},
|
|
55
|
+
"argv": ["pr", "view", "{number}", "--comments"],
|
|
56
|
+
"window": "pr {number}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "diff",
|
|
60
|
+
"description": "A pull request's changes, as a patch.",
|
|
61
|
+
"params": {
|
|
62
|
+
"number": "The pull request number."
|
|
63
|
+
},
|
|
64
|
+
"argv": ["pr", "diff", "{number}"],
|
|
65
|
+
"window": "pr {number} diff"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "checks",
|
|
69
|
+
"description": "A pull request's checks and their state.",
|
|
70
|
+
"params": {
|
|
71
|
+
"number": "The pull request number."
|
|
72
|
+
},
|
|
73
|
+
"argv": ["pr", "checks", "{number}"],
|
|
74
|
+
"window": "pr {number} checks"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "comment",
|
|
78
|
+
"description": "Say something on an issue or a pull request. Its window is drawn again.",
|
|
79
|
+
"params": {
|
|
80
|
+
"number": "The issue or pull request number.",
|
|
81
|
+
"text": "The comment, in markdown."
|
|
82
|
+
},
|
|
83
|
+
"argv": ["issue", "comment", "{number}", "--body", "{text}"],
|
|
84
|
+
"refresh": ["issue {number}", "pr {number}"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "create",
|
|
88
|
+
"description": "Open a new issue.",
|
|
89
|
+
"params": {
|
|
90
|
+
"title": "The title.",
|
|
91
|
+
"body?": "The description, in markdown."
|
|
92
|
+
},
|
|
93
|
+
"argv": ["issue", "create", "--title", "{title}", "--body={body?}"],
|
|
94
|
+
"refresh": "issues"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "close",
|
|
98
|
+
"description": "Close an issue, saying why.",
|
|
99
|
+
"params": {
|
|
100
|
+
"number": "The issue number.",
|
|
101
|
+
"comment?": "A closing comment."
|
|
102
|
+
},
|
|
103
|
+
"argv": ["issue", "close", "{number}", "--comment={comment?}"],
|
|
104
|
+
"refresh": ["issues", "issue {number}"]
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
108
|
+
"license": "Apache-2.0"
|
|
109
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "gmail",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "Gmail",
|
|
6
|
+
"about": "Gmail, through Google's own MCP server: search, read, draft.",
|
|
7
|
+
"summary": "Gmail through Google's own server: search and read mail, draft and send replies",
|
|
8
|
+
"mcp": {
|
|
9
|
+
"url": "https://gmailmcp.googleapis.com/mcp/v1"
|
|
10
|
+
},
|
|
11
|
+
"config": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"clientId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "OAuth client id",
|
|
17
|
+
"description": "A Google Cloud OAuth client id (Web application) with the Gmail MCP scopes enabled."
|
|
18
|
+
},
|
|
19
|
+
"clientSecret": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "OAuth client secret",
|
|
22
|
+
"secret": true,
|
|
23
|
+
"description": "The client's secret."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["clientId", "clientSecret"]
|
|
27
|
+
},
|
|
28
|
+
"budget": 500,
|
|
29
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
30
|
+
"license": "Apache-2.0"
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "jira",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "Jira & Confluence",
|
|
6
|
+
"about": "Jira issues and Confluence pages, through Atlassian's own MCP server.",
|
|
7
|
+
"summary": "Jira and Confluence through Atlassian's own server: search and read issues and pages, create and change them",
|
|
8
|
+
"guidance": "Look before you change: search, then get the issue or page by its key, then edit by the same key. `refresh` reads every window again.",
|
|
9
|
+
"mcp": {
|
|
10
|
+
"url": "https://mcp.atlassian.com/v1/mcp"
|
|
11
|
+
},
|
|
12
|
+
"tools": {
|
|
13
|
+
"getJiraIssue": {
|
|
14
|
+
"window": "issue {issueIdOrKey}"
|
|
15
|
+
},
|
|
16
|
+
"getConfluencePage": {
|
|
17
|
+
"window": "page {pageId}"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"budget": 600,
|
|
21
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
22
|
+
"license": "Apache-2.0"
|
|
23
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../spec/agent-app-1.schema.json",
|
|
3
|
+
"name": "linear",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"label": "Linear",
|
|
6
|
+
"about": "A Linear workspace's issues, projects and comments, through Linear's own MCP server.",
|
|
7
|
+
"summary": "Linear: the workspace's teams, issues, comments, projects and documents — list and get them into windows, save to create or change them; an issue window is drawn again after you change it",
|
|
8
|
+
"guidance": "Look before you change: `list_issues` or `get_issue`, then `save_issue` with the id the window shows (no id creates a new one; a new issue needs `team`). Other people work here too; `refresh` reads every window again.",
|
|
9
|
+
"mcp": {
|
|
10
|
+
"url": "https://mcp.linear.app/mcp"
|
|
11
|
+
},
|
|
12
|
+
"tools": {
|
|
13
|
+
"list_teams": {
|
|
14
|
+
"window": "teams"
|
|
15
|
+
},
|
|
16
|
+
"list_issues": {
|
|
17
|
+
"window": "issues"
|
|
18
|
+
},
|
|
19
|
+
"get_issue": {
|
|
20
|
+
"window": "issue {id}"
|
|
21
|
+
},
|
|
22
|
+
"save_issue": {
|
|
23
|
+
"refresh": ["issue {id}", "issues"]
|
|
24
|
+
},
|
|
25
|
+
"list_comments": {
|
|
26
|
+
"window": "comments {issueId}"
|
|
27
|
+
},
|
|
28
|
+
"save_comment": {
|
|
29
|
+
"refresh": ["comments {issueId}", "issue {issueId}"]
|
|
30
|
+
},
|
|
31
|
+
"list_issue_statuses": {
|
|
32
|
+
"window": "statuses {team}"
|
|
33
|
+
},
|
|
34
|
+
"list_issue_labels": {
|
|
35
|
+
"window": "labels"
|
|
36
|
+
},
|
|
37
|
+
"list_projects": {
|
|
38
|
+
"window": "projects"
|
|
39
|
+
},
|
|
40
|
+
"get_project": {
|
|
41
|
+
"window": "project {query}"
|
|
42
|
+
},
|
|
43
|
+
"list_cycles": {
|
|
44
|
+
"window": "cycles {teamId}"
|
|
45
|
+
},
|
|
46
|
+
"list_users": {
|
|
47
|
+
"window": "users"
|
|
48
|
+
},
|
|
49
|
+
"get_workspace": {
|
|
50
|
+
"window": "workspace"
|
|
51
|
+
},
|
|
52
|
+
"list_documents": {
|
|
53
|
+
"window": "documents"
|
|
54
|
+
},
|
|
55
|
+
"get_document": {
|
|
56
|
+
"window": "document {id}"
|
|
57
|
+
},
|
|
58
|
+
"save_document": {
|
|
59
|
+
"refresh": ["document {id}", "documents"]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"offer": "listed",
|
|
63
|
+
"budget": 600,
|
|
64
|
+
"author": "Richard Chien <stdrc@outlook.com>",
|
|
65
|
+
"license": "Apache-2.0"
|
|
66
|
+
}
|