@astrale-domains/services 0.2.5 → 0.2.6

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.
@@ -1,9 +1,10 @@
1
- import { K, edgeClass } from '@astrale-os/sdk/schema';
1
+ import { edgeClass } from '@astrale-os/sdk/schema';
2
+ import { ServicesShell } from '../dependencies/index.js';
2
3
  import { TraverseOwnedService } from '../policies/index.js';
3
4
  import { Service } from './service.js';
4
5
  export const service_owned_by = edgeClass.directed({
5
- description: 'The Identity that owns and may manage one Service.',
6
+ description: 'The Shell user that owns and may manage one Service.',
6
7
  source: { as: 'service', accepts: [() => Service], outgoing: '1' },
7
- target: { as: 'owner', accepts: [K.classes.Identity], incoming: '0..*' },
8
+ target: { as: 'owner', accepts: [ServicesShell.classes.User], incoming: '0..*' },
8
9
  policies: { traverse: () => TraverseOwnedService },
9
10
  });
@@ -0,0 +1 @@
1
+ export { ServicesShell } from './shell.js';
@@ -0,0 +1 @@
1
+ export { ServicesShell } from './shell.js';
@@ -0,0 +1,4 @@
1
+ import { ShellSchema } from '@astrale-domains/shell';
2
+ import { schema as language } from '@astrale-os/sdk/schema';
3
+ /** The exact Shell vocabulary Services uses for human ownership. */
4
+ export declare const ServicesShell: language.ResolvedDomainOf<typeof ShellSchema>;
@@ -0,0 +1,4 @@
1
+ import { ShellSchema } from '@astrale-domains/shell';
2
+ import { schema as language } from '@astrale-os/sdk/schema';
3
+ /** The exact Shell vocabulary Services uses for human ownership. */
4
+ export const ServicesShell = language.resolve(ShellSchema);
@@ -1,4 +1,5 @@
1
1
  export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { ServicesShell } from './dependencies/index.js';
2
3
  export { artifact, deleteService, deleteServiceSecret, deployedService, deploymentRejection, deployCloudflareWorker, deployServiceInput, deployServiceOutput, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, revisionedDeployment, setServiceSecret, } from './functions/index.js';
3
4
  export type { DeployServiceInput, DeployServiceOutput } from './functions/index.js';
4
5
  export { OwnService, TraverseOwnedService } from './policies/index.js';
@@ -1,4 +1,5 @@
1
1
  export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { ServicesShell } from './dependencies/index.js';
2
3
  export { artifact, deleteService, deleteServiceSecret, deployedService, deploymentRejection, deployCloudflareWorker, deployServiceInput, deployServiceOutput, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, revisionedDeployment, setServiceSecret, } from './functions/index.js';
3
4
  export { OwnService, TraverseOwnedService } from './policies/index.js';
4
5
  export { serviceLifecycle } from './states/index.js';
@@ -3,5 +3,5 @@ import { service_owned_by } from '../classes/service-owned-by.js';
3
3
  /** Ownership edges disclose only the subject's own Service relationship. */
4
4
  export const TraverseOwnedService = policy({
5
5
  description: 'The subject owns the Service at the source of this relationship.',
6
- match: ({ allOf, edge, source, subject, target }) => allOf(edge({ source, class: () => service_owned_by, target: subject }), edge({ source, class: () => service_owned_by, target })),
6
+ match: ({ edge, source, subject }) => edge({ source, class: () => service_owned_by, target: subject }),
7
7
  });