@astrale-domains/services 0.2.4 → 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.
- package/CHANGELOG.md +25 -0
- package/README.md +9 -8
- package/dist/schema/index.d.ts +2 -2
- package/dist/schema/index.js +2 -2
- package/dist/schema/modules/service/classes/cloudflare-worker.d.ts +2171 -4010
- package/dist/schema/modules/service/classes/cloudflare-worker.js +1 -1
- package/dist/schema/modules/service/classes/service-owned-by.d.ts +4 -4
- package/dist/schema/modules/service/classes/service-owned-by.js +5 -4
- package/dist/schema/modules/service/classes/service.d.ts +56 -35
- package/dist/schema/modules/service/classes/service.js +12 -21
- package/dist/schema/modules/service/dependencies/index.d.ts +1 -0
- package/dist/schema/modules/service/dependencies/index.js +1 -0
- package/dist/schema/modules/service/dependencies/shell.d.ts +4 -0
- package/dist/schema/modules/service/dependencies/shell.js +4 -0
- package/dist/schema/modules/service/functions/delete-service-secret.d.ts +3 -3
- package/dist/schema/modules/service/functions/delete-service-secret.js +3 -1
- package/dist/schema/modules/service/functions/delete-service.d.ts +1 -1
- package/dist/schema/modules/service/functions/delete-service.js +3 -1
- package/dist/schema/modules/service/functions/deploy-cloudflare-worker.d.ts +161 -14
- package/dist/schema/modules/service/functions/deploy-cloudflare-worker.js +47 -2
- package/dist/schema/modules/service/functions/index.d.ts +2 -1
- package/dist/schema/modules/service/functions/index.js +1 -1
- package/dist/schema/modules/service/functions/list-service-logs.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-service-logs.js +3 -1
- package/dist/schema/modules/service/functions/list-service-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-service-schedules.js +3 -1
- package/dist/schema/modules/service/functions/list-service-secret-names.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-service-secret-names.js +3 -1
- package/dist/schema/modules/service/functions/replace-service-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/replace-service-schedules.js +3 -1
- package/dist/schema/modules/service/functions/set-service-secret.d.ts +1 -1
- package/dist/schema/modules/service/functions/set-service-secret.js +3 -1
- package/dist/schema/modules/service/index.d.ts +8 -4
- package/dist/schema/modules/service/index.js +5 -3
- package/dist/schema/modules/service/policies/index.d.ts +1 -1
- package/dist/schema/modules/service/policies/index.js +1 -1
- package/dist/schema/modules/service/policies/own-service.d.ts +2 -0
- package/dist/schema/modules/service/policies/own-service.js +7 -0
- package/dist/schema/modules/service/policies/traverse-owned-service.js +2 -2
- package/dist/schema/modules/service/states/index.d.ts +2 -0
- package/dist/schema/modules/service/states/index.js +1 -0
- package/dist/schema/modules/service/states/service-lifecycle.d.ts +25 -0
- package/dist/schema/modules/service/states/service-lifecycle.js +26 -0
- package/dist/schema/modules/service/types/index.d.ts +0 -7
- package/dist/schema/modules/service/types/index.js +0 -4
- package/dist/schema/schema.d.ts +6419 -8229
- package/dist/schema/schema.js +21 -13
- package/package.json +5 -4
- package/dist/schema/modules/service/policies/observe-service.d.ts +0 -2
- package/dist/schema/modules/service/policies/observe-service.js +0 -7
- package/dist/schema/modules/service/types/deploy-service-input.d.ts +0 -130
- package/dist/schema/modules/service/types/deploy-service-input.js +0 -40
- package/dist/schema/modules/service/types/deploy-service-output.d.ts +0 -74
- package/dist/schema/modules/service/types/deploy-service-output.js +0 -24
- package/dist/schema/modules/service/types/service-deployment-rejection.d.ts +0 -11
- package/dist/schema/modules/service/types/service-deployment-rejection.js +0 -6
- package/dist/schema/modules/service/types/service-lifecycle.d.ts +0 -8
- package/dist/schema/modules/service/types/service-lifecycle.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.6](https://github.com/astrale-os/domains/compare/services-v0.2.5...services-v0.2.6) (2026-08-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **domains:** adopt function requirements ([#141](https://github.com/astrale-os/domains/issues/141)) ([29710c9](https://github.com/astrale-os/domains/commit/29710c9ee057e4c6a50901b3c54e42c3694d143e))
|
|
9
|
+
* **services:** model exact Shell service owner ([#138](https://github.com/astrale-os/domains/issues/138)) ([bdbf6ba](https://github.com/astrale-os/domains/commit/bdbf6ba2e08cf27432e58f37acbc335f9bafc8b4))
|
|
10
|
+
* **services:** reconcile lifecycle as installed domain ([#136](https://github.com/astrale-os/domains/issues/136)) ([ab647a8](https://github.com/astrale-os/domains/commit/ab647a8e3557b60c517154a8af4c3866a273adf3))
|
|
11
|
+
|
|
12
|
+
## [0.2.5](https://github.com/astrale-os/domains/compare/services-v0.2.4...services-v0.2.5) (2026-08-30)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **services:** make provider lifecycle workload agnostic ([#128](https://github.com/astrale-os/domains/issues/128)) ([28c6023](https://github.com/astrale-os/domains/commit/28c6023232a2f086cc8bcf9fd2405e495581a1f9))
|
|
18
|
+
* **state:** colocate lifecycle authorities with schema modules ([#131](https://github.com/astrale-os/domains/issues/131)) ([14cf6f5](https://github.com/astrale-os/domains/commit/14cf6f539ef947e4d8306e4e962e690765ff0011))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **domains:** complete SDK beta.82 qualification ([#133](https://github.com/astrale-os/domains/issues/133)) ([7c1d5e0](https://github.com/astrale-os/domains/commit/7c1d5e08b7b37c410d998fbb4cfff38b46775f79))
|
|
24
|
+
* **services:** consume standard instance inventory ([#134](https://github.com/astrale-os/domains/issues/134)) ([bc6dda2](https://github.com/astrale-os/domains/commit/bc6dda210ca414c0d51bfbaa4ec365da6521392c))
|
|
25
|
+
* **services:** enforce ownership and lifecycle semantics ([#132](https://github.com/astrale-os/domains/issues/132)) ([556651a](https://github.com/astrale-os/domains/commit/556651aaf31eff2563c0577302e1e0a8140803f5))
|
|
26
|
+
* **services:** scope service lookup to caller ([#135](https://github.com/astrale-os/domains/issues/135)) ([ab1be2e](https://github.com/astrale-os/domains/commit/ab1be2e99316deb6140ea3c3882750e858a71832))
|
|
27
|
+
|
|
3
28
|
## [0.2.4](https://github.com/astrale-os/domains/compare/services-v0.2.3...services-v0.2.4) (2026-08-29)
|
|
4
29
|
|
|
5
30
|
|
package/README.md
CHANGED
|
@@ -7,16 +7,16 @@ deployment evidence in the graph.
|
|
|
7
7
|
## Model
|
|
8
8
|
|
|
9
9
|
- `Service` records one opaque provider name, its owner-scoped stable `serviceKey`, deployment mode,
|
|
10
|
-
URL,
|
|
11
|
-
|
|
12
|
-
- `service_owned_by` connects the authenticated owner to each Service and governs graph visibility.
|
|
10
|
+
URL, lifecycle, provider digest, operation receipt, and exact cleanup locators.
|
|
11
|
+
- `service_owned_by` connects each Service to its owning Identity and governs graph visibility.
|
|
13
12
|
- secret values stay write-only at Cloudflare and never enter Astrale mutations or graph state.
|
|
14
13
|
- schedules remain provider state; only the owner may read or replace them.
|
|
15
14
|
- logs are remote evidence admitted by the Cloudflare Provider before a Workflow returns them.
|
|
16
15
|
|
|
17
16
|
The View, CLI, and agent consumers read the named Service Queries directly; there is intentionally
|
|
18
|
-
no list Function wrapping `
|
|
19
|
-
are Workflows because they coordinate caller
|
|
17
|
+
no list Function wrapping `listServicesQuery`. Deployment, secrets, schedules, logs, and deletion
|
|
18
|
+
are Workflows because they coordinate admitted caller intent with external effects. Receiver Methods
|
|
19
|
+
are authorized by the ownership Policy before their Workflows begin. `service-hosting`
|
|
20
20
|
is the provider-neutral Integration contract; Cloudflare is its first Provider.
|
|
21
21
|
|
|
22
22
|
## Development
|
|
@@ -39,6 +39,7 @@ distinct modes and cannot replace each other at one Service record. Five-field c
|
|
|
39
39
|
supported when `CLOUDFLARE_SCHEDULE_KV_ID` is configured.
|
|
40
40
|
|
|
41
41
|
SDK-authored Applications should deploy through `@astrale-os/adapter-astrale`, which projects the
|
|
42
|
-
admitted Cloudflare artifact into the revisioned Services request
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
admitted Cloudflare artifact into the revisioned Services request, verifies the live Publication,
|
|
43
|
+
and deliberately installs the exact Release on its configured Kernel. Services never interprets or
|
|
44
|
+
caches Application, Publication, Schema revision, issuer, or callable inventory. Manual callers may
|
|
45
|
+
deploy provider compute first and then use the ordinary Domain installation command themselves.
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { schema } from './schema.js';
|
|
2
2
|
export type { ServicesDomain, ServicesSchema } from './schema.js';
|
|
3
|
-
export { artifact, artifactModule, assetBundle, assetFile,
|
|
3
|
+
export { artifact, artifactModule, assetBundle, assetFile, deployServiceInput, deployServiceOutput, resourceLimits, revisionedDeployment, } from './modules/service/index.js';
|
|
4
4
|
export type { ArtifactModule, AssetBundle, DeployServiceInput, DeployServiceOutput, ResourceLimits, } from './modules/service/index.js';
|
|
5
|
-
export { CloudflareWorker,
|
|
5
|
+
export { CloudflareWorker, OwnService, ServicesShell, Service, TraverseOwnedService, service_owned_by, } from './modules/service/index.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { schema } from './schema.js';
|
|
2
|
-
export { artifact, artifactModule, assetBundle, assetFile,
|
|
3
|
-
export { CloudflareWorker,
|
|
2
|
+
export { artifact, artifactModule, assetBundle, assetFile, deployServiceInput, deployServiceOutput, resourceLimits, revisionedDeployment, } from './modules/service/index.js';
|
|
3
|
+
export { CloudflareWorker, OwnService, ServicesShell, Service, TraverseOwnedService, service_owned_by, } from './modules/service/index.js';
|