@lemoncat7/dsh-partner 2.4.2 → 2.7.0
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/README.md +8 -0
- package/docs/THIRD_PARTY_LICENSES.md +13 -0
- package/docs/attachment-storage.md +18 -0
- package/docs/director-skills.md +24 -0
- package/docs/long-task-continuation.md +51 -0
- package/docs/releases/2.5.0.md +13 -0
- package/docs/releases/2.6.0.md +11 -0
- package/docs/releases/2.7.0.md +21 -0
- package/lib/agent-runtime.d.ts +9 -1
- package/lib/agent-runtime.d.ts.map +1 -1
- package/lib/agent-runtime.js +117 -17
- package/lib/agent-runtime.js.map +1 -1
- package/lib/api/features/attachments-api.d.ts.map +1 -1
- package/lib/api/features/attachments-api.js +31 -1
- package/lib/api/features/attachments-api.js.map +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -1
- package/lib/api.js.map +1 -1
- package/lib/attachments/grouped-storage.d.ts +5 -0
- package/lib/attachments/grouped-storage.d.ts.map +1 -0
- package/lib/attachments/grouped-storage.js +47 -0
- package/lib/attachments/grouped-storage.js.map +1 -0
- package/lib/attachments/service.d.ts +17 -0
- package/lib/attachments/service.d.ts.map +1 -1
- package/lib/attachments/service.js +100 -8
- package/lib/attachments/service.js.map +1 -1
- package/lib/attachments/shared-storage.d.ts +7 -0
- package/lib/attachments/shared-storage.d.ts.map +1 -0
- package/lib/attachments/shared-storage.js +44 -0
- package/lib/attachments/shared-storage.js.map +1 -0
- package/lib/attachments/storage-admin.d.ts +6 -0
- package/lib/attachments/storage-admin.d.ts.map +1 -0
- package/lib/attachments/storage-admin.js +43 -0
- package/lib/attachments/storage-admin.js.map +1 -0
- package/lib/attachments/storage-types.d.ts +33 -0
- package/lib/attachments/storage-types.d.ts.map +1 -0
- package/lib/attachments/storage-types.js +2 -0
- package/lib/attachments/storage-types.js.map +1 -0
- package/lib/attachments/tool.d.ts.map +1 -1
- package/lib/attachments/tool.js +16 -5
- package/lib/attachments/tool.js.map +1 -1
- package/lib/channels/delivery-policy.d.ts.map +1 -1
- package/lib/channels/delivery-policy.js +7 -4
- package/lib/channels/delivery-policy.js.map +1 -1
- package/lib/channels/direct/message-format.js +418 -281
- package/lib/channels/direct/message-format.js.map +4 -4
- package/lib/channels/manager.d.ts +7 -3
- package/lib/channels/manager.d.ts.map +1 -1
- package/lib/channels/manager.js +73 -38
- package/lib/channels/manager.js.map +1 -1
- package/lib/channels/weixin/api.d.ts.map +1 -1
- package/lib/channels/weixin/api.js +7 -2
- package/lib/channels/weixin/api.js.map +1 -1
- package/lib/channels/weixin/errors.d.ts +14 -0
- package/lib/channels/weixin/errors.d.ts.map +1 -0
- package/lib/channels/weixin/errors.js +29 -0
- package/lib/channels/weixin/errors.js.map +1 -0
- package/lib/channels/weixin/poll.d.ts +14 -0
- package/lib/channels/weixin/poll.d.ts.map +1 -0
- package/lib/channels/weixin/poll.js +50 -0
- package/lib/channels/weixin/poll.js.map +1 -0
- package/lib/client-api.d.ts +1 -23
- package/lib/client-api.d.ts.map +1 -1
- package/lib/client-api.js.map +1 -1
- package/lib/client-controller.d.ts.map +1 -1
- package/lib/client-controller.js +3 -3
- package/lib/client-controller.js.map +1 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +1078 -679
- package/lib/client.js.map +4 -4
- package/lib/collaboration/composition.d.ts.map +1 -1
- package/lib/collaboration/composition.js +32 -8
- package/lib/collaboration/composition.js.map +1 -1
- package/lib/collaboration/domain.d.ts +8 -0
- package/lib/collaboration/domain.d.ts.map +1 -1
- package/lib/collaboration/domain.js.map +1 -1
- package/lib/collaboration/service.d.ts.map +1 -1
- package/lib/collaboration/service.js +38 -5
- package/lib/collaboration/service.js.map +1 -1
- package/lib/concern-notification.d.ts.map +1 -1
- package/lib/concern-notification.js +2 -1
- package/lib/concern-notification.js.map +1 -1
- package/lib/concern-tool.js +1 -1
- package/lib/concern-tool.js.map +1 -1
- package/lib/execution/reply-progress.d.ts.map +1 -1
- package/lib/execution/reply-progress.js +4 -2
- package/lib/execution/reply-progress.js.map +1 -1
- package/lib/execution/service.d.ts +1 -1
- package/lib/execution/service.d.ts.map +1 -1
- package/lib/execution/service.js +4 -7
- package/lib/execution/service.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -1
- package/lib/index.js.map +1 -1
- package/lib/memory-reflection.js +2 -2
- package/lib/memory-reflection.js.map +1 -1
- package/lib/message-source.d.ts +25 -0
- package/lib/message-source.d.ts.map +1 -0
- package/lib/message-source.js +8 -0
- package/lib/message-source.js.map +1 -0
- package/lib/observation-loop.js +4 -4
- package/lib/observation-loop.js.map +1 -1
- package/lib/pendant/reader.js +1 -1
- package/lib/pendant/reader.js.map +1 -1
- package/lib/pendant/settings-panel.js +1 -1
- package/lib/pendant/settings-panel.js.map +1 -1
- package/lib/persona/service.js +1 -1
- package/lib/persona/service.js.map +1 -1
- package/lib/requirements/attachments.d.ts +7 -0
- package/lib/requirements/attachments.d.ts.map +1 -0
- package/lib/requirements/attachments.js +26 -0
- package/lib/requirements/attachments.js.map +1 -0
- package/lib/requirements/domain.d.ts +1 -1
- package/lib/requirements/domain.d.ts.map +1 -1
- package/lib/requirements/service.d.ts.map +1 -1
- package/lib/requirements/service.js +4 -1
- package/lib/requirements/service.js.map +1 -1
- package/lib/scheduler/channel-origin.d.ts +7 -0
- package/lib/scheduler/channel-origin.d.ts.map +1 -0
- package/lib/scheduler/channel-origin.js +27 -0
- package/lib/scheduler/channel-origin.js.map +1 -0
- package/lib/scheduler/continuations.d.ts +29 -0
- package/lib/scheduler/continuations.d.ts.map +1 -0
- package/lib/scheduler/continuations.js +286 -0
- package/lib/scheduler/continuations.js.map +1 -0
- package/lib/scheduler/domain.d.ts +40 -0
- package/lib/scheduler/domain.d.ts.map +1 -1
- package/lib/scheduler/final-reply.d.ts +13 -0
- package/lib/scheduler/final-reply.d.ts.map +1 -0
- package/lib/scheduler/final-reply.js +21 -0
- package/lib/scheduler/final-reply.js.map +1 -0
- package/lib/scheduler/service.d.ts +2 -0
- package/lib/scheduler/service.d.ts.map +1 -1
- package/lib/scheduler/service.js +30 -1
- package/lib/scheduler/service.js.map +1 -1
- package/lib/scheduler/wakeup-context.d.ts +7 -0
- package/lib/scheduler/wakeup-context.d.ts.map +1 -0
- package/lib/scheduler/wakeup-context.js +14 -0
- package/lib/scheduler/wakeup-context.js.map +1 -0
- package/lib/scheduler/wakeup.d.ts +11 -0
- package/lib/scheduler/wakeup.d.ts.map +1 -0
- package/lib/scheduler/wakeup.js +52 -0
- package/lib/scheduler/wakeup.js.map +1 -0
- package/lib/skills/builtin-resources.d.ts +6 -0
- package/lib/skills/builtin-resources.d.ts.map +1 -0
- package/lib/skills/builtin-resources.js +47 -0
- package/lib/skills/builtin-resources.js.map +1 -0
- package/lib/skills/builtin.d.ts +2 -5
- package/lib/skills/builtin.d.ts.map +1 -1
- package/lib/skills/builtin.js +11 -0
- package/lib/skills/builtin.js.map +1 -1
- package/lib/skills/director-builtins.d.ts +8 -0
- package/lib/skills/director-builtins.d.ts.map +1 -0
- package/lib/skills/director-builtins.js +65 -0
- package/lib/skills/director-builtins.js.map +1 -0
- package/lib/skills/drama-builtin.d.ts +3 -0
- package/lib/skills/drama-builtin.d.ts.map +1 -0
- package/lib/skills/drama-builtin.js +49 -0
- package/lib/skills/drama-builtin.js.map +1 -0
- package/lib/skills/long-task-continuation.d.ts +4 -0
- package/lib/skills/long-task-continuation.d.ts.map +1 -0
- package/lib/skills/long-task-continuation.js +43 -0
- package/lib/skills/long-task-continuation.js.map +1 -0
- package/lib/skills/service.d.ts.map +1 -1
- package/lib/skills/service.js +8 -3
- package/lib/skills/service.js.map +1 -1
- package/lib/skills/viora-canvas-builtin.d.ts +3 -0
- package/lib/skills/viora-canvas-builtin.d.ts.map +1 -0
- package/lib/skills/viora-canvas-builtin.js +19 -0
- package/lib/skills/viora-canvas-builtin.js.map +1 -0
- package/lib/storage/migrate-layout.d.ts.map +1 -1
- package/lib/storage/migrate-layout.js +13 -4
- package/lib/storage/migrate-layout.js.map +1 -1
- package/lib/store.d.ts.map +1 -1
- package/lib/store.js +2 -0
- package/lib/store.js.map +1 -1
- package/lib/tasks/context.js +1 -0
- package/lib/tasks/context.js.map +1 -1
- package/lib/tasks/continuation-yield.d.ts +4 -0
- package/lib/tasks/continuation-yield.d.ts.map +1 -0
- package/lib/tasks/continuation-yield.js +27 -0
- package/lib/tasks/continuation-yield.js.map +1 -0
- package/lib/tasks/continuation.d.ts +13 -0
- package/lib/tasks/continuation.d.ts.map +1 -0
- package/lib/tasks/continuation.js +106 -0
- package/lib/tasks/continuation.js.map +1 -0
- package/lib/tasks/domain.d.ts +2 -0
- package/lib/tasks/domain.d.ts.map +1 -1
- package/lib/tasks/scheduling.d.ts.map +1 -1
- package/lib/tasks/scheduling.js +7 -0
- package/lib/tasks/scheduling.js.map +1 -1
- package/lib/tasks/service.d.ts +2 -1
- package/lib/tasks/service.d.ts.map +1 -1
- package/lib/tasks/service.js +19 -1
- package/lib/tasks/service.js.map +1 -1
- package/lib/ui/attachment-storage.d.ts +2 -0
- package/lib/ui/attachment-storage.d.ts.map +1 -0
- package/lib/ui/attachment-storage.js +59 -0
- package/lib/ui/attachment-storage.js.map +1 -0
- package/lib/ui/capability-editor.js +1 -1
- package/lib/ui/capability-editor.js.map +1 -1
- package/lib/ui/companion-access-panel.js +1 -1
- package/lib/ui/companion-access-panel.js.map +1 -1
- package/lib/ui/companion-create.js +1 -1
- package/lib/ui/companion-create.js.map +1 -1
- package/lib/ui/companion-picker.js +1 -1
- package/lib/ui/companion-picker.js.map +1 -1
- package/lib/ui/identity-editor.js +1 -1
- package/lib/ui/identity-editor.js.map +1 -1
- package/lib/ui/mcp-capabilities.js +1 -1
- package/lib/ui/mcp-capabilities.js.map +1 -1
- package/lib/ui/mcp-panel.js +1 -1
- package/lib/ui/mcp-panel.js.map +1 -1
- package/lib/ui/memory/concern-board.js +2 -2
- package/lib/ui/memory/concern-board.js.map +1 -1
- package/lib/ui/memory/concern-deletion.d.ts +1 -1
- package/lib/ui/memory/concern-deletion.d.ts.map +1 -1
- package/lib/ui/memory/concern-deletion.js +9 -4
- package/lib/ui/memory/concern-deletion.js.map +1 -1
- package/lib/ui/memory/concern-panel.js +1 -1
- package/lib/ui/memory/concern-panel.js.map +1 -1
- package/lib/ui/memory/memory-library.js +1 -1
- package/lib/ui/memory/memory-library.js.map +1 -1
- package/lib/ui/memory/memory-panel.js +1 -1
- package/lib/ui/memory/memory-panel.js.map +1 -1
- package/lib/ui/partner-components.js +1 -1
- package/lib/ui/partner-components.js.map +1 -1
- package/lib/ui/requirement-board.js +1 -1
- package/lib/ui/requirement-board.js.map +1 -1
- package/lib/ui/requirement-dialog.js +1 -1
- package/lib/ui/requirement-dialog.js.map +1 -1
- package/lib/ui/requirement-tasks-panel.js +1 -1
- package/lib/ui/requirement-tasks-panel.js.map +1 -1
- package/lib/ui/schedule-panel.d.ts.map +1 -1
- package/lib/ui/schedule-panel.js +20 -4
- package/lib/ui/schedule-panel.js.map +1 -1
- package/lib/ui/skills-panel.js +1 -1
- package/lib/ui/skills-panel.js.map +1 -1
- package/lib/ui/storage-settings.d.ts.map +1 -1
- package/lib/ui/storage-settings.js +2 -1
- package/lib/ui/storage-settings.js.map +1 -1
- package/lib/ui/task-board-stage.js +1 -1
- package/lib/ui/task-board-stage.js.map +1 -1
- package/lib/ui/workspace-components.js +1 -1
- package/lib/ui/workspace-components.js.map +1 -1
- package/lib/ui/workspace-navigation.d.ts +16 -16
- package/lib/ui/workspace-navigation.js +1 -1
- package/lib/ui/workspace-navigation.js.map +1 -1
- package/package.json +55 -41
- package/resources/skills/cinematic-director/manifest.json +205 -0
- package/resources/skills/cinematic-director/upstream/CHANGELOG.md +213 -0
- package/resources/skills/cinematic-director/upstream/CONTRIBUTING.md +316 -0
- package/resources/skills/cinematic-director/upstream/LICENSE +21 -0
- package/resources/skills/cinematic-director/upstream/README.md +507 -0
- package/resources/skills/cinematic-director/upstream/SKILL.md +420 -0
- package/resources/skills/cinematic-director/upstream/assets/beat-sheet-template.md +97 -0
- package/resources/skills/cinematic-director/upstream/assets/director-book-template.md +254 -0
- package/resources/skills/cinematic-director/upstream/assets/edit-timeline-template.md +147 -0
- package/resources/skills/cinematic-director/upstream/assets/keyframe-prompt-template.md +334 -0
- package/resources/skills/cinematic-director/upstream/assets/qc-checklist.md +153 -0
- package/resources/skills/cinematic-director/upstream/assets/shot-plan-template.md +95 -0
- package/resources/skills/cinematic-director/upstream/assets/sound-plan-template.md +181 -0
- package/resources/skills/cinematic-director/upstream/assets/video-prompt-template.md +305 -0
- package/resources/skills/cinematic-director/upstream/evals/run.md +69 -0
- package/resources/skills/cinematic-director/upstream/references/ai-video-tool-adapters.md +527 -0
- package/resources/skills/cinematic-director/upstream/references/blocking-and-staging.md +424 -0
- package/resources/skills/cinematic-director/upstream/references/cinematic-language.md +595 -0
- package/resources/skills/cinematic-director/upstream/references/continuity-bible.md +410 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/01_spielberg.md +192 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/02_hitchcock.md +193 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/03_kubrick.md +196 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/04_kurosawa.md +196 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/05_scorsese.md +195 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/06_fellini.md +197 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/07_bergman.md +197 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/08_tarkovsky.md +184 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/09_wong_kar_wai.md +189 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/10_nolan.md +185 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/11_villeneuve.md +188 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/12_fincher.md +185 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/13_refn.md +186 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/14_bi_gan.md +188 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/15_zhang_yimou.md +192 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/16_hou_hsiao_hsien.md +192 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/17_park_chan_wook.md +192 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/18_malick.md +191 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/19_michael_mann.md +192 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/20_coen_brothers.md +194 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/README.md +89 -0
- package/resources/skills/cinematic-director/upstream/references/director_styles/example_comparisons.md +140 -0
- package/resources/skills/cinematic-director/upstream/references/editing-and-assembly.md +263 -0
- package/resources/skills/cinematic-director/upstream/references/failure-modes.md +594 -0
- package/resources/skills/cinematic-director/upstream/references/genre-playbooks.md +407 -0
- package/resources/skills/cinematic-director/upstream/references/image-model-adapters.md +290 -0
- package/resources/skills/cinematic-director/upstream/references/lighting-and-color.md +349 -0
- package/resources/skills/cinematic-director/upstream/references/product-and-macro.md +207 -0
- package/resources/skills/cinematic-director/upstream/references/production-workflow.md +238 -0
- package/resources/skills/cinematic-director/upstream/references/prompt-lexicon.md +602 -0
- package/resources/skills/cinematic-director/upstream/references/sound-and-dialogue.md +364 -0
- package/resources/skills/director-skills/manifest.json +541 -0
- package/resources/skills/director-skills/upstream/CHANGELOG.md +32 -0
- package/resources/skills/director-skills/upstream/LICENSE +21 -0
- package/resources/skills/director-skills/upstream/MANIFEST.md +366 -0
- package/resources/skills/director-skills/upstream/README.md +251 -0
- package/resources/skills/director-skills/upstream/RESEARCH_PROVENANCE.md +37 -0
- package/resources/skills/director-skills/upstream/SKILL.md +114 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/SKILL.md +81 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/checklists/continuity_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/examples/character_continuity_update.md +9 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/examples/location_continuity_update.md +9 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/references/continuity_system.md +21 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/references/golden_image_workflow.md +29 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/references/identity_anchors.md +14 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/references/visual_bible_system.md +15 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/character_profile.md +15 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/continuity_checklist.md +11 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/costume_profile.md +12 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/location_profile.md +14 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/prop_profile.md +13 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/templates/visual_style_bible.md +15 -0
- package/resources/skills/director-skills/upstream/skills/character-location-prop-bible/tests/continuity_tests.md +6 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/SKILL.md +80 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/checklists/image_prompt_quality_checklist.md +10 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/examples/shot_list_to_image_prompts.md +4 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/references/image_prompt_components.md +22 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/references/lighting_and_photorealism.md +19 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/references/negative_prompt_patterns.md +18 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/references/prompt_anatomy.md +18 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/templates/character_reference_sheet_prompt.md +5 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/templates/cinematic_still_prompt.md +3 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/templates/keyframe_prompt.md +6 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/templates/location_reference_prompt.md +3 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/templates/prop_prompt.md +3 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-image-prompting/tests/image_prompt_completeness_tests.md +5 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/SKILL.md +84 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/checklists/video_prompt_quality_checklist.md +9 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/examples/image_prompt_to_video_prompt.md +3 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/ai_film_production_pipeline.md +21 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/audio_motion_timing.md +16 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/camera_lens_movement.md +26 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/negative_prompt_patterns.md +18 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/prompt_anatomy.md +18 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/references/video_prompt_components.md +25 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/templates/image_to_video_prompt.md +5 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/templates/text_to_video_prompt.md +5 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/templates/video_beat_prompt.md +9 -0
- package/resources/skills/director-skills/upstream/skills/cinematic-video-prompting/tests/video_prompt_completeness_tests.md +5 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/SKILL.md +82 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/checklists/model_export_checklist.md +9 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/examples/failed_model_transfer_diagnosis.md +5 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/examples/image_prompt_translation.md +10 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/examples/same_scene_across_models.md +9 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/examples/universal_prompt_to_model_specific_exports.md +14 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/examples/video_prompt_translation.md +9 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/failure_modes_by_model.md +13 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/image_model_profiles.md +226 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/model_capability_matrix.md +24 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/model_update_protocol.md +10 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/parameter_compatibility.md +20 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/prompt_translation_rules.md +18 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/references/video_model_profiles.md +251 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/templates/model_comparison_table.md +4 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/templates/model_specific_prompt_export.md +21 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/templates/multi_model_export_package.md +18 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/templates/prompt_translation_report.md +13 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/templates/universal_prompt_brief.md +25 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/tests/model_routing_tests.md +8 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/tests/prompt_translation_tests.md +7 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/tests/research_provenance_tests.md +6 -0
- package/resources/skills/director-skills/upstream/skills/model-adaptation/tests/unknown_capability_tests.md +7 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/SKILL.md +82 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/checklists/diagnostic_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/checklists/release_quality_checklist.md +9 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/examples/failed_output_to_revised_prompt.md +10 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/examples/final_prompt_package_export.md +10 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/references/failure_modes.md +13 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/references/iteration_diagnostics.md +17 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/references/revision_loops.md +17 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/references/story_voice_release_qc.md +30 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/templates/failed_output_intake.md +13 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/templates/final_production_package.md +11 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/templates/prompt_revision_report.md +17 -0
- package/resources/skills/director-skills/upstream/skills/prompt-iteration-and-diagnostics/tests/prompt_quality_checklist_tests.md +6 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/SKILL.md +81 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/checklists/scene_quality_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/examples/scene_to_screenplay_excerpt.md +18 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/references/dialogue_and_subtext.md +15 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/references/fountain_workflow.md +29 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/references/scene_construction.md +20 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/references/screenplay_format.md +18 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/templates/beat_sheet.md +6 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/templates/dialogue_pass.md +9 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/templates/fountain_scene.md +25 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/templates/screenplay_scene.md +19 -0
- package/resources/skills/director-skills/upstream/skills/screenplay-and-scene-writing/tests/screenplay_scene_tests.md +6 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/SKILL.md +83 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/checklists/concept_quality_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/examples/idea_to_logline.md +13 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/examples/logline_to_outline.md +10 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/references/ai_storytelling_workflow.md +46 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/references/continuity_handoff.md +8 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/references/screenplay_structure.md +19 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/references/story_development_workflow.md +23 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/beat_sheet.md +7 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/idea_intake.md +16 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/logline.md +10 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/short_film_treatment.md +23 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/short_story_plan.md +22 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/story_premise.md +19 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/templates/story_revision_audit.md +22 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/tests/output_format_tests.md +3 -0
- package/resources/skills/director-skills/upstream/skills/short-film-development/tests/routing_tests.md +7 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/SKILL.md +77 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/checklists/shotlist_quality_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/examples/screenplay_scene_to_shot_list.md +8 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/references/camera_plan.md +11 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/references/production_breakdown.md +11 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/references/shotlist_schema.md +21 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/templates/asset_list.md +7 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/templates/camera_plan.md +10 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/templates/scene_breakdown.md +16 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/templates/shot_list.md +5 -0
- package/resources/skills/director-skills/upstream/skills/shotlist-and-visual-breakdown/tests/screenplay_to_shotlist_tests.md +5 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/SKILL.md +77 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/checklists/style_quality_checklist.md +8 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/examples/genre_to_visual_direction.md +15 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/references/camera_lens_movement.md +26 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/references/cinematic_language.md +32 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/references/genre_style_tone.md +17 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/references/lighting_and_photorealism.md +19 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/templates/visual_style_bible.md +33 -0
- package/resources/skills/director-skills/upstream/skills/style-cinematography-director/tests/style_translation_tests.md +5 -0
- package/resources/skills/director-skills/upstream/tests/master_router_tests.md +80 -0
- package/resources/skills/drama-production/manifest.json +933 -0
- package/resources/skills/drama-production/upstream/LICENSE +21 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/SKILL.md +153 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/creator-decision.example.jsonl +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/dashboard/app.js +1263 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/dashboard/index.html +114 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/dashboard/styles.css +297 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/production-observation.example.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/project-template/short-drama.json +36 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/assets/reference-observation.example.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/audience-reveal.md +21 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/contract-and-ownership.md +45 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/creator-documents.md +230 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/creator-workflow.md +98 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards/Q/347/211/210/350/241/250/350/276/276.md +73 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards//344/272/214/347/273/264/345/212/250/346/200/201/346/274/253.md +74 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards//345/233/275/346/274/253/344/272/214/346/254/241/345/205/203.md +79 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards//345/256/236/346/213/215.md +75 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards//346/260/264/345/242/250/347/254/224/350/247/246.md +85 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/form-cards//351/243/216/346/240/274/345/214/226/344/270/211/347/273/264.md +72 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/knowhow-index.md +85 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/look-development.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/pickup-and-alternate.md +24 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/production-form-profiles.md +126 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/reference-roles.md +53 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/references/runtime-preflight.md +24 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/scripts/creator_markdown_check.py +1413 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/scripts/dashboard_server.py +1798 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/scripts/project_tool.py +2454 -0
- package/resources/skills/drama-production/upstream/skills/short-drama/scripts/selftest.py +287 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/SKILL.md +76 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/character-look.example.jsonl +3 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/continuity.example.jsonl +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/decisions.example.jsonl +5 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/location-view.example.jsonl +3 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/occurrences.example.jsonl +5 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/assets/prop-state.example.jsonl +3 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/examples/minimal/characters.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/examples/minimal/looks.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/asset-review-checklist.md +82 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/character-and-look.md +190 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/continuity-delta.md +120 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/continuity-lock.md +122 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/identity-vs-variant.md +140 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/location-and-view.md +84 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/occurrence-extraction.md +108 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/prop-and-state.md +126 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/stage-contract.md +43 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/references/voice-direction.md +179 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/scripts/asset_check.py +267 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-assets/scripts/selftest.py +89 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/SKILL.md +157 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/assets/adaptation-map.example.jsonl +1 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/assets/creative-brief.md +120 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/assets/episode-map.jsonl +1 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/assets/story-engine.md +181 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/adaptation-craft.md +219 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/creative-reference-intake.md +57 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/director-brief-craft.md +113 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/episode-design.md +509 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-and-hook-playbook.md +240 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//344/272/262/345/255/220/351/232/220/347/247/230.md +112 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//344/273/231/344/276/240/344/277/256/347/234/237.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//345/212/250/344/275/234/344/273/273/345/212/241.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//345/217/244/350/243/205/346/235/203/350/260/213.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//345/244/215/344/273/207/346/211/223/350/204/270.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//345/256/266/345/272/255/345/205/263/347/263/273.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//346/202/254/347/226/221/350/247/204/345/210/231.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//347/224/237/346/264/273/346/265/201.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//347/240/264/351/225/234/351/207/215/345/234/206.md +109 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//350/201/214/345/234/272/345/226/234/345/211/247.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//350/261/252/351/227/250/345/251/232/346/201/213.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards//350/272/253/344/273/275/351/224/231/344/275/215.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/genre-cards.md +92 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/mechanism-loop.md +282 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/multi-episode-intake.md +128 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/premise-devices.md +211 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/reveal-reversal-payoff.md +99 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/serial-character-and-memory.md +293 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/stage-contract.md +88 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/references/story-craft.md +359 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/scripts/episode_intake.py +699 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-develop/scripts/selftest.py +47 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/SKILL.md +146 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/README.md +60 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/package.json +15 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/remotion.config.ts +6 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/src/Root.tsx +26 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/src/Subtitles.tsx +88 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/src/font.ts +46 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/src/index.ts +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/src/schema.ts +32 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets/remotion/tsconfig.json +13 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/assets//345/211/252/350/276/221/345/215/225.md +43 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/references/cut-craft.md +38 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/references/delivery-verify.md +29 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/references/generated-footage.md +54 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/references/sound-and-subtitles.md +60 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/references/stage-contract.md +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/scripts/edit_tool.py +1156 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-edit/scripts/selftest.py +520 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/SKILL.md +73 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/assets/image-prompt-spec.jsonl.md +187 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/assets/image-prompts.md +42 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/assets/lookdev-frame-spec.jsonl.md +128 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/assets/lookdev-prompts.md +34 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/examples/minimal-image-prompt-specs.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/character-and-look.md +153 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/common-recipe.md +241 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/edit-and-revision.md +110 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/location-plate.md +151 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/look-and-state-variant.md +97 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/lookdev-frame.md +34 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/production-sheet-recipes.md +177 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/prop-plate.md +137 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/review-and-fixtures.md +92 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/references/stage-contract.md +32 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/scripts/image_prompt_check.py +443 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-image-prompts/scripts/selftest.py +95 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/SKILL.md +245 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/assets/episode-candidate.example.jsonl +3 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/references/adaptation-triage.md +116 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/references/adaptation-value.md +124 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/references/aggregation-and-entities.md +155 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/references/chapter-extraction.md +144 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/references/stage-contract.md +67 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/scripts/novel_index.py +651 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-novel-analyze/scripts/selftest.py +51 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/SKILL.md +183 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/adapter-contract.md +219 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/providers/gpt-image-2.md +24 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/providers/minimax-h3-video.md +86 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/providers/minimax-music.md +25 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/providers/minimax-speech.md +41 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/references/providers/seedance.md +64 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/scripts/fixture_adapter.py +77 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/scripts/production_tool.py +2205 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/scripts/provider_adapters.py +1747 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-produce/scripts/selftest.py +135 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/SKILL.md +118 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/assets/finding-template.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/assets/supersession-decision.example.json +42 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/assets/verdict-template.json +32 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/examples/minimal-findings.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/examples/minimal-verdict.json +34 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/anti-template-repair.md +109 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/production-quality-gates.md +276 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/project-calibration.md +83 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/review-method.md +81 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/rubric-assets-prompts.md +111 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/rubric-source-analysis.md +108 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/rubric-story-script.md +264 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/rubric-visual-motion.md +184 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/references/stage-contract.md +28 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/scripts/review_check.py +325 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-review/scripts/selftest.py +87 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/SKILL.md +175 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/coverage-audition.example.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/coverage-template.json +49 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/keyframe-prompts.md +36 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/keyframe-template.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/revision-lineage.fragment.json +12 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/scene-visual-plan.example.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/assets/shot-template.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/blocking-playbooks.md +216 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/comic-keyframe-lexicon.md +156 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/coverage-audition.md +34 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/keyframe-craft.md +174 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/lighting-craft.md +39 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/production-shot-grammar.md +279 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/review-and-fixtures.md +36 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/scene-visual-plan.md +30 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/screenplay-to-keyframe-example.md +155 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/shot-craft.md +266 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/shot-revision-identity.md +25 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/references/stage-contract.md +57 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/scripts/selftest.py +191 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-storyboard/scripts/storyboard_check.py +824 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/SKILL.md +154 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/coverage-scope.fragment.json +21 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/delivery-container.jsonl.md +101 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/motion-spec.jsonl.md +217 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/motion-terminal.example.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/music-spec.jsonl.md +31 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/performance.fragment.json +38 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/assets/video-prompts.md +67 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/examples/minimal-music-specs.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/camera-audio-continuity.md +259 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/delivery-profile.md +273 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/generability.md +93 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/minimax-h3.md +253 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/motion-recipe.md +315 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/performance-action-timing.md +209 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/production-prompt-grammar.md +304 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/review-and-fixtures.md +139 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/seedance-2.0.md +50 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/seedance-2.5.md +122 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/stage-contract.md +60 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/references/target-model-profile.md +116 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/scripts/container_check.py +329 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/scripts/motion_timing_check.py +450 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/scripts/music_spec_check.py +327 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-video-prompts/scripts/selftest.py +82 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/SKILL.md +99 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/agents/openai.yaml +4 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/assets/beats.jsonl +2 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/assets/episode-card-standalone.json +120 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/assets/episode-card.json +55 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/assets/screenplay.md +36 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/assets/voice-record-sheet.jsonl.md +89 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/dialogue-craft.md +526 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/production-format-dialect.md +273 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/scene-handoff-capsule.md +25 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/scene-sound-dramaturgy.md +43 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/screenplay-format.md +266 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/script-craft.md +745 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/stage-contract.md +36 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/references/substitutable-realization.md +107 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/scripts/duration_estimate.py +309 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/scripts/screenplay_index.py +1091 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/scripts/selftest.py +229 -0
- package/resources/skills/drama-production/upstream/skills/short-drama-write/scripts/voice_sheet_check.py +416 -0
- package/resources/skills/viora-canvas-production/manifest.json +23 -0
- package/resources/skills/viora-canvas-production/references/canvas-contract.md +50 -0
- package/resources/skills/viora-canvas-production/references/creative-production.md +50 -0
- package/resources/skills/viora-canvas-production/references/generation-delivery.md +36 -0
- package/resources/skills/viora-canvas-production/references/production-ledger.md +25 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { lstat, mkdir, readFile, rename, unlink } from 'node:fs/promises';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
export function attachmentOwnerDirectory(root, owner) {
|
|
5
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,199}$/.test(owner))
|
|
6
|
+
throw Error('附件所属伙伴编号无效');
|
|
7
|
+
return join(root, owner);
|
|
8
|
+
}
|
|
9
|
+
/** One shared index, owner-scoped files. Startup-only, resumable and no overwrites. */
|
|
10
|
+
export async function groupAttachmentFiles(root, items) {
|
|
11
|
+
for (const item of items) {
|
|
12
|
+
if (!/^[a-f0-9]{64}$/.test(item.id))
|
|
13
|
+
throw Error('附件索引无效');
|
|
14
|
+
const directory = attachmentOwnerDirectory(root, item.companionId);
|
|
15
|
+
await mkdir(directory, { recursive: true, mode: 0o700 });
|
|
16
|
+
if (!(await lstat(directory)).isDirectory())
|
|
17
|
+
throw Error('附件目录不是普通目录');
|
|
18
|
+
const source = join(root, item.id), target = join(directory, item.id);
|
|
19
|
+
const old = await lstat(source).catch(error => { if (error.code !== 'ENOENT')
|
|
20
|
+
throw error; return undefined; });
|
|
21
|
+
const current = await lstat(target).catch(error => { if (error.code !== 'ENOENT')
|
|
22
|
+
throw error; return undefined; });
|
|
23
|
+
const verify = async (path) => {
|
|
24
|
+
if (!(await lstat(path)).isFile())
|
|
25
|
+
throw Error('附件不是普通文件');
|
|
26
|
+
const data = await readFile(path);
|
|
27
|
+
if (data.length !== item.size || createHash('sha256').update(data).digest('hex') !== item.hash)
|
|
28
|
+
throw Error('附件分目录迁移校验失败,已保留源文件');
|
|
29
|
+
};
|
|
30
|
+
if (current) {
|
|
31
|
+
if (!current.isFile())
|
|
32
|
+
throw Error('附件不是普通文件');
|
|
33
|
+
if (old) {
|
|
34
|
+
await verify(source);
|
|
35
|
+
await verify(target);
|
|
36
|
+
await unlink(source);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else if (old) {
|
|
40
|
+
await verify(source);
|
|
41
|
+
await rename(source, target);
|
|
42
|
+
}
|
|
43
|
+
else
|
|
44
|
+
throw Error('附件副本缺失,无法完成分目录迁移');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=grouped-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grouped-storage.js","sourceRoot":"","sources":["../../src/attachments/grouped-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,MAAM,UAAU,wBAAwB,CAAC,IAAW,EAAC,KAAY;IAC/D,IAAG,CAAC,mCAAmC,CAAC,IAAI,CAAC,KAAK,CAAC;QAAC,MAAM,KAAK,CAAC,YAAY,CAAC,CAAA;IAC7E,OAAO,IAAI,CAAC,IAAI,EAAC,KAAK,CAAC,CAAA;AACzB,CAAC;AAED,uFAAuF;AACvF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAW,EAAC,KAA0B;IAC/E,KAAI,MAAM,IAAI,IAAI,KAAK,EAAC,CAAC;QACvB,IAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAA;QACxD,MAAM,SAAS,GAAC,wBAAwB,CAAC,IAAI,EAAC,IAAI,CAAC,WAAW,C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B,CAAC,CAAA;QAC3H,CAAC,CAAA;QACD,IAAG,OAAO,EAAC,CAAC;YACV,IAAG,CAAC,OAAO,CAAC,MAAM,EAAE;gBAAC,MAAM,KAAK,CAAC,UAAU,CAAC,CAAA;YAC5C,IAAG,GAAG,EAAC,CAAC;gBAAA,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;gBAAA,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;gBAAA,MAAM,MAAM,CAAC,MAAM,CAAC,CAAA;YAAA,CAAC;QACzE,CAAC;aAAK,IAAG,GAAG,EAAC,CAAC;YAAA,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;YAAA,MAAM,MAAM,CAAC,MAAM,EAAC,MAAM,CAAC,CAAA;QAAA,CAAC;;YAC1D,MAAM,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACtC,CAAC;AACH,CAAC"}
|
|
@@ -10,23 +10,36 @@ export interface AttachmentDelivery {
|
|
|
10
10
|
hash: string;
|
|
11
11
|
channel: 'pending' | 'sent' | 'failed' | 'none';
|
|
12
12
|
channelRouteId?: string;
|
|
13
|
+
createdAt?: number;
|
|
13
14
|
}
|
|
14
15
|
/** Explicit immutable deliveries, separate from mutable workspace files and board state. */
|
|
15
16
|
export declare class AttachmentDeliveryService {
|
|
16
17
|
private readonly root;
|
|
17
18
|
private readonly db;
|
|
18
19
|
private readonly privateRoot?;
|
|
20
|
+
private grouped;
|
|
19
21
|
private queues;
|
|
20
22
|
private closed;
|
|
21
23
|
private shards;
|
|
22
24
|
releaseOwner(id: string): void;
|
|
25
|
+
removeOwner(id: string): Promise<void>;
|
|
23
26
|
private constructor();
|
|
27
|
+
get limitMiB(): number;
|
|
28
|
+
setLimitMiB(value: number): void;
|
|
29
|
+
/** Metadata only; no content hashing or loading all file bytes for the settings page. */
|
|
30
|
+
storedEntries(): Promise<Array<AttachmentDelivery & {
|
|
31
|
+
createdAt: number;
|
|
32
|
+
directory: string;
|
|
33
|
+
}>>;
|
|
34
|
+
/** Caller holds the storage queue and has rechecked pending deliveries/task references. */
|
|
35
|
+
removeStored(item: AttachmentDelivery): Promise<void>;
|
|
24
36
|
static openPartitioned(root: string, privateRoot: (id: string) => string): Promise<AttachmentDeliveryService>;
|
|
25
37
|
private directory;
|
|
26
38
|
private database;
|
|
27
39
|
private existingDatabase;
|
|
28
40
|
importExisting(item: AttachmentDelivery, data: Buffer): Promise<void>;
|
|
29
41
|
static open(root: string): Promise<AttachmentDeliveryService>;
|
|
42
|
+
static openGrouped(root: string): Promise<AttachmentDeliveryService>;
|
|
30
43
|
serial<T>(sessionId: string, work: () => Promise<T>): Promise<T>;
|
|
31
44
|
get(id: string): AttachmentDelivery | undefined;
|
|
32
45
|
private save;
|
|
@@ -39,8 +52,12 @@ export declare class AttachmentDeliveryService {
|
|
|
39
52
|
channel: boolean;
|
|
40
53
|
channelRouteId?: string;
|
|
41
54
|
}, signal: AbortSignal): Promise<AttachmentDelivery>;
|
|
55
|
+
private prepareSnapshot;
|
|
42
56
|
bytes(item: AttachmentDelivery): Promise<Buffer>;
|
|
57
|
+
/** Use the immutable delivery snapshot, never a different companion's workspace path. */
|
|
58
|
+
outbound(item: AttachmentDelivery): Promise<PartnerOutboundAttachment>;
|
|
43
59
|
deliver(item: AttachmentDelivery, send: (file: PartnerOutboundAttachment) => Promise<void>): Promise<AttachmentDelivery>;
|
|
60
|
+
private deliverSnapshot;
|
|
44
61
|
freeze(): Promise<void>;
|
|
45
62
|
close(): void;
|
|
46
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/attachments/service.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/attachments/service.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAG/F,MA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IAAI,CAAC;IAC7B,KAAK,IAAI,IAAI;CACd"}
|
|
@@ -1,24 +1,77 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { constants, mkdirSync, chmodSync, existsSync } from 'node:fs';
|
|
3
|
-
import { chmod, mkdir, open, realpath, readFile, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { chmod, mkdir, open, realpath, readFile, writeFile, stat, unlink } from 'node:fs/promises';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { DatabaseSync } from 'node:sqlite';
|
|
6
6
|
import { extractOutboundAttachments } from '../channels/outbound-media.js';
|
|
7
7
|
import { PARTNER_MEDIA_MAX_BYTES } from '../channel-message.js';
|
|
8
|
-
|
|
8
|
+
import { attachmentOwnerDirectory, groupAttachmentFiles } from './grouped-storage.js';
|
|
9
|
+
const DEFAULT_LIMIT_MIB = 512;
|
|
9
10
|
/** Explicit immutable deliveries, separate from mutable workspace files and board state. */
|
|
10
11
|
export class AttachmentDeliveryService {
|
|
11
12
|
root;
|
|
12
13
|
db;
|
|
13
14
|
privateRoot;
|
|
15
|
+
grouped;
|
|
14
16
|
queues = new Map();
|
|
15
17
|
closed = false;
|
|
16
18
|
shards = new Map();
|
|
17
19
|
releaseOwner(id) { this.shards.get(id)?.close(); this.shards.delete(id); }
|
|
18
|
-
|
|
20
|
+
async removeOwner(id) {
|
|
21
|
+
await this.serial('storage', async () => {
|
|
22
|
+
for (const item of await this.storedEntries())
|
|
23
|
+
if (item.companionId === id)
|
|
24
|
+
await this.removeStored(item);
|
|
25
|
+
this.releaseOwner(id);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
constructor(root, db, privateRoot, grouped = false) {
|
|
19
29
|
this.root = root;
|
|
20
30
|
this.db = db;
|
|
21
31
|
this.privateRoot = privateRoot;
|
|
32
|
+
this.grouped = grouped;
|
|
33
|
+
db.exec('CREATE TABLE IF NOT EXISTS attachment_settings(key TEXT PRIMARY KEY, value INTEGER NOT NULL)');
|
|
34
|
+
}
|
|
35
|
+
get limitMiB() {
|
|
36
|
+
const row = this.db.prepare("SELECT value FROM attachment_settings WHERE key='limitMiB'").get();
|
|
37
|
+
return row ? Number(row.value) : DEFAULT_LIMIT_MIB;
|
|
38
|
+
}
|
|
39
|
+
setLimitMiB(value) {
|
|
40
|
+
if (!Number.isSafeInteger(value) || value < 64 || value > 1_048_576)
|
|
41
|
+
throw new Error('总额度须为 64–1048576 MiB 的整数');
|
|
42
|
+
this.db.prepare("INSERT OR REPLACE INTO attachment_settings(key,value) VALUES ('limitMiB',?)").run(value);
|
|
43
|
+
}
|
|
44
|
+
/** Metadata only; no content hashing or loading all file bytes for the settings page. */
|
|
45
|
+
async storedEntries() {
|
|
46
|
+
const owners = this.privateRoot ? this.db.prepare('SELECT DISTINCT companion_id FROM owners').all().map(row => String(row.companion_id)) : [''];
|
|
47
|
+
const entries = [];
|
|
48
|
+
for (const owner of owners) {
|
|
49
|
+
const rows = this.existingDatabase(owner)?.prepare('SELECT payload FROM deliveries').all() ?? [];
|
|
50
|
+
for (const row of rows) {
|
|
51
|
+
const item = JSON.parse(String(row.payload));
|
|
52
|
+
if (!/^[a-f0-9]{64}$/.test(item.id))
|
|
53
|
+
throw new Error('附件索引无效,请检查存储');
|
|
54
|
+
const directory = this.directory(item.companionId);
|
|
55
|
+
const createdAt = item.createdAt ?? (await stat(join(directory, item.id)).catch(error => {
|
|
56
|
+
if (error.code !== 'ENOENT')
|
|
57
|
+
throw error;
|
|
58
|
+
return undefined;
|
|
59
|
+
}))?.mtimeMs ?? 0;
|
|
60
|
+
entries.push({ ...item, createdAt, directory });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return entries;
|
|
64
|
+
}
|
|
65
|
+
/** Caller holds the storage queue and has rechecked pending deliveries/task references. */
|
|
66
|
+
async removeStored(item) {
|
|
67
|
+
if (!/^[a-f0-9]{64}$/.test(item.id))
|
|
68
|
+
throw new Error('附件标识无效');
|
|
69
|
+
await unlink(join(this.directory(item.companionId), item.id)).catch(error => { if (error.code !== 'ENOENT')
|
|
70
|
+
throw error; });
|
|
71
|
+
// Keep the record on unlink errors; a missing file can safely be retried after interruption.
|
|
72
|
+
this.database(item.companionId).prepare('DELETE FROM deliveries WHERE id=?').run(item.id);
|
|
73
|
+
if (this.privateRoot)
|
|
74
|
+
this.db.prepare('DELETE FROM owners WHERE id=?').run(item.id);
|
|
22
75
|
}
|
|
23
76
|
static async openPartitioned(root, privateRoot) {
|
|
24
77
|
await mkdir(root, { recursive: true, mode: 0o700 });
|
|
@@ -27,7 +80,7 @@ export class AttachmentDeliveryService {
|
|
|
27
80
|
await chmod(path, 0o600);
|
|
28
81
|
return new AttachmentDeliveryService(root, db, privateRoot);
|
|
29
82
|
}
|
|
30
|
-
directory(owner) { return this.privateRoot ? join(this.privateRoot(owner), 'deliveries') : this.root; }
|
|
83
|
+
directory(owner) { return this.privateRoot ? join(this.privateRoot(owner), 'deliveries') : this.grouped ? attachmentOwnerDirectory(this.root, owner) : this.root; }
|
|
31
84
|
database(owner) {
|
|
32
85
|
if (this.closed)
|
|
33
86
|
throw new Error('附件存储已关闭');
|
|
@@ -57,7 +110,11 @@ export class AttachmentDeliveryService {
|
|
|
57
110
|
if (!/^[a-f0-9]{64}$/.test(item.id) || data.length !== item.size || createHash('sha256').update(data).digest('hex') !== item.hash)
|
|
58
111
|
throw new Error('附件迁移校验失败');
|
|
59
112
|
this.database(item.companionId);
|
|
60
|
-
await
|
|
113
|
+
await mkdir(this.directory(item.companionId), { recursive: true, mode: 0o700 });
|
|
114
|
+
await writeFile(join(this.directory(item.companionId), item.id), data, { flag: 'wx', mode: 0o600 }).catch(error => { if (error.code !== 'EEXIST')
|
|
115
|
+
throw error; });
|
|
116
|
+
// A crash can leave an unindexed file. Verify it before adopting it on retry.
|
|
117
|
+
await this.bytes(item);
|
|
61
118
|
this.save(item);
|
|
62
119
|
}
|
|
63
120
|
static async open(root) {
|
|
@@ -73,6 +130,19 @@ export class AttachmentDeliveryService {
|
|
|
73
130
|
throw error;
|
|
74
131
|
}
|
|
75
132
|
}
|
|
133
|
+
static async openGrouped(root) {
|
|
134
|
+
const service = await this.open(root);
|
|
135
|
+
try {
|
|
136
|
+
const items = service.db.prepare('SELECT payload FROM deliveries').all().map(row => JSON.parse(String(row.payload)));
|
|
137
|
+
await groupAttachmentFiles(root, items);
|
|
138
|
+
service.grouped = true;
|
|
139
|
+
return service;
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
service.close();
|
|
143
|
+
throw error;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
76
146
|
async serial(sessionId, work) {
|
|
77
147
|
const job = (this.queues.get(sessionId) ?? Promise.resolve()).catch(() => { }).then(work);
|
|
78
148
|
this.queues.set(sessionId, job);
|
|
@@ -101,6 +171,9 @@ export class AttachmentDeliveryService {
|
|
|
101
171
|
this.db.prepare('INSERT OR REPLACE INTO owners(id,companion_id) VALUES (?,?)').run(item.id, item.companionId);
|
|
102
172
|
}
|
|
103
173
|
async prepare(input, signal) {
|
|
174
|
+
return this.serial('storage', () => this.prepareSnapshot(input, signal));
|
|
175
|
+
}
|
|
176
|
+
async prepareSnapshot(input, signal) {
|
|
104
177
|
signal.throwIfAborted();
|
|
105
178
|
if (!input.path || input.path.length > 4096 || /[\n\r<>`]/.test(input.path))
|
|
106
179
|
throw new Error('请提供单个真实文件路径,不要传 Markdown 或 URL');
|
|
@@ -139,12 +212,13 @@ export class AttachmentDeliveryService {
|
|
|
139
212
|
return existing;
|
|
140
213
|
const owners = this.privateRoot ? this.db.prepare('SELECT DISTINCT companion_id FROM owners').all().map(row => String(row.companion_id)) : [''];
|
|
141
214
|
const used = owners.reduce((sum, owner) => sum + Number(this.existingDatabase(owner)?.prepare('SELECT COALESCE(SUM(size),0) AS total FROM deliveries').get().total ?? 0), 0);
|
|
142
|
-
if (used + data.length >
|
|
143
|
-
throw new Error(
|
|
215
|
+
if (used + data.length > this.limitMiB * 1024 * 1024)
|
|
216
|
+
throw new Error(`附件交付副本额度不足:已用 ${(used / 1024 / 1024).toFixed(1)} / ${this.limitMiB} MiB,本次需要 ${(data.length / 1024 / 1024).toFixed(1)} MiB。请在伙伴设置 → 基本设置 → 附件存储调整额度或清理历史副本;未发送文件`);
|
|
144
217
|
this.database(input.companionId);
|
|
218
|
+
await mkdir(this.directory(input.companionId), { recursive: true, mode: 0o700 });
|
|
145
219
|
await writeFile(join(this.directory(input.companionId), id), data, { flag: 'wx', mode: 0o600 }).catch(error => { if (error.code !== 'EEXIST')
|
|
146
220
|
throw error; });
|
|
147
|
-
const item = { id, companionId: input.companionId, sessionId: input.sessionId, name: file.name, mediaType: file.mediaType, kind: file.kind, size: data.length, hash, channel: input.channel ? 'pending' : 'none', ...(input.channelRouteId ? { channelRouteId: input.channelRouteId } : {}) };
|
|
221
|
+
const item = { id, companionId: input.companionId, sessionId: input.sessionId, name: file.name, mediaType: file.mediaType, kind: file.kind, size: data.length, hash, createdAt: Date.now(), channel: input.channel ? 'pending' : 'none', ...(input.channelRouteId ? { channelRouteId: input.channelRouteId } : {}) };
|
|
148
222
|
await this.bytes(item);
|
|
149
223
|
this.save(item);
|
|
150
224
|
return item;
|
|
@@ -157,7 +231,25 @@ export class AttachmentDeliveryService {
|
|
|
157
231
|
throw new Error('交付附件校验失败,请重新提交原文件');
|
|
158
232
|
return data;
|
|
159
233
|
}
|
|
234
|
+
/** Use the immutable delivery snapshot, never a different companion's workspace path. */
|
|
235
|
+
async outbound(item) {
|
|
236
|
+
await this.bytes(item);
|
|
237
|
+
return { path: join(this.directory(item.companionId), item.id), name: item.name, kind: item.kind, mediaType: item.mediaType };
|
|
238
|
+
}
|
|
160
239
|
async deliver(item, send) {
|
|
240
|
+
return this.serial('storage', async () => {
|
|
241
|
+
const current = this.get(item.id);
|
|
242
|
+
if (!current)
|
|
243
|
+
throw new Error('交付副本已清理,请从原文件重新提交');
|
|
244
|
+
try {
|
|
245
|
+
return await this.deliverSnapshot(current, send);
|
|
246
|
+
}
|
|
247
|
+
finally {
|
|
248
|
+
Object.assign(item, current);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
async deliverSnapshot(item, send) {
|
|
161
253
|
if (item.channel === 'none' || item.channel === 'sent')
|
|
162
254
|
return item;
|
|
163
255
|
await this.bytes(item);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/attachments/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAkC,MAAM,uBAAuB,CAAA;AAO/F,MAAM,gBAAgB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1C,4FAA4F;AAC5F,MAAM,OAAO,yBAAyB;IAKC;IAA+B;IAAmC;IAJ/F,MAAM,GAAG,IAAI,GAAG,EAA4B,CAAA;IAC5C,MAAM,GAAG,KAAK,CAAA;IACd,MAAM,GAAG,IAAI,GAAG,EAAwB,CAAA;IAChD,YAAY,CAAC,EAAS,IAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA,CAAA,CAAC;IAClF,YAAqC,IAAY,EAAmB,EAAgB,EAAmB,WAAoC;QAAtG,SAAI,GAA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IAAI,EAAE,IAAI,EAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;YAC9H,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACxC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;YAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACxC,MAAM,KAAK,CAAA;QACb,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,KAAK,CAAC,MAAM,KAAoB,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA,CAAC,CAAC;IAC9F,KAAK,KAAW,IAAG,IAAI,CAAC,MAAM;QAAC,OAAO,CAAA,IAAI,CAAC,MAAM,GAAC,IAAI,CAAC,CAAA,KAAI,MAAM,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;QAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAA,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAA,CAAC,CAAC;CACzH"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AttachmentDeliveryService } from './service.js';
|
|
2
|
+
/** Startup-only conversion. Copy + verify + commit before removing each old snapshot.
|
|
3
|
+
* Existing IDs and channel retry state are preserved; interrupted copies are resumable.
|
|
4
|
+
* Keep empty legacy databases as migration provenance, never move workspace originals.
|
|
5
|
+
*/
|
|
6
|
+
export declare function openSharedAttachmentStorage(publicRoot: string, privateRoot: (id: string) => string): Promise<AttachmentDeliveryService>;
|
|
7
|
+
//# sourceMappingURL=shared-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-storage.d.ts","sourceRoot":"","sources":["../../src/attachments/shared-storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAExD;;;GAGG;AACH,wBAAsB,2BAA2B,CAAC,UAAU,EAAC,MAAM,EAAE,WAAW,EAAC,CAAC,EAAE,EAAC,MAAM,KAAG,MAAM,GAAE,OAAO,CAAC,yBAAyB,CAAC,CAyBvI"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { AttachmentDeliveryService } from './service.js';
|
|
4
|
+
/** Startup-only conversion. Copy + verify + commit before removing each old snapshot.
|
|
5
|
+
* Existing IDs and channel retry state are preserved; interrupted copies are resumable.
|
|
6
|
+
* Keep empty legacy databases as migration provenance, never move workspace originals.
|
|
7
|
+
*/
|
|
8
|
+
export async function openSharedAttachmentStorage(publicRoot, privateRoot) {
|
|
9
|
+
const target = join(publicRoot, 'attachment-deliveries');
|
|
10
|
+
const existed = existsSync(join(target, 'deliveries.sqlite'));
|
|
11
|
+
const shared = await AttachmentDeliveryService.openGrouped(target);
|
|
12
|
+
const legacyRoot = join(publicRoot, 'indexes', 'attachments');
|
|
13
|
+
if (!existsSync(join(legacyRoot, 'index.sqlite')))
|
|
14
|
+
return shared;
|
|
15
|
+
let legacy;
|
|
16
|
+
try {
|
|
17
|
+
legacy = await AttachmentDeliveryService.openPartitioned(legacyRoot, privateRoot);
|
|
18
|
+
if (!existed)
|
|
19
|
+
shared.setLimitMiB(legacy.limitMiB);
|
|
20
|
+
for (const entry of await legacy.storedEntries()) {
|
|
21
|
+
const { directory: _, ...item } = entry;
|
|
22
|
+
const current = shared.get(item.id);
|
|
23
|
+
if (current) {
|
|
24
|
+
if (current.hash !== item.hash || current.size !== item.size || current.companionId !== item.companionId)
|
|
25
|
+
throw Error('公共附件与旧索引冲突,已保留旧副本');
|
|
26
|
+
await shared.bytes(current);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
await shared.importExisting(item, await legacy.bytes(item));
|
|
30
|
+
await shared.bytes(item);
|
|
31
|
+
}
|
|
32
|
+
await legacy.removeStored(item);
|
|
33
|
+
}
|
|
34
|
+
return shared;
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
shared.close();
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
legacy?.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=shared-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-storage.js","sourceRoot":"","sources":["../../src/attachments/shared-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAExD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,UAAiB,EAAE,WAA+B;IAClG,MAAM,MAAM,GAAC,IAAI,CAAC,UAAU,EAAC,uBAAuB,CAAC,CAAA;IACrD,MAAM,OAAO,GAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAC,mBAAmB,CAAC,CAAC,CAAA;IAC1D,MAAM,MAAM,GAAC,MAAM,yBAAyB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAChE,MAAM,UAAU,GAAC,IAAI,CAAC,UAAU,EAAC,SAAS,EAAC,aAAa,CAAC,CAAA;IACzD,IAAG,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAC,cAAc,CAAC,CAAC;QAAC,OAAO,MAAM,CAAA;IAC7D,IAAI,MAA0C,CAAA;IAC9C,IAAG,CAAC;QACF,MAAM,GAAC,MAAM,yBAAyB,CAAC,eAAe,CAAC,UAAU,EAAC,WAAW,CAAC,CAAA;QAC9E,IAAG,CAAC,OAAO;YAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC/C,KAAI,MAAM,KAAK,IAAI,MAAM,MAAM,CAAC,aAAa,EAAE,EAAC,CAAC;YAC/C,MAAM,EAAC,SAAS,EAAC,CAAC,EAAC,GAAG,IAAI,EAAC,GAAC,KAAK,CAAA;YACjC,MAAM,OAAO,GAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACjC,IAAG,OAAO,EAAC,CAAC;gBACV,IAAG,OAAO,CAAC,IAAI,KAAG,IAAI,CAAC,IAAI,IAAE,OAAO,CAAC,IAAI,KAAG,IAAI,CAAC,IAAI,IAAE,OAAO,CAAC,WAAW,KAAG,IAAI,CAAC,WAAW;oBAAC,MAAM,KAAK,CAAC,mBAAmB,CAAC,CAAA;gBAC9H,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YAC7B,CAAC;iBAAI,CAAC;gBACJ,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;gBAC1D,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YAC1B,CAAC;YACD,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QACjC,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAAA,OAAM,KAAK,EAAC,CAAC;QAAA,MAAM,CAAC,KAAK,EAAE,CAAC;QAAA,MAAM,KAAK,CAAA;IAAA,CAAC;YAClC,CAAC;QAAA,MAAM,EAAE,KAAK,EAAE,CAAA;IAAA,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AttachmentDeliveryService } from './service.js';
|
|
2
|
+
import type { PartnerStore } from '../store.js';
|
|
3
|
+
import type { AttachmentStorageView, AttachmentCleanupResult } from './storage-types.js';
|
|
4
|
+
export declare function attachmentStorageView(service: AttachmentDeliveryService, store: PartnerStore): Promise<AttachmentStorageView>;
|
|
5
|
+
export declare function cleanupAttachments(service: AttachmentDeliveryService, store: PartnerStore, ids: string[]): Promise<AttachmentCleanupResult>;
|
|
6
|
+
//# sourceMappingURL=storage-admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-admin.d.ts","sourceRoot":"","sources":["../../src/attachments/storage-admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAExF,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,yBAAyB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAenI;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAC,yBAAyB,EAAC,KAAK,EAAC,YAAY,EAAC,GAAG,EAAC,MAAM,EAAE,GAAE,OAAO,CAAC,uBAAuB,CAAC,CAW3I"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export async function attachmentStorageView(service, store) {
|
|
2
|
+
const state = store.snapshot(), entries = await service.storedEntries();
|
|
3
|
+
// Includes explicit IDs and historical text-based attachment references.
|
|
4
|
+
const references = JSON.stringify([...state.tasks.filter(t => t.status !== 'done'), ...(state.requirements ?? []).filter(r => !r.archivedAt || !r.notifiedAt)]);
|
|
5
|
+
const owners = [];
|
|
6
|
+
const items = entries.map(item => {
|
|
7
|
+
const name = state.companions.find(c => c.id === item.companionId)?.name ?? item.companionId;
|
|
8
|
+
let owner = owners.find(o => o.id === item.companionId);
|
|
9
|
+
if (!owner) {
|
|
10
|
+
owner = { id: item.companionId, name, bytes: 0, count: 0, directory: item.directory };
|
|
11
|
+
owners.push(owner);
|
|
12
|
+
}
|
|
13
|
+
owner.bytes += item.size;
|
|
14
|
+
owner.count++;
|
|
15
|
+
const protectedReason = store.isCompanionRemoving(item.companionId) ? '伙伴正在删除' : item.channel === 'pending' || item.channel === 'failed' ? '等待发送或重试' : Date.now() - item.createdAt < 300000 ? '刚创建,暂时保护' : references.includes(item.id) ? '任务或需求仍在引用' : undefined;
|
|
16
|
+
return { ...item, companionName: name, ...(protectedReason ? { protectedReason } : {}) };
|
|
17
|
+
}).sort((a, b) => b.createdAt - a.createdAt);
|
|
18
|
+
const eligible = items.filter(i => !i.protectedReason);
|
|
19
|
+
return { limitMiB: service.limitMiB, usedBytes: items.reduce((n, i) => n + i.size, 0), count: items.length, eligibleBytes: eligible.reduce((n, i) => n + i.size, 0), eligibleCount: eligible.length, filteredCount: items.length, items, owners };
|
|
20
|
+
}
|
|
21
|
+
export async function cleanupAttachments(service, store, ids) {
|
|
22
|
+
return service.serial('storage', async () => {
|
|
23
|
+
const result = { removed: 0, freedBytes: 0, skipped: 0, failed: 0 };
|
|
24
|
+
for (const id of new Set(ids)) {
|
|
25
|
+
// Recheck references for each deletion, including changes during filesystem I/O.
|
|
26
|
+
const item = (await attachmentStorageView(service, store)).items.find(i => i.id === id);
|
|
27
|
+
if (!item || item.protectedReason) {
|
|
28
|
+
result.skipped++;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
await service.removeStored(service.get(id));
|
|
33
|
+
result.removed++;
|
|
34
|
+
result.freedBytes += item.size;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
result.failed++;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=storage-admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-admin.js","sourceRoot":"","sources":["../../src/attachments/storage-admin.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAAkC,EAAE,K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dAt: number;
|
|
8
|
+
channel: 'pending' | 'sent' | 'failed' | 'none';
|
|
9
|
+
protectedReason?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AttachmentStorageView {
|
|
12
|
+
limitMiB: number;
|
|
13
|
+
usedBytes: number;
|
|
14
|
+
count: number;
|
|
15
|
+
eligibleBytes: number;
|
|
16
|
+
eligibleCount: number;
|
|
17
|
+
filteredCount: number;
|
|
18
|
+
items: AttachmentStorageItem[];
|
|
19
|
+
owners: Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
bytes: number;
|
|
23
|
+
count: number;
|
|
24
|
+
directory: string;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
export interface AttachmentCleanupResult {
|
|
28
|
+
removed: number;
|
|
29
|
+
freedBytes: number;
|
|
30
|
+
skipped: number;
|
|
31
|
+
failed: number;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=storage-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-types.d.ts","sourceRoot":"","sources":["../../src/attachments/storage-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,qBAAqB,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7F;AACD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-types.js","sourceRoot":"","sources":["../../src/attachments/storage-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/attachments/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,mBAAmB,k9CAAsT,CAAA;AAEtV,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/attachments/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,mBAAmB,k9CAAsT,CAAA;AAEtV,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAsDnL"}
|
package/lib/attachments/tool.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createUserMessage } from '@deepseek-ai/dsh-llm';
|
|
2
2
|
import { isInternalTaskNotice } from '../channels/delivery-policy.js';
|
|
3
|
-
import {
|
|
3
|
+
import { continuationChannelOrigin } from '../scheduler/channel-origin.js';
|
|
4
4
|
export const ATTACHMENT_PROTOCOL = '交付图片或文档时,如果当前提供 partner_send_attachment,必须调用它,path 填生成工具返回的真实本地文件路径。普通 Markdown 链接仅是引用,不代表发送成功。工具会把指定文件显示在会话中,并在当前会话绑定渠道时发送真实附件;必须以工具返回的 channel 状态为准。失败用 deliveryId 重试原附件,无需重新生成。远端文件先下载到当前会话目录,不要编造 sandbox 地址。不要提交中间产物、内部核验材料或用户未要求交付的文件。工具完成后最终回复只简述结论,不要再次粘贴附件下载地址。若临时执行环境未提供此工具,只向负责人交回真实文件位置和结果,不得声称附件已发送。';
|
|
5
5
|
export function attachmentTool(companionId, store, service, ctx, channels, prefix) {
|
|
6
6
|
return {
|
|
@@ -23,15 +23,26 @@ export function attachmentTool(companionId, store, service, ctx, channels, prefi
|
|
|
23
23
|
throw new Error('当前会话不属于有效伙伴,不能交付附件');
|
|
24
24
|
const events = agent.session.snapshotEvents();
|
|
25
25
|
const origin = [...events].reverse().find(e => e.type === 'user/message' && (e.data.source.kind === 'user' || isInternalTaskNotice(e)));
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const channel = !!source && !internal;
|
|
26
|
+
const source = continuationChannelOrigin(state, companionId, sessionId, events);
|
|
27
|
+
const channel = !!source;
|
|
29
28
|
const cwd = route.cwd ?? agent.session.header.cwd;
|
|
30
29
|
if (!cwd)
|
|
31
30
|
throw new Error('当前会话缺少工作目录');
|
|
32
31
|
let item = typeof input.deliveryId === 'string' ? service.get(input.deliveryId) : await service.serial('prepare', () => service.prepare({ companionId, sessionId, turn: origin?.seq ?? agent.session.seq, cwd, path: input.path, channel, ...(source ? { channelRouteId: source.id } : {}) }, exec.signal));
|
|
33
32
|
if (!item || item.companionId !== companionId || item.sessionId !== sessionId)
|
|
34
33
|
throw new Error('附件交付不存在或不属于当前伙伴会话');
|
|
34
|
+
// Only the live task executor may register deliverables, never a reviewer.
|
|
35
|
+
if (origin && isInternalTaskNotice(origin) && state.delegations?.some(d => d.status === 'running' && (d.kind ?? 'task') === 'task' && d.toCompanionId === companionId && d.executionSessionId === sessionId)) {
|
|
36
|
+
await store.update(state => {
|
|
37
|
+
const runs = state.delegations.filter(d => d.status === 'running' && (d.kind ?? 'task') === 'task' && d.toCompanionId === companionId && d.executionSessionId === sessionId);
|
|
38
|
+
if (runs.length !== 1)
|
|
39
|
+
return;
|
|
40
|
+
const task = state.tasks.find(t => t.id === runs[0].taskId && t.assigneeCompanionId === companionId && t.status === 'doing');
|
|
41
|
+
if (!task)
|
|
42
|
+
return;
|
|
43
|
+
task.resultAttachmentIds = [...new Set([...(task.resultAttachmentIds ?? []), item.id])];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
35
46
|
if (!channel && item.channel !== 'none')
|
|
36
47
|
throw new Error('当前执行不能向原渠道重发附件,请回到直接对话重试');
|
|
37
48
|
if (channel && item.channel === 'none' && typeof input.deliveryId === 'string')
|
|
@@ -54,7 +65,7 @@ export function attachmentTool(companionId, store, service, ctx, channels, prefi
|
|
|
54
65
|
}
|
|
55
66
|
const status = item.channel === 'sent' ? '渠道附件已发送' : item.channel === 'none' ? '仅交付到当前会话' : `渠道发送未完成,请用 deliveryId 重试:${item.id}`;
|
|
56
67
|
content.push({ type: 'text', text: status });
|
|
57
|
-
exec.deferContext(createUserMessage({ source: { kind: 'plugin', plugin: '@lemoncat7/dsh-partner', form: 'notice', summary: '伙伴附件交付' }, content }));
|
|
68
|
+
exec.deferContext(createUserMessage({ source: { kind: 'plugin:@lemoncat7/dsh-partner', plugin: '@lemoncat7/dsh-partner', form: 'notice', summary: '伙伴附件交付' }, content }));
|
|
58
69
|
return JSON.stringify({ deliveryId: item.id, name: item.name, conversation: 'attachment_recorded', channel: item.channel, ...(error ? { error, retry: { deliveryId: item.id } } : {}) });
|
|
59
70
|
});
|
|
60
71
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../src/attachments/tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,sBAAsB,CAAA;AAI3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../src/attachments/tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,sBAAsB,CAAA;AAI3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAG1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,mTAAmT,CAAA;AAEtV,MAAM,UAAU,cAAc,CAAC,WAAmB,EAAE,KAAmB,EAAE,OAAkC,EAAE,GAAY,EAAE,QAAwB,EAAE,MAAc;IACjK,OAAO;QACL,IAAI,EAAE,yBA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AAC,CAAC,CAAC,CAAA;gBAC5J,OAAO,IAAI,CAAC,SAAS,CAAC,EAAC,UAAU,EAAC,IAAI,CAAC,EAAE,EAAC,IAAI,EAAC,IAAI,CAAC,IAAI,EAAC,YAAY,EAAC,qBAAqB,EAAC,OAAO,EAAC,IAAI,CAAC,OAAO,EAAC,GAAG,CAAC,KAAK,CAAA,CAAC,CAAA,EAAC,KAAK,EAAC,KAAK,EAAC,EAAC,UAAU,EAAC,IAAI,CAAC,EAAE,EAAC,EAAC,CAAA,CAAC,CAAA,EAAE,CAAC,EAAC,CAAC,CAAA;YACrK,CAAC,CAAC,CAAA;QACJ,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-policy.d.ts","sourceRoot":"","sources":["../../src/channels/delivery-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"delivery-policy.d.ts","sourceRoot":"","sources":["../../src/channels/delivery-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAS5D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAIjE;AAED,gFAAgF;AAChF,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,EAAE,OAAO,GAAE,SAAS,YAAY,EAAW,GAAG,OAAO,CAY5H;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,8EAA8E;IAC9E,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB;AAED,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,iBAAiB,CA+B9H;AAED,6FAA6F;AAC7F,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9F"}
|