sharepoint-cli-rs 0.1.0__tar.gz → 0.1.2__tar.gz

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 (117) hide show
  1. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.github/workflows/ci.yml +3 -3
  2. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.github/workflows/dependencies.yml +3 -3
  3. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.github/workflows/release.yml +8 -8
  4. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.mise.toml +1 -1
  5. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/CHANGELOG.md +15 -0
  6. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/Cargo.lock +22 -95
  7. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/Cargo.toml +5 -2
  8. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/PKG-INFO +53 -7
  9. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/README.md +52 -6
  10. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/server.rs +6 -3
  11. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/smoke.rs +43 -7
  12. sharepoint_cli_rs-0.1.2/rust-toolchain.toml +4 -0
  13. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/auth/browser.rs +186 -24
  14. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/backend.rs +3 -2
  15. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/cli.rs +1 -1
  16. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/auth.rs +5 -0
  17. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/files.rs +20 -14
  18. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/schema.rs +5 -5
  19. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/sites.rs +3 -2
  20. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/config.rs +15 -0
  21. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/graph/drives.rs +4 -0
  22. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/graph/search.rs +47 -12
  23. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/main.rs +27 -8
  24. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/pagination.rs +10 -0
  25. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/reference.rs +1 -1
  26. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/rest/drives.rs +3 -1
  27. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/rest/search.rs +26 -8
  28. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_clap_error_is_json.rs +36 -0
  29. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_files_find.rs +104 -0
  30. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_files_ls_pagination.rs +6 -1
  31. sharepoint_cli_rs-0.1.2/tests/cmd_rest_auth.rs +617 -0
  32. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_rest_files_find.rs +101 -3
  33. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_rest_files_ls.rs +5 -2
  34. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_sites_list.rs +41 -0
  35. sharepoint_cli_rs-0.1.0/tests/cmd_rest_auth.rs +0 -304
  36. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.envrc +0 -0
  37. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.github/workflows/clispec.yml +0 -0
  38. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/.gitignore +0 -0
  39. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/Makefile +0 -0
  40. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/docs/releases.md +0 -0
  41. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/docs/superpowers/.gitignore +0 -0
  42. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/docs/testing.md +0 -0
  43. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/contracts/LICENSE.pnpcore +0 -0
  44. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/contracts/README.md +0 -0
  45. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/contracts/pnpcore.json +0 -0
  46. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/contracts/provenance.json +0 -0
  47. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/fixtures.json +0 -0
  48. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/main.rs +0 -0
  49. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/odata.rs +0 -0
  50. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/examples/simulator/recording.rs +0 -0
  51. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/flake.lock +0 -0
  52. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/flake.nix +0 -0
  53. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/nix/overlay-check.nix +0 -0
  54. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/nix/package.nix +0 -0
  55. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/prek.toml +0 -0
  56. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/pyproject.toml +0 -0
  57. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/scripts/import_pnpcore_contracts.py +0 -0
  58. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/sharepoint_cli/__init__.py +0 -0
  59. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/sharepoint_cli/__main__.py +0 -0
  60. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/sharepoint_cli/py.typed +0 -0
  61. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/auth/device_code.rs +0 -0
  62. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/auth/mod.rs +0 -0
  63. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/auth/session_store.rs +0 -0
  64. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/auth/token_cache.rs +0 -0
  65. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/config.rs +0 -0
  66. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/doctor.rs +0 -0
  67. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/drives.rs +0 -0
  68. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/init.rs +0 -0
  69. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/mod.rs +0 -0
  70. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/commands/profile.rs +0 -0
  71. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/error.rs +0 -0
  72. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/graph/download.rs +0 -0
  73. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/graph/mod.rs +0 -0
  74. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/graph/sites.rs +0 -0
  75. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/lib.rs +0 -0
  76. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/output.rs +0 -0
  77. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/rest/download.rs +0 -0
  78. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/rest/mod.rs +0 -0
  79. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/rest/sites.rs +0 -0
  80. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/src/util.rs +0 -0
  81. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/auth_concurrent_refresh.rs +0 -0
  82. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/auth_refresh.rs +0 -0
  83. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/auth_token_retry.rs +0 -0
  84. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_env_refresh_token.rs +0 -0
  85. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_login_canonicalizes_tenant.rs +0 -0
  86. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_login_quiet_prompts.rs +0 -0
  87. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_logout.rs +0 -0
  88. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_no_client_id.rs +0 -0
  89. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_auth_status.rs +0 -0
  90. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_backend_contract.rs +0 -0
  91. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_collection_pagination.rs +0 -0
  92. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_config.rs +0 -0
  93. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_download_safety.rs +0 -0
  94. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_drives_list.rs +0 -0
  95. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_drives_list_pagination.rs +0 -0
  96. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_files_ls.rs +0 -0
  97. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_files_ls_recursive_rejects_pagination_flags.rs +0 -0
  98. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_files_stat_download.rs +0 -0
  99. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_flags.rs +0 -0
  100. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_init_quiet.rs +0 -0
  101. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_pagination_safety.rs +0 -0
  102. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_profile.rs +0 -0
  103. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_rest_drives_list.rs +0 -0
  104. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_rest_files_stat_download.rs +0 -0
  105. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_rest_sites_list.rs +0 -0
  106. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_schema.rs +0 -0
  107. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/cmd_sites_use.rs +0 -0
  108. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/device_code_polling.rs +0 -0
  109. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/fixtures/clispec-v0.3.json +0 -0
  110. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/graph_download.rs +0 -0
  111. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/graph_page_token_host_validation.rs +0 -0
  112. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/graph_retry.rs +0 -0
  113. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/rest_client.rs +0 -0
  114. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/simulator.rs +0 -0
  115. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/support/backend.rs +0 -0
  116. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/tests/support/mod.rs +0 -0
  117. {sharepoint_cli_rs-0.1.0 → sharepoint_cli_rs-0.1.2}/vership.toml +0 -0
