Conversation
Set Consume Folder gains a third source, a NextExplorer location (default `Paperless`), mounted like FileBrowser Quantum's volume: NextExplorer's `data` read-write at /mnt/nextexplorer, with PAPERLESS_CONSUMPTION_DIR at the location. NextExplorer also serves its volume as uid 1000, so no idmap is needed. The action creates the location itself by running NextExplorer's add-location (`access: 'dependent'`). The OS admits the call only from a declared dependent, so the handler declares the dependency first. The store is written only after the location exists, so a name NextExplorer rejects never reaches the daemon; on failure the dependency declaration is recomputed from the unchanged store. paperlessDaemons takes a single `consumeFolder` argument in place of `filebrowserSubfolder`, so the install bootstrap keeps passing `null`. Closes #10. Built against @start9labs/start-sdk 3.0.0; held as a draft until the 3.0.0 fleet sweep and NextExplorer's matching change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #10. Set Consume Folder gets a third source: a NextExplorer location (default
Paperless). Documents dropped into it are imported and then deleted, the same as with FileBrowser Quantum (#9).datavolume, read-write, at/mnt/nextexplorer, only while this source is selected.PAPERLESS_CONSUMPTION_DIRis/mnt/nextexplorer/<location>. Read-write is required for the reason feat: watch a FileBrowser Quantum folder as the consume folder #9 gives. NextExplorer chowns its volume to uid 1000 on every start, the same uid Paperless runs as, so no idmap is needed.add-locationdirectly (feat: let dependents run add-location Start9Labs/nextexplorer-startos#6 opens it withaccess: 'dependent'). NextExplorer's own checks apply to the name, so it cannot land in_usersor on a reserved prefix. An existing location is accepted, and the location shows up under Locations in NextExplorer. Nextcloud already exposes every NextExplorer location except_usersas external storage, so drop-to-ingest from Nextcloud (Feature Request: Optionally share Paperless consume folder with Nextcloud for drop-to-ingest #3) works.nextexplorerdependency and runsadd-location.nextexplorer,exists,>=3.1.0:1 && <4.0.0:0, declared only while it is the source. This is the same upper cap Nextcloud uses.paperlessDaemonstakes oneconsumeFolderargument (filebrowser|nextexplorer|null) in place offilebrowserSubfolder. The install bootstrap still passesnull, so feat: watch a FileBrowser Quantum folder as the consume folder #9's fix for the re-running init is kept..once(), per the guide.nextexplorer-startos#nextis added as a type-only dependency, for the typedmountDependency.2.20.15:6, since:5is on community-prod.Draft until the SDK 3.0 sweep lands here
Running another package's action with input is
@start9labs/start-sdk3.0.0 (Start9Labs/start-technologies#4069), which needs StartOS 0.4.0.2. The 3.0.0 bump belongs to the fleet sweep's PR, so against 2.0.9 this does not type-check. Against a local 3.0.0 build,startos/is clean. The only error is insidenode_modules/nextexplorer-startos(the sweep's §5execFailchange), which clears once NextExplorer's own bump lands on itsnext.To finish:
nextexplorerVersionRangefloor to the NextExplorer version that ships chore: bump start-sdk to 2.0.7 (2.20.15:3) #6Not exercised on a box.
🤖 Generated with Claude Code