@biffo/cli 0.442.0 → 0.443.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.
@@ -360,6 +360,19 @@
360
360
  "additionalProperties": false
361
361
  },
362
362
  "description": "Named needs (a credential, a group name, a feature flag) this manifest declares that the INSTANCE must supply at install time — never values, only name/kind/required/description (biffo-template#1517). See ConfigDeclaration in biffo_plugin_sdk.plugin for the full mechanism."
363
+ },
364
+ "reconcile": {
365
+ "type": "object",
366
+ "additionalProperties": false,
367
+ "required": ["status_url"],
368
+ "properties": {
369
+ "status_url": {
370
+ "type": "string",
371
+ "pattern": "^https?://[^\\s]+$",
372
+ "description": "Absolute URL the fleet reads the reconcile status from: normally https://<instance domain>/api/v1/plugins/<name>/reconcile-status."
373
+ }
374
+ },
375
+ "description": "Declares that this plugin reports when its Core-side seeded state was last reconciled (biffo_plugin_sdk.report_reconciled). Optional."
363
376
  }
364
377
  },
365
378
  "additionalProperties": false
@@ -360,6 +360,19 @@
360
360
  "additionalProperties": false
361
361
  },
362
362
  "description": "Named needs (a credential, a group name, a feature flag) this manifest declares that the INSTANCE must supply at install time — never values, only name/kind/required/description (biffo-template#1517). See ConfigDeclaration in biffo_plugin_sdk.plugin for the full mechanism."
363
+ },
364
+ "reconcile": {
365
+ "type": "object",
366
+ "additionalProperties": false,
367
+ "required": ["status_url"],
368
+ "properties": {
369
+ "status_url": {
370
+ "type": "string",
371
+ "pattern": "^https?://[^\\s]+$",
372
+ "description": "Absolute URL the fleet reads the reconcile status from: normally https://<instance domain>/api/v1/plugins/<name>/reconcile-status."
373
+ }
374
+ },
375
+ "description": "Declares that this plugin reports when its Core-side seeded state was last reconciled (biffo_plugin_sdk.report_reconciled). Optional."
363
376
  }
364
377
  },
365
378
  "additionalProperties": false
package/dist/index.js CHANGED
@@ -6965,6 +6965,12 @@ var ConfigDeclarationSchema = z6.object({
6965
6965
  required: z6.boolean().default(true),
6966
6966
  description: z6.string().min(1, "description is required so an installer knows what this need is for")
6967
6967
  }).strict();
6968
+ var ReconcileDeclarationSchema = z6.object({
6969
+ status_url: z6.string().regex(
6970
+ /^https?:\/\/[^\s]+$/,
6971
+ "must be an absolute URL, e.g. https://example.com/api/v1/plugins/<name>/reconcile-status"
6972
+ )
6973
+ }).strict();
6968
6974
  var PluginManifestSchema = z6.object({
6969
6975
  name: z6.string().regex(/^[a-z][a-z0-9-]*$/, "must be a lowercase kebab-case slug"),
6970
6976
  version: z6.string().regex(/^\d+\.\d+\.\d+$/, "must be a full semver, e.g. 1.2.3"),
@@ -7001,7 +7007,9 @@ var PluginManifestSchema = z6.object({
7001
7007
  seed: SeedDeclarationSchema.optional(),
7002
7008
  // The needs this plugin declares the instance must supply (biffo-template#1517)
7003
7009
  // — never values, only name/kind/required/description.
7004
- config: z6.array(ConfigDeclarationSchema).default([])
7010
+ config: z6.array(ConfigDeclarationSchema).default([]),
7011
+ // Optional — a plugin that reports no reconcile status omits it.
7012
+ reconcile: ReconcileDeclarationSchema.optional()
7005
7013
  }).superRefine((manifest, ctx) => {
7006
7014
  const tableNames = new Set(manifest.tables.map((t) => t.name));
7007
7015
  for (const route of manifest.api_routes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.442.0",
3
+ "version": "0.443.0",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",