@contractspec/lib.contracts-library 1.57.0 → 1.58.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.
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["OWNERS","OWNERS"],"sources":["../src/templates/recipes.ts","../src/templates/todos.ts","../src/templates/messaging.ts"],"sourcesContent":["import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nconst OWNERS = ['platform.contractspec-studio'] as const;\n\nexport const RecipeCapability = defineCapability({\n meta: {\n key: 'template.recipes.browse',\n version: '1.0.0',\n kind: 'api',\n title: 'Template Recipe Browser',\n description:\n 'Internationalized recipe browsing, search, and detail operations for template applications.',\n domain: 'templates',\n owners: [...OWNERS],\n tags: ['templates', 'recipes', 'i18n', 'content'],\n stability: StabilityEnum.Stable,\n },\n provides: [\n {\n surface: 'operation',\n key: 'template.recipe.list',\n version: '1.0.0',\n description:\n 'List recipes with category, difficulty, and locale filters.',\n },\n {\n surface: 'operation',\n key: 'template.recipe.get',\n version: '1.0.0',\n description: 'Fetch a recipe detail view including localized content.',\n },\n {\n surface: 'operation',\n key: 'template.recipe.search',\n version: '1.0.0',\n description:\n 'Search recipes by ingredient, tag, or free text with i18n support.',\n },\n {\n surface: 'operation',\n key: 'template.recipe.favorite',\n version: '1.0.0',\n description:\n 'Toggle recipe favorites for showcasing personalization patterns.',\n },\n ],\n requires: [{ key: 'studio.project', version: '1.0.0' }],\n});\n","import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nconst OWNERS = ['platform.contractspec-studio'] as const;\n\nexport const TaskCrudCapability = defineCapability({\n meta: {\n key: 'template.todos.crud',\n version: '1.0.0',\n kind: 'api',\n title: 'Template Tasks CRUD',\n description:\n 'Create, read, update, delete, and toggle template tasks with categories and priorities.',\n domain: 'templates',\n owners: [...OWNERS],\n tags: ['templates', 'todos', 'productivity'],\n stability: StabilityEnum.Stable,\n },\n provides: [\n {\n surface: 'operation',\n key: 'template.task.create',\n version: '1.0.0',\n description: 'Create a new task for a Studio project template.',\n },\n {\n surface: 'operation',\n key: 'template.task.update',\n version: '1.0.0',\n description: 'Update task metadata such as title, due date, or category.',\n },\n {\n surface: 'operation',\n key: 'template.task.delete',\n version: '1.0.0',\n description: 'Delete or archive a task from a template project.',\n },\n {\n surface: 'operation',\n key: 'template.task.toggle',\n version: '1.0.0',\n description: 'Mark a task as completed or active.',\n },\n {\n surface: 'operation',\n key: 'template.task.list',\n version: '1.0.0',\n description: 'List tasks with filtering, search, and sorting.',\n },\n {\n surface: 'operation',\n key: 'template.task.category',\n version: '1.0.0',\n description: 'Manage categories and tags for tasks.',\n },\n ],\n requires: [{ key: 'studio.project', version: '1.0.0' }],\n});\n","import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nconst OWNERS = ['platform.contractspec-studio'] as const;\n\nexport const MessagingCapability = defineCapability({\n meta: {\n key: 'template.messaging.core',\n version: '1.0.0',\n kind: 'api',\n title: 'Template Messaging Core',\n description:\n 'Real-time messaging primitives for template applications, including conversations, participants, and delivery events.',\n domain: 'templates',\n owners: [...OWNERS],\n tags: ['templates', 'messaging', 'realtime'],\n stability: StabilityEnum.Experimental,\n },\n provides: [\n {\n surface: 'operation',\n key: 'template.messaging.conversation.create',\n version: '1.0.0',\n description:\n 'Create a direct or group conversation scoped to a Studio project.',\n },\n {\n surface: 'operation',\n key: 'template.messaging.conversation.list',\n version: '1.0.0',\n description:\n 'List conversations with pagination, unread counts, and filters.',\n },\n {\n surface: 'operation',\n key: 'template.messaging.message.send',\n version: '1.0.0',\n description:\n 'Send a message with attachments and optimistic delivery state.',\n },\n {\n surface: 'operation',\n key: 'template.messaging.message.read',\n version: '1.0.0',\n description: 'Mark messages as read and update participant cursors.',\n },\n {\n surface: 'event',\n key: 'template.messaging.message.received',\n version: '1.0.0',\n description: 'Emitted when a participant receives a new message.',\n },\n {\n surface: 'event',\n key: 'template.messaging.typing',\n version: '1.0.0',\n description: 'Emitted when a participant is typing in a conversation.',\n },\n ],\n requires: [{ key: 'studio.project', version: '1.0.0' }],\n});\n"],"mappings":";;;AAEA,MAAMA,WAAS,CAAC,+BAA+B;AAE/C,MAAa,mBAAmB,iBAAiB;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,GAAGA,SAAO;EACnB,MAAM;GAAC;GAAa;GAAW;GAAQ;GAAU;EACjD,WAAW,cAAc;EAC1B;CACD,UAAU;EACR;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aACE;GACH;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aACE;GACH;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aACE;GACH;EACF;CACD,UAAU,CAAC;EAAE,KAAK;EAAkB,SAAS;EAAS,CAAC;CACxD,CAAC;;;;AC7CF,MAAMC,WAAS,CAAC,+BAA+B;AAE/C,MAAa,qBAAqB,iBAAiB;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,GAAGA,SAAO;EACnB,MAAM;GAAC;GAAa;GAAS;GAAe;EAC5C,WAAW,cAAc;EAC1B;CACD,UAAU;EACR;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACD;GACE,SAAS;GACT,KAAK;GACL,SAAS;GACT,aAAa;GACd;EACF;CACD,UAAU,CAAC;EAAE,KAAK;EAAkB,SAAS;EAAS,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