dynworkflow 0.1.0__tar.gz → 0.1.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dynworkflow
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Dynamic Workflow Library for Alkaid0
5
5
  Author: cxykevin
6
6
  Author-email: cxykevin <cxykevin@yeah.net>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dynworkflow"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "Dynamic Workflow Library for Alkaid0"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "cxykevin", email = "cxykevin@yeah.net" }]
@@ -509,7 +509,7 @@ class AgentClient:
509
509
  def _initialize(self, connection: _ACPConnection | _ACPWebSocketConnection) -> InitializeResult:
510
510
  params: InitializeParams = {
511
511
  "protocolVersion": self.protocol_version,
512
- "capabilities": {},
512
+ "capabilities": {"dyn.cxykevin.top": {}},
513
513
  "info": {"name": "dynworkflow", "title": "dynworkflow", "version": "0.1.0"},
514
514
  }
515
515
  result = connection.request("initialize", cast(JsonObject, params))
@@ -531,6 +531,8 @@ class AgentClient:
531
531
  "cwd": str(pathlib.Path(cwd).expanduser().resolve()),
532
532
  "mcpServers": [] if mcp_servers is None else mcp_servers,
533
533
  }
534
+ # The extension field is ACP metadata at the session params root.
535
+ cast(JsonObject, params)["dyn.cxykevin.top/hidden"] = True
534
536
  return params
535
537
 
536
538
  @staticmethod
@@ -615,6 +615,8 @@ class Flow:
615
615
 
616
616
  def run(self, *tasks: Execute) -> NoReturn:
617
617
  """Node.run() 在 fork 子进程执行工作流,主进程监听 stdin JSONL。"""
618
+ sys.stdout.write("\x1edynworkflow\x1f\n")
619
+ sys.stdout.flush()
618
620
  self._report = True
619
621
  if self._reporter is None:
620
622
  self._reporter = optional_reporter(True)
File without changes