@inf-monkeys-tech/monkeys-cli 0.11.0 → 0.11.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 (69) hide show
  1. package/dist/command-support/asset-feature-backfill.d.ts +20 -4
  2. package/dist/command-support/asset-feature-backfill.d.ts.map +1 -1
  3. package/dist/commands/data/asset/list.d.ts.map +1 -1
  4. package/dist/commands/data/asset/list.js +9 -5
  5. package/dist/commands/data/asset/list.js.map +1 -1
  6. package/dist/commands/data/asset/search.d.ts.map +1 -1
  7. package/dist/commands/data/asset/search.js +9 -5
  8. package/dist/commands/data/asset/search.js.map +1 -1
  9. package/dist/commands/data/view/rows.d.ts.map +1 -1
  10. package/dist/commands/data/view/rows.js +9 -5
  11. package/dist/commands/data/view/rows.js.map +1 -1
  12. package/dist/data/asset-jsonl-import.d.ts +50 -10
  13. package/dist/data/asset-jsonl-import.d.ts.map +1 -1
  14. package/dist/data/asset-jsonl-import.js +13 -2
  15. package/dist/data/asset-jsonl-import.js.map +1 -1
  16. package/dist/data/client.d.ts +21 -3
  17. package/dist/data/client.d.ts.map +1 -1
  18. package/dist/data/client.js +132 -21
  19. package/dist/data/client.js.map +1 -1
  20. package/dist/data/command.d.ts +36 -6
  21. package/dist/data/command.d.ts.map +1 -1
  22. package/dist/data/command.js +81 -15
  23. package/dist/data/command.js.map +1 -1
  24. package/dist/data/contracts.d.ts +1 -0
  25. package/dist/data/contracts.d.ts.map +1 -1
  26. package/dist/data/contracts.js +6 -0
  27. package/dist/data/contracts.js.map +1 -1
  28. package/dist/data/cursor.d.ts +5 -1
  29. package/dist/data/cursor.d.ts.map +1 -1
  30. package/dist/data/cursor.js +12 -6
  31. package/dist/data/cursor.js.map +1 -1
  32. package/dist/data/kernel-bindings.d.ts.map +1 -1
  33. package/dist/data/kernel-bindings.js +1 -0
  34. package/dist/data/kernel-bindings.js.map +1 -1
  35. package/dist/data/ontology-command.d.ts +80 -16
  36. package/dist/data/ontology-command.d.ts.map +1 -1
  37. package/dist/data/perspective.d.ts +10 -5
  38. package/dist/data/perspective.d.ts.map +1 -1
  39. package/dist/data/perspective.js +50 -57
  40. package/dist/data/perspective.js.map +1 -1
  41. package/dist/data/resource-locator.d.ts.map +1 -1
  42. package/dist/data/resource-locator.js +9 -7
  43. package/dist/data/resource-locator.js.map +1 -1
  44. package/dist/data/view-rows.d.ts +1 -1
  45. package/dist/data/view-rows.d.ts.map +1 -1
  46. package/dist/data/view-rows.js +26 -3
  47. package/dist/data/view-rows.js.map +1 -1
  48. package/dist/data-transfer/asset-export.d.ts +10 -2
  49. package/dist/data-transfer/asset-export.d.ts.map +1 -1
  50. package/dist/data-transfer/asset-import.d.ts +10 -2
  51. package/dist/data-transfer/asset-import.d.ts.map +1 -1
  52. package/dist/data-transfer/ontology-export.d.ts +10 -2
  53. package/dist/data-transfer/ontology-export.d.ts.map +1 -1
  54. package/dist/data-transfer/ontology-import.d.ts +10 -2
  55. package/dist/data-transfer/ontology-import.d.ts.map +1 -1
  56. package/dist/transport/http-client.d.ts.map +1 -1
  57. package/dist/transport/http-client.js +1 -0
  58. package/dist/transport/http-client.js.map +1 -1
  59. package/dist/transport/types.d.ts +1 -0
  60. package/dist/transport/types.d.ts.map +1 -1
  61. package/oclif.manifest.json +47 -47
  62. package/package.json +2 -2
  63. package/skills/monkeys/SKILL.md +2 -2
  64. package/skills/monkeys/references/compatibility.md +1 -1
  65. package/skills/monkeys/references/data-perspective.md +36 -31
  66. package/skills/monkeys/references/data-read.md +19 -7
  67. package/skills/monkeys/references/ontology-feature-search.md +5 -5
  68. package/skills/monkeys/references/ontology-model.md +2 -1
  69. package/skills/monkeys/references/safety-errors.md +1 -1
@@ -2654,7 +2654,7 @@
2654
2654
  "kernel",
2655
2655
  "studio"
2656
2656
  ],
2657
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
2657
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
2658
2658
  "type": "option"
2659
2659
  },
2660
2660
  "profile": {
@@ -2774,7 +2774,7 @@
2774
2774
  "kernel",
2775
2775
  "studio"
2776
2776
  ],
2777
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
2777
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
2778
2778
  "type": "option"
2779
2779
  },
2780
2780
  "profile": {
@@ -2850,7 +2850,7 @@
2850
2850
  "kernel",
2851
2851
  "studio"
2852
2852
  ],
2853
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
2853
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
2854
2854
  "type": "option"
2855
2855
  },
2856
2856
  "profile": {
@@ -3436,7 +3436,7 @@
3436
3436
  "kernel",
3437
3437
  "studio"
3438
3438
  ],
3439
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
3439
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
3440
3440
  "type": "option"
3441
3441
  },
