cognite-function-apps 0.13.0__tar.gz → 0.13.1__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 (114) hide show
  1. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/agents/agentic-workflows.agent.md +53 -13
  2. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/aw/actions-lock.json +3 -3
  3. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/renovate.json +7 -0
  4. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/copilot-setup-steps.yml +2 -2
  5. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/python-package.yml +28 -13
  6. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/repo-assist.lock.yml +226 -113
  7. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/repo-assist.md +2 -2
  8. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.pre-commit-config.yaml +1 -1
  9. cognite_function_apps-0.13.1/.release-please-manifest.json +3 -0
  10. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/CHANGELOG.md +19 -0
  11. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/PKG-INFO +1 -1
  12. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/pyproject.toml +1 -1
  13. cognite_function_apps-0.13.1/src/cognite_function_apps/_version.py +1 -0
  14. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/app.py +4 -3
  15. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/convert.py +66 -49
  16. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/mcp.py +5 -1
  17. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/routing.py +14 -4
  18. cognite_function_apps-0.13.1/tests/conftest_type_checking.py +26 -0
  19. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_app.py +20 -0
  20. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_convert_edge_cases.py +138 -2
  21. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_logger.py +1 -1
  22. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_mcp.py +18 -0
  23. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/uv.lock +79 -78
  24. cognite_function_apps-0.13.0/.release-please-manifest.json +0 -3
  25. cognite_function_apps-0.13.0/src/cognite_function_apps/_version.py +0 -1
  26. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.claude/settings.json +0 -0
  27. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.gemini/config.yaml +0 -0
  28. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.gitattributes +0 -0
  29. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/conventional-pr-title.yml +0 -0
  30. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/deploy-docs.yml +0 -0
  31. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/python-publish.yml +0 -0
  32. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.github/workflows/release-please.yml +0 -0
  33. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.gitignore +0 -0
  34. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.nojekyll +0 -0
  35. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/.python-version +0 -0
  36. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/AGENTS.md +0 -0
  37. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/CLAUDE.md +0 -0
  38. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/CODEOWNERS +0 -0
  39. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/LICENSE +0 -0
  40. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/README.md +0 -0
  41. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/RELEASING.md +0 -0
  42. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/Terminology.md +0 -0
  43. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/adr/response-customization.md +0 -0
  44. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/codecov.yml +0 -0
  45. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/api-reference.md +0 -0
  46. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/app-composition.md +0 -0
  47. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/architecture.md +0 -0
  48. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/async-support.md +0 -0
  49. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/contributing.md +0 -0
  50. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/dependency-injection.md +0 -0
  51. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/dev-server.md +0 -0
  52. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/error-handling.md +0 -0
  53. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/function-client.md +0 -0
  54. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/index.md +0 -0
  55. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/introspection.md +0 -0
  56. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/logging.md +0 -0
  57. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/mcp.md +0 -0
  58. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/release-process.md +0 -0
  59. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/response-customization.md +0 -0
  60. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/stylesheets/extra.css +0 -0
  61. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/tracing.md +0 -0
  62. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs/type-safety.md +0 -0
  63. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/error-handling.py +0 -0
  64. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/function-client.py +0 -0
  65. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/introspection.py +0 -0
  66. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/logging.py +0 -0
  67. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/tracing.py +0 -0
  68. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/docs-src/type-safety.py +0 -0
  69. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/examples/dev.py +0 -0
  70. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/examples/handler.py +0 -0
  71. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/examples/requirements.txt +0 -0
  72. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/justfile +0 -0
  73. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/mkdocs.yml +0 -0
  74. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/release-please-config.json +0 -0
  75. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/__init__.py +0 -0
  76. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/base_client.py +0 -0
  77. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/cli.py +0 -0
  78. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/client.py +0 -0
  79. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/client_generation.py +0 -0
  80. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/dependency_registry.py +0 -0
  81. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/devserver/__init__.py +0 -0
  82. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/devserver/asgi.py +0 -0
  83. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/devserver/auth.py +0 -0
  84. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/devserver/swagger.py +0 -0
  85. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/formatting.py +0 -0
  86. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/introspection.py +0 -0
  87. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/logger.py +0 -0
  88. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/models.py +0 -0
  89. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/py.typed +0 -0
  90. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/schema.py +0 -0
  91. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/service.py +0 -0
  92. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/templates/__init__.py +0 -0
  93. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/templates/client_template.jinja2 +0 -0
  94. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/src/cognite_function_apps/tracer.py +0 -0
  95. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/__init__.py +0 -0
  96. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/conftest.py +0 -0
  97. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/conftest_pep563.py +0 -0
  98. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_asgi.py +0 -0
  99. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_async_handlers.py +0 -0
  100. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_cli.py +0 -0
  101. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_client_generation.py +0 -0
  102. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_convert.py +0 -0
  103. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_convert_property_based.py +0 -0
  104. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_dependency_injection.py +0 -0
  105. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_error_handling.py +0 -0
  106. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_formatting.py +0 -0
  107. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_handle_function.py +0 -0
  108. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_introspection.py +0 -0
  109. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_models.py +0 -0
  110. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_routing.py +0 -0
  111. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_schema.py +0 -0
  112. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_swagger.py +0 -0
  113. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_trace_propagation.py +0 -0
  114. {cognite_function_apps-0.13.0 → cognite_function_apps-0.13.1}/tests/test_tracer.py +0 -0
