@sushanglewis/lincoln 1.5.0 → 1.5.2
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/dist/main.d.ts +3 -0
- package/dist/main.js +1286 -916
- package/dist/main.js.map +1 -1
- package/dist/postinstall.d.ts +3 -0
- package/dist/postinstall.js +18 -0
- package/dist/postinstall.js.map +1 -0
- package/framework/.claude/agents/_contract.md +79 -0
- package/framework/.claude/agents/architect.md +31 -0
- package/framework/.claude/agents/default.md +151 -0
- package/framework/.claude/agents/designer.md +33 -0
- package/framework/.claude/agents/engineer.md +42 -0
- package/framework/.claude/agents/external/NOTICES.md +12 -0
- package/framework/.claude/agents/external/everything-claude-code.manifest.yaml +23 -0
- package/framework/.claude/agents/external/oh-my-claudecode.manifest.yaml +26 -0
- package/framework/.claude/agents/external/wshobson-agents.manifest.yaml +23 -0
- package/framework/.claude/agents/frontend-engineer.md +32 -0
- package/framework/.claude/agents/knowledge-curator.md +28 -0
- package/framework/.claude/agents/pm.md +38 -0
- package/framework/.claude/agents/qa.md +28 -0
- package/framework/.claude/agents/release-coordinator.md +25 -0
- package/framework/.claude/agents/researcher.md +41 -0
- package/framework/.claude/harnesses/claude-code.yaml +15 -0
- package/framework/.claude/harnesses/codex.yaml +40 -0
- package/framework/.claude/harnesses/command-map.yaml +255 -0
- package/framework/.claude/harnesses/opencode.yaml +32 -0
- package/framework/.claude/harnesses/scenarios.yaml +45 -0
- package/framework/.claude/hooks/on-pr-event.sh +69 -0
- package/framework/.claude/hooks/on-session-start.sh +427 -0
- package/framework/.claude/hooks/on-stop.sh +104 -0
- package/framework/.claude/hooks/post-tool-use.sh +161 -0
- package/framework/.claude/hooks/pre-tool-use.sh +246 -0
- package/framework/.claude/schemas/agent-definition.schema.json +35 -0
- package/framework/.claude/schemas/benchmark-report.schema.json +148 -0
- package/framework/.claude/schemas/pm-to-ux-handoff.schema.yaml +128 -0
- package/framework/.claude/schemas/stage-definition.schema.json +233 -0
- package/framework/.claude/schemas/workflow-stage.schema.json +86 -0
- package/framework/.claude/schemas/workflow-template.schema.json +88 -0
- package/framework/.claude/settings.json +14 -0
- package/framework/.claude/skills/build-product-prototype/SKILL.md +35 -0
- package/framework/.claude/skills/build-product-prototype/prompts/main.md +78 -0
- package/framework/.claude/skills/clarify-requirements/SKILL.md +32 -0
- package/framework/.claude/skills/clarify-requirements/prompts/main.md +81 -0
- package/framework/.claude/skills/dependencies.yaml +139 -0
- package/framework/.claude/skills/draft-product-design/SKILL.md +40 -0
- package/framework/.claude/skills/draft-product-design/prompts/main.md +47 -0
- package/framework/.claude/skills/lc-analyze-frameworks/SKILL.md +43 -0
- package/framework/.claude/skills/lc-analyze-frameworks/prompts/main.md +95 -0
- package/framework/.claude/skills/lc-benchmark/SKILL.md +61 -0
- package/framework/.claude/skills/lc-build-codebase-knowledge/SKILL.md +38 -0
- package/framework/.claude/skills/lc-build-codebase-knowledge/prompts/build-codebase-knowledge.md +61 -0
- package/framework/.claude/skills/lc-collect-intelligence/SKILL.md +43 -0
- package/framework/.claude/skills/lc-collect-intelligence/prompts/main.md +72 -0
- package/framework/.claude/skills/lc-competitive-analysis/SKILL.md +43 -0
- package/framework/.claude/skills/lc-competitive-analysis/prompts/main.md +70 -0
- package/framework/.claude/skills/lc-explore-opensource/SKILL.md +36 -0
- package/framework/.claude/skills/lc-explore-opensource/prompts/explore-opensource.md +77 -0
- package/framework/.claude/skills/lc-first-principles/SKILL.md +43 -0
- package/framework/.claude/skills/lc-first-principles/prompts/main.md +73 -0
- package/framework/.claude/skills/lc-handoff/SKILL.md +34 -0
- package/framework/.claude/skills/lc-init-branch/SKILL.md +52 -0
- package/framework/.claude/skills/lc-market-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-market-research/prompts/main.md +79 -0
- package/framework/.claude/skills/lc-product-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-product-research/prompts/main.md +80 -0
- package/framework/.claude/skills/lc-research-report/SKILL.md +43 -0
- package/framework/.claude/skills/lc-research-report/prompts/main.md +90 -0
- package/framework/.claude/skills/lc-research-scope/SKILL.md +43 -0
- package/framework/.claude/skills/lc-research-scope/prompts/main.md +82 -0
- package/framework/.claude/skills/lc-setup/SKILL.md +68 -0
- package/framework/.claude/skills/lc-setup/prompts/main.md +88 -0
- package/framework/.claude/skills/lc-stage/SKILL.md +45 -0
- package/framework/.claude/skills/lc-stakeholder-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-stakeholder-research/prompts/main.md +65 -0
- package/framework/.claude/skills/lc-status/SKILL.md +25 -0
- package/framework/.claude/skills/lc-storytelling/SKILL.md +43 -0
- package/framework/.claude/skills/lc-storytelling/prompts/main.md +77 -0
- package/framework/.claude/skills/lc-wf/SKILL.md +54 -0
- package/framework/.claude/skills/lc-workflow/SKILL.md +48 -0
- package/framework/.claude/skills/lc-workflow/validators/validate.py +755 -0
- package/framework/.claude/skills/lc-workflow-router/SKILL.md +41 -0
- package/framework/.claude/skills/lc-workflow-router/prompts/intake-prompt.md +91 -0
- package/framework/.claude/skills/lc-workflow-router/prompts/router-prompt.md +44 -0
- package/framework/.claude/skills/plan-tdd-development/SKILL.md +31 -0
- package/framework/.claude/skills/plan-tdd-development/prompts/main.md +44 -0
- package/framework/.claude/skills/process-interview/SKILL.md +32 -0
- package/framework/.claude/skills/process-interview/prompts/main.md +47 -0
- package/framework/.claude/skills/propose-with-openspec/SKILL.md +37 -0
- package/framework/.claude/skills/propose-with-openspec/prompts/main.md +53 -0
- package/framework/.claude/skills/split-to-github/SKILL.md +32 -0
- package/framework/.claude/skills/split-to-github/prompts/main.md +42 -0
- package/framework/.claude/skills/sync-to-knowledge/SKILL.md +35 -0
- package/framework/.claude/skills/sync-to-knowledge/prompts/main.md +54 -0
- package/framework/.claude/skills/workflow-continue/SKILL.md +24 -0
- package/framework/.claude/skills/workflow-continue/prompts/main.md +25 -0
- package/framework/.claude/stages/build-codebase-knowledge.yaml +42 -0
- package/framework/.claude/stages/clarify.yaml +59 -0
- package/framework/.claude/stages/explore-opensource.yaml +40 -0
- package/framework/.claude/stages/implement.yaml +60 -0
- package/framework/.claude/stages/ingest.yaml +40 -0
- package/framework/.claude/stages/lc-analyze-frameworks.yaml +37 -0
- package/framework/.claude/stages/lc-collect-intelligence.yaml +37 -0
- package/framework/.claude/stages/lc-competitive-analysis.yaml +37 -0
- package/framework/.claude/stages/lc-first-principles.yaml +37 -0
- package/framework/.claude/stages/lc-market-research.yaml +37 -0
- package/framework/.claude/stages/lc-product-research.yaml +37 -0
- package/framework/.claude/stages/lc-research-report.yaml +38 -0
- package/framework/.claude/stages/lc-research-scope.yaml +38 -0
- package/framework/.claude/stages/lc-stakeholder-research.yaml +37 -0
- package/framework/.claude/stages/lc-storytelling.yaml +37 -0
- package/framework/.claude/stages/product-design-docs.yaml +66 -0
- package/framework/.claude/stages/product-prototype.yaml +53 -0
- package/framework/.claude/stages/propose.yaml +45 -0
- package/framework/.claude/stages/split.yaml +41 -0
- package/framework/.claude/stages/sync-knowledge.yaml +49 -0
- package/framework/.claude/stages/tdd-development-plan.yaml +43 -0
- package/framework/.claude/stages/workflow-router.yaml +45 -0
- package/framework/.claude/templates/solo-workflow-context.yaml +23 -0
- package/framework/.claude/workflows/README.md +93 -0
- package/framework/.claude/workflows/bug-fix.yaml +81 -0
- package/framework/.claude/workflows/design-spike.yaml +55 -0
- package/framework/.claude/workflows/existing-project-iteration.yaml +106 -0
- package/framework/.claude/workflows/interview-to-knowledge.yaml +189 -0
- package/framework/.claude/workflows/oss-first-design.yaml +100 -0
- package/framework/.claude/workflows/pm-research.yaml +115 -0
- package/framework/.claude-plugin/hooks.json +6 -0
- package/framework/.claude-plugin/marketplace.json +32 -0
- package/framework/.claude-plugin/plugin.json +57 -0
- package/framework/.version-bump.json +43 -0
- package/framework/CLAUDE.md +140 -0
- package/framework/CONTRIBUTING.md +219 -0
- package/framework/LICENSE +21 -0
- package/framework/README.en.md +139 -0
- package/framework/README.md +139 -0
- package/framework/RELEASE.md +334 -0
- package/framework/SKILL.md +24 -0
- package/framework/USAGE.md +356 -0
- package/framework/manifest.json +1214 -0
- package/framework/requirements.txt +4 -0
- package/framework/scripts/__init__.py +0 -0
- package/framework/scripts/build_codebase_knowledge.py +76 -0
- package/framework/scripts/bump_version.py +181 -0
- package/framework/scripts/check-dependency-drift.py +69 -0
- package/framework/scripts/check-harness-drift.sh +57 -0
- package/framework/scripts/check-main-merge-hygiene.py +128 -0
- package/framework/scripts/check-skill-dependencies.sh +124 -0
- package/framework/scripts/init-lincoln-branch.sh +300 -0
- package/framework/scripts/init-project.sh +184 -0
- package/framework/scripts/lc-benchmark-cli.py +66 -0
- package/framework/scripts/lincoln-audit.py +288 -0
- package/framework/scripts/lincoln-setup.py +651 -0
- package/framework/scripts/lincoln-status.py +448 -0
- package/framework/scripts/lincoln_benchmark.py +224 -0
- package/framework/scripts/lincoln_benchmark_eval.py +104 -0
- package/framework/scripts/lincoln_benchmark_metrics.py +818 -0
- package/framework/scripts/lincoln_benchmark_report.py +141 -0
- package/framework/scripts/lincoln_command_map.py +289 -0
- package/framework/scripts/lincoln_dependency_manager.py +335 -0
- package/framework/scripts/lincoln_documents.py +175 -0
- package/framework/scripts/lincoln_harness_adapter.py +319 -0
- package/framework/scripts/lincoln_index.py +255 -0
- package/framework/scripts/lincoln_paths.py +198 -0
- package/framework/scripts/lincoln_prd.py +227 -0
- package/framework/scripts/lincoln_role.py +46 -0
- package/framework/scripts/lincoln_scenario.py +59 -0
- package/framework/scripts/lincoln_session_start_metrics.py +71 -0
- package/framework/scripts/lincoln_skill_prompt.py +48 -0
- package/framework/scripts/lincoln_trace.py +335 -0
- package/framework/scripts/lincoln_workflow.py +199 -0
- package/framework/scripts/list-active-lincoln-branches.sh +87 -0
- package/framework/scripts/package-lincoln-plugin.py +340 -0
- package/framework/scripts/run-infrastructure-tests.py +84 -0
- package/framework/scripts/stage_loader.py +1071 -0
- package/framework/scripts/static-check.sh +356 -0
- package/framework/scripts/sync-external-agents.sh +210 -0
- package/framework/scripts/sync-framework-package.mjs +218 -0
- package/framework/scripts/task_tool_guard.py +213 -0
- package/framework/scripts/track-artifacts.py +140 -0
- package/framework/scripts/validate_stage.py +350 -0
- package/{README.md → framework/tools/lincoln/README.md} +4 -4
- package/framework/tools/lincoln/package-lock.json +3349 -0
- package/framework/tools/lincoln/package.json +48 -0
- package/framework/tools/lincoln/src/cli.tsx +60 -0
- package/framework/tools/lincoln/src/components/AudioMeter.tsx +34 -0
- package/framework/tools/lincoln/src/components/CancelledScreen.tsx +11 -0
- package/framework/tools/lincoln/src/components/DevicesMenu.tsx +79 -0
- package/framework/tools/lincoln/src/components/HintBar.tsx +25 -0
- package/framework/tools/lincoln/src/components/LogView.tsx +36 -0
- package/framework/tools/lincoln/src/components/ModelMenu.tsx +122 -0
- package/framework/tools/lincoln/src/components/ReadyScreen.tsx +54 -0
- package/framework/tools/lincoln/src/components/RecordingApp.tsx +211 -0
- package/framework/tools/lincoln/src/components/RecordingScreen.tsx +41 -0
- package/framework/tools/lincoln/src/components/SelectMenu.tsx +53 -0
- package/framework/tools/lincoln/src/components/StatusPanel.tsx +52 -0
- package/framework/tools/lincoln/src/components/StopConfirmation.tsx +32 -0
- package/framework/tools/lincoln/src/config/args.ts +35 -0
- package/framework/tools/lincoln/src/config/loadConfig.ts +81 -0
- package/framework/tools/lincoln/src/config/resolveConfig.ts +85 -0
- package/framework/tools/lincoln/src/devices/listDevices.ts +11 -0
- package/framework/tools/lincoln/src/devices/parseDevices.ts +25 -0
- package/framework/tools/lincoln/src/hooks/useKeyHandler.ts +63 -0
- package/framework/tools/lincoln/src/main.tsx +4 -0
- package/framework/tools/lincoln/src/models/models.ts +34 -0
- package/framework/tools/lincoln/src/models/runWarmup.ts +46 -0
- package/framework/tools/lincoln/src/models/warmupProgress.ts +30 -0
- package/framework/tools/lincoln/src/recording/spawnRecorder.ts +127 -0
- package/framework/tools/lincoln/src/recording/useRecorder.ts +146 -0
- package/framework/tools/lincoln/src/utils/amplitudeToMeter.ts +4 -0
- package/framework/tools/lincoln/src/utils/formatDuration.ts +6 -0
- package/framework/tools/lincoln/src/utils/sessionId.ts +25 -0
- package/framework/tools/lincoln/tests/cli.test.tsx +52 -0
- package/framework/tools/lincoln/tests/components/AudioMeter.test.tsx +31 -0
- package/framework/tools/lincoln/tests/components/CancelledScreen.test.tsx +12 -0
- package/framework/tools/lincoln/tests/components/ReadyScreen.test.tsx +68 -0
- package/framework/tools/lincoln/tests/components/RecordingApp.menus.test.tsx +158 -0
- package/framework/tools/lincoln/tests/components/RecordingApp.test.tsx +248 -0
- package/framework/tools/lincoln/tests/components/RecordingScreen.test.tsx +37 -0
- package/framework/tools/lincoln/tests/components/SelectMenu.test.tsx +59 -0
- package/framework/tools/lincoln/tests/components/StopConfirmation.test.tsx +38 -0
- package/framework/tools/lincoln/tests/config/args.test.ts +49 -0
- package/framework/tools/lincoln/tests/config/loadConfig.test.ts +59 -0
- package/framework/tools/lincoln/tests/config/resolveConfig.test.ts +72 -0
- package/framework/tools/lincoln/tests/devices/parseDevices.test.ts +21 -0
- package/framework/tools/lincoln/tests/hooks/useKeyHandler.enabled.test.tsx +44 -0
- package/framework/tools/lincoln/tests/hooks/useKeyHandler.test.tsx +130 -0
- package/framework/tools/lincoln/tests/models/models.test.ts +27 -0
- package/framework/tools/lincoln/tests/models/warmupProgress.test.ts +25 -0
- package/framework/tools/lincoln/tests/recording/spawnRecorder.test.ts +85 -0
- package/framework/tools/lincoln/tests/recording/useRecorder.test.tsx +172 -0
- package/framework/tools/lincoln/tests/utils/amplitudeToMeter.test.ts +22 -0
- package/framework/tools/lincoln/tests/utils/formatDuration.test.ts +11 -0
- package/framework/tools/lincoln/tests/utils/sessionId.test.ts +30 -0
- package/framework/tools/lincoln/tsconfig.json +22 -0
- package/framework/tools/lincoln/tsconfig.tests.json +10 -0
- package/framework/tools/lincoln/tsup.config.ts +17 -0
- package/framework/tools/lincoln/vitest.config.ts +20 -0
- package/framework/tools/lincoln-installer/package-lock.json +3611 -0
- package/framework/tools/lincoln-installer/package.json +53 -0
- package/framework/tools/lincoln-installer/src/cli.tsx +63 -0
- package/framework/tools/lincoln-installer/src/components/HarnessSelectScreen.tsx +43 -0
- package/framework/tools/lincoln-installer/src/components/InstallerApp.tsx +98 -0
- package/framework/tools/lincoln-installer/src/components/OptionsScreen.tsx +56 -0
- package/framework/tools/lincoln-installer/src/components/ProgressScreen.tsx +25 -0
- package/framework/tools/lincoln-installer/src/components/ResultScreen.tsx +40 -0
- package/framework/tools/lincoln-installer/src/components/SelectMenu.tsx +73 -0
- package/framework/tools/lincoln-installer/src/components/SummaryScreen.tsx +49 -0
- package/framework/tools/lincoln-installer/src/components/UpdateApp.tsx +135 -0
- package/framework/tools/lincoln-installer/src/components/WelcomeScreen.tsx +22 -0
- package/framework/tools/lincoln-installer/src/config/args.ts +76 -0
- package/framework/tools/lincoln-installer/src/config/resolveConfig.ts +33 -0
- package/framework/tools/lincoln-installer/src/config/updateArgs.ts +67 -0
- package/framework/tools/lincoln-installer/src/hooks/useSetup.ts +149 -0
- package/framework/tools/lincoln-installer/src/main.tsx +11 -0
- package/framework/tools/lincoln-installer/src/types.ts +19 -0
- package/framework/tools/lincoln-installer/src/update-main.tsx +11 -0
- package/framework/tools/lincoln-installer/src/update.tsx +90 -0
- package/framework/tools/lincoln-installer/src/utils/detectHarness.ts +51 -0
- package/framework/tools/lincoln-installer/src/utils/runSetup.ts +62 -0
- package/framework/tools/lincoln-installer/src/utils/updateRelease.ts +454 -0
- package/framework/tools/lincoln-installer/tests/components/InstallerApp.test.tsx +88 -0
- package/framework/tools/lincoln-installer/tests/components/SelectMenu.test.tsx +26 -0
- package/framework/tools/lincoln-installer/tests/components/UpdateApp.test.tsx +170 -0
- package/framework/tools/lincoln-installer/tests/components/screens.test.tsx +310 -0
- package/framework/tools/lincoln-installer/tests/config/args.test.ts +66 -0
- package/framework/tools/lincoln-installer/tests/config/resolveConfig.test.ts +75 -0
- package/framework/tools/lincoln-installer/tests/config/updateArgs.test.ts +52 -0
- package/framework/tools/lincoln-installer/tests/hooks/useSetup.test.tsx +213 -0
- package/framework/tools/lincoln-installer/tests/update.test.tsx +108 -0
- package/framework/tools/lincoln-installer/tests/utils/detectHarness.test.ts +40 -0
- package/framework/tools/lincoln-installer/tests/utils/runSetup.test.ts +45 -0
- package/framework/tools/lincoln-installer/tests/utils/updateRelease.test.ts +559 -0
- package/framework/tools/lincoln-installer/tsconfig.json +22 -0
- package/framework/tools/lincoln-installer/tsconfig.tests.json +8 -0
- package/framework/tools/lincoln-installer/tsup.config.ts +17 -0
- package/framework/tools/lincoln-installer/vitest.config.ts +20 -0
- package/framework/tools/lincoln-record/Cargo.lock +1896 -0
- package/framework/tools/lincoln-record/Cargo.toml +24 -0
- package/framework/tools/lincoln-record/diarize/diarize.py +117 -0
- package/framework/tools/lincoln-record/diarize/merge.py +55 -0
- package/framework/tools/lincoln-record/src/audio/capture/microphone.rs +194 -0
- package/framework/tools/lincoln-record/src/audio/capture/mod.rs +1 -0
- package/framework/tools/lincoln-record/src/audio/devices.rs +20 -0
- package/framework/tools/lincoln-record/src/audio/mod.rs +5 -0
- package/framework/tools/lincoln-record/src/audio/resampler.rs +44 -0
- package/framework/tools/lincoln-record/src/audio/saver.rs +87 -0
- package/framework/tools/lincoln-record/src/audio/source.rs +104 -0
- package/framework/tools/lincoln-record/src/cli.rs +96 -0
- package/framework/tools/lincoln-record/src/config.rs +135 -0
- package/framework/tools/lincoln-record/src/lib.rs +6 -0
- package/framework/tools/lincoln-record/src/main.rs +242 -0
- package/framework/tools/lincoln-record/src/model/mod.rs +248 -0
- package/framework/tools/lincoln-record/src/output/metadata.rs +30 -0
- package/framework/tools/lincoln-record/src/output/mod.rs +2 -0
- package/framework/tools/lincoln-record/src/output/transcript.rs +42 -0
- package/framework/tools/lincoln-record/src/transcription/diarization.rs +64 -0
- package/framework/tools/lincoln-record/src/transcription/mod.rs +3 -0
- package/framework/tools/lincoln-record/src/transcription/provider.rs +43 -0
- package/framework/tools/lincoln-record/src/transcription/whisper.rs +176 -0
- package/framework/tools/lincoln-record/tests/cli_args.rs +103 -0
- package/framework/tools/lincoln-record/tests/config_test.rs +70 -0
- package/framework/tools/lincoln-record/tests/devices_test.rs +23 -0
- package/framework/tools/lincoln-record/tests/diarization_tests.rs +101 -0
- package/framework/tools/lincoln-record/tests/integration_tests.rs +44 -0
- package/framework/tools/lincoln-record/tests/model_test.rs +68 -0
- package/framework/tools/lincoln-record/tests/transcription_tests.rs +73 -0
- package/package.json +19 -13
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
use std::path::PathBuf;
|
|
2
|
+
|
|
3
|
+
use clap::Parser;
|
|
4
|
+
use lincoln_record::cli::Cli;
|
|
5
|
+
|
|
6
|
+
#[test]
|
|
7
|
+
fn test_cli_parses_record_command() {
|
|
8
|
+
let cli = Cli::try_parse_from([
|
|
9
|
+
"lincoln-record",
|
|
10
|
+
"record",
|
|
11
|
+
"--session-id",
|
|
12
|
+
"2026-07-09-recording-replacement",
|
|
13
|
+
"--mic",
|
|
14
|
+
"MacBook Pro Microphone",
|
|
15
|
+
"--system-auto",
|
|
16
|
+
"--engine",
|
|
17
|
+
"whisper",
|
|
18
|
+
"--model",
|
|
19
|
+
"large-v3-turbo",
|
|
20
|
+
"--diarize",
|
|
21
|
+
"--output",
|
|
22
|
+
"/tmp/interviews",
|
|
23
|
+
"--language",
|
|
24
|
+
"zh",
|
|
25
|
+
])
|
|
26
|
+
.expect("record args should parse");
|
|
27
|
+
|
|
28
|
+
match cli {
|
|
29
|
+
Cli::Record(args) => {
|
|
30
|
+
assert_eq!(args.session_id, "2026-07-09-recording-replacement");
|
|
31
|
+
assert_eq!(args.mic, Some("MacBook Pro Microphone".to_string()));
|
|
32
|
+
assert!(args.system_auto);
|
|
33
|
+
assert_eq!(args.engine, "whisper");
|
|
34
|
+
assert_eq!(args.model, Some("large-v3-turbo".to_string()));
|
|
35
|
+
assert!(args.diarize);
|
|
36
|
+
assert_eq!(args.output, Some(PathBuf::from("/tmp/interviews")));
|
|
37
|
+
assert_eq!(args.language, Some("zh".to_string()));
|
|
38
|
+
}
|
|
39
|
+
other => panic!("expected Record command, got {:?}", other),
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#[test]
|
|
44
|
+
fn test_cli_parses_transcribe_command() {
|
|
45
|
+
let cli = Cli::try_parse_from([
|
|
46
|
+
"lincoln-record",
|
|
47
|
+
"transcribe",
|
|
48
|
+
"/tmp/sample.wav",
|
|
49
|
+
"--session-id",
|
|
50
|
+
"test-session",
|
|
51
|
+
"--diarize",
|
|
52
|
+
])
|
|
53
|
+
.expect("transcribe args should parse");
|
|
54
|
+
|
|
55
|
+
match cli {
|
|
56
|
+
Cli::Transcribe(args) => {
|
|
57
|
+
assert_eq!(args.path, PathBuf::from("/tmp/sample.wav"));
|
|
58
|
+
assert_eq!(args.session_id, Some("test-session".to_string()));
|
|
59
|
+
assert!(args.diarize);
|
|
60
|
+
assert!(!args.engine.is_empty());
|
|
61
|
+
}
|
|
62
|
+
other => panic!("expected Transcribe command, got {:?}", other),
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#[test]
|
|
67
|
+
fn test_cli_parses_devices_command() {
|
|
68
|
+
let cli = Cli::try_parse_from(["lincoln-record", "devices"]).expect("devices should parse");
|
|
69
|
+
assert!(matches!(cli, Cli::Devices));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#[test]
|
|
73
|
+
fn test_cli_parses_warmup_command() {
|
|
74
|
+
let cli = Cli::try_parse_from([
|
|
75
|
+
"lincoln-record",
|
|
76
|
+
"warmup",
|
|
77
|
+
"--model",
|
|
78
|
+
"base",
|
|
79
|
+
"--engine",
|
|
80
|
+
"whisper",
|
|
81
|
+
"--cache-dir",
|
|
82
|
+
"/tmp/cache",
|
|
83
|
+
])
|
|
84
|
+
.expect("warmup args should parse");
|
|
85
|
+
|
|
86
|
+
match cli {
|
|
87
|
+
Cli::Warmup(args) => {
|
|
88
|
+
assert_eq!(args.model, Some("base".to_string()));
|
|
89
|
+
assert_eq!(args.engine, Some("whisper".to_string()));
|
|
90
|
+
assert_eq!(args.cache_dir, Some(PathBuf::from("/tmp/cache")));
|
|
91
|
+
}
|
|
92
|
+
other => panic!("expected Warmup command, got {:?}", other),
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#[test]
|
|
97
|
+
fn test_cli_record_requires_session_id() {
|
|
98
|
+
let result = Cli::try_parse_from(["lincoln-record", "record"]);
|
|
99
|
+
assert!(
|
|
100
|
+
result.is_err(),
|
|
101
|
+
"record command should require --session-id"
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
use lincoln_record::config::Config;
|
|
2
|
+
use std::io::Write;
|
|
3
|
+
|
|
4
|
+
#[test]
|
|
5
|
+
fn test_config_defaults() {
|
|
6
|
+
let config = Config::default();
|
|
7
|
+
assert_eq!(config.audio.sample_rate, 48000);
|
|
8
|
+
assert_eq!(config.audio.channels, 2);
|
|
9
|
+
assert_eq!(config.transcription.engine, "whisper");
|
|
10
|
+
assert_eq!(config.transcription.model, "large-v3");
|
|
11
|
+
assert_eq!(config.transcription.language, "auto");
|
|
12
|
+
assert!(!config.diarization.enabled);
|
|
13
|
+
assert_eq!(config.diarization.hf_token, "");
|
|
14
|
+
assert_eq!(config.output.format, "markdown");
|
|
15
|
+
assert!(config.output.keep_recording);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#[test]
|
|
19
|
+
fn test_config_loads_from_toml_file() {
|
|
20
|
+
let mut tmp = tempfile::NamedTempFile::new().expect("temp file");
|
|
21
|
+
write!(
|
|
22
|
+
tmp,
|
|
23
|
+
r#"
|
|
24
|
+
[audio]
|
|
25
|
+
sample_rate = 16000
|
|
26
|
+
channels = 1
|
|
27
|
+
|
|
28
|
+
[transcription]
|
|
29
|
+
engine = "parakeet"
|
|
30
|
+
model = "parakeet-tiny"
|
|
31
|
+
language = "zh"
|
|
32
|
+
|
|
33
|
+
[diarization]
|
|
34
|
+
enabled = true
|
|
35
|
+
hf_token = "hf_xxx"
|
|
36
|
+
|
|
37
|
+
[output]
|
|
38
|
+
format = "json"
|
|
39
|
+
keep_recording = false
|
|
40
|
+
"#
|
|
41
|
+
)
|
|
42
|
+
.expect("write config");
|
|
43
|
+
|
|
44
|
+
let config = Config::load_from_path(tmp.path()).expect("load config");
|
|
45
|
+
assert_eq!(config.audio.sample_rate, 16000);
|
|
46
|
+
assert_eq!(config.audio.channels, 1);
|
|
47
|
+
assert_eq!(config.transcription.engine, "parakeet");
|
|
48
|
+
assert_eq!(config.transcription.model, "parakeet-tiny");
|
|
49
|
+
assert_eq!(config.transcription.language, "zh");
|
|
50
|
+
assert!(config.diarization.enabled);
|
|
51
|
+
assert_eq!(config.diarization.hf_token, "hf_xxx");
|
|
52
|
+
assert_eq!(config.output.format, "json");
|
|
53
|
+
assert!(!config.output.keep_recording);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#[test]
|
|
57
|
+
fn test_config_load_missing_file_falls_back_to_defaults() {
|
|
58
|
+
let config = Config::load_from_path(std::path::Path::new("/nonexistent/lincoln-record.toml"))
|
|
59
|
+
.expect("missing file should fall back to defaults");
|
|
60
|
+
assert_eq!(config.audio.sample_rate, 48000);
|
|
61
|
+
assert_eq!(config.output.format, "markdown");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#[test]
|
|
65
|
+
fn test_config_rejects_invalid_toml() {
|
|
66
|
+
let mut tmp = tempfile::NamedTempFile::new().expect("temp file");
|
|
67
|
+
write!(tmp, "not valid toml [[[").expect("write invalid config");
|
|
68
|
+
let result = Config::load_from_path(tmp.path());
|
|
69
|
+
assert!(result.is_err(), "invalid TOML should error");
|
|
70
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
use lincoln_record::audio::devices::{default_input_device, list_input_devices};
|
|
2
|
+
|
|
3
|
+
#[test]
|
|
4
|
+
fn test_list_input_devices_returns_vec() {
|
|
5
|
+
let devices = list_input_devices().expect("cpal should enumerate input devices");
|
|
6
|
+
assert!(
|
|
7
|
+
!devices.is_empty(),
|
|
8
|
+
"cpal should report at least one input device on this machine"
|
|
9
|
+
);
|
|
10
|
+
for name in &devices {
|
|
11
|
+
assert!(!name.is_empty(), "device name should not be empty");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
#[test]
|
|
16
|
+
fn test_default_input_device_has_name() {
|
|
17
|
+
let device = default_input_device();
|
|
18
|
+
assert!(device.is_some(), "there should be a default input device");
|
|
19
|
+
assert!(
|
|
20
|
+
!device.unwrap().is_empty(),
|
|
21
|
+
"default device name should not be empty"
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
use lincoln_record::audio::saver::write_source_to_wav;
|
|
2
|
+
use lincoln_record::audio::source::{AudioSource, SineWaveSource};
|
|
3
|
+
use std::path::PathBuf;
|
|
4
|
+
use std::process::Command;
|
|
5
|
+
use tempfile::TempDir;
|
|
6
|
+
|
|
7
|
+
fn generate_two_speaker_fixture(path: &std::path::Path) {
|
|
8
|
+
let speaker_a = SineWaveSource::new(48000.0, 1, 440.0, 1.0).expect("valid source");
|
|
9
|
+
let speaker_b = SineWaveSource::new(48000.0, 1, 880.0, 1.0).expect("valid source");
|
|
10
|
+
|
|
11
|
+
// Concatenate one second of speaker A followed by one second of speaker B.
|
|
12
|
+
let samples: Vec<f32> = speaker_a
|
|
13
|
+
.iter()
|
|
14
|
+
.take(48000)
|
|
15
|
+
.chain(speaker_b.iter().take(48000))
|
|
16
|
+
.collect();
|
|
17
|
+
|
|
18
|
+
let combined = lincoln_record::audio::source::InMemorySource::new(samples, 48000, 1, 2.0);
|
|
19
|
+
write_source_to_wav(&combined, path, 48000, 1).expect("write fixture");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#[test]
|
|
23
|
+
fn test_diarize_labels_two_speakers() {
|
|
24
|
+
let tmp = TempDir::new().expect("temp dir");
|
|
25
|
+
let fixture = tmp.path().join("two_speakers.wav");
|
|
26
|
+
generate_two_speaker_fixture(&fixture);
|
|
27
|
+
|
|
28
|
+
let project_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
|
29
|
+
let script = project_root.join("diarize/diarize.py");
|
|
30
|
+
|
|
31
|
+
let output = Command::new("python3")
|
|
32
|
+
.arg(&script)
|
|
33
|
+
.arg(&fixture)
|
|
34
|
+
.arg("--output")
|
|
35
|
+
.arg(tmp.path().join("diarization.json"))
|
|
36
|
+
.output()
|
|
37
|
+
.expect("run diarize.py");
|
|
38
|
+
|
|
39
|
+
assert!(
|
|
40
|
+
output.status.success(),
|
|
41
|
+
"diarize.py failed: {}",
|
|
42
|
+
String::from_utf8_lossy(&output.stderr)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
let raw = std::fs::read_to_string(tmp.path().join("diarization.json")).expect("read output");
|
|
46
|
+
let diarization: serde_json::Value = serde_json::from_str(&raw).expect("parse json");
|
|
47
|
+
let speakers = diarization
|
|
48
|
+
.as_array()
|
|
49
|
+
.expect("diarization is array")
|
|
50
|
+
.iter()
|
|
51
|
+
.map(|entry| entry["speaker"].as_str().unwrap_or(""))
|
|
52
|
+
.collect::<std::collections::HashSet<_>>();
|
|
53
|
+
assert_eq!(
|
|
54
|
+
speakers.len(),
|
|
55
|
+
2,
|
|
56
|
+
"fixture should contain two distinct speakers"
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#[test]
|
|
61
|
+
fn test_merge_combines_diarization_with_transcript() {
|
|
62
|
+
let tmp = TempDir::new().expect("temp dir");
|
|
63
|
+
let project_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
|
64
|
+
let script = project_root.join("diarize/merge.py");
|
|
65
|
+
|
|
66
|
+
let transcript = serde_json::json!([
|
|
67
|
+
{"start": 0.0, "end": 1.0, "text": "hello"},
|
|
68
|
+
{"start": 1.0, "end": 2.0, "text": "world"}
|
|
69
|
+
]);
|
|
70
|
+
let diarization = serde_json::json!([
|
|
71
|
+
{"start": 0.0, "end": 1.0, "speaker": "A"},
|
|
72
|
+
{"start": 1.0, "end": 2.0, "speaker": "B"}
|
|
73
|
+
]);
|
|
74
|
+
|
|
75
|
+
std::fs::write(tmp.path().join("transcript.json"), transcript.to_string())
|
|
76
|
+
.expect("write transcript");
|
|
77
|
+
std::fs::write(tmp.path().join("diarization.json"), diarization.to_string())
|
|
78
|
+
.expect("write diarization");
|
|
79
|
+
|
|
80
|
+
let output = Command::new("python3")
|
|
81
|
+
.arg(&script)
|
|
82
|
+
.arg(tmp.path().join("transcript.json"))
|
|
83
|
+
.arg(tmp.path().join("diarization.json"))
|
|
84
|
+
.arg("--output")
|
|
85
|
+
.arg(tmp.path().join("merged.json"))
|
|
86
|
+
.output()
|
|
87
|
+
.expect("run merge.py");
|
|
88
|
+
|
|
89
|
+
assert!(
|
|
90
|
+
output.status.success(),
|
|
91
|
+
"merge.py failed: {}",
|
|
92
|
+
String::from_utf8_lossy(&output.stderr)
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
let raw = std::fs::read_to_string(tmp.path().join("merged.json")).expect("read output");
|
|
96
|
+
let merged: serde_json::Value = serde_json::from_str(&raw).expect("parse json");
|
|
97
|
+
let first = &merged.as_array().unwrap()[0];
|
|
98
|
+
assert_eq!(first["speaker"], "A");
|
|
99
|
+
let second = &merged.as_array().unwrap()[1];
|
|
100
|
+
assert_eq!(second["speaker"], "B");
|
|
101
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
use hound::WavReader;
|
|
2
|
+
use lincoln_record::audio::saver::write_source_to_wav;
|
|
3
|
+
use lincoln_record::audio::source::{AudioSource, SineWaveSource};
|
|
4
|
+
use tempfile::TempDir;
|
|
5
|
+
|
|
6
|
+
#[test]
|
|
7
|
+
fn test_synthetic_source_writes_wav_file() {
|
|
8
|
+
let tmp = TempDir::new().expect("temp dir");
|
|
9
|
+
let output = tmp.path().join("sine.wav");
|
|
10
|
+
|
|
11
|
+
let source = SineWaveSource::new(48000.0, 1, 1000.0, 1.0).expect("valid source");
|
|
12
|
+
write_source_to_wav(&source, &output, 48000, 1).expect("write wav");
|
|
13
|
+
|
|
14
|
+
assert!(output.exists(), "output wav file should exist");
|
|
15
|
+
let reader = WavReader::open(&output).expect("open wav");
|
|
16
|
+
let spec = reader.spec();
|
|
17
|
+
assert_eq!(spec.sample_rate, 48000);
|
|
18
|
+
assert_eq!(spec.channels, 1);
|
|
19
|
+
let samples: Vec<i32> = reader
|
|
20
|
+
.into_samples::<i32>()
|
|
21
|
+
.filter_map(Result::ok)
|
|
22
|
+
.collect();
|
|
23
|
+
assert_eq!(
|
|
24
|
+
samples.len(),
|
|
25
|
+
48000,
|
|
26
|
+
"one second of 48 kHz mono should have 48000 samples"
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#[test]
|
|
31
|
+
fn test_resample_changes_sample_rate() {
|
|
32
|
+
let input: Vec<f32> = SineWaveSource::new(16000.0, 1, 440.0, 1.0)
|
|
33
|
+
.expect("valid source")
|
|
34
|
+
.iter()
|
|
35
|
+
.take(16000)
|
|
36
|
+
.collect();
|
|
37
|
+
let resampled = lincoln_record::audio::resampler::resample_interleaved(&input, 16000, 48000, 1)
|
|
38
|
+
.expect("resample");
|
|
39
|
+
assert_eq!(
|
|
40
|
+
resampled.len(),
|
|
41
|
+
48000,
|
|
42
|
+
"16000 mono samples resampled to 48000 should produce 48000"
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
use lincoln_record::config::Config;
|
|
2
|
+
use lincoln_record::model::resolve_model_path;
|
|
3
|
+
use std::path::PathBuf;
|
|
4
|
+
|
|
5
|
+
#[test]
|
|
6
|
+
fn test_config_loads_model_cache_dir() {
|
|
7
|
+
let config: Config = toml::from_str(
|
|
8
|
+
r#"
|
|
9
|
+
model_cache_dir = "/custom/cache"
|
|
10
|
+
[transcription]
|
|
11
|
+
engine = "whisper"
|
|
12
|
+
model = "small"
|
|
13
|
+
"#,
|
|
14
|
+
)
|
|
15
|
+
.unwrap();
|
|
16
|
+
assert_eq!(
|
|
17
|
+
config.model_cache_dir,
|
|
18
|
+
Some(PathBuf::from("/custom/cache"))
|
|
19
|
+
);
|
|
20
|
+
assert_eq!(config.transcription.model, "small");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#[test]
|
|
24
|
+
fn test_resolve_model_path_uses_absolute_cli_path() {
|
|
25
|
+
let config = Config::default();
|
|
26
|
+
let path = PathBuf::from("/absolute/ggml-custom.bin");
|
|
27
|
+
let resolved = resolve_model_path(Some(&path), &config).unwrap();
|
|
28
|
+
assert_eq!(resolved, path);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#[test]
|
|
32
|
+
fn test_resolve_model_path_uses_name_from_config() {
|
|
33
|
+
let mut config = Config::default();
|
|
34
|
+
config.model_cache_dir = Some(PathBuf::from("/cache"));
|
|
35
|
+
config.transcription.model = "tiny".to_string();
|
|
36
|
+
|
|
37
|
+
let resolved = resolve_model_path(None, &config).unwrap();
|
|
38
|
+
assert_eq!(
|
|
39
|
+
resolved,
|
|
40
|
+
PathBuf::from("/cache/whisper/ggml-tiny.bin")
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#[test]
|
|
45
|
+
fn test_resolve_model_path_cli_name_overrides_config() {
|
|
46
|
+
let mut config = Config::default();
|
|
47
|
+
config.model_cache_dir = Some(PathBuf::from("/cache"));
|
|
48
|
+
config.transcription.model = "large".to_string();
|
|
49
|
+
|
|
50
|
+
let resolved = resolve_model_path(Some(PathBuf::from("base").as_path()), &config).unwrap();
|
|
51
|
+
assert_eq!(
|
|
52
|
+
resolved,
|
|
53
|
+
PathBuf::from("/cache/whisper/ggml-base.bin")
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#[test]
|
|
58
|
+
fn test_resolve_model_path_missing_returns_error_with_url() {
|
|
59
|
+
let mut config = Config::default();
|
|
60
|
+
config.model_cache_dir = Some(PathBuf::from("/cache"));
|
|
61
|
+
config.transcription.model = "missing-model".to_string();
|
|
62
|
+
|
|
63
|
+
let err = resolve_model_path(None, &config).unwrap_err();
|
|
64
|
+
let msg = format!("{}", err);
|
|
65
|
+
assert!(msg.contains("missing-model"));
|
|
66
|
+
assert!(msg.contains("huggingface"));
|
|
67
|
+
assert!(msg.contains("lincoln-record warmup"));
|
|
68
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
use lincoln_record::output::metadata::{DeviceInfo, FileInfo, SessionMetadata};
|
|
2
|
+
use lincoln_record::output::transcript::{TranscriptSegment, format_transcript};
|
|
3
|
+
use lincoln_record::transcription::provider::{MockProvider, TranscriptionProvider};
|
|
4
|
+
use std::path::PathBuf;
|
|
5
|
+
|
|
6
|
+
#[test]
|
|
7
|
+
fn test_mock_provider_returns_segments() {
|
|
8
|
+
let provider = MockProvider::new(vec![TranscriptSegment {
|
|
9
|
+
start: 0.0,
|
|
10
|
+
end: 2.0,
|
|
11
|
+
speaker: Some("Speaker 1".to_string()),
|
|
12
|
+
text: "Hello world".to_string(),
|
|
13
|
+
}]);
|
|
14
|
+
|
|
15
|
+
let segments = provider
|
|
16
|
+
.transcribe(&PathBuf::from("/tmp/sample.wav"), Some("en"))
|
|
17
|
+
.expect("mock provider should always succeed");
|
|
18
|
+
|
|
19
|
+
assert_eq!(segments.len(), 1);
|
|
20
|
+
assert_eq!(segments[0].text, "Hello world");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#[test]
|
|
24
|
+
fn test_transcript_formatting_includes_session_and_speakers() {
|
|
25
|
+
let segments = vec![
|
|
26
|
+
TranscriptSegment {
|
|
27
|
+
start: 0.0,
|
|
28
|
+
end: 2.0,
|
|
29
|
+
speaker: Some("Speaker 1".to_string()),
|
|
30
|
+
text: "Hello".to_string(),
|
|
31
|
+
},
|
|
32
|
+
TranscriptSegment {
|
|
33
|
+
start: 2.5,
|
|
34
|
+
end: 4.0,
|
|
35
|
+
speaker: Some("Speaker 2".to_string()),
|
|
36
|
+
text: "Hi there".to_string(),
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
let markdown = format_transcript("2026-07-11-test", &segments);
|
|
41
|
+
assert!(markdown.contains("# Interview: 2026-07-11-test"));
|
|
42
|
+
assert!(markdown.contains("- Speaker 1"));
|
|
43
|
+
assert!(markdown.contains("- Speaker 2"));
|
|
44
|
+
assert!(markdown.contains("**[00:00:00] Speaker 1**: Hello"));
|
|
45
|
+
assert!(markdown.contains("**[00:00:02] Speaker 2**: Hi there"));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#[test]
|
|
49
|
+
fn test_metadata_serializes_required_fields() {
|
|
50
|
+
let metadata = SessionMetadata {
|
|
51
|
+
session_id: "2026-07-11-test".to_string(),
|
|
52
|
+
process_slug: "issue-25".to_string(),
|
|
53
|
+
started_at: "2026-07-11T10:00:00Z".to_string(),
|
|
54
|
+
ended_at: Some("2026-07-11T10:30:00Z".to_string()),
|
|
55
|
+
engine: "whisper".to_string(),
|
|
56
|
+
model: "large-v3-turbo".to_string(),
|
|
57
|
+
diarization: false,
|
|
58
|
+
devices: DeviceInfo {
|
|
59
|
+
microphone: "MacBook Pro Microphone".to_string(),
|
|
60
|
+
system: None,
|
|
61
|
+
},
|
|
62
|
+
files: FileInfo {
|
|
63
|
+
transcript: "transcript.md".to_string(),
|
|
64
|
+
audio: "audio.wav".to_string(),
|
|
65
|
+
metadata: "metadata.json".to_string(),
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
let json = serde_json::to_string_pretty(&metadata).expect("serialize");
|
|
70
|
+
assert!(json.contains("2026-07-11-test"));
|
|
71
|
+
assert!(json.contains("issue-25"));
|
|
72
|
+
assert!(json.contains("large-v3-turbo"));
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sushanglewis/lincoln",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"description": "Global Lincoln agent harness plugin CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
|
-
"lincoln": "./dist/main.js"
|
|
10
|
+
"lincoln": "./dist/main.js",
|
|
11
|
+
"lincoln-install": "./dist/main.js",
|
|
12
|
+
"lincoln-update": "./dist/main.js"
|
|
11
13
|
},
|
|
12
14
|
"files": [
|
|
13
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"framework"
|
|
14
17
|
],
|
|
15
18
|
"scripts": {
|
|
16
19
|
"build": "tsup",
|
|
@@ -19,18 +22,19 @@
|
|
|
19
22
|
"test:watch": "vitest",
|
|
20
23
|
"typecheck": "tsc --noEmit",
|
|
21
24
|
"typecheck:tests": "tsc -p tsconfig.tests.json",
|
|
22
|
-
"lint": "echo 'lint not configured'"
|
|
25
|
+
"lint": "echo 'lint not configured'",
|
|
26
|
+
"prepack": "npm run build && node ../../scripts/sync-framework-package.mjs",
|
|
27
|
+
"postinstall": "node dist/postinstall.js"
|
|
23
28
|
},
|
|
24
29
|
"dependencies": {
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
"js-yaml": "^4.1.0"
|
|
31
|
+
},
|
|
32
|
+
"optionalDependencies": {
|
|
33
|
+
"@sushanglewis/lincoln-recorder": "^1.5.0"
|
|
28
34
|
},
|
|
29
35
|
"devDependencies": {
|
|
30
36
|
"@types/js-yaml": "^4.0.9",
|
|
31
37
|
"@types/node": "^22.15.0",
|
|
32
|
-
"@types/react": "^18.3.12",
|
|
33
|
-
"ink-testing-library": "^4.0.0",
|
|
34
38
|
"tsup": "^8.5.0",
|
|
35
39
|
"typescript": "^5.8.3",
|
|
36
40
|
"vitest": "^4.1.9"
|
|
@@ -40,9 +44,11 @@
|
|
|
40
44
|
},
|
|
41
45
|
"keywords": [
|
|
42
46
|
"lincoln",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
47
|
+
"agent-harness",
|
|
48
|
+
"claude-code",
|
|
49
|
+
"codex",
|
|
50
|
+
"opencode",
|
|
51
|
+
"plugin"
|
|
46
52
|
],
|
|
47
53
|
"license": "MIT"
|
|
48
54
|
}
|