@@ -18,7 +18,7 @@ jobs:
18
18
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
19
  - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c
20
20
  with:
21
- toolchain: 1.96.0
21
+ toolchain: 1.100.0
22
22
  components: rustfmt, clippy
23
23
  - run: make fmt-check
24
24
  - run: make lint
@@ -33,9 +33,9 @@ jobs:
33
33
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34
34
  - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c
35
35
  with:
36
- toolchain: 1.96.0
36
+ toolchain: 1.100.0
37
37
  components: rustfmt, clippy
38
- - uses: taiki-e/install-action@5488ac5a951645ce95062214902ac4b6bc1a1037 # v2.87.32
38
+ - uses: taiki-e/install-action@fe3acb53a98b62c772db35de75ce0e4595e7ca8c # v2.90.8
39
39
  with:
40
40
  tool: nextest
41
41
  - name: Run unit tests
@@ -13,15 +13,15 @@ permissions:
13
13
 
14
14
  jobs:
15
15
  update:
16
- uses: rvben/upd/.github/workflows/dependency-health.yml@b183939ff7dc62539afb00b3c555ffbfe3c5d58b # v0.18.2
16
+ uses: rvben/upd/.github/workflows/dependency-health.yml@b1ac1c9ed830eec22e0b279f3bcb21a60adf8c56 # v0.18.7
17
17
  with:
18
18
  langs: rust,actions
19
19
  lock: true
20
20
  min-age: 7d
21
21
  max-bump: minor
22
22
  prepare-command: >-
23
- rustup toolchain install 1.96.0 --profile minimal --component clippy,rustfmt &&
24
- rustup default 1.96.0 &&
23
+ rustup toolchain install 1.100.0 --profile minimal --component clippy,rustfmt &&
24
+ rustup default 1.100.0 &&
25
25
  cargo install cargo-nextest --locked
26
26
  validation-command: make check
27
27
  fail-on-blocked: false
@@ -57,10 +57,10 @@ jobs:
57
57
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
58
58
  - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c
59
59
  with:
60
- toolchain: 1.96.0
60
+ toolchain: 1.100.0
61
61
  components: rustfmt, clippy
62
62
  - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
63
- - uses: taiki-e/install-action@5488ac5a951645ce95062214902ac4b6bc1a1037 # v2.87.32
63
+ - uses: taiki-e/install-action@fe3acb53a98b62c772db35de75ce0e4595e7ca8c # v2.90.8
64
64
  with:
65
65
  tool: nextest
66
66
  - run: make fmt-check
@@ -96,11 +96,11 @@ jobs:
96
96
 
97
97
  - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c
98
98
  with:
99
- toolchain: 1.96.0
99
+ toolchain: 1.100.0
100
100
  components: rustfmt, clippy
