@kitsy/coop-core 2.2.2 → 2.2.4

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.
package/dist/index.cjs CHANGED
@@ -927,6 +927,7 @@ function parseDeliveryFromRaw(raw, source) {
927
927
  const scopeRecord = typeof scopeRaw === "object" && scopeRaw !== null ? scopeRaw : {};
928
928
  return {
929
929
  id,
930
+ short_id: typeof raw.short_id === "string" && raw.short_id.trim() ? raw.short_id.trim() : void 0,
930
931
  name,
931
932
  status,
932
933
  target_date: typeof raw.target_date === "string" ? raw.target_date : null,
@@ -2138,6 +2139,7 @@ function parseIdeaFromRaw(raw, source) {
2138
2139
  }
2139
2140
  return {
2140
2141
  id,
2142
+ short_id: typeof raw.short_id === "string" && raw.short_id.trim() ? raw.short_id.trim() : void 0,
2141
2143
  title,
2142
2144
  created,
2143
2145
  aliases: asStringArray2(raw.aliases),
@@ -2165,6 +2167,7 @@ function parseIdeaFile(filePath) {
2165
2167
  var import_node_fs9 = __toESM(require("fs"), 1);
2166
2168
  var TASK_FIELD_ORDER = [
2167
2169
  "id",
2170
+ "short_id",
2168
2171
  "title",
2169
2172
  "type",
2170
2173
  "status",
package/dist/index.d.cts CHANGED
@@ -200,6 +200,7 @@ interface DeliveryGovernance {
200
200
  }
201
201
  interface Delivery {
202
202
  id: string;
203
+ short_id?: string;
203
204
  name: string;
204
205
  status: DeliveryStatus;
205
206
  target_date: string | null;
@@ -279,6 +280,7 @@ type ResourceProfile = HumanResource | AIResource | ComputeResource;
279
280
 
280
281
  interface TaskCore {
281
282
  id: string;
283
+ short_id?: string;
282
284
  title: string;
283
285
  type: TaskType;
284
286
  status: TaskStatus;
@@ -417,6 +419,7 @@ interface TaskComputed {
417
419
 
418
420
  interface Track {
419
421
  id: string;
422
+ short_id?: string;
420
423
  name: string;
421
424
  capacity_profiles: string[];
422
425
  constraints?: {
@@ -749,11 +752,21 @@ interface CoopConfig {
749
752
  id_prefixes?: {
750
753
  idea?: string;
751
754
  task?: string;
755
+ track?: string;
752
756
  delivery?: string;
753
757
  run?: string;
754
758
  };
755
759
  id?: {
756
- naming?: string;
760
+ naming?: string | {
761
+ task?: string;
762
+ idea?: string;
763
+ track?: string;
764
+ delivery?: string;
765
+ run?: string;
766
+ };
767
+ tokens?: Record<string, {
768
+ values?: string[];
769
+ }>;
757
770
  seq_padding?: number;
758
771
  };
759
772
  defaults?: {
@@ -798,6 +811,7 @@ interface CoopConfig {
798
811
 
799
812
  interface Idea {
800
813
  id: string;
814
+ short_id?: string;
801
815
  title: string;
802
816
  created: string;
803
817
  aliases?: string[];
package/dist/index.d.ts CHANGED
@@ -200,6 +200,7 @@ interface DeliveryGovernance {
200
200
  }
201
201
  interface Delivery {
202
202
  id: string;
203
+ short_id?: string;
203
204
  name: string;
204
205
  status: DeliveryStatus;
205
206
  target_date: string | null;
@@ -279,6 +280,7 @@ type ResourceProfile = HumanResource | AIResource | ComputeResource;
279
280
 
280
281
  interface TaskCore {
281
282
  id: string;
283
+ short_id?: string;
282
284
  title: string;
283
285
  type: TaskType;
284
286
  status: TaskStatus;
@@ -417,6 +419,7 @@ interface TaskComputed {
417
419
 
418
420
  interface Track {
419
421
  id: string;
422
+ short_id?: string;
420
423
  name: string;
421
424
  capacity_profiles: string[];
422
425
  constraints?: {
@@ -749,11 +752,21 @@ interface CoopConfig {
749
752
  id_prefixes?: {
750
753
  idea?: string;
751
754
  task?: string;
755
+ track?: string;
752
756
  delivery?: string;
753
757
  run?: string;
754
758
  };
755
759
  id?: {
756
- naming?: string;
760
+ naming?: string | {
761
+ task?: string;
762
+ idea?: string;
763
+ track?: string;
764
+ delivery?: string;
765
+ run?: string;
766
+ };
767
+ tokens?: Record<string, {
768
+ values?: string[];
769
+ }>;
757
770
  seq_padding?: number;
758
771
  };
759
772
  defaults?: {
@@ -798,6 +811,7 @@ interface CoopConfig {
798
811
 
799
812
  interface Idea {
800
813
  id: string;
814
+ short_id?: string;
801
815
  title: string;
802
816
  created: string;
803
817
  aliases?: string[];
package/dist/index.js CHANGED
@@ -716,6 +716,7 @@ function parseDeliveryFromRaw(raw, source) {
716
716
  const scopeRecord = typeof scopeRaw === "object" && scopeRaw !== null ? scopeRaw : {};
717
717
  return {
718
718
  id,
719
+ short_id: typeof raw.short_id === "string" && raw.short_id.trim() ? raw.short_id.trim() : void 0,
719
720
  name,
720
721
  status,
721
722
  target_date: typeof raw.target_date === "string" ? raw.target_date : null,
@@ -1927,6 +1928,7 @@ function parseIdeaFromRaw(raw, source) {
1927
1928
  }
1928
1929
  return {
1929
1930
  id,
1931
+ short_id: typeof raw.short_id === "string" && raw.short_id.trim() ? raw.short_id.trim() : void 0,
1930
1932
  title,
1931
1933
  created,
1932
1934
  aliases: asStringArray2(raw.aliases),
@@ -1954,6 +1956,7 @@ function parseIdeaFile(filePath) {
1954
1956
  import fs9 from "fs";
1955
1957
  var TASK_FIELD_ORDER = [
1956
1958
  "id",
1959
+ "short_id",
1957
1960
  "title",
1958
1961
  "type",
1959
1962
  "status",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kitsy/coop-core",
3
3
  "description": "Core models, parser, validator, graph, and planning engine for COOP.",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "publishConfig": {