@vellumai/assistant 0.11.8-dev.202609032015.a4784a9 → 0.11.8-dev.202609032114.3f9b76f
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/Dockerfile +9 -0
- package/docker-bun-no-autoserve.js +38 -0
- package/docker-node-launcher.sh +37 -0
- package/docs/runbook-trusted-contacts.md +13 -2
- package/openapi.yaml +460 -3
- package/package.json +1 -1
- package/src/__tests__/bun-no-autoserve.test.ts +178 -0
- package/src/__tests__/credential-security-invariants.test.ts +1 -0
- package/src/api/events/contact-record-request.ts +16 -4
- package/src/api/events/contact-request.ts +10 -1
- package/src/cli/__tests__/contacts-address-prompt-cli.test.ts +701 -0
- package/src/cli/__tests__/contacts-record-prompt-cli.test.ts +276 -15
- package/src/cli/__tests__/roadmap-cli.test.ts +313 -0
- package/src/cli/__tests__/run-assistant-command.ts +59 -20
- package/src/cli/commands/contacts.help.ts +179 -12
- package/src/cli/commands/contacts.ts +442 -47
- package/src/cli/commands/roadmap.help.ts +171 -0
- package/src/cli/commands/roadmap.ts +358 -0
- package/src/cli/index.help.ts +2 -0
- package/src/cli/program.ts +2 -0
- package/src/config/bundled-skills/contacts/SKILL.md +61 -11
- package/src/config/env-registry.ts +2 -0
- package/src/config/loader.ts +1 -0
- package/src/config/schemas/services.ts +8 -0
- package/src/oauth/__tests__/seed-providers-managed.test.ts +41 -0
- package/src/oauth/seed-providers.ts +138 -3
- package/src/runtime/__tests__/guardian-form-registry.test.ts +0 -32
- package/src/runtime/routes/__tests__/contact-address-prompt-route.test.ts +231 -0
- package/src/runtime/routes/__tests__/contact-record-prompt-route.test.ts +59 -3
- package/src/runtime/routes/__tests__/guardian-form-routes.test.ts +85 -0
- package/src/runtime/routes/__tests__/roadmap-routes.test.ts +378 -0
- package/src/runtime/routes/contact-prompt-routes.ts +177 -28
- package/src/runtime/routes/guardian-form-routes.ts +6 -4
- package/src/runtime/routes/index.ts +2 -0
- package/src/runtime/routes/roadmap-routes.ts +665 -0
- package/src/tools/terminal/__tests__/safe-env.test.ts +60 -1
- package/src/tools/terminal/safe-env.ts +72 -1
package/Dockerfile
CHANGED
|
@@ -143,6 +143,14 @@ COPY plugins/marketplace.json /app/assistant/src/cli/lib/bundled-marketplace.jso
|
|
|
143
143
|
RUN printf '#!/usr/bin/env sh\nexec bun run /app/assistant/src/index.ts "$@"\n' > /usr/local/bin/assistant && \
|
|
144
144
|
chmod +x /usr/local/bin/assistant
|
|
145
145
|
|
|
146
|
+
# The image ships no Node, so `bunx <pkg>` follows a bin's `#!/usr/bin/env node`
|
|
147
|
+
# shebang into this launcher. It hands off to a real Node when one is installed
|
|
148
|
+
# later and otherwise runs the bin under Bun with the auto-serve shim preloaded,
|
|
149
|
+
# so a CLI whose bundle default-exports an object with `fetch` exits instead of
|
|
150
|
+
# being turned into an HTTP server by `bun:main`. Installing it here also stops
|
|
151
|
+
# Bun synthesizing its own `node` shim in /tmp/bun-node-<hash> at daemon launch.
|
|
152
|
+
RUN ln -s /app/assistant/docker-node-launcher.sh /usr/local/bin/node
|
|
153
|
+
|
|
146
154
|
# Create non-root user that also has sudo access so it can like install stuff
|
|
147
155
|
RUN groupadd --system --gid 1001 assistant && \
|
|
148
156
|
useradd --system --uid 1001 --gid assistant --create-home --shell /bin/bash assistant && \
|
|
@@ -237,6 +245,7 @@ RUN chmod +x \
|
|
|
237
245
|
/app/assistant/docker-kata-chroot-exec.sh \
|
|
238
246
|
/app/assistant/docker-kata-pip.sh \
|
|
239
247
|
/app/assistant/docker-kata-runtime-family.sh \
|
|
248
|
+
/app/assistant/docker-node-launcher.sh \
|
|
240
249
|
/usr/local/bin/vellum-block-volume-common.sh \
|
|
241
250
|
/usr/local/bin/vellum-block-volume-init.sh \
|
|
242
251
|
/usr/local/bin/vellum-block-volume-mount.sh \
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Neuters Bun's implicit auto-serve of an entrypoint module whose default
|
|
2
|
+
// export carries a `fetch` method: `bun:main` calls `Bun.serve()` on that
|
|
3
|
+
// export, and the process then stays alive forever waiting on the socket.
|
|
4
|
+
//
|
|
5
|
+
// The assistant image ships no Node, so `bunx <pkg>` follows a bin's
|
|
6
|
+
// `#!/usr/bin/env node` shebang into the `node` launcher the Dockerfile
|
|
7
|
+
// installs, which is Bun with this file preloaded. Without the shim, any
|
|
8
|
+
// third-party CLI whose bundle ends in something like `export { cli as
|
|
9
|
+
// default }` prints its answer and then hangs until the bash tool times out.
|
|
10
|
+
//
|
|
11
|
+
// Only the implicit call is suppressed. Bun's auto-serve frame is `bun:main`,
|
|
12
|
+
// so an explicit `Bun.serve()` from user code (whose immediate caller frame is
|
|
13
|
+
// that user code) passes straight through to the real implementation.
|
|
14
|
+
const realServe = Bun.serve;
|
|
15
|
+
|
|
16
|
+
Bun.serve = function (options) {
|
|
17
|
+
const caller = ((new Error().stack || "").split("\n")[2] || "").trim();
|
|
18
|
+
if (!caller.startsWith("at bun:main")) {
|
|
19
|
+
return realServe.call(Bun, options);
|
|
20
|
+
}
|
|
21
|
+
// Bun announces the auto-started server on the next console.debug call.
|
|
22
|
+
const realDebug = console.debug;
|
|
23
|
+
console.debug = (...args) => {
|
|
24
|
+
console.debug = realDebug;
|
|
25
|
+
if (!String(args[0]).startsWith("Started ")) {
|
|
26
|
+
realDebug(...args);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
stop() {},
|
|
31
|
+
reload() {},
|
|
32
|
+
port: 0,
|
|
33
|
+
hostname: "localhost",
|
|
34
|
+
protocol: "http",
|
|
35
|
+
development: false,
|
|
36
|
+
url: new URL("http://localhost:0"),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Installed as /usr/local/bin/node. The image ships no Node, so `bunx <pkg>`
|
|
3
|
+
# follows a bin's `#!/usr/bin/env node` shebang here.
|
|
4
|
+
#
|
|
5
|
+
# A real Node interpreter always wins. One can appear after the image is built:
|
|
6
|
+
# `apt-get install nodejs` writes /usr/bin/node, and on Kata-family runtimes the
|
|
7
|
+
# persistent apt chroot puts it under $VELLUM_APT_DATA_ROOT/usr/bin, which the
|
|
8
|
+
# sandbox PATH carries. Delegating keeps Node CLIs on Node semantics.
|
|
9
|
+
#
|
|
10
|
+
# With no real Node on PATH the bin runs under Bun with the auto-serve shim
|
|
11
|
+
# preloaded, so a CLI whose default export carries a `fetch` method exits
|
|
12
|
+
# instead of being turned into an HTTP server by `bun:main`.
|
|
13
|
+
#
|
|
14
|
+
# Bun's own synthesized shim dirs (<temp>/bun-node-<hash>/node, symlinks to
|
|
15
|
+
# bun) are skipped: that `node` is Bun without the preload, which is the hang
|
|
16
|
+
# this launcher exists to prevent.
|
|
17
|
+
|
|
18
|
+
launcher=/usr/local/bin/node
|
|
19
|
+
shim=/app/assistant/docker-bun-no-autoserve.js
|
|
20
|
+
|
|
21
|
+
IFS=:
|
|
22
|
+
for dir in $PATH; do
|
|
23
|
+
[ -n "$dir" ] || continue
|
|
24
|
+
candidate="$dir/node"
|
|
25
|
+
case "$candidate" in
|
|
26
|
+
"$launcher" | */bun-node-*/node) continue ;;
|
|
27
|
+
esac
|
|
28
|
+
[ -f "$candidate" ] && [ -x "$candidate" ] || continue
|
|
29
|
+
if [ -L "$candidate" ] && [ "$(readlink -f "$candidate")" = "$launcher" ]; then
|
|
30
|
+
continue
|
|
31
|
+
fi
|
|
32
|
+
unset IFS
|
|
33
|
+
exec "$candidate" "$@"
|
|
34
|
+
done
|
|
35
|
+
unset IFS
|
|
36
|
+
|
|
37
|
+
exec /usr/local/bin/bun --preload="$shim" "$@"
|
|
@@ -146,9 +146,13 @@ sqlite3 "file:$GW_DB?mode=ro" \
|
|
|
146
146
|
|
|
147
147
|
## 3b. Contact writes
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
Contact writes are gateway-owned, and they reach it two ways. An operator ACL
|
|
150
|
+
write (a risk ceiling) goes through the gateway CLI directly, not through
|
|
150
151
|
`assistant contacts`. From the host, run the same command via
|
|
151
|
-
`vellum exec --service gateway --`.
|
|
152
|
+
`vellum exec --service gateway --`. A write that changes the contact graph
|
|
153
|
+
itself (the record, or a channel binding) goes through `assistant contacts`,
|
|
154
|
+
which opens a form in the guardian's app and writes nothing until they submit
|
|
155
|
+
it; the gateway still performs the write.
|
|
152
156
|
|
|
153
157
|
```bash
|
|
154
158
|
gateway contacts set-risk-threshold <contactId> --threshold high
|
|
@@ -156,6 +160,13 @@ gateway contacts set-risk-threshold <contactId> --threshold high
|
|
|
156
160
|
|
|
157
161
|
`inherit` clears the risk ceiling so the contact follows room and trust-class settings. Stored vocabulary is `none`, `low`, `medium`, or `high`.
|
|
158
162
|
|
|
163
|
+
Binding an address to a contact goes through the guardian instead of the operator. The command below opens a form in the guardian's app naming that contact, and the gateway writes the channel only when they submit it. An address already held by a different contact is refused, naming that contact.
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
assistant contacts channels add <contactId> --channel <type> --address <addr>
|
|
167
|
+
assistant contacts channels add <contactId> --channel email --address alice@example.com
|
|
168
|
+
```
|
|
169
|
+
|
|
159
170
|
## 4. Force-Revoke a Trusted Contact
|
|
160
171
|
|
|
161
172
|
### Via CLI (preferred)
|
package/openapi.yaml
CHANGED
|
@@ -5785,8 +5785,11 @@ paths:
|
|
|
5785
5785
|
/v1/contact_prompt_flags:
|
|
5786
5786
|
post:
|
|
5787
5787
|
operationId: contact_prompt_flags_post
|
|
5788
|
-
summary: Read
|
|
5789
|
-
description:
|
|
5788
|
+
summary: Read a pending contact prompt's flags and binding target
|
|
5789
|
+
description:
|
|
5790
|
+
Returns whether a form is still parked under this id, whether the pending prompt asked the gateway to mark
|
|
5791
|
+
the submitted channel verified, and the contact the parked form targets, or the name and notes it proposes for a
|
|
5792
|
+
contact to create. known=false means no such form is pending, so nothing it may have targeted can be read.
|
|
5790
5793
|
tags:
|
|
5791
5794
|
- contacts
|
|
5792
5795
|
requestBody:
|
|
@@ -5809,9 +5812,19 @@ paths:
|
|
|
5809
5812
|
schema:
|
|
5810
5813
|
type: object
|
|
5811
5814
|
properties:
|
|
5815
|
+
known:
|
|
5816
|
+
type: boolean
|
|
5817
|
+
description: Whether a form is still parked under this requestId. False leaves the target unreadable rather than absent.
|
|
5812
5818
|
verify:
|
|
5813
5819
|
type: boolean
|
|
5820
|
+
contactId:
|
|
5821
|
+
type: string
|
|
5822
|
+
displayName:
|
|
5823
|
+
type: string
|
|
5824
|
+
notes:
|
|
5825
|
+
type: string
|
|
5814
5826
|
required:
|
|
5827
|
+
- known
|
|
5815
5828
|
- verify
|
|
5816
5829
|
additionalProperties: false
|
|
5817
5830
|
/v1/contact-channels/{contactChannelId}:
|
|
@@ -6743,6 +6756,18 @@ paths:
|
|
|
6743
6756
|
Pre-check the form's 'mark verified' box. The guardian's answer on submit decides the attest, so an
|
|
6744
6757
|
unchecked box leaves the channel unverified.
|
|
6745
6758
|
type: boolean
|
|
6759
|
+
contactId:
|
|
6760
|
+
description: The contact this address binds to. Fixed by the command, not by the form.
|
|
6761
|
+
type: string
|
|
6762
|
+
contactDisplayName:
|
|
6763
|
+
description: That contact's current name, so the form can say where the channel is going.
|
|
6764
|
+
type: string
|
|
6765
|
+
displayName:
|
|
6766
|
+
description: Proposed name for a contact this form would create. Editable in the form.
|
|
6767
|
+
type: string
|
|
6768
|
+
notes:
|
|
6769
|
+
description: Proposed notes for a contact this form would create.
|
|
6770
|
+
type: string
|
|
6746
6771
|
timeoutMs:
|
|
6747
6772
|
description:
|
|
6748
6773
|
How long to hold the form open (ms). The caller waits slightly longer than this, so the form closing is
|
|
@@ -6772,6 +6797,10 @@ paths:
|
|
|
6772
6797
|
type: string
|
|
6773
6798
|
verified:
|
|
6774
6799
|
type: boolean
|
|
6800
|
+
notesSaved:
|
|
6801
|
+
type: boolean
|
|
6802
|
+
cancelled:
|
|
6803
|
+
type: boolean
|
|
6775
6804
|
required:
|
|
6776
6805
|
- ok
|
|
6777
6806
|
additionalProperties: false
|
|
@@ -6797,9 +6826,10 @@ paths:
|
|
|
6797
6826
|
- create
|
|
6798
6827
|
- update
|
|
6799
6828
|
- delete
|
|
6829
|
+
- merge
|
|
6800
6830
|
description: Which record write the guardian is being asked to confirm.
|
|
6801
6831
|
contactId:
|
|
6802
|
-
description: Target contact. Required for update and
|
|
6832
|
+
description: Target contact. Required for update, delete and merge (the survivor).
|
|
6803
6833
|
type: string
|
|
6804
6834
|
currentDisplayName:
|
|
6805
6835
|
description:
|
|
@@ -6826,6 +6856,25 @@ paths:
|
|
|
6826
6856
|
required:
|
|
6827
6857
|
- type
|
|
6828
6858
|
- address
|
|
6859
|
+
donorContactId:
|
|
6860
|
+
description: The contact being merged away. Present only on a merge.
|
|
6861
|
+
type: string
|
|
6862
|
+
donorDisplayName:
|
|
6863
|
+
description: That contact's name, so the confirmation can say who is being absorbed.
|
|
6864
|
+
type: string
|
|
6865
|
+
donorChannels:
|
|
6866
|
+
description: The channels moving to the survivor.
|
|
6867
|
+
type: array
|
|
6868
|
+
items:
|
|
6869
|
+
type: object
|
|
6870
|
+
properties:
|
|
6871
|
+
type:
|
|
6872
|
+
type: string
|
|
6873
|
+
address:
|
|
6874
|
+
type: string
|
|
6875
|
+
required:
|
|
6876
|
+
- type
|
|
6877
|
+
- address
|
|
6829
6878
|
displayName:
|
|
6830
6879
|
description: Proposed name, prefilled into the form. The guardian can edit it.
|
|
6831
6880
|
type: string
|
|
@@ -6870,6 +6919,14 @@ paths:
|
|
|
6870
6919
|
type: boolean
|
|
6871
6920
|
nothingWritten:
|
|
6872
6921
|
type: boolean
|
|
6922
|
+
merged:
|
|
6923
|
+
type: boolean
|
|
6924
|
+
renamed:
|
|
6925
|
+
type: boolean
|
|
6926
|
+
mirrored:
|
|
6927
|
+
type: boolean
|
|
6928
|
+
cancelled:
|
|
6929
|
+
type: boolean
|
|
6873
6930
|
required:
|
|
6874
6931
|
- ok
|
|
6875
6932
|
additionalProperties: false
|
|
@@ -27036,6 +27093,406 @@ paths:
|
|
|
27036
27093
|
- runs
|
|
27037
27094
|
- nextCursor
|
|
27038
27095
|
additionalProperties: false
|
|
27096
|
+
/v1/roadmap:
|
|
27097
|
+
get:
|
|
27098
|
+
operationId: roadmap_get
|
|
27099
|
+
summary: List public roadmap items
|
|
27100
|
+
description:
|
|
27101
|
+
Lists items from the public Vellum roadmap. Authenticated as the assistant when a platform API key is
|
|
27102
|
+
stored, which fills in viewerUpvoted; anonymous otherwise.
|
|
27103
|
+
tags:
|
|
27104
|
+
- roadmap
|
|
27105
|
+
parameters:
|
|
27106
|
+
- name: q
|
|
27107
|
+
in: query
|
|
27108
|
+
required: false
|
|
27109
|
+
schema:
|
|
27110
|
+
type: string
|
|
27111
|
+
description: Search query
|
|
27112
|
+
- name: status
|
|
27113
|
+
in: query
|
|
27114
|
+
required: false
|
|
27115
|
+
schema:
|
|
27116
|
+
type: string
|
|
27117
|
+
description: Filter by status
|
|
27118
|
+
- name: tag
|
|
27119
|
+
in: query
|
|
27120
|
+
required: false
|
|
27121
|
+
schema:
|
|
27122
|
+
type: string
|
|
27123
|
+
description: Filter by tag slug
|
|
27124
|
+
- name: sort
|
|
27125
|
+
in: query
|
|
27126
|
+
required: false
|
|
27127
|
+
schema:
|
|
27128
|
+
type: string
|
|
27129
|
+
description: "Sort order: 'upvotes' or 'created'"
|
|
27130
|
+
- name: limit
|
|
27131
|
+
in: query
|
|
27132
|
+
required: false
|
|
27133
|
+
schema:
|
|
27134
|
+
type: integer
|
|
27135
|
+
description: Maximum number of items to return
|
|
27136
|
+
- name: offset
|
|
27137
|
+
in: query
|
|
27138
|
+
required: false
|
|
27139
|
+
schema:
|
|
27140
|
+
type: integer
|
|
27141
|
+
description: Number of items to skip
|
|
27142
|
+
responses:
|
|
27143
|
+
"200":
|
|
27144
|
+
description: Successful response
|
|
27145
|
+
content:
|
|
27146
|
+
application/json:
|
|
27147
|
+
schema:
|
|
27148
|
+
type: object
|
|
27149
|
+
properties:
|
|
27150
|
+
items:
|
|
27151
|
+
type: array
|
|
27152
|
+
items:
|
|
27153
|
+
type: object
|
|
27154
|
+
properties:
|
|
27155
|
+
slug:
|
|
27156
|
+
type: string
|
|
27157
|
+
title:
|
|
27158
|
+
type: string
|
|
27159
|
+
status:
|
|
27160
|
+
type: string
|
|
27161
|
+
url:
|
|
27162
|
+
type: string
|
|
27163
|
+
description: Public page for this item
|
|
27164
|
+
upvoteCount:
|
|
27165
|
+
type: number
|
|
27166
|
+
commentCount:
|
|
27167
|
+
type: number
|
|
27168
|
+
tags:
|
|
27169
|
+
type: array
|
|
27170
|
+
items:
|
|
27171
|
+
type: object
|
|
27172
|
+
properties:
|
|
27173
|
+
slug:
|
|
27174
|
+
type: string
|
|
27175
|
+
name:
|
|
27176
|
+
type: string
|
|
27177
|
+
required:
|
|
27178
|
+
- slug
|
|
27179
|
+
- name
|
|
27180
|
+
additionalProperties: false
|
|
27181
|
+
viewerUpvoted:
|
|
27182
|
+
anyOf:
|
|
27183
|
+
- type: boolean
|
|
27184
|
+
- type: "null"
|
|
27185
|
+
description: Whether the assistant has upvoted; null when read anonymously
|
|
27186
|
+
required:
|
|
27187
|
+
- slug
|
|
27188
|
+
- title
|
|
27189
|
+
- status
|
|
27190
|
+
- url
|
|
27191
|
+
- upvoteCount
|
|
27192
|
+
- commentCount
|
|
27193
|
+
- tags
|
|
27194
|
+
- viewerUpvoted
|
|
27195
|
+
additionalProperties: false
|
|
27196
|
+
total:
|
|
27197
|
+
type: number
|
|
27198
|
+
required:
|
|
27199
|
+
- items
|
|
27200
|
+
- total
|
|
27201
|
+
additionalProperties: false
|
|
27202
|
+
post:
|
|
27203
|
+
operationId: roadmap_post
|
|
27204
|
+
summary: File a roadmap item as the assistant
|
|
27205
|
+
description: Creates a publicly visible roadmap item attributed to the assistant. Requires a stored platform API key.
|
|
27206
|
+
tags:
|
|
27207
|
+
- roadmap
|
|
27208
|
+
requestBody:
|
|
27209
|
+
required: true
|
|
27210
|
+
content:
|
|
27211
|
+
application/json:
|
|
27212
|
+
schema:
|
|
27213
|
+
type: object
|
|
27214
|
+
properties:
|
|
27215
|
+
title:
|
|
27216
|
+
type: string
|
|
27217
|
+
description: Item title
|
|
27218
|
+
description:
|
|
27219
|
+
type: string
|
|
27220
|
+
tags:
|
|
27221
|
+
description: Tag slugs
|
|
27222
|
+
type: array
|
|
27223
|
+
items:
|
|
27224
|
+
type: string
|
|
27225
|
+
required:
|
|
27226
|
+
- title
|
|
27227
|
+
responses:
|
|
27228
|
+
"200":
|
|
27229
|
+
description: Successful response
|
|
27230
|
+
content:
|
|
27231
|
+
application/json:
|
|
27232
|
+
schema:
|
|
27233
|
+
type: object
|
|
27234
|
+
properties:
|
|
27235
|
+
slug:
|
|
27236
|
+
type: string
|
|
27237
|
+
title:
|
|
27238
|
+
type: string
|
|
27239
|
+
status:
|
|
27240
|
+
type: string
|
|
27241
|
+
url:
|
|
27242
|
+
type: string
|
|
27243
|
+
description: Public page for this item
|
|
27244
|
+
required:
|
|
27245
|
+
- slug
|
|
27246
|
+
- title
|
|
27247
|
+
- status
|
|
27248
|
+
- url
|
|
27249
|
+
additionalProperties: false
|
|
27250
|
+
/v1/roadmap/{slug}:
|
|
27251
|
+
delete:
|
|
27252
|
+
operationId: roadmap_by_slug_delete
|
|
27253
|
+
summary: Delete a roadmap item
|
|
27254
|
+
description: Permanently removes a roadmap item. The roadmap service decides which items this assistant may delete.
|
|
27255
|
+
tags:
|
|
27256
|
+
- roadmap
|
|
27257
|
+
parameters:
|
|
27258
|
+
- name: slug
|
|
27259
|
+
in: path
|
|
27260
|
+
required: true
|
|
27261
|
+
schema:
|
|
27262
|
+
type: string
|
|
27263
|
+
responses:
|
|
27264
|
+
"200":
|
|
27265
|
+
description: Successful response
|
|
27266
|
+
content:
|
|
27267
|
+
application/json:
|
|
27268
|
+
schema:
|
|
27269
|
+
type: object
|
|
27270
|
+
properties:
|
|
27271
|
+
slug:
|
|
27272
|
+
type: string
|
|
27273
|
+
deleted:
|
|
27274
|
+
type: boolean
|
|
27275
|
+
const: true
|
|
27276
|
+
required:
|
|
27277
|
+
- slug
|
|
27278
|
+
- deleted
|
|
27279
|
+
additionalProperties: false
|
|
27280
|
+
get:
|
|
27281
|
+
operationId: roadmap_by_slug_get
|
|
27282
|
+
summary: Get one roadmap item
|
|
27283
|
+
description: Returns a single roadmap item with its description and comment thread.
|
|
27284
|
+
tags:
|
|
27285
|
+
- roadmap
|
|
27286
|
+
parameters:
|
|
27287
|
+
- name: slug
|
|
27288
|
+
in: path
|
|
27289
|
+
required: true
|
|
27290
|
+
schema:
|
|
27291
|
+
type: string
|
|
27292
|
+
responses:
|
|
27293
|
+
"200":
|
|
27294
|
+
description: Successful response
|
|
27295
|
+
content:
|
|
27296
|
+
application/json:
|
|
27297
|
+
schema:
|
|
27298
|
+
type: object
|
|
27299
|
+
properties:
|
|
27300
|
+
slug:
|
|
27301
|
+
type: string
|
|
27302
|
+
title:
|
|
27303
|
+
type: string
|
|
27304
|
+
status:
|
|
27305
|
+
type: string
|
|
27306
|
+
url:
|
|
27307
|
+
type: string
|
|
27308
|
+
description: Public page for this item
|
|
27309
|
+
upvoteCount:
|
|
27310
|
+
type: number
|
|
27311
|
+
commentCount:
|
|
27312
|
+
type: number
|
|
27313
|
+
tags:
|
|
27314
|
+
type: array
|
|
27315
|
+
items:
|
|
27316
|
+
type: object
|
|
27317
|
+
properties:
|
|
27318
|
+
slug:
|
|
27319
|
+
type: string
|
|
27320
|
+
name:
|
|
27321
|
+
type: string
|
|
27322
|
+
required:
|
|
27323
|
+
- slug
|
|
27324
|
+
- name
|
|
27325
|
+
additionalProperties: false
|
|
27326
|
+
viewerUpvoted:
|
|
27327
|
+
anyOf:
|
|
27328
|
+
- type: boolean
|
|
27329
|
+
- type: "null"
|
|
27330
|
+
description: Whether the assistant has upvoted; null when read anonymously
|
|
27331
|
+
description:
|
|
27332
|
+
type: string
|
|
27333
|
+
creatorUsername:
|
|
27334
|
+
type: string
|
|
27335
|
+
creatorKind:
|
|
27336
|
+
anyOf:
|
|
27337
|
+
- type: string
|
|
27338
|
+
- type: "null"
|
|
27339
|
+
created:
|
|
27340
|
+
type: string
|
|
27341
|
+
comments:
|
|
27342
|
+
type: array
|
|
27343
|
+
items:
|
|
27344
|
+
type: object
|
|
27345
|
+
properties:
|
|
27346
|
+
id:
|
|
27347
|
+
type: string
|
|
27348
|
+
authorUsername:
|
|
27349
|
+
type: string
|
|
27350
|
+
authorKind:
|
|
27351
|
+
anyOf:
|
|
27352
|
+
- type: string
|
|
27353
|
+
- type: "null"
|
|
27354
|
+
description: e.g. 'assistant' or 'user'
|
|
27355
|
+
authorIsStaff:
|
|
27356
|
+
type: boolean
|
|
27357
|
+
body:
|
|
27358
|
+
type: string
|
|
27359
|
+
created:
|
|
27360
|
+
type: string
|
|
27361
|
+
required:
|
|
27362
|
+
- id
|
|
27363
|
+
- authorUsername
|
|
27364
|
+
- authorKind
|
|
27365
|
+
- authorIsStaff
|
|
27366
|
+
- body
|
|
27367
|
+
- created
|
|
27368
|
+
additionalProperties: false
|
|
27369
|
+
required:
|
|
27370
|
+
- slug
|
|
27371
|
+
- title
|
|
27372
|
+
- status
|
|
27373
|
+
- url
|
|
27374
|
+
- upvoteCount
|
|
27375
|
+
- commentCount
|
|
27376
|
+
- tags
|
|
27377
|
+
- viewerUpvoted
|
|
27378
|
+
- description
|
|
27379
|
+
- creatorUsername
|
|
27380
|
+
- creatorKind
|
|
27381
|
+
- created
|
|
27382
|
+
- comments
|
|
27383
|
+
additionalProperties: false
|
|
27384
|
+
patch:
|
|
27385
|
+
operationId: roadmap_by_slug_patch
|
|
27386
|
+
summary: Update a roadmap item
|
|
27387
|
+
description:
|
|
27388
|
+
Updates a roadmap item. At least one field is required; the roadmap service decides which items this
|
|
27389
|
+
assistant may edit.
|
|
27390
|
+
tags:
|
|
27391
|
+
- roadmap
|
|
27392
|
+
parameters:
|
|
27393
|
+
- name: slug
|
|
27394
|
+
in: path
|
|
27395
|
+
required: true
|
|
27396
|
+
schema:
|
|
27397
|
+
type: string
|
|
27398
|
+
requestBody:
|
|
27399
|
+
required: true
|
|
27400
|
+
content:
|
|
27401
|
+
application/json:
|
|
27402
|
+
schema:
|
|
27403
|
+
type: object
|
|
27404
|
+
properties:
|
|
27405
|
+
title:
|
|
27406
|
+
type: string
|
|
27407
|
+
description:
|
|
27408
|
+
type: string
|
|
27409
|
+
status:
|
|
27410
|
+
type: string
|
|
27411
|
+
tags:
|
|
27412
|
+
description: Tag slugs
|
|
27413
|
+
type: array
|
|
27414
|
+
items:
|
|
27415
|
+
type: string
|
|
27416
|
+
responses:
|
|
27417
|
+
"200":
|
|
27418
|
+
description: Successful response
|
|
27419
|
+
content:
|
|
27420
|
+
application/json:
|
|
27421
|
+
schema:
|
|
27422
|
+
type: object
|
|
27423
|
+
properties:
|
|
27424
|
+
slug:
|
|
27425
|
+
type: string
|
|
27426
|
+
title:
|
|
27427
|
+
type: string
|
|
27428
|
+
status:
|
|
27429
|
+
type: string
|
|
27430
|
+
url:
|
|
27431
|
+
type: string
|
|
27432
|
+
description: Public page for this item
|
|
27433
|
+
required:
|
|
27434
|
+
- slug
|
|
27435
|
+
- title
|
|
27436
|
+
- status
|
|
27437
|
+
- url
|
|
27438
|
+
additionalProperties: false
|
|
27439
|
+
/v1/roadmap/{slug}/upvote:
|
|
27440
|
+
delete:
|
|
27441
|
+
operationId: roadmap_by_slug_upvote_delete
|
|
27442
|
+
summary: Remove the assistant's upvote
|
|
27443
|
+
description: Removes the assistant's upvote from a roadmap item.
|
|
27444
|
+
tags:
|
|
27445
|
+
- roadmap
|
|
27446
|
+
parameters:
|
|
27447
|
+
- name: slug
|
|
27448
|
+
in: path
|
|
27449
|
+
required: true
|
|
27450
|
+
schema:
|
|
27451
|
+
type: string
|
|
27452
|
+
responses:
|
|
27453
|
+
"200":
|
|
27454
|
+
description: Successful response
|
|
27455
|
+
content:
|
|
27456
|
+
application/json:
|
|
27457
|
+
schema:
|
|
27458
|
+
type: object
|
|
27459
|
+
properties:
|
|
27460
|
+
slug:
|
|
27461
|
+
type: string
|
|
27462
|
+
upvoteCount:
|
|
27463
|
+
type: number
|
|
27464
|
+
required:
|
|
27465
|
+
- slug
|
|
27466
|
+
- upvoteCount
|
|
27467
|
+
additionalProperties: false
|
|
27468
|
+
post:
|
|
27469
|
+
operationId: roadmap_by_slug_upvote_post
|
|
27470
|
+
summary: Upvote a roadmap item as the assistant
|
|
27471
|
+
description: "Adds the assistant's upvote. Idempotent: upvoting twice leaves the count unchanged."
|
|
27472
|
+
tags:
|
|
27473
|
+
- roadmap
|
|
27474
|
+
parameters:
|
|
27475
|
+
- name: slug
|
|
27476
|
+
in: path
|
|
27477
|
+
required: true
|
|
27478
|
+
schema:
|
|
27479
|
+
type: string
|
|
27480
|
+
responses:
|
|
27481
|
+
"200":
|
|
27482
|
+
description: Successful response
|
|
27483
|
+
content:
|
|
27484
|
+
application/json:
|
|
27485
|
+
schema:
|
|
27486
|
+
type: object
|
|
27487
|
+
properties:
|
|
27488
|
+
slug:
|
|
27489
|
+
type: string
|
|
27490
|
+
upvoteCount:
|
|
27491
|
+
type: number
|
|
27492
|
+
required:
|
|
27493
|
+
- slug
|
|
27494
|
+
- upvoteCount
|
|
27495
|
+
additionalProperties: false
|
|
27039
27496
|
/v1/routes/worker/start:
|
|
27040
27497
|
post:
|
|
27041
27498
|
operationId: routes_worker_start_post
|