@sanity/cli 8.36.0 → 8.37.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.
Files changed (57) hide show
  1. package/dist/actions/dataset/blueprintDeletion.js +65 -0
  2. package/dist/actions/dataset/blueprintDeletion.js.map +1 -0
  3. package/dist/actions/deploy/deployApp.js +20 -7
  4. package/dist/actions/deploy/deployApp.js.map +1 -1
  5. package/dist/actions/deploy/deployChecks.js +2 -1
  6. package/dist/actions/deploy/deployChecks.js.map +1 -1
  7. package/dist/actions/deploy/deployDashboardConfig.js +11 -5
  8. package/dist/actions/deploy/deployDashboardConfig.js.map +1 -1
  9. package/dist/actions/deploy/deployRunner.js.map +1 -1
  10. package/dist/actions/deploy/deployStudio.js +24 -7
  11. package/dist/actions/deploy/deployStudio.js.map +1 -1
  12. package/dist/actions/deploy/resolveDeployTarget.js +2 -2
  13. package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
  14. package/dist/actions/doctor/checks/cliInstallation.js +21 -6
  15. package/dist/actions/doctor/checks/cliInstallation.js.map +1 -1
  16. package/dist/actions/doctor/types.js.map +1 -1
  17. package/dist/actions/init/initAction.js +1 -0
  18. package/dist/actions/init/initAction.js.map +1 -1
  19. package/dist/actions/init/types.js.map +1 -1
  20. package/dist/actions/targets/resolveCommandTarget.js +133 -0
  21. package/dist/actions/targets/resolveCommandTarget.js.map +1 -0
  22. package/dist/actions/targets/resolveProjectForCommand.js +28 -0
  23. package/dist/actions/targets/resolveProjectForCommand.js.map +1 -0
  24. package/dist/actions/telemetry/resolveConsent.js +5 -5
  25. package/dist/actions/telemetry/resolveConsent.js.map +1 -1
  26. package/dist/actions/telemetry/setConsent.js +1 -1
  27. package/dist/actions/telemetry/setConsent.js.map +1 -1
  28. package/dist/actions/undeploy/runUndeploy.js +19 -3
  29. package/dist/actions/undeploy/runUndeploy.js.map +1 -1
  30. package/dist/commands/build.js +8 -1
  31. package/dist/commands/build.js.map +1 -1
  32. package/dist/commands/datasets/create.js +33 -20
  33. package/dist/commands/datasets/create.js.map +1 -1
  34. package/dist/commands/datasets/delete.js +19 -12
  35. package/dist/commands/datasets/delete.js.map +1 -1
  36. package/dist/commands/datasets/list.js +9 -12
  37. package/dist/commands/datasets/list.js.map +1 -1
  38. package/dist/commands/doctor.js +4 -1
  39. package/dist/commands/doctor.js.map +1 -1
  40. package/dist/commands/documents/query.js +26 -11
  41. package/dist/commands/documents/query.js.map +1 -1
  42. package/dist/commands/init.js +15 -1
  43. package/dist/commands/init.js.map +1 -1
  44. package/dist/prompts/promptForProject.js +9 -3
  45. package/dist/prompts/promptForProject.js.map +1 -1
  46. package/dist/services/blueprints.js +24 -0
  47. package/dist/services/blueprints.js.map +1 -0
  48. package/dist/services/telemetry.js +3 -3
  49. package/dist/services/telemetry.js.map +1 -1
  50. package/dist/util/checkoutBlueprint.js +38 -0
  51. package/dist/util/checkoutBlueprint.js.map +1 -0
  52. package/dist/util/sharedFlags.js +10 -0
  53. package/dist/util/sharedFlags.js.map +1 -1
  54. package/oclif.manifest.json +419 -385
  55. package/package.json +5 -5
  56. package/dist/actions/telemetry/isTrueish.js +0 -10
  57. package/dist/actions/telemetry/isTrueish.js.map +0 -1
@@ -630,6 +630,13 @@
630
630
  "name": "json",
631
631
  "allowNo": false,
632
632
  "type": "boolean"
633
+ },
634
+ "with-blueprints": {
635
+ "description": "Use Blueprint-aware behavior",
636
+ "hidden": true,
637
+ "name": "with-blueprints",
638
+ "allowNo": false,
639
+ "type": "boolean"
633
640
  }
634
641
  },
635
642
  "hasDynamicHelp": false,
@@ -2869,6 +2876,13 @@
2869
2876
  }
2870
2877
  ],
