shortcutxl 0.3.76 → 0.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BINARY-INVENTORY.json +813 -813
- package/CHANGELOG.md +14 -0
- package/dist/ai/models.d.ts +10 -6
- package/dist/ai/models.generated.d.ts +72 -0
- package/dist/ai/models.generated.js +33 -0
- package/dist/ai/models.js +36 -13
- package/dist/ai/providers/anthropic.d.ts +4 -2
- package/dist/ai/providers/anthropic.js +59 -29
- package/dist/ai/providers/azure-openai-responses.d.ts +2 -1
- package/dist/ai/providers/azure-openai-responses.js +4 -20
- package/dist/ai/providers/google-vertex.d.ts +8 -2
- package/dist/ai/providers/google-vertex.js +66 -54
- package/dist/ai/providers/google.js +15 -48
- package/dist/ai/providers/openai-completions.d.ts +4 -1
- package/dist/ai/providers/openai-completions.js +26 -10
- package/dist/ai/providers/openai-reasoning.d.ts +5 -0
- package/dist/ai/providers/openai-reasoning.js +13 -0
- package/dist/ai/providers/openai-responses-shared.js +1 -1
- package/dist/ai/providers/openai-responses.d.ts +6 -2
- package/dist/ai/providers/openai-responses.js +28 -23
- package/dist/ai/providers/simple-options.d.ts +2 -3
- package/dist/ai/providers/simple-options.js +4 -6
- package/dist/ai/types.d.ts +19 -2
- package/dist/app/agent-session-runtime-adapter.js +7 -6
- package/dist/app/agent-session.d.ts +0 -15
- package/dist/app/agent-session.js +0 -37
- package/dist/app/approvals/approval-errors.d.ts +15 -0
- package/dist/app/approvals/approval-errors.js +14 -0
- package/dist/app/approvals/runtime-approval-gates.d.ts +1 -2
- package/dist/app/approvals/tool-approval.d.ts +1 -0
- package/dist/app/approvals/tool-approval.js +11 -23
- package/dist/app/approvals/types.d.ts +0 -14
- package/dist/app/approvals/types.js +0 -2
- package/dist/app/background/tool-summaries.js +0 -2
- package/dist/app/extensions/slash-commands.js +1 -3
- package/dist/app/local/tools/execute-code/executor.d.ts +1 -1
- package/dist/app/local/tools/execute-code/executor.js +20 -10
- package/dist/app/local/tools/execute-code/tool.js +21 -2
- package/dist/app/modes/action/agent.js +4 -5
- package/dist/app/modes/ask/agent.js +4 -6
- package/dist/app/modes/index.js +20 -10
- package/dist/app/modes/installation/agent.js +4 -5
- package/dist/app/modes/manage/agent.js +3 -4
- package/dist/app/modes/manage/prompt.js +1 -2
- package/dist/app/modes/metadata.d.ts +31 -0
- package/dist/app/modes/metadata.js +35 -0
- package/dist/app/modes/plan/agent.js +5 -8
- package/dist/app/modes/plan/prompt.js +3 -3
- package/dist/app/permissions/runtime-approval-flow.d.ts +1 -5
- package/dist/app/permissions/runtime-approval-flow.js +0 -28
- package/dist/app/permissions/tool-gates.d.ts +2 -3
- package/dist/app/permissions/tool-gates.js +3 -81
- package/dist/app/prompts/com-api.js +1 -1
- package/dist/app/prompts/shared-guidelines.js +7 -3
- package/dist/app/providers/google-vertex-gateway.js +4 -51
- package/dist/app/providers/model-registry.d.ts +1 -0
- package/dist/app/providers/model-registry.js +39 -0
- package/dist/app/providers/model-resolver.js +10 -7
- package/dist/app/providers/register-shortcut-provider.js +6 -6
- package/dist/app/providers/shortcut-api-v2-transport.js +4 -0
- package/dist/app/providers/shortcut-llm-proxy-client.d.ts +2 -2
- package/dist/app/providers/shortcut-llm-proxy-client.js +1 -0
- package/dist/app/resources/package-manager.js +2 -123
- package/dist/app/resources/resource-patterns.d.ts +9 -0
- package/dist/app/resources/resource-patterns.js +120 -0
- package/dist/app/session/forked-agent.d.ts +2 -2
- package/dist/app/session/model-manager.js +3 -2
- package/dist/app/session/session-lifecycle.js +3 -2
- package/dist/app/session/session-models.d.ts +2 -0
- package/dist/app/session/session-models.js +14 -6
- package/dist/app/settings-manager.d.ts +3 -3
- package/dist/app/shared/tools/execute-code/mog.d.ts +3 -1
- package/dist/app/shared/tools/execute-code/mog.js +18 -2
- package/dist/app/tools/bash.js +3 -3
- package/dist/app/tools/execute-code/index.d.ts +1 -0
- package/dist/app/tools/execute-code/index.js +3 -1
- package/dist/app/tools/find-ignore-files.d.ts +3 -0
- package/dist/app/tools/find-ignore-files.js +33 -0
- package/dist/app/tools/find.js +2 -21
- package/dist/app/tools/llm-analysis.js +0 -2
- package/dist/app/tools/refresh-context.d.ts +1 -1
- package/dist/app/tools/session-settings/update-session-settings.js +2 -2
- package/dist/app/tools/switch-mode.js +2 -2
- package/dist/app/tools/take-screenshot.js +0 -2
- package/dist/app/tools/task/runner.js +1 -2
- package/dist/app/tools/task/task.d.ts +1 -3
- package/dist/app/tools/task/task.js +20 -40
- package/dist/app/tools/web-search.js +12 -2
- package/dist/autocomplete/core.d.ts +33 -0
- package/dist/autocomplete/core.js +113 -0
- package/dist/{tui → autocomplete}/fuzzy.d.ts +0 -1
- package/dist/{tui → autocomplete}/fuzzy.js +0 -1
- package/dist/{tui/autocomplete.d.ts → autocomplete/index.d.ts} +0 -1
- package/dist/{tui/autocomplete.js → autocomplete/index.js} +62 -158
- package/dist/cli/args.js +1 -1
- package/dist/cli/list-models.js +1 -1
- package/dist/cli.js +26227 -30480
- package/dist/constants.d.ts +0 -2
- package/dist/constants.js +0 -3
- package/dist/contracts/agent-session-store.d.ts +1 -1
- package/dist/contracts/agent-settings.d.ts +1 -0
- package/dist/contracts/agent-settings.js +2 -1
- package/dist/contracts/model-call.d.ts +1 -2
- package/dist/contracts/model-call.js +1 -2
- package/dist/contracts/model-stream.d.ts +1 -0
- package/dist/contracts/model-stream.js +1 -0
- package/dist/contracts/wire.d.ts +10 -7
- package/dist/contracts/wire.js +8 -0
- package/dist/core/agent-engine.js +1 -1
- package/dist/core/core-types.d.ts +1 -21
- package/dist/core/defaults.d.ts +1 -1
- package/dist/core/defaults.js +9 -1
- package/dist/core/prompts/agent-guidelines.d.ts +4 -5
- package/dist/core/prompts/agent-guidelines.js +28 -42
- package/dist/core/session-schema.d.ts +1 -1
- package/dist/embedded-agent/ai-invoke.d.ts +1 -2
- package/dist/embedded-agent/ai-invoke.js +2 -70
- package/dist/embedded-agent/anthropic-messages-transport.d.ts +4 -20
- package/dist/embedded-agent/anthropic-messages-transport.js +23 -786
- package/dist/embedded-agent/bootstrap.js +2 -2
- package/dist/embedded-agent/compose.js +8 -7
- package/dist/embedded-agent/gateway-base-url.d.ts +3 -0
- package/dist/embedded-agent/gateway-base-url.js +35 -0
- package/dist/embedded-agent/google-vertex-transport.d.ts +2 -11
- package/dist/embedded-agent/google-vertex-transport.js +20 -117
- package/dist/embedded-agent/host-runtime-options.d.ts +0 -8
- package/dist/embedded-agent/host-runtime-options.js +10 -2
- package/dist/embedded-agent/host-tools/invoke-llm/contract.d.ts +2 -2
- package/dist/embedded-agent/host-tools/invoke-llm/contract.js +4 -2
- package/dist/embedded-agent/host-tools/sandbox-llm/contract.d.ts +8 -3
- package/dist/embedded-agent/host-tools/sandbox-llm/contract.js +12 -8
- package/dist/embedded-agent/host-tools/sandbox-llm/index.d.ts +1 -1
- package/dist/embedded-agent/host-tools/sandbox-llm/index.js +1 -1
- package/dist/embedded-agent/host-tools/shared/index.d.ts +1 -1
- package/dist/embedded-agent/host-tools/shared/index.js +1 -1
- package/dist/embedded-agent/host-tools/shared/llm-stream-error.d.ts +7 -0
- package/dist/embedded-agent/host-tools/shared/llm-stream-error.js +10 -0
- package/dist/embedded-agent/host-tools/take-screenshot/contract.d.ts +0 -2
- package/dist/embedded-agent/host-tools/take-screenshot/contract.js +1 -3
- package/dist/embedded-agent/host-tools/take-screenshot/index.d.ts +1 -1
- package/dist/embedded-agent/host-tools/take-screenshot/index.js +1 -1
- package/dist/embedded-agent/host-tools/task/agents/clone.js +1 -2
- package/dist/embedded-agent/host-tools/task/contract.js +1 -1
- package/dist/embedded-agent/index.d.ts +3 -4
- package/dist/embedded-agent/index.js +2 -3
- package/dist/embedded-agent/model-selection.d.ts +0 -6
- package/dist/embedded-agent/model-selection.js +15 -8
- package/dist/embedded-agent/openai-completions-transport.d.ts +2 -11
- package/dist/embedded-agent/openai-completions-transport.js +20 -120
- package/dist/embedded-agent/openai-responses-transport.d.ts +2 -11
- package/dist/embedded-agent/openai-responses-transport.js +15 -170
- package/dist/embedded-agent/prompt/build.js +1 -2
- package/dist/embedded-agent/prompt/sections.d.ts +1 -1
- package/dist/embedded-agent/prompt/sections.js +2 -0
- package/dist/embedded-agent/provider-native-request.d.ts +29 -0
- package/dist/embedded-agent/provider-native-request.js +65 -0
- package/dist/embedded-agent/run-stats.d.ts +1 -1
- package/dist/embedded-agent/stream.d.ts +10 -96
- package/dist/embedded-agent/stream.js +31 -556
- package/dist/embedded-agent/suggestions.d.ts +1 -1
- package/dist/embedded-agent/suggestions.js +1 -1
- package/dist/embedded-agent/worker-bridge/host-client.d.ts +7 -0
- package/dist/embedded-agent/worker-bridge/host-client.js +15 -0
- package/dist/embedded-agent/worker-bridge/worker-port.js +17 -1
- package/dist/main.js +18 -14
- package/dist/rpc/index.d.ts +1 -1
- package/dist/rpc/rpc-approval-gates.js +1 -2
- package/dist/rpc/rpc-host.d.ts +4 -0
- package/dist/rpc/rpc-host.js +13 -24
- package/dist/rpc/rpc-types.d.ts +6 -17
- package/dist/shared/platform/open.d.ts +4 -1
- package/dist/shared/platform/open.js +14 -2
- package/dist/shell/approvals/runtime-approval-gates.js +1 -3
- package/dist/shell/components/selectors/model-selector.js +2 -1
- package/dist/shell/components/selectors/session-selector-search.js +1 -1
- package/dist/shell/components/selectors/thinking-selector.js +7 -6
- package/dist/shell/index.d.ts +0 -1
- package/dist/shell/index.js +0 -1
- package/dist/shell/interactive/interactive-mode-options.d.ts +10 -0
- package/dist/shell/interactive/interactive-mode.d.ts +6 -12
- package/dist/shell/interactive/interactive-mode.js +39 -158
- package/dist/shell/interactive/slash-commands.d.ts +0 -34
- package/dist/shell/interactive/slash-commands.js +0 -2
- package/dist/shell/links/local-file-link-input.d.ts +15 -0
- package/dist/shell/links/local-file-link-input.js +38 -0
- package/dist/shell/links/local-file-link.d.ts +7 -0
- package/dist/shell/links/local-file-link.js +35 -0
- package/dist/shell/links/local-file-opener.d.ts +16 -0
- package/dist/shell/links/local-file-opener.js +90 -0
- package/dist/shell/session-client.d.ts +0 -1
- package/dist/shell/session-client.js +0 -6
- package/dist/shell/status/update-check-scheduler.d.ts +30 -0
- package/dist/shell/status/update-check-scheduler.js +71 -0
- package/dist/shell/status/update-reminder-controller.d.ts +22 -0
- package/dist/shell/status/update-reminder-controller.js +40 -0
- package/dist/shell/status/update-reminder.d.ts +6 -0
- package/dist/shell/status/update-reminder.js +4 -0
- package/dist/shell/theme/dark.json +1 -2
- package/dist/shell/theme/light.json +1 -2
- package/dist/shell/theme/runtime.d.ts +2 -3
- package/dist/shell/theme/runtime.js +2 -6
- package/dist/shell/theme/theme-schema.json +1 -6
- package/dist/shortcut-model-catalog.d.ts +7 -2
- package/dist/shortcut-model-catalog.js +134 -10
- package/dist/startup/update-manager.d.ts +6 -6
- package/dist/startup/update-manager.js +23 -38
- package/dist/startup/update-prompt.d.ts +1 -0
- package/dist/startup/update-prompt.js +2 -2
- package/dist/tui/components/editor.d.ts +1 -1
- package/dist/tui/components/editor.js +1 -1
- package/dist/tui/components/markdown.js +15 -6
- package/dist/tui/components/settings-list.js +1 -1
- package/dist/tui/editor-component.d.ts +1 -1
- package/dist/tui/index.d.ts +7 -8
- package/dist/tui/index.js +7 -6
- package/dist/tui/tui.d.ts +2 -0
- package/dist/tui/tui.js +16 -1
- package/dist/tui/utils.d.ts +7 -0
- package/dist/tui/utils.js +58 -8
- package/native-app/main/index.js +3200 -48
- package/native-app/main/{photon_rs-SoVDgheu.js → photon_rs-XkYyYTVA.js} +2 -2
- package/native-app/package.json +1 -1
- package/native-app/preload/index.cjs +2 -0
- package/native-app/renderer/assets/{index-CFc-oZuS.js → index-B4jz6epR.js} +825 -155
- package/native-app/renderer/assets/{index-OhGE0UY4.css → index-C__g36ft.css} +412 -162
- package/native-app/renderer/assets/shortcutagent-DxFsGSkw.png +0 -0
- package/native-app/renderer/index.html +2 -2
- package/package.json +17 -3
- package/skills/add-custom-model/SKILL.md +52 -0
- package/user-docs/dist/index.html +1 -1
- package/user-docs/dist/shortcutxl-docs.pdf +0 -0
- package/xll/ShortcutXL.xll +0 -0
- package/xll/modules/shortcut_xl/_managed.py +26 -7
- package/xll/modules/shortcut_xl/_tracking.py +141 -251
- package/xll/modules/shortcut_xl/api/__init__.py +60 -0
- package/xll/modules/shortcut_xl/api/workbook.py +9 -1
- package/xll/modules/shortcut_xl/api/worksheet.py +4 -1
- package/xll/python/Lib/site-packages/httpx-0.28.1.dist-info/RECORD +1 -1
- package/xll/python/Lib/site-packages/idna-3.18.dist-info/RECORD +1 -1
- package/xll/python/Lib/site-packages/pip/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/build_env/__init__.py +25 -0
- package/xll/python/Lib/site-packages/pip/_internal/build_env/base.py +103 -0
- package/xll/python/Lib/site-packages/pip/_internal/build_env/installer.py +333 -0
- package/xll/python/Lib/site-packages/pip/_internal/build_env/noop.py +42 -0
- package/xll/python/Lib/site-packages/pip/_internal/build_env/venv.py +145 -0
- package/xll/python/Lib/site-packages/pip/_internal/build_env/virtual.py +139 -0
- package/xll/python/Lib/site-packages/pip/_internal/cache.py +4 -1
- package/xll/python/Lib/site-packages/pip/_internal/cli/autocompletion.py +4 -1
- package/xll/python/Lib/site-packages/pip/_internal/cli/base_command.py +11 -14
- package/xll/python/Lib/site-packages/pip/_internal/cli/cmdoptions.py +133 -22
- package/xll/python/Lib/site-packages/pip/_internal/cli/index_command.py +11 -6
- package/xll/python/Lib/site-packages/pip/_internal/cli/main.py +2 -1
- package/xll/python/Lib/site-packages/pip/_internal/cli/main_parser.py +1 -2
- package/xll/python/Lib/site-packages/pip/_internal/cli/parser.py +10 -2
- package/xll/python/Lib/site-packages/pip/_internal/cli/progress_bars.py +2 -2
- package/xll/python/Lib/site-packages/pip/_internal/cli/req_command.py +57 -25
- package/xll/python/Lib/site-packages/pip/_internal/cli/status_codes.py +1 -0
- package/xll/python/Lib/site-packages/pip/_internal/commands/cache.py +7 -6
- package/xll/python/Lib/site-packages/pip/_internal/commands/configuration.py +2 -1
- package/xll/python/Lib/site-packages/pip/_internal/commands/debug.py +4 -5
- package/xll/python/Lib/site-packages/pip/_internal/commands/download.py +4 -0
- package/xll/python/Lib/site-packages/pip/_internal/commands/freeze.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/commands/index.py +10 -3
- package/xll/python/Lib/site-packages/pip/_internal/commands/inspect.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/commands/install.py +6 -6
- package/xll/python/Lib/site-packages/pip/_internal/commands/list.py +11 -6
- package/xll/python/Lib/site-packages/pip/_internal/commands/lock.py +4 -6
- package/xll/python/Lib/site-packages/pip/_internal/commands/show.py +14 -8
- package/xll/python/Lib/site-packages/pip/_internal/commands/wheel.py +7 -1
- package/xll/python/Lib/site-packages/pip/_internal/configuration.py +2 -3
- package/xll/python/Lib/site-packages/pip/_internal/distributions/base.py +5 -3
- package/xll/python/Lib/site-packages/pip/_internal/distributions/installed.py +3 -2
- package/xll/python/Lib/site-packages/pip/_internal/distributions/sdist.py +45 -20
- package/xll/python/Lib/site-packages/pip/_internal/distributions/wheel.py +3 -2
- package/xll/python/Lib/site-packages/pip/_internal/exceptions.py +174 -0
- package/xll/python/Lib/site-packages/pip/_internal/index/collector.py +70 -48
- package/xll/python/Lib/site-packages/pip/_internal/index/package_finder.py +46 -7
- package/xll/python/Lib/site-packages/pip/_internal/index/sources.py +1 -2
- package/xll/python/Lib/site-packages/pip/_internal/locations/_sysconfig.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/locations/base.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/metadata/base.py +10 -5
- package/xll/python/Lib/site-packages/pip/_internal/metadata/importlib/_dists.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/metadata/importlib/_envs.py +8 -3
- package/xll/python/Lib/site-packages/pip/_internal/models/candidate.py +5 -1
- package/xll/python/Lib/site-packages/pip/_internal/models/link.py +53 -13
- package/xll/python/Lib/site-packages/pip/_internal/network/auth.py +38 -21
- package/xll/python/Lib/site-packages/pip/_internal/network/cache.py +2 -2
- package/xll/python/Lib/site-packages/pip/_internal/network/download.py +58 -11
- package/xll/python/Lib/site-packages/pip/_internal/network/session.py +35 -40
- package/xll/python/Lib/site-packages/pip/_internal/network/utils.py +109 -1
- package/xll/python/Lib/site-packages/pip/_internal/operations/check.py +2 -3
- package/xll/python/Lib/site-packages/pip/_internal/operations/install/wheel.py +23 -18
- package/xll/python/Lib/site-packages/pip/_internal/operations/prepare.py +152 -7
- package/xll/python/Lib/site-packages/pip/_internal/req/__init__.py +2 -0
- package/xll/python/Lib/site-packages/pip/_internal/req/constructors.py +54 -69
- package/xll/python/Lib/site-packages/pip/_internal/req/req_file.py +6 -6
- package/xll/python/Lib/site-packages/pip/_internal/req/req_install.py +25 -21
- package/xll/python/Lib/site-packages/pip/_internal/req/req_uninstall.py +13 -8
- package/xll/python/Lib/site-packages/pip/_internal/resolution/base.py +2 -2
- package/xll/python/Lib/site-packages/pip/_internal/resolution/legacy/resolver.py +2 -2
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/base.py +1 -1
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -1
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/factory.py +39 -52
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +3 -3
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/provider.py +3 -0
- package/xll/python/Lib/site-packages/pip/_internal/resolution/resolvelib/resolver.py +9 -0
- package/xll/python/Lib/site-packages/pip/_internal/utils/compat.py +15 -9
- package/xll/python/Lib/site-packages/pip/_internal/utils/deprecation.py +6 -1
- package/xll/python/Lib/site-packages/pip/_internal/utils/filesystem.py +2 -2
- package/xll/python/Lib/site-packages/pip/_internal/utils/logging.py +11 -3
- package/xll/python/Lib/site-packages/pip/_internal/utils/misc.py +48 -4
- package/xll/python/Lib/site-packages/pip/_internal/utils/pylock.py +18 -2
- package/xll/python/Lib/site-packages/pip/_internal/utils/retry.py +2 -1
- package/xll/python/Lib/site-packages/pip/_internal/utils/subprocess.py +4 -3
- package/xll/python/Lib/site-packages/pip/_internal/utils/temp_dir.py +1 -2
- package/xll/python/Lib/site-packages/pip/_internal/utils/unpacking.py +30 -4
- package/xll/python/Lib/site-packages/pip/_internal/utils/urls.py +5 -2
- package/xll/python/Lib/site-packages/pip/_internal/utils/virtualenv.py +2 -36
- package/xll/python/Lib/site-packages/pip/_internal/vcs/git.py +8 -5
- package/xll/python/Lib/site-packages/pip/_internal/vcs/versioncontrol.py +1 -2
- package/xll/python/Lib/site-packages/pip/_internal/wheel_builder.py +5 -1
- package/xll/python/Lib/site-packages/pip/_vendor/bom.cdx.json +231 -0
- package/xll/python/Lib/site-packages/pip/_vendor/certifi/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/certifi/cacert.pem +0 -631
- package/xll/python/Lib/site-packages/pip/_vendor/distlib/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/distlib/compat.py +34 -64
- package/xll/python/Lib/site-packages/pip/_vendor/distlib/resources.py +28 -14
- package/xll/python/Lib/site-packages/pip/_vendor/distlib/scripts.py +7 -3
- package/xll/python/Lib/site-packages/pip/_vendor/distlib/util.py +48 -11
- package/xll/python/Lib/site-packages/pip/_vendor/idna/LICENSE.md +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/idna/__main__.py +6 -0
- package/xll/python/Lib/site-packages/pip/_vendor/idna/cli.py +128 -0
- package/xll/python/Lib/site-packages/pip/_vendor/idna/codec.py +50 -13
- package/xll/python/Lib/site-packages/pip/_vendor/idna/compat.py +26 -0
- package/xll/python/Lib/site-packages/pip/_vendor/idna/core.py +352 -141
- package/xll/python/Lib/site-packages/pip/_vendor/idna/idnadata.py +571 -2983
- package/xll/python/Lib/site-packages/pip/_vendor/idna/intranges.py +5 -7
- package/xll/python/Lib/site-packages/pip/_vendor/idna/package_data.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/idna/uts46data.py +16887 -8832
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/__init__.py +352 -66
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/__main__.py +11 -0
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/_xdg.py +171 -0
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/android.py +92 -41
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/api.py +213 -49
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/macos.py +128 -51
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/unix.py +176 -127
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/version.py +8 -18
- package/xll/python/Lib/site-packages/pip/_vendor/platformdirs/windows.py +185 -68
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/__init__.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/__main__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/console.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/filter.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/filters/__init__.py +10 -8
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/formatter.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/formatters/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/lexer.py +7 -5
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/lexers/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/lexers/_mapping.py +9 -8
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/lexers/python.py +35 -32
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/modeline.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/plugin.py +3 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/regexopt.py +13 -2
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/scanner.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/sphinxext.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/style.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/styles/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/token.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/unistring.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/pygments/util.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/requests/__init__.py +52 -16
- package/xll/python/Lib/site-packages/pip/_vendor/requests/__version__.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/requests/_internal_utils.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/requests/_types.py +183 -0
- package/xll/python/Lib/site-packages/pip/_vendor/requests/adapters.py +101 -50
- package/xll/python/Lib/site-packages/pip/_vendor/requests/api.py +31 -8
- package/xll/python/Lib/site-packages/pip/_vendor/requests/auth.py +80 -40
- package/xll/python/Lib/site-packages/pip/_vendor/requests/compat.py +9 -3
- package/xll/python/Lib/site-packages/pip/_vendor/requests/cookies.py +143 -79
- package/xll/python/Lib/site-packages/pip/_vendor/requests/exceptions.py +15 -5
- package/xll/python/Lib/site-packages/pip/_vendor/requests/help.py +13 -10
- package/xll/python/Lib/site-packages/pip/_vendor/requests/hooks.py +23 -9
- package/xll/python/Lib/site-packages/pip/_vendor/requests/models.py +265 -126
- package/xll/python/Lib/site-packages/pip/_vendor/requests/py.typed +0 -0
- package/xll/python/Lib/site-packages/pip/_vendor/requests/sessions.py +164 -78
- package/xll/python/Lib/site-packages/pip/_vendor/requests/status_codes.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/requests/structures.py +51 -20
- package/xll/python/Lib/site-packages/pip/_vendor/requests/utils.py +161 -89
- package/xll/python/Lib/site-packages/pip/_vendor/tomli/__init__.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/tomli/_parser.py +9 -4
- package/xll/python/Lib/site-packages/pip/_vendor/tomli/_re.py +13 -9
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/_base_connection.py +3 -1
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/_collections.py +0 -1
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/_version.py +8 -18
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/connection.py +4 -4
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/connectionpool.py +23 -10
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/contrib/emscripten/response.py +5 -1
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +7 -8
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/contrib/socks.py +1 -1
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/exceptions.py +2 -2
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/fields.py +14 -14
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/poolmanager.py +8 -6
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/response.py +35 -22
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/util/retry.py +8 -0
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/util/ssl_.py +11 -61
- package/xll/python/Lib/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +5 -11
- package/xll/python/Lib/site-packages/pip/_vendor/vendor.txt +8 -8
- package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/METADATA +3 -2
- package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/RECORD +208 -188
- package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/AUTHORS.txt +20 -0
- package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/idna/LICENSE.md +1 -1
- package/xll/python/Lib/site-packages/pywin32-311.dist-info/RECORD +2 -2
- package/xll/python/Scripts/httpx.exe +0 -0
- package/xll/python/Scripts/idna.exe +0 -0
- package/xll/python/Scripts/pip.exe +0 -0
- package/xll/python/Scripts/pip3.13.exe +0 -0
- package/xll/python/Scripts/pip3.exe +0 -0
- package/xll/python/Scripts/pywin32_postinstall.exe +0 -0
- package/xll/python/Scripts/pywin32_testall.exe +0 -0
- package/dist/app/collab/awareness.d.ts +0 -32
- package/dist/app/collab/awareness.js +0 -52
- package/dist/app/collab/collab-client.d.ts +0 -37
- package/dist/app/collab/collab-client.js +0 -208
- package/dist/app/collab/collab-manager.d.ts +0 -91
- package/dist/app/collab/collab-manager.js +0 -218
- package/dist/app/collab/collab-sync.d.ts +0 -62
- package/dist/app/collab/collab-sync.js +0 -215
- package/dist/app/collab/index.d.ts +0 -9
- package/dist/app/collab/index.js +0 -6
- package/dist/app/collab/super-fight.d.ts +0 -90
- package/dist/app/collab/super-fight.js +0 -310
- package/dist/app/collab/sync-bridge.d.ts +0 -35
- package/dist/app/collab/sync-bridge.js +0 -109
- package/dist/app/collab/types.d.ts +0 -75
- package/dist/app/collab/types.js +0 -5
- package/dist/embedded-agent/ai-content.d.ts +0 -52
- package/dist/embedded-agent/ai-content.js +0 -101
- package/dist/embedded-agent/host-tools/shared/llm-stream.d.ts +0 -31
- package/dist/embedded-agent/host-tools/shared/llm-stream.js +0 -136
- package/dist/embedded-agent/model-call-orchestrator.d.ts +0 -22
- package/dist/embedded-agent/model-call-orchestrator.js +0 -22
- package/dist/embedded-agent/stream-errors.d.ts +0 -10
- package/dist/embedded-agent/stream-errors.js +0 -73
- package/dist/embedded-agent/stream-message-state.d.ts +0 -14
- package/dist/embedded-agent/stream-message-state.js +0 -271
- package/dist/embedded-agent/stream-sse.d.ts +0 -78
- package/dist/embedded-agent/stream-sse.js +0 -73
- package/dist/shell/approvals/task-spawn-approval.d.ts +0 -20
- package/dist/shell/approvals/task-spawn-approval.js +0 -93
- package/dist/shell/interactive/collab-command.d.ts +0 -9
- package/dist/shell/interactive/collab-command.js +0 -115
- package/dist/shell/interactive/super-fight-ui.d.ts +0 -80
- package/dist/shell/interactive/super-fight-ui.js +0 -484
- package/dist/shell/status/collab-status.d.ts +0 -18
- package/dist/shell/status/collab-status.js +0 -46
- package/xll/python/Lib/site-packages/pip/_internal/build_env.py +0 -606
- /package/dist/{tui → autocomplete}/skill-autocomplete.js +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/INSTALLER +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/REQUESTED +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/WHEEL +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/entry_points.txt +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/LICENSE.txt +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/certifi/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/distlib/LICENSE.txt +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/distro/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/msgpack/COPYING +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE.BSD +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/pkg_resources/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/platformdirs/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/pygments/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/requests/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/resolvelib/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/rich/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/tomli/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/tomli_w/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/truststore/LICENSE +0 -0
- /package/xll/python/Lib/site-packages/{pip-26.1.2.dist-info → pip-26.2.dist-info}/licenses/src/pip/_vendor/urllib3/LICENSE.txt +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
"""
|
|
2
|
-
|
|
1
|
+
"""Utilities for determining application-specific dirs.
|
|
2
|
+
|
|
3
|
+
Provides convenience functions (e.g. :func:`user_data_dir`, :func:`user_config_path`), a :data:`PlatformDirs` class that
|
|
4
|
+
auto-detects the current platform, and the :class:`~platformdirs.api.PlatformDirsABC` base class.
|
|
3
5
|
|
|
4
6
|
See <https://github.com/platformdirs/platformdirs> for details and usage.
|
|
5
7
|
|
|
@@ -50,20 +52,23 @@ else:
|
|
|
50
52
|
AppDirs = PlatformDirs #: Backwards compatibility with appdirs
|
|
51
53
|
|
|
52
54
|
|
|
53
|
-
def user_data_dir(
|
|
55
|
+
def user_data_dir( # noqa: PLR0913, PLR0917
|
|
54
56
|
appname: str | None = None,
|
|
55
57
|
appauthor: str | Literal[False] | None = None,
|
|
56
58
|
version: str | None = None,
|
|
57
59
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
58
60
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
61
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
59
62
|
) -> str:
|
|
60
|
-
"""
|
|
61
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
63
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
62
64
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
63
65
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
64
66
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
65
67
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
68
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
69
|
+
|
|
66
70
|
:returns: data directory tied to the user
|
|
71
|
+
|
|
67
72
|
"""
|
|
68
73
|
return PlatformDirs(
|
|
69
74
|
appname=appname,
|
|
@@ -71,6 +76,7 @@ def user_data_dir(
|
|
|
71
76
|
version=version,
|
|
72
77
|
roaming=roaming,
|
|
73
78
|
ensure_exists=ensure_exists,
|
|
79
|
+
use_site_for_root=use_site_for_root,
|
|
74
80
|
).user_data_dir
|
|
75
81
|
|
|
76
82
|
|
|
@@ -81,13 +87,14 @@ def site_data_dir(
|
|
|
81
87
|
multipath: bool = False, # noqa: FBT001, FBT002
|
|
82
88
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
83
89
|
) -> str:
|
|
84
|
-
"""
|
|
85
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
90
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
86
91
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
87
92
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
88
|
-
:param multipath: See `
|
|
93
|
+
:param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
89
94
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
95
|
+
|
|
90
96
|
:returns: data directory shared by users
|
|
97
|
+
|
|
91
98
|
"""
|
|
92
99
|
return PlatformDirs(
|
|
93
100
|
appname=appname,
|
|
@@ -98,20 +105,23 @@ def site_data_dir(
|
|
|
98
105
|
).site_data_dir
|
|
99
106
|
|
|
100
107
|
|
|
101
|
-
def user_config_dir(
|
|
108
|
+
def user_config_dir( # noqa: PLR0913, PLR0917
|
|
102
109
|
appname: str | None = None,
|
|
103
110
|
appauthor: str | Literal[False] | None = None,
|
|
104
111
|
version: str | None = None,
|
|
105
112
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
106
113
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
114
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
107
115
|
) -> str:
|
|
108
|
-
"""
|
|
109
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
116
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
110
117
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
111
118
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
112
119
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
113
120
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
121
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
122
|
+
|
|
114
123
|
:returns: config directory tied to the user
|
|
124
|
+
|
|
115
125
|
"""
|
|
116
126
|
return PlatformDirs(
|
|
117
127
|
appname=appname,
|
|
@@ -119,6 +129,7 @@ def user_config_dir(
|
|
|
119
129
|
version=version,
|
|
120
130
|
roaming=roaming,
|
|
121
131
|
ensure_exists=ensure_exists,
|
|
132
|
+
use_site_for_root=use_site_for_root,
|
|
122
133
|
).user_config_dir
|
|
123
134
|
|
|
124
135
|
|
|
@@ -129,13 +140,14 @@ def site_config_dir(
|
|
|
129
140
|
multipath: bool = False, # noqa: FBT001, FBT002
|
|
130
141
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
131
142
|
) -> str:
|
|
132
|
-
"""
|
|
133
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
143
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
134
144
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
135
145
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
136
|
-
:param multipath: See `
|
|
146
|
+
:param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
137
147
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
138
|
-
|
|
148
|
+
|
|
149
|
+
:returns: config directory shared by users
|
|
150
|
+
|
|
139
151
|
"""
|
|
140
152
|
return PlatformDirs(
|
|
141
153
|
appname=appname,
|
|
@@ -146,20 +158,23 @@ def site_config_dir(
|
|
|
146
158
|
).site_config_dir
|
|
147
159
|
|
|
148
160
|
|
|
149
|
-
def user_cache_dir(
|
|
161
|
+
def user_cache_dir( # noqa: PLR0913, PLR0917
|
|
150
162
|
appname: str | None = None,
|
|
151
163
|
appauthor: str | Literal[False] | None = None,
|
|
152
164
|
version: str | None = None,
|
|
153
165
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
154
166
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
167
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
155
168
|
) -> str:
|
|
156
|
-
"""
|
|
157
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
169
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
158
170
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
159
171
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
160
|
-
:param opinion: See `
|
|
172
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
161
173
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
174
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
175
|
+
|
|
162
176
|
:returns: cache directory tied to the user
|
|
177
|
+
|
|
163
178
|
"""
|
|
164
179
|
return PlatformDirs(
|
|
165
180
|
appname=appname,
|
|
@@ -167,6 +182,7 @@ def user_cache_dir(
|
|
|
167
182
|
version=version,
|
|
168
183
|
opinion=opinion,
|
|
169
184
|
ensure_exists=ensure_exists,
|
|
185
|
+
use_site_for_root=use_site_for_root,
|
|
170
186
|
).user_cache_dir
|
|
171
187
|
|
|
172
188
|
|
|
@@ -177,13 +193,14 @@ def site_cache_dir(
|
|
|
177
193
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
178
194
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
179
195
|
) -> str:
|
|
180
|
-
"""
|
|
181
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
196
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
182
197
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
183
198
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
184
199
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
185
200
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
186
|
-
|
|
201
|
+
|
|
202
|
+
:returns: cache directory shared by users
|
|
203
|
+
|
|
187
204
|
"""
|
|
188
205
|
return PlatformDirs(
|
|
189
206
|
appname=appname,
|
|
@@ -194,20 +211,23 @@ def site_cache_dir(
|
|
|
194
211
|
).site_cache_dir
|
|
195
212
|
|
|
196
213
|
|
|
197
|
-
def user_state_dir(
|
|
214
|
+
def user_state_dir( # noqa: PLR0913, PLR0917
|
|
198
215
|
appname: str | None = None,
|
|
199
216
|
appauthor: str | Literal[False] | None = None,
|
|
200
217
|
version: str | None = None,
|
|
201
218
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
202
219
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
220
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
203
221
|
) -> str:
|
|
204
|
-
"""
|
|
205
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
222
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
206
223
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
207
224
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
208
225
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
209
226
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
227
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
228
|
+
|
|
210
229
|
:returns: state directory tied to the user
|
|
230
|
+
|
|
211
231
|
"""
|
|
212
232
|
return PlatformDirs(
|
|
213
233
|
appname=appname,
|
|
@@ -215,23 +235,49 @@ def user_state_dir(
|
|
|
215
235
|
version=version,
|
|
216
236
|
roaming=roaming,
|
|
217
237
|
ensure_exists=ensure_exists,
|
|
238
|
+
use_site_for_root=use_site_for_root,
|
|
218
239
|
).user_state_dir
|
|
219
240
|
|
|
220
241
|
|
|
221
|
-
def
|
|
242
|
+
def site_state_dir(
|
|
222
243
|
appname: str | None = None,
|
|
223
244
|
appauthor: str | Literal[False] | None = None,
|
|
224
245
|
version: str | None = None,
|
|
225
|
-
opinion: bool = True, # noqa: FBT001, FBT002
|
|
226
246
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
227
247
|
) -> str:
|
|
248
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
249
|
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
250
|
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
251
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
252
|
+
|
|
253
|
+
:returns: state directory shared by users
|
|
254
|
+
|
|
228
255
|
"""
|
|
229
|
-
|
|
256
|
+
return PlatformDirs(
|
|
257
|
+
appname=appname,
|
|
258
|
+
appauthor=appauthor,
|
|
259
|
+
version=version,
|
|
260
|
+
ensure_exists=ensure_exists,
|
|
261
|
+
).site_state_dir
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def user_log_dir( # noqa: PLR0913, PLR0917
|
|
265
|
+
appname: str | None = None,
|
|
266
|
+
appauthor: str | Literal[False] | None = None,
|
|
267
|
+
version: str | None = None,
|
|
268
|
+
opinion: bool = True, # noqa: FBT001, FBT002
|
|
269
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
270
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
271
|
+
) -> str:
|
|
272
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
230
273
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
231
274
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
232
|
-
:param opinion: See `
|
|
275
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
233
276
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
277
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
278
|
+
|
|
234
279
|
:returns: log directory tied to the user
|
|
280
|
+
|
|
235
281
|
"""
|
|
236
282
|
return PlatformDirs(
|
|
237
283
|
appname=appname,
|
|
@@ -239,9 +285,35 @@ def user_log_dir(
|
|
|
239
285
|
version=version,
|
|
240
286
|
opinion=opinion,
|
|
241
287
|
ensure_exists=ensure_exists,
|
|
288
|
+
use_site_for_root=use_site_for_root,
|
|
242
289
|
).user_log_dir
|
|
243
290
|
|
|
244
291
|
|
|
292
|
+
def site_log_dir(
|
|
293
|
+
appname: str | None = None,
|
|
294
|
+
appauthor: str | Literal[False] | None = None,
|
|
295
|
+
version: str | None = None,
|
|
296
|
+
opinion: bool = True, # noqa: FBT001, FBT002
|
|
297
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
298
|
+
) -> str:
|
|
299
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
300
|
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
301
|
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
302
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
303
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
304
|
+
|
|
305
|
+
:returns: log directory shared by users
|
|
306
|
+
|
|
307
|
+
"""
|
|
308
|
+
return PlatformDirs(
|
|
309
|
+
appname=appname,
|
|
310
|
+
appauthor=appauthor,
|
|
311
|
+
version=version,
|
|
312
|
+
opinion=opinion,
|
|
313
|
+
ensure_exists=ensure_exists,
|
|
314
|
+
).site_log_dir
|
|
315
|
+
|
|
316
|
+
|
|
245
317
|
def user_documents_dir() -> str:
|
|
246
318
|
""":returns: documents directory tied to the user"""
|
|
247
319
|
return PlatformDirs().user_documents_dir
|
|
@@ -272,20 +344,79 @@ def user_desktop_dir() -> str:
|
|
|
272
344
|
return PlatformDirs().user_desktop_dir
|
|
273
345
|
|
|
274
346
|
|
|
275
|
-
def
|
|
347
|
+
def user_projects_dir() -> str:
|
|
348
|
+
""":returns: projects directory tied to the user"""
|
|
349
|
+
return PlatformDirs().user_projects_dir
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def user_publicshare_dir() -> str:
|
|
353
|
+
""":returns: public share directory tied to the user"""
|
|
354
|
+
return PlatformDirs().user_publicshare_dir
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def user_templates_dir() -> str:
|
|
358
|
+
""":returns: templates directory tied to the user"""
|
|
359
|
+
return PlatformDirs().user_templates_dir
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
def user_fonts_dir() -> str:
|
|
363
|
+
""":returns: fonts directory tied to the user"""
|
|
364
|
+
return PlatformDirs().user_fonts_dir
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
def user_preference_dir() -> str:
|
|
368
|
+
""":returns: preference directory tied to the user"""
|
|
369
|
+
return PlatformDirs().user_preference_dir
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
def user_bin_dir() -> str:
|
|
373
|
+
""":returns: bin directory tied to the user"""
|
|
374
|
+
return PlatformDirs().user_bin_dir
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
def site_bin_dir() -> str:
|
|
378
|
+
""":returns: bin directory shared by users"""
|
|
379
|
+
return PlatformDirs().site_bin_dir
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
def user_applications_dir() -> str:
|
|
383
|
+
""":returns: applications directory tied to the user"""
|
|
384
|
+
return PlatformDirs().user_applications_dir
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
def site_applications_dir(
|
|
388
|
+
multipath: bool = False, # noqa: FBT001, FBT002
|
|
389
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
390
|
+
) -> str:
|
|
391
|
+
""":param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
392
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
393
|
+
|
|
394
|
+
:returns: applications directory shared by users
|
|
395
|
+
|
|
396
|
+
"""
|
|
397
|
+
return PlatformDirs(
|
|
398
|
+
multipath=multipath,
|
|
399
|
+
ensure_exists=ensure_exists,
|
|
400
|
+
).site_applications_dir
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
def user_runtime_dir( # noqa: PLR0913, PLR0917
|
|
276
404
|
appname: str | None = None,
|
|
277
405
|
appauthor: str | Literal[False] | None = None,
|
|
278
406
|
version: str | None = None,
|
|
279
407
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
280
408
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
409
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
281
410
|
) -> str:
|
|
282
|
-
"""
|
|
283
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
411
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
284
412
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
285
413
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
286
414
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
287
415
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
416
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
417
|
+
|
|
288
418
|
:returns: runtime directory tied to the user
|
|
419
|
+
|
|
289
420
|
"""
|
|
290
421
|
return PlatformDirs(
|
|
291
422
|
appname=appname,
|
|
@@ -293,6 +424,7 @@ def user_runtime_dir(
|
|
|
293
424
|
version=version,
|
|
294
425
|
opinion=opinion,
|
|
295
426
|
ensure_exists=ensure_exists,
|
|
427
|
+
use_site_for_root=use_site_for_root,
|
|
296
428
|
).user_runtime_dir
|
|
297
429
|
|
|
298
430
|
|
|
@@ -303,13 +435,14 @@ def site_runtime_dir(
|
|
|
303
435
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
304
436
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
305
437
|
) -> str:
|
|
306
|
-
"""
|
|
307
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
438
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
308
439
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
309
440
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
310
441
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
311
442
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
443
|
+
|
|
312
444
|
:returns: runtime directory shared by users
|
|
445
|
+
|
|
313
446
|
"""
|
|
314
447
|
return PlatformDirs(
|
|
315
448
|
appname=appname,
|
|
@@ -320,20 +453,23 @@ def site_runtime_dir(
|
|
|
320
453
|
).site_runtime_dir
|
|
321
454
|
|
|
322
455
|
|
|
323
|
-
def user_data_path(
|
|
456
|
+
def user_data_path( # noqa: PLR0913, PLR0917
|
|
324
457
|
appname: str | None = None,
|
|
325
458
|
appauthor: str | Literal[False] | None = None,
|
|
326
459
|
version: str | None = None,
|
|
327
460
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
328
461
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
462
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
329
463
|
) -> Path:
|
|
330
|
-
"""
|
|
331
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
464
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
332
465
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
333
466
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
334
467
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
335
468
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
469
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
470
|
+
|
|
336
471
|
:returns: data path tied to the user
|
|
472
|
+
|
|
337
473
|
"""
|
|
338
474
|
return PlatformDirs(
|
|
339
475
|
appname=appname,
|
|
@@ -341,6 +477,7 @@ def user_data_path(
|
|
|
341
477
|
version=version,
|
|
342
478
|
roaming=roaming,
|
|
343
479
|
ensure_exists=ensure_exists,
|
|
480
|
+
use_site_for_root=use_site_for_root,
|
|
344
481
|
).user_data_path
|
|
345
482
|
|
|
346
483
|
|
|
@@ -351,13 +488,14 @@ def site_data_path(
|
|
|
351
488
|
multipath: bool = False, # noqa: FBT001, FBT002
|
|
352
489
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
353
490
|
) -> Path:
|
|
354
|
-
"""
|
|
355
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
491
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
356
492
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
357
493
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
358
494
|
:param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
359
495
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
496
|
+
|
|
360
497
|
:returns: data path shared by users
|
|
498
|
+
|
|
361
499
|
"""
|
|
362
500
|
return PlatformDirs(
|
|
363
501
|
appname=appname,
|
|
@@ -368,20 +506,23 @@ def site_data_path(
|
|
|
368
506
|
).site_data_path
|
|
369
507
|
|
|
370
508
|
|
|
371
|
-
def user_config_path(
|
|
509
|
+
def user_config_path( # noqa: PLR0913, PLR0917
|
|
372
510
|
appname: str | None = None,
|
|
373
511
|
appauthor: str | Literal[False] | None = None,
|
|
374
512
|
version: str | None = None,
|
|
375
513
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
376
514
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
515
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
377
516
|
) -> Path:
|
|
378
|
-
"""
|
|
379
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
517
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
380
518
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
381
519
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
382
520
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
383
521
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
522
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
523
|
+
|
|
384
524
|
:returns: config path tied to the user
|
|
525
|
+
|
|
385
526
|
"""
|
|
386
527
|
return PlatformDirs(
|
|
387
528
|
appname=appname,
|
|
@@ -389,6 +530,7 @@ def user_config_path(
|
|
|
389
530
|
version=version,
|
|
390
531
|
roaming=roaming,
|
|
391
532
|
ensure_exists=ensure_exists,
|
|
533
|
+
use_site_for_root=use_site_for_root,
|
|
392
534
|
).user_config_path
|
|
393
535
|
|
|
394
536
|
|
|
@@ -399,13 +541,14 @@ def site_config_path(
|
|
|
399
541
|
multipath: bool = False, # noqa: FBT001, FBT002
|
|
400
542
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
401
543
|
) -> Path:
|
|
402
|
-
"""
|
|
403
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
544
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
404
545
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
405
546
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
406
|
-
:param multipath: See `
|
|
547
|
+
:param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
407
548
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
408
|
-
|
|
549
|
+
|
|
550
|
+
:returns: config path shared by users
|
|
551
|
+
|
|
409
552
|
"""
|
|
410
553
|
return PlatformDirs(
|
|
411
554
|
appname=appname,
|
|
@@ -423,13 +566,14 @@ def site_cache_path(
|
|
|
423
566
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
424
567
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
425
568
|
) -> Path:
|
|
426
|
-
"""
|
|
427
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
569
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
428
570
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
429
571
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
430
572
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
431
573
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
432
|
-
|
|
574
|
+
|
|
575
|
+
:returns: cache path shared by users
|
|
576
|
+
|
|
433
577
|
"""
|
|
434
578
|
return PlatformDirs(
|
|
435
579
|
appname=appname,
|
|
@@ -440,20 +584,23 @@ def site_cache_path(
|
|
|
440
584
|
).site_cache_path
|
|
441
585
|
|
|
442
586
|
|
|
443
|
-
def user_cache_path(
|
|
587
|
+
def user_cache_path( # noqa: PLR0913, PLR0917
|
|
444
588
|
appname: str | None = None,
|
|
445
589
|
appauthor: str | Literal[False] | None = None,
|
|
446
590
|
version: str | None = None,
|
|
447
591
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
448
592
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
593
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
449
594
|
) -> Path:
|
|
450
|
-
"""
|
|
451
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
595
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
452
596
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
453
597
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
454
|
-
:param opinion: See `
|
|
598
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
455
599
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
600
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
601
|
+
|
|
456
602
|
:returns: cache path tied to the user
|
|
603
|
+
|
|
457
604
|
"""
|
|
458
605
|
return PlatformDirs(
|
|
459
606
|
appname=appname,
|
|
@@ -461,23 +608,27 @@ def user_cache_path(
|
|
|
461
608
|
version=version,
|
|
462
609
|
opinion=opinion,
|
|
463
610
|
ensure_exists=ensure_exists,
|
|
611
|
+
use_site_for_root=use_site_for_root,
|
|
464
612
|
).user_cache_path
|
|
465
613
|
|
|
466
614
|
|
|
467
|
-
def user_state_path(
|
|
615
|
+
def user_state_path( # noqa: PLR0913, PLR0917
|
|
468
616
|
appname: str | None = None,
|
|
469
617
|
appauthor: str | Literal[False] | None = None,
|
|
470
618
|
version: str | None = None,
|
|
471
619
|
roaming: bool = False, # noqa: FBT001, FBT002
|
|
472
620
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
621
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
473
622
|
) -> Path:
|
|
474
|
-
"""
|
|
475
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
623
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
476
624
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
477
625
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
478
626
|
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
|
479
627
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
628
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
629
|
+
|
|
480
630
|
:returns: state path tied to the user
|
|
631
|
+
|
|
481
632
|
"""
|
|
482
633
|
return PlatformDirs(
|
|
483
634
|
appname=appname,
|
|
@@ -485,23 +636,49 @@ def user_state_path(
|
|
|
485
636
|
version=version,
|
|
486
637
|
roaming=roaming,
|
|
487
638
|
ensure_exists=ensure_exists,
|
|
639
|
+
use_site_for_root=use_site_for_root,
|
|
488
640
|
).user_state_path
|
|
489
641
|
|
|
490
642
|
|
|
491
|
-
def
|
|
643
|
+
def site_state_path(
|
|
492
644
|
appname: str | None = None,
|
|
493
645
|
appauthor: str | Literal[False] | None = None,
|
|
494
646
|
version: str | None = None,
|
|
495
|
-
opinion: bool = True, # noqa: FBT001, FBT002
|
|
496
647
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
497
648
|
) -> Path:
|
|
649
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
650
|
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
651
|
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
652
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
653
|
+
|
|
654
|
+
:returns: state path shared by users
|
|
655
|
+
|
|
498
656
|
"""
|
|
499
|
-
|
|
657
|
+
return PlatformDirs(
|
|
658
|
+
appname=appname,
|
|
659
|
+
appauthor=appauthor,
|
|
660
|
+
version=version,
|
|
661
|
+
ensure_exists=ensure_exists,
|
|
662
|
+
).site_state_path
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
def user_log_path( # noqa: PLR0913, PLR0917
|
|
666
|
+
appname: str | None = None,
|
|
667
|
+
appauthor: str | Literal[False] | None = None,
|
|
668
|
+
version: str | None = None,
|
|
669
|
+
opinion: bool = True, # noqa: FBT001, FBT002
|
|
670
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
671
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
672
|
+
) -> Path:
|
|
673
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
500
674
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
501
675
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
502
|
-
:param opinion: See `
|
|
676
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
503
677
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
678
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
679
|
+
|
|
504
680
|
:returns: log path tied to the user
|
|
681
|
+
|
|
505
682
|
"""
|
|
506
683
|
return PlatformDirs(
|
|
507
684
|
appname=appname,
|
|
@@ -509,11 +686,37 @@ def user_log_path(
|
|
|
509
686
|
version=version,
|
|
510
687
|
opinion=opinion,
|
|
511
688
|
ensure_exists=ensure_exists,
|
|
689
|
+
use_site_for_root=use_site_for_root,
|
|
512
690
|
).user_log_path
|
|
513
691
|
|
|
514
692
|
|
|
693
|
+
def site_log_path(
|
|
694
|
+
appname: str | None = None,
|
|
695
|
+
appauthor: str | Literal[False] | None = None,
|
|
696
|
+
version: str | None = None,
|
|
697
|
+
opinion: bool = True, # noqa: FBT001, FBT002
|
|
698
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
699
|
+
) -> Path:
|
|
700
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
701
|
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
702
|
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
703
|
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
704
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
705
|
+
|
|
706
|
+
:returns: log path shared by users
|
|
707
|
+
|
|
708
|
+
"""
|
|
709
|
+
return PlatformDirs(
|
|
710
|
+
appname=appname,
|
|
711
|
+
appauthor=appauthor,
|
|
712
|
+
version=version,
|
|
713
|
+
opinion=opinion,
|
|
714
|
+
ensure_exists=ensure_exists,
|
|
715
|
+
).site_log_path
|
|
716
|
+
|
|
717
|
+
|
|
515
718
|
def user_documents_path() -> Path:
|
|
516
|
-
""":returns: documents
|
|
719
|
+
""":returns: documents path tied to the user"""
|
|
517
720
|
return PlatformDirs().user_documents_path
|
|
518
721
|
|
|
519
722
|
|
|
@@ -542,20 +745,79 @@ def user_desktop_path() -> Path:
|
|
|
542
745
|
return PlatformDirs().user_desktop_path
|
|
543
746
|
|
|
544
747
|
|
|
545
|
-
def
|
|
748
|
+
def user_projects_path() -> Path:
|
|
749
|
+
""":returns: projects path tied to the user"""
|
|
750
|
+
return PlatformDirs().user_projects_path
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
def user_publicshare_path() -> Path:
|
|
754
|
+
""":returns: public share path tied to the user"""
|
|
755
|
+
return PlatformDirs().user_publicshare_path
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
def user_templates_path() -> Path:
|
|
759
|
+
""":returns: templates path tied to the user"""
|
|
760
|
+
return PlatformDirs().user_templates_path
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
def user_fonts_path() -> Path:
|
|
764
|
+
""":returns: fonts path tied to the user"""
|
|
765
|
+
return PlatformDirs().user_fonts_path
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
def user_preference_path() -> Path:
|
|
769
|
+
""":returns: preference path tied to the user"""
|
|
770
|
+
return PlatformDirs().user_preference_path
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
def user_bin_path() -> Path:
|
|
774
|
+
""":returns: bin path tied to the user"""
|
|
775
|
+
return PlatformDirs().user_bin_path
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
def site_bin_path() -> Path:
|
|
779
|
+
""":returns: bin path shared by users"""
|
|
780
|
+
return PlatformDirs().site_bin_path
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
def user_applications_path() -> Path:
|
|
784
|
+
""":returns: applications path tied to the user"""
|
|
785
|
+
return PlatformDirs().user_applications_path
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
def site_applications_path(
|
|
789
|
+
multipath: bool = False, # noqa: FBT001, FBT002
|
|
790
|
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
791
|
+
) -> Path:
|
|
792
|
+
""":param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
|
793
|
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
794
|
+
|
|
795
|
+
:returns: applications path shared by users
|
|
796
|
+
|
|
797
|
+
"""
|
|
798
|
+
return PlatformDirs(
|
|
799
|
+
multipath=multipath,
|
|
800
|
+
ensure_exists=ensure_exists,
|
|
801
|
+
).site_applications_path
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
def user_runtime_path( # noqa: PLR0913, PLR0917
|
|
546
805
|
appname: str | None = None,
|
|
547
806
|
appauthor: str | Literal[False] | None = None,
|
|
548
807
|
version: str | None = None,
|
|
549
808
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
550
809
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
810
|
+
use_site_for_root: bool = False, # noqa: FBT001, FBT002
|
|
551
811
|
) -> Path:
|
|
552
|
-
"""
|
|
553
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
812
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
554
813
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
555
814
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
556
815
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
557
816
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
817
|
+
:param use_site_for_root: See `use_site_for_root <platformdirs.api.PlatformDirsABC.use_site_for_root>`.
|
|
818
|
+
|
|
558
819
|
:returns: runtime path tied to the user
|
|
820
|
+
|
|
559
821
|
"""
|
|
560
822
|
return PlatformDirs(
|
|
561
823
|
appname=appname,
|
|
@@ -563,6 +825,7 @@ def user_runtime_path(
|
|
|
563
825
|
version=version,
|
|
564
826
|
opinion=opinion,
|
|
565
827
|
ensure_exists=ensure_exists,
|
|
828
|
+
use_site_for_root=use_site_for_root,
|
|
566
829
|
).user_runtime_path
|
|
567
830
|
|
|
568
831
|
|
|
@@ -573,13 +836,14 @@ def site_runtime_path(
|
|
|
573
836
|
opinion: bool = True, # noqa: FBT001, FBT002
|
|
574
837
|
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
|
575
838
|
) -> Path:
|
|
576
|
-
"""
|
|
577
|
-
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
839
|
+
""":param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
|
578
840
|
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
|
579
841
|
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
|
580
842
|
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
|
581
843
|
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
|
844
|
+
|
|
582
845
|
:returns: runtime path shared by users
|
|
846
|
+
|
|
583
847
|
"""
|
|
584
848
|
return PlatformDirs(
|
|
585
849
|
appname=appname,
|
|
@@ -596,14 +860,26 @@ __all__ = [
|
|
|
596
860
|
"PlatformDirsABC",
|
|
597
861
|
"__version__",
|
|
598
862
|
"__version_info__",
|
|
863
|
+
"site_applications_dir",
|
|
864
|
+
"site_applications_path",
|
|
865
|
+
"site_bin_dir",
|
|
866
|
+
"site_bin_path",
|
|
599
867
|
"site_cache_dir",
|
|
600
868
|
"site_cache_path",
|
|
601
869
|
"site_config_dir",
|
|
602
870
|
"site_config_path",
|
|
603
871
|
"site_data_dir",
|
|
604
872
|
"site_data_path",
|
|
873
|
+
"site_log_dir",
|
|
874
|
+
"site_log_path",
|
|
605
875
|
"site_runtime_dir",
|
|
606
876
|
"site_runtime_path",
|
|
877
|
+
"site_state_dir",
|
|
878
|
+
"site_state_path",
|
|
879
|
+
"user_applications_dir",
|
|
880
|
+
"user_applications_path",
|
|
881
|
+
"user_bin_dir",
|
|
882
|
+
"user_bin_path",
|
|
607
883
|
"user_cache_dir",
|
|
608
884
|
"user_cache_path",
|
|
609
885
|
"user_config_dir",
|
|
@@ -616,16 +892,26 @@ __all__ = [
|
|
|
616
892
|
"user_documents_path",
|
|
617
893
|
"user_downloads_dir",
|
|
618
894
|
"user_downloads_path",
|
|
895
|
+
"user_fonts_dir",
|
|
896
|
+
"user_fonts_path",
|
|
619
897
|
"user_log_dir",
|
|
620
898
|
"user_log_path",
|
|
621
899
|
"user_music_dir",
|
|
622
900
|
"user_music_path",
|
|
623
901
|
"user_pictures_dir",
|
|
624
902
|
"user_pictures_path",
|
|
903
|
+
"user_preference_dir",
|
|
904
|
+
"user_preference_path",
|
|
905
|
+
"user_projects_dir",
|
|
906
|
+
"user_projects_path",
|
|
907
|
+
"user_publicshare_dir",
|
|
908
|
+
"user_publicshare_path",
|
|
625
909
|
"user_runtime_dir",
|
|
626
910
|
"user_runtime_path",
|
|
627
911
|
"user_state_dir",
|
|
628
912
|
"user_state_path",
|
|
913
|
+
"user_templates_dir",
|
|
914
|
+
"user_templates_path",
|
|
629
915
|
"user_videos_dir",
|
|
630
916
|
"user_videos_path",
|
|
631
917
|
]
|