3442
3442
  "profile": {
@@ -3964,7 +3964,7 @@
3964
3964
  "kernel",
3965
3965
  "studio"
3966
3966
  ],
3967
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
3967
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
3968
3968
  "type": "option"
3969
3969
  },
3970
3970
  "profile": {
@@ -4072,7 +4072,7 @@
4072
4072
  "kernel",
4073
4073
  "studio"
4074
4074
  ],
4075
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4075
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4076
4076
  "type": "option"
4077
4077
  },
4078
4078
  "profile": {
@@ -4182,7 +4182,7 @@
4182
4182
  "kernel",
4183
4183
  "studio"
4184
4184
  ],
4185
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4185
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4186
4186
  "type": "option"
4187
4187
  },
4188
4188
  "profile": {
@@ -4332,7 +4332,7 @@
4332
4332
  "kernel",
4333
4333
  "studio"
4334
4334
  ],
4335
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4335
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4336
4336
  "type": "option"
4337
4337
  },
4338
4338
  "profile": {
@@ -4435,7 +4435,7 @@
4435
4435
  "kernel",
4436
4436
  "studio"
4437
4437
  ],
4438
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4438
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4439
4439
  "type": "option"
4440
4440
  },
4441
4441
  "profile": {
@@ -4510,7 +4510,7 @@
4510
4510
  "kernel",
4511
4511
  "studio"
4512
4512
  ],
4513
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4513
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4514
4514
  "type": "option"
4515
4515
  },
4516
4516
  "profile": {
@@ -4579,7 +4579,7 @@
4579
4579
  "kernel",
4580
4580
  "studio"
4581
4581
  ],
4582
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4582
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4583
4583
  "type": "option"
4584
4584
  },
4585
4585
  "profile": {
@@ -4645,7 +4645,7 @@
4645
4645
  "kernel",
4646
4646
  "studio"
4647
4647
  ],
4648
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4648
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4649
4649
  "type": "option"
4650
4650
  },
4651
4651
  "profile": {
@@ -4740,7 +4740,7 @@
4740
4740
  "kernel",
4741
4741
  "studio"
4742
4742
  ],
4743
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4743
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4744
4744
  "type": "option"
4745
4745
  },
4746
4746
  "profile": {
@@ -4833,7 +4833,7 @@
4833
4833
  "kernel",
4834
4834
  "studio"
4835
4835
  ],
4836
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4836
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4837
4837
  "type": "option"
4838
4838
  },
4839
4839
  "profile": {
@@ -4913,7 +4913,7 @@
4913
4913
  "kernel",
4914
4914
  "studio"
4915
4915
  ],
4916
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4916
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4917
4917
  "type": "option"
4918
4918
  },
4919
4919
  "profile": {
@@ -4993,7 +4993,7 @@
4993
4993
  "kernel",
4994
4994
  "studio"
4995
4995
  ],
4996
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
4996
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
4997
4997
  "type": "option"
4998
4998
  },
4999
4999
  "profile": {
@@ -5077,7 +5077,7 @@
5077
5077
  "kernel",
5078
5078
  "studio"
5079
5079
  ],
5080
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5080
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5081
5081
  "type": "option"
5082
5082
  },
5083
5083
  "profile": {
@@ -5168,7 +5168,7 @@
5168
5168
  "kernel",
5169
5169
  "studio"
5170
5170
  ],
5171
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5171
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5172
5172
  "type": "option"
5173
5173
  },
5174
5174
  "profile": {
@@ -5264,7 +5264,7 @@
5264
5264
  "kernel",
5265
5265
  "studio"
5266
5266
  ],
5267
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5267
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5268
5268
  "type": "option"
5269
5269
  },
5270
5270
  "profile": {
@@ -5341,7 +5341,7 @@
5341
5341
  "kernel",
5342
5342
  "studio"
5343
5343
  ],
5344
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5344
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5345
5345
  "type": "option"
5346
5346
  },
5347
5347
  "profile": {
@@ -5435,7 +5435,7 @@
5435
5435
  "kernel",
5436
5436
  "studio"
5437
5437
  ],
5438
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5438
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5439
5439
  "type": "option"
5440
5440
  },
5441
5441
  "profile": {
@@ -5545,7 +5545,7 @@
5545
5545
  "kernel",
5546
5546
  "studio"
5547
5547
  ],
5548
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5548
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5549
5549
  "type": "option"
5550
5550
  },
5551
5551
  "profile": {
@@ -5620,7 +5620,7 @@
5620
5620
  "kernel",
5621
5621
  "studio"
5622
5622
  ],
5623
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5623
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5624
5624
  "type": "option"
5625
5625
  },
5626
5626
  "profile": {
@@ -5784,7 +5784,7 @@
5784
5784
  "kernel",
5785
5785
  "studio"
5786
5786
  ],
5787
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5787
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5788
5788
  "type": "option"
5789
5789
  },
5790
5790
  "profile": {
@@ -5972,7 +5972,7 @@
5972
5972
  "kernel",
5973
5973
  "studio"
5974
5974
  ],
5975
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
5975
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
5976
5976
  "type": "option"
5977
5977
  },
5978
5978
  "profile": {
@@ -6067,7 +6067,7 @@
6067
6067
  "kernel",
6068
6068
  "studio"
6069
6069
  ],
6070
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6070
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6071
6071
  "type": "option"
6072
6072
  },
6073
6073
  "profile": {
@@ -6163,7 +6163,7 @@
6163
6163
  "kernel",
6164
6164
  "studio"
6165
6165
  ],
6166
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6166
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6167
6167
  "type": "option"
