@tiinex/core 0.5.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiinex/core",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Shared host-neutral Tiinex implementation core for artifacts, schemas, validation, lineage, grounding, Handoffs, provenance and deterministic workflows.",
5
5
  "type": "module",
6
6
  "sideEffects": true,
@@ -167,12 +167,12 @@
167
167
  "type": "git",
168
168
  "url": "git+https://github.com/Tiinex/core.git"
169
169
  },
170
- "gitHead": "52af987f64464878ba9c497921e21b70215c6971",
170
+ "gitHead": "c08cb2e85827e3b8565225208284933d97256d5f",
171
171
  "tiinexRelease": {
172
172
  "policy": "tiinex.master-npm-release.v1",
173
- "sourceCommit": "52af987f64464878ba9c497921e21b70215c6971",
174
- "sourceTree": "1a8f10b3166397e65f47d43472abb70367374d4c",
173
+ "sourceCommit": "c08cb2e85827e3b8565225208284933d97256d5f",
174
+ "sourceTree": "3cca44f889324a87400993c4e727c840e7cdc07e",
175
175
  "repository": "Tiinex/core",
176
- "previousVersion": "0.4.0"
176
+ "previousVersion": "0.6.0"
177
177
  }
178
178
  }
@@ -142,7 +142,7 @@ export async function prepareHandoffManufactureCliCommand(parsed = {}, runtime =
142
142
 
143
143
  export async function materializeHandoffManufactureCliOutput(result = {}, flags = {}) {
144
144
  const workspaceMode = String(result.carrierProjection?.mode || '') === 'workspace';
145
- let humanOutput = workspaceMode ? projectWorkspaceCarrierHumanOutput(result) : projectHandoffHumanOutput({
145
+ let humanOutput = workspaceMode ? projectWorkspaceCarrierHumanOutput(result, flags) : projectHandoffHumanOutput({
146
146
  projection: result.carrierProjection || {},
147
147
  route: flags.route || '',
148
148
  collisionInstance: flags['collision-instance'] || 1
@@ -172,6 +172,7 @@ async function prepareWorkspaceCarrierCliCommand(flags = {}, workspaceRoot = '.'
172
172
  const additionalWorkspaces = [...splitFlag(flags['additional-workspaces']), ...descriptorArray(workspaceDescriptorValue, 'workspaces')];
173
173
  const verifyRoundtrip = !flags['no-roundtrip'];
174
174
  const carrierProfile = selectCarrierProfile({ operator: operatorCarrierProfile, runtime: runtime.defaultCarrierProfile || null });
175
+ const projectedFilename = String(flags['projected-filename'] || flags.projectedFilename || '').trim();
175
176
  const input = await prepareNodeWorkspaceCarrierManufacturingInput({
176
177
  workspaceRoot,
177
178
  additionalWorkspaces,
@@ -185,17 +186,19 @@ async function prepareWorkspaceCarrierCliCommand(flags = {}, workspaceRoot = '.'
185
186
  bootstrapMaxFiles: flags['bootstrap-max-files'],
186
187
  verifyRoundtrip,
187
188
  createdAt: flags['built-at'] || undefined,
189
+ projectedFilename,
188
190
  carrierLineage: Object.freeze({ ...initialHandoffCarrierLineage(), checkpointKind: 'progression', majorReason: '' }),
189
191
  carrierProfile
190
192
  }, runtime);
191
193
  return { input, options: { verifyRoundtrip, packageInput: { builtAt: flags['built-at'] || undefined } } };
192
194
  }
193
195
 
194
- function projectWorkspaceCarrierHumanOutput(result = {}) {
196
+ function projectWorkspaceCarrierHumanOutput(result = {}, flags = {}) {
195
197
  const projection = result.carrierProjection || {};
196
198
  const ready = result.status === 'ready' && projection.status === 'ready' && projection.mode === 'workspace' && (projection.routes || []).length === 0;
197
199
  const dimension = String(projection.lineage?.dimension || '001');
198
- const filename = `tiinex-${dimension}.handoff-package.zip`;
200
+ const projectedFilename = String(flags['projected-filename'] || flags.projectedFilename || result?.input?.projectedFilename || '').trim();
201
+ const filename = projectedFilename || `tiinex-${dimension}.handoff-package.zip`;
199
202
  return Object.freeze({
200
203
  schema: 'tiinex.portable.handoff-human-output.v1',
201
204
  status: ready ? 'ready' : 'blocked',