archgraph-argo 0.9.4 → 0.9.5

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.
Files changed (2) hide show
  1. package/install-argo.ps1 +47 -53
  2. package/package.json +1 -1
package/install-argo.ps1 CHANGED
@@ -480,66 +480,99 @@ Write-Host '==> Deploying Argo toolchain'
480
480
 
481
481
  $schemaSrc = Join-Path $argoDir 'schema'
482
482
  $schemaDest = Join-Path $ArgoRoot 'schema'
483
- Write-Host "[1/14] argo\schema -> $schemaDest"
483
+ Write-Host "[1/19] argo\schema -> $schemaDest"
484
484
  Copy-Tree -Source $schemaSrc -Destination $schemaDest
485
485
 
486
486
  $scriptsSrc = Join-Path $argoDir 'scripts'
487
487
  $scriptsDest = Join-Path $ArgoRoot 'scripts'
488
- Write-Host "[2/14] argo\scripts -> $scriptsDest"
488
+ Write-Host "[2/19] argo\scripts -> $scriptsDest"
489
489
  Copy-Tree -Source $scriptsSrc -Destination $scriptsDest
490
490
 
491
491
  $defaultsSrc = Join-Path $argoDir 'defaults'
492
492
  $defaultsDest = Join-Path $ArgoRoot 'defaults'
493
- Write-Host "[3/14] argo\defaults -> $defaultsDest"
493
+ Write-Host "[3/19] argo\defaults -> $defaultsDest"
494
494
  Copy-Tree -Source $defaultsSrc -Destination $defaultsDest
495
495
 
496
496
  $skillSrc = Join-Path (Join-Path $argoDir 'skills') 'argo-init'
497
497
  $skillDest = Join-Path $SkillsRoot 'argo-init'
498
- Write-Host "[4/14] argo\skills\argo-init -> $skillDest"
498
+ Write-Host "[4/19] argo\skills\argo-init -> $skillDest"
499
499
  Copy-Tree -Source $skillSrc -Destination $skillDest
500
500
 
501
501
  $ruleSrc = Join-Path (Join-Path $argoDir 'rules') 'archgraph.instructions.md'
502
502
  $ruleDest = Join-Path $PromptsRoot 'archgraph.instructions.md'
503
- Write-Host "[5/14] argo\rules\archgraph.instructions.md -> $ruleDest"
503
+ Write-Host "[5/19] argo\rules\archgraph.instructions.md -> $ruleDest"
504
504
  New-Item -ItemType Directory -Force -Path $PromptsRoot | Out-Null
505
505
  Copy-Item -Force -Path $ruleSrc -Destination $ruleDest
506
506
 
507
507
  $depsSrc = Join-Path $argoDir 'package.json'
508
508
  $depsDest = Join-Path $ArgoRoot 'package.json'
509
- Write-Host "[6/14] argo\package.json -> $depsDest"
509
+ Write-Host "[6/19] argo\package.json -> $depsDest"
510
510
  Copy-Item -Force -Path $depsSrc -Destination $depsDest
511
511
 
512
512
  $cursorSkillDest = Join-Path $CursorSkillsRoot 'argo-init'
513
- Write-Host "[7/14] argo\skills\argo-init -> $cursorSkillDest (Cursor)"
513
+ Write-Host "[7/19] argo\skills\argo-init -> $cursorSkillDest (Cursor)"
514
514
  Copy-Tree -Source $skillSrc -Destination $cursorSkillDest
515
515
 
516
516
  $openCodeSkillDest = Join-Path $OpenCodeSkillsRoot 'argo-init'
517
- Write-Host "[8/14] argo\skills\argo-init -> $openCodeSkillDest (OpenCode)"
517
+ Write-Host "[8/19] argo\skills\argo-init -> $openCodeSkillDest (OpenCode)"
518
518
  Copy-Tree -Source $skillSrc -Destination $openCodeSkillDest
519
519
 
520
- Write-Host "[9/14] argo\rules\archgraph.instructions.md -> $OpenCodeAgentsPath (OpenCode global AGENTS.md)"
520
+ Write-Host "[9/19] argo\rules\archgraph.instructions.md -> $OpenCodeAgentsPath (OpenCode global AGENTS.md)"
521
521
  Add-AgentsRule -AgentsPath $OpenCodeAgentsPath -RulePath $ruleSrc
522
522
 
523
523
  $agentsSrc = Join-Path $argoDir 'agents'