6168
6168
  },
6169
6169
  "profile": {
@@ -6239,7 +6239,7 @@
6239
6239
  "kernel",
6240
6240
  "studio"
6241
6241
  ],
6242
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6242
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6243
6243
  "type": "option"
6244
6244
  },
6245
6245
  "profile": {
@@ -6321,7 +6321,7 @@
6321
6321
  "kernel",
6322
6322
  "studio"
6323
6323
  ],
6324
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6324
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6325
6325
  "type": "option"
6326
6326
  },
6327
6327
  "profile": {
@@ -6406,7 +6406,7 @@
6406
6406
  "kernel",
6407
6407
  "studio"
6408
6408
  ],
6409
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6409
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6410
6410
  "type": "option"
6411
6411
  },
6412
6412
  "profile": {
@@ -6483,7 +6483,7 @@
6483
6483
  "kernel",
6484
6484
  "studio"
6485
6485
  ],
6486
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6486
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6487
6487
  "type": "option"
6488
6488
  },
6489
6489
  "profile": {
@@ -6584,7 +6584,7 @@
6584
6584
  "kernel",
6585
6585
  "studio"
6586
6586
  ],
6587
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6587
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6588
6588
  "type": "option"
6589
6589
  },
6590
6590
  "profile": {
@@ -6673,7 +6673,7 @@
6673
6673
  "kernel",
6674
6674
  "studio"
6675
6675
  ],
6676
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6676
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6677
6677
  "type": "option"
6678
6678
  },
6679
6679
  "profile": {
@@ -6749,7 +6749,7 @@
6749
6749
  "kernel",
6750
6750
  "studio"
6751
6751
  ],
6752
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6752
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6753
6753
  "type": "option"
6754
6754
  },
6755
6755
  "profile": {
@@ -6831,7 +6831,7 @@
6831
6831
  "kernel",
6832
6832
  "studio"
6833
6833
  ],
6834
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6834
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6835
6835
  "type": "option"
6836
6836
  },
6837
6837
  "profile": {
@@ -6916,7 +6916,7 @@
6916
6916
  "kernel",
6917
6917
  "studio"
6918
6918
  ],
6919
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
6919
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
6920
6920
  "type": "option"
6921
6921
  },
6922
6922
  "profile": {
@@ -7011,7 +7011,7 @@
7011
7011
  "kernel",
7012
7012
  "studio"
7013
7013
  ],
7014
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7014
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7015
7015
  "type": "option"
7016
7016
  },
7017
7017
  "profile": {
@@ -7100,7 +7100,7 @@
7100
7100
  "kernel",
7101
7101
  "studio"
7102
7102
  ],
7103
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7103
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7104
7104
  "type": "option"
7105
7105
  },
7106
7106
  "profile": {
@@ -7180,7 +7180,7 @@
7180
7180
  "kernel",
7181
7181
  "studio"
7182
7182
  ],
7183
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7183
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7184
7184
  "type": "option"
7185
7185
  },
7186
7186
  "profile": {
@@ -7290,7 +7290,7 @@
7290
7290
  "kernel",
7291
7291
  "studio"
7292
7292
  ],
7293
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7293
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7294
7294
  "type": "option"
7295
7295
  },
7296
7296
  "profile": {
@@ -7375,7 +7375,7 @@
7375
7375
  "kernel",
7376
7376
  "studio"
7377
7377
  ],
7378
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7378
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7379
7379
  "type": "option"
7380
7380
  },
7381
7381
  "profile": {
@@ -7470,7 +7470,7 @@
7470
7470
  "kernel",
7471
7471
  "studio"
7472
7472
  ],
7473
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7473
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7474
7474
  "type": "option"
7475
7475
  },
7476
7476
  "profile": {
@@ -7546,7 +7546,7 @@
7546
7546
  "kernel",
7547
7547
  "studio"
7548
7548
  ],
7549
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7549
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7550
7550
  "type": "option"
7551
7551
  },
7552
7552
  "profile": {
@@ -7638,7 +7638,7 @@
7638
7638
  "kernel",
7639
7639
  "studio"
7640
7640
  ],
7641
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7641
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7642
7642
  "type": "option"
7643
7643
  },
7644
7644
  "profile": {
@@ -7726,7 +7726,7 @@
7726
7726
  "kernel",
7727
7727
  "studio"
7728
7728
  ],
7729
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7729
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7730
7730
  "type": "option"
7731
7731
  },
7732
7732
  "profile": {
@@ -7829,7 +7829,7 @@
7829
7829
  "kernel",
7830
7830
  "studio"
7831
7831
  ],
7832
- "summary": "Asserts the Data perspective; does not change Session permissions or server-side routing",
7832
+ "summary": "Use only this Data perspective; when omitted, read queries use Studio first and may fall back to Kernel",
7833
7833
  "type": "option"
7834
7834
  },
7835
7835
  "profile": {
@@ -9942,5 +9942,5 @@
9942
9942
  "strict": true
9943
9943
  }
9944
9944
  },
9945
- "version": "0.11.0"
9945
+ "version": "0.11.1"
9946
9946
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inf-monkeys-tech/monkeys-cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Monkeys command-line client for AI agents, automation, and interactive use",
6
6
  "type": "module",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "monkeysReleaseCommit": "2656ac76d0c9848aed45690c2cbd2ae17c966b87"
91
+ "monkeysReleaseCommit": "634025ab31b5b796e364409ffc7bae87904bd0ce"
92
92
  }
