trustgraph-cli 3.0.0rc8__tar.gz → 3.0.0rc10__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.
Files changed (146) hide show
  1. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/PKG-INFO +1 -1
  2. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_action.py +91 -39
  3. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_orchestrator.py +23 -19
  4. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_planner.py +13 -3
  5. trustgraph_cli-3.0.0rc10/trustgraph/cli_version.py +1 -0
  6. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/PKG-INFO +1 -1
  7. trustgraph_cli-3.0.0rc8/trustgraph/cli_version.py +0 -1
  8. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/README.md +0 -0
  9. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/pyproject.toml +0 -0
  10. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/setup.cfg +0 -0
  11. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/__init__.py +0 -0
  12. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/_iam.py +0 -0
  13. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/add_library_document.py +0 -0
  14. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/bootstrap_iam.py +0 -0
  15. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/change_password.py +0 -0
  16. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_api_key.py +0 -0
  17. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_user.py +0 -0
  18. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_workspace.py +0 -0
  19. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_collection.py +0 -0
  20. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_config_item.py +0 -0
  21. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_flow_blueprint.py +0 -0
  22. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_kg_core.py +0 -0
  23. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_mcp_tool.py +0 -0
  24. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_ontology.py +0 -0
  25. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_tool.py +0 -0
  26. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_user.py +0 -0
  27. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/describe_image.py +0 -0
  28. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/disable_user.py +0 -0
  29. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/dump_msgpack.py +0 -0
  30. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/dump_queues.py +0 -0
  31. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/enable_user.py +0 -0
  32. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/export_workspace.py +0 -0
  33. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/export_workspace_config.py +0 -0
  34. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_config_item.py +0 -0
  35. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_de_core.py +0 -0
  36. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_document_content.py +0 -0
  37. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_flow_blueprint.py +0 -0
  38. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_kg_core.py +0 -0
  39. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_ontology.py +0 -0
  40. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/graph_to_turtle.py +0 -0
  41. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/import_workspace.py +0 -0
  42. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/import_workspace_config.py +0 -0
  43. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/init_pulsar_manager.py +0 -0
  44. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_agent.py +0 -0
  45. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_chunk.py +0 -0
  46. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_cloze.py +0 -0
  47. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_concept_extraction.py +0 -0
  48. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_decision_scoring.py +0 -0
  49. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_decode.py +0 -0
  50. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_embeddings.py +0 -0
  51. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_rag.py +0 -0
  52. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_embeddings.py +0 -0
  53. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_extraction.py +0 -0
  54. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_field_extraction.py +0 -0
  55. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_graph_embeddings.py +0 -0
  56. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_graph_rag.py +0 -0
  57. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_knowledge_retrieval.py +0 -0
  58. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_llm.py +0 -0
  59. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_mcp_tool.py +0 -0
  60. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_nl_sparql.py +0 -0
  61. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_nlp_query.py +0 -0
  62. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_ontology_subset.py +0 -0
  63. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_policy.py +0 -0
  64. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_prompt.py +0 -0
  65. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_query_formulation.py +0 -0
  66. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_reranker.py +0 -0
  67. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_row_embeddings.py +0 -0
  68. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_rows_query.py +0 -0
  69. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_sparql_nl_query.py +0 -0
  70. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_sparql_query.py +0 -0
  71. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_structured_query.py +0 -0
  72. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_verification.py +0 -0
  73. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_api_keys.py +0 -0
  74. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_cloze_models.py +0 -0
  75. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_collections.py +0 -0
  76. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_config_items.py +0 -0
  77. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_explain_traces.py +0 -0
  78. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_models.py +0 -0
  79. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_my_workspaces.py +0 -0
  80. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_ontologies.py +0 -0
  81. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_users.py +0 -0
  82. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_workspaces.py +0 -0
  83. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_doc_embeds.py +0 -0
  84. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_kg_core.py +0 -0
  85. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_knowledge.py +0 -0
  86. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_sample_documents.py +0 -0
  87. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_structured_data.py +0 -0
  88. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_turtle.py +0 -0
  89. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/login.py +0 -0
  90. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/mint_token.py +0 -0
  91. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/monitor_prompts.py +0 -0
  92. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/nquads.py +0 -0
  93. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_config_item.py +0 -0
  94. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_de_core.py +0 -0
  95. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_flow_blueprint.py +0 -0
  96. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_kg_core.py +0 -0
  97. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_ontology.py +0 -0
  98. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/query_graph.py +0 -0
  99. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/remove_library_document.py +0 -0
  100. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/reset_password.py +0 -0
  101. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/revoke_api_key.py +0 -0
  102. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/__init__.py +0 -0
  103. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/belgian-beer.md +0 -0
  104. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/bronze-age-collapse.pdf +0 -0
  105. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/corporate-scandals.pdf +0 -0
  106. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/history-of-pets.md +0 -0
  107. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/metadata.json +0 -0
  108. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/mil-fortifications-america-19th-c.md +0 -0
  109. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/recipes.md +0 -0
  110. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/trade-routes-europe.md +0 -0
  111. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/save_doc_embeds.py +0 -0
  112. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_collection.py +0 -0
  113. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_mcp_tool.py +0 -0
  114. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_prompt.py +0 -0
  115. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_token_costs.py +0 -0
  116. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_tool.py +0 -0
  117. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_config.py +0 -0
  118. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_explain_trace.py +0 -0
  119. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_extraction_provenance.py +0 -0
  120. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flow_blueprints.py +0 -0
  121. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flow_state.py +0 -0
  122. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flows.py +0 -0
  123. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_graph.py +0 -0
  124. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_kg_cores.py +0 -0
  125. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_library_documents.py +0 -0
  126. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_library_processing.py +0 -0
  127. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_mcp_tools.py +0 -0
  128. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_parameter_types.py +0 -0
  129. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_processor_state.py +0 -0
  130. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_prompts.py +0 -0
  131. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_token_costs.py +0 -0
  132. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_token_rate.py +0 -0
  133. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_tools.py +0 -0
  134. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/start_flow.py +0 -0
  135. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/start_library_processing.py +0 -0
  136. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/stop_flow.py +0 -0
  137. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/stop_library_processing.py +0 -0
  138. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/unload_kg_core.py +0 -0
  139. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/update_user.py +0 -0
  140. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/verify_system_status.py +0 -0
  141. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/whoami.py +0 -0
  142. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/SOURCES.txt +0 -0
  143. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
  144. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/entry_points.txt +0 -0
  145. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/requires.txt +0 -0
  146. {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustgraph-cli
3
- Version: 3.0.0rc8
3
+ Version: 3.0.0rc10
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Author-email: "trustgraph.ai" <security@trustgraph.ai>
6
6
  Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
@@ -1,6 +1,6 @@
1
1
  """
2
2
  Invoke the action worker with a capability and parameters.
3
- Displays the resulting artifact.
3
+ Displays the resulting artifacts.
4
4
  """
5
5
 
6
6
  import argparse
@@ -67,47 +67,94 @@ def main():
67
67
  '-p', '--param',
68
68
  action='append',
69
69
  default=[],
70
- metavar='KEY=VALUE',
71
- help='Step parameter (repeatable)',
70
+ metavar='NAME:TYPE:VALUE',
71
+ help=(
72
+ 'Input parameter as NAME:TYPE:VALUE '
73
+ 'e.g. question:TextBlobArtifact:\'{"text": "hello"}\' '
74
+ '(repeatable)'
75
+ ),
72
76
  )
