@citolab/tspci-tao 2.15.0 → 2.16.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.16.0](https://github.com/Citolab/tspci/compare/v2.15.1...v2.16.0) (2026-11-02)
7
+
8
+ **Note:** Version bump only for package @citolab/tspci-tao
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.15.1](https://github.com/Citolab/tspci/compare/v2.15.0...v2.15.1) (2026-10-30)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **tspci-tao:** declare the PCI's own response in imsPciCreator.json ([3dd497a](https://github.com/Citolab/tspci/commit/3dd497aa1b9b9a0ca12fbd00df8befa31b154bc0))
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.15.0](https://github.com/Citolab/tspci/compare/v2.14.0...v2.15.0) (2026-10-17)
7
26
 
8
27
  **Note:** Version bump only for package @citolab/tspci-tao
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci-tao",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "create a zip file that can be imported into TAO",
5
5
  "author": "patrick <patrick.deklein@cito.nl>, Marcel Hoekstra <marcel.hoekstra@cito.nl>",
6
6
  "repository": {
@@ -20,5 +20,5 @@
20
20
  "access": "public",
21
21
  "registry": "https://registry.npmjs.org/"
22
22
  },
23
- "gitHead": "6b866b63174a1900c13b607a8a8701d0e2215aff"
23
+ "gitHead": "1536c32b716a6b6015f95bb3948b0e95ec9c9297"
24
24
  }
package/release-notes.md CHANGED
@@ -1,3 +1,10 @@
1
+ # Unreleased
2
+
3
+ - `imsPciCreator.json` declares the PCI's own response from `config.tspci.response` (as in `dist/authoring.json`):
4
+ a `file`, `integer` or `multiple` response, or a `record` (without a base type). It was always `single` / `string`,
5
+ so TAO gave a new interaction the wrong response declaration. A PCI without `config.tspci.response` keeps
6
+ `single` / `string`.
7
+
1
8
  # 2.12.0
2
9
 
3
10
  - the SBOM is included in the package as `interaction/runtime/js/sbom.cdx.json`, next to the bundle
@@ -345,6 +345,19 @@ export const bundle = async () => {
345
345
  }
346
346
  }
347
347
 
348
+ // the response TAO declares for a new interaction: the PCI's own (config.tspci.response, as in dist/authoring.json),
349
+ // or the template's single/string; a record has fields instead of a base type
350
+ const response = packageData.config.tspci.response;
351
+ if (response?.cardinality) {
352
+ const manifestPath = path.join(outputDirectoryTemp, "imsPciCreator.json");
353
+ const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf-8"));
354
+ manifest.response =
355
+ response.cardinality === "record"
356
+ ? { cardinality: "record" }
357
+ : { baseType: response.baseType || "string", cardinality: response.cardinality };
358
+ fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 4));
359
+ }
360
+
348
361
  // copy the actual PCI file
349
362
  const pciFile = config.main || "/dist/index.js";
350
363