autokap 1.3.3 → 1.3.5
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/dist/cli.js +8 -1
- package/package.json +1 -1
- package/readme.md +3 -3
package/dist/cli.js
CHANGED
|
@@ -249,7 +249,8 @@ program
|
|
|
249
249
|
}
|
|
250
250
|
if (opts.cloud) {
|
|
251
251
|
process.env.AUTOKAP_CLOUD_RUNNER = '1';
|
|
252
|
-
|
|
252
|
+
const runnerVersion = process.env.AUTOKAP_CLI_VERSION ?? version;
|
|
253
|
+
logger.info(`[capture] Cloud runner mode — CLI ${runnerVersion}; Linux FPS cap lifted (clips target 30 fps)`);
|
|
253
254
|
}
|
|
254
255
|
if (opts.local) {
|
|
255
256
|
process.env[API_BASE_URL_ENV_VAR] = LOCAL_API_BASE_URL;
|
|
@@ -265,6 +266,12 @@ program
|
|
|
265
266
|
const checkpointUrl = cloudRunId
|
|
266
267
|
? buildApiUrl(config, `/api/cli/cloud-recapture/${cloudRunId}/checkpoint`)
|
|
267
268
|
: null;
|
|
269
|
+
if (opts.cloud && cloudRunId) {
|
|
270
|
+
logger.info(`[auto-recapture] Cloud progress callbacks enabled for run ${cloudRunId}`);
|
|
271
|
+
}
|
|
272
|
+
else if (opts.cloud) {
|
|
273
|
+
logger.warn('[auto-recapture] Cloud progress disabled: AUTOKAP_RUN_ID is not set');
|
|
274
|
+
}
|
|
268
275
|
let lastProgressCheckpointAt = 0;
|
|
269
276
|
const postCloudCheckpoint = async (body, options = {}) => {
|
|
270
277
|
if (!checkpointUrl)
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -23,7 +23,7 @@ from the project Recapture page, store it in your CI secret manager, then call
|
|
|
23
23
|
the webhook on deploy. CI never needs an AutoKap CLI key.
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
BODY='{
|
|
26
|
+
BODY='{}'
|
|
27
27
|
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$AUTOKAP_WEBHOOK_SECRET" -binary | xxd -p -c 256)
|
|
28
28
|
curl -X POST "https://autokap.app/api/webhooks/cloud-recapture/<project-id>" \
|
|
29
29
|
-H "Content-Type: application/json" \
|
|
@@ -31,8 +31,8 @@ curl -X POST "https://autokap.app/api/webhooks/cloud-recapture/<project-id>" \
|
|
|
31
31
|
-d "$BODY"
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Recapture Cloud always captures the project's `prod` environment. Use the
|
|
35
|
+
other project environments for local debugging and staging checks.
|
|
36
36
|
|
|
37
37
|
The local CLI remains available for advanced debugging:
|
|
38
38
|
|