@@ -10,7 +10,7 @@ description: 理解并通过 monkeys CLI 安全操作 Monkeys 平台的多租户
10
10
  ## 执行流程
11
11
 
12
12
  1. 运行 `monkeys version show --output json`,确认 CLI 可用和命令 Schema 兼容。若输出包含 `_notice.update`,向用户报告新版本和 `monkeys update`;只有用户明确同意升级后才执行该全局安装命令。
13
- 2. 选择明确的 `--profile`。Data 任务按[Data 视角路由](references/data-perspective.md)选择显式 `--perspective`:Kernel 全局读取默认不传 `--team`,只有用户明确筛选时才传;Field、View、Feature Value、Advanced Search 和 Asset Export 等需要数据资源定位时传已确认的 `--resource-team`。Studio 使用明确的 Team 上下文。不要在任务中途隐式切换上下文。
13
+ 2. 选择明确的 `--profile`。Data 查询只有在用户明确指定 Studio/Kernel 时才传对应的 `--perspective`;用户未指定时省略该参数,由 CLI 根据认证 Session 执行 Studio-first,并只在确定性空集合/精确资源 404 时自动升级到 Kernel。Kernel 全局读取默认不传 `--team`;需要数据资源定位时传已确认的 `--resource-team`。Team `0` 是共享/系统数据分区,不是“所有 Team”。以 CLI 的 `perspectiveResolution` 为路由真相,不由 Skill 手工换视角重试。
14
14
  3. 在第一次使用命令或参数不确定时运行 `monkeys <命令> --help`。以 CLI 帮助为参数真相,不凭记忆补参数。
15
15
  4. 优先调用 Workflow、Execution、Agent Work、File、Data、System Config 等语义命令,并使用 `--output json`。解析结构化结果和退出码,不解析面向人的 Text 文案。
16
16
  5. 写操作前向用户回显 Profile、`teamMode`、实际生效的 Team(若有)、Ontology、实际 Data 合同、Data Perspective、精确目标 ID 或 System Config Key。目标模糊时先查询,禁止猜测。
@@ -41,7 +41,7 @@ description: 理解并通过 monkeys CLI 安全操作 Monkeys 平台的多租户
41
41
  - Agent 必须使用 `auth login --url <Endpoint> --no-wait --output json` 发起浏览器登录,把原样授权 URL 交给用户,并在用户确认完成后用同一次返回的临时 `profile` 与 `--device-code` 完成轮询;不得自行填写网页登录表单或跨 Endpoint 复用 Device Code。
42
42
  - 登录成功后必须以 `/api/configs` 返回的已认证 `tenantId` 作为订阅/Profile 名;不得从 URL 主机名猜租户名。
43
43
  - 不覆盖认证、Tenant、Team、Data Perspective 等受保护 Header。
44
- - 不把 Session 的 `currentTeamId` 或 CLI 返回的 `resourceLocator.teamId` 描述为 Kernel 全局查询作用域,也不为 Kernel 全局读取手工补 `--team`。不得用 Ontology owner Team 猜测 `--resource-team`;缺少已确认值时在聊天中告知并停止。
44
+ - 不把 Session 的 `currentTeamId` 或 CLI 返回的 `resourceLocator.teamId` 描述为 Kernel 全局查询作用域,也不为 Kernel 全局读取手工补 `--team`。不得用 Ontology owner Team 猜测 `--resource-team`,也不得把 `0` 当默认兜底;只有用户明确指定或权威资源元数据确认共享/系统分区时才使用 Team `0`。缺少已确认值时在聊天中告知并停止。
45
45
  - 不把 Public/Shared/可读理解为可写;服务端授权是最终判断。
46
46
  - 不执行 Ontology/Bucket Delete、Container Purge、批量 Trash 或语义层未提供的永久清理。
47
47
  - 不把 `data container remove` 描述为删除 Asset;它只移除 Membership,可从 Trash 恢复。
@@ -8,7 +8,7 @@
8
8
  - OpenAPI Snapshot 可动态刷新,但语义命令合同不会因刷新而被静默改写。
9
9
  - Data 合同由 Deployment 的 `data_contract=auto|ontology-v1|bucket-v1` 决定;`auto` 依次采用精确 OpenAPI、同一上下文缓存和有界只读探测。只有 Ontology 路由明确返回 404 时才探测旧 Bucket 路由。
10
10
  - 输出中的 `dataContractVariant` 和 `dataScope` 是当前请求的合同/作用域真相。认证、授权、网络、5xx 或响应不兼容不得触发合同切换,已发送写操作不得换合同重放。
11
- - Data 语义命令应显式传 `--perspective kernel|studio`;以输出中的 `requestedPerspective`、`effectivePerspective`、`perspectiveSource` 和 Perspective-aware `contextFingerprint` 判断视角。`legacy-unverified` 不能作为实际视角真相;不得根据 Profile 名称或请求参数猜测。
11
+ - 用户明确指定 Data 视角时传 `--perspective kernel|studio`;未指定时省略。以输出中的 `requestedPerspective`、`effectivePerspective`、`perspectiveSource`、`perspectiveResolution` 和 Perspective-aware `contextFingerprint` 判断实际路由;不得根据 Profile 名称猜测。
12
12
  - Data 输出中的 `teamMode=none|filter|context` 表示 CLI 是否施加 Team;只有存在 `effectiveTeamId` 时才能报告具体筛选/上下文 Team。Kernel 全局读取必须为 `teamMode=none`;可选 `resourceLocator.kind=ontology-resource-team`、`source=explicit-flag` 只表示 Ontology 数据资源定位,不改变 Team 模式。CLI 不从 owner Team 自动推导 locator。
