Skip to content

Commit f099d2b

Browse files
committed
feat: add inputs/outputs/props/volatile/icon/category columns to platform_function_definitions
- Re-export constructive-compute pgpm module from constructive-db with 6 new columns on platform_function_definitions added via metaschema generator - Update GraphQL schema with new fields (JSON!, Boolean!, String) - Regenerate SDK, CLI, and hooks with new typed fields - Update FlowsPanel to use real typed ports from DB (inputs/outputs) with fallback to generic payload when empty - Update PlatformFunction interface to match new DB schema
1 parent 35929af commit f099d2b

2,005 files changed

Lines changed: 12342 additions & 11797 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/skills/cli-compute/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: cli-compute
3-
description: CLI commands for the compute API target — 12 tables and 16 custom operations via constructive-functions
3+
description: CLI commands for the compute API target — 14 tables and 16 custom operations via constructive-functions
44
---
55

66
# cli-compute
77

88
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
99

10-
CLI commands for the compute API target — 12 tables and 16 custom operations via constructive-functions
10+
CLI commands for the compute API target — 14 tables and 16 custom operations via constructive-functions
1111

1212
## Usage
1313

@@ -48,6 +48,8 @@ See the `references/` directory for detailed per-entity API documentation:
4848
- [platform-secret-definition](references/platform-secret-definition.md)
4949
- [platform-function-execution-log](references/platform-function-execution-log.md)
5050
- [platform-function-graph](references/platform-function-graph.md)
51+
- [platform-compute-log](references/platform-compute-log.md)
52+
- [platform-usage-daily](references/platform-usage-daily.md)
5153
- [org-function-invocation](references/org-function-invocation.md)
5254
- [platform-function-invocation](references/platform-function-invocation.md)
5355
- [platform-function-definition](references/platform-function-definition.md)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformComputeLog
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformComputeLog records via constructive-functions CLI (compute target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions compute:platform-compute-log list
11+
constructive-functions compute:platform-compute-log list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions compute:platform-compute-log list --limit 10 --after <cursor>
13+
constructive-functions compute:platform-compute-log find-first --where.<field>.<op> <value>
14+
constructive-functions compute:platform-compute-log get --id <UUID>
15+
constructive-functions compute:platform-compute-log create --taskIdentifier <String> --jobId <BigInt> --status <String> --durationMs <Int> [--completedAt <Datetime>] [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--actorId <UUID>] [--invocationId <UUID>] [--error <String>]
16+
constructive-functions compute:platform-compute-log update --id <UUID> [--completedAt <Datetime>] [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--actorId <UUID>] [--taskIdentifier <String>] [--jobId <BigInt>] [--invocationId <UUID>] [--status <String>] [--durationMs <Int>] [--error <String>]
17+
constructive-functions compute:platform-compute-log delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformComputeLog records
23+
24+
```bash
25+
constructive-functions compute:platform-compute-log list
26+
```
27+
28+
### List platformComputeLog records with pagination
29+
30+
```bash
31+
constructive-functions compute:platform-compute-log list --limit 10 --offset 0
32+
```
33+
34+
### List platformComputeLog records with cursor pagination
35+
36+
```bash
37+
constructive-functions compute:platform-compute-log list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformComputeLog
41+
42+
```bash
43+
constructive-functions compute:platform-compute-log find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformComputeLog records with filtering and ordering
47+
48+
```bash
49+
constructive-functions compute:platform-compute-log list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformComputeLog
53+
54+
```bash
55+
constructive-functions compute:platform-compute-log create --taskIdentifier <String> --jobId <BigInt> --status <String> --durationMs <Int> [--completedAt <Datetime>] [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--actorId <UUID>] [--invocationId <UUID>] [--error <String>]
56+
```

.agents/skills/cli-compute/references/platform-function-definition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ constructive-functions compute:platform-function-definition list --where.<field>
1212
constructive-functions compute:platform-function-definition list --limit 10 --after <cursor>
1313
constructive-functions compute:platform-function-definition find-first --where.<field>.<op> <value>
1414
constructive-functions compute:platform-function-definition get --id <UUID>
15-
constructive-functions compute:platform-function-definition create --name <String> --scope <String> --taskIdentifier <String> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--serviceUrl <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>]
16-
constructive-functions compute:platform-function-definition update --id <UUID> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--name <String>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--scope <String>] [--serviceUrl <String>] [--taskIdentifier <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>]
15+
constructive-functions compute:platform-function-definition create --name <String> --scope <String> --taskIdentifier <String> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--serviceUrl <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>] [--inputs <JSON>] [--outputs <JSON>] [--props <JSON>] [--volatile <Boolean>] [--icon <String>] [--category <String>]
16+
constructive-functions compute:platform-function-definition update --id <UUID> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--name <String>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--scope <String>] [--serviceUrl <String>] [--taskIdentifier <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>] [--inputs <JSON>] [--outputs <JSON>] [--props <JSON>] [--volatile <Boolean>] [--icon <String>] [--category <String>]
1717
constructive-functions compute:platform-function-definition delete --id <UUID>
1818
```
1919

@@ -52,5 +52,5 @@ constructive-functions compute:platform-function-definition list --where.id.equa
5252
### Create a platformFunctionDefinition
5353

5454
```bash
55-
constructive-functions compute:platform-function-definition create --name <String> --scope <String> --taskIdentifier <String> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--serviceUrl <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>]
55+
constructive-functions compute:platform-function-definition create --name <String> --scope <String> --taskIdentifier <String> [--description <String>] [--isBuiltIn <Boolean>] [--isInvocable <Boolean>] [--maxAttempts <Int>] [--namespaceId <UUID>] [--priority <Int>] [--queueName <String>] [--serviceUrl <String>] [--requiredConfigs <FunctionRequirement>] [--requiredSecrets <FunctionRequirement>] [--inputs <JSON>] [--outputs <JSON>] [--props <JSON>] [--volatile <Boolean>] [--icon <String>] [--category <String>]
5656
```
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformUsageDaily
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformUsageDaily records via constructive-functions CLI (compute target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions compute:platform-usage-daily list
11+
constructive-functions compute:platform-usage-daily list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions compute:platform-usage-daily list --limit 10 --after <cursor>
13+
constructive-functions compute:platform-usage-daily find-first --where.<field>.<op> <value>
14+
constructive-functions compute:platform-usage-daily get --id <UUID>
15+
constructive-functions compute:platform-usage-daily create --taskIdentifier <String> --date <Date> [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--totalCalls <BigInt>] [--successful <BigInt>] [--failed <BigInt>] [--totalDurationMs <BigInt>] [--minDurationMs <Int>] [--maxDurationMs <Int>]
16+
constructive-functions compute:platform-usage-daily update --id <UUID> [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--taskIdentifier <String>] [--date <Date>] [--totalCalls <BigInt>] [--successful <BigInt>] [--failed <BigInt>] [--totalDurationMs <BigInt>] [--minDurationMs <Int>] [--maxDurationMs <Int>]
17+
constructive-functions compute:platform-usage-daily delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformUsageDaily records
23+
24+
```bash
25+
constructive-functions compute:platform-usage-daily list
26+
```
27+
28+
### List platformUsageDaily records with pagination
29+
30+
```bash
31+
constructive-functions compute:platform-usage-daily list --limit 10 --offset 0
32+
```
33+
34+
### List platformUsageDaily records with cursor pagination
35+
36+
```bash
37+
constructive-functions compute:platform-usage-daily list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformUsageDaily
41+
42+
```bash
43+
constructive-functions compute:platform-usage-daily find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformUsageDaily records with filtering and ordering
47+
48+
```bash
49+
constructive-functions compute:platform-usage-daily list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformUsageDaily
53+
54+
```bash
55+
constructive-functions compute:platform-usage-daily create --taskIdentifier <String> --date <Date> [--databaseId <UUID>] [--entityId <UUID>] [--organizationId <UUID>] [--entityType <String>] [--totalCalls <BigInt>] [--successful <BigInt>] [--failed <BigInt>] [--totalDurationMs <BigInt>] [--minDurationMs <Int>] [--maxDurationMs <Int>]
56+
```

.agents/skills/hooks-compute/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: hooks-compute
3-
description: React Query hooks for the compute API — provides typed query and mutation hooks for 12 tables and 16 custom operations
3+
description: React Query hooks for the compute API — provides typed query and mutation hooks for 14 tables and 16 custom operations
44
---
55

66
# hooks-compute
77

88
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
99

10-
React Query hooks for the compute API — provides typed query and mutation hooks for 12 tables and 16 custom operations
10+
React Query hooks for the compute API — provides typed query and mutation hooks for 14 tables and 16 custom operations
1111

1212
## Usage
1313

@@ -47,6 +47,8 @@ See the `references/` directory for detailed per-entity API documentation:
4747
- [platform-secret-definition](references/platform-secret-definition.md)
4848
- [platform-function-execution-log](references/platform-function-execution-log.md)
4949
- [platform-function-graph](references/platform-function-graph.md)
50+
- [platform-compute-log](references/platform-compute-log.md)
51+
- [platform-usage-daily](references/platform-usage-daily.md)
5052
- [org-function-invocation](references/org-function-invocation.md)
5153
- [platform-function-invocation](references/platform-function-invocation.md)
5254
- [platform-function-definition](references/platform-function-definition.md)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# platformComputeLog
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
React Query hooks for PlatformComputeLog data operations
6+
7+
## Usage
8+
9+
```typescript
10+
usePlatformComputeLogsQuery({ selection: { fields: { completedAt: true, id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, actorId: true, taskIdentifier: true, jobId: true, invocationId: true, status: true, durationMs: true, error: true } } })
11+
usePlatformComputeLogQuery({ id: '<UUID>', selection: { fields: { completedAt: true, id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, actorId: true, taskIdentifier: true, jobId: true, invocationId: true, status: true, durationMs: true, error: true } } })
12+
useCreatePlatformComputeLogMutation({ selection: { fields: { id: true } } })
13+
useUpdatePlatformComputeLogMutation({ selection: { fields: { id: true } } })
14+
useDeletePlatformComputeLogMutation({})
15+
```
16+
17+
## Examples
18+
19+
### List all platformComputeLogs
20+
21+
```typescript
22+
const { data, isLoading } = usePlatformComputeLogsQuery({
23+
selection: { fields: { completedAt: true, id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, actorId: true, taskIdentifier: true, jobId: true, invocationId: true, status: true, durationMs: true, error: true } },
24+
});
25+
```
26+
27+
### Create a platformComputeLog
28+
29+
```typescript
30+
const { mutate } = useCreatePlatformComputeLogMutation({
31+
selection: { fields: { id: true } },
32+
});
33+
mutate({ completedAt: '<Datetime>', databaseId: '<UUID>', entityId: '<UUID>', organizationId: '<UUID>', entityType: '<String>', actorId: '<UUID>', taskIdentifier: '<String>', jobId: '<BigInt>', invocationId: '<UUID>', status: '<String>', durationMs: '<Int>', error: '<String>' });
34+
```

.agents/skills/hooks-compute/references/platform-function-definition.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Function definitions — registered cloud functions with routing, queue, and ret
77
## Usage
88

99
```typescript
10-
usePlatformFunctionDefinitionsQuery({ selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true } } })
11-
usePlatformFunctionDefinitionQuery({ id: '<UUID>', selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true } } })
10+
usePlatformFunctionDefinitionsQuery({ selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } })
11+
usePlatformFunctionDefinitionQuery({ id: '<UUID>', selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } })
1212
useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } })
1313
useUpdatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } })
1414
useDeletePlatformFunctionDefinitionMutation({})
@@ -20,7 +20,7 @@ useDeletePlatformFunctionDefinitionMutation({})
2020