73
77
 
74
78
  parser.add_argument(
75
- '-i', '--input-artifact',
79
+ '-i', '--input',
76
80
  action='append',
77
81
  default=[],
78
- metavar='TYPE:FILE',
79
- help='Input artifact as TYPE:FILE e.g. TabularArtifact:data.json (repeatable)',
82
+ metavar='NAME:TYPE:FILE',
83
+ help=(
84
+ 'Input from file as NAME:TYPE:FILE '
85
+ 'e.g. data:TabularArtifact:data.json (repeatable)'
86
+ ),
87
+ )
88
+
89
+ parser.add_argument(
90
+ '-T', '--text',
91
+ action='append',
92
+ default=[],
93
+ metavar='NAME=VALUE',
94
+ help=(
95
+ 'Text input shorthand as NAME=VALUE '
96
+ 'e.g. question="What are total expenses?" (repeatable)'
97
+ ),
80
98
  )
81
99
 
82
100
  parser.add_argument(
83
101
  'capability',
84
- help='Capability to invoke (e.g. erp-finance-query)',
102
+ help='Capability to invoke (e.g. llm-synthesis)',
85
103
  )
86
104
 
87
105
  args = parser.parse_args()
88
106
 
89
107
  params = {}
90
- for p in args.param:
91
- if '=' not in p:
92
- print(f"Error: parameter must be KEY=VALUE: {p}", file=sys.stderr)
93
- sys.exit(1)
94
- key, value = p.split('=', 1)
95
- params[key] = value
96
108
 