13
13
  - 出现 Binding 漂移时按受控降级流程处理,不猜测 operationId。
14
14
  - Execution 列表可能适配 `legacy-list-v1` 或 `db-search-summary-v1`;以输出的 `contractVariant` 为诊断依据,只消费稳定字段。
@@ -1,45 +1,50 @@
1
1
  # Data 视角路由
2
2
 
3
- CLI 只提供确定性的 `--perspective kernel|studio` 断言和固定语义命令;路由策略由本 Skill 执行。现有 Server 的统一 Data 接口按当前 Session 是否具有 Kernel Scope 分流,CLI 不发送自定义视角 Header,也不能把同一个 Kernel Session 强制降权为 Studio。不得使用 `auto`,不得直接构造 `x-monkeys-data-perspective` Header。
3
+ Data 查询视角由 CLI 根据经过认证的 Session 能力统一解析,Skill 不得自行模拟路由或手工重试。`--perspective` 只接受 `studio|kernel`;省略该参数表示使用 CLI 的自动策略,不得传 `auto`,也不得构造 `x-monkeys-data-perspective` Header。
4
4
 
5
- Team 与 Data Perspective 分开处理:Kernel 是租户内管理视角,Kernel 全局读取默认不传 `--team`;只有用户明确要求 Team 筛选时才传。Field、View、Feature Value、Advanced Asset Search 和 Asset Export 等需要下游数据资源 Team 时,使用用户或部署所有者已确认的 `--resource-team`;CLI 通过 `resourceLocator.source=explicit-flag` 报告,它不会改变 `teamMode=none`,不得描述成 Kernel 查询作用域。Ontology owner Team 与 data resource Team 可以不同,CLI 不会自动推导。Studio 的 Team 表示前台工作空间上下文。Session 的 `currentTeamId` 只是当前登录状态,不能据此宣称 Kernel 查询属于该 Team。
5
+ ## 决策合同
6
6
 
7
- ## 决策顺序
7
+ 1. 用户明确要求 Studio/前台:传 `--perspective studio`,只查 Studio。即使 Session 同时具有 Kernel 权限,也不得升级到 Kernel;Studio 空结果或 404 直接返回。
8
+ 2. 用户明确要求 Kernel/后台/管理视角:传 `--perspective kernel`,直接查 Kernel。权限不足时报告 `DATA_KERNEL_PERMISSION_REQUIRED`,不得降级到 Studio。
9
+ 3. 用户未指定视角:省略 `--perspective`。
10
+ - Session 有 Studio 权限时先查 Studio。
11
+ - Studio 返回确定性的空集合,或精确 GET 资源返回 404,并且 Session 同时有 Kernel 权限时,CLI 最多自动升级一次到 Kernel。
12
+ - Session 只有 Kernel 权限时直接查 Kernel。
13
+ - 401/403、认证过期、网络错误、5xx、合同/响应不兼容、校验失败及其他不确定错误均不得触发升级。
14
+ 4. 写操作不会因失败或结果形态自动重放到另一个视角。治理命令和 `visible|creatable|all` 等固定语义入口仍受命令自身声明的可用视角约束;不支持所选视角时报告 `DATA_PERSPECTIVE_UNAVAILABLE`,不得换用 Raw API 伪造等价能力。
8
15
 
9
- 1. 用户明确要求 Studio/前台视角:不得先尝试 Kernel。先用 `auth status` 确认 Session:
10
- - 从用户明确输入或 `session.currentTeamId` 确认 Studio Team;使用 Session Team 时必须说明结果受该 Team 与前台权限限制。
11
- - 固定 Studio 入口(例如 `data ontology list --scope visible|creatable`)可直接使用 `--perspective studio`。
12
- - 其他统一 Data 命令只有在 `session.surfaces.kernel=false` 时才能使用 `--perspective studio`。
13
- - 若当前 Session 具有 Kernel Scope,必须告诉用户现有 Server 无法将该 Session 强制切到 Studio,并要求用户选择无 Kernel 权限的账户/Profile;不得假装已经切换。
14
- 2. 用户明确要求 Kernel/后台/管理视角:使用 `--perspective kernel`;全局读取不传 `--team`,用户明确要求某 Team 时才把 `--team` 作为筛选条件;命令需要资源定位时传已确认的 `--resource-team`,未知时先在聊天中说明并请求,不得猜测;权限不足时报告错误,不得降级。
15
- 3. 用户未指定视角:每个任务最多运行一次 `monkeys auth status --profile <Profile> --output json` 检查能力。
16
- - `session.surfaces.kernel=true`:使用 `--perspective kernel`;全局读取默认不传 `--team`。
17
- - 当前身份没有 Kernel Surface,但命令有 Studio 等价能力:必须先在聊天中明确告诉用户“当前账户没有 Kernel 管理权限,本次将使用 Studio 视角;结果受前台可见性和权限限制。”,再使用 `--perspective studio`。
18
- - 当前身份没有 Kernel Surface,且命令没有 Studio 等价能力:停止并报告需要 Kernel 权限。
16
+ 这套合同与 Lark CLI 的身份解析原则一致:显式选择优先于默认选择,命令声明支持的身份范围,最终解析结果进入结构化输出;Monkeys 额外只为确定性的只读空结果提供 Studio 到 Kernel 的一次升级。
19
17
 
