@23blocks/block-jarvis 3.0.1 → 3.1.1

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/dist/index.esm.js CHANGED
@@ -87,7 +87,7 @@ const agentMapper = {
87
87
  type: 'Agent',
88
88
  map: (resource)=>({
89
89
  id: resource.id,
90
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
90
+ uniqueId: parseString(resource.attributes['unique_id']),
91
91
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
92
92
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
93
93
  code: parseString(resource.attributes['code']) || '',
@@ -193,7 +193,7 @@ const promptMapper = {
193
193
  type: 'Prompt',
194
194
  map: (resource)=>({
195
195
  id: resource.id,
196
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
196
+ uniqueId: parseString(resource.attributes['unique_id']),
197
197
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
198
198
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
199
199
  agentUniqueId: parseString(resource.attributes['agent_unique_id']),
@@ -292,7 +292,7 @@ const workflowMapper = {
292
292
  type: 'Workflow',
293
293
  map: (resource)=>({
294
294
  id: resource.id,
295
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
295
+ uniqueId: parseString(resource.attributes['unique_id']),
296
296
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
297
297
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
298
298
  code: parseString(resource.attributes['code']) || '',
@@ -380,7 +380,7 @@ const executionMapper = {
380
380
  type: 'Execution',
381
381
  map: (resource)=>({
382
382
  id: resource.id,
383
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
383
+ uniqueId: parseString(resource.attributes['unique_id']),
384
384
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
385
385
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
386
386
  agentUniqueId: parseString(resource.attributes['agent_unique_id']),
@@ -449,7 +449,7 @@ const conversationMapper = {
449
449
  type: 'Conversation',
450
450
  map: (resource)=>({
451
451
  id: resource.id,
452
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
452
+ uniqueId: parseString(resource.attributes['unique_id']),
453
453
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
454
454
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
455
455
  agentUniqueId: parseString(resource.attributes['agent_unique_id']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-jarvis",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "description": "Jarvis AI block for 23blocks SDK - agents, prompts, workflows, executions, conversations",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",