2121
```typescript
2222
const { data, isLoading } = usePlatformFunctionDefinitionsQuery({
23-
selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true } },
23+
selection: { fields: { createdAt: true, description: true, id: true, isBuiltIn: true, isInvocable: true, maxAttempts: true, name: true, namespaceId: true, priority: true, queueName: true, scope: true, serviceUrl: true, taskIdentifier: true, updatedAt: true, requiredConfigs: true, requiredSecrets: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } },
2424
});
2525
```
2626

@@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformFunctionDefinitionsQuery({
3030
const { mutate } = useCreatePlatformFunctionDefinitionMutation({
3131
selection: { fields: { id: true } },
3232
});
33-
mutate({ description: '<String>', isBuiltIn: '<Boolean>', isInvocable: '<Boolean>', maxAttempts: '<Int>', name: '<String>', namespaceId: '<UUID>', priority: '<Int>', queueName: '<String>', scope: '<String>', serviceUrl: '<String>', taskIdentifier: '<String>', requiredConfigs: '<FunctionRequirement>', requiredSecrets: '<FunctionRequirement>' });
33+
mutate({ description: '<String>', isBuiltIn: '<Boolean>', isInvocable: '<Boolean>', maxAttempts: '<Int>', name: '<String>', namespaceId: '<UUID>', priority: '<Int>', queueName: '<String>', scope: '<String>', serviceUrl: '<String>', taskIdentifier: '<String>', requiredConfigs: '<FunctionRequirement>', requiredSecrets: '<FunctionRequirement>', inputs: '<JSON>', outputs: '<JSON>', props: '<JSON>', volatile: '<Boolean>', icon: '<String>', category: '<String>' });
3434
```
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# platformUsageDaily
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
React Query hooks for PlatformUsageDaily data operations
6+
7+
## Usage
8+
9+
```typescript
10+
usePlatformUsageDailiesQuery({ selection: { fields: { id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, taskIdentifier: true, date: true, totalCalls: true, successful: true, failed: true, totalDurationMs: true, minDurationMs: true, maxDurationMs: true } } })
11+
usePlatformUsageDailyQuery({ id: '<UUID>', selection: { fields: { id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, taskIdentifier: true, date: true, totalCalls: true, successful: true, failed: true, totalDurationMs: true, minDurationMs: true, maxDurationMs: true } } })
12+
useCreatePlatformUsageDailyMutation({ selection: { fields: { id: true } } })
13+
useUpdatePlatformUsageDailyMutation({ selection: { fields: { id: true } } })
14+
useDeletePlatformUsageDailyMutation({})
15+
```
16+
17+
## Examples
18+
19+
### List all platformUsageDailies
20+
21+
```typescript
22+
const { data, isLoading } = usePlatformUsageDailiesQuery({
23+
selection: { fields: { id: true, databaseId: true, entityId: true, organizationId: true, entityType: true, taskIdentifier: true, date: true, totalCalls: true, successful: true, failed: true, totalDurationMs: true, minDurationMs: true, maxDurationMs: true } },
24+
});
25+
```
26+
27+
### Create a platformUsageDaily
28+
29+
```typescript
30+
const { mutate } = useCreatePlatformUsageDailyMutation({
31+
selection: { fields: { id: true } },
32+
});
33+
mutate({ databaseId: '<UUID>', entityId: '<UUID>', organizationId: '<UUID>', entityType: '<String>', taskIdentifier: '<String>', date: '<Date>', totalCalls: '<BigInt>', successful: '<BigInt>', failed: '<BigInt>', totalDurationMs: '<BigInt>', minDurationMs: '<Int>', maxDurationMs: '<Int>' });
34+
```

.agents/skills/orm-compute/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: orm-compute
3-
description: ORM client for the compute API — provides typed CRUD operations for 12 tables and 16 custom operations
3+
description: ORM client for the compute API — provides typed CRUD operations for 14 tables and 16 custom operations
44
---
55

66
# orm-compute
77

88
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
99

10-
ORM client for the compute API — provides typed CRUD operations for 12 tables and 16 custom operations
10+
ORM client for the compute API — provides typed CRUD operations for 14 tables and 16 custom operations
1111

1212
## Usage
1313

@@ -46,6 +46,8 @@ See the `references/` directory for detailed per-entity API documentation:
4646
- [platform-secret-definition](references/platform-secret-definition.md)
4747
- [platform-function-execution-log](references/platform-function-execution-log.md)
4848
- [platform-function-graph](references/platform-function-graph.md)
49+
- [platform-compute-log](references/platform-compute-log.md)
50+
- [platform-usage-daily](references/platform-usage-daily.md)
4951
- [org-function-invocation](references/org-function-invocation.md)
5052
- [platform-function-invocation](references/platform-function-invocation.md)
5153
- [platform-function-definition](references/platform-function-definition.md)

0 commit comments

Comments
 (0)