@arcforge/types 2.0.98 → 2.0.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/types",
3
- "version": "2.0.98",
3
+ "version": "2.0.100",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./src/index.ts",
@@ -14,10 +14,7 @@
14
14
  "tsconfig.base.json"
15
15
  ],
16
16
  "scripts": {
17
- "deploy": "bun publish --access public",
18
- "deploy:patch": "npm version patch && bun publish --access public",
19
- "deploy:minor": "npm version minor && bun publish --access public",
20
- "deploy:major": "npm version major && bun publish --access public"
17
+ "deploy": "echo \"This package is published ONLY by apps/tui/scripts/release.ts, which pins workspace:* deps to concrete versions first. Publishing it directly ships an unresolvable dependency.\" && exit 1"
21
18
  },
22
19
  "dependencies": {
23
20
  "h3": "^1.13.0"
@@ -1,3 +1,3 @@
1
- export type { CognetConfig, CognetDefinition } from "./cognet"
1
+ export type { CognetConfig, CognetDefinition, CognetSchedule } from "./cognet"
2
2
  export type { CognetBlueprint } from "./blueprint"
3
3
  export type { CognetHooks, CognetHookName, CognetPlugin, CognetPluginContext } from "./hooks"
package/src/handle.ts CHANGED
@@ -54,6 +54,24 @@ export type CapsuleDelegate = {
54
54
  interrupt(): void
55
55
  }
56
56
 
57
+ /**
58
+ * The embedding host an agent can call back into — a TUI, a server, another
59
+ * agent. Absent when nothing is hosting this runtime.
60
+ *
61
+ * Lives here rather than beside the composition root because the KERNEL takes
62
+ * it as an injected collaborator: a type owned by Axon() would make ring 0
63
+ * import its own composition root, which becomes a circular package dependency
64
+ * the moment the kernel is extracted.
65
+ */
66
+ export type AxonHost = {
67
+ call(request: {
68
+ callerSessionId: string
69
+ method: string
70
+ input: unknown
71
+ signal: AbortSignal
72
+ }): Promise<unknown>
73
+ }
74
+
57
75
  export type EngineDelegate = {
58
76
  /** Tool execution target. Absent/undefined = no capsule attached; capsule RPCs reject loudly. */
59
77
  capsule?: () => CapsuleDelegate | undefined