@petercjl/ecom-cli 0.3.1 → 0.3.2
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 +24 -1
- package/capabilities.json +1096 -94
- package/lib/browser.mjs +69 -12
- package/lib/cdp.mjs +79 -0
- package/lib/cli.mjs +41 -5
- package/lib/dmp-audience-dev.json +4 -0
- package/lib/memory.mjs +146 -0
- package/lib/page.mjs +63 -0
- package/lib/sycm.mjs +80 -8
- package/lib/xhs-note.mjs +322 -0
- package/lib/xhs.mjs +36 -0
- package/package.json +1 -1
- package/skills/ecom-cli/SKILL.md +70 -4
- package/skills/ecom-cli/capabilities.json +29 -3
- package/skills/ecom-cli/package.json +1 -1
- package/skills/ecom-cli/references/sycm.md +7 -1
package/capabilities.json
CHANGED
|
@@ -1,11 +1,133 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@petercjl/ecom-cli",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"skills": [
|
|
6
6
|
"ecom-cli"
|
|
7
7
|
],
|
|
8
8
|
"commandContracts": {
|
|
9
|
+
"cdp endpoint": {
|
|
10
|
+
"options": {
|
|
11
|
+
"--profile": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"required": true
|
|
14
|
+
},
|
|
15
|
+
"--json": {
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": "none",
|
|
20
|
+
"authorization": "Discover the browser-level CDP WebSocket in an explicitly enabled local Ecom Dev profile"
|
|
21
|
+
},
|
|
22
|
+
"cdp tabs": {
|
|
23
|
+
"options": {
|
|
24
|
+
"--profile": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": true
|
|
27
|
+
},
|
|
28
|
+
"--json": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": "none",
|
|
33
|
+
"authorization": "List debuggable targets in an explicitly enabled local Ecom Dev profile"
|
|
34
|
+
},
|
|
35
|
+
"cdp call": {
|
|
36
|
+
"options": {
|
|
37
|
+
"--profile": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"required": true
|
|
40
|
+
},
|
|
41
|
+
"--json": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"--cdp-method": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"required": true
|
|
47
|
+
},
|
|
48
|
+
"--cdp-target": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"--params-json": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"sideEffects": "browser-operation",
|
|
56
|
+
"authorization": "Run one CDP command on an explicit target or the browser endpoint in an explicitly enabled local Ecom Dev profile"
|
|
57
|
+
},
|
|
58
|
+
"shops open": {
|
|
59
|
+
"options": {
|
|
60
|
+
"--container": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"required": true
|
|
63
|
+
},
|
|
64
|
+
"--service": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"home",
|
|
68
|
+
"qianniu"
|
|
69
|
+
],
|
|
70
|
+
"default": "home"
|
|
71
|
+
},
|
|
72
|
+
"--profile": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"--instance": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"--json": {
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"sideEffects": "navigation",
|
|
83
|
+
"authorization": "Open the saved homepage or explicit Qianniu entry in a foreground tab in the selected container"
|
|
84
|
+
},
|
|
85
|
+
"shops login-status": {
|
|
86
|
+
"options": {
|
|
87
|
+
"--container": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"required": true
|
|
90
|
+
},
|
|
91
|
+
"--service": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"required": true
|
|
94
|
+
},
|
|
95
|
+
"--profile": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"--instance": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"--json": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"sideEffects": "local-write",
|
|
106
|
+
"authorization": "Read the active Qianniu tab state without navigating; backend-page describes navigation only"
|
|
107
|
+
},
|
|
108
|
+
"shops submit-login": {
|
|
109
|
+
"options": {
|
|
110
|
+
"--container": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"required": true
|
|
113
|
+
},
|
|
114
|
+
"--service": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"required": true
|
|
117
|
+
},
|
|
118
|
+
"--profile": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"--instance": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"--json": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"sideEffects": "website-login",
|
|
129
|
+
"authorization": "With explicit login intent, submit a ready native-filled Qianniu password form once"
|
|
130
|
+
},
|
|
9
131
|
"help": {
|
|
10
132
|
"options": {
|
|
11
133
|
"--json": {
|
|
@@ -447,7 +569,8 @@
|
|
|
447
569
|
"container": "stable ID and current name",
|
|
448
570
|
"requestedUrl": "compiled registered entry",
|
|
449
571
|
"background": "boolean",
|
|
450
|
-
"authentication": "not-verified"
|
|
572
|
+
"authentication": "not-verified",
|
|
573
|
+
"restoration": "Optional shared-queue status and exact native request/tab identity when a deferred tab is reused; completion is separate from authentication"
|
|
451
574
|
},
|
|
452
575
|
"errors": [
|
|
453
576
|
"BROWSER_UPGRADE_REQUIRED",
|
|
@@ -457,110 +580,944 @@
|
|
|
457
580
|
"PROTOCOL_MISMATCH"
|
|
458
581
|
],
|
|
459
582
|
"sideEffectDetails": "Registered browser navigation in the selected container; no website submission."
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
],
|
|
480
|
-
"result": "manifest"
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
"version": {
|
|
484
|
-
"command": "version",
|
|
485
|
-
"argv": [
|
|
486
|
-
"version",
|
|
487
|
-
"--json"
|
|
488
|
-
],
|
|
489
|
-
"fields": {
|
|
490
|
-
"package": {
|
|
491
|
-
"field": "package",
|
|
583
|
+
},
|
|
584
|
+
"xhs search": {
|
|
585
|
+
"options": {
|
|
586
|
+
"--container": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"required": true
|
|
589
|
+
},
|
|
590
|
+
"--keyword": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"required": true
|
|
593
|
+
},
|
|
594
|
+
"--via": {
|
|
595
|
+
"type": "string",
|
|
596
|
+
"required": true,
|
|
597
|
+
"enum": [
|
|
598
|
+
"page"
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"--profile": {
|
|
492
602
|
"type": "string"
|
|
493
603
|
},
|
|
494
|
-
"
|
|
495
|
-
"field": "version",
|
|
604
|
+
"--instance": {
|
|
496
605
|
"type": "string"
|
|
606
|
+
},
|
|
607
|
+
"--json": {
|
|
608
|
+
"type": "boolean"
|
|
497
609
|
}
|
|
498
|
-
}
|
|
610
|
+
},
|
|
611
|
+
"sideEffects": "local-write",
|
|
612
|
+
"authorization": "Read the first Xiaohongshu search page in the selected container using a temporary background tab; no foreground activation or debugging",
|
|
613
|
+
"output": {
|
|
614
|
+
"transport": "background-page-dom",
|
|
615
|
+
"count": "1..20",
|
|
616
|
+
"items": "id, title, author, likes (display text), URL"
|
|
617
|
+
},
|
|
618
|
+
"compatibility": "Requires Ecom Dev with xhsPageSearchProtocol 1; macOS tested, other systems unverified"
|
|
499
619
|
},
|
|
500
|
-
"
|
|
501
|
-
"
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
"
|
|
620
|
+
"memory status": {
|
|
621
|
+
"options": {
|
|
622
|
+
"--json": {
|
|
623
|
+
"type": "boolean"
|
|
624
|
+
},
|
|
625
|
+
"--profile": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"--instance": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
}
|
|
506
631
|
},
|
|
507
|
-
"
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
"
|
|
514
|
-
"
|
|
632
|
+
"sideEffects": "local-write",
|
|
633
|
+
"authorization": "Read-only native memory snapshot via private mailbox; no tab activation, navigation, freezing or discarding. Origins only; titles and container labels are user data.",
|
|
634
|
+
"output": {
|
|
635
|
+
"snapshotVersion": 1,
|
|
636
|
+
"snapshotId": "UUID",
|
|
637
|
+
"tabs": "stable session tab/window IDs, containerId, pageVersion, estimatedMemoryBytes|null, state, canFreeze/canDiscard, separate native reasons; manualDiscard eligibility/reasons uses explicit MVP safeguards",
|
|
638
|
+
"processes": "unique PID, kind, memoryBytes|null, residentBytes|null, tabIds, workerCount, hasUnmappedClients",
|
|
639
|
+
"containers": "containerId, name, tabCount, measuredTabCount, estimatedMemoryBytes|null",
|
|
640
|
+
"totals": "memoryBytes, residentBytes, attributedBytes, unattributedBytes, unavailableProcesses, complete",
|
|
641
|
+
"metric": "macos-physical-footprint or windows-private-bytes; OS metrics are not interchangeable",
|
|
642
|
+
"policy": "effective Memory Saver state and activation, freezing preference, read-only stage",
|
|
643
|
+
"scope": "instance processes, current ordinary profile tabs; detached crashpad excluded"
|
|
515
644
|
},
|
|
516
|
-
"
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
520
|
-
"
|
|
521
|
-
"
|
|
645
|
+
"errors": [
|
|
646
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
647
|
+
"MEMORY_UNAVAILABLE",
|
|
648
|
+
"BUSY",
|
|
649
|
+
"PROTOCOL_MISMATCH",
|
|
650
|
+
"INSTANCE_NOT_RUNNING",
|
|
651
|
+
"INSTANCE_AMBIGUOUS"
|
|
522
652
|
]
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
"maintenanceContract": {
|
|
526
|
-
"schemaVersion": 1,
|
|
527
|
-
"agentEligibility": "valid-name-with-generic-fallback",
|
|
528
|
-
"hostDiscoveryAuthority": "host",
|
|
529
|
-
"targetOptions": {
|
|
530
|
-
"--target": {
|
|
531
|
-
"kind": "skill-directory"
|
|
532
|
-
}
|
|
533
653
|
},
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
654
|
+
"memory tabs": {
|
|
655
|
+
"options": {
|
|
656
|
+
"--json": {
|
|
657
|
+
"type": "boolean"
|
|
658
|
+
},
|
|
659
|
+
"--profile": {
|
|
660
|
+
"type": "string"
|
|
661
|
+
},
|
|
662
|
+
"--instance": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
}
|
|
542
665
|
},
|
|
543
|
-
"
|
|
544
|
-
|
|
545
|
-
|
|
666
|
+
"sideEffects": "local-write",
|
|
667
|
+
"authorization": "Read-only native memory snapshot via private mailbox; no tab activation, navigation, freezing or discarding. Origins only; titles and container labels are user data.",
|
|
668
|
+
"output": {
|
|
669
|
+
"snapshotVersion": 1,
|
|
670
|
+
"snapshotId": "UUID",
|
|
671
|
+
"tabs": "stable session tab/window IDs, containerId, pageVersion, estimatedMemoryBytes|null, state, canFreeze/canDiscard, separate native reasons; manualDiscard eligibility/reasons uses explicit MVP safeguards",
|
|
672
|
+
"processes": "unique PID, kind, memoryBytes|null, residentBytes|null, tabIds, workerCount, hasUnmappedClients",
|
|
673
|
+
"containers": "containerId, name, tabCount, measuredTabCount, estimatedMemoryBytes|null",
|
|
674
|
+
"totals": "memoryBytes, residentBytes, attributedBytes, unattributedBytes, unavailableProcesses, complete",
|
|
675
|
+
"metric": "macos-physical-footprint or windows-private-bytes; OS metrics are not interchangeable",
|
|
676
|
+
"policy": "effective Memory Saver state and activation, freezing preference, read-only stage",
|
|
677
|
+
"scope": "instance processes, current ordinary profile tabs; detached crashpad excluded"
|
|
546
678
|
},
|
|
547
|
-
"
|
|
548
|
-
"
|
|
549
|
-
"
|
|
550
|
-
|
|
679
|
+
"errors": [
|
|
680
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
681
|
+
"MEMORY_UNAVAILABLE",
|
|
682
|
+
"BUSY",
|
|
683
|
+
"PROTOCOL_MISMATCH",
|
|
684
|
+
"INSTANCE_NOT_RUNNING",
|
|
685
|
+
"INSTANCE_AMBIGUOUS"
|
|
686
|
+
]
|
|
551
687
|
},
|
|
552
|
-
"
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
|
|
688
|
+
"memory processes": {
|
|
689
|
+
"options": {
|
|
690
|
+
"--json": {
|
|
691
|
+
"type": "boolean"
|
|
692
|
+
},
|
|
693
|
+
"--profile": {
|
|
694
|
+
"type": "string"
|
|
695
|
+
},
|
|
696
|
+
"--instance": {
|
|
697
|
+
"type": "string"
|
|
698
|
+
}
|
|
556
699
|
},
|
|
557
|
-
"
|
|
558
|
-
|
|
559
|
-
|
|
700
|
+
"sideEffects": "local-write",
|
|
701
|
+
"authorization": "Read-only native memory snapshot via private mailbox; no tab activation, navigation, freezing or discarding. Origins only; titles and container labels are user data.",
|
|
702
|
+
"output": {
|
|
703
|
+
"snapshotVersion": 1,
|
|
704
|
+
"snapshotId": "UUID",
|
|
705
|
+
"tabs": "stable session tab/window IDs, containerId, pageVersion, estimatedMemoryBytes|null, state, canFreeze/canDiscard, separate native reasons; manualDiscard eligibility/reasons uses explicit MVP safeguards",
|
|
706
|
+
"processes": "unique PID, kind, memoryBytes|null, residentBytes|null, tabIds, workerCount, hasUnmappedClients",
|
|
707
|
+
"containers": "containerId, name, tabCount, measuredTabCount, estimatedMemoryBytes|null",
|
|
708
|
+
"totals": "memoryBytes, residentBytes, attributedBytes, unattributedBytes, unavailableProcesses, complete",
|
|
709
|
+
"metric": "macos-physical-footprint or windows-private-bytes; OS metrics are not interchangeable",
|
|
710
|
+
"policy": "effective Memory Saver state and activation, freezing preference, read-only stage",
|
|
711
|
+
"scope": "instance processes, current ordinary profile tabs; detached crashpad excluded"
|
|
560
712
|
},
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
713
|
+
"errors": [
|
|
714
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
715
|
+
"MEMORY_UNAVAILABLE",
|
|
716
|
+
"BUSY",
|
|
717
|
+
"PROTOCOL_MISMATCH",
|
|
718
|
+
"INSTANCE_NOT_RUNNING",
|
|
719
|
+
"INSTANCE_AMBIGUOUS"
|
|
720
|
+
]
|
|
721
|
+
},
|
|
722
|
+
"memory containers": {
|
|
723
|
+
"options": {
|
|
724
|
+
"--json": {
|
|
725
|
+
"type": "boolean"
|
|
726
|
+
},
|
|
727
|
+
"--profile": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
730
|
+
"--instance": {
|
|
731
|
+
"type": "string"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"sideEffects": "local-write",
|
|
735
|
+
"authorization": "Read-only native memory snapshot via private mailbox; no tab activation, navigation, freezing or discarding. Origins only; titles and container labels are user data.",
|
|
736
|
+
"output": {
|
|
737
|
+
"snapshotVersion": 1,
|
|
738
|
+
"snapshotId": "UUID",
|
|
739
|
+
"tabs": "stable session tab/window IDs, containerId, pageVersion, estimatedMemoryBytes|null, state, canFreeze/canDiscard, separate native reasons; manualDiscard eligibility/reasons uses explicit MVP safeguards",
|
|
740
|
+
"processes": "unique PID, kind, memoryBytes|null, residentBytes|null, tabIds, workerCount, hasUnmappedClients",
|
|
741
|
+
"containers": "containerId, name, tabCount, measuredTabCount, estimatedMemoryBytes|null",
|
|
742
|
+
"totals": "memoryBytes, residentBytes, attributedBytes, unattributedBytes, unavailableProcesses, complete",
|
|
743
|
+
"metric": "macos-physical-footprint or windows-private-bytes; OS metrics are not interchangeable",
|
|
744
|
+
"policy": "effective Memory Saver state and activation, freezing preference, read-only stage",
|
|
745
|
+
"scope": "instance processes, current ordinary profile tabs; detached crashpad excluded"
|
|
746
|
+
},
|
|
747
|
+
"errors": [
|
|
748
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
749
|
+
"MEMORY_UNAVAILABLE",
|
|
750
|
+
"BUSY",
|
|
751
|
+
"PROTOCOL_MISMATCH",
|
|
752
|
+
"INSTANCE_NOT_RUNNING",
|
|
753
|
+
"INSTANCE_AMBIGUOUS"
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
"tabs discard": {
|
|
757
|
+
"options": {
|
|
758
|
+
"--json": {
|
|
759
|
+
"type": "boolean"
|
|
760
|
+
},
|
|
761
|
+
"--profile": {
|
|
762
|
+
"type": "string"
|
|
763
|
+
},
|
|
764
|
+
"--instance": {
|
|
765
|
+
"type": "string"
|
|
766
|
+
},
|
|
767
|
+
"--tab": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"required": true
|
|
770
|
+
},
|
|
771
|
+
"--container": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"required": true,
|
|
774
|
+
"description": "Exact native container ID; @default selects the default session"
|
|
775
|
+
},
|
|
776
|
+
"--expected-page-version": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"required": true
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"sideEffects": "page-discard",
|
|
782
|
+
"authorization": "Explicitly selected page runtime release or background reload in the original container; persistent account data remains browser-owned. Shared native protections are rechecked immediately before action.",
|
|
783
|
+
"output": {
|
|
784
|
+
"operationId": "UUID; use memory operation after unknown outcomes",
|
|
785
|
+
"status": "discarded/already-discarded or navigation-started/already-running; wake is not load/login completion",
|
|
786
|
+
"executed": "boolean",
|
|
787
|
+
"tabId": "exact selected tab",
|
|
788
|
+
"containerId": "original native container",
|
|
789
|
+
"expectedPageVersion": "version precondition",
|
|
790
|
+
"pageVersion": "post-action document version when executed",
|
|
791
|
+
"navigationPreserved": "verified target and visible URL preserved"
|
|
792
|
+
},
|
|
793
|
+
"errors": [
|
|
794
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
795
|
+
"INVALID_ARGUMENT",
|
|
796
|
+
"TAB_NOT_FOUND",
|
|
797
|
+
"TARGET_MISMATCH",
|
|
798
|
+
"PAGE_CHANGED",
|
|
799
|
+
"TAB_PROTECTED",
|
|
800
|
+
"DISCARD_REJECTED",
|
|
801
|
+
"TARGET_CHANGED_AFTER_ACTION",
|
|
802
|
+
"DISCARD_STATE_UNKNOWN",
|
|
803
|
+
"OPERATION_TIMEOUT"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
"tabs wake": {
|
|
807
|
+
"options": {
|
|
808
|
+
"--json": {
|
|
809
|
+
"type": "boolean"
|
|
810
|
+
},
|
|
811
|
+
"--profile": {
|
|
812
|
+
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"--instance": {
|
|
815
|
+
"type": "string"
|
|
816
|
+
},
|
|
817
|
+
"--tab": {
|
|
818
|
+
"type": "string",
|
|
819
|
+
"required": true
|
|
820
|
+
},
|
|
821
|
+
"--container": {
|
|
822
|
+
"type": "string",
|
|
823
|
+
"required": true,
|
|
824
|
+
"description": "Exact native container ID; @default selects the default session"
|
|
825
|
+
},
|
|
826
|
+
"--expected-page-version": {
|
|
827
|
+
"type": "string",
|
|
828
|
+
"required": true
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"sideEffects": "background-navigation",
|
|
832
|
+
"authorization": "Explicitly selected page runtime release or background reload in the original container; persistent account data remains browser-owned. Shared native protections are rechecked immediately before action.",
|
|
833
|
+
"output": {
|
|
834
|
+
"operationId": "UUID; use memory operation after unknown outcomes",
|
|
835
|
+
"status": "navigation-started, navigation-queued or already-running; submission is not load/login completion",
|
|
836
|
+
"executed": "boolean",
|
|
837
|
+
"tabId": "exact selected tab",
|
|
838
|
+
"containerId": "original native container",
|
|
839
|
+
"expectedPageVersion": "version precondition",
|
|
840
|
+
"pageVersion": "post-action document version when executed",
|
|
841
|
+
"navigationPreserved": "verified target and visible URL preserved",
|
|
842
|
+
"restore": "Native requestId and phase for accepted restores when queue protocol 1 is available"
|
|
843
|
+
},
|
|
844
|
+
"errors": [
|
|
845
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
846
|
+
"INVALID_ARGUMENT",
|
|
847
|
+
"TAB_NOT_FOUND",
|
|
848
|
+
"TARGET_MISMATCH",
|
|
849
|
+
"PAGE_CHANGED",
|
|
850
|
+
"TAB_PROTECTED",
|
|
851
|
+
"DISCARD_REJECTED",
|
|
852
|
+
"TARGET_CHANGED_AFTER_ACTION",
|
|
853
|
+
"DISCARD_STATE_UNKNOWN",
|
|
854
|
+
"OPERATION_TIMEOUT",
|
|
855
|
+
"RESTORE_QUEUE_BUSY",
|
|
856
|
+
"RESTORE_QUEUE_FULL"
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
"memory operation": {
|
|
860
|
+
"options": {
|
|
861
|
+
"--json": {
|
|
862
|
+
"type": "boolean"
|
|
863
|
+
},
|
|
864
|
+
"--profile": {
|
|
865
|
+
"type": "string"
|
|
866
|
+
},
|
|
867
|
+
"--instance": {
|
|
868
|
+
"type": "string"
|
|
869
|
+
},
|
|
870
|
+
"--operation-id": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"required": true
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"sideEffects": "local-write",
|
|
876
|
+
"authorization": "Read the selected instance/profile in-memory action record; no action retry.",
|
|
877
|
+
"output": {
|
|
878
|
+
"status": "found or not-found",
|
|
879
|
+
"result": "original action response when retained",
|
|
880
|
+
"executed": "unknown when not found; never infer no execution",
|
|
881
|
+
"currentRestore": "result.currentRestore reports live queue phase for a retained restore request"
|
|
882
|
+
},
|
|
883
|
+
"retention": "latest 128 actions per ordinary Profile in this running browser; lost on restart",
|
|
884
|
+
"errors": [
|
|
885
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
886
|
+
"INVALID_ARGUMENT",
|
|
887
|
+
"PROTOCOL_MISMATCH"
|
|
888
|
+
]
|
|
889
|
+
},
|
|
890
|
+
"memory auto status": {
|
|
891
|
+
"options": {
|
|
892
|
+
"--instance": {
|
|
893
|
+
"type": "string"
|
|
894
|
+
},
|
|
895
|
+
"--profile": {
|
|
896
|
+
"type": "string"
|
|
897
|
+
},
|
|
898
|
+
"--json": {
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"sideEffects": "none",
|
|
903
|
+
"authorization": "Read automatic sleep settings and run-local scheduler activity"
|
|
904
|
+
},
|
|
905
|
+
"memory auto set": {
|
|
906
|
+
"options": {
|
|
907
|
+
"--instance": {
|
|
908
|
+
"type": "string"
|
|
909
|
+
},
|
|
910
|
+
"--profile": {
|
|
911
|
+
"type": "string"
|
|
912
|
+
},
|
|
913
|
+
"--json": {
|
|
914
|
+
"type": "boolean"
|
|
915
|
+
},
|
|
916
|
+
"--enabled": {
|
|
917
|
+
"type": "string",
|
|
918
|
+
"enum": [
|
|
919
|
+
"on",
|
|
920
|
+
"off"
|
|
921
|
+
],
|
|
922
|
+
"required": true
|
|
923
|
+
},
|
|
924
|
+
"--idle-seconds": {
|
|
925
|
+
"type": "integer",
|
|
926
|
+
"minimum": 60,
|
|
927
|
+
"maximum": 86400,
|
|
928
|
+
"required": true
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"sideEffects": "browser-settings",
|
|
932
|
+
"authorization": "Explicitly enable or disable persistent automatic sleep with an idle threshold; recheck native task, edit and media protections before each discard"
|
|
933
|
+
},
|
|
934
|
+
"tabs protect": {
|
|
935
|
+
"options": {
|
|
936
|
+
"--json": {
|
|
937
|
+
"type": "boolean"
|
|
938
|
+
},
|
|
939
|
+
"--profile": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
"--instance": {
|
|
943
|
+
"type": "string"
|
|
944
|
+
},
|
|
945
|
+
"--tab": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"required": true
|
|
948
|
+
},
|
|
949
|
+
"--container": {
|
|
950
|
+
"type": "string",
|
|
951
|
+
"required": true,
|
|
952
|
+
"description": "Exact native container ID; @default selects the default session"
|
|
953
|
+
},
|
|
954
|
+
"--expected-page-version": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"required": true
|
|
957
|
+
},
|
|
958
|
+
"--keep-awake": {
|
|
959
|
+
"type": "string",
|
|
960
|
+
"enum": [
|
|
961
|
+
"on",
|
|
962
|
+
"off"
|
|
963
|
+
],
|
|
964
|
+
"required": true
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"sideEffects": "browser-settings",
|
|
968
|
+
"authorization": "Set a run-scoped keep-running exception on the exact tab/container/page; does not wake an already discarded tab"
|
|
969
|
+
},
|
|
970
|
+
"memory restore status": {
|
|
971
|
+
"options": {
|
|
972
|
+
"--json": {
|
|
973
|
+
"type": "boolean"
|
|
974
|
+
},
|
|
975
|
+
"--instance": {
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
"--profile": {
|
|
979
|
+
"type": "string"
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"sideEffects": "none",
|
|
983
|
+
"authorization": "Read profile restoration settings, active background loads, queued requests and recent outcomes"
|
|
984
|
+
},
|
|
985
|
+
"memory restore set": {
|
|
986
|
+
"options": {
|
|
987
|
+
"--json": {
|
|
988
|
+
"type": "boolean"
|
|
989
|
+
},
|
|
990
|
+
"--instance": {
|
|
991
|
+
"type": "string"
|
|
992
|
+
},
|
|
993
|
+
"--profile": {
|
|
994
|
+
"type": "string"
|
|
995
|
+
},
|
|
996
|
+
"--lazy-startup": {
|
|
997
|
+
"type": "string",
|
|
998
|
+
"enum": [
|
|
999
|
+
"on",
|
|
1000
|
+
"off"
|
|
1001
|
+
],
|
|
1002
|
+
"required": true
|
|
1003
|
+
},
|
|
1004
|
+
"--max-background": {
|
|
1005
|
+
"type": "integer",
|
|
1006
|
+
"minimum": 1,
|
|
1007
|
+
"maximum": 4,
|
|
1008
|
+
"required": true
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"sideEffects": "browser-settings",
|
|
1012
|
+
"authorization": "Persist next-session lazy startup and the background restoration admission limit; user-selected tabs load immediately; do not interrupt admitted loads"
|
|
1013
|
+
},
|
|
1014
|
+
"xhs note preflight": {
|
|
1015
|
+
"options": {
|
|
1016
|
+
"--manifest": {
|
|
1017
|
+
"type": "string",
|
|
1018
|
+
"required": true
|
|
1019
|
+
},
|
|
1020
|
+
"--json": {
|
|
1021
|
+
"type": "boolean"
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"sideEffects": "none",
|
|
1025
|
+
"authorization": "Read and check explicitly supplied local note files",
|
|
1026
|
+
"output": {
|
|
1027
|
+
"state": "preflight-passed",
|
|
1028
|
+
"submitted": false
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"xhs note open": {
|
|
1032
|
+
"options": {
|
|
1033
|
+
"--container": {
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"required": true
|
|
1036
|
+
},
|
|
1037
|
+
"--instance": {
|
|
1038
|
+
"type": "string"
|
|
1039
|
+
},
|
|
1040
|
+
"--profile": {
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
},
|
|
1043
|
+
"--json": {
|
|
1044
|
+
"type": "boolean"
|
|
1045
|
+
},
|
|
1046
|
+
"--fixture-port": {
|
|
1047
|
+
"type": "string"
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"sideEffects": "navigation",
|
|
1051
|
+
"authorization": "Open a new background creator tab in the selected Xiaohongshu container; local loopback fixture only when specified",
|
|
1052
|
+
"output": "opening, login-required, verification-required, account-unverified, account-ready, unsupported-form",
|
|
1053
|
+
"compatibility": "Requires xhsNoteProtocol 1 in Ecom on macOS. Loopback fixtures require Ecom Dev.",
|
|
1054
|
+
"errors": [
|
|
1055
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1056
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1057
|
+
"PROTOCOL_MISMATCH",
|
|
1058
|
+
"XHS_FIXTURE_DEV_REQUIRED"
|
|
1059
|
+
]
|
|
1060
|
+
},
|
|
1061
|
+
"xhs note status": {
|
|
1062
|
+
"options": {
|
|
1063
|
+
"--container": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"required": true
|
|
1066
|
+
},
|
|
1067
|
+
"--instance": {
|
|
1068
|
+
"type": "string"
|
|
1069
|
+
},
|
|
1070
|
+
"--profile": {
|
|
1071
|
+
"type": "string"
|
|
1072
|
+
},
|
|
1073
|
+
"--json": {
|
|
1074
|
+
"type": "boolean"
|
|
1075
|
+
},
|
|
1076
|
+
"--preparation": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"required": true
|
|
1079
|
+
},
|
|
1080
|
+
"--fixture": {
|
|
1081
|
+
"type": "boolean"
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
"sideEffects": "none",
|
|
1085
|
+
"authorization": "Inspect a pinned tab, creator identity or saved submission attempt",
|
|
1086
|
+
"output": "Preparation ID, account ID, image and field readback, review readiness, or submission evidence for the legacy flow",
|
|
1087
|
+
"compatibility": "Requires xhsNoteProtocol 1 in Ecom on macOS. Loopback fixtures require Ecom Dev.",
|
|
1088
|
+
"errors": [
|
|
1089
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1090
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1091
|
+
"PROTOCOL_MISMATCH",
|
|
1092
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1093
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1094
|
+
"XHS_PAGE_CHANGED",
|
|
1095
|
+
"XHS_FIXTURE_DEV_REQUIRED"
|
|
1096
|
+
]
|
|
1097
|
+
},
|
|
1098
|
+
"xhs note prepare": {
|
|
1099
|
+
"options": {
|
|
1100
|
+
"--container": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"required": true
|
|
1103
|
+
},
|
|
1104
|
+
"--instance": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"required": true
|
|
1107
|
+
},
|
|
1108
|
+
"--profile": {
|
|
1109
|
+
"type": "string"
|
|
1110
|
+
},
|
|
1111
|
+
"--json": {
|
|
1112
|
+
"type": "boolean"
|
|
1113
|
+
},
|
|
1114
|
+
"--preparation": {
|
|
1115
|
+
"type": "string",
|
|
1116
|
+
"required": true
|
|
1117
|
+
},
|
|
1118
|
+
"--fixture": {
|
|
1119
|
+
"type": "boolean"
|
|
1120
|
+
},
|
|
1121
|
+
"--account-id": {
|
|
1122
|
+
"type": "string",
|
|
1123
|
+
"required": true
|
|
1124
|
+
},
|
|
1125
|
+
"--manifest": {
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"required": true
|
|
1128
|
+
},
|
|
1129
|
+
"--digest": {
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"required": true
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"sideEffects": "external-write",
|
|
1135
|
+
"authorization": "Upload ordered image bytes and fill a blank composer; may create platform draft state; never clicks Publish",
|
|
1136
|
+
"output": "uploading, form-ready with confirmation, or specific unavailable/changed state",
|
|
1137
|
+
"compatibility": "Requires xhsNoteProtocol 1 in Ecom on macOS. Loopback fixtures require Ecom Dev.",
|
|
1138
|
+
"errors": [
|
|
1139
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1140
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1141
|
+
"PROTOCOL_MISMATCH",
|
|
1142
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1143
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1144
|
+
"XHS_PAGE_CHANGED",
|
|
1145
|
+
"XHS_ACCOUNT_NOT_VERIFIED",
|
|
1146
|
+
"XHS_SAME_NOTE_ATTEMPTED",
|
|
1147
|
+
"XHS_MANIFEST_CHANGED",
|
|
1148
|
+
"XHS_MEDIA_INVALID",
|
|
1149
|
+
"XHS_FORM_UNAVAILABLE",
|
|
1150
|
+
"XHS_FIXTURE_DEV_REQUIRED"
|
|
1151
|
+
]
|
|
1152
|
+
},
|
|
1153
|
+
"xhs note submit": {
|
|
1154
|
+
"options": {
|
|
1155
|
+
"--container": {
|
|
1156
|
+
"type": "string",
|
|
1157
|
+
"required": true
|
|
1158
|
+
},
|
|
1159
|
+
"--instance": {
|
|
1160
|
+
"type": "string",
|
|
1161
|
+
"required": true
|
|
1162
|
+
},
|
|
1163
|
+
"--profile": {
|
|
1164
|
+
"type": "string"
|
|
1165
|
+
},
|
|
1166
|
+
"--json": {
|
|
1167
|
+
"type": "boolean"
|
|
1168
|
+
},
|
|
1169
|
+
"--preparation": {
|
|
1170
|
+
"type": "string",
|
|
1171
|
+
"required": true
|
|
1172
|
+
},
|
|
1173
|
+
"--fixture": {
|
|
1174
|
+
"type": "boolean"
|
|
1175
|
+
},
|
|
1176
|
+
"--account-id": {
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"required": true
|
|
1179
|
+
},
|
|
1180
|
+
"--confirm": {
|
|
1181
|
+
"type": "string",
|
|
1182
|
+
"required": true
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
"sideEffects": "external-write",
|
|
1186
|
+
"authorization": "Explicitly publish the reviewed ordinary image note once; unknown results require status or creator note management review",
|
|
1187
|
+
"output": "not-submitted, submitted, published with note ID, or submission-unknown",
|
|
1188
|
+
"compatibility": "Requires xhsNoteProtocol 1 in Ecom on macOS. Loopback fixtures require Ecom Dev.",
|
|
1189
|
+
"errors": [
|
|
1190
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1191
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1192
|
+
"PROTOCOL_MISMATCH",
|
|
1193
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1194
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1195
|
+
"XHS_PAGE_CHANGED",
|
|
1196
|
+
"XHS_ACCOUNT_NOT_VERIFIED",
|
|
1197
|
+
"XHS_SAME_NOTE_ATTEMPTED",
|
|
1198
|
+
"XHS_CONFIRMATION_MISMATCH",
|
|
1199
|
+
"XHS_SUBMISSION_ALREADY_ATTEMPTED",
|
|
1200
|
+
"OPERATION_TIMEOUT",
|
|
1201
|
+
"XHS_FIXTURE_DEV_REQUIRED"
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1204
|
+
"page read": {
|
|
1205
|
+
"options": {
|
|
1206
|
+
"--container": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"required": true
|
|
1209
|
+
},
|
|
1210
|
+
"--url": {
|
|
1211
|
+
"type": "string",
|
|
1212
|
+
"required": true
|
|
1213
|
+
},
|
|
1214
|
+
"--profile": {
|
|
1215
|
+
"type": "string"
|
|
1216
|
+
},
|
|
1217
|
+
"--instance": {
|
|
1218
|
+
"type": "string"
|
|
1219
|
+
},
|
|
1220
|
+
"--json": {
|
|
1221
|
+
"type": "boolean"
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
"sideEffects": "local-write",
|
|
1225
|
+
"authorization": "Open the specified HTTPS page in a temporary background tab in the selected container",
|
|
1226
|
+
"compatibility": "Ecom Dev with backgroundPageProtocol 1",
|
|
1227
|
+
"output": {
|
|
1228
|
+
"page": "bounded title, text and visible player metadata",
|
|
1229
|
+
"containerId": "selected container",
|
|
1230
|
+
"closeRequested": "temporary tab close request status"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"media download": {
|
|
1234
|
+
"options": {
|
|
1235
|
+
"--container": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"required": true
|
|
1238
|
+
},
|
|
1239
|
+
"--url": {
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"required": true
|
|
1242
|
+
},
|
|
1243
|
+
"--output": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"required": true
|
|
1246
|
+
},
|
|
1247
|
+
"--profile": {
|
|
1248
|
+
"type": "string"
|
|
1249
|
+
},
|
|
1250
|
+
"--instance": {
|
|
1251
|
+
"type": "string"
|
|
1252
|
+
},
|
|
1253
|
+
"--json": {
|
|
1254
|
+
"type": "boolean"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"sideEffects": "local-write",
|
|
1258
|
+
"authorization": "Open the specified HTTPS page in a temporary background tab in the selected container and save one unambiguous direct video to a new local file",
|
|
1259
|
+
"compatibility": "Ecom Dev with backgroundPageProtocol 1",
|
|
1260
|
+
"output": {
|
|
1261
|
+
"output": "new local video file",
|
|
1262
|
+
"pageUrl": "effective media page",
|
|
1263
|
+
"title": "page work title",
|
|
1264
|
+
"mimeType": "response type",
|
|
1265
|
+
"bytes": "saved bytes",
|
|
1266
|
+
"closeRequested": "temporary tab close request status"
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
"xhs note upload": {
|
|
1270
|
+
"options": {
|
|
1271
|
+
"--container": {
|
|
1272
|
+
"type": "string",
|
|
1273
|
+
"required": true
|
|
1274
|
+
},
|
|
1275
|
+
"--instance": {
|
|
1276
|
+
"type": "string",
|
|
1277
|
+
"required": true
|
|
1278
|
+
},
|
|
1279
|
+
"--profile": {
|
|
1280
|
+
"type": "string"
|
|
1281
|
+
},
|
|
1282
|
+
"--json": {
|
|
1283
|
+
"type": "boolean"
|
|
1284
|
+
},
|
|
1285
|
+
"--preparation": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"required": true
|
|
1288
|
+
},
|
|
1289
|
+
"--fixture": {
|
|
1290
|
+
"type": "boolean"
|
|
1291
|
+
},
|
|
1292
|
+
"--account-id": {
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
"required": true
|
|
1295
|
+
},
|
|
1296
|
+
"--manifest": {
|
|
1297
|
+
"type": "string",
|
|
1298
|
+
"required": true
|
|
1299
|
+
},
|
|
1300
|
+
"--digest": {
|
|
1301
|
+
"type": "string",
|
|
1302
|
+
"required": true
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
"sideEffects": "external-write",
|
|
1306
|
+
"authorization": "Upload ordered images to a blank creator page for human review",
|
|
1307
|
+
"output": "images-ready with image count, or upload progress",
|
|
1308
|
+
"compatibility": "Requires xhsNoteReviewProtocol 1 on macOS",
|
|
1309
|
+
"errors": [
|
|
1310
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1311
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1312
|
+
"PROTOCOL_MISMATCH",
|
|
1313
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1314
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1315
|
+
"XHS_PAGE_CHANGED",
|
|
1316
|
+
"XHS_ACCOUNT_NOT_VERIFIED",
|
|
1317
|
+
"XHS_SAME_NOTE_ATTEMPTED",
|
|
1318
|
+
"XHS_MANIFEST_CHANGED",
|
|
1319
|
+
"XHS_MEDIA_INVALID",
|
|
1320
|
+
"XHS_FORM_UNAVAILABLE",
|
|
1321
|
+
"XHS_FIXTURE_DEV_REQUIRED",
|
|
1322
|
+
"XHS_REVIEW_INPUT_MISMATCH"
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1325
|
+
"xhs note fill": {
|
|
1326
|
+
"options": {
|
|
1327
|
+
"--container": {
|
|
1328
|
+
"type": "string",
|
|
1329
|
+
"required": true
|
|
1330
|
+
},
|
|
1331
|
+
"--instance": {
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"required": true
|
|
1334
|
+
},
|
|
1335
|
+
"--profile": {
|
|
1336
|
+
"type": "string"
|
|
1337
|
+
},
|
|
1338
|
+
"--json": {
|
|
1339
|
+
"type": "boolean"
|
|
1340
|
+
},
|
|
1341
|
+
"--preparation": {
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"required": true
|
|
1344
|
+
},
|
|
1345
|
+
"--fixture": {
|
|
1346
|
+
"type": "boolean"
|
|
1347
|
+
},
|
|
1348
|
+
"--account-id": {
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"required": true
|
|
1351
|
+
},
|
|
1352
|
+
"--manifest": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"required": true
|
|
1355
|
+
},
|
|
1356
|
+
"--digest": {
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
"required": true
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"sideEffects": "external-write",
|
|
1362
|
+
"authorization": "Fill missing title and body fields on the pinned uploaded note; preserve different existing values",
|
|
1363
|
+
"output": "review-ready or review-incomplete with separate image, title, body and publish-control checks",
|
|
1364
|
+
"compatibility": "Requires xhsNoteReviewProtocol 1 on macOS",
|
|
1365
|
+
"errors": [
|
|
1366
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1367
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1368
|
+
"PROTOCOL_MISMATCH",
|
|
1369
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1370
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1371
|
+
"XHS_PAGE_CHANGED",
|
|
1372
|
+
"XHS_ACCOUNT_NOT_VERIFIED",
|
|
1373
|
+
"XHS_SAME_NOTE_ATTEMPTED",
|
|
1374
|
+
"XHS_MANIFEST_CHANGED",
|
|
1375
|
+
"XHS_MEDIA_INVALID",
|
|
1376
|
+
"XHS_FORM_UNAVAILABLE",
|
|
1377
|
+
"XHS_FIXTURE_DEV_REQUIRED",
|
|
1378
|
+
"XHS_REVIEW_INPUT_MISMATCH"
|
|
1379
|
+
]
|
|
1380
|
+
},
|
|
1381
|
+
"xhs note verify": {
|
|
1382
|
+
"options": {
|
|
1383
|
+
"--container": {
|
|
1384
|
+
"type": "string",
|
|
1385
|
+
"required": true
|
|
1386
|
+
},
|
|
1387
|
+
"--instance": {
|
|
1388
|
+
"type": "string"
|
|
1389
|
+
},
|
|
1390
|
+
"--profile": {
|
|
1391
|
+
"type": "string"
|
|
1392
|
+
},
|
|
1393
|
+
"--json": {
|
|
1394
|
+
"type": "boolean"
|
|
1395
|
+
},
|
|
1396
|
+
"--preparation": {
|
|
1397
|
+
"type": "string",
|
|
1398
|
+
"required": true
|
|
1399
|
+
},
|
|
1400
|
+
"--fixture": {
|
|
1401
|
+
"type": "boolean"
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
"sideEffects": "none",
|
|
1405
|
+
"authorization": "Read back title, body and ordered previews for human review; report the publish control independently",
|
|
1406
|
+
"output": "content-verified when the ordered previews and both text fields match; publishControl reports enabled or unconfirmed",
|
|
1407
|
+
"compatibility": "Requires xhsNoteReviewProtocol 1 on macOS",
|
|
1408
|
+
"errors": [
|
|
1409
|
+
"XHS_CONTAINER_REQUIRED",
|
|
1410
|
+
"BROWSER_UPGRADE_REQUIRED",
|
|
1411
|
+
"PROTOCOL_MISMATCH",
|
|
1412
|
+
"XHS_PREPARATION_NOT_FOUND",
|
|
1413
|
+
"XHS_PREPARATION_EXPIRED",
|
|
1414
|
+
"XHS_PAGE_CHANGED",
|
|
1415
|
+
"XHS_FIXTURE_DEV_REQUIRED"
|
|
1416
|
+
]
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
"transport": {
|
|
1420
|
+
"kind": "private-local-mailbox",
|
|
1421
|
+
"protocolVersion": 1,
|
|
1422
|
+
"debuggingRequired": false,
|
|
1423
|
+
"platforms": {
|
|
1424
|
+
"macos": "implemented",
|
|
1425
|
+
"windows": "unsupported"
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"discoveryContract": {
|
|
1429
|
+
"schemaVersion": 1,
|
|
1430
|
+
"commandsField": "commandContracts",
|
|
1431
|
+
"entryPoints": [
|
|
1432
|
+
{
|
|
1433
|
+
"argv": [
|
|
1434
|
+
"capabilities",
|
|
1435
|
+
"--json"
|
|
1436
|
+
],
|
|
1437
|
+
"result": "manifest"
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
"version": {
|
|
1441
|
+
"command": "version",
|
|
1442
|
+
"argv": [
|
|
1443
|
+
"version",
|
|
1444
|
+
"--json"
|
|
1445
|
+
],
|
|
1446
|
+
"fields": {
|
|
1447
|
+
"package": {
|
|
1448
|
+
"field": "package",
|
|
1449
|
+
"type": "string"
|
|
1450
|
+
},
|
|
1451
|
+
"version": {
|
|
1452
|
+
"field": "version",
|
|
1453
|
+
"type": "string"
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"skillCollection": {
|
|
1458
|
+
"namesField": "skills",
|
|
1459
|
+
"default": "ecom-cli",
|
|
1460
|
+
"selector": {
|
|
1461
|
+
"option": "--name",
|
|
1462
|
+
"type": "string"
|
|
1463
|
+
},
|
|
1464
|
+
"enumeration": {
|
|
1465
|
+
"argv": [
|
|
1466
|
+
"skill",
|
|
1467
|
+
"source",
|
|
1468
|
+
"--json"
|
|
1469
|
+
],
|
|
1470
|
+
"itemsField": "items",
|
|
1471
|
+
"completeField": "complete"
|
|
1472
|
+
},
|
|
1473
|
+
"namedSource": [
|
|
1474
|
+
"skill",
|
|
1475
|
+
"source",
|
|
1476
|
+
"--name",
|
|
1477
|
+
"{skill}",
|
|
1478
|
+
"--json"
|
|
1479
|
+
]
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
"maintenanceContract": {
|
|
1483
|
+
"schemaVersion": 1,
|
|
1484
|
+
"agentEligibility": "valid-name-with-generic-fallback",
|
|
1485
|
+
"hostDiscoveryAuthority": "host",
|
|
1486
|
+
"targetOptions": {
|
|
1487
|
+
"--target": {
|
|
1488
|
+
"kind": "skill-directory"
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
"source": {
|
|
1492
|
+
"name": {
|
|
1493
|
+
"field": "name",
|
|
1494
|
+
"type": "string"
|
|
1495
|
+
},
|
|
1496
|
+
"package": {
|
|
1497
|
+
"field": "package",
|
|
1498
|
+
"type": "string"
|
|
1499
|
+
},
|
|
1500
|
+
"version": {
|
|
1501
|
+
"field": "version",
|
|
1502
|
+
"type": "string"
|
|
1503
|
+
},
|
|
1504
|
+
"path": {
|
|
1505
|
+
"field": "path",
|
|
1506
|
+
"type": "string"
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
"status": {
|
|
1510
|
+
"name": {
|
|
1511
|
+
"field": "name",
|
|
1512
|
+
"type": "string"
|
|
1513
|
+
},
|
|
1514
|
+
"package": {
|
|
1515
|
+
"field": "package",
|
|
1516
|
+
"type": "string"
|
|
1517
|
+
},
|
|
1518
|
+
"version": {
|
|
1519
|
+
"field": "version",
|
|
1520
|
+
"type": "string"
|
|
564
1521
|
},
|
|
565
1522
|
"target": {
|
|
566
1523
|
"field": "target",
|
|
@@ -654,7 +1611,7 @@
|
|
|
654
1611
|
"businessIntegration": {
|
|
655
1612
|
"sourcePackage": "@petercjl/sycmcli",
|
|
656
1613
|
"sourceVersion": "0.4.0",
|
|
657
|
-
"registeredReads":
|
|
1614
|
+
"registeredReads": 137,
|
|
658
1615
|
"nativeGetCandidates": 88,
|
|
659
1616
|
"serviceAdaptersRequired": 0,
|
|
660
1617
|
"mutationWorkflows": 7,
|
|
@@ -668,7 +1625,9 @@
|
|
|
668
1625
|
"nativeBusinessReadDefinitions": 135,
|
|
669
1626
|
"serviceRuntimeAcceptance": "pending native build and per-service live checks",
|
|
670
1627
|
"requiredNativeProtocol": 1,
|
|
671
|
-
"registryHashAgreementRequired":
|
|
1628
|
+
"registryHashAgreementRequired": "legacy protocol only",
|
|
1629
|
+
"businessRouteProtocol": 1,
|
|
1630
|
+
"signedDevRouteProtocol": 1,
|
|
672
1631
|
"containerBinding": "Stable Ecom container ID, browser-owned session and native account verification; no separate Chrome store profile",
|
|
673
1632
|
"nativeRegistryHash": "26d302541c1641b00ce45c6df4ae32bbb90e2b21352fe5f91e3cfedb21e35d5e",
|
|
674
1633
|
"pageFallback": {
|
|
@@ -677,5 +1636,48 @@
|
|
|
677
1636
|
"default": "background and reuse",
|
|
678
1637
|
"strategy": "Native HTTP and private auth initialization first. Open the registered container entry only when needed and authorized; verify data again afterward."
|
|
679
1638
|
}
|
|
1639
|
+
},
|
|
1640
|
+
"automaticTabMemory": {
|
|
1641
|
+
"protocol": 1,
|
|
1642
|
+
"settings": "profile-persistent",
|
|
1643
|
+
"minimumIdleSeconds": 60,
|
|
1644
|
+
"defaultIdleSeconds": 1200,
|
|
1645
|
+
"scanIntervalSeconds": 30,
|
|
1646
|
+
"maxDiscardsPerScan": 1,
|
|
1647
|
+
"keepAwakeScope": "tab-until-closed-or-browser-restart",
|
|
1648
|
+
"requiresDebugging": false
|
|
1649
|
+
},
|
|
1650
|
+
"tabEditProtection": {
|
|
1651
|
+
"snapshotPath": "tabs[].manualDiscard.editSignals",
|
|
1652
|
+
"available": "boolean",
|
|
1653
|
+
"hadFormInteraction": "boolean when available; null otherwise",
|
|
1654
|
+
"hadUserEdits": "boolean when available; includes contenteditable edits",
|
|
1655
|
+
"beforeUnloadDialogPossible": "boolean; listener plus sticky user activation",
|
|
1656
|
+
"beforeUnloadBlocks": false,
|
|
1657
|
+
"classification": "native-edit-history-and-task-guards; no speculative unload dispatch"
|
|
1658
|
+
},
|
|
1659
|
+
"restorationQueue": {
|
|
1660
|
+
"protocol": 1,
|
|
1661
|
+
"lazyStartupDefault": true,
|
|
1662
|
+
"maxBackgroundRestoresDefault": 2,
|
|
1663
|
+
"maxBackgroundRestoresRange": [
|
|
1664
|
+
1,
|
|
1665
|
+
4
|
|
1666
|
+
],
|
|
1667
|
+
"scope": "current profile; background restore requests, not arbitrary website navigations or fresh page-task tabs",
|
|
1668
|
+
"foreground": "user selection bypasses waiting queue",
|
|
1669
|
+
"explicitPendingCapacity": 32,
|
|
1670
|
+
"history": "active/queued requests plus bounded completed records",
|
|
1671
|
+
"wakeQueuedStatus": "navigation-queued",
|
|
1672
|
+
"queuedActionLookup": "memory operation includes currentRestore; snapshots include tab.restore and top-level restoration"
|
|
1673
|
+
},
|
|
1674
|
+
"instanceSelection": {
|
|
1675
|
+
"defaultChannel": "stable",
|
|
1676
|
+
"explicitSelectors": [
|
|
1677
|
+
"--profile",
|
|
1678
|
+
"--instance"
|
|
1679
|
+
],
|
|
1680
|
+
"devRequiresExplicitSelection": true,
|
|
1681
|
+
"multipleMatches": "INSTANCE_AMBIGUOUS"
|
|
680
1682
|
}
|
|
681
1683
|
}
|