@@ -39,6 +39,38 @@ npx @waishnav/devspace config set publicBaseUrl https://devspace.example.com
3939| ` DEVSPACE_WORKTREE_ROOT ` | Directory for managed Git worktrees. Defaults to ` ~/.devspace/worktrees ` . |
4040| ` DEVSPACE_STATE_DIR ` | Directory for SQLite state. Defaults to ` ~/.local/share/devspace ` . |
4141
42+ ## Native Artifact Download
43+
44+ Native-file download is disabled by default. Enable it when ChatGPT needs to hand
45+ an attached or generated file into an already-open workspace:
46+
47+ ``` bash
48+ DEVSPACE_ARTIFACTS=1 npx @waishnav/devspace serve
49+ ```
50+
51+ This feature currently supports Linux, macOS, FreeBSD, OpenBSD, and NetBSD. It
52+ is not registered on Windows because the secure publication path depends on
53+ descriptor-anchored directory operations.
54+
55+ | Variable | Default | Purpose |
56+ | --- | --- | --- |
57+ | ` DEVSPACE_ARTIFACTS ` | ` 0 ` | Expose ` download_artifact ` for trusted native files. |
58+ | ` DEVSPACE_ARTIFACT_MAX_FILE_BYTES ` | ` 104857600 ` | Maximum streamed size of one file (100 MiB). |
59+
60+ The same settings may be persisted in ` ~/.devspace/config.json ` as
61+ ` artifactsEnabled ` and ` artifactMaxFileBytes ` .
62+
63+ ` download_artifact ` accepts the native file object supplied by the MCP connector,
64+ a ` workspaceId ` returned by ` open_workspace ` , and a relative workspace ` path ` .
65+ DevSpace safely creates missing parent directories, refuses to overwrite an
66+ existing destination, and returns only the normalized workspace-relative path.
67+ It does not accept conflict modes, expected hashes, arbitrary URL strings, local
68+ paths, embedded credentials, or extra object fields.
69+
70+ There is no artifact root, total quota, TTL, pinning, persistent database record,
71+ or background artifact cleanup service. See [ Native File Download] ( artifact-exchange.md )
72+ for the supported connector shape and security boundaries.
73+
4274## OAuth
4375
4476DevSpace uses a single-user OAuth approval flow.
@@ -158,6 +190,7 @@ DEVSPACE_OAUTH_OWNER_TOKEN="$(openssl rand -base64 32)" \
158190DEVSPACE_ALLOWED_ROOTS=" $HOME /personal,$HOME /work" \
159191DEVSPACE_PUBLIC_BASE_URL=" https://devspace.example.com" \
160192DEVSPACE_WORKTREE_ROOT=" $HOME /.devspace/worktrees" \
193+ DEVSPACE_ARTIFACTS=" 1" \
161194DEVSPACE_TOOL_MODE=" minimal" \
162195DEVSPACE_WIDGETS=" full" \
163196npx @waishnav/devspace serve
0 commit comments