@stream44.studio/t44 0.4.0-rc.24
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/.dco-signatures +9 -0
- package/.github/workflows/dco.yaml +12 -0
- package/.github/workflows/gordian-open-integrity.yaml +13 -0
- package/.github/workflows/test.yaml +31 -0
- package/.o/GordianOpenIntegrity-CurrentLifehash.svg +1026 -0
- package/.o/GordianOpenIntegrity-InceptionLifehash.svg +1026 -0
- package/.o/GordianOpenIntegrity.yaml +21 -0
- package/.o/assets/Hero-Terminal44-v0.jpeg +0 -0
- package/.o/stream44.studio/assets/Icon-v1.svg +1170 -0
- package/.repo-identifier +1 -0
- package/DCO.md +34 -0
- package/LICENSE.txt +186 -0
- package/README.md +189 -0
- package/bin/activate +36 -0
- package/bin/activate.ts +30 -0
- package/bin/postinstall.sh +19 -0
- package/bin/shell +27 -0
- package/bin/t44 +27 -0
- package/caps/ConfigSchemaStruct.ts +55 -0
- package/caps/Home.ts +57 -0
- package/caps/HomeRegistry.ts +319 -0
- package/caps/HomeRegistryFile.ts +144 -0
- package/caps/JsonSchemas.ts +220 -0
- package/caps/OpenApiSchema.ts +67 -0
- package/caps/PackageDescriptor.ts +88 -0
- package/caps/ProjectCatalogs.ts +153 -0
- package/caps/ProjectDeployment.ts +426 -0
- package/caps/ProjectDevelopment.ts +257 -0
- package/caps/ProjectPublishing.ts +654 -0
- package/caps/ProjectPulling.ts +234 -0
- package/caps/ProjectRack.ts +155 -0
- package/caps/ProjectRepository.ts +332 -0
- package/caps/ProjectTest.ts +251 -0
- package/caps/ProjectTestLib.ts +257 -0
- package/caps/RootKey.ts +219 -0
- package/caps/SigningKey.ts +243 -0
- package/caps/TaskWorkflow.ts +192 -0
- package/caps/WorkspaceCli.ts +448 -0
- package/caps/WorkspaceConfig.ts +268 -0
- package/caps/WorkspaceConfig.yaml +87 -0
- package/caps/WorkspaceConfigFile.ts +902 -0
- package/caps/WorkspaceConnection.ts +329 -0
- package/caps/WorkspaceEntityConfig.ts +78 -0
- package/caps/WorkspaceEntityConfig.v0.ts +77 -0
- package/caps/WorkspaceEntityFact.ts +218 -0
- package/caps/WorkspaceInfo.ts +619 -0
- package/caps/WorkspaceInit.ts +30 -0
- package/caps/WorkspaceKey.ts +338 -0
- package/caps/WorkspaceModel.ts +373 -0
- package/caps/WorkspaceProjects.ts +636 -0
- package/caps/WorkspacePrompt.ts +430 -0
- package/caps/WorkspaceShell.sh +39 -0
- package/caps/WorkspaceShell.ts +104 -0
- package/caps/WorkspaceShell.yaml +64 -0
- package/caps/WorkspaceShellCli.ts +109 -0
- package/caps/patterns/README.md +2 -0
- package/caps/patterns/git-scm.com/ProjectPublishing.ts +507 -0
- package/caps/patterns/semver.org/ProjectPublishing.ts +458 -0
- package/docs/Overview.drawio +248 -0
- package/docs/Overview.svg +4 -0
- package/examples/01-Lifecycle/main.test.ts +223 -0
- package/lib/crypto.ts +53 -0
- package/lib/key.ts +381 -0
- package/lib/schema-console-renderer.ts +181 -0
- package/lib/schema-resolver.ts +349 -0
- package/lib/ucan.ts +137 -0
- package/package.json +91 -0
- package/standalone-rt.test.ts +150 -0
- package/standalone-rt.ts +140 -0
- package/structs/HomeRegistry.ts +55 -0
- package/structs/HomeRegistryConfig.ts +60 -0
- package/structs/ProjectCatalogsConfig.ts +53 -0
- package/structs/ProjectDeploymentConfig.ts +56 -0
- package/structs/ProjectDeploymentFact.ts +106 -0
- package/structs/ProjectPublishingConfig.ts +78 -0
- package/structs/ProjectPublishingFact.ts +68 -0
- package/structs/ProjectPullingConfig.ts +52 -0
- package/structs/ProjectRack.ts +51 -0
- package/structs/ProjectRackConfig.ts +56 -0
- package/structs/RepositoryOriginDescriptor.ts +51 -0
- package/structs/RootKeyConfig.ts +64 -0
- package/structs/SigningKeyConfig.ts +64 -0
- package/structs/Workspace.ts +56 -0
- package/structs/WorkspaceCatalogs.ts +56 -0
- package/structs/WorkspaceCliConfig.ts +53 -0
- package/structs/WorkspaceConfig.ts +64 -0
- package/structs/WorkspaceConfigFile.ts +50 -0
- package/structs/WorkspaceConfigFileMeta.ts +70 -0
- package/structs/WorkspaceKey.ts +55 -0
- package/structs/WorkspaceKeyConfig.ts +56 -0
- package/structs/WorkspaceMappingsConfig.ts +56 -0
- package/structs/WorkspaceProject.ts +104 -0
- package/structs/WorkspaceProjectsConfig.ts +67 -0
- package/structs/WorkspaceShellConfig.ts +83 -0
- package/structs/patterns/README.md +2 -0
- package/structs/patterns/git-scm.com/ProjectPublishingFact.ts +46 -0
- package/tsconfig.json +33 -0
- package/workspace-rt.ts +152 -0
- package/workspace.yaml +3 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
projectName: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The name of the deployed project'
|
|
19
|
+
},
|
|
20
|
+
provider: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The deployment provider (e.g., vercel.com, bunny.net)'
|
|
23
|
+
},
|
|
24
|
+
status: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
enum: ['READY', 'BUILDING', 'ERROR', 'DISABLED', 'UNKNOWN'],
|
|
27
|
+
description: 'Current deployment status'
|
|
28
|
+
},
|
|
29
|
+
publicUrl: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
format: 'uri',
|
|
32
|
+
description: 'The public URL where the deployment is accessible'
|
|
33
|
+
},
|
|
34
|
+
createdAt: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
format: 'date-time',
|
|
37
|
+
description: 'ISO 8601 timestamp when the deployment was created'
|
|
38
|
+
},
|
|
39
|
+
updatedAt: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
format: 'date-time',
|
|
42
|
+
description: 'ISO 8601 timestamp when the deployment was last updated'
|
|
43
|
+
},
|
|
44
|
+
providerProjectId: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Provider-specific project identifier'
|
|
47
|
+
},
|
|
48
|
+
providerPortalUrl: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
format: 'uri',
|
|
51
|
+
description: 'URL to the provider admin portal for this deployment'
|
|
52
|
+
},
|
|
53
|
+
usage: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
storageBytes: {
|
|
57
|
+
type: 'integer',
|
|
58
|
+
description: 'Storage used in bytes'
|
|
59
|
+
},
|
|
60
|
+
filesCount: {
|
|
61
|
+
type: 'integer',
|
|
62
|
+
description: 'Number of files stored'
|
|
63
|
+
},
|
|
64
|
+
bandwidthBytes: {
|
|
65
|
+
type: 'integer',
|
|
66
|
+
description: 'Bandwidth used in bytes (monthly)'
|
|
67
|
+
},
|
|
68
|
+
charges: {
|
|
69
|
+
type: 'number',
|
|
70
|
+
description: 'Monthly charges in USD'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
description: 'Usage statistics for the deployment'
|
|
74
|
+
},
|
|
75
|
+
error: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
description: 'Error message if status retrieval failed'
|
|
78
|
+
},
|
|
79
|
+
rawDefinitionFilepaths: {
|
|
80
|
+
type: 'array',
|
|
81
|
+
items: {
|
|
82
|
+
type: 'string'
|
|
83
|
+
},
|
|
84
|
+
description: 'Relative filepaths to the raw provider-specific definition files'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
required: ['projectName', 'provider', 'rawDefinitionFilepaths']
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
'#': {
|
|
93
|
+
capsuleName: {
|
|
94
|
+
type: CapsulePropertyTypes.Literal,
|
|
95
|
+
value: capsule['#']
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityFact',
|
|
101
|
+
importMeta: import.meta,
|
|
102
|
+
importStack: makeImportStack(),
|
|
103
|
+
capsuleName: capsule['#'],
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectDeploymentFact'
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
alwaysIgnore: {
|
|
17
|
+
type: 'array',
|
|
18
|
+
items: { type: 'string' },
|
|
19
|
+
description: 'Glob patterns to always exclude from publishing.'
|
|
20
|
+
},
|
|
21
|
+
providers: {
|
|
22
|
+
type: 'array',
|
|
23
|
+
description: 'Global publishing provider configurations applied to all repositories.'
|
|
24
|
+
},
|
|
25
|
+
repositories: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
additionalProperties: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
sourceDir: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Path to the repository source directory.'
|
|
33
|
+
},
|
|
34
|
+
activePublishingBranch: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Sticky branch for publishing. Set via --branch flag or directly in config. When set, pushes target this branch instead of main.'
|
|
37
|
+
},
|
|
38
|
+
providers: {
|
|
39
|
+
description: 'List of publishing provider configurations.',
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
additionalProperties: true
|
|
43
|
+
},
|
|
44
|
+
description: 'Map of repository identifiers to their configurations.'
|
|
45
|
+
},
|
|
46
|
+
createdAt: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
format: 'date-time',
|
|
49
|
+
description: 'ISO 8601 timestamp of when the entity config was created.'
|
|
50
|
+
},
|
|
51
|
+
updatedAt: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
format: 'date-time',
|
|
54
|
+
description: 'ISO 8601 timestamp of when the entity config was last updated.'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
required: ['createdAt', 'updatedAt'],
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
description: 'Workspace repository configurations for publishing providers.'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
'#': {
|
|
65
|
+
capsuleName: {
|
|
66
|
+
type: CapsulePropertyTypes.Literal,
|
|
67
|
+
value: capsule['#']
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityConfig',
|
|
73
|
+
importMeta: import.meta,
|
|
74
|
+
importStack: makeImportStack(),
|
|
75
|
+
capsuleName: capsule['#'],
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectPublishingConfig'
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
projectName: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The name of the published project'
|
|
19
|
+
},
|
|
20
|
+
provider: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The publishing provider (e.g., github.com, git-scm.com, npmjs.com)'
|
|
23
|
+
},
|
|
24
|
+
status: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
enum: ['READY', 'PUBLISHED', 'ERROR', 'SKIPPED', 'UNKNOWN'],
|
|
27
|
+
description: 'Current publishing status'
|
|
28
|
+
},
|
|
29
|
+
publicUrl: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
format: 'uri',
|
|
32
|
+
description: 'The public URL where the published resource is accessible'
|
|
33
|
+
},
|
|
34
|
+
createdAt: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
format: 'date-time',
|
|
37
|
+
description: 'ISO 8601 timestamp when the publishing was created'
|
|
38
|
+
},
|
|
39
|
+
updatedAt: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
format: 'date-time',
|
|
42
|
+
description: 'ISO 8601 timestamp when the publishing was last updated'
|
|
43
|
+
},
|
|
44
|
+
error: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Error message if publishing failed'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
required: ['projectName', 'provider']
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
'#': {
|
|
55
|
+
capsuleName: {
|
|
56
|
+
type: CapsulePropertyTypes.Literal,
|
|
57
|
+
value: capsule['#']
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityFact',
|
|
63
|
+
importMeta: import.meta,
|
|
64
|
+
importStack: makeImportStack(),
|
|
65
|
+
capsuleName: capsule['#'],
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectPublishingFact'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
providers: {
|
|
17
|
+
type: 'array',
|
|
18
|
+
description: 'Global pulling provider configurations. Each provider can parse URLs and pull changes.'
|
|
19
|
+
},
|
|
20
|
+
createdAt: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
format: 'date-time',
|
|
23
|
+
description: 'ISO 8601 timestamp of when the entity config was created.'
|
|
24
|
+
},
|
|
25
|
+
updatedAt: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
format: 'date-time',
|
|
28
|
+
description: 'ISO 8601 timestamp of when the entity config was last updated.'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
required: ['createdAt', 'updatedAt'],
|
|
32
|
+
additionalProperties: false,
|
|
33
|
+
description: 'Workspace configuration for pulling providers that import changes from remote URLs.'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
'#': {
|
|
39
|
+
capsuleName: {
|
|
40
|
+
type: CapsulePropertyTypes.Literal,
|
|
41
|
+
value: capsule['#']
|
|
42
|
+
},
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityConfig',
|
|
47
|
+
importMeta: import.meta,
|
|
48
|
+
importStack: makeImportStack(),
|
|
49
|
+
capsuleName: capsule['#'],
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectPullingConfig'
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
did: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The DID (Decentralized Identifier) of the project rack.'
|
|
19
|
+
},
|
|
20
|
+
privateKey: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The private key for the project rack.'
|
|
23
|
+
},
|
|
24
|
+
createdAt: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'date-time',
|
|
27
|
+
description: 'ISO 8601 timestamp of when the project rack was created.'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
required: ['did', 'privateKey', 'createdAt'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
description: 'A project rack identity in the home registry.'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'#': {
|
|
38
|
+
capsuleName: {
|
|
39
|
+
type: CapsulePropertyTypes.Literal,
|
|
40
|
+
value: capsule['#']
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
extendsCapsule: '@stream44.studio/t44/caps/HomeRegistryFile',
|
|
46
|
+
importMeta: import.meta,
|
|
47
|
+
importStack: makeImportStack(),
|
|
48
|
+
capsuleName: capsule['#'],
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectRack'
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
name: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Name of the project rack.'
|
|
19
|
+
},
|
|
20
|
+
identifier: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'DID (Decentralized Identifier) of the project rack.'
|
|
23
|
+
},
|
|
24
|
+
createdAt: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'date-time',
|
|
27
|
+
description: 'ISO 8601 timestamp of when the entity config was created.'
|
|
28
|
+
},
|
|
29
|
+
updatedAt: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
format: 'date-time',
|
|
32
|
+
description: 'ISO 8601 timestamp of when the entity config was last updated.'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
required: ['createdAt', 'updatedAt'],
|
|
36
|
+
additionalProperties: false,
|
|
37
|
+
description: 'Project rack identity and configuration.'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
'#': {
|
|
43
|
+
capsuleName: {
|
|
44
|
+
type: CapsulePropertyTypes.Literal,
|
|
45
|
+
value: capsule['#']
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityConfig',
|
|
51
|
+
importMeta: import.meta,
|
|
52
|
+
importStack: makeImportStack(),
|
|
53
|
+
capsuleName: capsule['#'],
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
capsule['#'] = '@stream44.studio/t44/structs/ProjectRackConfig'
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
did: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The DID (Decentralized Identifier) for the repository origin.'
|
|
19
|
+
},
|
|
20
|
+
privateKey: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The base64-encoded private key for the repository origin.'
|
|
23
|
+
},
|
|
24
|
+
createdAt: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'date-time',
|
|
27
|
+
description: 'ISO 8601 timestamp of when the identifier was created.'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
required: ['did', 'privateKey', 'createdAt'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
description: 'A repository origin identity descriptor stored in package.json.'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'#': {
|
|
38
|
+
capsuleName: {
|
|
39
|
+
type: CapsulePropertyTypes.Literal,
|
|
40
|
+
value: capsule['#']
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
extendsCapsule: '@stream44.studio/t44/caps/PackageDescriptor',
|
|
46
|
+
importMeta: import.meta,
|
|
47
|
+
importStack: makeImportStack(),
|
|
48
|
+
capsuleName: capsule['#'],
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
capsule['#'] = '@stream44.studio/t44/structs/RepositoryOriginDescriptor'
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
name: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Filename of the Ed25519 private key (e.g. id_t44_ed25519).'
|
|
19
|
+
},
|
|
20
|
+
privateKeyPath: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Absolute path to the Ed25519 private key file.'
|
|
23
|
+
},
|
|
24
|
+
publicKey: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Public key string used to identify the key.'
|
|
27
|
+
},
|
|
28
|
+
keyFingerprint: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'SSH key fingerprint (SHA256) for quick identification and validation.'
|
|
31
|
+
},
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
format: 'date-time',
|
|
35
|
+
description: 'ISO 8601 timestamp of when the entity config was created.'
|
|
36
|
+
},
|
|
37
|
+
updatedAt: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
format: 'date-time',
|
|
40
|
+
description: 'ISO 8601 timestamp of when the entity config was last updated.'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
required: [],
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
description: 'Root key configuration referencing an Ed25519 SSH key.'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
'#': {
|
|
51
|
+
capsuleName: {
|
|
52
|
+
type: CapsulePropertyTypes.Literal,
|
|
53
|
+
value: capsule['#']
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityConfig',
|
|
59
|
+
importMeta: import.meta,
|
|
60
|
+
importStack: makeImportStack(),
|
|
61
|
+
capsuleName: capsule['#'],
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
capsule['#'] = '@stream44.studio/t44/structs/RootKeyConfig'
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
name: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Filename of the Ed25519 private key used for signing (e.g. id_t44_signing_ed25519).'
|
|
19
|
+
},
|
|
20
|
+
privateKeyPath: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Absolute path to the Ed25519 private key file.'
|
|
23
|
+
},
|
|
24
|
+
publicKey: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Public key string used to identify the signing key.'
|
|
27
|
+
},
|
|
28
|
+
keyFingerprint: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'SSH key fingerprint (SHA256) for quick identification and validation.'
|
|
31
|
+
},
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
format: 'date-time',
|
|
35
|
+
description: 'ISO 8601 timestamp of when the entity config was created.'
|
|
36
|
+
},
|
|
37
|
+
updatedAt: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
format: 'date-time',
|
|
40
|
+
description: 'ISO 8601 timestamp of when the entity config was last updated.'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
required: [],
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
description: 'Signing key configuration referencing an Ed25519 SSH key used for code and artifact signing.'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
'#': {
|
|
51
|
+
capsuleName: {
|
|
52
|
+
type: CapsulePropertyTypes.Literal,
|
|
53
|
+
value: capsule['#']
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
extendsCapsule: '@stream44.studio/t44/caps/WorkspaceEntityConfig',
|
|
59
|
+
importMeta: import.meta,
|
|
60
|
+
importStack: makeImportStack(),
|
|
61
|
+
capsuleName: capsule['#'],
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
capsule['#'] = '@stream44.studio/t44/structs/SigningKeyConfig'
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: any) {
|
|
7
|
+
return encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/t44/caps/ConfigSchemaStruct': {
|
|
10
|
+
as: 'schema',
|
|
11
|
+
options: {
|
|
12
|
+
'#': {
|
|
13
|
+
schema: {
|
|
14
|
+
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
did: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The DID (Decentralized Identifier) of the workspace.'
|
|
20
|
+
},
|
|
21
|
+
privateKey: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The private key associated with the workspace DID.'
|
|
24
|
+
},
|
|
25
|
+
createdAt: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
format: 'date-time',
|
|
28
|
+
description: 'ISO 8601 timestamp of when the workspace was registered.'
|
|
29
|
+
},
|
|
30
|
+
workspaceRootDir: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Absolute path to the workspace root directory.'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
required: ['did', 'privateKey', 'createdAt', 'workspaceRootDir'],
|
|
36
|
+
additionalProperties: false,
|
|
37
|
+
description: 'Workspace identity and location in the home registry.'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
'#': {
|
|
43
|
+
capsuleName: {
|
|
44
|
+
type: CapsulePropertyTypes.Literal,
|
|
45
|
+
value: capsule['#']
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
extendsCapsule: '@stream44.studio/t44/caps/HomeRegistryFile',
|
|
51
|
+
importMeta: import.meta,
|
|
52
|
+
importStack: makeImportStack(),
|
|
53
|
+
capsuleName: capsule['#'],
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
capsule['#'] = '@stream44.studio/t44/structs/Workspace'
|