524
- Write-Host "[10/14] argo\agents -> $CopilotAgentsRoot (Copilot user-level)"
524
+ Write-Host "[10/19] argo\agents -> $CopilotAgentsRoot (Copilot user-level)"
525
525
  Copy-Agents -Source $agentsSrc -Destination $CopilotAgentsRoot
526
526
 
527
- Write-Host "[11/14] argo\agents -> $CursorAgentsRoot (Cursor user-level, converted to .md)"
527
+ Write-Host "[11/19] argo\agents -> $CursorAgentsRoot (Cursor user-level, converted to .md)"
528
528
  Copy-Agents -Source $agentsSrc -Destination $CursorAgentsRoot -Target cursor
529
529
 
530
- Write-Host "[12/14] argo\agents -> $OpenCodeAgentsRoot (OpenCode user-level, converted to .md)"
530
+ Write-Host "[12/19] argo\agents -> $OpenCodeAgentsRoot (OpenCode user-level, converted to .md)"
531
531
  Copy-Agents -Source $agentsSrc -Destination $OpenCodeAgentsRoot -Target opencode
532
532
 
533
533
  $pluginsSrc = Join-Path $argoDir 'plugins'
534
- Write-Host "[13/14] argo\plugins -> $PluginsRoot (Argo opencode plugins)"
534
+ Write-Host "[13/19] argo\plugins -> $PluginsRoot (Argo opencode plugins)"
535
535
  Copy-Tree -Source $pluginsSrc -Destination $PluginsRoot
536
536
 
537
537
  $cursorRuleSrc = Join-Path (Join-Path $argoDir 'rules') 'archgraph.instructions.md'
538
538
  $cursorRuleDest = Join-Path $CursorRulesRoot 'archgraph.mdc'
539
- Write-Host "[14/14] argo\rules\archgraph.instructions.md -> $cursorRuleDest (Cursor global rule, alwaysApply)"
539
+ Write-Host "[14/19] argo\rules\archgraph.instructions.md -> $cursorRuleDest (Cursor global rule, alwaysApply)"
540
540
  New-Item -ItemType Directory -Force -Path $CursorRulesRoot | Out-Null
541
541
  Convert-RuleFile -SourceFile $cursorRuleSrc -DestinationFile $cursorRuleDest
542
542
 
