Skip to content

Commit f9d9ab9

Browse files
committed
feat(schema): add graph_execution_module — 7 partitioned execution tables + execution tree
Phase 2 schema: split graph_module (definitions only) from graph_execution_module (ephemeral execution state + merkle tree). New execution tables (all partitioned by time): - executions, outputs, node_states (moved from graph_module) - execution_tree_object, _store, _commit, _ref (merkle tree for time-travel debugging) New execution_store_id column on executions table links each execution to its merkle tree store. Includes pgpm modules, SDK (schemas, ORM, CLI, hooks), and pgpm-test CI workflow.
1 parent 8f4d30e commit f9d9ab9

5,731 files changed

Lines changed: 172818 additions & 0 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-api/SKILL.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: cli-api
3+
description: CLI commands for the api API target — 8 tables and 9 custom operations via constructive-functions
4+
---
5+
6+
# cli-api
7+
8+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
9+
10+
CLI commands for the api API target — 8 tables and 9 custom operations via constructive-functions
11+
12+
## Usage
13+
14+
```bash
15+
# CRUD for api tables (e.g. role-type)
16+
constructive-functions api:role-type list
17+
constructive-functions api:role-type get --id <value>
18+
constructive-functions api:role-type create --<field> <value>
19+
20+
# Non-interactive mode (skip all prompts, use flags only)
21+
constructive-functions --no-tty api:role-type list
22+
```
23+
24+
## Examples
25+
26+
### Query api records
27+
28+
```bash
29+
constructive-functions api:role-type list
30+
```
31+
32+
### Non-interactive mode (for scripts and CI)
33+
34+
```bash
35+
constructive-functions --no-tty api:role-type create --<field> <value>
36+
```
37+
38+
## References
39+
40+
See the `references/` directory for detailed per-entity API documentation:
41+
42+
- [role-type](references/role-type.md)
43+
- [platform-config-definition](references/platform-config-definition.md)
44+
- [platform-namespace](references/platform-namespace.md)
45+
- [platform-config](references/platform-config.md)
46+
- [platform-bucket](references/platform-bucket.md)
47+
- [platform-file](references/platform-file.md)
48+
- [user](references/user.md)
49+
- [platform-namespace-event](references/platform-namespace-event.md)
50+
- [platform-secrets-del](references/platform-secrets-del.md)
51+
- [platform-secrets-set](references/platform-secrets-set.md)
52+
- [org-secrets-del](references/org-secrets-del.md)
53+
- [org-secrets-set](references/org-secrets-set.md)
54+
- [org-secrets-remove-array](references/org-secrets-remove-array.md)
55+
- [platform-files-rename](references/platform-files-rename.md)
56+
- [upload-platform-file](references/upload-platform-file.md)
57+
- [upload-platform-files](references/upload-platform-files.md)
58+
- [provision-bucket](references/provision-bucket.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# orgSecretsDel
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
Execute the orgSecretsDel mutation (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:org-secrets-del --input.clientMutationId <String> --input.ownerId <UUID> --input.secretName <String> --input.secretNamespace <String>
11+
```
12+
13+
## Examples
14+
15+
### Run orgSecretsDel
16+
17+
```bash
18+
constructive-functions api:org-secrets-del --input.clientMutationId <String> --input.ownerId <UUID> --input.secretName <String> --input.secretNamespace <String>
19+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# orgSecretsRemoveArray
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
Execute the orgSecretsRemoveArray mutation (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:org-secrets-remove-array --input.clientMutationId <String> --input.ownerId <UUID> --input.secretNames <String> --input.secretNamespace <String>
11+
```
12+
13+
## Examples
14+
15+
### Run orgSecretsRemoveArray
16+
17+
```bash
18+
constructive-functions api:org-secrets-remove-array --input.clientMutationId <String> --input.ownerId <UUID> --input.secretNames <String> --input.secretNamespace <String>
19+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# orgSecretsSet
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
Execute the orgSecretsSet mutation (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:org-secrets-set --input.clientMutationId <String> --input.ownerId <UUID> --input.secretName <String> --input.secretValue <String> --input.algo <String> --input.secretNamespace <String>
11+
```
12+
13+
## Examples
14+
15+
### Run orgSecretsSet
16+
17+
```bash
18+
constructive-functions api:org-secrets-set --input.clientMutationId <String> --input.ownerId <UUID> --input.secretName <String> --input.secretValue <String> --input.algo <String> --input.secretNamespace <String>
19+
```
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformBucket
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformBucket records via constructive-functions CLI (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:platform-bucket list
11+
constructive-functions api:platform-bucket list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions api:platform-bucket list --limit 10 --after <cursor>
13+
constructive-functions api:platform-bucket find-first --where.<field>.<op> <value>
14+
constructive-functions api:platform-bucket get --id <UUID>
15+
constructive-functions api:platform-bucket create --actorId <UUID> --databaseId <UUID> --key <String> [--allowCustomKeys <Boolean>] [--allowedMimeTypes <String>] [--allowedOrigins <String>] [--description <String>] [--isPublic <Boolean>] [--maxFileSize <BigInt>] [--type <String>]
16+
constructive-functions api:platform-bucket update --id <UUID> [--actorId <UUID>] [--allowCustomKeys <Boolean>] [--allowedMimeTypes <String>] [--allowedOrigins <String>] [--databaseId <UUID>] [--description <String>] [--isPublic <Boolean>] [--key <String>] [--maxFileSize <BigInt>] [--type <String>]
17+
constructive-functions api:platform-bucket delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformBucket records
23+
24+
```bash
25+
constructive-functions api:platform-bucket list
26+
```
27+
28+
### List platformBucket records with pagination
29+
30+
```bash
31+
constructive-functions api:platform-bucket list --limit 10 --offset 0
32+
```
33+
34+
### List platformBucket records with cursor pagination
35+
36+
```bash
37+
constructive-functions api:platform-bucket list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformBucket
41+
42+
```bash
43+
constructive-functions api:platform-bucket find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformBucket records with filtering and ordering
47+
48+
```bash
49+
constructive-functions api:platform-bucket list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformBucket
53+
54+
```bash
55+
constructive-functions api:platform-bucket create --actorId <UUID> --databaseId <UUID> --key <String> [--allowCustomKeys <Boolean>] [--allowedMimeTypes <String>] [--allowedOrigins <String>] [--description <String>] [--isPublic <Boolean>] [--maxFileSize <BigInt>] [--type <String>]
56+
```
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformConfigDefinition
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformConfigDefinition records via constructive-functions CLI (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:platform-config-definition list
11+
constructive-functions api:platform-config-definition list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions api:platform-config-definition list --limit 10 --after <cursor>
13+
constructive-functions api:platform-config-definition find-first --where.<field>.<op> <value>
14+
constructive-functions api:platform-config-definition get --id <UUID>
15+
constructive-functions api:platform-config-definition create --name <String> [--annotations <JSON>] [--defaultValue <String>] [--description <String>] [--isBuiltIn <Boolean>] [--labels <JSON>]
16+
constructive-functions api:platform-config-definition update --id <UUID> [--annotations <JSON>] [--defaultValue <String>] [--description <String>] [--isBuiltIn <Boolean>] [--labels <JSON>] [--name <String>]
17+
constructive-functions api:platform-config-definition delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformConfigDefinition records
23+
24+
```bash
25+
constructive-functions api:platform-config-definition list
26+
```
27+
28+
### List platformConfigDefinition records with pagination
29+
30+
```bash
31+
constructive-functions api:platform-config-definition list --limit 10 --offset 0
32+
```
33+
34+
### List platformConfigDefinition records with cursor pagination
35+
36+
```bash
37+
constructive-functions api:platform-config-definition list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformConfigDefinition
41+
42+
```bash
43+
constructive-functions api:platform-config-definition find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformConfigDefinition records with filtering and ordering
47+
48+
```bash
49+
constructive-functions api:platform-config-definition list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformConfigDefinition
53+
54+
```bash
55+
constructive-functions api:platform-config-definition create --name <String> [--annotations <JSON>] [--defaultValue <String>] [--description <String>] [--isBuiltIn <Boolean>] [--labels <JSON>]
56+
```
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformConfig
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformConfig records via constructive-functions CLI (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:platform-config list
11+
constructive-functions api:platform-config list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions api:platform-config list --limit 10 --after <cursor>
13+
constructive-functions api:platform-config find-first --where.<field>.<op> <value>
14+
constructive-functions api:platform-config get --id <UUID>
15+
constructive-functions api:platform-config create --name <String> --namespaceId <UUID> [--annotations <JSON>] [--description <String>] [--expiresAt <Datetime>] [--labels <JSON>] [--value <String>]
16+
constructive-functions api:platform-config update --id <UUID> [--annotations <JSON>] [--description <String>] [--expiresAt <Datetime>] [--labels <JSON>] [--name <String>] [--namespaceId <UUID>] [--value <String>]
17+
constructive-functions api:platform-config delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformConfig records
23+
24+
```bash
25+
constructive-functions api:platform-config list
26+
```
27+
28+
### List platformConfig records with pagination
29+
30+
```bash
31+
constructive-functions api:platform-config list --limit 10 --offset 0
32+
```
33+
34+
### List platformConfig records with cursor pagination
35+
36+
```bash
37+
constructive-functions api:platform-config list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformConfig
41+
42+
```bash
43+
constructive-functions api:platform-config find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformConfig records with filtering and ordering
47+
48+
```bash
49+
constructive-functions api:platform-config list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformConfig
53+
54+
```bash
55+
constructive-functions api:platform-config create --name <String> --namespaceId <UUID> [--annotations <JSON>] [--description <String>] [--expiresAt <Datetime>] [--labels <JSON>] [--value <String>]
56+
```
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# platformFile
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
CRUD operations for PlatformFile records via constructive-functions CLI (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:platform-file list
11+
constructive-functions api:platform-file list --where.<field>.<op> <value> --orderBy <values>
12+
constructive-functions api:platform-file list --limit 10 --after <cursor>
13+
constructive-functions api:platform-file find-first --where.<field>.<op> <value>
14+
constructive-functions api:platform-file get --id <UUID>
15+
constructive-functions api:platform-file create --actorId <UUID> --bucketId <UUID> --databaseId <UUID> --key <String> --mimeType <String> --size <BigInt> [--contentHash <String>] [--description <String>] [--filename <String>] [--isPublic <Boolean>] [--tags <String>] [--upload <Upload>] [--status <FileStatus>]
16+
constructive-functions api:platform-file update --id <UUID> [--actorId <UUID>] [--bucketId <UUID>] [--contentHash <String>] [--databaseId <UUID>] [--description <String>] [--filename <String>] [--isPublic <Boolean>] [--key <String>] [--mimeType <String>] [--size <BigInt>] [--tags <String>] [--upload <Upload>] [--status <FileStatus>]
17+
constructive-functions api:platform-file delete --id <UUID>
18+
```
19+
20+
## Examples
21+
22+
### List platformFile records
23+
24+
```bash
25+
constructive-functions api:platform-file list
26+
```
27+
28+
### List platformFile records with pagination
29+
30+
```bash
31+
constructive-functions api:platform-file list --limit 10 --offset 0
32+
```
33+
34+
### List platformFile records with cursor pagination
35+
36+
```bash
37+
constructive-functions api:platform-file list --limit 10 --after <cursor>
38+
```
39+
40+
### Find first matching platformFile
41+
42+
```bash
43+
constructive-functions api:platform-file find-first --where.id.equalTo <value>
44+
```
45+
46+
### List platformFile records with filtering and ordering
47+
48+
```bash
49+
constructive-functions api:platform-file list --where.id.equalTo <value> --orderBy ID_ASC
50+
```
51+
52+
### Create a platformFile
53+
54+
```bash
55+
constructive-functions api:platform-file create --actorId <UUID> --bucketId <UUID> --databaseId <UUID> --key <String> --mimeType <String> --size <BigInt> [--contentHash <String>] [--description <String>] [--filename <String>] [--isPublic <Boolean>] [--tags <String>] [--upload <Upload>] [--status <FileStatus>]
56+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# platformFilesRename
2+
3+
<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->
4+
5+
Execute the platformFilesRename mutation (api target)
6+
7+
## Usage
8+
9+
```bash
10+
constructive-functions api:platform-files-rename --input.clientMutationId <String> --input.pFileId <UUID> --input.pNewFilename <String>
11+
```
12+
13+
## Examples
14+
15+
### Run platformFilesRename
16+
17+
```bash
18+
constructive-functions api:platform-files-rename --input.clientMutationId <String> --input.pFileId <UUID> --input.pNewFilename <String>
19+
```

0 commit comments

Comments
 (0)