arkaik 0.8.0 → 0.9.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.
@@ -201,7 +201,7 @@ interface JournalEvent extends Record<string, unknown> {
201
201
  id: string;
202
202
  /** ISO 8601 timestamp. */
203
203
  ts: string;
204
- /** Who/what wrote it: "alexis", "claude-code", "arkaik-sync", "ci". */
204
+ /** Who/what wrote it: "alexis", "claude-code", "arkaik-sync", "arkaik-ci". */
205
205
  actor?: string;
206
206
  /** Event type — the v1 vocabulary, or an unknown forward-compatible value. */
207
207
  type: string;
@@ -230,6 +230,12 @@ interface NodeStatusChangedEvent extends JournalEvent {
230
230
  from: StatusId;
231
231
  to: StatusId;
232
232
  platform?: PlatformId;
233
+ /**
234
+ * Free-form evidence for the move — the deployment URL, the store build
235
+ * number. Written by the hosted `release:append` door, the one writer that
236
+ * always knows it; edits through the mutations route never carry it.
237
+ */
238
+ detail?: string;
233
239
  }
234
240
 
235
241
  interface NodeDeletedEvent extends JournalEvent {
package/dist/index.js CHANGED
@@ -15080,7 +15080,7 @@ function missingProvenanceNodeIds(snapshotNodeIds, events) {
15080
15080
  var envelope = {
15081
15081
  id: external_exports.string().meta({ description: "ULID \u2014 sortable, collision-free without coordination." }),
15082
15082
  ts: external_exports.string().meta({ description: "ISO 8601 timestamp." }),
15083
- actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "ci").' }),
15083
+ actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "arkaik-ci").' }),
15084
15084
  v: external_exports.number().int().optional().meta({ description: "Reserved per-event payload version; absent today." })
15085
15085
  };
15086
15086
  var JournalEventSchema = external_exports.object({
@@ -15107,7 +15107,8 @@ var NodeStatusChangedEventSchema = external_exports.object({
15107
15107
  // their legacy status ids, so strict per-type validation must accept them.
15108
15108
  from: AnyStatusSchema,
15109
15109
  to: AnyStatusSchema,
15110
- platform: PlatformSchema.optional()
15110
+ platform: PlatformSchema.optional(),
15111
+ detail: external_exports.string().optional()
15111
15112
  }).catchall(external_exports.unknown());
15112
15113
  var DecisionStatusChangedEventSchema = external_exports.object({
15113
15114
  ...envelope,
@@ -16971,8 +16972,8 @@ function makeEvent(type, payload = {}, options = {}) {
16971
16972
 
16972
16973
  // ../schema/src/promote.ts
16973
16974
  var DEFAULT_REF_POLICY = {
16974
- "github-pr": { open: "development", merged: "live", closed: null },
16975
- "gitlab-mr": { open: "development", merged: "live", closed: null }
16975
+ "github-pr": { open: "development", merged: "releasing", closed: null },
16976
+ "gitlab-mr": { open: "development", merged: "releasing", closed: null }
16976
16977
  };
16977
16978
  function resolveRefPolicy(bundle) {
16978
16979
  const declared = bundle.project.metadata?.ref_policy;
@@ -17031,6 +17032,10 @@ function computeRefPromotions(bundle) {
17031
17032
  skipped.push({ node_id: node.id, ref_id: ref.id, reason: "already-there", detail: to });
17032
17033
  continue;
17033
17034
  }
17035
+ if (from === "live") {
17036
+ skipped.push({ node_id: node.id, ref_id: ref.id, reason: "live", detail: to });
17037
+ continue;
17038
+ }
17034
17039
  promotions.push({
17035
17040
  node_id: node.id,
17036
17041
  ref_id: ref.id,
@@ -18457,7 +18462,8 @@ function renderEventLine(event, nodesById) {
18457
18462
  const from = str(event.from) ?? "?";
18458
18463
  const to = str(event.to) ?? "?";
18459
18464
  const platform = str(event.platform);
18460
- return `${title(event.node_id, nodesById)}: ${from} -> ${to}${platform ? ` [${platform}]` : ""}`;
18465
+ const detail = str(event.detail);
18466
+ return `${title(event.node_id, nodesById)}: ${from} -> ${to}${platform ? ` [${platform}]` : ""}${detail ? ` - ${detail}` : ""}`;
18461
18467
  }
18462
18468
  case "node.deleted":
18463
18469
  return `${title(event.node_id, nodesById)} deleted`;
@@ -23612,7 +23618,7 @@ Options:
23612
23618
  -v, --version Print the version.
23613
23619
 
23614
23620
  Run "arkaik <command> --help" for command-specific help.`;
23615
- var VERSION = "0.8.0";
23621
+ var VERSION = "0.9.0";
23616
23622
  function main(argv) {
23617
23623
  const [command, ...rest] = argv;
23618
23624
  if (command === void 0 || command === "--help" || command === "-h" || command === "help") {
package/dist/io.js CHANGED
@@ -15067,7 +15067,7 @@ function missingProvenanceNodeIds(snapshotNodeIds, events) {
15067
15067
  var envelope = {
15068
15068
  id: external_exports.string().meta({ description: "ULID \u2014 sortable, collision-free without coordination." }),
15069
15069
  ts: external_exports.string().meta({ description: "ISO 8601 timestamp." }),
15070
- actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "ci").' }),
15070
+ actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "arkaik-ci").' }),
15071
15071
  v: external_exports.number().int().optional().meta({ description: "Reserved per-event payload version; absent today." })
15072
15072
  };
15073
15073
  var JournalEventSchema = external_exports.object({
@@ -15094,7 +15094,8 @@ var NodeStatusChangedEventSchema = external_exports.object({
15094
15094
  // their legacy status ids, so strict per-type validation must accept them.
15095
15095
  from: AnyStatusSchema,
15096
15096
  to: AnyStatusSchema,
15097
- platform: PlatformSchema.optional()
15097
+ platform: PlatformSchema.optional(),
15098
+ detail: external_exports.string().optional()
15098
15099
  }).catchall(external_exports.unknown());
15099
15100
  var DecisionStatusChangedEventSchema = external_exports.object({
15100
15101
  ...envelope,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaik",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Arkaik CLI — link a repository to a hosted product graph, validate and pack bundles, mirror external ref status.",
5
5
  "license": "MIT",
6
6
  "type": "module",