@impulselab/hepha 0.2.662 → 0.2.664

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/dist/index.js CHANGED
@@ -1963,6 +1963,7 @@ var HOST_TOOL_NAMES = {
1963
1963
  DATABASE_WRITE: "database_write",
1964
1964
  DETECT_PROJECT_DATABASE: "detect_project_database",
1965
1965
  BIND_PROJECT_DATABASE: "bind_project_database",
1966
+ REQUEST_DATABASE_URL: "request_database_url",
1966
1967
  // docs/integrations/provisioning.md
1967
1968
  PROVISION_SERVICE: "provision_service",
1968
1969
  // Historical: the agent-addressed family the tools above replaced. No agent
@@ -2711,6 +2712,41 @@ var integrationToolActivityDescribers = [
2711
2712
  ]
2712
2713
  ];
2713
2714
 
2715
+ // ../../packages/agents/src/tool-activity/database/database-tool-activity-describers.ts
2716
+ var databaseToolActivityDescribers = [
2717
+ [
2718
+ HOST_TOOL_NAMES.DETECT_PROJECT_DATABASE,
2719
+ () => labelOnly("Recorded the project database")
2720
+ ],
2721
+ [
2722
+ HOST_TOOL_NAMES.BIND_PROJECT_DATABASE,
2723
+ () => labelOnly("Requested approval to bind the project database")
2724
+ ],
2725
+ [
2726
+ HOST_TOOL_NAMES.REQUEST_DATABASE_URL,
2727
+ () => labelOnly("Asked for the production database URL")
2728
+ ],
2729
+ [
2730
+ HOST_TOOL_NAMES.DATABASE_QUERY,
2731
+ (record) => {
2732
+ const branch = toolInput.trimmed(record.branch) ?? "production";
2733
+ const sql = toolInput.verbatim(record.sql);
2734
+ return sql ? { text: `Read the database (${branch})`, command: sql } : labelOnly(`Read the database (${branch})`);
2735
+ }
2736
+ ],
2737
+ [
2738
+ HOST_TOOL_NAMES.DATABASE_WRITE,
2739
+ (record) => {
2740
+ const branch = toolInput.trimmed(record.branch) ?? "production";
2741
+ const sql = toolInput.verbatim(record.sql);
2742
+ return sql ? {
2743
+ text: `Requested approval to write to the database (${branch})`,
2744
+ command: sql
2745
+ } : labelOnly(`Requested approval to write to the database (${branch})`);
2746
+ }
2747
+ ]
2748
+ ];
2749
+
2714
2750
  // ../../packages/agents/src/tool-activity/design/design-tool-activity-describers.ts
2715
2751
  var designToolActivityDescribers = [
2716
2752
  [
@@ -3172,6 +3208,7 @@ var domainToolActivityDescribers = [
3172
3208
  ...labsToolActivityDescribers,
3173
3209
  ...automationToolActivityDescribers,
3174
3210
  ...reviewToolActivityDescribers,
3211
+ ...databaseToolActivityDescribers,
3175
3212
  ...factoryToolActivityDescribers,
3176
3213
  ...interactiveViewToolActivityDescribers,
3177
3214
  ...gitToolActivityDescribers,
@@ -3338,33 +3375,6 @@ var canonicalToolActivityDescribers = new Map([
3338
3375
  () => labelOnly("Recorded the dev environment sizing")
3339
3376
  ],
3340
3377
  [HOST_TOOL_NAMES.BAKE_DEV_ENV, () => labelOnly("Baked the dev environment")],
3341
- [
3342
- HOST_TOOL_NAMES.DETECT_PROJECT_DATABASE,
3343
- () => labelOnly("Recorded the project database")
3344
- ],
3345
- [
3346
- HOST_TOOL_NAMES.BIND_PROJECT_DATABASE,
3347
- () => labelOnly("Requested approval to bind the project database")
3348
- ],
3349
- [
3350
- HOST_TOOL_NAMES.DATABASE_QUERY,
3351
- (record) => {
3352
- const branch = toolInput.trimmed(record.branch) ?? "production";
3353
- const sql = toolInput.verbatim(record.sql);
3354
- return sql ? { text: `Read the database (${branch})`, command: sql } : labelOnly(`Read the database (${branch})`);
3355
- }
3356
- ],
3357
- [
3358
- HOST_TOOL_NAMES.DATABASE_WRITE,
3359
- (record) => {
3360
- const branch = toolInput.trimmed(record.branch) ?? "production";
3361
- const sql = toolInput.verbatim(record.sql);
3362
- return sql ? {
3363
- text: `Requested approval to write to the database (${branch})`,
3364
- command: sql
3365
- } : labelOnly(`Requested approval to write to the database (${branch})`);
3366
- }
3367
- ],
3368
3378
  [HOST_TOOL_NAMES.TAKE_SCREENSHOT, describeTakeScreenshot],
3369
3379
  [HOST_TOOL_NAMES.RECORD_VIDEO, describeRecordVideo],
3370
3380
  [HOST_TOOL_NAMES.ATTACH_IMAGE, describeAttachImage],