@steerable/pack-sdk 0.6.20 → 0.6.22

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/package.json +1 -1
  2. package/types/index.d.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/pack-sdk",
3
- "version": "0.6.20",
3
+ "version": "0.6.22",
4
4
  "type": "module",
5
5
  "description": "Scenario pack contract for @steerable/agent-shell (pure types, zero runtime). A scenario pack declares every extension a vertical scenario needs — services, tools, tables, skills, agent seeds, IPC, HTTP routes, preload bridge, renderer slots, branding — and the host composes the selected packs at build time.",
6
6
  "license": "Apache-2.0",
package/types/index.d.ts CHANGED
@@ -91,6 +91,10 @@ export interface ServiceCreateContext {
91
91
  * ppt_*),跨包不许共享表。
92
92
  */
93
93
  export interface MigrationContribution {
94
+ /** Monotonic migration generation persisted by the selected driver. */
95
+ readonly version?: number;
96
+ /** Table creation required before incremental column checks. */
97
+ readonly beforeDdl?: readonly string[];
94
98
  /** DDL 语句(CREATE TABLE/INDEX IF NOT EXISTS …),合并为一次 exec 执行。 */
95
99
  readonly ddl?: readonly string[];
96
100
  /** 增量列迁移(已有库的 ALTER TABLE ADD COLUMN,列已存在则跳过)。 */