@11agents/cli 0.1.29 → 0.1.30
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.
|
@@ -983,7 +983,7 @@ def main() -> None:
|
|
|
983
983
|
topics=args.topics,
|
|
984
984
|
dry_run=args.dry_run,
|
|
985
985
|
confirm_no_disclosure_needed=args.confirm_no_disclosure_needed,
|
|
986
|
-
copy_link_after_publish=args.copy_link_after_publish,
|
|
986
|
+
copy_link_after_publish=args.copy_link_after_publish and not args.dry_run,
|
|
987
987
|
resume_post_form=args.resume_post_form,
|
|
988
988
|
)
|
|
989
989
|
|
|
@@ -1174,8 +1174,16 @@ def _add_publish_xiaohongshu_args(parser: argparse.ArgumentParser) -> None:
|
|
|
1174
1174
|
)
|
|
1175
1175
|
parser.add_argument(
|
|
1176
1176
|
"--copy-link-after-publish",
|
|
1177
|
+
dest="copy_link_after_publish",
|
|
1177
1178
|
action="store_true",
|
|
1178
|
-
|
|
1179
|
+
default=True,
|
|
1180
|
+
help="After a successful publish, open the share sheet, tap copy link, and try to read the copied URL. Enabled by default for live publish.",
|
|
1181
|
+
)
|
|
1182
|
+
parser.add_argument(
|
|
1183
|
+
"--no-copy-link-after-publish",
|
|
1184
|
+
dest="copy_link_after_publish",
|
|
1185
|
+
action="store_false",
|
|
1186
|
+
help="Disable automatic Xiaohongshu link recovery after publish.",
|
|
1179
1187
|
)
|
|
1180
1188
|
parser.add_argument("--parallel", action="store_true", help="Run target devices concurrently. Hard-capped at 5.")
|
|
1181
1189
|
parser.add_argument("--max-concurrency", type=int, default=MAX_PARALLEL_DEVICES, help="Max concurrent devices, 1-5.")
|
|
@@ -84,7 +84,7 @@ X uses one `body` field, not a title/body split.
|
|
|
84
84
|
11agents mobile copy-xiaohongshu-link --device D03 --record-id pub_123 --json --task-id TASK_123
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
Use `--confirm-no-disclosure-needed` only when the approved package and policy explicitly allow it.
|
|
87
|
+
Live Xiaohongshu publish recovers the note link by default after publish. Use `--no-copy-link-after-publish` only when automatic link recovery is explicitly not wanted. Use `--confirm-no-disclosure-needed` only when the approved package and policy explicitly allow it.
|
|
88
88
|
|
|
89
89
|
## Records And Data Recovery
|
|
90
90
|
|
|
@@ -23,8 +23,8 @@ If approval, account lifecycle, media/package path, text fields, or device readi
|
|
|
23
23
|
Image/video note:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
11agents mobile publish-xiaohongshu --device D03 --post-type image --image "/path/image.jpg" --title "title" --caption "body" --
|
|
27
|
-
11agents mobile publish-xiaohongshu --device D03 --post-type video --video "/path/video.mp4" --title "title" --caption "body" --
|
|
26
|
+
11agents mobile publish-xiaohongshu --device D03 --post-type image --image "/path/image.jpg" --title "title" --caption "body" --json --task-id TASK_123
|
|
27
|
+
11agents mobile publish-xiaohongshu --device D03 --post-type video --video "/path/video.mp4" --title "title" --caption "body" --json --task-id TASK_123
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Structured package:
|
|
@@ -33,7 +33,7 @@ Structured package:
|
|
|
33
33
|
11agents mobile publish-xiaohongshu --device D03 --publish-package "/path/publish_package.json" --json --task-id TASK_123
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Successful live publish is only confirmed after the CLI taps the final publish button, waits without tapping while Xiaohongshu shows upload/progress state, then opens the "我" page, opens the note whose title matches the expected title, and verifies the detail page against the expected title/body. If that evidence does not match, treat the result as `failed`; do not claim publish success from the publish button tap alone.
|
|
36
|
+
Successful live publish is only confirmed after the CLI taps the final publish button, waits without tapping while Xiaohongshu shows upload/progress state, closes and relaunches Xiaohongshu, then opens the "我" page, opens the note whose title matches the expected title or the first visible profile note as a verified fallback, and verifies the detail page against the expected title/body. The CLI recovers the note link by default for live publish; use `--no-copy-link-after-publish` only when link recovery is explicitly not wanted. If that evidence does not match, treat the result as `failed`; do not claim publish success from the publish button tap alone.
|
|
37
37
|
|
|
38
38
|
Link copy after publish or during the recovery skill:
|
|
39
39
|
|
package/package.json
CHANGED
package/src/commands/runtime.js
CHANGED
|
@@ -1083,13 +1083,12 @@ function buildCodexPrompt(task) {
|
|
|
1083
1083
|
'- image_size alternatives: "1K", "2K". For a specific output size, pass aspect and image_size; pass size only when the MCP tool/provider explicitly supports the requested exact dimensions.',
|
|
1084
1084
|
'- Use model="gpt" with model_id only when the task or current project notes confirm that GPT image generation is available for the hosted MCP key.',
|
|
1085
1085
|
'- MCP authentication (agent_planning, database_sync, knowledge_sync, image_generate, etc.):',
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
1088
|
-
'
|
|
1089
|
-
'
|
|
1090
|
-
'
|
|
1091
|
-
'
|
|
1092
|
-
' Get the token from the 11agents platform → open your project → Tokens menu.',
|
|
1086
|
+
' - The GTM_SWARM_TOKEN env var is already set to the correct project token for this workspace.',
|
|
1087
|
+
' - Configure the 11agents hosted MCP server using that env var:',
|
|
1088
|
+
' {"mcpServers":{"11agents-project-sync":{"url":"https://app.11agents.ai/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer $GTM_SWARM_TOKEN"}}}}',
|
|
1089
|
+
' - NEVER hardcode the token value — always reference $GTM_SWARM_TOKEN so the config stays correct across workspaces.',
|
|
1090
|
+
' - If GTM_SWARM_TOKEN is missing, get the token from ~/.11agents/credentials.yaml under tokens.<project_slug>.',
|
|
1091
|
+
' If that file is empty, go to the 11agents platform → your project → Tokens menu.',
|
|
1093
1092
|
'',
|
|
1094
1093
|
'Final task comment requirements:',
|
|
1095
1094
|
'> [!IMPORTANT]',
|