@vibesdotdev/infra-contracts 1.0.0-rc.4 → 1.0.0-rc.9
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/README.md +4 -1
- package/SPEC.md +101 -0
- package/dist/docs/service.docs.descriptor.d.ts +1 -1
- package/dist/docs/service.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/service.docs.descriptor.js +5 -2
- package/dist/docs/service.docs.descriptor.js.map +1 -1
- package/dist/schemas/service.d.ts +5 -5
- package/dist/service.d.ts +4 -0
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +19 -4
- package/dist/service.js.map +1 -1
- package/package.json +46 -18
package/README.md
CHANGED
|
@@ -25,8 +25,11 @@ validate optional target-kind arguments and promised results. Implementation
|
|
|
25
25
|
errors propagate unchanged. Keep the original receiver when calling resolved
|
|
26
26
|
class methods: a parsed plain port is not a class adapter.
|
|
27
27
|
|
|
28
|
+
`serviceOrigin` from `@vibesdotdev/infra-contracts/service` reads that target
|
|
29
|
+
through the handed runtime. Invalid ids, invalid kinds, and undeclared
|
|
30
|
+
services refuse with `CapabilityError` and do not echo the caller value.
|
|
28
31
|
`@vibesdotdev/infra-core` owns service registration, configuration, environment
|
|
29
|
-
selection,
|
|
32
|
+
selection, and implementations.
|
|
30
33
|
|
|
31
34
|
## Documentation discovery
|
|
32
35
|
|
package/SPEC.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# @vibesdotdev/infra-contracts
|
|
2
|
+
|
|
3
|
+
Public MIT schemas and inferred types for portable infrastructure service
|
|
4
|
+
declarations and target ports. No premium or internal split.
|
|
5
|
+
|
|
6
|
+
## Owns
|
|
7
|
+
|
|
8
|
+
Canonical definitions live in `src/schemas/service.ts`:
|
|
9
|
+
|
|
10
|
+
- `deploymentOriginKindSchema` and `DeploymentOriginKind`: primary, redirect,
|
|
11
|
+
preview, internal and alias.
|
|
12
|
+
- Strict `ServiceOriginSchema`: kernel `EnvironmentTierSchema`, origin kind
|
|
13
|
+
and URL. `ServiceEnvironment` is inferred from that kernel schema.
|
|
14
|
+
- Strict `ServiceDescriptorSchema` and `ServiceDescriptor`: infra/service
|
|
15
|
+
metadata, nonempty origins, aliases defaulting to [], optional cookieDomain,
|
|
16
|
+
sshHost and sshHostKey. Duplicate primary/internal origins in one environment
|
|
17
|
+
produce a custom Zod issue at the duplicate origins index.
|
|
18
|
+
- `ServiceTargetKindSchema` and `ServiceTargetKind`: primary or internal.
|
|
19
|
+
Strict `ServiceTargetSchema` and `ServiceTarget`: origin URL and environment.
|
|
20
|
+
- `ServicePortSchema` and `ServicePort`: a target function accepting an
|
|
21
|
+
optional kind and returning a promise of a validated target.
|
|
22
|
+
- `serviceOrigin(runtime, id, kind?)` on `./service` only. It validates `id`
|
|
23
|
+
with the kernel `SafeIdentifierSchema` and `kind` with `ServiceTargetKindSchema`,
|
|
24
|
+
reads the handed runtime's `infra/service` port, and returns the parsed target
|
|
25
|
+
origin. An invalid id refuses `INVALID_INPUT` `service-id-invalid`. An invalid
|
|
26
|
+
kind refuses `INVALID_INPUT` `service-target-kind-invalid`. A runtime without
|
|
27
|
+
the kind, or without that id, refuses `NOT_FOUND` `service-undeclared`. The
|
|
28
|
+
message, details, and cause carry no caller value. Implementation failures
|
|
29
|
+
propagate unchanged. Root and `./schemas` do not export it.
|
|
30
|
+
- Topic `infra-contracts.service` and `infraContractsDocsPlugin` at `./docs`.
|
|
31
|
+
|
|
32
|
+
## Does not own
|
|
33
|
+
|
|
34
|
+
`@vibesdotdev/infra-core` owns infra/service kind registration, implementations,
|
|
35
|
+
configuration, environment selection, overrides, and the operational refusals
|
|
36
|
+
those implementations raise (`originOf`, local dev ports, transport). This
|
|
37
|
+
package has no service kind, configuration reader, host implementation, storage
|
|
38
|
+
or provider catalog.
|
|
39
|
+
|
|
40
|
+
## Hard rules and public exports
|
|
41
|
+
|
|
42
|
+
`.`, `./service` and `./schemas` retain all existing service symbols and
|
|
43
|
+
share identical canonical schema objects within each artifact condition.
|
|
44
|
+
`./service` re-exports the schemas and adds `serviceOrigin`. Bun selects
|
|
45
|
+
source; Node selects built ESM; declaration consumers select emitted
|
|
46
|
+
declarations.
|
|
47
|
+
|
|
48
|
+
Descriptor and target malformed-input refusals are Zod errors, not operational
|
|
49
|
+
CapabilityErrors. Port arguments are validated before invocation and promised
|
|
50
|
+
results after resolution. Implementation failures propagate with unchanged
|
|
51
|
+
identity. An optional target kind remains callable with no argument or undefined.
|
|
52
|
+
|
|
53
|
+
Port admission validates a plain function contract and returns a parsed object.
|
|
54
|
+
Consumers retain resolved class implementations and call their methods with the
|
|
55
|
+
original receiver, then validate returned targets with ServiceTargetSchema.
|
|
56
|
+
|
|
57
|
+
The root barrel contains only the primary portable contract. Documentation is
|
|
58
|
+
selected explicitly through `./docs`; it contributes one typed topic and no
|
|
59
|
+
kind or implementation. Its inline Markdown is included in source and dist.
|
|
60
|
+
|
|
61
|
+
## Composes with
|
|
62
|
+
|
|
63
|
+
Production dependencies are `@vibesdotdev/kernel`, `zod` and the type-only
|
|
64
|
+
`@vibesdotdev/docs-contracts` documentation contract. The primary contract's
|
|
65
|
+
runtime closure remains kernel and Zod. Compose the real docs owner's
|
|
66
|
+
`docsPlugin` from `@vibesdotdev/docs/plugin` with `infraContractsDocsPlugin`.
|
|
67
|
+
Resolve `getVibesDocsClient(runtime)` from `@vibesdotdev/docs`, then
|
|
68
|
+
`findById('infra-contracts.service')` and `resolveBody(topic)`.
|
|
69
|
+
|
|
70
|
+
## Verification
|
|
71
|
+
|
|
72
|
+
Run `bun run check`, `bun run test` and `bun run build` in this directory,
|
|
73
|
+
or from Developer run:
|
|
74
|
+
`bun run vibes dev check --package @vibesdotdev/infra-contracts --check rules lint check build test`.
|
|
75
|
+
|
|
76
|
+
Typecheck includes tests. The complete suite proves admission, rejection details,
|
|
77
|
+
defaults, kernel schema reuse, optional-kind calls, port argument/result
|
|
78
|
+
validation, implementation-error identity, receiver-preserving typed usage, and
|
|
79
|
+
value-free `serviceOrigin` refusals for an undeclared id, an unsafe id, and an
|
|
80
|
+
invalid kind.
|
|
81
|
+
Docs discovery runs an owned createTestRuntime with both production plugins and
|
|
82
|
+
disposes it.
|
|
83
|
+
|
|
84
|
+
Artifact tests run in-process without packing, extraction or subprocess installs.
|
|
85
|
+
They import all four public package specifiers, compare canonical schema objects,
|
|
86
|
+
check exact export mappings and required publication exclusions, and resolve the
|
|
87
|
+
`./docs` plugin through the real docs runtime client. They exercise admission,
|
|
88
|
+
duplicate-origin refusal details and port behavior. Typecheck verifies source
|
|
89
|
+
inference, optional-kind calls and receiver-preserving usage. The local source
|
|
90
|
+
scan checks direct import text; it does not traverse dependency edges.
|
|
91
|
+
|
|
92
|
+
Build/export checks and release preflight own emitted-declaration consumption
|
|
93
|
+
and transitive universal-closure verification. Release preflight also owns actual
|
|
94
|
+
published-file verification. Unit tests check manifest declarations, not packed
|
|
95
|
+
contents or emitted declarations. Created runtimes are disposed in `finally`.
|
|
96
|
+
|
|
97
|
+
Publication is restricted to source, dist, README, SPEC and LICENSE, with test
|
|
98
|
+
and compiler-state exclusions. In-process proof does not certify a registry
|
|
99
|
+
install.
|
|
100
|
+
Rules and lint cover the package's nonempty source scope. CI/release ownership
|
|
101
|
+
remains the Framework repository; dependency updates belong to its release train.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/service.docs.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"service.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/service.docs.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wBA2DgC"}
|
|
@@ -36,9 +36,12 @@ async function origin(service: ServicePort) {
|
|
|
36
36
|
\`\`\`
|
|
37
37
|
|
|
38
38
|
The parsed plain port is not a receiver-preserving class adapter.
|
|
39
|
+
\`serviceOrigin\` from \`@vibesdotdev/infra-contracts/service\` validates the id
|
|
40
|
+
and kind, then reads the handed runtime. An invalid id or kind, or an
|
|
41
|
+
undeclared service, refuses with CapabilityError and does not echo the caller
|
|
42
|
+
value. Implementation failures propagate unchanged.
|
|
39
43
|
@vibesdotdev/infra-core owns infra/service registration, implementations,
|
|
40
|
-
configuration
|
|
41
|
-
This contract package does not resolve services or translate those failures.
|
|
44
|
+
configuration and environment selection.
|
|
42
45
|
|
|
43
46
|
Compose docsPlugin from @vibesdotdev/docs/plugin and infraContractsDocsPlugin
|
|
44
47
|
from @vibesdotdev/infra-contracts/docs. Resolve getVibesDocsClient(runtime) from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.docs.descriptor.js","sourceRoot":"","sources":["../../src/docs/service.docs.descriptor.ts"],"names":[],"mappings":"AAEA,eAAe;IACd,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,yBAAyB;IAC7B,KAAK,EAAE,2CAA2C;IAClD,OAAO,EAAE,kFAAkF;IAC3F,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,CAAC,iBAAiB,EAAE,OAAO,EAAE,SAAS,CAAC;IAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;IACzC,OAAO,EAAE,IAAI;IACb,IAAI,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"service.docs.descriptor.js","sourceRoot":"","sources":["../../src/docs/service.docs.descriptor.ts"],"names":[],"mappings":"AAEA,eAAe;IACd,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,yBAAyB;IAC7B,KAAK,EAAE,2CAA2C;IAClD,OAAO,EAAE,kFAAkF;IAC3F,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,CAAC,iBAAiB,EAAE,OAAO,EAAE,SAAS,CAAC;IAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;IACzC,OAAO,EAAE,IAAI;IACb,IAAI,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CT;KACC;CAC6B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { EnvironmentTierSchema } from '@vibesdotdev/kernel/schemas/scope';
|
|
3
3
|
export declare const deploymentOriginKindSchema: z.ZodEnum<{
|
|
4
|
-
internal: "internal";
|
|
5
4
|
primary: "primary";
|
|
6
5
|
redirect: "redirect";
|
|
7
6
|
preview: "preview";
|
|
7
|
+
internal: "internal";
|
|
8
8
|
alias: "alias";
|
|
9
9
|
}>;
|
|
10
10
|
export type DeploymentOriginKind = z.infer<typeof deploymentOriginKindSchema>;
|
|
@@ -16,10 +16,10 @@ export declare const ServiceOriginSchema: z.ZodObject<{
|
|
|
16
16
|
production: "production";
|
|
17
17
|
}>;
|
|
18
18
|
kind: z.ZodEnum<{
|
|
19
|
-
internal: "internal";
|
|
20
19
|
primary: "primary";
|
|
21
20
|
redirect: "redirect";
|
|
22
21
|
preview: "preview";
|
|
22
|
+
internal: "internal";
|
|
23
23
|
alias: "alias";
|
|
24
24
|
}>;
|
|
25
25
|
origin: z.ZodURL;
|
|
@@ -54,10 +54,10 @@ export declare const ServiceDescriptorSchema: z.ZodObject<{
|
|
|
54
54
|
production: "production";
|
|
55
55
|
}>;
|
|
56
56
|
kind: z.ZodEnum<{
|
|
57
|
-
internal: "internal";
|
|
58
57
|
primary: "primary";
|
|
59
58
|
redirect: "redirect";
|
|
60
59
|
preview: "preview";
|
|
60
|
+
internal: "internal";
|
|
61
61
|
alias: "alias";
|
|
62
62
|
}>;
|
|
63
63
|
origin: z.ZodURL;
|
|
@@ -70,8 +70,8 @@ export declare const ServiceDescriptorSchema: z.ZodObject<{
|
|
|
70
70
|
export type ServiceDescriptor = z.infer<typeof ServiceDescriptorSchema>;
|
|
71
71
|
export type ServiceEnvironment = z.infer<typeof EnvironmentTierSchema>;
|
|
72
72
|
export declare const ServiceTargetKindSchema: z.ZodEnum<{
|
|
73
|
-
internal: "internal";
|
|
74
73
|
primary: "primary";
|
|
74
|
+
internal: "internal";
|
|
75
75
|
}>;
|
|
76
76
|
export type ServiceTargetKind = z.infer<typeof ServiceTargetKindSchema>;
|
|
77
77
|
export declare const ServiceTargetSchema: z.ZodObject<{
|
|
@@ -87,8 +87,8 @@ export type ServiceTarget = z.infer<typeof ServiceTargetSchema>;
|
|
|
87
87
|
/** Validate a plain port; runtime consumers retain implementation receivers and validate returned targets. */
|
|
88
88
|
export declare const ServicePortSchema: z.ZodObject<{
|
|
89
89
|
target: z.ZodFunction<z.ZodTuple<readonly [z.ZodOptional<z.ZodEnum<{
|
|
90
|
-
internal: "internal";
|
|
91
90
|
primary: "primary";
|
|
91
|
+
internal: "internal";
|
|
92
92
|
}>>], null>, z.ZodPromise<z.ZodObject<{
|
|
93
93
|
origin: z.ZodURL;
|
|
94
94
|
environment: z.ZodEnum<{
|
package/dist/service.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export * from './schemas/index.ts';
|
|
|
5
5
|
* A declared service's origin, read through the `infra/service` kind. The
|
|
6
6
|
* kind's implementation (infra-core's by default) selects the target, so a
|
|
7
7
|
* consumer needs only this contract and the runtime it was handed.
|
|
8
|
+
*
|
|
9
|
+
* Caller values stay out of the refusal: invalid ids and kinds are rejected
|
|
10
|
+
* before the query, and an undeclared service names no id in the message,
|
|
11
|
+
* details, or cause.
|
|
8
12
|
*/
|
|
9
13
|
export declare function serviceOrigin(runtime: RuntimeRef, id: string, kind?: ServiceTargetKind): Promise<string>;
|
|
10
14
|
//# sourceMappingURL=service.d.ts.map
|
package/dist/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEvE,OAAO,EAA0F,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEpJ,cAAc,oBAAoB,CAAC;AAEnC;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,iBAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBzH"}
|
package/dist/service.js
CHANGED
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeIdentifierSchema } from '@vibesdotdev/kernel/schemas/descriptor';
|
|
3
|
+
import { ServiceTargetKindSchema, ServiceTargetSchema } from "./schemas/index.js";
|
|
3
4
|
export * from "./schemas/index.js";
|
|
4
5
|
/**
|
|
5
6
|
* A declared service's origin, read through the `infra/service` kind. The
|
|
6
7
|
* kind's implementation (infra-core's by default) selects the target, so a
|
|
7
8
|
* consumer needs only this contract and the runtime it was handed.
|
|
9
|
+
*
|
|
10
|
+
* Caller values stay out of the refusal: invalid ids and kinds are rejected
|
|
11
|
+
* before the query, and an undeclared service names no id in the message,
|
|
12
|
+
* details, or cause.
|
|
8
13
|
*/
|
|
9
14
|
export async function serviceOrigin(runtime, id, kind = 'primary') {
|
|
15
|
+
const serviceId = SafeIdentifierSchema.safeParse(id);
|
|
16
|
+
if (!serviceId.success)
|
|
17
|
+
throw new CapabilityError('Service id is invalid.', 'INVALID_INPUT', {
|
|
18
|
+
reason: 'service-id-invalid'
|
|
19
|
+
});
|
|
20
|
+
const targetKind = ServiceTargetKindSchema.safeParse(kind);
|
|
21
|
+
if (!targetKind.success)
|
|
22
|
+
throw new CapabilityError('Service target kind is invalid.', 'INVALID_INPUT', {
|
|
23
|
+
reason: 'service-target-kind-invalid'
|
|
24
|
+
});
|
|
10
25
|
const selected = runtime.hasKind('infra/service')
|
|
11
|
-
? await runtime.query('infra/service').withId(
|
|
26
|
+
? await runtime.query('infra/service').withId(serviceId.data).select()
|
|
12
27
|
: undefined;
|
|
13
28
|
if (!selected)
|
|
14
29
|
throw new CapabilityError('Service is not declared in this runtime.', 'NOT_FOUND', {
|
|
15
|
-
reason: 'service-undeclared'
|
|
30
|
+
reason: 'service-undeclared'
|
|
16
31
|
});
|
|
17
|
-
return ServiceTargetSchema.parse(await selected.impl.target(
|
|
32
|
+
return ServiceTargetSchema.parse(await selected.impl.target(targetKind.data)).origin;
|
|
18
33
|
}
|
|
19
34
|
//# sourceMappingURL=service.js.map
|
package/dist/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAoE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAoE,MAAM,oBAAoB,CAAC;AAEpJ,cAAc,oBAAoB,CAAC;AAEnC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAmB,EAAE,EAAU,EAAE,OAA0B,SAAS;IACvG,MAAM,SAAS,GAAG,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACrD,IAAI,CAAC,SAAS,CAAC,OAAO;QAAE,MAAM,IAAI,eAAe,CAAC,wBAAwB,EAAE,eAAe,EAAE;YAC5F,MAAM,EAAE,oBAAoB;SAC5B,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,uBAAuB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,CAAC,UAAU,CAAC,OAAO;QAAE,MAAM,IAAI,eAAe,CAAC,iCAAiC,EAAE,eAAe,EAAE;YACtG,MAAM,EAAE,6BAA6B;SACrC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC;QAChD,CAAC,CAAC,MAAM,OAAO,CAAC,KAAK,CAAiC,eAAe,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE;QACtG,CAAC,CAAC,SAAS,CAAC;IACb,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,eAAe,CAAC,0CAA0C,EAAE,WAAW,EAAE;YACjG,MAAM,EAAE,oBAAoB;SAC5B,CAAC,CAAC;IACH,OAAO,mBAAmB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AACtF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/infra-contracts",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@vibesdotdev/kernel": "^1.0.0-rc.
|
|
5
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.18",
|
|
6
6
|
"zod": "^4.6.7",
|
|
7
|
-
"@vibesdotdev/docs-contracts": "^1.0.0-rc.
|
|
7
|
+
"@vibesdotdev/docs-contracts": "^1.0.0-rc.7"
|
|
8
|
+
},
|
|
9
|
+
"gitHead": "064f1d6a92d5a23556d642b61e96513f415f6289",
|
|
10
|
+
"_vibes_source": {
|
|
11
|
+
"repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
12
|
+
"sha": "064f1d6a92d5a23556d642b61e96513f415f6289",
|
|
13
|
+
"workspaceDigest": "sha256:9bff65980c3a1077d348ce387160801b71238114bd6b55d13f624639a9a951ca"
|
|
8
14
|
},
|
|
9
15
|
"main": "./dist/index.js",
|
|
10
16
|
"exports": {
|
|
11
17
|
".": {
|
|
12
|
-
"bun": "./dist/index.js",
|
|
13
18
|
"types": "./dist/index.d.ts",
|
|
19
|
+
"bun": "./dist/index.js",
|
|
14
20
|
"import": "./dist/index.js",
|
|
15
21
|
"default": "./dist/index.js"
|
|
16
22
|
},
|
|
17
23
|
"./service": {
|
|
18
|
-
"bun": "./dist/service.js",
|
|
19
24
|
"types": "./dist/service.d.ts",
|
|
25
|
+
"bun": "./dist/service.js",
|
|
20
26
|
"import": "./dist/service.js",
|
|
21
27
|
"default": "./dist/service.js"
|
|
22
28
|
},
|
|
23
29
|
"./schemas": {
|
|
24
|
-
"bun": "./dist/schemas/index.js",
|
|
25
30
|
"types": "./dist/schemas/index.d.ts",
|
|
31
|
+
"bun": "./dist/schemas/index.js",
|
|
26
32
|
"import": "./dist/schemas/index.js",
|
|
27
33
|
"default": "./dist/schemas/index.js"
|
|
28
34
|
},
|
|
29
35
|
"./docs": {
|
|
30
|
-
"bun": "./dist/docs/plugin.js",
|
|
31
36
|
"types": "./dist/docs/plugin.d.ts",
|
|
37
|
+
"bun": "./dist/docs/plugin.js",
|
|
32
38
|
"import": "./dist/docs/plugin.js",
|
|
33
39
|
"default": "./dist/docs/plugin.js"
|
|
34
40
|
}
|
|
@@ -37,17 +43,45 @@
|
|
|
37
43
|
"dist",
|
|
38
44
|
"README.md",
|
|
39
45
|
"LICENSE",
|
|
46
|
+
"SPEC.md",
|
|
40
47
|
"!dist/**/__tests__/**",
|
|
41
48
|
"!dist/**/*.test.js",
|
|
42
49
|
"!dist/**/*.test.d.ts",
|
|
43
50
|
"!dist/**/*.spec.js",
|
|
44
51
|
"!dist/**/*.spec.d.ts",
|
|
45
|
-
"!dist/**/*.tsbuildinfo"
|
|
52
|
+
"!dist/**/*.tsbuildinfo",
|
|
53
|
+
"!**/.turbo/**",
|
|
54
|
+
"!**/.svelte-kit/**",
|
|
55
|
+
"!**/.vibes/**",
|
|
56
|
+
"!**/__tests__/**",
|
|
57
|
+
"!**/__stubs__/**",
|
|
58
|
+
"!**/*.test.js",
|
|
59
|
+
"!**/*.test.mjs",
|
|
60
|
+
"!**/*.test.cjs",
|
|
61
|
+
"!**/*.test.jsx",
|
|
62
|
+
"!**/*.test.ts",
|
|
63
|
+
"!**/*.test.mts",
|
|
64
|
+
"!**/*.test.cts",
|
|
65
|
+
"!**/*.test.tsx",
|
|
66
|
+
"!**/*.spec.js",
|
|
67
|
+
"!**/*.spec.mjs",
|
|
68
|
+
"!**/*.spec.cjs",
|
|
69
|
+
"!**/*.spec.jsx",
|
|
70
|
+
"!**/*.spec.ts",
|
|
71
|
+
"!**/*.spec.mts",
|
|
72
|
+
"!**/*.spec.cts",
|
|
73
|
+
"!**/*.spec.tsx",
|
|
74
|
+
"!**/dist/**/SPEC.md",
|
|
75
|
+
"!**/tsconfig.json",
|
|
76
|
+
"!**/tsconfig.*.json",
|
|
77
|
+
"!**/*.tsbuildinfo",
|
|
78
|
+
"!**/.build-ok.json",
|
|
79
|
+
"!**/*.tgz"
|
|
46
80
|
],
|
|
47
81
|
"scripts": {
|
|
48
|
-
"lint": "node ../node_modules/@vibesdotdev/
|
|
49
|
-
"build": "
|
|
50
|
-
"check": "${BUN:-bun} --
|
|
82
|
+
"lint": "node ../node_modules/@vibesdotdev/oxlint-toolchain/ratchet.mjs .",
|
|
83
|
+
"build": "tsc -p tsconfig.json",
|
|
84
|
+
"check": "${BUN:-bun} check --no-script -p tsconfig.check.json",
|
|
51
85
|
"test": "${BUN:-bun} test src"
|
|
52
86
|
},
|
|
53
87
|
"repository": {
|
|
@@ -71,11 +105,5 @@
|
|
|
71
105
|
"description": "Portable infrastructure service descriptors and target port contracts.",
|
|
72
106
|
"type": "module",
|
|
73
107
|
"types": "./dist/index.d.ts",
|
|
74
|
-
"license": "MIT"
|
|
75
|
-
"gitHead": "51230ebdad54bc405014633f435b499fa2a06b89",
|
|
76
|
-
"_vibes_source": {
|
|
77
|
-
"repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
78
|
-
"sha": "51230ebdad54bc405014633f435b499fa2a06b89",
|
|
79
|
-
"workspaceDigest": "sha256:439f317a0863347f8831cdb494e4b27ddb0038f56f0569332a5fffb3f57a6157"
|
|
80
|
-
}
|
|
108
|
+
"license": "MIT"
|
|
81
109
|
}
|