101
101
  targets: ${{ matrix.target }}
102
102
 
103
- - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
103
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
104
104
 
105
105
  - name: Install maturin and zig
106
106
  shell: bash
@@ -161,7 +161,7 @@ jobs:
161
161
  runs-on: ubuntu-latest
162
162
  steps:
163
163
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
164
- - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
164
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
165
165
  - name: Install maturin
166
166
  shell: bash
167
167
  run: |
@@ -187,7 +187,7 @@ jobs:
187
187
 
188
188
  - name: Create GitHub Release
189
189
  if: ${{ inputs.dry_run != true }}
190
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
190
+ uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
191
191
  with:
192
192
  generate_release_notes: true
193
193
  files: |
@@ -206,7 +206,7 @@ jobs:
206
206
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
207
207
  - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c
208
208
  with:
209
- toolchain: 1.96.0
209
+ toolchain: 1.100.0
210
210
  components: rustfmt, clippy
211
211
  - name: Authenticate to crates.io via Trusted Publishing
212
212
  id: crates_io_auth
@@ -243,7 +243,7 @@ jobs:
243
243
  with:
244
244
  name: sdist
245
245
  path: artifacts/sdist
246
- - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
246
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
247
247
  - name: Publish to PyPI
248
248
  if: ${{ inputs.dry_run != true }}
249
249
  env:
@@ -6,7 +6,7 @@ RUST_BACKTRACE = "1"
6
6
  BINSTALL_DISABLE_TELEMETRY = "true"
7
7
 
8
8
  [tools]
9
- rust = "1.96.0"
9
+ rust = "1.100.0"
10
10
  actionlint = "1.7.12"
11
11
  cargo-binstall = "1.22.0"
12
12
  "cargo:cargo-nextest" = "0.9.143"
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/).
6
6
 