2871
2878
  "flags": {
2879
+ "with-blueprints": {
2880
+ "description": "Use Blueprint-aware behavior",
2881
+ "hidden": true,
2882
+ "name": "with-blueprints",
2883
+ "allowNo": false,
2884
+ "type": "boolean"
2885
+ },
2872
2886
  "project": {
2873
2887
  "aliases": [
2874
2888
  "project-id"
@@ -2902,7 +2916,6 @@
2902
2916
  "visibility": {
2903
2917
  "description": "Set visibility for this dataset (custom/private/public)",
2904
2918
  "name": "visibility",
2905
- "required": false,
2906
2919
  "hasDynamicHelp": false,
2907
2920
  "multiple": false,
2908
2921
  "options": [
@@ -2961,6 +2974,13 @@
2961
2974
  }
2962
2975
  ],
2963
2976
  "flags": {
2977
+ "with-blueprints": {
2978
+ "description": "Use Blueprint-aware behavior",
2979
+ "hidden": true,
2980
+ "name": "with-blueprints",
2981
+ "allowNo": false,
2982
+ "type": "boolean"
2983
+ },
2964
2984
  "project": {
2965
2985
  "aliases": [
2966
2986
  "project-id"
@@ -3302,6 +3322,13 @@
3302
3322
  }
3303
3323
  ],
3304
3324
  "flags": {
3325
+ "with-blueprints": {
3326
+ "description": "Use Blueprint-aware behavior",
3327
+ "hidden": true,
3328
+ "name": "with-blueprints",
3329
+ "allowNo": false,
3330
+ "type": "boolean"
3331
+ },
3305
3332
  "project": {
3306
3333
  "aliases": [
3307
3334
  "project-id"
@@ -3774,6 +3801,13 @@
3774
3801
  "multiple": false,
3775
3802
  "type": "option"
3776
3803
  },
3804
+ "with-blueprints": {
3805
+ "description": "Use Blueprint-aware behavior",
3806
+ "hidden": true,
3807
+ "name": "with-blueprints",
3808
+ "allowNo": false,
3809
+ "type": "boolean"
3810
+ },
3777
3811
  "anonymous": {
3778
3812
  "description": "Send the query without any authorization token",
3779
3813
  "name": "anonymous",
@@ -7549,30 +7583,24 @@
7549
7583
  "rebuild.js"
7550
7584
  ]
7551
7585
  },
7552
- "context:issues:apply": {
7586
+ "context:instructions:create": {
7553
7587
  "aliases": [],
7554
7588
  "args": {
7555
7589
  "knowledgeBaseId": {
7556
7590
  "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7557
7591
  "name": "knowledgeBaseId",
7558
7592
  "required": true
7559
- },
7560
- "issueIds": {
7561
- "description": "The IDs of the issues to accept and apply.",
7562
- "multiple": true,
7563
- "name": "issueIds",
7564
- "required": true
7565
7593
  }
7566
7594
  },
7567
- "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
7595
+ "description": "Creates a standing instruction for how entries built from its documents are written. Every instruction applies to specific documents, set in `scopeDocumentIds`. To rebuild entries under the new instruction right away, pass their paths in `rebuildPaths`. The response includes the rebuild job ID, or `null` if the rebuild could not start. The instruction is saved either way. After the instruction is saved, a background check files issues for entries that contradict it. If you already checked the instruction for contradictions, set `verified` to skip the background check. If the requested rebuild does not start, the background check runs even when `verified` is set.",
7568
7596
  "examples": [
7569
7597
  {
7570
7598
  "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7571
- "description": "Accept and apply issues"
7599
+ "description": "Create an instruction"
7572
7600
  },
7573
7601
  {
7574
7602
  "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7575
- "description": "Accept and apply issues, as JSON"
7603
+ "description": "Create an instruction, as JSON"
7576
7604
  }
7577
7605
  ],
7578
7606
  "flags": {
@@ -7583,35 +7611,77 @@
7583
7611
  "allowNo": false,
7584
7612
  "type": "boolean"
7585
7613
  },
7586
- "watch": {
7587
- "description": "Wait for the job to finish, exiting non-zero if it fails",
7588
- "name": "watch",
7589
- "allowNo": false,
7614
+ "statement": {
7615
+ "description": "The instruction in plain language. Builds follow it over what the sources say.",
7616
+ "name": "statement",
7617
+ "required": true,
7618
+ "hasDynamicHelp": false,
7619
+ "multiple": false,
7620
+ "type": "option"
7621
+ },
7622
+ "scope-document-ids": {
7623
+ "description": "IDs of the documents the instruction applies to. Builds apply it when they write entries built from these documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
7624
+ "name": "scope-document-ids",
7625
+ "required": true,
7626
+ "hasDynamicHelp": false,
7627
+ "multiple": true,
7628
+ "type": "option"
7629
+ },
7630
+ "rebuild-paths": {
7631
+ "description": "Paths of entries to rebuild under the new instruction right away. The response returns the rebuild job ID in `rebuildJobId`.",
7632
+ "name": "rebuild-paths",
7633
+ "hasDynamicHelp": false,
7634
+ "multiple": true,
7635
+ "type": "option"
7636
+ },
7637
+ "verified": {
7638
+ "description": "Whether you already checked the instruction for entries that contradict it. When `true`, the background check that files issues for those entries is skipped. It still runs if the rebuild you requested in `rebuildPaths` does not start.",
7639
+ "name": "verified",
7640
+ "allowNo": true,
7590
7641
  "type": "boolean"
7591
7642
  }
7592
7643
  },
7593
7644
  "hasDynamicHelp": false,
7594
7645
  "hiddenAliases": [],
7595
- "id": "context:issues:apply",
7646
+ "id": "context:instructions:create",
7596
7647
  "pluginAlias": "@sanity/cli",
7597
7648
  "pluginName": "@sanity/cli",
7598
7649
  "pluginType": "core",
7599
7650
  "strict": true,
7600
- "summary": "Accept and apply issues",
7651
+ "summary": "Create an instruction",
7601
7652
  "enableJsonFlag": true,
7602
7653
  "telemetry": {
7603
- "redactedFlags": []
7654
+ "redactedFlags": [
7655
+ {
7656
+ "canonical": "--statement",
7657
+ "flags": [
7658
+ "--statement"
7659
+ ]
7660
+ },
7661
+ {
7662
+ "canonical": "--scope-document-ids",
7663
+ "flags": [
7664
+ "--scope-document-ids"
7665
+ ]
7666
+ },
7667
+ {
7668
+ "canonical": "--rebuild-paths",
7669
+ "flags": [
7670
+ "--rebuild-paths"
7671
+ ]
7672
+ }
7673
+ ]
7604
7674
  },
7605
7675
  "isESM": true,
7606
7676
  "relativePath": [
7607
7677
  "dist",
7608
7678
  "commands",
7609
7679
  "context",
7610
- "issues",
7611
- "apply.js"
7680
+ "instructions",
7681
+ "create.js"
7612
7682
  ]
7613
7683
  },
7614
- "context:issues:dismiss": {
7684
+ "context:instructions:delete": {
7615
7685
  "aliases": [],
7616
7686
  "args": {
7617
7687
  "knowledgeBaseId": {
@@ -7619,21 +7689,21 @@
7619
7689
  "name": "knowledgeBaseId",
7620
7690
  "required": true
7621
7691
  },
7622
- "issueId": {
7623
- "description": "The issue's document ID.",
7624
- "name": "issueId",
7692
+ "instructionId": {
7693
+ "description": "The instruction's ID.",
7694
+ "name": "instructionId",
7625
7695
  "required": true
7626
7696
  }
7627
7697
  },
7628
- "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
7698
+ "description": "Deletes the instruction. Builds stop applying it from the next run. Entries already written under it keep their text until they are rebuilt; pass `rebuild=true` to rebuild every entry built from its documents right away.",
7629
7699
  "examples": [
7630
7700
  {
7631
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
7632
- "description": "Dismiss an issue"
7701
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
7702
+ "description": "Delete an instruction"
7633
7703
  },
7634
7704
  {
7635
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
7636
- "description": "Dismiss an issue, as JSON"
7705
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
7706
+ "description": "Delete an instruction, as JSON"
7637
7707
  }
7638
7708
  ],
7639
7709
  "flags": {
@@ -7643,16 +7713,29 @@
7643
7713
  "name": "json",
7644
7714
  "allowNo": false,
7645
7715
  "type": "boolean"
7716
+ },
7717
+ "rebuild": {
7718
+ "description": "Set to `true` to rebuild every entry built from the instruction's documents once it is deleted, so pages written under the instruction reflect their documents again. The response returns the rebuild job ID in `rebuildJobId`.",
7719
+ "name": "rebuild",
7720
+ "allowNo": true,
7721
+ "type": "boolean"
7722
+ },
7723
+ "yes": {
7724
+ "char": "y",
7725
+ "description": "Skip confirmation prompt (unattended mode)",
7726
+ "name": "yes",
7727
+ "allowNo": false,
7728
+ "type": "boolean"
7646
7729
  }
7647
7730
  },
7648
7731
  "hasDynamicHelp": false,
7649
7732
  "hiddenAliases": [],
7650
- "id": "context:issues:dismiss",
7733
+ "id": "context:instructions:delete",
7651
7734
  "pluginAlias": "@sanity/cli",
7652
7735
  "pluginName": "@sanity/cli",
7653
7736
  "pluginType": "core",
7654
7737
  "strict": true,
7655
- "summary": "Dismiss an issue",
7738
+ "summary": "Delete an instruction",
7656
7739
  "enableJsonFlag": true,
7657
7740
  "telemetry": {
7658
7741
  "redactedFlags": []
@@ -7662,33 +7745,33 @@
7662
7745
  "dist",
7663
7746
  "commands",
7664
7747
  "context",
7665
- "issues",
7666
- "dismiss.js"
7748
+ "instructions",
7749
+ "delete.js"
7667
7750
  ]
7668
7751
  },
7669
- "context:issues:get": {
7752
+ "context:instructions:edit": {
7670
7753
  "aliases": [],
7671
7754
  "args": {
7672
7755
  "knowledgeBaseId": {
7673
- "description": "Knowledge base ID",
7756
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7674
7757
  "name": "knowledgeBaseId",
7675
7758
  "required": true
7676
7759
  },
7677
- "issueId": {
7678
- "description": "Issue ID",
7679
- "name": "issueId",
7760
+ "instructionId": {
7761
+ "description": "The instruction's ID.",
7762
+ "name": "instructionId",
7680
7763
  "required": true
7681
7764
  }
7682
7765
  },
7683
- "description": "Get details of an issue",
7766
+ "description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
7684
7767
  "examples": [
7685
7768
  {
7686
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
7687
- "description": "Get details of a specific issue"
7769
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
7770
+ "description": "Update an instruction"
7688
7771
  },
7689
7772
  {
7690
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
7691
- "description": "Output the issue as JSON"
7773
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
7774
+ "description": "Update an instruction, as JSON"
7692
7775
  }
7693
7776
  ],
7694
7777
  "flags": {
@@ -7698,55 +7781,80 @@
7698
7781
  "name": "json",
7699
7782
  "allowNo": false,
7700
7783
  "type": "boolean"
7784
+ },
7785
+ "statement": {
7786
+ "description": "The new instruction text. Omit it to keep the current text.",
7787
+ "name": "statement",
7788
+ "hasDynamicHelp": false,
7789
+ "multiple": false,
7790
+ "type": "option"
7791
+ },
7792
+ "scope-document-ids": {
7793
+ "description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
7794
+ "name": "scope-document-ids",
7795
+ "hasDynamicHelp": false,
7796
+ "multiple": true,
7797
+ "type": "option"
7701
7798
  }
7702
7799
  },
7703
7800
  "hasDynamicHelp": false,
7704
7801
  "hiddenAliases": [],
7705
- "id": "context:issues:get",
7802
+ "id": "context:instructions:edit",
7706
7803
  "pluginAlias": "@sanity/cli",
7707
7804
  "pluginName": "@sanity/cli",
7708
7805
  "pluginType": "core",
7709
7806
  "strict": true,
7807
+ "summary": "Update an instruction",
7710
7808
  "enableJsonFlag": true,
7809
+ "telemetry": {
7810
+ "redactedFlags": [
7811
+ {
7812
+ "canonical": "--statement",
7813
+ "flags": [
7814
+ "--statement"
7815
+ ]
7816
+ },
7817
+ {
7818
+ "canonical": "--scope-document-ids",
7819
+ "flags": [
7820
+ "--scope-document-ids"
7821
+ ]
7822
+ }
7823
+ ]
7824
+ },
7711
7825
  "isESM": true,
7712
7826
  "relativePath": [
7713
7827
  "dist",
7714
7828
  "commands",
7715
7829
  "context",
7716
- "issues",
7717
- "get.js"
7830
+ "instructions",
7831
+ "edit.js"
7718
7832
  ]
7719
7833
  },
7720
- "context:issues:list": {
7834
+ "context:issues:apply": {
7721
7835
  "aliases": [],
7722
7836
  "args": {
7723
7837
  "knowledgeBaseId": {
7724
- "description": "Knowledge base ID",
7838
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7725
7839
  "name": "knowledgeBaseId",
7726
7840
  "required": true
7841
+ },
7842
+ "issueIds": {
7843
+ "description": "The IDs of the issues to accept and apply.",
7844
+ "multiple": true,
7845
+ "name": "issueIds",
7846
+ "required": true
7727
7847
  }
7728
7848
  },
7729
- "description": "List issues found by knowledge base builds",
7849
+ "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
7730
7850
  "examples": [
7731
7851
  {
7732
- "command": "<%= config.bin %> <%= command.id %> kb-abc123",
7733
- "description": "List all issues for a knowledge base"
7734
- },
7735
- {
7736
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
7737
- "description": "List issues awaiting triage"
7738
- },
7739
- {
7740
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
7741
- "description": "List critical conflicts"
7742
- },
7743
- {
7744
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
7745
- "description": "List issues about entries under billing/"
7852
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7853
+ "description": "Accept and apply issues"
7746
7854
  },
7747
7855
  {
7748
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
7749
- "description": "Output issues as JSON"
7856
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7857
+ "description": "Accept and apply issues, as JSON"
7750
7858
  }
7751
7859
  ],
7752
7860
  "flags": {
@@ -7757,67 +7865,35 @@
7757
7865
  "allowNo": false,
7758
7866
  "type": "boolean"
7759
7867
  },
7760
- "kind": {
7761
- "description": "Only list issues of this kind",
7762
- "name": "kind",
7763
- "hasDynamicHelp": false,
7764
- "multiple": false,
7765
- "options": [
7766
- "conflict",
7767
- "update_required"
7768
- ],
7769
- "type": "option"
7770
- },
7771
- "scope": {
7772
- "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
7773
- "name": "scope",
7774
- "hasDynamicHelp": false,
7775
- "helpValue": "<path>",
7776
- "multiple": false,
7777
- "type": "option"
7778
- },
7779
- "severity": {
7780
- "description": "Only list issues of this severity",
7781
- "name": "severity",
7782
- "hasDynamicHelp": false,
7783
- "multiple": false,
7784
- "options": [
7785
- "critical",
7786
- "suggestion"
7787
- ],
7788
- "type": "option"
7789
- },
7790
- "status": {
7791
- "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
7792
- "name": "status",
7793
- "hasDynamicHelp": false,
7794
- "multiple": false,
7795
- "options": [
7796
- "open",
7797
- "accepted",
7798
- "rejected"
7799
- ],
7800
- "type": "option"
7868
+ "watch": {
7869
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
7870
+ "name": "watch",
7871
+ "allowNo": false,
7872
+ "type": "boolean"
7801
7873
  }
7802
7874
  },
7803
7875
  "hasDynamicHelp": false,
7804
7876
  "hiddenAliases": [],
7805
- "id": "context:issues:list",
7877
+ "id": "context:issues:apply",
7806
7878
  "pluginAlias": "@sanity/cli",
7807
7879
  "pluginName": "@sanity/cli",
7808
7880
  "pluginType": "core",
7809
7881
  "strict": true,
7882
+ "summary": "Accept and apply issues",
7810
7883
  "enableJsonFlag": true,
7884
+ "telemetry": {
7885
+ "redactedFlags": []
7886
+ },
7811
7887
  "isESM": true,
7812
7888
  "relativePath": [
7813
7889
  "dist",
7814
7890
  "commands",
7815
7891
  "context",
7816
7892
  "issues",
7817
- "list.js"
7893
+ "apply.js"
7818
7894
  ]
7819
7895
  },
7820
- "context:issues:reopen": {
7896
+ "context:issues:dismiss": {
7821
7897
  "aliases": [],
7822
7898
  "args": {
7823
7899
  "knowledgeBaseId": {
@@ -7831,15 +7907,15 @@
7831
7907
  "required": true
7832
7908
  }
7833
7909
  },
7834
- "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
7910
+ "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
7835
7911
  "examples": [
7836
7912
  {
7837
7913
  "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
7838
- "description": "Reopen an accepted conflict"
7914
+ "description": "Dismiss an issue"
7839
7915
  },
7840
7916
  {
7841
7917
  "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
7842
- "description": "Reopen an accepted conflict, as JSON"
7918
+ "description": "Dismiss an issue, as JSON"
7843
7919
  }
7844
7920
  ],
7845
7921
  "flags": {
@@ -7853,12 +7929,12 @@
7853
7929
  },
7854
7930
  "hasDynamicHelp": false,
7855
7931
  "hiddenAliases": [],
7856
- "id": "context:issues:reopen",
7932
+ "id": "context:issues:dismiss",
7857
7933
  "pluginAlias": "@sanity/cli",
7858
7934
  "pluginName": "@sanity/cli",
7859
7935
  "pluginType": "core",
7860
7936
  "strict": true,
7861
- "summary": "Reopen an accepted conflict",
7937
+ "summary": "Dismiss an issue",
7862
7938
  "enableJsonFlag": true,
7863
7939
  "telemetry": {
7864
7940
  "redactedFlags": []
@@ -7869,32 +7945,32 @@
7869
7945
  "commands",
7870
7946
  "context",
7871
7947
  "issues",
7872
- "reopen.js"
7948
+ "dismiss.js"
7873
7949
  ]
7874
7950
  },
7875
- "context:issues:resolve": {
7951
+ "context:issues:get": {
7876
7952
  "aliases": [],
7877
7953
  "args": {
7878
7954
  "knowledgeBaseId": {
7879
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7955
+ "description": "Knowledge base ID",
7880
7956
  "name": "knowledgeBaseId",
7881
7957
  "required": true
7882
7958
  },
7883
7959
  "issueId": {
7884
- "description": "The issue's document ID.",
7960
+ "description": "Issue ID",
7885
7961
  "name": "issueId",
7886
7962
  "required": true
7887
7963
  }
7888
7964
  },
7889
- "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
7965
+ "description": "Get details of an issue",
7890
7966
  "examples": [
7891
7967
  {
7892
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
7893
- "description": "Choose the correct side interactively"
7968
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
7969
+ "description": "Get details of a specific issue"
7894
7970
  },
7895
7971
  {
7896
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
7897
- "description": "Choose side 1 and wait for the entry rewrite"
7972
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
7973
+ "description": "Output the issue as JSON"
7898
7974
  }
7899
7975
  ],
7900
7976
  "flags": {
@@ -7904,64 +7980,55 @@
7904
7980
  "name": "json",
7905
7981
  "allowNo": false,
7906
7982
  "type": "boolean"
7907
- },
7908
- "watch": {
7909
- "description": "Wait for the job to finish, exiting non-zero if it fails",
7910
- "name": "watch",
7911
- "allowNo": false,
7912
- "type": "boolean"
7913
- },
7914
- "side": {
7915
- "description": "Index of the correct side, as listed by `sanity context issues get`",
7916
- "name": "side",
7917
- "hasDynamicHelp": false,
7918
- "multiple": false,
7919
- "type": "option"
7920
7983
  }
7921
7984
  },
7922
7985
  "hasDynamicHelp": false,
7923
7986
  "hiddenAliases": [],
7924
- "id": "context:issues:resolve",
7987
+ "id": "context:issues:get",
7925
7988
  "pluginAlias": "@sanity/cli",
7926
7989
  "pluginName": "@sanity/cli",
7927
7990
  "pluginType": "core",
7928
- "summary": "Resolve a conflict issue",
7991
+ "strict": true,
7929
7992
  "enableJsonFlag": true,
7930
- "telemetry": {
7931
- "redactedFlags": []
7932
- },
7933
7993
  "isESM": true,
7934
7994
  "relativePath": [
7935
7995
  "dist",
7936
7996
  "commands",
7937
7997
  "context",
7938
7998
  "issues",
7939
- "resolve.js"
7999
+ "get.js"
7940
8000
  ]
7941
8001
  },
7942
- "context:jobs:get": {
8002
+ "context:issues:list": {
7943
8003
  "aliases": [],
7944
8004
  "args": {
7945
8005
  "knowledgeBaseId": {
7946
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8006
+ "description": "Knowledge base ID",
7947
8007
  "name": "knowledgeBaseId",
7948
8008
  "required": true
7949
- },
7950
- "jobId": {
7951
- "description": "The job ID returned by the endpoint that started the work.",
7952
- "name": "jobId",
7953
- "required": true
7954
8009
  }
7955
8010
  },
7956
- "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
8011
+ "description": "List issues found by knowledge base builds",
7957
8012
  "examples": [
7958
8013
  {
7959
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
7960
- "description": "Get a job"
8014
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8015
+ "description": "List all issues for a knowledge base"
7961
8016
  },
7962
8017
  {
7963
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
7964
- "description": "Get a job, as JSON"
8018
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
8019
+ "description": "List issues awaiting triage"
8020
+ },
8021
+ {
8022
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
8023
+ "description": "List critical conflicts"
8024
+ },
8025
+ {
8026
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
8027
+ "description": "List issues about entries under billing/"
8028
+ },
8029
+ {
8030
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8031
+ "description": "Output issues as JSON"
7965
8032
  }
7966
8033
  ],
7967
8034
  "flags": {
@@ -7972,52 +8039,89 @@
7972
8039
  "allowNo": false,
7973
8040
  "type": "boolean"
7974
8041
  },
7975
- "watch": {
7976
- "description": "Wait for the job to finish, exiting non-zero if it fails",
7977
- "name": "watch",
7978
- "allowNo": false,
7979
- "type": "boolean"
8042
+ "kind": {
8043
+ "description": "Only list issues of this kind",
8044
+ "name": "kind",
8045
+ "hasDynamicHelp": false,
8046
+ "multiple": false,
8047
+ "options": [
8048
+ "conflict",
8049
+ "update_required"
8050
+ ],
8051
+ "type": "option"
8052
+ },
8053
+ "scope": {
8054
+ "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
8055
+ "name": "scope",
8056
+ "hasDynamicHelp": false,
8057
+ "helpValue": "<path>",
8058
+ "multiple": false,
8059
+ "type": "option"
8060
+ },
8061
+ "severity": {
8062
+ "description": "Only list issues of this severity",
8063
+ "name": "severity",
8064
+ "hasDynamicHelp": false,
8065
+ "multiple": false,
8066
+ "options": [
8067
+ "critical",
8068
+ "suggestion"
8069
+ ],
8070
+ "type": "option"
8071
+ },
8072
+ "status": {
8073
+ "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8074
+ "name": "status",
8075
+ "hasDynamicHelp": false,
8076
+ "multiple": false,
8077
+ "options": [
8078
+ "open",
8079
+ "accepted",
8080
+ "rejected"
8081
+ ],
8082
+ "type": "option"
7980
8083
  }
7981
8084
  },
7982
8085
  "hasDynamicHelp": false,
7983
8086
  "hiddenAliases": [],
7984
- "id": "context:jobs:get",
8087
+ "id": "context:issues:list",
7985
8088
  "pluginAlias": "@sanity/cli",
7986
8089
  "pluginName": "@sanity/cli",
7987
8090
  "pluginType": "core",
7988
8091
  "strict": true,
7989
- "summary": "Get a job",
7990
8092
  "enableJsonFlag": true,
7991
- "telemetry": {
7992
- "redactedFlags": []
7993
- },
7994
8093
  "isESM": true,
7995
8094
  "relativePath": [
7996
8095
  "dist",
7997
8096
  "commands",
7998
8097
  "context",
7999
- "jobs",
8000
- "get.js"
8098
+ "issues",
8099
+ "list.js"
8001
8100
  ]
8002
8101
  },
8003
- "context:instructions:create": {
8102
+ "context:issues:reopen": {
8004
8103
  "aliases": [],
8005
8104
  "args": {
8006
8105
  "knowledgeBaseId": {
8007
8106
  "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8008
8107
  "name": "knowledgeBaseId",
8009
8108
  "required": true
8109
+ },
8110
+ "issueId": {
8111
+ "description": "The issue's document ID.",
8112
+ "name": "issueId",
8113
+ "required": true
8010
8114
  }
8011
8115
  },
8012
- "description": "Creates a standing instruction for how entries built from its documents are written. Every instruction applies to specific documents, set in `scopeDocumentIds`. To rebuild entries under the new instruction right away, pass their paths in `rebuildPaths`. The response includes the rebuild job ID, or `null` if the rebuild could not start. The instruction is saved either way. After the instruction is saved, a background check files issues for entries that contradict it. If you already checked the instruction for contradictions, set `verified` to skip the background check. If the requested rebuild does not start, the background check runs even when `verified` is set.",
8116
+ "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
8013
8117
  "examples": [
8014
8118
  {
8015
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
8016
- "description": "Create an instruction"
8119
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8120
+ "description": "Reopen an accepted conflict"
8017
8121
  },
8018
8122
  {
8019
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
8020
- "description": "Create an instruction, as JSON"
8123
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8124
+ "description": "Reopen an accepted conflict, as JSON"
8021
8125
  }
8022
8126
  ],
8023
8127
  "flags": {
@@ -8027,78 +8131,30 @@
8027
8131
  "name": "json",
8028
8132
  "allowNo": false,
8029
8133
  "type": "boolean"
8030
- },
8031
- "statement": {
8032
- "description": "The instruction in plain language. Builds follow it over what the sources say.",
8033
- "name": "statement",
8034
- "required": true,
8035
- "hasDynamicHelp": false,
8036
- "multiple": false,
8037
- "type": "option"
8038
- },
8039
- "scope-document-ids": {
8040
- "description": "IDs of the documents the instruction applies to. Builds apply it when they write entries built from these documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
8041
- "name": "scope-document-ids",
8042
- "required": true,
8043
- "hasDynamicHelp": false,
8044
- "multiple": true,
8045
- "type": "option"
8046
- },
8047
- "rebuild-paths": {
8048
- "description": "Paths of entries to rebuild under the new instruction right away. The response returns the rebuild job ID in `rebuildJobId`.",
8049
- "name": "rebuild-paths",
8050
- "hasDynamicHelp": false,
8051
- "multiple": true,
8052
- "type": "option"
8053
- },
8054
- "verified": {
8055
- "description": "Whether you already checked the instruction for entries that contradict it. When `true`, the background check that files issues for those entries is skipped. It still runs if the rebuild you requested in `rebuildPaths` does not start.",
8056
- "name": "verified",
8057
- "allowNo": true,
8058
- "type": "boolean"
8059
8134
  }
8060
8135
  },
8061
8136
  "hasDynamicHelp": false,
8062
8137
  "hiddenAliases": [],
8063
- "id": "context:instructions:create",
8138
+ "id": "context:issues:reopen",
8064
8139
  "pluginAlias": "@sanity/cli",
8065
8140
  "pluginName": "@sanity/cli",
8066
8141
  "pluginType": "core",
8067
8142
  "strict": true,
8068
- "summary": "Create an instruction",
8143
+ "summary": "Reopen an accepted conflict",
8069
8144
  "enableJsonFlag": true,
8070
8145
  "telemetry": {
8071
- "redactedFlags": [
8072
- {
8073
- "canonical": "--statement",
8074
- "flags": [
8075
- "--statement"
8076
- ]
8077
- },
8078
- {
8079
- "canonical": "--scope-document-ids",
8080
- "flags": [
8081
- "--scope-document-ids"
8082
- ]
8083
- },
8084
- {
8085
- "canonical": "--rebuild-paths",
8086
- "flags": [
8087
- "--rebuild-paths"
8088
- ]
8089
- }
8090
- ]
8146
+ "redactedFlags": []
8091
8147
  },
8092
8148
  "isESM": true,
8093
8149
  "relativePath": [
8094
8150
  "dist",
8095
8151
  "commands",
8096
8152
  "context",
8097
- "instructions",
8098
- "create.js"
8153
+ "issues",
8154
+ "reopen.js"
8099
8155
  ]
8100
8156
  },
8101
- "context:instructions:delete": {
8157
+ "context:issues:resolve": {
8102
8158
  "aliases": [],
8103
8159
  "args": {
8104
8160
  "knowledgeBaseId": {
@@ -8106,21 +8162,21 @@
8106
8162
  "name": "knowledgeBaseId",
8107
8163
  "required": true
8108
8164
  },
8109
- "instructionId": {
8110
- "description": "The instruction's ID.",
8111
- "name": "instructionId",
8165
+ "issueId": {
8166
+ "description": "The issue's document ID.",
8167
+ "name": "issueId",
8112
8168
  "required": true
8113
8169
  }
8114
8170
  },
8115
- "description": "Deletes the instruction. Builds stop applying it from the next run. Entries already written under it keep their text until they are rebuilt; pass `rebuild=true` to rebuild every entry built from its documents right away.",
8171
+ "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
8116
8172
  "examples": [
8117
8173
  {
8118
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
8119
- "description": "Delete an instruction"
8174
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8175
+ "description": "Choose the correct side interactively"
8120
8176
  },
8121
8177
  {
8122
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
8123
- "description": "Delete an instruction, as JSON"
8178
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8179
+ "description": "Choose side 1 and wait for the entry rewrite"
8124
8180
  }
8125
8181
  ],
8126
8182
  "flags": {
@@ -8131,28 +8187,27 @@
8131
8187
  "allowNo": false,
8132
8188
  "type": "boolean"
8133
8189
  },
8134
- "rebuild": {
8135
- "description": "Set to `true` to rebuild every entry built from the instruction's documents once it is deleted, so pages written under the instruction reflect their documents again. The response returns the rebuild job ID in `rebuildJobId`.",
8136
- "name": "rebuild",
8137
- "allowNo": true,
8138
- "type": "boolean"
8139
- },
8140
- "yes": {
8141
- "char": "y",
8142
- "description": "Skip confirmation prompt (unattended mode)",
8143
- "name": "yes",
8190
+ "watch": {
8191
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8192
+ "name": "watch",
8144
8193
  "allowNo": false,
8145
8194
  "type": "boolean"
8195
+ },
8196
+ "side": {
8197
+ "description": "Index of the correct side, as listed by `sanity context issues get`",
8198
+ "name": "side",
8199
+ "hasDynamicHelp": false,
8200
+ "multiple": false,
8201
+ "type": "option"
8146
8202
  }
8147
8203
  },
8148
8204
  "hasDynamicHelp": false,
8149
8205
  "hiddenAliases": [],
8150
- "id": "context:instructions:delete",
8206
+ "id": "context:issues:resolve",
8151
8207
  "pluginAlias": "@sanity/cli",
8152
8208
  "pluginName": "@sanity/cli",
8153
8209
  "pluginType": "core",
8154
- "strict": true,
8155
- "summary": "Delete an instruction",
8210
+ "summary": "Resolve a conflict issue",
8156
8211
  "enableJsonFlag": true,
8157
8212
  "telemetry": {
8158
8213
  "redactedFlags": []
@@ -8162,11 +8217,11 @@
8162
8217
  "dist",
8163
8218
  "commands",
8164
8219
  "context",
8165
- "instructions",
8166
- "delete.js"
8220
+ "issues",
8221
+ "resolve.js"
8167
8222
  ]
8168
8223
  },
8169
- "context:instructions:edit": {
8224
+ "context:jobs:get": {
8170
8225
  "aliases": [],
8171
8226
  "args": {
8172
8227
  "knowledgeBaseId": {
@@ -8174,21 +8229,21 @@
8174
8229
  "name": "knowledgeBaseId",
8175
8230
  "required": true
8176
8231
  },
8177
- "instructionId": {
8178
- "description": "The instruction's ID.",
8179
- "name": "instructionId",
8232
+ "jobId": {
8233
+ "description": "The job ID returned by the endpoint that started the work.",
8234
+ "name": "jobId",
8180
8235
  "required": true
8181
8236
  }
8182
8237
  },
8183
- "description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
8238
+ "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
8184
8239
  "examples": [
8185
8240
  {
8186
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
8187
- "description": "Update an instruction"
8241
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
8242
+ "description": "Get a job"
8188
8243
  },
8189
8244
  {
8190
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
8191
- "description": "Update an instruction, as JSON"
8245
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
8246
+ "description": "Get a job, as JSON"
8192
8247
  }
8193
8248
  ],
8194
8249
  "flags": {
@@ -8199,53 +8254,32 @@
8199
8254
  "allowNo": false,
8200
8255
  "type": "boolean"
8201
8256
  },
8202
- "statement": {
8203
- "description": "The new instruction text. Omit it to keep the current text.",
8204
- "name": "statement",
8205
- "hasDynamicHelp": false,
8206
- "multiple": false,
8207
- "type": "option"
8208
- },
8209
- "scope-document-ids": {
8210
- "description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
8211
- "name": "scope-document-ids",
8212
- "hasDynamicHelp": false,
8213
- "multiple": true,
8214
- "type": "option"
8257
+ "watch": {
8258
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8259
+ "name": "watch",
8260
+ "allowNo": false,
8261
+ "type": "boolean"
8215
8262
  }
8216
8263
  },
8217
8264
  "hasDynamicHelp": false,
8218
8265
  "hiddenAliases": [],
8219
- "id": "context:instructions:edit",
8266
+ "id": "context:jobs:get",
8220
8267
  "pluginAlias": "@sanity/cli",
8221
8268
  "pluginName": "@sanity/cli",
8222
8269
  "pluginType": "core",
8223
8270
  "strict": true,
8224
- "summary": "Update an instruction",
8271
+ "summary": "Get a job",
8225
8272
  "enableJsonFlag": true,
8226
8273
  "telemetry": {
8227
- "redactedFlags": [
8228
- {
8229
- "canonical": "--statement",
8230
- "flags": [
8231
- "--statement"
8232
- ]
8233
- },
8234
- {
8235
- "canonical": "--scope-document-ids",
8236
- "flags": [
8237
- "--scope-document-ids"
8238
- ]
8239
- }
8240
- ]
8274
+ "redactedFlags": []
8241
8275
  },
8242
8276
  "isESM": true,
8243
8277
  "relativePath": [
8244
8278
  "dist",
8245
8279
  "commands",
8246
8280
  "context",
8247
- "instructions",
8248
- "edit.js"
8281
+ "jobs",
8282
+ "get.js"
8249
8283
  ]
8250
8284
  },
8251
8285
  "context:mcp:create": {
@@ -9886,20 +9920,20 @@
9886
9920
  "unlink.js"
9887
9921
  ]
9888
9922
  },
9889
- "datasets:visibility:get": {
9923
+ "datasets:embeddings:disable": {
9890
9924
  "aliases": [],
9891
9925
  "args": {
9892
9926
  "dataset": {
9893
- "description": "The name of the dataset to get visibility for",
9927
+ "description": "Dataset name to disable embeddings for",
9894
9928
  "name": "dataset",
9895
- "required": true
9929
+ "required": false
9896
9930
  }
9897
9931
  },
9898
- "description": "Get the visibility of a dataset",
9932
+ "description": "Disable embeddings for a dataset",
9899
9933
  "examples": [
9900
9934
  {
9901
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
9902
- "description": "Check the visibility of a dataset"
9935
+ "command": "<%= config.bin %> <%= command.id %> production",
9936
+ "description": "Disable embeddings for the production dataset"
9903
9937
  }
9904
9938
  ],
9905
9939
  "flags": {
@@ -9909,7 +9943,7 @@
9909
9943
  ],
9910
9944
  "char": "p",
9911
9945
  "deprecateAliases": true,
9912
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
9946
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
9913
9947
  "helpGroup": "OVERRIDE",
9914
9948
  "name": "project",
9915
9949
  "hasDynamicHelp": false,
@@ -9920,9 +9954,9 @@
9920
9954
  },
9921
9955
  "hasDynamicHelp": false,
9922
9956
  "hiddenAliases": [
9923
- "dataset:visibility:get"
9957
+ "dataset:embeddings:disable"
9924
9958
  ],
9925
- "id": "datasets:visibility:get",
9959
+ "id": "datasets:embeddings:disable",
9926
9960
  "pluginAlias": "@sanity/cli",
9927
9961
  "pluginName": "@sanity/cli",
9928
9962
  "pluginType": "core",
@@ -9932,37 +9966,32 @@
9932
9966
  "dist",
9933
9967
  "commands",
9934
9968
  "datasets",
9935
- "visibility",
9936
- "get.js"
9969
+ "embeddings",
9970
+ "disable.js"
9937
9971
  ]
9938
9972
  },
9939
- "datasets:visibility:set": {
9973
+ "datasets:embeddings:enable": {
9940
9974
  "aliases": [],
9941
9975
  "args": {
9942
9976
  "dataset": {
9943
- "description": "The name of the dataset to set visibility for",
9977
+ "description": "Dataset name to enable embeddings for",
9944
9978
  "name": "dataset",
9945
- "required": true
9946
- },
9947
- "mode": {
9948
- "description": "The visibility mode to set",
9949
- "name": "mode",
9950
- "options": [
9951
- "public",
9952
- "private"
9953
- ],
9954
- "required": true
9979
+ "required": false
9955
9980
  }
9956
9981
  },
9957
- "description": "Set the visibility of a dataset",
9982
+ "description": "Enable embeddings for a dataset",
9958
9983
  "examples": [
9959
9984
  {
9960
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
9961
- "description": "Make a dataset private"
9985
+ "command": "<%= config.bin %> <%= command.id %> production",
9986
+ "description": "Enable embeddings for the production dataset"
9962
9987
  },
9963
9988
  {
9964
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
9965
- "description": "Make a dataset public"
9989
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
9990
+ "description": "Enable embeddings with a specific projection"
9991
+ },
9992
+ {
9993
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
9994
+ "description": "Enable embeddings and wait for processing to complete"
9966
9995
  }
9967
9996
  ],
9968
9997
  "flags": {
@@ -9972,47 +10001,71 @@
9972
10001
  ],
9973
10002
  "char": "p",
9974
10003
  "deprecateAliases": true,
9975
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
10004
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
9976
10005
  "helpGroup": "OVERRIDE",
9977
10006
  "name": "project",
9978
10007
  "hasDynamicHelp": false,
9979
10008
  "helpValue": "<id>",
9980
10009
  "multiple": false,
9981
10010
  "type": "option"
10011
+ },
10012
+ "projection": {
10013
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
10014
+ "name": "projection",
10015
+ "required": false,
10016
+ "hasDynamicHelp": false,
10017
+ "multiple": false,
10018
+ "type": "option"
10019
+ },
10020
+ "wait": {
10021
+ "description": "Wait for embeddings processing to complete before returning",
10022
+ "name": "wait",
10023
+ "allowNo": false,
10024
+ "type": "boolean"
9982
10025
  }
9983
10026
  },
9984
10027
  "hasDynamicHelp": false,
9985
10028
  "hiddenAliases": [
9986
- "dataset:visibility:set"
10029
+ "dataset:embeddings:enable"
9987
10030
  ],
9988
- "id": "datasets:visibility:set",
10031
+ "id": "datasets:embeddings:enable",
9989
10032
  "pluginAlias": "@sanity/cli",
9990
10033
  "pluginName": "@sanity/cli",
9991
10034
  "pluginType": "core",
9992
10035
  "strict": true,
10036
+ "telemetry": {
10037
+ "redactedFlags": [
10038
+ {
10039
+ "canonical": "--projection",
10040
+ "flags": [
10041
+ "--projection"
10042
+ ]
10043
+ }
10044
+ ]
10045
+ },
9993
10046
  "isESM": true,
9994
10047
  "relativePath": [
9995
10048
  "dist",
9996
10049
  "commands",
9997
10050
  "datasets",
9998
- "visibility",
9999
- "set.js"
10051
+ "embeddings",
10052
+ "enable.js"
10000
10053
  ]
10001
10054
  },
10002
- "datasets:embeddings:disable": {
10055
+ "datasets:embeddings:status": {
10003
10056
  "aliases": [],
10004
10057
  "args": {
10005
10058
  "dataset": {
10006
- "description": "Dataset name to disable embeddings for",
10059
+ "description": "The name of the dataset to check embeddings status for",
10007
10060
  "name": "dataset",
10008
10061
  "required": false
10009
10062
  }
10010
10063
  },
10011
- "description": "Disable embeddings for a dataset",
10064
+ "description": "Show embeddings settings and status for a dataset",
10012
10065
  "examples": [
10013
10066
  {
10014
10067
  "command": "<%= config.bin %> <%= command.id %> production",
10015
- "description": "Disable embeddings for the production dataset"
10068
+ "description": "Show embeddings status for the production dataset"
10016
10069
  }
10017
10070
  ],
10018
10071
  "flags": {
@@ -10022,7 +10075,7 @@
10022
10075
  ],
10023
10076
  "char": "p",
10024
10077
  "deprecateAliases": true,
10025
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
10078
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
10026
10079
  "helpGroup": "OVERRIDE",
10027
10080
  "name": "project",
10028
10081
  "hasDynamicHelp": false,
@@ -10033,9 +10086,9 @@
10033
10086
  },
10034
10087
  "hasDynamicHelp": false,
10035
10088
  "hiddenAliases": [
10036
- "dataset:embeddings:disable"
10089
+ "dataset:embeddings:status"
10037
10090
  ],
10038
- "id": "datasets:embeddings:disable",
10091
+ "id": "datasets:embeddings:status",
10039
10092
  "pluginAlias": "@sanity/cli",
10040
10093
  "pluginName": "@sanity/cli",
10041
10094
  "pluginType": "core",
@@ -10046,31 +10099,23 @@
10046
10099
  "commands",
10047
10100
  "datasets",
10048
10101
  "embeddings",
10049
- "disable.js"
10102
+ "status.js"
10050
10103
  ]
10051
10104
  },
10052
- "datasets:embeddings:enable": {
10105
+ "datasets:visibility:get": {
10053
10106
  "aliases": [],
10054
10107
  "args": {
10055
10108
  "dataset": {
10056
- "description": "Dataset name to enable embeddings for",
10109
+ "description": "The name of the dataset to get visibility for",
10057
10110
  "name": "dataset",
10058
- "required": false
10111
+ "required": true
10059
10112
  }
10060
10113
  },
10061
- "description": "Enable embeddings for a dataset",
10114
+ "description": "Get the visibility of a dataset",
10062
10115
  "examples": [
10063
10116
  {
10064
- "command": "<%= config.bin %> <%= command.id %> production",
10065
- "description": "Enable embeddings for the production dataset"
10066
- },
10067
- {
10068
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
10069
- "description": "Enable embeddings with a specific projection"
10070
- },
10071
- {
10072
- "command": "<%= config.bin %> <%= command.id %> production --wait",
10073
- "description": "Enable embeddings and wait for processing to complete"
10117
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
10118
+ "description": "Check the visibility of a dataset"
10074
10119
  }
10075
10120
  ],
10076
10121
  "flags": {
@@ -10080,71 +10125,60 @@
10080
10125
  ],
10081
10126
  "char": "p",
10082
10127
  "deprecateAliases": true,
10083
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
10128
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
10084
10129
  "helpGroup": "OVERRIDE",
10085
10130
  "name": "project",
10086
10131
  "hasDynamicHelp": false,
10087
10132
  "helpValue": "<id>",
10088
10133
  "multiple": false,
10089
10134
  "type": "option"
10090
- },
10091
- "projection": {
10092
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
10093
- "name": "projection",
10094
- "required": false,
10095
- "hasDynamicHelp": false,
10096
- "multiple": false,
10097
- "type": "option"
10098
- },
10099
- "wait": {
10100
- "description": "Wait for embeddings processing to complete before returning",
10101
- "name": "wait",
10102
- "allowNo": false,
10103
- "type": "boolean"
10104
10135
  }
10105
10136
  },
10106
10137
  "hasDynamicHelp": false,
10107
10138
  "hiddenAliases": [
10108
- "dataset:embeddings:enable"
10139
+ "dataset:visibility:get"
10109
10140
  ],
10110
- "id": "datasets:embeddings:enable",
10141
+ "id": "datasets:visibility:get",
10111
10142
  "pluginAlias": "@sanity/cli",
10112
10143
  "pluginName": "@sanity/cli",
10113
10144
  "pluginType": "core",
10114
10145
  "strict": true,
10115
- "telemetry": {
10116
- "redactedFlags": [
10117
- {
10118
- "canonical": "--projection",
10119
- "flags": [
10120
- "--projection"
10121
- ]
10122
- }
10123
- ]
10124
- },
10125
10146
  "isESM": true,
10126
10147
  "relativePath": [
10127
10148
  "dist",
10128
10149
  "commands",
10129
10150
  "datasets",
10130
- "embeddings",
10131
- "enable.js"
10151
+ "visibility",
10152
+ "get.js"
10132
10153
  ]
10133
10154
  },
10134
- "datasets:embeddings:status": {
10155
+ "datasets:visibility:set": {
10135
10156
  "aliases": [],
10136
10157
  "args": {
10137
10158
  "dataset": {
10138
- "description": "The name of the dataset to check embeddings status for",
10159
+ "description": "The name of the dataset to set visibility for",
10139
10160
  "name": "dataset",
10140
- "required": false
10161
+ "required": true
10162
+ },
10163
+ "mode": {
10164
+ "description": "The visibility mode to set",
10165
+ "name": "mode",
10166
+ "options": [
10167
+ "public",
10168
+ "private"
10169
+ ],
10170
+ "required": true
10141
10171
  }
10142
10172
  },
10143
- "description": "Show embeddings settings and status for a dataset",
10173
+ "description": "Set the visibility of a dataset",
10144
10174
  "examples": [
10145
10175
  {
10146
- "command": "<%= config.bin %> <%= command.id %> production",
10147
- "description": "Show embeddings status for the production dataset"
10176
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
10177
+ "description": "Make a dataset private"
10178
+ },
10179
+ {
10180
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
10181
+ "description": "Make a dataset public"
10148
10182
  }
10149
10183
  ],
10150
10184
  "flags": {
@@ -10154,7 +10188,7 @@
10154
10188
  ],
10155
10189
  "char": "p",
10156
10190
  "deprecateAliases": true,
10157
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
10191
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
10158
10192
  "helpGroup": "OVERRIDE",
10159
10193
  "name": "project",
10160
10194
  "hasDynamicHelp": false,
@@ -10165,9 +10199,9 @@
10165
10199
  },
10166
10200
  "hasDynamicHelp": false,
10167
10201
  "hiddenAliases": [
10168
- "dataset:embeddings:status"
10202
+ "dataset:visibility:set"
10169
10203
  ],
10170
- "id": "datasets:embeddings:status",
10204
+ "id": "datasets:visibility:set",
10171
10205
  "pluginAlias": "@sanity/cli",
10172
10206
  "pluginName": "@sanity/cli",
10173
10207
  "pluginType": "core",
@@ -10177,8 +10211,8 @@
10177
10211
  "dist",
10178
10212
  "commands",
10179
10213
  "datasets",
10180
- "embeddings",
10181
- "status.js"
10214
+ "visibility",
10215
+ "set.js"
10182
10216
  ]
10183
10217
  },
10184
10218
  "context:sources:syncs:confirm": {
@@ -10428,5 +10462,5 @@
10428
10462
  ]
10429
10463
  }
10430
10464
  },
10431
- "version": "8.36.0"
10465
+ "version": "8.37.1"
10432
10466
  }