@contractspec/lib.contracts-library 1.56.1 → 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.
- package/.turbo/turbo-build.log +32 -13
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +30 -0
- package/dist/browser/index.js +160 -0
- package/dist/browser/templates/index.js +160 -0
- package/dist/browser/templates/messaging.js +58 -0
- package/dist/browser/templates/recipes.js +46 -0
- package/dist/browser/templates/todos.js +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +161 -0
- package/dist/node/index.js +160 -0
- package/dist/node/templates/index.js +160 -0
- package/dist/node/templates/messaging.js +58 -0
- package/dist/node/templates/recipes.js +46 -0
- package/dist/node/templates/todos.js +58 -0
- package/dist/templates/index.d.ts +4 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +161 -0
- package/dist/templates/messaging.d.ts +2 -0
- package/dist/templates/messaging.d.ts.map +1 -0
- package/dist/templates/messaging.js +59 -0
- package/dist/templates/recipes.d.ts +2 -0
- package/dist/templates/recipes.d.ts.map +1 -0
- package/dist/templates/recipes.js +47 -0
- package/dist/templates/todos.d.ts +2 -0
- package/dist/templates/todos.d.ts.map +1 -0
- package/dist/templates/todos.js +59 -0
- package/package.json +63 -15
- package/.turbo/turbo-build$colon$bundle.log +0 -12
- package/dist/index.d.mts +0 -13
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -182
- package/dist/index.mjs.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/templates/recipes.ts
|
|
3
|
+
import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
var OWNERS = ["platform.contractspec-studio"];
|
|
5
|
+
var RecipeCapability = defineCapability({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "template.recipes.browse",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
kind: "api",
|
|
10
|
+
title: "Template Recipe Browser",
|
|
11
|
+
description: "Internationalized recipe browsing, search, and detail operations for template applications.",
|
|
12
|
+
domain: "templates",
|
|
13
|
+
owners: [...OWNERS],
|
|
14
|
+
tags: ["templates", "recipes", "i18n", "content"],
|
|
15
|
+
stability: StabilityEnum.Stable
|
|
16
|
+
},
|
|
17
|
+
provides: [
|
|
18
|
+
{
|
|
19
|
+
surface: "operation",
|
|
20
|
+
key: "template.recipe.list",
|
|
21
|
+
version: "1.0.0",
|
|
22
|
+
description: "List recipes with category, difficulty, and locale filters."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
surface: "operation",
|
|
26
|
+
key: "template.recipe.get",
|
|
27
|
+
version: "1.0.0",
|
|
28
|
+
description: "Fetch a recipe detail view including localized content."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
surface: "operation",
|
|
32
|
+
key: "template.recipe.search",
|
|
33
|
+
version: "1.0.0",
|
|
34
|
+
description: "Search recipes by ingredient, tag, or free text with i18n support."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
surface: "operation",
|
|
38
|
+
key: "template.recipe.favorite",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
description: "Toggle recipe favorites for showcasing personalization patterns."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// src/templates/todos.ts
|
|
47
|
+
import { defineCapability as defineCapability2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
|
|
48
|
+
var OWNERS2 = ["platform.contractspec-studio"];
|
|
49
|
+
var TaskCrudCapability = defineCapability2({
|
|
50
|
+
meta: {
|
|
51
|
+
key: "template.todos.crud",
|
|
52
|
+
version: "1.0.0",
|
|
53
|
+
kind: "api",
|
|
54
|
+
title: "Template Tasks CRUD",
|
|
55
|
+
description: "Create, read, update, delete, and toggle template tasks with categories and priorities.",
|
|
56
|
+
domain: "templates",
|
|
57
|
+
owners: [...OWNERS2],
|
|
58
|
+
tags: ["templates", "todos", "productivity"],
|
|
59
|
+
stability: StabilityEnum2.Stable
|
|
60
|
+
},
|
|
61
|
+
provides: [
|
|
62
|
+
{
|
|
63
|
+
surface: "operation",
|
|
64
|
+
key: "template.task.create",
|
|
65
|
+
version: "1.0.0",
|
|
66
|
+
description: "Create a new task for a Studio project template."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
surface: "operation",
|
|
70
|
+
key: "template.task.update",
|
|
71
|
+
version: "1.0.0",
|
|
72
|
+
description: "Update task metadata such as title, due date, or category."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
surface: "operation",
|
|
76
|
+
key: "template.task.delete",
|
|
77
|
+
version: "1.0.0",
|
|
78
|
+
description: "Delete or archive a task from a template project."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
surface: "operation",
|
|
82
|
+
key: "template.task.toggle",
|
|
83
|
+
version: "1.0.0",
|
|
84
|
+
description: "Mark a task as completed or active."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
surface: "operation",
|
|
88
|
+
key: "template.task.list",
|
|
89
|
+
version: "1.0.0",
|
|
90
|
+
description: "List tasks with filtering, search, and sorting."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
surface: "operation",
|
|
94
|
+
key: "template.task.category",
|
|
95
|
+
version: "1.0.0",
|
|
96
|
+
description: "Manage categories and tags for tasks."
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/templates/messaging.ts
|
|
103
|
+
import { defineCapability as defineCapability3, StabilityEnum as StabilityEnum3 } from "@contractspec/lib.contracts";
|
|
104
|
+
var OWNERS3 = ["platform.contractspec-studio"];
|
|
105
|
+
var MessagingCapability = defineCapability3({
|
|
106
|
+
meta: {
|
|
107
|
+
key: "template.messaging.core",
|
|
108
|
+
version: "1.0.0",
|
|
109
|
+
kind: "api",
|
|
110
|
+
title: "Template Messaging Core",
|
|
111
|
+
description: "Real-time messaging primitives for template applications, including conversations, participants, and delivery events.",
|
|
112
|
+
domain: "templates",
|
|
113
|
+
owners: [...OWNERS3],
|
|
114
|
+
tags: ["templates", "messaging", "realtime"],
|
|
115
|
+
stability: StabilityEnum3.Experimental
|
|
116
|
+
},
|
|
117
|
+
provides: [
|
|
118
|
+
{
|
|
119
|
+
surface: "operation",
|
|
120
|
+
key: "template.messaging.conversation.create",
|
|
121
|
+
version: "1.0.0",
|
|
122
|
+
description: "Create a direct or group conversation scoped to a Studio project."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
surface: "operation",
|
|
126
|
+
key: "template.messaging.conversation.list",
|
|
127
|
+
version: "1.0.0",
|
|
128
|
+
description: "List conversations with pagination, unread counts, and filters."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
surface: "operation",
|
|
132
|
+
key: "template.messaging.message.send",
|
|
133
|
+
version: "1.0.0",
|
|
134
|
+
description: "Send a message with attachments and optimistic delivery state."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
surface: "operation",
|
|
138
|
+
key: "template.messaging.message.read",
|
|
139
|
+
version: "1.0.0",
|
|
140
|
+
description: "Mark messages as read and update participant cursors."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
surface: "event",
|
|
144
|
+
key: "template.messaging.message.received",
|
|
145
|
+
version: "1.0.0",
|
|
146
|
+
description: "Emitted when a participant receives a new message."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
surface: "event",
|
|
150
|
+
key: "template.messaging.typing",
|
|
151
|
+
version: "1.0.0",
|
|
152
|
+
description: "Emitted when a participant is typing in a conversation."
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
156
|
+
});
|
|
157
|
+
export {
|
|
158
|
+
TaskCrudCapability,
|
|
159
|
+
RecipeCapability,
|
|
160
|
+
MessagingCapability
|
|
161
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/templates/messaging.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,sDAuD9B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/templates/messaging.ts
|
|
3
|
+
import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
var OWNERS = ["platform.contractspec-studio"];
|
|
5
|
+
var MessagingCapability = defineCapability({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "template.messaging.core",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
kind: "api",
|
|
10
|
+
title: "Template Messaging Core",
|
|
11
|
+
description: "Real-time messaging primitives for template applications, including conversations, participants, and delivery events.",
|
|
12
|
+
domain: "templates",
|
|
13
|
+
owners: [...OWNERS],
|
|
14
|
+
tags: ["templates", "messaging", "realtime"],
|
|
15
|
+
stability: StabilityEnum.Experimental
|
|
16
|
+
},
|
|
17
|
+
provides: [
|
|
18
|
+
{
|
|
19
|
+
surface: "operation",
|
|
20
|
+
key: "template.messaging.conversation.create",
|
|
21
|
+
version: "1.0.0",
|
|
22
|
+
description: "Create a direct or group conversation scoped to a Studio project."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
surface: "operation",
|
|
26
|
+
key: "template.messaging.conversation.list",
|
|
27
|
+
version: "1.0.0",
|
|
28
|
+
description: "List conversations with pagination, unread counts, and filters."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
surface: "operation",
|
|
32
|
+
key: "template.messaging.message.send",
|
|
33
|
+
version: "1.0.0",
|
|
34
|
+
description: "Send a message with attachments and optimistic delivery state."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
surface: "operation",
|
|
38
|
+
key: "template.messaging.message.read",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
description: "Mark messages as read and update participant cursors."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
surface: "event",
|
|
44
|
+
key: "template.messaging.message.received",
|
|
45
|
+
version: "1.0.0",
|
|
46
|
+
description: "Emitted when a participant receives a new message."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
surface: "event",
|
|
50
|
+
key: "template.messaging.typing",
|
|
51
|
+
version: "1.0.0",
|
|
52
|
+
description: "Emitted when a participant is typing in a conversation."
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
MessagingCapability
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/templates/recipes.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,sDA2C3B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/templates/recipes.ts
|
|
3
|
+
import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
var OWNERS = ["platform.contractspec-studio"];
|
|
5
|
+
var RecipeCapability = defineCapability({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "template.recipes.browse",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
kind: "api",
|
|
10
|
+
title: "Template Recipe Browser",
|
|
11
|
+
description: "Internationalized recipe browsing, search, and detail operations for template applications.",
|
|
12
|
+
domain: "templates",
|
|
13
|
+
owners: [...OWNERS],
|
|
14
|
+
tags: ["templates", "recipes", "i18n", "content"],
|
|
15
|
+
stability: StabilityEnum.Stable
|
|
16
|
+
},
|
|
17
|
+
provides: [
|
|
18
|
+
{
|
|
19
|
+
surface: "operation",
|
|
20
|
+
key: "template.recipe.list",
|
|
21
|
+
version: "1.0.0",
|
|
22
|
+
description: "List recipes with category, difficulty, and locale filters."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
surface: "operation",
|
|
26
|
+
key: "template.recipe.get",
|
|
27
|
+
version: "1.0.0",
|
|
28
|
+
description: "Fetch a recipe detail view including localized content."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
surface: "operation",
|
|
32
|
+
key: "template.recipe.search",
|
|
33
|
+
version: "1.0.0",
|
|
34
|
+
description: "Search recipes by ingredient, tag, or free text with i18n support."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
surface: "operation",
|
|
38
|
+
key: "template.recipe.favorite",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
description: "Toggle recipe favorites for showcasing personalization patterns."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
RecipeCapability
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todos.d.ts","sourceRoot":"","sources":["../../src/templates/todos.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,sDAoD7B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/templates/todos.ts
|
|
3
|
+
import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
var OWNERS = ["platform.contractspec-studio"];
|
|
5
|
+
var TaskCrudCapability = defineCapability({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "template.todos.crud",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
kind: "api",
|
|
10
|
+
title: "Template Tasks CRUD",
|
|
11
|
+
description: "Create, read, update, delete, and toggle template tasks with categories and priorities.",
|
|
12
|
+
domain: "templates",
|
|
13
|
+
owners: [...OWNERS],
|
|
14
|
+
tags: ["templates", "todos", "productivity"],
|
|
15
|
+
stability: StabilityEnum.Stable
|
|
16
|
+
},
|
|
17
|
+
provides: [
|
|
18
|
+
{
|
|
19
|
+
surface: "operation",
|
|
20
|
+
key: "template.task.create",
|
|
21
|
+
version: "1.0.0",
|
|
22
|
+
description: "Create a new task for a Studio project template."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
surface: "operation",
|
|
26
|
+
key: "template.task.update",
|
|
27
|
+
version: "1.0.0",
|
|
28
|
+
description: "Update task metadata such as title, due date, or category."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
surface: "operation",
|
|
32
|
+
key: "template.task.delete",
|
|
33
|
+
version: "1.0.0",
|
|
34
|
+
description: "Delete or archive a task from a template project."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
surface: "operation",
|
|
38
|
+
key: "template.task.toggle",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
description: "Mark a task as completed or active."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
surface: "operation",
|
|
44
|
+
key: "template.task.list",
|
|
45
|
+
version: "1.0.0",
|
|
46
|
+
description: "List tasks with filtering, search, and sorting."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
surface: "operation",
|
|
50
|
+
key: "template.task.category",
|
|
51
|
+
version: "1.0.0",
|
|
52
|
+
description: "Manage categories and tags for tasks."
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
requires: [{ key: "studio.project", version: "1.0.0" }]
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
TaskCrudCapability
|
|
59
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.contracts-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
@@ -9,30 +9,78 @@
|
|
|
9
9
|
"lint": "bun run lint:fix",
|
|
10
10
|
"lint:fix": "eslint src --fix",
|
|
11
11
|
"lint:check": "eslint src",
|
|
12
|
-
"build": "bun build:
|
|
13
|
-
"build:bundle": "
|
|
14
|
-
"build:types": "
|
|
12
|
+
"build": "bun run prebuild && bun run build:bundle && bun run build:types",
|
|
13
|
+
"build:bundle": "contractspec-bun-build transpile",
|
|
14
|
+
"build:types": "contractspec-bun-build types",
|
|
15
|
+
"prebuild": "contractspec-bun-build prebuild",
|
|
16
|
+
"typecheck": "tsc --noEmit",
|
|
17
|
+
"dev": "contractspec-bun-build dev"
|
|
15
18
|
},
|
|
16
19
|
"publishConfig": {
|
|
17
20
|
"access": "public",
|
|
18
|
-
"registry": "https://registry.npmjs.org/"
|
|
21
|
+
"registry": "https://registry.npmjs.org/",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"bun": "./dist/index.js",
|
|
26
|
+
"node": "./dist/node/index.mjs",
|
|
27
|
+
"browser": "./dist/browser/index.js",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./templates": {
|
|
31
|
+
"types": "./dist/templates/index.d.ts",
|
|
32
|
+
"bun": "./dist/templates/index.js",
|
|
33
|
+
"node": "./dist/node/templates/index.mjs",
|
|
34
|
+
"browser": "./dist/browser/templates/index.js",
|
|
35
|
+
"default": "./dist/templates/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./templates/index": {
|
|
38
|
+
"types": "./dist/templates/index.d.ts",
|
|
39
|
+
"bun": "./dist/templates/index.js",
|
|
40
|
+
"node": "./dist/node/templates/index.mjs",
|
|
41
|
+
"browser": "./dist/browser/templates/index.js",
|
|
42
|
+
"default": "./dist/templates/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./templates/messaging": {
|
|
45
|
+
"types": "./dist/templates/messaging.d.ts",
|
|
46
|
+
"bun": "./dist/templates/messaging.js",
|
|
47
|
+
"node": "./dist/node/templates/messaging.mjs",
|
|
48
|
+
"browser": "./dist/browser/templates/messaging.js",
|
|
49
|
+
"default": "./dist/templates/messaging.js"
|
|
50
|
+
},
|
|
51
|
+
"./templates/recipes": {
|
|
52
|
+
"types": "./dist/templates/recipes.d.ts",
|
|
53
|
+
"bun": "./dist/templates/recipes.js",
|
|
54
|
+
"node": "./dist/node/templates/recipes.mjs",
|
|
55
|
+
"browser": "./dist/browser/templates/recipes.js",
|
|
56
|
+
"default": "./dist/templates/recipes.js"
|
|
57
|
+
},
|
|
58
|
+
"./templates/todos": {
|
|
59
|
+
"types": "./dist/templates/todos.d.ts",
|
|
60
|
+
"bun": "./dist/templates/todos.js",
|
|
61
|
+
"node": "./dist/node/templates/todos.mjs",
|
|
62
|
+
"browser": "./dist/browser/templates/todos.js",
|
|
63
|
+
"default": "./dist/templates/todos.js"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
19
66
|
},
|
|
20
67
|
"exports": {
|
|
21
|
-
".": "./
|
|
22
|
-
"./templates": "./
|
|
23
|
-
"./templates/
|
|
24
|
-
"./templates/
|
|
68
|
+
".": "./src/index.ts",
|
|
69
|
+
"./templates": "./src/templates/index.ts",
|
|
70
|
+
"./templates/index": "./src/templates/index.ts",
|
|
71
|
+
"./templates/messaging": "./src/templates/messaging.ts",
|
|
72
|
+
"./templates/recipes": "./src/templates/recipes.ts",
|
|
73
|
+
"./templates/todos": "./src/templates/todos.ts"
|
|
25
74
|
},
|
|
26
75
|
"main": "./dist/index.js",
|
|
27
76
|
"types": "./dist/index.d.ts",
|
|
28
77
|
"dependencies": {
|
|
29
|
-
"@contractspec/lib.contracts": "1.
|
|
30
|
-
"@contractspec/lib.schema": "1.
|
|
78
|
+
"@contractspec/lib.contracts": "1.58.0",
|
|
79
|
+
"@contractspec/lib.schema": "1.58.0"
|
|
31
80
|
},
|
|
32
81
|
"devDependencies": {
|
|
33
|
-
"@contractspec/tool.
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"typescript": "^5.9.3"
|
|
82
|
+
"@contractspec/tool.typescript": "1.58.0",
|
|
83
|
+
"typescript": "^5.9.3",
|
|
84
|
+
"@contractspec/tool.bun": "1.57.0"
|
|
37
85
|
}
|
|
38
86
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
$ tsdown
|
|
2
|
-
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
3
|
-
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
4
|
-
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
5
|
-
[34mℹ[39m Build start
|
|
6
|
-
[34mℹ[39m Cleaning 4 files
|
|
7
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m4.64 kB[22m [2m│ gzip: 1.15 kB[22m
|
|
8
|
-
[34mℹ[39m [2mdist/[22mindex.mjs.map [2m6.96 kB[22m [2m│ gzip: 1.45 kB[22m
|
|
9
|
-
[34mℹ[39m [2mdist/[22mindex.d.mts.map [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m0.57 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
11
|
-
[34mℹ[39m 4 files, total: 12.43 kB
|
|
12
|
-
[32m✔[39m Build complete in [32m21661ms[39m
|
package/dist/index.d.mts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
-
|
|
3
|
-
//#region src/templates/recipes.d.ts
|
|
4
|
-
declare const RecipeCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/templates/todos.d.ts
|
|
7
|
-
declare const TaskCrudCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/templates/messaging.d.ts
|
|
10
|
-
declare const MessagingCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { MessagingCapability, RecipeCapability, TaskCrudCapability };
|
|
13
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/templates/recipes.ts","../src/templates/todos.ts","../src/templates/messaging.ts"],"sourcesContent":[],"mappings":";;;cAIa,kBA2CX,4BAAA,CA3C2B;;;cCAhB,oBAoDX,4BAAA,CApD6B;;;cCAlB,qBAuDX,4BAAA,CAvD8B"}
|
package/dist/index.mjs
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
|
|
2
|
-
|
|
3
|
-
//#region src/templates/recipes.ts
|
|
4
|
-
const OWNERS$2 = ["platform.contractspec-studio"];
|
|
5
|
-
const RecipeCapability = defineCapability({
|
|
6
|
-
meta: {
|
|
7
|
-
key: "template.recipes.browse",
|
|
8
|
-
version: "1.0.0",
|
|
9
|
-
kind: "api",
|
|
10
|
-
title: "Template Recipe Browser",
|
|
11
|
-
description: "Internationalized recipe browsing, search, and detail operations for template applications.",
|
|
12
|
-
domain: "templates",
|
|
13
|
-
owners: [...OWNERS$2],
|
|
14
|
-
tags: [
|
|
15
|
-
"templates",
|
|
16
|
-
"recipes",
|
|
17
|
-
"i18n",
|
|
18
|
-
"content"
|
|
19
|
-
],
|
|
20
|
-
stability: StabilityEnum.Stable
|
|
21
|
-
},
|
|
22
|
-
provides: [
|
|
23
|
-
{
|
|
24
|
-
surface: "operation",
|
|
25
|
-
key: "template.recipe.list",
|
|
26
|
-
version: "1.0.0",
|
|
27
|
-
description: "List recipes with category, difficulty, and locale filters."
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
surface: "operation",
|
|
31
|
-
key: "template.recipe.get",
|
|
32
|
-
version: "1.0.0",
|
|
33
|
-
description: "Fetch a recipe detail view including localized content."
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
surface: "operation",
|
|
37
|
-
key: "template.recipe.search",
|
|
38
|
-
version: "1.0.0",
|
|
39
|
-
description: "Search recipes by ingredient, tag, or free text with i18n support."
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
surface: "operation",
|
|
43
|
-
key: "template.recipe.favorite",
|
|
44
|
-
version: "1.0.0",
|
|
45
|
-
description: "Toggle recipe favorites for showcasing personalization patterns."
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
requires: [{
|
|
49
|
-
key: "studio.project",
|
|
50
|
-
version: "1.0.0"
|
|
51
|
-
}]
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/templates/todos.ts
|
|
56
|
-
const OWNERS$1 = ["platform.contractspec-studio"];
|
|
57
|
-
const TaskCrudCapability = defineCapability({
|
|
58
|
-
meta: {
|
|
59
|
-
key: "template.todos.crud",
|
|
60
|
-
version: "1.0.0",
|
|
61
|
-
kind: "api",
|
|
62
|
-
title: "Template Tasks CRUD",
|
|
63
|
-
description: "Create, read, update, delete, and toggle template tasks with categories and priorities.",
|
|
64
|
-
domain: "templates",
|
|
65
|
-
owners: [...OWNERS$1],
|
|
66
|
-
tags: [
|
|
67
|
-
"templates",
|
|
68
|
-
"todos",
|
|
69
|
-
"productivity"
|
|
70
|
-
],
|
|
71
|
-
stability: StabilityEnum.Stable
|
|
72
|
-
},
|
|
73
|
-
provides: [
|
|
74
|
-
{
|
|
75
|
-
surface: "operation",
|
|
76
|
-
key: "template.task.create",
|
|
77
|
-
version: "1.0.0",
|
|
78
|
-
description: "Create a new task for a Studio project template."
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
surface: "operation",
|
|
82
|
-
key: "template.task.update",
|
|
83
|
-
version: "1.0.0",
|
|
84
|
-
description: "Update task metadata such as title, due date, or category."
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
surface: "operation",
|
|
88
|
-
key: "template.task.delete",
|
|
89
|
-
version: "1.0.0",
|
|
90
|
-
description: "Delete or archive a task from a template project."
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
surface: "operation",
|
|
94
|
-
key: "template.task.toggle",
|
|
95
|
-
version: "1.0.0",
|
|
96
|
-
description: "Mark a task as completed or active."
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
surface: "operation",
|
|
100
|
-
key: "template.task.list",
|
|
101
|
-
version: "1.0.0",
|
|
102
|
-
description: "List tasks with filtering, search, and sorting."
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
surface: "operation",
|
|
106
|
-
key: "template.task.category",
|
|
107
|
-
version: "1.0.0",
|
|
108
|
-
description: "Manage categories and tags for tasks."
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
requires: [{
|
|
112
|
-
key: "studio.project",
|
|
113
|
-
version: "1.0.0"
|
|
114
|
-
}]
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/templates/messaging.ts
|
|
119
|
-
const OWNERS = ["platform.contractspec-studio"];
|
|
120
|
-
const MessagingCapability = defineCapability({
|
|
121
|
-
meta: {
|
|
122
|
-
key: "template.messaging.core",
|
|
123
|
-
version: "1.0.0",
|
|
124
|
-
kind: "api",
|
|
125
|
-
title: "Template Messaging Core",
|
|
126
|
-
description: "Real-time messaging primitives for template applications, including conversations, participants, and delivery events.",
|
|
127
|
-
domain: "templates",
|
|
128
|
-
owners: [...OWNERS],
|
|
129
|
-
tags: [
|
|
130
|
-
"templates",
|
|
131
|
-
"messaging",
|
|
132
|
-
"realtime"
|
|
133
|
-
],
|
|
134
|
-
stability: StabilityEnum.Experimental
|
|
135
|
-
},
|
|
136
|
-
provides: [
|
|
137
|
-
{
|
|
138
|
-
surface: "operation",
|
|
139
|
-
key: "template.messaging.conversation.create",
|
|
140
|
-
version: "1.0.0",
|
|
141
|
-
description: "Create a direct or group conversation scoped to a Studio project."
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
surface: "operation",
|
|
145
|
-
key: "template.messaging.conversation.list",
|
|
146
|
-
version: "1.0.0",
|
|
147
|
-
description: "List conversations with pagination, unread counts, and filters."
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
surface: "operation",
|
|
151
|
-
key: "template.messaging.message.send",
|
|
152
|
-
version: "1.0.0",
|
|
153
|
-
description: "Send a message with attachments and optimistic delivery state."
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
surface: "operation",
|
|
157
|
-
key: "template.messaging.message.read",
|
|
158
|
-
version: "1.0.0",
|
|
159
|
-
description: "Mark messages as read and update participant cursors."
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
surface: "event",
|
|
163
|
-
key: "template.messaging.message.received",
|
|
164
|
-
version: "1.0.0",
|
|
165
|
-
description: "Emitted when a participant receives a new message."
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
surface: "event",
|
|
169
|
-
key: "template.messaging.typing",
|
|
170
|
-
version: "1.0.0",
|
|
171
|
-
description: "Emitted when a participant is typing in a conversation."
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
requires: [{
|
|
175
|
-
key: "studio.project",
|
|
176
|
-
version: "1.0.0"
|
|
177
|
-
}]
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
//#endregion
|
|
181
|
-
export { MessagingCapability, RecipeCapability, TaskCrudCapability };
|
|
182
|
-
//# sourceMappingURL=index.mjs.map
|