20
- 最终答复必须引用 CLI 返回的 `effectivePerspective` 与 `teamMode`;存在 `effectiveTeamId` 时同时报告。存在 `resourceLocator` 时说明该 Team 仅用于 Ontology 子资源定位、没有把 Kernel 全局结果收窄为 Team 筛选。若 CLI 只返回 `perspectiveSource=legacy-unverified`,必须明确说明实际视角未经确认。使用 Studio 时必须说明结果受前台 Team、可见性与权限过滤;不得把 Studio 空结果解释为 Kernel 中也不存在。
18
+ ## 输出与审计
21
19
 
22
- ## 能力边界
20
+ 最终答复必须引用 CLI 返回的 `effectivePerspective`,并同时检查:
23
21
 
24
- - Session 路由、Kernel 与 Studio 均有实现:View、Asset、Tag、Tag Group、Field List/Ensure、Feature Value。实际分支由 Session Kernel Scope 决定。
25
- - 固定 Studio 语义:`data ontology list --scope visible|creatable`。
26
- - 固定 Kernel 语义:`data ontology list --scope all`、`data ontology get/create/update/import`、`data asset import-jsonl` 及其 `status/cancel`、`data field get/update` 和其他命令明确标记的 Kernel 专有治理操作。
27
- - Skill 默认发现 Ontology 时,Kernel 路径使用 `data ontology list --scope all --perspective kernel` 且不传 Team;Studio 路径使用 `data ontology list --scope visible --perspective studio --team <Team ID>`。
28
- - Kernel Field List/Get、View Tree/Rows、Feature Value、Feature 附件、Advanced Asset Search 和 Asset Export 使用独立 `--resource-team`,不手工补 `--team`。`DATA_RESOURCE_TEAM_REQUIRED`、`DATA_TEAM_ROLE_CONFLICT` 或 `DATA_RESOURCE_TEAM_NOT_APPLICABLE` 时停止并在聊天中报告;不尝试 owner Team、Team `0`、Session Team、Raw API 或空结果重试。
22
+ - `requestedPerspective`:`studio`、`kernel` 或省略参数产生的 `auto`;
23
+ - `effectivePerspective`:实际返回结果的视角;
24
+ - `perspectiveSource`:`explicit`、`fixed-route` 或 `studio-first`;
25
+ - `perspectiveResolution.attempts`:按顺序记录 `studio|kernel` 和 `success|empty|not_found`;
26
+ - `perspectiveResolution.fallbackReason`:只有实际升级时才出现,为 `studio_empty` 或 `studio_not_found`;
27
+ - `teamMode`、可选的 `effectiveTeamId` 与 `resourceLocator`。
28
+
29
+ 使用 Studio 返回结果时,说明结果受前台 Team、可见性与权限过滤。发生自动升级时,明确说明 Studio 的确定性空结果/精确资源不存在,以及最终数据来自 Kernel。没有 `fallbackReason` 时,不得宣称发生过升级。
30
+
31
+ ## Team 与资源定位
29
32
 
30
- ## 受控降级
33
+ Team 与 Data Perspective 分开处理:Kernel 是租户内管理视角,Kernel 全局读取默认不传 `--team`;只有用户明确要求 Team 筛选时才传。Studio 的 Team 表示前台 Team 上下文。
31
34
 
32
- 优先在业务命令前通过 `auth status` 选择视角,避免先发一次 Kernel 业务请求。只有以下条件全部满足,Skill 才能把一次失败的 Kernel 尝试改为 Studio:
35
+ Field、View、Feature Value、Advanced Asset Search 和 Asset Export 等 Kernel 子资源读取可能需要 `--resource-team`。它只接受用户或权威资源元数据已确认的数据资源 Team,不得从 Ontology owner Team、Session Team、空结果或 404 猜测。自动模式下可以预先传已确认的 `--resource-team`:Studio 尝试不会把它当作 Team 上下文;如果升级到 Kernel,CLI 才把它用于资源定位。CLI 通过 `resourceLocator.source=explicit-flag` 报告该定位,它不会把 `teamMode=none` 改成 Team 筛选,不得描述成 Kernel 查询作用域。
33
36
 
34
- - 用户没有明确要求 Kernel;
35
- - 错误为 `DATA_KERNEL_PERMISSION_REQUIRED`;
36
- - `safeDetails.requestState=not_sent`;
37
- - 同一语义命令具有 Studio 等价能力;
38
- - 保持同一 Profile、Deployment、Tenant、Ontology 和精确目标;Kernel 全局查询不得凭 Session Team 补造筛选,切换 Studio 前必须确认 Team 并明确告知作用域收窄;
39
- - 执行 Studio 命令前已在聊天中告知用户。
37
+ `DATA_RESOURCE_TEAM_REQUIRED`、`DATA_TEAM_ROLE_CONFLICT` 或 `DATA_RESOURCE_TEAM_NOT_APPLICABLE` 时停止并报告;不得猜 Team `0`、切换为 Raw API 或继续盲试。
40
38
 
41
- 每个任务最多发生一次 Perspective 降级。空结果、404、认证过期、网络错误、5xx、合同或响应不兼容、`sent`、`result_unknown` 都不得触发 Perspective 降级。Perspective 降级与语义命令到 Raw API 的受控降级是两套独立机制,不得混用 `fallbackEligible`。
39
+ ## Team 0 共享/系统分区
42
40
 
43
- `DATA_STUDIO_SESSION_REQUIRED` 表示当前 Kernel Session 会被统一接口路由到 Kernel,无法满足明确的 Studio 要求。停止并要求无 Kernel Scope 的账户/Profile,或改用固定 Studio 入口;不得改走 Raw API 伪造成功。
41
+ Team `0` 是保留的共享/系统数据分区,不表示“所有 Team”。只有用户明确要求共享/系统数据,或权威资源元数据确认目标位于 Team `0` 时,才能使用它:直接选择 Team `0` 的 Ontology/Asset 分区时传 `--team 0`;Kernel 子资源定位时传 `--resource-team 0`。
44
42
 
