パックマニフェストリファレンス Stable
tenkacloud-pack.json マニフェストは、問題パックの唯一のエントリポイントです。
以下のフィールドは、@tenkacloud/problem-sdk の PackManifestSchema zod スキーマ
から生成された規範的リファレンスです。スキーマは .strict() のため、未知の
トップレベルフィールドはすべて拒否されます。
フィールド
| Field | Type | Presence | Constraint |
|---|---|---|---|
schemaVersion | 1 (literal) | Required | Must equal the current pack schema version (1). |
id | string | Required | Reverse-DNS style, lowercase, two or more dot-separated segments. |
version | string | Required | Exact SemVer (major.minor.patch with optional pre-release / build). |
core | string | Required | SemVer range the pack requires of the platform core. |
title | string | Required | Non-empty display title. |
description | string | Required | Non-empty pack description. |
license | string | Required | Non-empty license identifier. |
problemsRoot | string | Required | Relative path without '..' traversal; not an absolute root. |
requiredRuntimes | ProviderEngine[] | Required | Each entry is { provider, engine }; provider ∈ { aws, gcp, azure, sakura }. |
dependencies | Dependency[] | Optional | Optional. Each { id (reverse-DNS), range (SemVer range) }; ids must be unique. |
マニフェストは意図的に不活性です。v1 には、作者のクレデンシャル、リモート URL、 スクリプト、実行可能なフックは一切含まれません。セキュリティとプロベナンスのモデルを参照してください。
例
以下の例は説明用であり、規範ではありません — 上記のフィールドルールが正となります。
{
"schemaVersion": 1,
"id": "com.example.starter",
"version": "1.0.0",
"core": ">=1.0.0",
"title": "Starter pack",
"description": "A minimal validator-passing pack.",
"license": "Apache-2.0",
"problemsRoot": "problems",
"requiredRuntimes": [{ "provider": "aws", "engine": "cloudformation" }]
}
関連: 問題メタデータリファレンス、 および CLI リファレンス。