7
+ ## [0.1.2](https://github.com/rvben/sharepoint-cli/compare/v0.1.1...v0.1.2) - 2026-12-01
8
+
9
+ ### Added
10
+
11
+ - **auth**: reuse a browser profile between rest sign-ins ([154861e](https://github.com/rvben/sharepoint-cli/commit/154861ea4d51a487104b975f82257368b964b035))
12
+
13
+ ## [0.1.1](https://github.com/rvben/sharepoint-cli/compare/v0.1.0...v0.1.1) - 2026-11-06
14
+
15
+ ### Fixed
16
+
17
+ - report total as the collection size or null, never the page size ([87c07d6](https://github.com/rvben/sharepoint-cli/commit/87c07d6ae260b0b3f292556f14aaa59368a1d7fe))
18
+ - keep reading search pages until files find reaches --limit ([0353186](https://github.com/rvben/sharepoint-cli/commit/035318691463a3c137c7afd47300a69c27926850))
19
+ - search only the referenced folder in files find ([2d50eb4](https://github.com/rvben/sharepoint-cli/commit/2d50eb45d71f84d8eb6a8d4f8c346ff46a8172e0))
20
+ - name the missing argument in command-line errors ([0ddf284](https://github.com/rvben/sharepoint-cli/commit/0ddf28476b8e1a9e43d510fd383868352025f641))
21
+
7
22
  ## [0.1.0](https://github.com/rvben/sharepoint-cli/compare/v0.0.14...v0.1.0) - 2026-11-03
8
23
 
9
24
  ### Added
@@ -495,9 +495,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
495
495
 
496
496
  [[package]]
497
497
  name = "form_urlencoded"
498
- version = "1.2.2"
498
+ version = "1.2.3"
499
499
  source = "registry+https://github.com/rust-lang/crates.io-index"
500
- checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
500
+ checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
501
501
  dependencies = [
502
502
  "percent-encoding",
503
503
  ]
@@ -1344,9 +1344,9 @@ dependencies = [
1344
1344
 
1345
1345
  [[package]]
1346
1346
  name = "quinn-proto"
1347
- version = "0.11.18"
1347
+ version = "0.11.19"
1348
1348
  source = "registry+https://github.com/rust-lang/crates.io-index"
1349
- checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc"
1349
+ checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"
1350
1350
  dependencies = [
1351
1351
  "bytes",
1352
1352
  "getrandom 0.4.2",
@@ -1366,16 +1366,16 @@ dependencies = [
1366
1366
 
1367
1367
  [[package]]
1368
1368
  name = "quinn-udp"
1369
- version = "0.5.14"
1369
+ version = "0.5.16"
1370
1370
  source = "registry+https://github.com/rust-lang/crates.io-index"
1371
- checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"
1371
+ checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016"
1372
1372
  dependencies = [
1373
1373
  "cfg_aliases",
1374
1374
  "libc",
1375
1375
  "once_cell",
1376
1376
  "socket2",
1377
1377
  "tracing",
1378
- "windows-sys 0.60.2",
1378
+ "windows-sys 0.61.2",
1379
1379
  ]
1380
1380
 
1381
1381
  [[package]]
@@ -1574,9 +1574,9 @@ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
1574
1574
 
1575
1575
  [[package]]
1576
1576
  name = "rustix"
1577
- version = "1.1.4"
1577
+ version = "1.1.6"
1578
1578
  source = "registry+https://github.com/rust-lang/crates.io-index"
1579
- checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
1579
+ checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
1580
1580
  dependencies = [
1581
1581
  "bitflags",
1582
1582
  "errno",
@@ -1721,7 +1721,7 @@ dependencies = [
1721
1721
 
1722
1722
  [[package]]
1723
1723
  name = "sharepoint-cli"
1724
- version = "0.1.0"
1724
+ version = "0.1.2"
1725
1725
  dependencies = [
1726
1726
  "assert_cmd",
1727
1727
  "base64",
@@ -1732,6 +1732,7 @@ dependencies = [
1732
1732
  "futures-util",
1733
1733
  "httpdate",
1734
1734
  "jsonschema",
1735
+ "libc",
1735
1736
  "predicates",
1736
1737
  "reqwest",
1737
1738
  "serde",
@@ -2140,9 +2141,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2140
2141
 
2141
2142
  [[package]]
2142
2143
  name = "url"
2143
- version = "2.5.8"
2144
+ version = "2.5.9"
2144
2145
  source = "registry+https://github.com/rust-lang/crates.io-index"
2145
- checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
2146
+ checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
2146
2147
  dependencies = [
2147
2148
  "form_urlencoded",
2148
2149
  "idna",
@@ -2422,16 +2423,7 @@ version = "0.52.0"
2422
2423
  source = "registry+https://github.com/rust-lang/crates.io-index"
2423
2424
  checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2424
2425
  dependencies = [
2425
- "windows-targets 0.52.6",
2426
- ]
2427
-
2428
- [[package]]
2429
- name = "windows-sys"
2430
- version = "0.60.2"
2431
- source = "registry+https://github.com/rust-lang/crates.io-index"
2432
- checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
2433
- dependencies = [
2434
- "windows-targets 0.53.5",
2426
+ "windows-targets",
2435
2427
  ]
2436
2428
 
2437
2429
  [[package]]
@@ -2449,31 +2441,14 @@ version = "0.52.6"
2449
2441
  source = "registry+https://github.com/rust-lang/crates.io-index"
2450
2442
  checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
2451
2443
  dependencies = [
2452
- "windows_aarch64_gnullvm 0.52.6",
2453
- "windows_aarch64_msvc 0.52.6",
2454
- "windows_i686_gnu 0.52.6",
2455
- "windows_i686_gnullvm 0.52.6",
2456
- "windows_i686_msvc 0.52.6",
2457
- "windows_x86_64_gnu 0.52.6",
2458
- "windows_x86_64_gnullvm 0.52.6",
2459
- "windows_x86_64_msvc 0.52.6",
2460
- ]
2461
-
2462
- [[package]]
2463
- name = "windows-targets"
2464
- version = "0.53.5"
2465
- source = "registry+https://github.com/rust-lang/crates.io-index"
2466
- checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
2467
- dependencies = [
2468
- "windows-link",
2469
- "windows_aarch64_gnullvm 0.53.1",
2470
- "windows_aarch64_msvc 0.53.1",
2471
- "windows_i686_gnu 0.53.1",
2472
- "windows_i686_gnullvm 0.53.1",
2473
- "windows_i686_msvc 0.53.1",
2474
- "windows_x86_64_gnu 0.53.1",
2475
- "windows_x86_64_gnullvm 0.53.1",
2476
- "windows_x86_64_msvc 0.53.1",
2444
+ "windows_aarch64_gnullvm",
2445
+ "windows_aarch64_msvc",
2446
+ "windows_i686_gnu",
2447
+ "windows_i686_gnullvm",
2448
+ "windows_i686_msvc",
2449
+ "windows_x86_64_gnu",
2450
+ "windows_x86_64_gnullvm",
2451
+ "windows_x86_64_msvc",
2477
2452
  ]
2478
2453
 
2479
2454
  [[package]]
@@ -2482,96 +2457,48 @@ version = "0.52.6"
2482
2457
  source = "registry+https://github.com/rust-lang/crates.io-index"
2483
2458
  checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
2484
2459
 
2485
- [[package]]
2486
- name = "windows_aarch64_gnullvm"
2487
- version = "0.53.1"
2488
- source = "registry+https://github.com/rust-lang/crates.io-index"
2489
- checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
2490
-
2491
2460
  [[package]]
2492
2461
  name = "windows_aarch64_msvc"
2493
2462
  version = "0.52.6"
2494
2463
  source = "registry+https://github.com/rust-lang/crates.io-index"
2495
2464
  checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
2496
2465
 
2497
- [[package]]
2498
- name = "windows_aarch64_msvc"
2499
- version = "0.53.1"
2500
- source = "registry+https://github.com/rust-lang/crates.io-index"
2501
- checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
2502
-
2503
2466
  [[package]]
2504
2467
  name = "windows_i686_gnu"
2505
2468
  version = "0.52.6"
2506
2469
  source = "registry+https://github.com/rust-lang/crates.io-index"
2507
2470
  checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
2508
2471
 
2509
- [[package]]
2510
- name = "windows_i686_gnu"
2511
- version = "0.53.1"
2512
- source = "registry+https://github.com/rust-lang/crates.io-index"
2513
- checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
2514
-
2515
2472
  [[package]]
2516
2473
  name = "windows_i686_gnullvm"
2517
2474
  version = "0.52.6"
2518
2475
  source = "registry+https://github.com/rust-lang/crates.io-index"
2519
2476
  checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
2520
2477
 
2521
- [[package]]
2522
- name = "windows_i686_gnullvm"
2523
- version = "0.53.1"
2524
- source = "registry+https://github.com/rust-lang/crates.io-index"
2525
- checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
2526
-
2527
2478
  [[package]]
2528
2479
  name = "windows_i686_msvc"
2529
2480
  version = "0.52.6"
2530
2481
  source = "registry+https://github.com/rust-lang/crates.io-index"
2531
2482
  checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
2532
2483
 
2533
- [[package]]
2534
- name = "windows_i686_msvc"
2535
- version = "0.53.1"
2536
- source = "registry+https://github.com/rust-lang/crates.io-index"
2537
- checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
2538
-
2539
2484
  [[package]]
2540
2485
  name = "windows_x86_64_gnu"
2541
2486
  version = "0.52.6"
2542
2487
  source = "registry+https://github.com/rust-lang/crates.io-index"
2543
2488
  checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
2544
2489
 
2545
- [[package]]
2546
- name = "windows_x86_64_gnu"
2547
- version = "0.53.1"
2548
- source = "registry+https://github.com/rust-lang/crates.io-index"
2549
- checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
2550
-
2551
2490
  [[package]]
2552
2491
  name = "windows_x86_64_gnullvm"
2553
2492
  version = "0.52.6"
2554
2493
  source = "registry+https://github.com/rust-lang/crates.io-index"
2555
2494
  checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
2556
2495
 
2557
- [[package]]
2558
- name = "windows_x86_64_gnullvm"
2559
- version = "0.53.1"
2560
- source = "registry+https://github.com/rust-lang/crates.io-index"
2561
- checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
2562
-
2563
2496
  [[package]]
2564
2497
  name = "windows_x86_64_msvc"
2565
2498
  version = "0.52.6"
2566
2499
  source = "registry+https://github.com/rust-lang/crates.io-index"
2567
2500
  checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
2568
2501
 
2569
- [[package]]
2570
- name = "windows_x86_64_msvc"
2571
- version = "0.53.1"
2572
- source = "registry+https://github.com/rust-lang/crates.io-index"
2573
- checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
2574
-
2575
2502
  [[package]]
2576
2503
  name = "winnow"
2577
2504
  version = "0.7.15"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "sharepoint-cli"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  edition = "2024"
5
5
  rust-version = "1.90"
6
6
  description = "Agent-friendly SharePoint Online CLI with JSON output, structured exit codes, and schema introspection"
@@ -26,7 +26,7 @@ toml = "0.8"
26
26
  dirs = "6"
27
27
  base64 = "0.22"
28
28
  terminal_size = "0.4"
29
- url = "2"
29
+ url = "2.5.9"
30
30
  futures-util = "0.3"
31
31
  chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
32
32
  httpdate = "1"
@@ -34,6 +34,9 @@ tempfile = "3"
34
34
  tracing = "0.1"
35
35
  tokio-tungstenite = { version = "0.30.0", default-features = false, features = ["connect"] }
36
36
 
37
+ [target.'cfg(unix)'.dependencies]
38
+ libc = "0.2"
39
+
37
40
  [dev-dependencies]
38
41
  wiremock = "0.6"
39
42
  assert_cmd = "2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sharepoint-cli-rs
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: System Administrators
@@ -151,12 +151,19 @@ input error instead.
151
151
 
152
152
  List responses contain `items`, `total`, and an opaque `next` cursor. Pass a
153
153
  non-null cursor back with `--page`; stop when `next` is null. `--limit` must be
154
- positive and sets an upper bound, so a server page or a search filtered by
155
- `--name` can return fewer items. Use `--all` for sites, drives, file listings,
154
+ positive and sets an upper bound; `sites list` can return fewer items when a
155
+ server page ends first. Use `--all` for sites, drives, file listings,
156
156
  and search to fetch all remaining pages. `files ls --recursive` returns the
157
157
  complete tree and cannot be combined with pagination flags.
158
- For sites and files, `total` counts the returned items. For drives and Graph
159
- cached accounts, it counts the complete collection before limiting.
158
+ `total` is the size of the complete collection, never the size of the page.
159
+ For sites and `files find` it is known only when one response holds every
160
+ item (no incoming `--page`, null `next`), and is `null` otherwise. For REST
161
+ `files ls` it is always the folder's item count; for Graph `files ls` it is
162
+ `null` while more pages remain. For drives and Graph cached accounts it counts
163
+ the complete collection before limiting.
164
+ `files find` searches the referenced folder and its subfolders; reference the
165
+ library root to search the whole library. With `--name`, it keeps reading
166
+ search pages until `--limit` matches are found or the results run out.
160
167
  Graph `auth status` supports `--limit` and `--page`; REST status describes a
161
168
  single host session and rejects `--page`.
162
169
 
@@ -221,6 +228,7 @@ Environment overrides:
221
228
  - `SHAREPOINT_HOST` — SharePoint host for the `rest` backend, e.g. `contoso.sharepoint.com`
222
229
  - `SHAREPOINT_COOKIE` — session cookie header for the `rest` backend; skips the stored browser session
223
230
  - `SHAREPOINT_BROWSER` — browser executable that `auth login` launches for the `rest` backend
231
+ - `SHAREPOINT_BROWSER_PROFILE`: browser profile directory `auth login` keeps between sign-ins, so single sign-on carries over (see [reusing a sign-in](#reusing-a-sign-in))
224
232
 
225
233
  ## Without Microsoft Graph (browser session)
226
234
 
@@ -244,8 +252,9 @@ sharepoint --profile work doctor
244
252
  ```
245
253
 
246
254
  - `auth login` needs a Chromium-based browser (Edge, Chrome, Chromium or Brave).
247
- It launches it with a throwaway profile, waits up to five minutes for you to
248
- finish signing in, then closes it. Set `SHAREPOINT_BROWSER` to pick one
255
+ It launches it with a throwaway profile (or the one in
256
+ `SHAREPOINT_BROWSER_PROFILE`, see [reusing a sign-in](#reusing-a-sign-in)),
257
+ waits up to five minutes for you to finish signing in, then closes it. Set `SHAREPOINT_BROWSER` to pick one
249
258
  explicitly.
250
259
  - A snap-packaged Chromium (the default `chromium` on Ubuntu) won't work: its
251
260
  private `/tmp` hides the browser's DevTools port file from the CLI. Point
@@ -264,6 +273,43 @@ sharepoint --profile work doctor
264
273
  fresh browser profile.
265
274
  - For CI, pass `SHAREPOINT_COOKIE="FedAuth=…; rtFa=…"` instead of signing in.
266
275
 
276
+ ### Reusing a sign-in
277
+
278
+ By default every `auth login` starts from an empty browser profile, so you go
279
+ through password and MFA each time. Set `SHAREPOINT_BROWSER_PROFILE` to a
280
+ directory and `auth login` keeps that profile instead. Once you are signed in
281
+ to Microsoft there, later sign-ins finish on their own, also for other hosts
282
+ and for other tools that use the same profile directory.
283
+
284
+ ```sh
285
+ export SHAREPOINT_BROWSER_PROFILE="$HOME/.local/share/sso-browser"
286
+ sharepoint auth login # first time: password and MFA; answer Yes to "Stay signed in?"
287
+ sharepoint auth login # later: no prompts while the Microsoft session lasts
288
+ ```
289
+
290
+ - Answer **Yes** to "Stay signed in?", so Microsoft stores a persistent
291
+ sign-in cookie. A session-only sign-in is not guaranteed to survive the
292
+ browser closing. How long a sign-in lasts is up to your organization's
293
+ sign-in policy.
294
+ - Use a directory of its own, not your browser's everyday profile: current
295
+ Chrome and Edge refuse the DevTools connection `auth login` needs on their
296
+ default profile, and sharing it with your everyday browser would also mean
297
+ only one of them can run at a time.
298
+ - The directory holds your Microsoft sign-in, so treat it like a password.
299
+ `auth login` creates it with mode 0700 and, on Linux and macOS, refuses one
300
+ owned by another user or one that other users can open. Access control
301
+ lists are not checked; on Windows the directory keeps the permissions it
302
+ inherits, which in your user profile are normally private to you.
303
+ - While `auth login` runs, the browser's DevTools port listens on 127.0.0.1,
304
+ with or without a kept profile. On a machine shared with other users, any
305
+ local account can connect to it during that time and read the browser's
306
+ cookies, so sign in there only on a machine you trust.
307
+ - Use the same browser for every tool that shares the directory (set
308
+ `SHAREPOINT_BROWSER`). Chrome and Edge encrypt cookies differently, so a
309
+ profile written by one is not signed in for the other.
310
+ - Only one browser can use a profile at a time. If another window has it
311
+ open, `auth login` says so; close that window and try again.
312
+
267
313
  ## License
268
314
 
269
315
  MIT
@@ -130,12 +130,19 @@ input error instead.
130
130
 
131
131
  List responses contain `items`, `total`, and an opaque `next` cursor. Pass a
132
132
  non-null cursor back with `--page`; stop when `next` is null. `--limit` must be
133
- positive and sets an upper bound, so a server page or a search filtered by
134
- `--name` can return fewer items. Use `--all` for sites, drives, file listings,
133
+ positive and sets an upper bound; `sites list` can return fewer items when a
134
+ server page ends first. Use `--all` for sites, drives, file listings,
135
135
  and search to fetch all remaining pages. `files ls --recursive` returns the
136
136
  complete tree and cannot be combined with pagination flags.
137
- For sites and files, `total` counts the returned items. For drives and Graph
138
- cached accounts, it counts the complete collection before limiting.
137
+ `total` is the size of the complete collection, never the size of the page.
138
+ For sites and `files find` it is known only when one response holds every
139
+ item (no incoming `--page`, null `next`), and is `null` otherwise. For REST
140
+ `files ls` it is always the folder's item count; for Graph `files ls` it is
141
+ `null` while more pages remain. For drives and Graph cached accounts it counts
142
+ the complete collection before limiting.
143
+ `files find` searches the referenced folder and its subfolders; reference the
144
+ library root to search the whole library. With `--name`, it keeps reading
145
+ search pages until `--limit` matches are found or the results run out.
139
146
  Graph `auth status` supports `--limit` and `--page`; REST status describes a
140
147
  single host session and rejects `--page`.
141
148
 
@@ -200,6 +207,7 @@ Environment overrides:
200
207
  - `SHAREPOINT_HOST` — SharePoint host for the `rest` backend, e.g. `contoso.sharepoint.com`
201
208
  - `SHAREPOINT_COOKIE` — session cookie header for the `rest` backend; skips the stored browser session
202
209
  - `SHAREPOINT_BROWSER` — browser executable that `auth login` launches for the `rest` backend
210
+ - `SHAREPOINT_BROWSER_PROFILE`: browser profile directory `auth login` keeps between sign-ins, so single sign-on carries over (see [reusing a sign-in](#reusing-a-sign-in))
203
211
 
204
212
  ## Without Microsoft Graph (browser session)
205
213
 
@@ -223,8 +231,9 @@ sharepoint --profile work doctor
223
231
  ```
224
232
 
225
233
  - `auth login` needs a Chromium-based browser (Edge, Chrome, Chromium or Brave).
226
- It launches it with a throwaway profile, waits up to five minutes for you to
227
- finish signing in, then closes it. Set `SHAREPOINT_BROWSER` to pick one
234
+ It launches it with a throwaway profile (or the one in
235
+ `SHAREPOINT_BROWSER_PROFILE`, see [reusing a sign-in](#reusing-a-sign-in)),
236
+ waits up to five minutes for you to finish signing in, then closes it. Set `SHAREPOINT_BROWSER` to pick one
228
237
  explicitly.
229
238
  - A snap-packaged Chromium (the default `chromium` on Ubuntu) won't work: its
230
239
  private `/tmp` hides the browser's DevTools port file from the CLI. Point
@@ -243,6 +252,43 @@ sharepoint --profile work doctor
243
252
  fresh browser profile.
244
253
  - For CI, pass `SHAREPOINT_COOKIE="FedAuth=…; rtFa=…"` instead of signing in.
245
254
 
255
+ ### Reusing a sign-in
256
+
257
+ By default every `auth login` starts from an empty browser profile, so you go
258
+ through password and MFA each time. Set `SHAREPOINT_BROWSER_PROFILE` to a
259
+ directory and `auth login` keeps that profile instead. Once you are signed in
260
+ to Microsoft there, later sign-ins finish on their own, also for other hosts
261
+ and for other tools that use the same profile directory.
262
+
263
+ ```sh
264
+ export SHAREPOINT_BROWSER_PROFILE="$HOME/.local/share/sso-browser"
265
+ sharepoint auth login # first time: password and MFA; answer Yes to "Stay signed in?"
266
+ sharepoint auth login # later: no prompts while the Microsoft session lasts
267
+ ```
268
+
269
+ - Answer **Yes** to "Stay signed in?", so Microsoft stores a persistent
270
+ sign-in cookie. A session-only sign-in is not guaranteed to survive the
271
+ browser closing. How long a sign-in lasts is up to your organization's
272
+ sign-in policy.
273
+ - Use a directory of its own, not your browser's everyday profile: current
274
+ Chrome and Edge refuse the DevTools connection `auth login` needs on their
275
+ default profile, and sharing it with your everyday browser would also mean
276
+ only one of them can run at a time.
277
+ - The directory holds your Microsoft sign-in, so treat it like a password.
278
+ `auth login` creates it with mode 0700 and, on Linux and macOS, refuses one
279
+ owned by another user or one that other users can open. Access control
280
+ lists are not checked; on Windows the directory keeps the permissions it
281
+ inherits, which in your user profile are normally private to you.
282
+ - While `auth login` runs, the browser's DevTools port listens on 127.0.0.1,
283
+ with or without a kept profile. On a machine shared with other users, any
284
+ local account can connect to it during that time and read the browser's
285
+ cookies, so sign in there only on a machine you trust.
286
+ - Use the same browser for every tool that shares the directory (set
287
+ `SHAREPOINT_BROWSER`). Chrome and Edge encrypt cookies differently, so a
288
+ profile written by one is not signed in for the other.
289
+ - Only one browser can use a profile at a time. If another window has it
290
+ open, `auth login` says so; close that window and try again.
291
+
246
292
  ## License
247
293
 
248
294
  MIT
@@ -542,10 +542,13 @@ impl Api {
542
542
  for site in &self.fixtures.sites {
543
543
  for library in &site.libraries {
544
544
  let root = library.root_path(site);
545
- if format!("https://{}{root}", site.host) != scope {
546
- continue;
547
- }
548
545
  for file in &library.files {
546
+ // KQL `path:` is a case-insensitive URL prefix match, so a
547
+ // folder scope also matches siblings sharing its prefix.
548
+ let url = format!("https://{}{root}/{}", site.host, file.path);
549
+ if !url.to_lowercase().starts_with(&scope.to_lowercase()) {
550
+ continue;
551
+ }
549
552
  if matches_text(&file.path, &text) || matches_text(&file.content, &text) {
550
553
  rows.push(cells(&[
551
554
  ("FileName", name(&file.path).into()),