45
- `DATA_PERSPECTIVE_SESSION_INCOMPATIBLE` 表示 CLI 无法从认证 Session 确认实际能力。停止并报告认证合同问题,不得根据 Profile 名称猜测视角。
43
+ Team `0` 的 Ontology 可以作为共享 Schema 被其他 Team 复用,因此 `Ontology.teamId=0` 不自动证明其 Asset 或 data resource Team 也是 `0`。Studio/Public 路径中的 Team `0` 数据通常按共享发布数据只读使用,写权限仍完全以服务端授权为准。
44
+
45
+ ## 能力边界
46
+
47
+ - 双视角查询:View、Asset、Tag、Tag Group、Field List/Get、Feature Value 等统一 Data 读取。
48
+ - 固定 Studio 语义:`data ontology list --scope visible|creatable`。
49
+ - 固定 Kernel 语义:`data ontology list --scope all`、`data ontology get/create/update/import`、`data asset import-jsonl` 及其 `status/cancel`,以及其他命令明确标记的 Kernel 专有治理操作。
50
+ - Cursor 会绑定查询上下文并记录实际视角;Studio 首次升级到 Kernel 后,下一页直接延续 Kernel,不重新把 Kernel page token 发给 Studio。
@@ -14,21 +14,33 @@
14
14
 
15
15
  ## 流程
16
16
 
17
- 1. 先按 Data 视角路由选择 `data ontology list --scope all --perspective kernel` 或 `data ontology list --scope visible --perspective studio --team <Team ID>`,解析明确的 Ontology。
18
- 2. Kernel 全局读取默认不传 `--team`;只有用户明确要求某 Team 且命令支持筛选时才传。Field、View、Feature Value、Feature 附件和 Advanced Asset Search 需要后端资源 Team 时传已确认的 `--resource-team <数据 Team>`;不得从 Ontology owner `teamId`、Session 或空结果猜测。Studio 后续命令同时传明确的 `--team`、`--ontology <Ontology ID>` 和同一 `--perspective`,不传 `--resource-team`。
19
- 3. 检查输出中的 `effectivePerspective`、`teamMode`、可选的 `effectiveTeamId` 和 `resourceLocator`;`teamMode=none` 表示 CLI 未施加 Team 上下文/筛选。`resourceLocator.source=explicit-flag` 和 `resourceLocator.teamId` 只说明后端分区定位,不得补造用户筛选。CLI 返回 `DATA_RESOURCE_TEAM_REQUIRED` 时在聊天中请求已确认的数据资源 Team,不得尝试 `0`。
20
- 4. 用户要求“列出/查看某个 View 的数据”时,Kernel 默认使用 `monkeys data view rows --ontology <Ontology ID> --view <View ID> --resource-team <数据 Team> --limit 20 --perspective kernel --profile <Profile> --output json`;Studio 改用 `--team` 且不传 `--resource-team`。不要要求用户额外指定“完整列”,也不要先用紧凑 `data asset list` 代替。
17
+ 1. 用户明确要求 Kernel 时用 `data ontology list --scope all --perspective kernel`;明确要求 Studio 时用 `data ontology list --scope visible --perspective studio --team <Team ID>`。`visible|creatable|all` 是固定语义入口,不在它们之间自动改写。目标 Ontology 已知、用户未指定视角时,后续双视角查询省略 `--perspective`,由 CLI 执行 Studio-first。
18
+ 2. Kernel 全局读取默认不传 `--team`;只有用户明确要求某 Team 且命令支持筛选时才传。Field、View、Feature Value、Feature 附件和 Advanced Asset Search 需要后端资源 Team 时传已确认的 `--resource-team <数据 Team>`;不得从 Ontology owner `teamId`、Session 或空结果猜测。已确认目标位于共享/系统数据分区时,直接分区查询传 `--team 0`,子资源定位传 `--resource-team 0`。明确 Studio 时传 `--team` 且不传 `--resource-team`;自动模式可携带已确认的 `--resource-team` 供 Kernel 升级后定位,Studio 尝试不会把它当作 Team 上下文。
19
+ 3. 检查输出中的 `requestedPerspective`、`effectivePerspective`、`perspectiveResolution`、`teamMode`、可选的 `effectiveTeamId` 和 `resourceLocator`。`teamMode=none` 表示 CLI 未施加 Team 上下文/筛选;`resourceLocator` 只说明后端分区定位。`perspectiveResolution.fallbackReason` 为 `studio_empty|studio_not_found` 时,说明 Studio 已确定为空/不存在且最终结果来自 Kernel;其他错误不得由 Skill 手工换视角重试。CLI 返回 `DATA_RESOURCE_TEAM_REQUIRED` 时请求已确认的数据资源 Team;不得把 `0` 当默认兜底。
20
+ 4. 用户要求“列出/查看某个 View 的数据”且未指定视角时,使用 `monkeys data view rows --ontology <Ontology ID> --view <View ID> --resource-team <已确认的数据 Team> --limit 20 --profile <Profile> --output json`;CLI 会把复合查询整体固定在一个视角,必要时从头用 Kernel 重查,避免混合两侧数据。明确 Studio 时改用 `--team` 且不传 `--resource-team`;明确 Kernel 时补 `--perspective kernel`。不要要求用户额外指定“完整列”,也不要先用紧凑 `data asset list` 代替。
21
21
  5. View 类型为 `filter` 且已经配置 Tag/Field 规则时,继续使用 `data view rows`,由 CLI 按当前部署合同解析 `allOf`、`anyOf`、`noneOf` 与启用的字段规则。临时按 Ontology 全局 Feature 的结构化值筛选时,读取[Ontology Feature 结构化检索](ontology-feature-search.md),使用 `data asset search --expression-json/--expression-file`;其他临时条件仍以命令 Help 为准。筛选失败或结果为空时先核对上下文、View 类型和规则,禁止通过 `data view convert-to-container` 兜底。