@@ -19,7 +19,13 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
19
19
  - **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
20
20
  - **Fixing Dependabot PRs**: Routes to `dependabot` prompt — use this when Dependabot opens PRs that modify generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`). Never merge those PRs directly; instead update the source `.md` files and rerun `gh aw compile --dependabot` to bundle all fixes
21
21
  - **Analyzing test coverage**: Routes to `test-coverage` prompt — consult this whenever the workflow reads, analyzes, or reports on test coverage data from PRs or CI runs
22
+ - **Rendering ASCII charts in markdown**: Routes to `asciicharts` guide — consult this whenever the workflow needs compact charts that render reliably in GitHub issues, comments, or discussions
22
23
  - **CLI commands and triggering workflows**: Routes to `cli-commands` guide — consult this whenever the user asks how to run, compile, debug, or manage workflows from the command line, or when they need the MCP tool equivalent of a `gh aw` command
24
+ - **Reducing token consumption / cost optimization**: Routes to `token-optimization` guide — consult this whenever the user asks how to reduce token usage, lower costs, speed up workflows, or measure the impact of prompt changes with experiments
25
+ - **Choosing workflow architectures and design patterns**: Routes to `patterns` guide — consult this whenever the user asks for strategy, architecture, operating models, or pattern selection for agentic workflows
26
+
27
+ > [!IMPORTANT]
28
+ > For architecture/pattern-selection requests, load `https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/patterns.md` first.
23
29
 
24
30
  Workflows may optionally include:
25
31
 
@@ -31,7 +37,7 @@ Workflows may optionally include:
31
37
  - Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
32
38
  - Workflow lock files: `.github/workflows/*.lock.yml`
33
39
  - Shared components: `.github/workflows/shared/*.md`
34
- - Configuration: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/github-agentic-workflows.md
40
+ - Configuration: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/github-agentic-workflows.md
35
41
 
36
42
  ## Problems This Solves
37
43
 
@@ -53,7 +59,7 @@ When you interact with this agent, it will:
53
59
  ### Create New Workflow
54
60
  **Load when**: User wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet
55
61
 
56
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/create-agentic-workflow.md
62
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/create-agentic-workflow.md
57
63
 
58
64
  **Use cases**:
59
65
  - "Create a workflow that triages issues"
@@ -63,7 +69,7 @@ When you interact with this agent, it will:
63
69
  ### Update Existing Workflow
64
70
  **Load when**: User wants to modify, improve, or refactor an existing workflow
65
71
 
66
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/update-agentic-workflow.md
72
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/update-agentic-workflow.md
67
73
 
68
74
  **Use cases**:
69
75
  - "Add web-fetch tool to the issue-classifier workflow"
@@ -73,7 +79,7 @@ When you interact with this agent, it will:
73
79
  ### Debug Workflow
74
80
  **Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
75
81
 
76
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/debug-agentic-workflow.md
82
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/debug-agentic-workflow.md
77
83
 
78
84
  **Use cases**:
79
85
  - "Why is this workflow failing?"
@@ -83,7 +89,7 @@ When you interact with this agent, it will:
83
89
  ### Upgrade Agentic Workflows
84
90
  **Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
85
91
 
86
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/upgrade-agentic-workflows.md
92
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/upgrade-agentic-workflows.md
87
93
 
88
94
  **Use cases**:
89
95
  - "Upgrade all workflows to the latest version"
@@ -93,7 +99,7 @@ When you interact with this agent, it will:
93
99
  ### Create a Report-Generating Workflow
94
100
  **Load when**: The workflow being created or updated produces reports — recurring status updates, audit summaries, analyses, or any structured output posted as a GitHub issue, discussion, or comment
95
101
 
96
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/report.md
102
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/report.md
97
103
 
98
104
  **Use cases**:
99
105
  - "Create a weekly CI health report"
@@ -103,7 +109,7 @@ When you interact with this agent, it will:
103
109
  ### Create Shared Agentic Workflow
104
110
  **Load when**: User wants to create a reusable workflow component or wrap an MCP server
105
111
 
106
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/create-shared-agentic-workflow.md
112
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/create-shared-agentic-workflow.md
107
113
 
108
114
  **Use cases**:
109
115
  - "Create a shared component for Notion integration"
@@ -113,7 +119,7 @@ When you interact with this agent, it will:
113
119
  ### Fix Dependabot PRs
114
120
  **Load when**: User needs to close or fix open Dependabot PRs that update dependencies in generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`)
115
121
 
116
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/dependabot.md
122
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/dependabot.md
117
123
 
118
124
  **Use cases**:
119
125
  - "Fix the open Dependabot PRs for npm dependencies"
@@ -123,17 +129,27 @@ When you interact with this agent, it will:
123
129
  ### Analyze Test Coverage
124
130
  **Load when**: The workflow reads, analyzes, or reports test coverage — whether triggered by a PR, a schedule, or a slash command. Always consult this prompt before designing the coverage data strategy.
125
131
 
126
- **Prompt file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/test-coverage.md
132
+ **Prompt file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/test-coverage.md
127
133
 
128
134
  **Use cases**:
129
135
  - "Create a workflow that comments coverage on PRs"
130
136
  - "Analyze coverage trends over time"
131
137
  - "Add a coverage gate that blocks PRs below a threshold"
132
138
 
139
+ ### Render ASCII Charts in Markdown
140
+ **Load when**: The workflow needs in-markdown charts (sparklines, bars, table+trend views) that must align cleanly and render reliably across GitHub surfaces, including mobile.
141
+
142
+ **Reference file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/asciicharts.md
143
+
144
+ **Use cases**:
145
+ - "Show a compact trend chart in an issue comment"
146
+ - "Render a dashboard table with sparkline trends"
147
+ - "Generate aligned ASCII bars for service metrics"
148
+
133
149
  ### CLI Commands Reference
134
150
  **Load when**: The user asks how to run, compile, debug, or manage workflows from the command line; needs the MCP tool equivalent of a `gh aw` command; or is in a restricted environment (e.g., Copilot Cloud) without direct CLI access.
135
151
 
136
- **Reference file**: https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/cli-commands.md
152
+ **Reference file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/cli-commands.md
137
153
 
138
154
  **Use cases**:
139
155
  - "How do I trigger workflow X on the main branch?"
@@ -141,6 +157,30 @@ When you interact with this agent, it will:
141
157
  - "I'm in Copilot Cloud — how do I compile a workflow?"
142
158
  - "Show me all available gh aw commands"
143
159
 
160
+ ### Token Consumption Optimization
161
+ **Load when**: The user asks how to reduce token usage, lower workflow costs, make a workflow faster or cheaper, or measure the impact of prompt or configuration changes.
162
+
163
+ **Reference file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/token-optimization.md
164
+
165
+ **Use cases**:
166
+ - "How do I reduce the token cost of this workflow?"
167
+ - "My workflow is too expensive — how do I optimize it?"
168
+ - "How do I compare token usage between two runs?"
169
+ - "Should I use gh-proxy or the MCP server?"
170
+ - "How do I use sub-agents to reduce costs?"
171
+ - "How do I measure the impact of a prompt change?"
172
+
173
+ ### Workflow Pattern Selection
174
+ **Load when**: The user asks for architecture, strategy, operating model selection, or pattern recommendations for building agentic workflows.
175
+
176
+ **Reference file**: https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/patterns.md
177
+
178
+ **Use cases**:
179
+ - "Which pattern should I use for multi-repo rollout?"
180
+ - "How should I structure this workflow architecture?"
181
+ - "What pattern fits slash-command triage?"
182
+ - "Should this be DispatchOps or DailyOps?"
183
+
144
184
  ## Instructions
145
185
 
146
186
  When a user interacts with you:
@@ -185,12 +225,12 @@ gh aw compile --validate
185
225
 
186
226
  ## Important Notes
187
227
 
188
- - Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/github-agentic-workflows.md for complete documentation
228
+ - Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/github-agentic-workflows.md for complete documentation
189
229
  - Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
190
230
  - Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
191
231
  - **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
192
232
  - Follow security best practices: minimal permissions, explicit network access, no template injection
193
- - **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/network.md for the full list of valid ecosystem identifiers and domain patterns.
233
+ - **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/network.md for the full list of valid ecosystem identifiers and domain patterns.
194
234
  - **Single-file output**: When creating a workflow, produce exactly **one** workflow `.md` file. Do not create separate documentation files (architecture docs, runbooks, usage guides, etc.). If documentation is needed, add a brief `## Usage` section inside the workflow file itself.
195
235
  - **Triggering runs**: Always use `gh aw run <workflow-name>` to trigger a workflow on demand — not `gh workflow run <file>.lock.yml`. `gh aw run` handles workflow resolution by short name, input parsing and validation, and correct run-tracking for agentic workflows. Use `--ref <branch>` to run on a specific branch.
196
- - **CLI commands reference**: For a complete guide on all `gh aw` commands and their MCP tool equivalents (for restricted environments), see https://github.com/github/gh-aw/blob/v0.71.5/.github/aw/cli-commands.md
236
+ - **CLI commands reference**: For a complete guide on all `gh aw` commands and their MCP tool equivalents (for restricted environments), see https://github.com/github/gh-aw/blob/v0.76.1/.github/aw/cli-commands.md
@@ -25,10 +25,10 @@
25
25
  "version": "v7.0.1",
26
26
  "sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
27
27
  },
28
- "github/gh-aw-actions/setup@v0.71.5": {
28
+ "github/gh-aw-actions/setup@v0.76.1": {
29
29
  "repo": "github/gh-aw-actions/setup",
30
- "version": "v0.71.5",
31
- "sha": "b8068426813005612b960b5ab0b8bd2c27142323"
30
+ "version": "v0.76.1",
31
+ "sha": "46d564922b082d0db93244972e8005ea6904ee5f"
32
32
  }
33
33
  }
34
34
  }
@@ -16,6 +16,13 @@
16
16
  ],
17
17
  "enabled": false,
18
18
  "description": "Disable Python version updates - we need to support Function runtimes from 3.10 to 3.12"
19
+ },
20
+ {
21
+ "matchDepNames": [
22
+ "github/gh-aw-actions"
23
+ ],
24
+ "enabled": false,
25
+ "description": "Disable gh-aw-actions updates - must be upgraded manually via 'gh aw upgrade' which runs codemods and recompiles workflows"
19
26
  }
20
27
  ]
21
28
  }
@@ -21,6 +21,6 @@ jobs:
21
21
  - name: Checkout repository
22
22
  uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23
23
  - name: Install gh-aw extension
24
- uses: github/gh-aw-actions/setup-cli@23453ecc01928d28ee1e773e403b216b29e89a5b # v0.74.2
24
+ uses: github/gh-aw-actions/setup-cli@46d564922b082d0db93244972e8005ea6904ee5f # v0.76.1
25
25
  with:
26
- version: v0.71.5
26
+ version: v0.76.1
@@ -16,27 +16,21 @@ permissions:
16
16
  pull-requests: write # Allow posting test results as PR comments
17
17
 
18
18
  jobs:
19
- build:
19
+ lint:
20
20
  runs-on: ubuntu-latest
21
21
  if: ${{ github.actor != 'github-actions[bot]' }}
22
- strategy:
23
- matrix:
24
- python-version: ["3.10", "3.11", "3.12", "3.13"]
25
22
 
26
23
  steps:
27
24
  - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
28
- with:
29
- fetch-depth: 0
30
25
 
31
- - name: Set up Python ${{ matrix.python-version }}
32
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
26
+ - name: Set up uv
27
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
33
28
  with:
34
- python-version: ${{ matrix.python-version }}
29
+ python-version: "3.13"
30
+ enable-cache: true
35
31
 
36
32
  - name: Install dependencies
37
- run: |
38
- pipx install uv
39
- uv sync --all-extras
33
+ run: uv sync --all-extras
40
34
 
41
35
  - name: Check formatting
42
36
  run: |
@@ -46,13 +40,34 @@ jobs:
46
40
  run: |
47
41
  SKIP=ruff-format uv run pre-commit run --all-files --show-diff-on-failure
48
42
 
43
+ test:
44
+ runs-on: ubuntu-latest
45
+ if: ${{ github.actor != 'github-actions[bot]' }}
46
+ strategy:
47
+ matrix:
48
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
49
+
50
+ steps:
51
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
52
+ with:
53
+ fetch-depth: 0
54
+
55
+ - name: Set up uv
56
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
57
+ with:
58
+ python-version: ${{ matrix.python-version }}
59
+ enable-cache: true
60
+
61
+ - name: Install dependencies
62
+ run: uv sync --all-extras
63
+
49
64
  - name: Test with pytest
50
65
  run: |
51
66
  uv run pytest --cov=src/cognite_function_apps --cov-report=xml --cov-report=term
52
67
 
53
68
  - name: Upload coverage reports to Codecov
54
- if: matrix.python-version == '3.13'
55
69
  uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6
56
70
  with:
57
71
  token: ${{ secrets.CODECOV_TOKEN }}
58
72
  slug: cognitedata/cognite-function-apps
73
+ flags: python${{ matrix.python-version }}