@genspark/cli 1.12.0 → 1.13.1
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/README.md +132 -5
- package/dist/client.d.ts +77 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +379 -3
- package/dist/client.js.map +1 -1
- package/dist/commands/developer-preflight.d.ts +17 -0
- package/dist/commands/developer-preflight.d.ts.map +1 -0
- package/dist/commands/developer-preflight.js +131 -0
- package/dist/commands/developer-preflight.js.map +1 -0
- package/dist/commands/developer-project.d.ts +5 -0
- package/dist/commands/developer-project.d.ts.map +1 -0
- package/dist/commands/developer-project.js +140 -0
- package/dist/commands/developer-project.js.map +1 -0
- package/dist/commands/genspark-code-skills.d.ts +23 -0
- package/dist/commands/genspark-code-skills.d.ts.map +1 -0
- package/dist/commands/genspark-code-skills.js +49 -0
- package/dist/commands/genspark-code-skills.js.map +1 -0
- package/dist/commands/genteam-download.d.ts +34 -0
- package/dist/commands/genteam-download.d.ts.map +1 -0
- package/dist/commands/genteam-download.js +95 -0
- package/dist/commands/genteam-download.js.map +1 -0
- package/dist/commands/hosted-local.d.ts +10 -0
- package/dist/commands/hosted-local.d.ts.map +1 -0
- package/dist/commands/hosted-local.js +116 -0
- package/dist/commands/hosted-local.js.map +1 -0
- package/dist/commands/local-command-routing.d.ts +8 -0
- package/dist/commands/local-command-routing.d.ts.map +1 -0
- package/dist/commands/local-command-routing.js +33 -0
- package/dist/commands/local-command-routing.js.map +1 -0
- package/dist/commands/local-preview.d.ts +5 -0
- package/dist/commands/local-preview.d.ts.map +1 -0
- package/dist/commands/local-preview.js +35 -0
- package/dist/commands/local-preview.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/developer-contract.d.ts +24 -0
- package/dist/developer-contract.d.ts.map +1 -0
- package/dist/developer-contract.js +64 -0
- package/dist/developer-contract.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +358 -19
- package/dist/index.js.map +1 -1
- package/dist/local-source.d.ts +22 -0
- package/dist/local-source.d.ts.map +1 -0
- package/dist/local-source.js +204 -0
- package/dist/local-source.js.map +1 -0
- package/dist/project-binding.d.ts +31 -0
- package/dist/project-binding.d.ts.map +1 -0
- package/dist/project-binding.js +141 -0
- package/dist/project-binding.js.map +1 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/skills.md +1 -1
- package/package.json +4 -2
- package/skills/gsk-aidrive/SKILL.md +94 -24
- package/skills/gsk-audio-generation/SKILL.md +1 -1
- package/skills/gsk-claw-share-link/SKILL.md +1 -1
- package/skills/gsk-genteam/SKILL.md +1 -1
- package/skills/gsk-google-calendar/SKILL.md +2 -1
- package/skills/gsk-meeting/SKILL.md +1 -0
- package/skills/gsk-outlook-calendar/SKILL.md +2 -1
- package/skills/gsk-sb-brain/SKILL.md +13 -82
- package/skills/gsk-second-brain/SKILL.md +179 -0
- package/skills/gsk-shared/SKILL.md +18 -0
- package/skills/gsk-slack/SKILL.md +8 -7
package/README.md
CHANGED
|
@@ -77,6 +77,115 @@ gsk img "A beautiful sunset over mountains" -o ./sunset.png
|
|
|
77
77
|
gsk crawl "https://example.com/article"
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
## Local developer projects, previews, and source deployments
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
gsk project create --kind web --name "Example" --yes
|
|
84
|
+
gsk project bind <project-id>
|
|
85
|
+
gsk project status
|
|
86
|
+
gsk preflight --kind web --operation preview
|
|
87
|
+
gsk preflight --kind web --operation hosted-deploy
|
|
88
|
+
gsk service-url --local --port 3000
|
|
89
|
+
gsk get_service_url --local --port 3000
|
|
90
|
+
gsk hosted deploy-local --source .
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Create explicitly asks for confirmation; `--yes` confirms creation in automation.
|
|
94
|
+
It never retries creation after a network error. Check your project list and
|
|
95
|
+
bind the returned/existing project before trying to create another one.
|
|
96
|
+
Binding and status use the server's owner-authorized developer endpoint.
|
|
97
|
+
|
|
98
|
+
The nearest ancestor `.gsk/project.json` binds a checkout:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{"version":1,"project_id":"example-id","kind":"web","base_url":"https://www.genspark.ai"}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Only these four fields are allowed. No command above writes credentials or
|
|
105
|
+
changes global project configuration. Project selection is **`--project-id` >
|
|
106
|
+
`GSK_PROJECT_ID` > nearest binding > legacy global config**. The active server
|
|
107
|
+
still comes from `--base-url`, `GSK_BASE_URL`, or global config; a binding for a
|
|
108
|
+
different server blocks cloud operations even with an explicit project ID.
|
|
109
|
+
Invalid bindings fail visibly. A different existing/inherited binding is never
|
|
110
|
+
silently overwritten: use another checkout or explicitly remove the old binding.
|
|
111
|
+
Concurrent writers use atomic create-if-absent publication.
|
|
112
|
+
|
|
113
|
+
Preview requires explicit `--local`, runs before schema fetching or update checks,
|
|
114
|
+
and needs no login. Ports must be decimal integers in 1–65535. A bounded TCP probe
|
|
115
|
+
of `127.0.0.1` returns `{status, local_only:true, url, reachable, probe, message}`;
|
|
116
|
+
TCP reachability does not imply HTTP/application health. There is no public tunnel
|
|
117
|
+
and no fallback from a failed remote URL request to localhost.
|
|
118
|
+
|
|
119
|
+
Preflight operations are `preview`, `hosted-deploy`, `github`, `cloudflare`,
|
|
120
|
+
`shopify`, and `android`. Checks are advisory and operation-specific: web preview
|
|
121
|
+
does not require Flutter, and platform hosting does not require local Wrangler
|
|
122
|
+
or Shopify authorization. Missing login, malformed binding, and unavailable
|
|
123
|
+
platform checks preserve local check results with actionable status. Local
|
|
124
|
+
provider login (`gh auth login`, `wrangler login`, `shopify auth login`) is
|
|
125
|
+
separate from platform connectors and `sandbox_auth_*` remote sandbox setup.
|
|
126
|
+
|
|
127
|
+
`hosted deploy-local` streams a private temporary ZIP snapshot, uploads it, then
|
|
128
|
+
submits its validated receipt to the existing `hosted_deploy` approval flow.
|
|
129
|
+
It does **not** approve the action, including with `--yes`. Review the returned
|
|
130
|
+
pending action/source digest in the project and approve explicitly. The CLI
|
|
131
|
+
does not run build scripts. Source must include the Wrangler configuration and
|
|
132
|
+
entry points required by the backend's hosted build pipeline.
|
|
133
|
+
|
|
134
|
+
Packaging rejects symlinks, non-regular files, traversal, unsafe paths, and
|
|
135
|
+
case/Unicode-normalization collisions. Exclusions apply at every depth:
|
|
136
|
+
`.env*`, `.git`, `node_modules`, `.wrangler`, `.gsk`, `.genspark-code`, local
|
|
137
|
+
credential/config directories and files (including `.ssh`, `.aws`, `.azure`,
|
|
138
|
+
`.config`, `.npmrc`, `.netrc`, `credentials.json`, private keys), plus the active
|
|
139
|
+
custom CLI config file if it is inside the source tree. Limits are
|
|
140
|
+
20,000 visited non-excluded entries, 250 MiB ZIP, and 500 MiB expanded source.
|
|
141
|
+
Source changes detected while packaging abort the upload.
|
|
142
|
+
|
|
143
|
+
The receipt is saved before submission to `.gsk/pending-source-<uuid>.json`.
|
|
144
|
+
This file is retained after submission as a recovery record, not proof of action
|
|
145
|
+
status. On a dropped response, inspect hosted actions in the project before
|
|
146
|
+
resubmitting. Upload and submission are never automatically retried. No remote
|
|
147
|
+
source is substituted when an upload/receipt/server capability fails.
|
|
148
|
+
|
|
149
|
+
### Developer API contract
|
|
150
|
+
|
|
151
|
+
All paths below are relative to `<base_url>/api/tool_cli`; calls use existing
|
|
152
|
+
`ApiClient` token auth (`X-Api-Key`), `X-GSK-CLI-Caps`, and selected `X-Project-ID`.
|
|
153
|
+
|
|
154
|
+
| Request | Response |
|
|
155
|
+
| --- | --- |
|
|
156
|
+
| `POST /developer/projects` JSON `{kind,name}` | `{project:{project_id,kind,name,url}}` |
|
|
157
|
+
| `GET /developer/projects/{id}` (owner-authorized) | `{project:{project_id,kind,name,url}}` |
|
|
158
|
+
| `GET /developer/preflight?kind=...&operation=...&project_id=...` (project ID omitted when unbound) | `{checks:[{name,status,code,message,action_url?}],project?:{project_id,kind,name,url}}` |
|
|
159
|
+
| `POST /hosted/source`, raw `application/zip`, required `X-Project-ID` | HTTP 201 `{local_source:receipt}` |
|
|
160
|
+
| Existing `executeTool('hosted_deploy', {local_source:receipt})` | Existing tool envelope/pending approval |
|
|
161
|
+
|
|
162
|
+
Check `status` is `ready`, `action_required`, `unknown`, or `not_applicable`.
|
|
163
|
+
Project/check response objects permit additional server fields but only the
|
|
164
|
+
documented project/check fields are consumed. Source receipts are passed unchanged:
|
|
165
|
+
`{version:1,owner_cogen_id,project_id,object_key,sha256,size_bytes,expanded_bytes,
|
|
166
|
+
file_count,created_at,expires_at}` (timestamps: integer Unix seconds). The CLI
|
|
167
|
+
checks project ID, digest, sizes/count, required receipt fields, and expiry before
|
|
168
|
+
submitting. Backend ownership/digest/expiry validation remains authoritative.
|
|
169
|
+
|
|
170
|
+
The CLI advertises `cli-local-source-v1`; its tools cache is isolated from older
|
|
171
|
+
capability views. The static `hosted` parent is seeded so existing grouped hosted
|
|
172
|
+
metadata and legacy flat commands coexist. No new hosted group metadata is needed
|
|
173
|
+
on old servers. Any future metadata that shadows a static command must be gated
|
|
174
|
+
to supporting capabilities, not sent to old binaries.
|
|
175
|
+
|
|
176
|
+
Backend source writes default off. HTTP 503 explains that supported writers must
|
|
177
|
+
be enabled only after all readers/executors converge; 404/405 reports an unsupported
|
|
178
|
+
server. Release requires verified backend endpoint support and reader rollout.
|
|
179
|
+
There is no client-side bypass or remote-source fallback.
|
|
180
|
+
|
|
181
|
+
### Local verification
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
npm test
|
|
185
|
+
# Optional published-client shared-HOME matrix against mocked HTTP transport:
|
|
186
|
+
GSK_COMPAT_CLI=/path/to/published/@genspark/cli/dist/index.js npm test
|
|
187
|
+
```
|
|
188
|
+
|
|
80
189
|
## Authentication
|
|
81
190
|
|
|
82
191
|
Log in with your Genspark account:
|
|
@@ -312,6 +421,24 @@ gsk init-skills -o ./docs/gsk-skills
|
|
|
312
421
|
|
|
313
422
|
`--agent pi` writes (`pi` auto-loads it) `AGENTS.md` referencing `CONTEXT.md`; `--agent claude` writes/appends `CLAUDE.md` and `--agent gemini` writes `gemini-extension.json`.
|
|
314
423
|
|
|
424
|
+
### init-genspark-code-skills
|
|
425
|
+
|
|
426
|
+
Fetch the genspark-code (code sandbox) skill documents into the current project for AI agent discovery. Covers the full developer-skill set a sandbox can install — web / Cloudflare / Flutter / Shopify / HTML5-game development, hosted deployment, and GitHub workflows. The bundle is served by the backend (`/api/tool_cli/genspark-code-skills`), so newly edited skill docs reach released CLIs without a package update.
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
# Copy skills to .genspark-code/skills/
|
|
430
|
+
gsk init-genspark-code-skills
|
|
431
|
+
|
|
432
|
+
# Custom output directory
|
|
433
|
+
gsk init-genspark-code-skills -o ./docs/genspark-code-skills
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
| Option | Default | Description |
|
|
437
|
+
|--------|---------|-------------|
|
|
438
|
+
| `-o, --out <dir>` | `.genspark-code/skills` (cwd) | Output directory for skills |
|
|
439
|
+
|
|
440
|
+
There is no `--agent` flag: an existing `CONTEXT.md` from `gsk init-skills` is left untouched. A built-in whose requirement the caller doesn't satisfy — the org-only `gsk-hosted-org-member` for a non-member — is omitted, so an agent never sees docs for a capability the server would refuse.
|
|
441
|
+
|
|
315
442
|
### Search & Crawl
|
|
316
443
|
|
|
317
444
|
### web_search (alias: `search`)
|
|
@@ -439,7 +566,7 @@ gsk audio "Door creaking slowly open" -m elevenlabs/sound-effects -p '{"duration
|
|
|
439
566
|
|
|
440
567
|
| Option | Default | Description |
|
|
441
568
|
|--------|---------|-------------|
|
|
442
|
-
| `-m, --model <name>` | `fal-ai/elevenlabs/tts/multilingual-v2` | Model id, e.g., `google/gemini-3.1-flash-tts-preview`, `elevenlabs/
|
|
569
|
+
| `-m, --model <name>` | `fal-ai/elevenlabs/tts/multilingual-v2` | Model id, e.g., `google/gemini-3.1-flash-tts-preview`, `elevenlabs/v4-tts`, `fal-ai/minimax/speech-2.8-hd` |
|
|
443
570
|
| `-p, --params <json>` | — | Model-specific parameters following the model's `params_schema` (speakers, speed/pitch/volume, duration, lyrics, ...) |
|
|
444
571
|
| `-d, --duration <sec>` | — | Duration in seconds for sound-effect/music models (prefer `params`) |
|
|
445
572
|
| `-l, --lyrics <text>` | — | Lyrics for song models (prefer `params`) |
|
|
@@ -850,7 +977,7 @@ gsk outlook_contacts search --query "John"
|
|
|
850
977
|
|
|
851
978
|
Make an AI phone call on your behalf. The AI validates prerequisites, resolves contact info, and initiates the call. Dialing is the default subcommand; companion subcommands (`status`, `hangup`, `log`, `detail`) inspect and control your calls, and `gsk telephony sms send` sends SMS.
|
|
852
979
|
|
|
853
|
-
The pre-migration
|
|
980
|
+
The pre-migration form `gsk phone-call …` still works as a hidden deprecated alias; the flat `gsk sms` was retired — use `gsk telephony sms send`.
|
|
854
981
|
|
|
855
982
|
```bash
|
|
856
983
|
# Call a business by phone number
|
|
@@ -1224,7 +1351,8 @@ gsk mesh forward -L 8080:localhost:80 workstation # browse its local web app a
|
|
|
1224
1351
|
| `google/gemini-3.1-flash-tts-preview` | Gemini 3.1 Flash TTS. Expressive narration with inline audio tags (`[whispers]`, `[excited]`) and up to 2 speakers via `Speaker1: text, Speaker2: text` prefixes |
|
|
1225
1352
|
| `bytedance/seed-audio-1.0` | ByteDance Seed-Audio 1.0. Top speech quality plus narration and radio-drama scenes from a description; clones a voice from up to 3 reference clips |
|
|
1226
1353
|
| `alibaba/qwen-audio-3-tts` | Qwen Audio 3.0 TTS (Flash). Fast, low-cost multilingual TTS with 45 preset voices |
|
|
1227
|
-
| `elevenlabs/
|
|
1354
|
+
| `elevenlabs/v4-tts` | Advanced multilingual TTS (Eleven v4, 85 languages) with multi-speaker dialogue support and emotional tags like `[excited]`, `[whispers]`, `[laughs]`. `params.tier`: `standard` (default) or `turbo` (faster, half price) |
|
|
1355
|
+
| `elevenlabs/v3-tts` | Legacy id — same Eleven v4 engine as `elevenlabs/v4-tts`; prefer the v4 id |
|
|
1228
1356
|
| `fal-ai/elevenlabs/tts/multilingual-v2` | High-quality multilingual TTS. Preferred for English |
|
|
1229
1357
|
| `fal-ai/minimax/speech-2.8-hd` | High-quality multilingual TTS. Preferred for Chinese, Cantonese, Japanese, Korean. One speaker per generation |
|
|
1230
1358
|
|
|
@@ -1240,8 +1368,7 @@ gsk mesh forward -L 8080:localhost:80 workstation # browse its local web app a
|
|
|
1240
1368
|
|-------|-------------|
|
|
1241
1369
|
| `elevenlabs/music` | ElevenLabs music generation with vocals/singing. Lyrics auto-generated (no custom lyrics). Duration: 10s-5min |
|
|
1242
1370
|
| `CassetteAI/music-generator` | Background music generation. Duration: 10-180 seconds |
|
|
1243
|
-
| `mureka
|
|
1244
|
-
| `mureka/instrumental-generator` | Instrumental music generation without vocals. Supports style prompts and reference tracks. Max: 180s |
|
|
1371
|
+
| `mureka` | Mureka music, `params.mode` picks the product: `song` (default, vocals over `lyrics`, style prompt or reference track), `instrumental` (vocal-free from the prompt), `remix` (re-sing an existing `source_audio_file` mp3/m4a 10-350s with new `lyrics`) |
|
|
1245
1372
|
| `google/lyria-music` | Google Lyria 3 text-to-music (`sub_model`: `lyria-3-clip` 30s clip or `lyria-3-pro` full song). 44.1kHz stereo, vocals with lyrics in multiple languages |
|
|
1246
1373
|
| `minimax/music-3.0` | MiniMax Music 3.0 song generation with lyrics (`is_instrumental` for tracks without vocals). Supports (Verse), (Chorus), (Bridge) markers |
|
|
1247
1374
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,20 +1,74 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* API Client for Genspark Tool CLI
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { DeveloperProject, DeveloperPreflight } from './developer-contract.js';
|
|
5
|
+
import type { GlobalOptions, ApiResponse, ToolListResponse, UserInfo, FileUploadUrlRequest, FileUploadUrlResponse, FileDownloadRequest, FileDownloadResponse, GensparkCodeSkillsResponse } from './types.js';
|
|
5
6
|
/**
|
|
6
7
|
* Make an unauthenticated request to the backend.
|
|
7
8
|
* Used for device-flow auth endpoints that don't require an API key.
|
|
8
9
|
*/
|
|
9
10
|
export declare function unauthenticatedRequest<T>(baseUrl: string, endpoint: string, method?: 'GET' | 'POST', body?: unknown): Promise<T>;
|
|
11
|
+
/** Hard ceiling on one automatic rate-limit wait (ms). */
|
|
12
|
+
export declare const MAX_RATE_LIMIT_WAIT_MS = 65000;
|
|
13
|
+
export interface RateLimitDenial {
|
|
14
|
+
/** Seconds the server told us to wait. */
|
|
15
|
+
retryAfter: number;
|
|
16
|
+
message: string;
|
|
17
|
+
instructionForAgent?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Read a 429 denial out of a response, or return null if it isn't one.
|
|
21
|
+
*
|
|
22
|
+
* The server sends both a standard `Retry-After` header and a `retry_after`
|
|
23
|
+
* field in the NDJSON envelope; the header wins because a proxy may answer
|
|
24
|
+
* without our body at all, and the body is the fallback for the reverse.
|
|
25
|
+
* Both are ignored unless they parse to a positive finite number — a `0`
|
|
26
|
+
* or a garbled value would otherwise license the immediate retry this
|
|
27
|
+
* exists to stop (#61436).
|
|
28
|
+
*/
|
|
29
|
+
export declare function parseRateLimitDenial(status: number, headers: Headers, bodyText: string): RateLimitDenial | null;
|
|
30
|
+
/** Milliseconds to sleep for a denial, capped and jittered. */
|
|
31
|
+
export declare function rateLimitWaitMs(denial: RateLimitDenial): number;
|
|
10
32
|
/**
|
|
11
33
|
* Error carrying the HTTP status behind a failed API call, so callers can
|
|
12
34
|
* branch on auth failures (401/403) without parsing message strings.
|
|
13
35
|
*/
|
|
14
36
|
export declare class ApiHttpError extends Error {
|
|
15
37
|
readonly httpStatus?: number;
|
|
16
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Parsed `{detail: {code, message}}` from a structured developer error, when
|
|
40
|
+
* the body carried one (e.g. `project_kind_mismatch`). Lets callers branch on
|
|
41
|
+
* the server's own code instead of scraping the message string.
|
|
42
|
+
*/
|
|
43
|
+
readonly serverDetail?: {
|
|
44
|
+
code?: string;
|
|
45
|
+
message?: string;
|
|
46
|
+
};
|
|
47
|
+
constructor(message: string, httpStatus?: number, serverDetail?: {
|
|
48
|
+
code?: string;
|
|
49
|
+
message?: string;
|
|
50
|
+
});
|
|
17
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* One line for a non-2xx binary-route answer. The body is the router's
|
|
54
|
+
* NDJSON error envelope (`{"status":"error","message":…}`), FastAPI's
|
|
55
|
+
* `{"detail": "…"}` / `{"detail": {"code", "message"}}`, or plain text —
|
|
56
|
+
* the message is lifted out so the agent reads WHY, not a JSON blob.
|
|
57
|
+
*/
|
|
58
|
+
export declare function describeHttpFailure(status: number, body: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Parse a developer API error body. The backend returns structured
|
|
61
|
+
* `{"detail": {"code", "message"}}` for application errors (missing project,
|
|
62
|
+
* kind mismatch, ...); a route that does not exist on this server answers with
|
|
63
|
+
* a plain `{"detail": "Not Found"}` instead. `structured` is what tells the two
|
|
64
|
+
* apart, so a real 404 like `project_not_found` is never reported as an
|
|
65
|
+
* unsupported server.
|
|
66
|
+
*/
|
|
67
|
+
export declare function parseDeveloperErrorDetail(body: string): {
|
|
68
|
+
structured: boolean;
|
|
69
|
+
code?: string;
|
|
70
|
+
message?: string;
|
|
71
|
+
};
|
|
18
72
|
/** True when the error is an HTTP-level auth rejection (401/403). */
|
|
19
73
|
export declare function isAuthError(err: unknown): boolean;
|
|
20
74
|
export declare class ApiClient {
|
|
@@ -40,6 +94,16 @@ export declare class ApiClient {
|
|
|
40
94
|
* tool executions, which all go through the streaming path).
|
|
41
95
|
*/
|
|
42
96
|
private baseHeaders;
|
|
97
|
+
/** Make one bounded request; creation and source writes must never be retried. */
|
|
98
|
+
private developerRequest;
|
|
99
|
+
/** Explicitly create a project once, using the existing token identity. */
|
|
100
|
+
createDeveloperProject(kind: string, name: string): Promise<DeveloperProject>;
|
|
101
|
+
/** Fetch a project through the server's owner-only developer route. */
|
|
102
|
+
getDeveloperProject(id: string): Promise<DeveloperProject>;
|
|
103
|
+
/** Read advisory account checks without creating a project or sandbox. */
|
|
104
|
+
developerPreflight(kind: string, operation: string): Promise<DeveloperPreflight>;
|
|
105
|
+
/** Stream a ZIP to the selected project and return its unmodified source receipt. */
|
|
106
|
+
uploadHostedSource(filename: string, size: number): Promise<Record<string, unknown>>;
|
|
43
107
|
private request;
|
|
44
108
|
/**
|
|
45
109
|
* Simple JSON request (non-streaming) for endpoints that return plain JSON.
|
|
@@ -94,6 +158,13 @@ export declare class ApiClient {
|
|
|
94
158
|
* Get a downloadable URL for a file wrapper URL
|
|
95
159
|
*/
|
|
96
160
|
getDownloadUrl(params: FileDownloadRequest): Promise<ApiResponse<FileDownloadResponse>>;
|
|
161
|
+
/**
|
|
162
|
+
* Authenticated GET of a binary tool-CLI route. Returns the raw Response so
|
|
163
|
+
* the caller can stream the body to disk; no client-side timeout because
|
|
164
|
+
* the body may be a GiB-scale attachment. A non-2xx answer is raised as an
|
|
165
|
+
* ApiHttpError carrying the server's own message.
|
|
166
|
+
*/
|
|
167
|
+
fetchBinary(endpoint: string): Promise<Response>;
|
|
97
168
|
/**
|
|
98
169
|
* Get current user info (email, name, plan)
|
|
99
170
|
*/
|
|
@@ -102,6 +173,10 @@ export declare class ApiClient {
|
|
|
102
173
|
* Get OpenCode configuration JSON
|
|
103
174
|
*/
|
|
104
175
|
getOpencodeConfig(model?: string): Promise<Record<string, unknown>>;
|
|
176
|
+
/**
|
|
177
|
+
* Get the genspark-code (code sandbox) skill bundle
|
|
178
|
+
*/
|
|
179
|
+
getGensparkCodeSkills(): Promise<GensparkCodeSkillsResponse>;
|
|
105
180
|
/**
|
|
106
181
|
* Get Pi (pi.dev) config bundle: `{ models, settings, genspark }`.
|
|
107
182
|
*/
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,YAAY,CAAA;AAEnB;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,KAAK,GAAG,MAAc,EAC9B,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC,CAAC,CAAC,CAoBZ;AAKD,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,QAAS,CAAA;AAmC5C,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,GACf,eAAe,GAAG,IAAI,CAuCxB;AAED,+DAA+D;AAC/D,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAM/D;AAMD;;;GAGG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE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