@treeseed/sdk 0.6.6 → 0.6.7

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.
@@ -22,6 +22,7 @@ import {
22
22
  ensureGeneratedWranglerConfig,
23
23
  finalizeDeploymentState,
24
24
  loadDeployState,
25
+ markDeploymentInitialized,
25
26
  purgePublishedContentCaches,
26
27
  resolveConfiguredCloudflareAccountId,
27
28
  resolveConfiguredSurfaceBaseUrl,
@@ -974,6 +975,7 @@ async function provisionProjectPlatform(options) {
974
975
  });
975
976
  }
976
977
  writeDeployState(options.tenantRoot, state, { target });
978
+ markDeploymentInitialized(options.tenantRoot, { target });
977
979
  await reportDeployment(reporter, {
978
980
  environment: options.scope,
979
981
  deploymentKind: "provision",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Shared Treeseed SDK for content-backed and D1-backed object models.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -266,6 +266,11 @@ __WORKING_DIRECTORY_BLOCK__
266
266
  run: |
267
267
  __TENANT_WORKFLOW_ACTION_COMMAND_BLOCK__
268
268
 
269
+ - name: Ensure Treeseed deployment state
270
+ shell: bash
271
+ run: |
272
+ node --input-type=module -e "import { dirname } from 'node:path'; import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; const scope = process.env.TREESEED_WORKFLOW_ENVIRONMENT || 'staging'; const filePath = '.treeseed/state/' + scope + '/deploy.json'; const now = new Date().toISOString(); let state = {}; if (existsSync(filePath)) { state = JSON.parse(readFileSync(filePath, 'utf8')); } state.target = state.target || { kind: 'persistent', scope }; state.readiness = { ...(state.readiness || {}), initialized: true, configured: true, phase: state.readiness?.phase || 'config_complete', initializedAt: state.readiness?.initializedAt || now, lastValidatedAt: now, blockers: state.readiness?.blockers || [], warnings: state.readiness?.warnings || [] }; mkdirSync(dirname(filePath), { recursive: true }); writeFileSync(filePath, JSON.stringify(state, null, 2) + '\n');"
273
+
269
274
  - name: Upload Treeseed deployment state
270
275
  if: always()
271
276
  uses: actions/upload-artifact@v4