@collective-intelligence/extensions-sdk-frontend-react 0.7.1 → 0.8.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.
@@ -292,8 +292,34 @@ export interface WorkflowEditorSection {
292
292
  order?: number;
293
293
  fields?: WorkflowFormField[];
294
294
  }
295
+ /**
296
+ * How many nodes of a template a workflow holds: the JSON form of the SDK
297
+ * `WorkflowNodeInstancePolicy` that the catalog sends.
298
+ */
299
+ export interface WorkflowTemplateInstancePolicy {
300
+ maxInstances?: number;
301
+ minInstances?: number;
302
+ onWorkflowCreate?: boolean;
303
+ }
304
+ /**
305
+ * One named connection slot of a node: the JSON form of the SDK
306
+ * `WorkflowConnectionRequirementDeclaration` that the catalog sends. The
307
+ * bound connection IDs live in the node config at `selector.path`.
308
+ */
309
+ export interface WorkflowTemplateConnectionRequirement {
310
+ cardinality: "many" | "one";
311
+ connectionTemplateFqns: string[];
312
+ key: string;
313
+ required: boolean;
314
+ selector: {
315
+ path: (number | string)[];
316
+ target: "parameter";
317
+ };
318
+ }
295
319
  export interface WorkflowTemplateContract {
296
320
  kind?: string;
321
+ connectionRequirements?: WorkflowTemplateConnectionRequirement[];
322
+ instancePolicy?: WorkflowTemplateInstancePolicy;
297
323
  ports?: WorkflowPortContract[];
298
324
  dynamicPorts?: {
299
325
  input?: WorkflowDynamicPortDeclaration;
@@ -344,6 +370,9 @@ export interface EffectiveWorkflowCatalogTemplate {
344
370
  id: string;
345
371
  /** The catalog category of the template; it picks the tone of the node (an opaque ID for a hosted category). */
346
372
  categoryId?: string;
373
+ /** The node collection that holds the template; the catalog sends `null` for none. */
374
+ nodeCollectionFqn?: string | null;
375
+ nodeCollectionVersion?: string | null;
347
376
  kind: string;
348
377
  fqn: string;
349
378
  version: string;
@@ -220,7 +220,7 @@ Studio search matches file names at once and adds content matches from the seman
220
220
 
221
221
  Agents and Skills search Documents through two built-in tools. Bind them as [AI](../ai/index.md) describes.
222
222
 
223
- - Documents Query (`builtin.core.documents.tools.query`) searches Documents only. Each result has a title, a score, an overview, a snippet and up to three ranked passages with their location. An empty `documentCollections` list searches every readable collection, and `documentId` searches inside one file. Its `coverage` output lists readable files that are still indexing, partial, failed or over budget.
223
+ - Documents Query (`builtin.core.documents.tools.query`) searches Documents only. Each result has a title, a score, an overview and up to three ranked passages with their location. An empty `documentCollections` list searches every readable collection, and `documentId` searches inside one file. Its `coverage` output lists readable files that are still indexing, partial, failed or over budget.
224
224
  - Advanced Information Retrieval (`builtin.core.information.tools.advanced-retrieval`) searches Knowledge and Documents together, and `sources` defaults to both. It comes with Expand Passage and Read Source Range to read the text around a passage. It also returns a file from a Knowledge file field when the reader can read that record.
225
225
 
226
226
  Every search checks the reader's current permissions. A file that the reader may not read looks the same as a file that does not exist.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collective-intelligence/extensions-sdk-frontend-react",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Public hosted React contribution contracts for Collective Intelligence extensions.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -80,12 +80,12 @@
80
80
  "type-check": "bun check --no-script -p tsconfig.json && bun check --no-script -p tsconfig.type-tests.json"
81
81
  },
82
82
  "dependencies": {
83
- "@collective-intelligence/effect-xstate": "0.7.1",
84
- "@collective-intelligence/extensions-sdk": "0.7.1",
85
- "@collective-intelligence/extensions-sdk-frontend": "0.7.1"
83
+ "@collective-intelligence/effect-xstate": "0.8.0",
84
+ "@collective-intelligence/extensions-sdk": "0.8.0",
85
+ "@collective-intelligence/extensions-sdk-frontend": "0.8.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@collective-intelligence/ui-react": "0.7.1",
88
+ "@collective-intelligence/ui-react": "0.8.0",
89
89
  "@tanstack/react-query": ">=5 <6",
90
90
  "@xyflow/react": ">=12 <13",
91
91
  "effect": "^4.1.0",
@@ -102,7 +102,7 @@
102
102
  "access": "public"
103
103
  },
104
104
  "devDependencies": {
105
- "@collective-intelligence/ui-react": "0.7.1",
105
+ "@collective-intelligence/ui-react": "0.8.0",
106
106
  "@effect/eslint-plugin": "0.3.2",
107
107
  "@effect/vitest": "4.1.4",
108
108
  "@hey-api/openapi-ts": "^0.96.0",
@@ -130,5 +130,5 @@
130
130
  "vitest": "5.0.2",
131
131
  "xstate": "5.33.3"
132
132
  },
133
- "gitHead": "822e4e2a259aa39e865d40504f6ac1e85d9c182a"
133
+ "gitHead": "a481c0e882c382d120b9b121696b28a4c373dc40"
134
134
  }