@toolproof-npm/schema 0.1.40 → 0.1.41

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.
@@ -1150,7 +1150,7 @@
1150
1150
  ],
1151
1151
  "properties": {
1152
1152
  "pendingRef": {
1153
- "$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet materialized at the time of defining the workflow, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
1153
+ "$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
1154
1154
  "$ref": "#/$defs/ResourceSocket"
1155
1155
  }
1156
1156
  }
@@ -522,7 +522,7 @@
522
522
  "type": "object",
523
523
  "properties": {
524
524
  "pendingRef": {
525
- "$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet materialized at the time of defining the workflow, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
525
+ "$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
526
526
  "$ref": "#/$defs/ResourceSocket"
527
527
  }
528
528
  },
@@ -491,7 +491,7 @@
491
491
  "type": "object",
492
492
  "properties": {
493
493
  "pendingRef": {
494
- "$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet materialized at the time of defining the workflow, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
494
+ "$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
495
495
  "$ref": "#/$defs/ResourceSocket"
496
496
  }
497
497
  },
@@ -839,7 +839,7 @@
839
839
  ],
840
840
  "properties": {
841
841
  "pendingRef": {
842
- "$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet materialized at the time of defining the workflow, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
842
+ "$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
843
843
  "$ref": "#ResourceSocket"
844
844
  }
845
845
  }
package/dist/index.d.ts CHANGED
@@ -5,5 +5,5 @@ export type { Resource_ResourceFormat as Resource_ResourceFormatJson } from './_
5
5
  export type { Resource_ResourceType as Resource_ResourceTypeJson } from './_lib/types/Resource_ResourceType.js';
6
6
  export type { Resource_Job as Resource_JobJson } from './_lib/types/Resource_Job.js';
7
7
  export type { Documented as DocumentedJson, ResourceFormatId as ResourceFormatIdJson, ResourceFormat as ResourceFormatJson, ExtractionSchema as ExtractionSchemaJson, ExtractionSchemaValue as ExtractionSchemaValueJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeId as ResourceTypeIdJson, ResourceType as ResourceTypeJson, ResourceRoleId as ResourceRoleIdJson, ResourceRoleValue as ResourceRoleValueJson, ExecutionId as ExecutionIdJson, Execution as ExecutionJson, ConditionalWrapper as ConditionalWrapperJson, RoleMap as RoleMapJson, RolesOuter as RolesOuterJson, RoleBindingMap as RoleBindingMapJson, RoleBindingsOuter as RoleBindingsOuterJson, ResourceId as ResourceIdJson, WorkStepId as WorkStepIdJson, BranchStepId as BranchStepIdJson, WhileStepId as WhileStepIdJson, ForStepId as ForStepIdJson, WorkStep as WorkStepJson, BranchStep as BranchStepJson, WhileStep as WhileStepJson, ForStep as ForStepJson, Step as StepJson, ResourceSocket as ResourceSocketJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
8
- Resource as ResourceJson, StrategyState as StrategyStateJson, StrategyStateValue as StrategyStateValueJson, StatelessStrategyId as StatelessStrategyIdJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyId as StatefulStrategyIdJson, StatefulStrategy as StatefulStrategyJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
8
+ Resource as ResourceJson, StrategyState as StrategyStateJson, StrategyStateValue as StrategyStateValueJson, StatelessStrategyId as StatelessStrategyIdJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyId as StatefulStrategyIdJson, StatefulStrategy as StatefulStrategyJson, JobId as JobIdJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
9
9
  export { unsafeBrand, asResourceTypeId, asResourceRoleId, asExecutionId, asResourceId, asWorkStepId, asBranchStepId, asForStepId, asResourceFormatId, asWhileStepId, asStatelessStrategyId, asStatefulStrategyId, asResourceTypeIds, asResourceRoleIds, asExecutionIds, asResourceIds, asWorkStepIds, asBranchStepIds, asForStepIds, asResourceFormatIds, asWhileStepIds, asStatelessStrategyIds, asStatefulStrategyIds, } from './scripts/brandFactories.js';
@@ -246,7 +246,7 @@ async function main() {
246
246
  ts = ts.replace(/^(export interface IdentityProp[\s\S]*?)(required:\s*\[\{type:\s*"array";\s*contains:\s*\{const:\s*"identity"\};\s*items:\s*\{type:\s*"string"\};\s*uniqueItems:\s*true\}\];)/gm, '$1required?: string[];');
247
247
  // Prune verbose type/interface names produced from absolute $id URLs.
248
248
  // Deterministic pruning based on original $id -> baseName map
249
- // This avoids heuristic truncation that dropped prefixes like Resource / Workflow.
249
+ // This avoids heuristic truncation that dropped prefixes.
250
250
  function idToGeneratedIdentifier(id) {
251
251
  // json-schema-to-typescript seems to create a PascalCase of the URL with protocol prefix
252
252
  // Simplified reconstruction: 'https://' => 'Https', then capitalize path & host segments
@@ -324,8 +324,7 @@ async function main() {
324
324
  // Common form: ^PREFIX-.+$ => PREFIX-${string}
325
325
  const m1 = /^\^([^$]+)\.\+\$/.exec(pattern);
326
326
  if (m1) {
327
- const prefix = m1[1]; // e.g., 'WORKFLOW-'
328
- // Basic safety: ensure backticks/interpolations aren't present
327
+ const prefix = m1[1];
329
328
  if (!/[`]/.test(prefix)) {
330
329
  return '`' + prefix + '${string}`';
331
330
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/schema",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "JSON schemas and TypeScript types for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",