22
22
  6. 依据返回的有序 `columns` 和 `rows` 在聊天中展示完整 Markdown 表格。列较多时按列分成多个表格,每个表都保留 Asset ID 和名称用于关联;不得静默省略列。附件单元格只显示“可下载”和数量,不显示 URL。
23
23
  7. 只有用户明确要求简略列表、资源元数据或低上下文投影时,才使用 `data asset list --view <View ID>`。默认单页有界;只有用户确实需要时扩大范围。
24
24
  8. 抽样使用 `data asset sample` 的有界样本,不自行无限翻页后随机。
25
- 9. 只复用同一 Context、Data Perspective、Team 模式、Data 合同、Ontology、View 和查询生成的 Cursor;游标不匹配时重新查询。
26
- 10. 用户需要读取、查看或保存 Asset 封面图片/媒体时,使用 `monkeys data asset media download <Asset ID> --ontology <Ontology ID> --out <本地路径> --perspective <kernel|studio> --profile <Profile> --output json`。`--source auto` 默认依次选择 `primaryContent.value`、`media`、`thumbnail`;需要特定来源时显式传 `--source`。
27
- 11. 用户需要 View Feature 中的 PDF/文件时,使用 `monkeys data asset attachment download <Asset ID> --ontology <Ontology ID> --view <View ID> --field <Field ID 或唯一精确名称> --out <本地路径> --perspective <kernel|studio> --profile <Profile> --output json`。历史 Field 类型可能是 `img`,仍应按实际 Content-Type/文件内容称为 PDF 或附件,不要误称为图片。
25
+ 9. 只复用同一 Context、Team 模式、Data 合同、Ontology、View 和查询生成的 Cursor;CLI Cursor 会保留自动路由后的实际 Data Perspective,游标不匹配时重新查询。
26
+ 10. 用户需要读取、查看或保存 Asset 封面图片/媒体时,使用 `monkeys data asset media download <Asset ID> --ontology <Ontology ID> --out <本地路径> --profile <Profile> --output json`;用户明确指定视角时再补 `--perspective studio|kernel`。`--source auto` 默认依次选择 `primaryContent.value`、`media`、`thumbnail`;需要特定来源时显式传 `--source`。
27
+ 11. 用户需要 View Feature 中的 PDF/文件时,使用 `monkeys data asset attachment download <Asset ID> --ontology <Ontology ID> --view <View ID> --field <Field ID 或唯一精确名称> --out <本地路径> --profile <Profile> --output json`;用户明确指定视角时再补 `--perspective studio|kernel`。历史 Field 类型可能是 `img`,仍应按实际 Content-Type/文件内容称为 PDF 或附件,不要误称为图片。
28
28
  12. 下载成功后依据 CLI 返回的本地 `path` 展示或处理文件,并向用户报告来源 Field、大小和 SHA-256;不要把二进制正文塞入 JSON 或聊天文本。
29
29
  13. 两种下载都由 CLI 内部处理对象地址:公开 HTTPS 对象使用匿名、无身份 Header、无重定向、有界原子下载;对象明确返回 401/403/404 时,CLI 才请求 Server 生成短期签名并重试。CLI 不自行签名,任何规范或签名 URL 都不得进入结构化输出或聊天。网络错误、重定向、异常 Content-Type、超限或签名失败必须直接报告,不得使用普通 HTTP、Raw API 或手工 URL 兜底。
30
30
  14. 覆盖本地已有文件前必须得到用户对该精确路径的授权,并同时传 `--overwrite --yes`。默认最大 50 MiB;只有任务确有需要时才提高 `--max-bytes`,不得超过 1 GiB。
31
31
 
32
32
  参数和筛选条件始终以相应命令的 `--help` 为准。
33
33
 
34
+ ## Team 0 用法
35
+
36
+ 下面三类命令分别表示“发现 Team `0` 的 Ontology”“筛选 Team `0` 的 Asset”和“定位 Team `0` 中的 Kernel 子资源”:
37
+
38
+ ```bash
39
+ monkeys data ontology list --scope all --perspective kernel --team 0 --profile <Profile> --output json
40
+ monkeys data asset list --ontology <Ontology ID> --perspective kernel --team 0 --profile <Profile> --output json
41
+ monkeys data view rows --ontology <Ontology ID> --view <View ID> --resource-team 0 --perspective kernel --profile <Profile> --output json
42
+ ```
43
+
44
+ 前两类输出应为 `teamMode=filter`、`effectiveTeamId=0`;第三类仍为 `teamMode=none`,并通过 `resourceLocator.teamId=0` 报告后端分区定位。不要同时传 `--team 0` 与 `--resource-team 0`,也不要把任一形式解释为“查询所有 Team”。
45
+
34
46
  `visible` 只表示当前身份可以读取,不代表可以创建、更新或治理。`data bucket` 和 `--bucket` 只用于旧脚本/旧部署兼容;新任务不得优先使用。