Offer catalog sources to inbound-library as shared pointers (IR-WP-0010-T04).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 7780@bnt-lap001 Assistant-Session: 622cd705-cb31-4322-ba08-dd42e44fa583
This commit is contained in:
parent
1d4c55ef25
commit
b1a65e7214
5 changed files with 105 additions and 2 deletions
|
|
@ -194,6 +194,8 @@ def main(argv=None):
|
|||
briefs_command.add_argument('--inbox', type=Path, help='override the configured inbox for this run')
|
||||
pull_command = commands.add_parser('pull-briefs', help='retain briefs that inbound-library routed to this repo')
|
||||
pull_command.add_argument('--config', type=Path, default=Path('ops/schedule.json'))
|
||||
contribute_command = commands.add_parser('contribute-sources', help='offer catalog sources to inbound-library as shared pointers')
|
||||
contribute_command.add_argument('--config', type=Path, default=Path('ops/schedule.json'))
|
||||
publish_command = commands.add_parser('publish', help='record a reviewed publication linked to captures')
|
||||
publish_command.add_argument('input', type=Path)
|
||||
commands.add_parser('health', help='show durable scheduler health')
|
||||
|
|
@ -268,6 +270,13 @@ def main(argv=None):
|
|||
result['native'] = native_status()
|
||||
print(json.dumps(result, indent=2))
|
||||
return 0 if result['ok'] else 1
|
||||
elif args.command == 'contribute-sources':
|
||||
from .library_briefs import contribute_sources
|
||||
spec = json.loads(args.config.read_text()).get('library')
|
||||
if not spec:
|
||||
print('no "library" section in the schedule config', file=sys.stderr)
|
||||
return 2
|
||||
print(json.dumps(contribute_sources(args.root, spec), indent=2))
|
||||
elif args.command == 'pull-briefs':
|
||||
from .library_briefs import pull
|
||||
spec = json.loads(args.config.read_text()).get('library')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue