@iconicompany/iagent-contracts 0.3.0 → 0.5.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/README.md CHANGED
@@ -11,3 +11,7 @@ const handle = await startContract(client, deliverMessage, input, { id: "italent
11
11
  ```
12
12
 
13
13
  Каталог (JSON Schema и страница с диаграммой) — `docs/contracts/` репозитория iagent; `bun run test` сверяет его с кодом.
14
+
15
+ ## Встроенный чат
16
+
17
+ `import { EMBED_TOOL_META } from "@iconicompany/iagent-contracts/embed"` — ключ `_meta` MCP, которым продукт допускает инструмент во встроенный чат iagent (AC-AGT-21.12): `_meta: { [EMBED_TOOL_META]: true }`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iconicompany/iagent-contracts",
3
- "version": "0.3.0",
4
- "description": "Контракты процессов очереди исходящих iagent для соседей: схемы входа и исходов",
3
+ "version": "0.5.0",
4
+ "description": "Контракты iagent для соседей: процессы очереди исходящих (схемы входа и исходов) и ключ допуска инструмента во встроенный чат",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "publishConfig": {
@@ -12,7 +12,8 @@
12
12
  "README.md"
13
13
  ],
14
14
  "exports": {
15
- ".": "./src/index.ts"
15
+ ".": "./src/index.ts",
16
+ "./embed": "./src/embed.ts"
16
17
  },
17
18
  "scripts": {
18
19
  "contracts": "iworkflow-contracts src/index.ts --out ../../docs/contracts",
@@ -20,12 +21,12 @@
20
21
  "type-check": "tsc --noEmit"
21
22
  },
22
23
  "devDependencies": {
23
- "@iworkflow/core": "0.16.4",
24
+ "@iworkflow/core": "0.18.0",
24
25
  "@sinclair/typebox": "^0.34.0",
25
26
  "@types/bun": "1.4.0"
26
27
  },
27
28
  "peerDependencies": {
28
- "@iworkflow/core": "^0.16.0",
29
+ "@iworkflow/core": "^0.18.0",
29
30
  "@sinclair/typebox": "^0.34.0"
30
31
  }
31
32
  }
package/src/embed.ts ADDED
@@ -0,0 +1,2 @@
1
+ /** Признак `_meta` MCP: инструмент продукта допущен во встроенный чат iagent (AC-AGT-21.12). */
2
+ export const EMBED_TOOL_META = "com.iconicompany.iagent/embed";
package/src/outbound.ts CHANGED
@@ -57,7 +57,7 @@ const delivery = T.Object({
57
57
  message: T.String(),
58
58
  retryAfterSeconds: T.Optional(T.Number()),
59
59
  failure: T.Optional(
60
- T.Union([T.Literal("flood-wait"), T.Literal("peer-flood"), T.Literal("busy"), T.Literal("daily-cap"), T.Literal("error")]),
60
+ T.Union([T.Literal("flood-wait"), T.Literal("peer-flood"), T.Literal("busy"), T.Literal("daily-cap"), T.Literal("channel-disabled"), T.Literal("error")]),
61
61
  ),
62
62
  telegram: T.Optional(
63
63
  T.Object({ telegramId: T.String(), username: T.Optional(T.String()), mutualContact: T.Union([T.Boolean(), T.Null()]) }),