@okfit/core 0.17.1 → 0.18.0
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/OkfitConfig.js +8 -0
- package/index.d.ts +15 -1
- package/package.json +2 -2
package/OkfitConfig.js
CHANGED
|
@@ -404,6 +404,13 @@ const okfitConfigFields = Schema.Struct({
|
|
|
404
404
|
title: "Contribution policy",
|
|
405
405
|
description: "How to contribute to this knowledge repository."
|
|
406
406
|
})),
|
|
407
|
+
submit: Schema.optionalKey(Schema.Struct({ sign: Schema.optionalKey(Schema.Boolean.annotate({
|
|
408
|
+
title: "Sign commits",
|
|
409
|
+
description: "Sign submitted commits even when the knowledge repository does not require it."
|
|
410
|
+
})) }).annotate({
|
|
411
|
+
title: "Submit",
|
|
412
|
+
description: "How okfit bundles submit behaves for this project."
|
|
413
|
+
})),
|
|
407
414
|
extensions: Schema.Record(Schema.String, Schema.Unknown)
|
|
408
415
|
});
|
|
409
416
|
/**
|
|
@@ -464,6 +471,7 @@ const okfitConfigDocumentFields = Schema.StructWithRest(Schema.Struct({
|
|
|
464
471
|
checkouts: okfitConfigFields.fields.checkouts,
|
|
465
472
|
references: okfitConfigFields.fields.references,
|
|
466
473
|
contribute: okfitConfigFields.fields.contribute,
|
|
474
|
+
submit: okfitConfigFields.fields.submit,
|
|
467
475
|
concepts: okfitConfigFields.fields.concepts,
|
|
468
476
|
lifecycle: okfitConfigFields.fields.lifecycle,
|
|
469
477
|
actors: okfitConfigFields.fields.actors,
|
package/index.d.ts
CHANGED
|
@@ -1192,6 +1192,9 @@ declare const okfitConfigFields: Schema.Struct<{
|
|
|
1192
1192
|
readonly signed: Schema.optionalKey<Schema.Boolean>;
|
|
1193
1193
|
readonly needs_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1194
1194
|
}>>;
|
|
1195
|
+
readonly submit: Schema.optionalKey<Schema.Struct<{
|
|
1196
|
+
readonly sign: Schema.optionalKey<Schema.Boolean>;
|
|
1197
|
+
}>>;
|
|
1195
1198
|
readonly extensions: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1196
1199
|
}>;
|
|
1197
1200
|
/**
|
|
@@ -1276,6 +1279,9 @@ export declare const okfitConfigDocumentFields: Schema.StructWithRest<Schema.Str
|
|
|
1276
1279
|
readonly signed: Schema.optionalKey<Schema.Boolean>;
|
|
1277
1280
|
readonly needs_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1278
1281
|
}>>;
|
|
1282
|
+
readonly submit: Schema.optionalKey<Schema.Struct<{
|
|
1283
|
+
readonly sign: Schema.optionalKey<Schema.Boolean>;
|
|
1284
|
+
}>>;
|
|
1279
1285
|
readonly concepts: Schema.optionalKey<Schema.Struct<{
|
|
1280
1286
|
readonly required: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1281
1287
|
readonly tags: Schema.optionalKey<Schema.Struct<{
|
|
@@ -1363,6 +1369,11 @@ export declare const okfitConfigDocumentFields: Schema.StructWithRest<Schema.Str
|
|
|
1363
1369
|
* @public
|
|
1364
1370
|
*/
|
|
1365
1371
|
export type OkfitConfig = typeof okfitConfigFields.Type;
|
|
1372
|
+
/**
|
|
1373
|
+
* A knowledge repository's `[contribute]` table: how a change reaches it.
|
|
1374
|
+
* @public
|
|
1375
|
+
*/
|
|
1376
|
+
type ContributeConfig = NonNullable<OkfitConfig["contribute"]>;
|
|
1366
1377
|
/**
|
|
1367
1378
|
* The field shape behind `OkfitConfig`, exported type-only so the barrel can
|
|
1368
1379
|
* re-export the name without adding a runtime value to the public surface.
|
|
@@ -1522,6 +1533,9 @@ declare const OkfitConfigFile_base: import("effect/Context").ServiceClass<OkfitC
|
|
|
1522
1533
|
readonly signed?: boolean;
|
|
1523
1534
|
readonly needs_approval?: readonly string[];
|
|
1524
1535
|
};
|
|
1536
|
+
readonly submit?: {
|
|
1537
|
+
readonly sign?: boolean;
|
|
1538
|
+
};
|
|
1525
1539
|
readonly extensions: {
|
|
1526
1540
|
readonly [x: string]: unknown;
|
|
1527
1541
|
};
|
|
@@ -1650,5 +1664,5 @@ export declare class Validate {
|
|
|
1650
1664
|
* @public
|
|
1651
1665
|
*/
|
|
1652
1666
|
export declare const OKF_SPEC_VERSION: "0.3";
|
|
1653
|
-
export type { ActorForm, BundleLoadError, BundleLoadOptions, EntryFamily, FallbackRule, GraphEdge, GraphLink, GraphNode, LinkResolution, LogEntry, MalformedStaleAfter, NamedReference, OkfVersionNumber, OkfitConfigFields, PathField, RenderIndexOptions, StaleConcept, ValidateOptions, ValidationReport };
|
|
1667
|
+
export type { ActorForm, BundleLoadError, BundleLoadOptions, ContributeConfig, EntryFamily, FallbackRule, GraphEdge, GraphLink, GraphNode, LinkResolution, LogEntry, MalformedStaleAfter, NamedReference, OkfVersionNumber, OkfitConfigFields, PathField, RenderIndexOptions, StaleConcept, ValidateOptions, ValidationReport };
|
|
1654
1668
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Spec-level Open Knowledge Format (OKF) v0.3 schemas, bundle loading, graph, derivation, and validation for Effect.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@effected/config-file": "^0.35.0",
|
|
41
|
-
"@effected/git": "^0.
|
|
41
|
+
"@effected/git": "^0.39.0",
|
|
42
42
|
"@effected/glob": "^0.23.0",
|
|
43
43
|
"@effected/jsonc": "^0.25.0",
|
|
44
44
|
"@effected/kit": "^0.16.0",
|