@particle-academy/fancy-chat-js 0.0.0-stage → 0.2.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/AGENTS.md +56 -0
- package/CHANGELOG.md +140 -0
- package/LICENSE +21 -0
- package/README.md +93 -2
- package/conformance/chat-v1.json +619 -0
- package/contract/machines.json +76 -0
- package/dist/index.cjs +1024 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +604 -0
- package/dist/index.d.ts +604 -0
- package/dist/index.js +981 -0
- package/dist/index.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/package.json +82 -5
- package/scripts/check-install.mjs +53 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": 1,
|
|
3
|
+
"turn": {
|
|
4
|
+
"initial": "pending",
|
|
5
|
+
"states": ["pending", "running", "awaiting-human", "cancelling", "settled"],
|
|
6
|
+
"outcomes": ["completed", "failed", "refused", "cancelled", "interrupted"],
|
|
7
|
+
"transitions": [
|
|
8
|
+
{ "from": "pending", "action": "start", "to": "running" },
|
|
9
|
+
{ "from": "running", "action": "park", "to": "awaiting-human" },
|
|
10
|
+
{ "from": "awaiting-human", "action": "resume", "to": "running" },
|
|
11
|
+
{ "from": "pending", "action": "cancel", "to": "cancelling" },
|
|
12
|
+
{ "from": "running", "action": "cancel", "to": "cancelling" },
|
|
13
|
+
{ "from": "awaiting-human", "action": "cancel", "to": "cancelling" },
|
|
14
|
+
{ "from": "cancelling", "action": "cancelled", "to": "settled", "outcome": "cancelled" },
|
|
15
|
+
{ "from": "cancelling", "action": "interrupted", "to": "settled", "outcome": "interrupted" },
|
|
16
|
+
{ "from": "running", "action": "finish", "to": "settled", "outcome": "completed" },
|
|
17
|
+
{ "from": "running", "action": "fail", "to": "settled", "outcome": "failed" },
|
|
18
|
+
{ "from": "running", "action": "refuse", "to": "settled", "outcome": "refused" },
|
|
19
|
+
{ "from": "pending", "action": "fail", "to": "settled", "outcome": "failed" },
|
|
20
|
+
{ "from": "pending", "action": "reap", "to": "settled", "outcome": "failed", "reason": "stalled" },
|
|
21
|
+
{ "from": "running", "action": "reap", "to": "settled", "outcome": "failed", "reason": "stalled" },
|
|
22
|
+
{ "from": "awaiting-human", "action": "reap", "to": "settled", "outcome": "failed", "reason": "stalled" },
|
|
23
|
+
{ "from": "cancelling", "action": "reap", "to": "settled", "outcome": "failed", "reason": "stalled" }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"delivery": {
|
|
27
|
+
"initial": "sending",
|
|
28
|
+
"states": ["sending", "sent", "queued", "steered", "delivered", "decided", "failed", "dropped", "unsent"],
|
|
29
|
+
"final": ["steered", "delivered", "decided", "failed", "dropped", "unsent"],
|
|
30
|
+
"transitions": [
|
|
31
|
+
{ "from": "sending", "action": "ack", "to": "sent" },
|
|
32
|
+
{ "from": "sending", "action": "fail", "to": "failed" },
|
|
33
|
+
{ "from": "sent", "action": "queue", "to": "queued" },
|
|
34
|
+
{ "from": "sent", "action": "steer", "to": "steered" },
|
|
35
|
+
{ "from": "sent", "action": "deliver", "to": "delivered" },
|
|
36
|
+
{ "from": "sent", "action": "drop", "to": "dropped" },
|
|
37
|
+
{ "from": "queued", "action": "steer", "to": "steered" },
|
|
38
|
+
{ "from": "queued", "action": "deliver", "to": "delivered" },
|
|
39
|
+
{ "from": "queued", "action": "drop", "to": "dropped" },
|
|
40
|
+
{ "from": "queued", "action": "unsend", "to": "unsent" },
|
|
41
|
+
{ "from": "sent", "action": "decide", "to": "decided" },
|
|
42
|
+
{ "from": "queued", "action": "decide", "to": "decided" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"approval": {
|
|
46
|
+
"initial": "pending",
|
|
47
|
+
"states": ["pending", "deciding", "approved", "rejected", "edited", "applied", "apply-failed", "withdrawn", "expired"],
|
|
48
|
+
"final": ["rejected", "applied", "apply-failed", "withdrawn", "expired"],
|
|
49
|
+
"actionable": ["pending"],
|
|
50
|
+
"transitions": [
|
|
51
|
+
{ "from": "pending", "action": "begin-decision", "to": "deciding" },
|
|
52
|
+
{ "from": "deciding", "action": "decision-failed", "to": "pending" },
|
|
53
|
+
{ "from": "deciding", "action": "approve", "to": "approved" },
|
|
54
|
+
{ "from": "deciding", "action": "reject", "to": "rejected" },
|
|
55
|
+
{ "from": "deciding", "action": "edit", "to": "edited" },
|
|
56
|
+
{ "from": "approved", "action": "apply", "to": "applied" },
|
|
57
|
+
{ "from": "edited", "action": "apply", "to": "applied" },
|
|
58
|
+
{ "from": "approved", "action": "apply-fail", "to": "apply-failed" },
|
|
59
|
+
{ "from": "edited", "action": "apply-fail", "to": "apply-failed" },
|
|
60
|
+
{ "from": "pending", "action": "withdraw", "to": "withdrawn" },
|
|
61
|
+
{ "from": "pending", "action": "expire", "to": "expired" }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"reservedTools": {
|
|
65
|
+
"about": "Tool names an agent may never be offered or call: they are the human's confirmation channel. Matched case-insensitively.",
|
|
66
|
+
"exact": ["question_answer", "send_as_human"],
|
|
67
|
+
"contains": ["approv", "confirm", "permission", "decide"]
|
|
68
|
+
},
|
|
69
|
+
"optionKinds": {
|
|
70
|
+
"allow-once": { "tone": "positive", "decision": "approve" },
|
|
71
|
+
"allow-always": { "tone": "positive", "decision": "approve" },
|
|
72
|
+
"reject-once": { "tone": "negative", "decision": "reject" },
|
|
73
|
+
"reject-always": { "tone": "negative", "decision": "reject" },
|
|
74
|
+
"edit": { "tone": "neutral", "decision": "edit" }
|
|
75
|
+
}
|
|
76
|
+
}
|