97
- input_artifacts = []
98
- for spec in args.input_artifact:
99
- if ':' not in spec:
109
+ for spec in args.param:
110
+ parts = spec.split(':', 2)
111
+ if len(parts) != 3:
112
+ print(
113
+ f"Error: parameter must be NAME:TYPE:VALUE: {spec}",
114
+ file=sys.stderr,
115
+ )
116
+ sys.exit(1)
117
+ name, artifact_type, value = parts
118
+ try:
119
+ artifact = json.loads(value)
120
+ except json.JSONDecodeError as e:
100
121
  print(
101
- f"Error: input artifact must be TYPE:FILE: {spec}",
122
+ f"Error: value for '{name}' is not valid JSON: {e}",
102
123
  file=sys.stderr,
103
124
  )
104
125
  sys.exit(1)
105
- artifact_type, path = spec.split(':', 1)
126
+ params[name] = {
127
+ "artifact-type": artifact_type,
128
+ "artifact": artifact,
129
+ }
130
+
131
+ for spec in args.input:
132
+ parts = spec.split(':', 2)
133
+ if len(parts) != 3:
134
+ print(
135
+ f"Error: input must be NAME:TYPE:FILE: {spec}",
136
+ file=sys.stderr,
137
+ )
138
+ sys.exit(1)
139
+ name, artifact_type, path = parts
106
140
  with open(path) as f:
107
- input_artifacts.append({
141
+ params[name] = {
108
142
  "artifact-type": artifact_type,
109
143
  "artifact": json.load(f),
110
- })
144
+ }
145
+
146
+ for spec in args.text:
147
+ if '=' not in spec:
148
+ print(
149
+ f"Error: text input must be NAME=VALUE: {spec}",
150
+ file=sys.stderr,
151
+ )
152
+ sys.exit(1)
153
+ name, value = spec.split('=', 1)
154
+ params[name] = {
155
+ "artifact-type": "TextBlobArtifact",
156
+ "artifact": {"text": value},
157
+ }
111
158
 
112
159
  try:
113
160
 
@@ -124,7 +171,6 @@ def main():
124
171
  "step-id": args.step_id,
125
172
  "capability": args.capability,
126
173
  "params": params,
127
- "input-artifacts": input_artifacts,
128
174
  },
129
175
  )
130
176
  finally:
@@ -133,30 +179,36 @@ def main():
133
179
  if result.get("error"):
134
180
  err = result["error"]
135
181
  print(
136
- f"Error: [{err.get('type', '?')}] {err.get('message', '?')}",
182
+ f"Error: [{err.get('type', '?')}] "
183
+ f"{err.get('message', '?')}",
137
184
  file=sys.stderr,
138
185
  )
139
186
  sys.exit(1)
140
187
 
188
+ artifacts = result.get("artifacts", {})
189
+
141
190
  if args.json:
142
- print(json.dumps(result, indent=2))
191
+ print(json.dumps(artifacts, indent=2))
143
192
  else:
144
- artifact_type = result.get("artifact-type", "?")
145
- artifact = result.get("artifact", {})
146
-
147
- print(f"Artifact type: {artifact_type}")
148
- print()
149
-
150
- if artifact_type == "TabularArtifact":
151
- _print_tabular(artifact)
152
- elif artifact_type == "TextBlobArtifact":
153
- _print_text_blob(artifact)
154
- elif artifact_type == "SubgraphArtifact":
155
- _print_subgraph(artifact)
156
- elif artifact_type == "ReportArtifact":
157
- _print_report(artifact)
158
- else:
159
- print(json.dumps(artifact, indent=2))
193
+ for name, entry in artifacts.items():
194
+ artifact_type = entry.get("artifact-type", "?")
195
+ artifact = entry.get("artifact", {})
196
+
197
+ print(f"--- {name} ({artifact_type}) ---")
198
+ print()
199
+
200
+ if artifact_type == "TabularArtifact":
201
+ _print_tabular(artifact)
202
+ elif artifact_type == "TextBlobArtifact":
203
+ _print_text_blob(artifact)
204
+ elif artifact_type == "SubgraphArtifact":
205
+ _print_subgraph(artifact)
206
+ elif artifact_type == "ReportArtifact":
207
+ _print_report(artifact)
208
+ else:
209
+ print(json.dumps(artifact, indent=2))
210
+
211
+ print()
160
212
 
