@tera-system/core 0.1.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/LICENSE.md +13 -0
- package/MANIFEST.json +24 -0
- package/README.md +67 -0
- package/RELEASES.md +28 -0
- package/WELCOME.md +35 -0
- package/agents/application-blueprint.md +407 -0
- package/agents/auditor.md +665 -0
- package/agents/design-reviewer.md +392 -0
- package/agents/domain-expert-agent.md +510 -0
- package/agents/domain-research-agent.md +360 -0
- package/agents/engineering-agent-dotnet.md +218 -0
- package/agents/engineering-agent-phaser.md +275 -0
- package/agents/engineering-agent-typescript.md +300 -0
- package/agents/engineering-agent.md +143 -0
- package/agents/monitor.md +395 -0
- package/agents/production-erp-expert.md +506 -0
- package/agents/project-knowledge-agent.md +271 -0
- package/agents/qa-agent.md +498 -0
- package/agents/tera-business-transformation-consultant.md +290 -0
- package/agents/tera-client-engagement.md +891 -0
- package/agents/tera-software-designer.md +237 -0
- package/agents/tera-strategic-advisor.md +325 -0
- package/agents/tera-system-evolution.md +759 -0
- package/agents/tera.md +520 -0
- package/agents/ui-designer.md +426 -0
- package/commands/tera-approve.md +34 -0
- package/commands/tera-diagnose.md +47 -0
- package/commands/tera-gate.md +40 -0
- package/commands/tera-help.md +41 -0
- package/commands/tera-new-project.md +35 -0
- package/commands/tera-plan.md +34 -0
- package/commands/tera-request-build.md +45 -0
- package/commands/tera-resume.md +34 -0
- package/commands/tera-review.md +52 -0
- package/commands/tera-status.md +38 -0
- package/commands/tera-update.md +48 -0
- package/core/project-control/templates/TASK_TEMPLATE.md +146 -0
- package/core/tera-system/AGENT_ACTIVATION_MATRIX.md +285 -0
- package/core/tera-system/AGENT_DEPENDENCY_MAP.md +117 -0
- package/core/tera-system/AGENT_GENERATION_TEMPLATE.md +312 -0
- package/core/tera-system/AGENT_PERMISSION_MODEL.md +343 -0
- package/core/tera-system/AIS_PROTOCOL.md +191 -0
- package/core/tera-system/TERA_AGENT_CONDUCT.md +102 -0
- package/core/tera-system/TERA_CONTINUOUS_IMPROVEMENT_POLICY.md +111 -0
- package/core/tera-system/TERA_DISTRIBUTION_POLICY.md +291 -0
- package/core/tera-system/TERA_PROJECT_DECISION.md +281 -0
- package/core/tera-system/TERA_USER_GUIDE.md +462 -0
- package/core/tera-system/TOOLING_AND_MCP_POLICY.md +285 -0
- package/core/tera-system/TeraApplicationQuestionBank.md +362 -0
- package/core/tera-system/TeraArchitectureMap.md +91 -0
- package/core/tera-system/TeraClientPolicy.md +366 -0
- package/core/tera-system/TeraHelperAgents.md +970 -0
- package/core/tera-system/TeraPolicyMap.md +131 -0
- package/core/tera-system/TeraPreExecutionGate.md +818 -0
- package/core/tera-system/TeraPreparationDocumentationGovernance.md +370 -0
- package/core/tera-system/TeraPricingPolicy.md +674 -0
- package/core/tera-system/TeraProjectIntakePolicy.md +164 -0
- package/core/tera-system/TeraScenarioStressTests.md +168 -0
- package/core/tera-system/TeraSubAgents.md +854 -0
- package/core/tera-system/TeraSystemMaintenanceChecklist.md +80 -0
- package/core/tera-system/TeraTokenPolicy.md +362 -0
- package/core/tera-system/Tera_Project_Preparation_Files.md +1045 -0
- package/core/tera-system/agent-helpers/application-blueprint-details.md +177 -0
- package/core/tera-system/client-helpers/tera-client-engagement-discovery-domains.md +99 -0
- package/core/tera-system/client-helpers/tera-client-engagement-gates.md +258 -0
- package/core/tera-system/client-helpers/tera-client-engagement-pricing.md +341 -0
- package/core/tera-system/client-helpers/tera-client-engagement-protocols.md +692 -0
- package/core/tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md +195 -0
- package/core/tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md +266 -0
- package/core/tera-system/design-system/ACCESSIBILITY_RULES.md +31 -0
- package/core/tera-system/design-system/COMPONENT_LIBRARY_SCHEMA.md +46 -0
- package/core/tera-system/design-system/DESIGN_MD_INTEGRATION.md +59 -0
- package/core/tera-system/design-system/DESIGN_REVIEW_STANDARDS.md +241 -0
- package/core/tera-system/design-system/DESIGN_SOURCE_PROTOCOL.md +61 -0
- package/core/tera-system/design-system/DESIGN_SYSTEM_OVERVIEW.md +66 -0
- package/core/tera-system/design-system/DESIGN_TOKENS_SCHEMA.md +66 -0
- package/core/tera-system/design-system/EXTERNAL_REFERENCE_ANALYSIS.md +52 -0
- package/core/tera-system/design-system/FIGMA_INTEGRATION.md +138 -0
- package/core/tera-system/design-system/INTERNAL_KITS_INDEX.md +26 -0
- package/core/tera-system/design-system/LAYOUT_PATTERNS.md +52 -0
- package/core/tera-system/design-system/MOBILE_UI_UX_STANDARDS.md +342 -0
- package/core/tera-system/design-system/RTL_LTR_RULES.md +39 -0
- package/core/tera-system/design-system/UI_ACCEPTANCE_GATE.md +80 -0
- package/core/tera-system/design-system/kits/KIT_ADMIN_DASHBOARD.md +102 -0
- package/core/tera-system/engineering-governance/ENGINEERING_AGENT_RESPONSIBILITIES.md +210 -0
- package/core/tera-system/engineering-governance/ENGINEERING_BEST_PRACTICES.md +468 -0
- package/core/tera-system/engineering-governance/ENGINEERING_GOVERNANCE_GATE.md +131 -0
- package/core/tera-system/engineering-governance/ENGINEERING_REVIEW_CHECKLIST.md +129 -0
- package/core/tera-system/engineering-governance/QUALITY_GATE_THRESHOLDS.md +159 -0
- package/core/tera-system/engineering-helpers/engineering-agent-core.md +171 -0
- package/core/tera-system/knowledge-base/OPENHANDS_ARCHITECTURE_REFERENCE.md +243 -0
- package/core/tera-system/knowledge-base/manufacturing/00_INDEX.md +32 -0
- package/core/tera-system/knowledge-base/manufacturing/01_MANUFACTURING_ERP_CORE_CONCEPTS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/02_SAP_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/03_DYNAMICS_365_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/04_ORACLE_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/05_ODOO_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/06_ERPNEXT_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/07_MANUFACTURING_COSTING_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/08_PRODUCTION_DISCOVERY_QUESTIONS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/09_MANUFACTURING_BLUEPRINT_CHECKLIST.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/10_PRODUCTION_TEST_SCENARIOS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/11_QUALITY_REWORK_AND_SCRAP_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/12_MRP_AND_PLANNING_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/13_LOCAL_AND_REGIONAL_MANUFACTURING_CONTEXT.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/14_VENDOR_COMPARISON_MATRIX.md +7 -0
- package/core/tera-system/product-standards/maintenance-apps/BEST_PRACTICES_DOMAIN.md +325 -0
- package/core/tera-system/product-standards/maintenance-apps/STANDARD_DEFINITION.md +142 -0
- package/core/tera-system/profiles/PROFILES_INDEX.md +57 -0
- package/core/tera-system/profiles/TEMPLATE.md +47 -0
- package/core/tera-system/profiles/dotnet-blazor-ef.md +76 -0
- package/core/tera-system/profiles/dotnet-razorpages-adonet.md +137 -0
- package/core/tera-system/profiles/dotnet-wpf-sqlite.md +159 -0
- package/core/tera-system/profiles/effect-bun-opencode.md +109 -0
- package/core/tera-system/profiles/flutter-mobile.md +369 -0
- package/core/tera-system/profiles/nextjs-prisma.md +110 -0
- package/core/tera-system/profiles/phaser-react-node.md +302 -0
- package/core/tera-system/profiles/react-pwa.md +97 -0
- package/core/tera-system/runtime/CLIENT_DISCOVERY_PROTOCOL.md +145 -0
- package/core/tera-system/runtime/DOMAIN_INTELLIGENCE_PROTOCOL.md +124 -0
- package/core/tera-system/runtime/MVP_DEFINITION_PROTOCOL.md +176 -0
- package/core/tera-system/runtime/TERA_RUNTIME_CHECKLISTS.md +646 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md +50 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md +355 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md +799 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES.md +908 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md +584 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_PREPARATION.md +376 -0
- package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md +335 -0
- package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md +397 -0
- package/core/tera-system/runtime/VERSION_LIFECYCLE_PROTOCOL.md +296 -0
- package/core/tera-system/semgrep-rules/README.md +32 -0
- package/core/tera-system/semgrep-rules/tera-security.yml +66 -0
- package/core/tera-system/semgrep-rules/tera-standards.yml +49 -0
- package/core/tera-system/teranoo-ui/README.md +48 -0
- package/core/tera-system/teranoo-ui/components/button.tsx +51 -0
- package/core/tera-system/teranoo-ui/components/card.tsx +49 -0
- package/core/tera-system/teranoo-ui/components/dashboard-layout.tsx +36 -0
- package/core/tera-system/teranoo-ui/components/data-table.tsx +146 -0
- package/core/tera-system/teranoo-ui/components/empty-state.tsx +31 -0
- package/core/tera-system/teranoo-ui/components/kpi-card.tsx +42 -0
- package/core/tera-system/teranoo-ui/components/page-header.tsx +25 -0
- package/core/tera-system/teranoo-ui/components/search-input.tsx +40 -0
- package/core/tera-system/teranoo-ui/components/sidebar.tsx +66 -0
- package/core/tera-system/teranoo-ui/components/stats-card.tsx +37 -0
- package/core/tera-system/teranoo-ui/registry.json +77 -0
- package/core/tera-system/teranoo-ui/styles/teranoo-theme.css +61 -0
- package/opencode.tera.example.json +30 -0
- package/package.json +37 -0
- package/scripts/build.mjs +110 -0
- package/scripts/install.js +244 -0
- package/scripts/lib/license.mjs +90 -0
- package/scripts/lib/public-key.pem +3 -0
- package/scripts/tera-license.mjs +63 -0
- package/tools/tera-clean.ps1 +97 -0
- package/tools/tera-fetch.ps1 +165 -0
- package/tools/tera-release.ps1 +96 -0
- package/tools/tera-schedule.ps1 +59 -0
- package/tools/tera-update.ps1 +472 -0
- package/tools/tera-watch.ps1 +154 -0
- package/tools/update-client-repositories.ps1 +92 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<#
|
|
2
|
+
Batch updater. It performs Plan for every repository before any Apply.
|
|
3
|
+
ReposFile accepts one path per line or JSON: { "repositories": ["..."] }.
|
|
4
|
+
#>
|
|
5
|
+
[CmdletBinding()]
|
|
6
|
+
param(
|
|
7
|
+
[Parameter(Mandatory = $true)]
|
|
8
|
+
[string]$Version,
|
|
9
|
+
|
|
10
|
+
[ValidateSet('Plan', 'Apply')]
|
|
11
|
+
[string]$Mode = 'Plan',
|
|
12
|
+
|
|
13
|
+
[Parameter(Mandatory = $false)]
|
|
14
|
+
[string]$SourcePath,
|
|
15
|
+
|
|
16
|
+
[Parameter(Mandatory = $false)]
|
|
17
|
+
[string]$RepositoryUrl,
|
|
18
|
+
|
|
19
|
+
[Parameter(Mandatory = $true)]
|
|
20
|
+
[string]$ReposFile,
|
|
21
|
+
|
|
22
|
+
[ValidateSet('stable', 'beta')]
|
|
23
|
+
[string]$Channel = 'stable',
|
|
24
|
+
|
|
25
|
+
[switch]$Initialize,
|
|
26
|
+
|
|
27
|
+
[switch]$NoCommit
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
Set-StrictMode -Version 5
|
|
31
|
+
$ErrorActionPreference = 'Stop'
|
|
32
|
+
|
|
33
|
+
$updater = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) 'tera-update.ps1'
|
|
34
|
+
if (-not (Test-Path -LiteralPath $updater -PathType Leaf)) { throw "Updater not found: $updater" }
|
|
35
|
+
if (-not (Test-Path -LiteralPath $ReposFile -PathType Leaf)) { throw "ReposFile not found: $ReposFile" }
|
|
36
|
+
|
|
37
|
+
$extension = [System.IO.Path]::GetExtension($ReposFile).ToLowerInvariant()
|
|
38
|
+
if ($extension -eq '.json') {
|
|
39
|
+
try { $data = Get-Content -LiteralPath $ReposFile -Raw | ConvertFrom-Json } catch { throw 'ReposFile JSON is invalid.' }
|
|
40
|
+
if (-not ($data.PSObject.Properties.Name -contains 'repositories')) { throw 'ReposFile JSON needs a repositories array.' }
|
|
41
|
+
$repositories = @($data.repositories)
|
|
42
|
+
} else {
|
|
43
|
+
$repositories = @(Get-Content -LiteralPath $ReposFile | Where-Object {
|
|
44
|
+
$_.Trim().Length -gt 0 -and -not $_.Trim().StartsWith('#')
|
|
45
|
+
} | ForEach-Object { $_.Trim() })
|
|
46
|
+
}
|
|
47
|
+
if ($repositories.Count -eq 0) { throw 'ReposFile contains no repositories.' }
|
|
48
|
+
|
|
49
|
+
function Invoke-One([string]$Repo, [string]$RunMode) {
|
|
50
|
+
$useUrl = [bool]$RepositoryUrl
|
|
51
|
+
try {
|
|
52
|
+
if ($Initialize -and $NoCommit) {
|
|
53
|
+
if ($useUrl) { & $updater -Version $Version -Mode $RunMode -RepositoryUrl $RepositoryUrl -RepoPath $Repo -Channel $Channel -Initialize -NoCommit }
|
|
54
|
+
else { & $updater -Version $Version -Mode $RunMode -SourcePath $SourcePath -RepoPath $Repo -Channel $Channel -Initialize -NoCommit }
|
|
55
|
+
} elseif ($Initialize) {
|
|
56
|
+
if ($useUrl) { & $updater -Version $Version -Mode $RunMode -RepositoryUrl $RepositoryUrl -RepoPath $Repo -Channel $Channel -Initialize }
|
|
57
|
+
else { & $updater -Version $Version -Mode $RunMode -SourcePath $SourcePath -RepoPath $Repo -Channel $Channel -Initialize }
|
|
58
|
+
} elseif ($NoCommit) {
|
|
59
|
+
if ($useUrl) { & $updater -Version $Version -Mode $RunMode -RepositoryUrl $RepositoryUrl -RepoPath $Repo -Channel $Channel -NoCommit }
|
|
60
|
+
else { & $updater -Version $Version -Mode $RunMode -SourcePath $SourcePath -RepoPath $Repo -Channel $Channel -NoCommit }
|
|
61
|
+
} else {
|
|
62
|
+
if ($useUrl) { & $updater -Version $Version -Mode $RunMode -RepositoryUrl $RepositoryUrl -RepoPath $Repo -Channel $Channel }
|
|
63
|
+
else { & $updater -Version $Version -Mode $RunMode -SourcePath $SourcePath -RepoPath $Repo -Channel $Channel }
|
|
64
|
+
}
|
|
65
|
+
if ($LASTEXITCODE -ne 0) { throw "Updater returned exit code $LASTEXITCODE" }
|
|
66
|
+
return $true
|
|
67
|
+
} catch {
|
|
68
|
+
Write-Warning ("$RunMode failed for $Repo : $($_.Exception.Message)")
|
|
69
|
+
return $false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
$planFailures = @()
|
|
74
|
+
foreach ($repo in $repositories) {
|
|
75
|
+
if (-not (Invoke-One -Repo $repo -RunMode 'Plan')) { $planFailures += $repo }
|
|
76
|
+
}
|
|
77
|
+
if ($planFailures.Count -gt 0) {
|
|
78
|
+
throw ("Plan failed for: " + ($planFailures -join ', ') + '. No Apply was started.')
|
|
79
|
+
}
|
|
80
|
+
if ($Mode -eq 'Plan') {
|
|
81
|
+
Write-Host "Batch Plan complete for $($repositories.Count) repositories."
|
|
82
|
+
return
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
$applyFailures = @()
|
|
86
|
+
foreach ($repo in $repositories) {
|
|
87
|
+
if (-not (Invoke-One -Repo $repo -RunMode 'Apply')) { $applyFailures += $repo }
|
|
88
|
+
}
|
|
89
|
+
if ($applyFailures.Count -gt 0) {
|
|
90
|
+
throw ("Apply failed for: " + ($applyFailures -join ', ') + '. Other repositories may already be complete; inspect each result.')
|
|
91
|
+
}
|
|
92
|
+
Write-Host "Batch Apply complete for $($repositories.Count) repositories."
|