@volter/twin-telegram 1.0.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/LICENSE +202 -0
- package/README.md +53 -0
- package/dist/generated/pack-facts.json +53 -0
- package/dist/journeys/coverage.json +138 -0
- package/dist/journeys/customer-life.json +1229 -0
- package/dist/journeys/customer-life.outline.md +99 -0
- package/dist/journeys/customer-life.outline.verdict.json +76 -0
- package/dist/journeys/customer-life.verdict.json +134 -0
- package/dist/journeys/decisions.json +95 -0
- package/dist/journeys/demand.json +152 -0
- package/dist/journeys/score.json +163 -0
- package/dist/journeys/unreachable.json +29 -0
- package/dist/journeys/vendor-examples.json +1554 -0
- package/dist/journeys/vendor-examples.verdict.json +14 -0
- package/dist/spec/SOURCE.md +51 -0
- package/dist/spec/bot-api.html.gz +0 -0
- package/dist/spec/doc-examples.json +344 -0
- package/dist/spec/grouping.json +1 -0
- package/dist/spec/openapi.json.gz +0 -0
- package/dist/spec/page-to-openapi.ts +258 -0
- package/dist/spec/patches.json +289 -0
- package/dist/spec/sources.json +416 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +21 -0
- package/dist/src/engine/media.d.ts +17 -0
- package/dist/src/engine/media.js +75 -0
- package/dist/src/engine/text.d.ts +45 -0
- package/dist/src/engine/text.js +512 -0
- package/dist/src/fetch.d.ts +2 -0
- package/dist/src/fetch.js +17 -0
- package/dist/src/generated/surface.gen.json +1 -0
- package/dist/src/generated/ui.gen.json +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +9 -0
- package/dist/src/manifest.d.ts +2 -0
- package/dist/src/manifest.js +104 -0
- package/dist/src/semantics/around.d.ts +2 -0
- package/dist/src/semantics/around.js +32 -0
- package/dist/src/semantics/available-methods.d.ts +12 -0
- package/dist/src/semantics/available-methods.js +266 -0
- package/dist/src/semantics/doors.d.ts +18 -0
- package/dist/src/semantics/doors.js +292 -0
- package/dist/src/semantics/getting-updates.d.ts +3 -0
- package/dist/src/semantics/getting-updates.js +68 -0
- package/dist/src/semantics/index.d.ts +2 -0
- package/dist/src/semantics/index.js +19 -0
- package/dist/src/semantics/shared.d.ts +112 -0
- package/dist/src/semantics/shared.js +424 -0
- package/dist/src/semantics/states.d.ts +18 -0
- package/dist/src/semantics/states.js +37 -0
- package/dist/src/semantics/updating-messages.d.ts +2 -0
- package/dist/src/semantics/updating-messages.js +48 -0
- package/dist/src/server.d.ts +7 -0
- package/dist/src/server.js +24 -0
- package/generated/pack-facts.json +53 -0
- package/journeys/coverage.json +138 -0
- package/journeys/customer-life.json +1229 -0
- package/journeys/customer-life.outline.md +99 -0
- package/journeys/customer-life.outline.verdict.json +76 -0
- package/journeys/customer-life.verdict.json +134 -0
- package/journeys/decisions.json +95 -0
- package/journeys/demand.json +152 -0
- package/journeys/score.json +163 -0
- package/journeys/unreachable.json +29 -0
- package/journeys/vendor-examples.json +1554 -0
- package/journeys/vendor-examples.verdict.json +14 -0
- package/package.json +37 -0
- package/spec/SOURCE.md +51 -0
- package/spec/bot-api.html.gz +0 -0
- package/spec/doc-examples.json +344 -0
- package/spec/grouping.json +1 -0
- package/spec/openapi.json.gz +0 -0
- package/spec/page-to-openapi.ts +258 -0
- package/spec/patches.json +289 -0
- package/spec/sources.json +416 -0
- package/src/cli.ts +22 -0
- package/src/engine/media.ts +67 -0
- package/src/engine/text.ts +409 -0
- package/src/fetch.ts +18 -0
- package/src/generated/surface.gen.json +1 -0
- package/src/generated/ui.gen.json +1 -0
- package/src/index.ts +11 -0
- package/src/manifest.ts +114 -0
- package/src/semantics/around.ts +33 -0
- package/src/semantics/available-methods.ts +253 -0
- package/src/semantics/doors.ts +277 -0
- package/src/semantics/getting-updates.ts +64 -0
- package/src/semantics/index.ts +23 -0
- package/src/semantics/shared.ts +428 -0
- package/src/semantics/states.ts +38 -0
- package/src/semantics/updating-messages.ts +41 -0
- package/src/server.ts +17 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"vendor": "telegram",
|
|
3
|
+
"life": {
|
|
4
|
+
"steps": 77,
|
|
5
|
+
"verdict": "plausible",
|
|
6
|
+
"judge": "Claude Code (Claude Agent SDK), model claude-opus-5-5",
|
|
7
|
+
"authors": [
|
|
8
|
+
"Contributor 173"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"failures": [],
|
|
12
|
+
"flags": [],
|
|
13
|
+
"coverage": {
|
|
14
|
+
"vendor": "telegram",
|
|
15
|
+
"missing": 1,
|
|
16
|
+
"stale": [],
|
|
17
|
+
"code": {
|
|
18
|
+
"lines": 1171,
|
|
19
|
+
"run": 1155,
|
|
20
|
+
"recorded": 15,
|
|
21
|
+
"missing": 1
|
|
22
|
+
},
|
|
23
|
+
"state": {
|
|
24
|
+
"declared": 4,
|
|
25
|
+
"reached": 4,
|
|
26
|
+
"recorded": 0,
|
|
27
|
+
"missing": [],
|
|
28
|
+
"undeclared": []
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
{
|
|
32
|
+
"file": "semantics/doors.ts",
|
|
33
|
+
"lines": {
|
|
34
|
+
"found": 201,
|
|
35
|
+
"hit": 198
|
|
36
|
+
},
|
|
37
|
+
"missing": []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"file": "semantics/states.ts",
|
|
41
|
+
"lines": {
|
|
42
|
+
"found": 18,
|
|
43
|
+
"hit": 18
|
|
44
|
+
},
|
|
45
|
+
"missing": []
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"file": "semantics/getting-updates.ts",
|
|
49
|
+
"lines": {
|
|
50
|
+
"found": 33,
|
|
51
|
+
"hit": 33
|
|
52
|
+
},
|
|
53
|
+
"missing": []
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"file": "semantics/available-methods.ts",
|
|
57
|
+
"lines": {
|
|
58
|
+
"found": 159,
|
|
59
|
+
"hit": 159
|
|
60
|
+
},
|
|
61
|
+
"missing": []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"file": "semantics/shared.ts",
|
|
65
|
+
"lines": {
|
|
66
|
+
"found": 239,
|
|
67
|
+
"hit": 236
|
|
68
|
+
},
|
|
69
|
+
"missing": [
|
|
70
|
+
{
|
|
71
|
+
"from": 237,
|
|
72
|
+
"to": 237,
|
|
73
|
+
"fn": "formatted"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"file": "semantics/updating-messages.ts",
|
|
79
|
+
"lines": {
|
|
80
|
+
"found": 25,
|
|
81
|
+
"hit": 25
|
|
82
|
+
},
|
|
83
|
+
"missing": []
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"file": "semantics/around.ts",
|
|
87
|
+
"lines": {
|
|
88
|
+
"found": 18,
|
|
89
|
+
"hit": 18
|
|
90
|
+
},
|
|
91
|
+
"missing": []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"file": "semantics/index.ts",
|
|
95
|
+
"lines": {
|
|
96
|
+
"found": 19,
|
|
97
|
+
"hit": 19
|
|
98
|
+
},
|
|
99
|
+
"missing": []
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"file": "manifest.ts",
|
|
103
|
+
"lines": {
|
|
104
|
+
"found": 63,
|
|
105
|
+
"hit": 63
|
|
106
|
+
},
|
|
107
|
+
"missing": []
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"file": "index.ts",
|
|
111
|
+
"lines": {
|
|
112
|
+
"found": 7,
|
|
113
|
+
"hit": 7
|
|
114
|
+
},
|
|
115
|
+
"missing": []
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"file": "engine/text.ts",
|
|
119
|
+
"lines": {
|
|
120
|
+
"found": 317,
|
|
121
|
+
"hit": 317
|
|
122
|
+
},
|
|
123
|
+
"missing": []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"file": "engine/media.ts",
|
|
127
|
+
"lines": {
|
|
128
|
+
"found": 45,
|
|
129
|
+
"hit": 45
|
|
130
|
+
},
|
|
131
|
+
"missing": []
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"file": "server.ts",
|
|
135
|
+
"lines": {
|
|
136
|
+
"found": 13,
|
|
137
|
+
"hit": 3
|
|
138
|
+
},
|
|
139
|
+
"missing": []
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"file": "fetch.ts",
|
|
143
|
+
"lines": {
|
|
144
|
+
"found": 14,
|
|
145
|
+
"hit": 14
|
|
146
|
+
},
|
|
147
|
+
"missing": []
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"examples": {
|
|
152
|
+
"done": true,
|
|
153
|
+
"replayed": true,
|
|
154
|
+
"verdict": "plausible",
|
|
155
|
+
"failures": [],
|
|
156
|
+
"line": "examples: 41 published, 0 of patch-removed operations, 0 of operations the twin does not serve, 36 replayed, 5 recorded; 0 failing done: yes"
|
|
157
|
+
},
|
|
158
|
+
"breadth": {
|
|
159
|
+
"operations": 186,
|
|
160
|
+
"gap": 172,
|
|
161
|
+
"handler": 14
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": [
|
|
3
|
+
{
|
|
4
|
+
"file": "server.ts",
|
|
5
|
+
"declarations": [
|
|
6
|
+
"createTelegramTwinServer"
|
|
7
|
+
],
|
|
8
|
+
"world": "host-process",
|
|
9
|
+
"why": "The host process around the fetch: the life and the published examples drive the pack's fetch in their own in-memory Worlds, never this standalone listener; conformance's standalone check starts it and reaches the World's boot probe through it (architecture, Coverage and Conformance)."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"file": "semantics/doors.ts",
|
|
13
|
+
"declarations": [
|
|
14
|
+
"heldBot"
|
|
15
|
+
],
|
|
16
|
+
"world": "door",
|
|
17
|
+
"why": "The twin's own bots door, standing in for BotFather and serving as the World's credential door: asked again for a username it already made (a World booted a second time, init's credential fill run again), it answers that bot and its token as they stand. A walk boots its World once."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"file": "semantics/shared.ts",
|
|
21
|
+
"declarations": [
|
|
22
|
+
"urlUnreachable"
|
|
23
|
+
],
|
|
24
|
+
"world": "sealed-refusal",
|
|
25
|
+
"why": "A photo, video or document sent by an HTTP URL is downloaded by Telegram; a World is sealed, so the twin reaches no URL outside it and answers Telegram's failure for a URL it cannot get. No World of this surface replays the download (spec/doc-examples.json's sendPhoto: an HTTP URL is recorded not replayed for the same reason), and the only application that sends URLs is Postiz with its opt-in Cloudflare storage (journeys/demand.json, optional)."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"state": []
|
|
29
|
+
}
|