543
+ if ($SkipDsh) {
544
+ Write-Host 'Skipped DeepSeek Harness integration (-SkipDsh).'
545
+ } else {
546
+ $ruleSrcContent = Get-Content $ruleSrc -Raw -Encoding UTF8
547
+ $dshSkillDest = Join-Path (Join-Path $DshHome 'skills') 'argo-init'
548
+ $patchPath = Join-Path $DshHome 'cordis.patch.yml'
549
+ $argoServer = (Join-Path $ArgoRoot 'scripts\argo-mcp-server.js').Replace('\', '/')
550
+
551
+ Write-Host "[15/19] argo\rules\archgraph.instructions.md -> $DshHome\AGENTS.md (DeepSeek Harness user-global rule, frontmatter stripped)"
552
+ Write-DshAgentRule -DshHome $DshHome -RuleText $ruleSrcContent
553
+
554
+ Write-Host "[16/19] argo\skills\argo-init -> $dshSkillDest (DeepSeek Harness skill)"
555
+ Copy-Tree -Source (Join-Path $argoDir 'skills\argo-init') -Destination $dshSkillDest
556
+
557
+ Write-Host "[17/19] argo\rules\<WakeupGuideline> -> $DshHome\plugins\dsh-argo-wakeup\index.js (DeepSeek Harness wakeup plugin)"
558
+ $wakeupDshPath = New-DshWakeupPlugin -DshHome $DshHome -RuleText $ruleSrcContent
559
+
560
+ Write-Host "[18/19] mcp-argo + argo-wakeup rows -> $patchPath (DeepSeek Harness MCP + wakeup plugin)"
561
+ $rows = " - id: mcp-argo`n name: '@deepseek-ai/dsh-mcp-client'`n config:`n serverName: argo`n transport: stdio`n command: node`n args:`n - $argoServer`n"
562
+ if ($wakeupDshPath) {
563
+ $pluginUrl = 'file:///' + (($wakeupDshPath -replace '\\', '/').TrimStart('/'))
564
+ $rows += " - id: argo-wakeup`n name: '$pluginUrl'`n"
565
+ }
566
+ $block = "# BEGIN ArchGraph ARGO deployment (managed by install-argo.ps1)`n- insert:`n" + $rows + "# END ArchGraph ARGO deployment"
567
+ Write-DshManagedBlock -Path $patchPath -Block $block -MarkerStart '# BEGIN ArchGraph ARGO deployment' -MarkerEnd '# END ArchGraph ARGO deployment'
568
+
569
+ Write-Host "[19/19] argo\agents -> $DshHome\.agent-presets\<id> (DeepSeek Harness agent presets)"
570
+ New-DshAgentPresets -DshHome $DshHome -AgentsSrc (Join-Path $argoDir 'agents')
571
+
572
+ Write-Host ' Restart `dsh web` to activate the MCP server and the wakeup plugin;'
573
+ Write-Host ' new sessions pick up the global rule and the argo-init skill automatically.'
574
+ }
575
+
543
576
  if ($SkipDeps) {
544
577
  Write-Host 'Skipped dependency install (-SkipDeps).'
545
578
  } elseif (Get-Command npm -ErrorAction SilentlyContinue) {
@@ -668,44 +701,5 @@ if (Test-Path $wakeupPluginPath) {
668
701
  Write-Host "argo-wakeup plugin registered -> $OpenCodeConfigPath"
669
702
  }
670
703
 
671
- if ($SkipDsh) {
672
- Write-Host 'Skipped DeepSeek Harness integration (-SkipDsh).'
673
- } else {
674
- Write-Host '==> Deploying DeepSeek Harness integration (rule / skill / mcp / plugin / agent)'
675
-
676
- $ruleSrcContent = Get-Content $ruleSrc -Raw -Encoding UTF8
677
-
678
- # 1. rule -> ~/.dsh/AGENTS.md (frontmatter stripped; DSH injects verbatim)
679
- Write-DshAgentRule -DshHome $DshHome -RuleText $ruleSrcContent
680
-
681
- # 2. skill -> ~/.dsh/skills/argo-init (frontmatter is already DSH-compatible:
682
- # name / description / disable-model-invocation are parsed by dsh-skill-filesystem)
683
- $dshSkillDest = Join-Path (Join-Path $DshHome 'skills') 'argo-init'
684
- Copy-Tree -Source (Join-Path $argoDir 'skills\argo-init') -Destination $dshSkillDest
685
- Write-Host " argo-init skill installed -> $dshSkillDest"
686
-
687
- # 3. plugin -> ~/.dsh/plugins/dsh-argo-wakeup/index.js generated from the
688
- # rule's <WakeupGuideline> block (single source: the rule file)
689
- $wakeupDshPath = New-DshWakeupPlugin -DshHome $DshHome -RuleText $ruleSrcContent
690
-
691
- # 4. mcp + plugin rows -> ~/.dsh/cordis.patch.yml (marker-delimited managed block)
692
- $argoServer = (Join-Path $ArgoRoot 'scripts\argo-mcp-server.js').Replace('\', '/')
693
- $rows = " - id: mcp-argo`n name: '@deepseek-ai/dsh-mcp-client'`n config:`n serverName: argo`n transport: stdio`n command: node`n args:`n - $argoServer`n"
694
- if ($wakeupDshPath) {
695
- $pluginUrl = 'file:///' + (($wakeupDshPath -replace '\\', '/').TrimStart('/'))
696
- $rows += " - id: argo-wakeup`n name: '$pluginUrl'`n"
697
- }
698
- $block = "# BEGIN ArchGraph ARGO deployment (managed by install-argo.ps1)`n- insert:`n" + $rows + "# END ArchGraph ARGO deployment"
699
- $patchPath = Join-Path $DshHome 'cordis.patch.yml'
700
- Write-DshManagedBlock -Path $patchPath -Block $block -MarkerStart '# BEGIN ArchGraph ARGO deployment' -MarkerEnd '# END ArchGraph ARGO deployment'
701
- Write-Host " DSH MCP + wakeup rows written -> $patchPath"
702
-
703
- # 5. agents -> ~/.dsh/.agent-presets/<id>/ generated from argo/agents/*.agent.md
704
- New-DshAgentPresets -DshHome $DshHome -AgentsSrc (Join-Path $argoDir 'agents')
705
-
706
- Write-Host ' Restart `dsh web` to activate the MCP server and the wakeup plugin;'
707
- Write-Host ' new sessions pick up the global rule and the argo-init skill automatically.'
708
- }
709
-
710
704
  Write-Host ''
711
705
  Write-Host 'Argo deployment complete.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgraph-argo",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Deploy the ArchGraph ARGO toolchain, skills, and rules (schema, scripts, argo-init skill, global rule) with one command.",
5
5
  "license": "MIT",
6
6
  "bin": {