@playdrop/playdrop-cli 0.12.21 → 0.12.22

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.12.8",
3
- "build": 14,
3
+ "build": 15,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
@@ -4892,9 +4892,10 @@ async function saveTaskEvidence(options) {
4892
4892
  }
4893
4893
  const evidenceDir = options.evidenceDir?.trim();
4894
4894
  const name = options.name?.trim();
4895
+ // --screenshot-id is optional: with no id the worker persists the capture the agent just took.
4895
4896
  const screenshotId = options.screenshotId?.trim();
4896
4897
  const groupId = options.group?.trim() || (taskContext.kind === 'GAME_REVIEW' ? 'review' : '');
4897
- if (!evidenceDir || !name || !screenshotId || !groupId) {
4898
+ if (!evidenceDir || !name || !groupId) {
4898
4899
  throw new Error('task_evidence_options_required');
4899
4900
  }
4900
4901
  const capture = await (0, instrument_evidence_1.saveInstrumentEvidenceCapture)({
@@ -4902,9 +4903,9 @@ async function saveTaskEvidence(options) {
4902
4903
  evidenceDir,
4903
4904
  groupId,
4904
4905
  name,
4905
- screenshotId,
4906
+ ...(screenshotId ? { screenshotId } : {}),
4906
4907
  });
4907
- (0, output_1.printSuccess)(`Saved ${capture.name} evidence from Chrome screenshot ${capture.screenshotId} on controlled tab ${capture.tabId} to ${capture.fileName}.`);
4908
+ (0, output_1.printSuccess)(`Saved ${capture.name} evidence from screenshot ${capture.screenshotId} to ${capture.fileName}.`);
4908
4909
  }
4909
4910
  const INSTRUMENT_ERROR_REASONS = new Set([
4910
4911
  'auth_state',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.12.8",
3
- "build": 14,
3
+ "build": 15,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playdrop/playdrop-cli",
3
- "version": "0.12.21",
3
+ "version": "0.12.22",
4
4
  "description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
5
5
  "homepage": "https://www.playdrop.ai",
6
6
  "repository": {