161
213
  except Exception as e:
162
214
  print("Exception:", e, flush=True)
@@ -112,27 +112,31 @@ def main():
112
112
 
113
113
  print(f"Run: {run_id}")
114
114
  print(f"Plan: {plan_id}")
115
- print(f"Artifacts: {len(artifacts)}")
115
+ artifact_count = sum(
116
+ len(v) for v in artifacts.values()
117
+ )
118
+ print(f"Artifacts: {artifact_count}")
116
119
  print()
117
120
 
118
- for name, art in artifacts.items():
119
- artifact_type = art.get("artifact-type", "?")
120
- artifact = art.get("artifact", {})
121
-
122
- print(f"--- {name} ({artifact_type}) ---")
123
-
124
- if artifact_type == "TabularArtifact":
125
- _print_tabular(artifact)
126
- elif artifact_type == "TextBlobArtifact":
127
- _print_text_blob(artifact)
128
- elif artifact_type == "SubgraphArtifact":
129
- _print_subgraph(artifact)
130
- elif artifact_type == "ReportArtifact":
131
- _print_report(artifact)
132
- else:
133
- print(json.dumps(artifact, indent=2))
134
-
135
- print()
121
+ for step_id, step_arts in artifacts.items():
122
+ for port, art in step_arts.items():
123
+ artifact_type = art.get("artifact-type", "?")
124
+ artifact = art.get("artifact", {})
125
+
126
+ print(f"--- {step_id}/{port} ({artifact_type}) ---")
127
+
128
+ if artifact_type == "TabularArtifact":
129
+ _print_tabular(artifact)
130
+ elif artifact_type == "TextBlobArtifact":
131
+ _print_text_blob(artifact)
132
+ elif artifact_type == "SubgraphArtifact":
133
+ _print_subgraph(artifact)
134
+ elif artifact_type == "ReportArtifact":
135
+ _print_report(artifact)
136
+ else:
137
+ print(json.dumps(artifact, indent=2))
138
+
139
+ print()
136
140
 
137
141
  except Exception as e:
138
142
  print("Exception:", e, flush=True)
@@ -114,17 +114,27 @@ def main():
114
114
 
115
115
  table = []
116
116
  for s in steps:
117
+ params = s.get("params", {})
118
+ param_summary = []
119
+ for k, v in params.items():
120
+ if isinstance(v, str):
121
+ param_summary.append(f"{k}={v}")
122
+ elif isinstance(v, dict):
123
+ atype = v.get("artifact-type", "?")
124
+ param_summary.append(f"{k}: {atype}")
125
+ else:
126
+ param_summary.append(f"{k}={v}")
127
+
117
128
  table.append([
118
129
  s.get("step-id", ""),
119
130
  s.get("capability", ""),
120
131
  ", ".join(s.get("depends-on", [])) or "-",
121
- s.get("emits", ""),
122
- json.dumps(s.get("params", {})),
132
+ "; ".join(param_summary) or "-",
123
133
  ])
124
134
 
125
135
  print(tabulate.tabulate(
126
136
  table,
127
- headers=["Step", "Capability", "Depends On", "Emits", "Params"],
137
+ headers=["Step", "Capability", "Depends On", "Params"],
128
138
  tablefmt="pretty",
129
139
  stralign="left",
130
140
  ))
@@ -0,0 +1 @@
1
+ __version__ = "3.0.0rc10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustgraph-cli
3
- Version: 3.0.0rc8
3
+ Version: 3.0.0rc10
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Author-email: "trustgraph.ai" <security@trustgraph.ai>
6
6
  Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
@@ -1 +0,0 @@
1
- __version__ = "3.0.0rc8"