@rashidee/co2 1.3.19 → 1.3.20

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/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6809,7 +6809,7 @@ var {
6809
6809
  // package.json
6810
6810
  var package_default = {
6811
6811
  name: "@rashidee/co2",
6812
- version: "1.3.19",
6812
+ version: "1.3.20",
6813
6813
  description: "Compound Context Studio \u2014 self-hosted team context authoring for CO2 projects",
6814
6814
  type: "module",
6815
6815
  license: "MIT",
@@ -25567,7 +25567,7 @@ function isPendingForConductor(s, conductorType) {
25567
25567
  if (conductorType === "prepare") return s.prepareStatus !== "completed";
25568
25568
  if (conductorType === "develop")
25569
25569
  return s.prepareStatus === "completed" && s.developStatus !== "completed";
25570
- return s.developStatus === "completed" && s.qualityStatus !== "completed";
25570
+ return s.developStatus === "completed";
25571
25571
  }
25572
25572
  function getVersionAffectedAppIds(db, projectId, prdVersionId) {
25573
25573
  const version2 = db.select({ id: prdVersions.id, semver: prdVersions.semver }).from(prdVersions).where(and(eq(prdVersions.id, prdVersionId), eq(prdVersions.projectId, projectId))).limit(1).get();
@@ -25617,7 +25617,7 @@ function getVersionAffectedAppIds(db, projectId, prdVersionId) {
25617
25617
  }
25618
25618
  function getPendingApps(db, projectId, conductorType, prdVersionId) {
25619
25619
  const apps = db.select({ id: applications.id, name: applications.name }).from(applications).where(and(eq(applications.projectId, projectId), eq(applications.isDeleted, 0))).all();
25620
- const affected = prdVersionId === void 0 ? null : getVersionAffectedAppIds(db, projectId, prdVersionId);
25620
+ const affected = prdVersionId === void 0 || conductorType === "quality" ? null : getVersionAffectedAppIds(db, projectId, prdVersionId);
25621
25621
  const result = [];
25622
25622
  for (const app of apps) {
25623
25623
  if (affected !== null && !affected.has(app.id)) continue;
@@ -25630,7 +25630,7 @@ function getPendingApps(db, projectId, conductorType, prdVersionId) {
25630
25630
  }
25631
25631
  function getPhaseCompletion(db, projectId, conductorType, prdVersionId) {
25632
25632
  const allApps = db.select({ id: applications.id }).from(applications).where(and(eq(applications.projectId, projectId), eq(applications.isDeleted, 0))).all();
25633
- const affected = prdVersionId === void 0 ? null : getVersionAffectedAppIds(db, projectId, prdVersionId);
25633
+ const affected = prdVersionId === void 0 || conductorType === "quality" ? null : getVersionAffectedAppIds(db, projectId, prdVersionId);
25634
25634
  const apps = affected === null ? allApps : allApps.filter((a) => affected.has(a.id));
25635
25635
  let completed = 0;
25636
25636
  for (const app of apps) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rashidee/co2",
3
- "version": "1.3.19",
3
+ "version": "1.3.20",
4
4
  "description": "Compound Context Studio — self-hosted team context authoring for CO2 projects",
5
5
  "type": "module",
6
6
  "license": "MIT",