viruagent-cli 0.9.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viruagent-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "AI-agent-optimized CLI for blog/SNS publishing and engagement (Tistory, Naver, Instagram, X/Twitter, Reddit)",
5
5
  "private": false,
6
6
  "type": "commonjs",
@@ -348,16 +348,20 @@ const createThreadsApiClient = ({ sessionPath }) => {
348
348
  timezone_offset: '32400',
349
349
  source_type: '4',
350
350
  caption: text || '',
351
- upload_id: uploadId,
352
351
  device_id: deviceId,
353
352
  _uid: userId,
354
- scene_capture_type: '',
353
+ client_sidecar_id: uploadId,
354
+ children_metadata: [{
355
+ upload_id: uploadId,
356
+ source_type: '4',
357
+ timezone_offset: '32400',
358
+ scene_capture_type: '',
359
+ }],
355
360
  };
356
361
 
357
362
  const body = `signed_body=SIGNATURE.${encodeURIComponent(JSON.stringify(payload))}`;
358
363
 
359
- // Single image uses configure_text_only_post (same as text, with upload_id)
360
- const res = await request(`${BASE_URL}/api/v1/media/configure_text_only_post/`, {
364
+ const res = await request(`${BASE_URL}/api/v1/media/configure_text_post_app_sidecar/`, {
361
365
  method: 'POST',
362
366
  body,
363
367
  allowError: true,
@@ -372,6 +376,7 @@ const createThreadsApiClient = ({ sessionPath }) => {
372
376
  id: data.media?.pk || data.media?.id,
373
377
  code: data.media?.code,
374
378
  caption: data.media?.caption?.text || text,
379
+ permalink: data.media?.permalink,
375
380
  status: data.status,
376
381
  };
377
382
  });