TenkaCloud Docs

パックマニフェストリファレンス Stable

tenkacloud-pack.json マニフェストは、問題パックの唯一のエントリポイントです。 以下のフィールドは、@tenkacloud/problem-sdkPackManifestSchema zod スキーマ から生成された規範的リファレンスです。スキーマは .strict() のため、未知の トップレベルフィールドはすべて拒否されます。

フィールド

FieldTypePresenceConstraint
schemaVersion1 (literal)RequiredMust equal the current pack schema version (1).
idstringRequiredReverse-DNS style, lowercase, two or more dot-separated segments.
versionstringRequiredExact SemVer (major.minor.patch with optional pre-release / build).
corestringRequiredSemVer range the pack requires of the platform core.
titlestringRequiredNon-empty display title.
descriptionstringRequiredNon-empty pack description.
licensestringRequiredNon-empty license identifier.
problemsRootstringRequiredRelative path without '..' traversal; not an absolute root.
requiredRuntimesProviderEngine[]RequiredEach entry is { provider, engine }; provider ∈ { aws, gcp, azure, sakura }.
dependenciesDependency[]OptionalOptional. 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 リファレンス