@onetaskgraph/sdk 0.14.4 → 0.14.5

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,4 +1,4 @@
1
- export declare const SCHEMA_BUNDLE_VERSION: 56;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 57;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -16178,6 +16178,13 @@ export declare namespace GeneratedWritePolicyConfig {
16178
16178
  * asks for. `replacements` is the caller's replacement layer, sent with every sanitisation
16179
16179
  * and above every declaration level the policy reads, a later entry winning; it is refused
16180
16180
  * at load without a `sanitize_command`, because nothing would apply it.
16181
+ *
16182
+ * `sanitize_stored_on_write` opts a store into the read-first guard: a narrow write to a task
16183
+ * is screened with the task and every comment on it as stored, and what that rewrites is
16184
+ * written back first. Off, a narrow write screens only what it writes and a stored term is left
16185
+ * for `sources sanitize`. It is refused at load without a `sanitize_command` for the same
16186
+ * reason as `replacements`; a linking caller's own policy opts in through
16187
+ * `Engine::with_sanitize_stored_on_write`.
16181
16188
  */
16182
16189
  interface WritePolicyConfig {
16183
16190
  /**
@@ -16200,6 +16207,10 @@ export declare namespace GeneratedWritePolicyConfig {
16200
16207
  * The caller's replacement layer: `{term, with}` or `{term, reject: true}`, in order.
16201
16208
  */
16202
16209
  replacements?: Replacement[];
16210
+ /**
16211
+ * Whether a narrow write to a task first rewrites the terms already stored on it.
16212
+ */
16213
+ sanitize_stored_on_write?: boolean;
16203
16214
  }
16204
16215
  }
16205
16216
  export type WritePolicyConfig = GeneratedWritePolicyConfig.WritePolicyConfig;
@@ -23081,7 +23081,7 @@ export declare const runtimeSchemas: {
23081
23081
  readonly WritePolicyConfig: {
23082
23082
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
23083
23083
  readonly title: "WritePolicyConfig";
23084
- readonly description: "The commands a store asks about the public boundary: `write_policy` at the document's\nroot.\n\nBoth are generic command lines rather than a named tool, so the policy behind them stays\nthe caller's. `visibility_command` is handed `{\"repository\": \"<host/owner/name>\"}` on its\nstandard input and answers `{\"visibility\": \"public\" | \"private\" | \"unknown\"}`;\n`check_command` is handed a whole [`PublicWriteInput`](crate::boundary::PublicWriteInput)\nand passes a write only by exiting 0 with `{\"verdict\": \"pass\"}`. Either may be left out:\nwithout a visibility command every repository is `unknown`, which is private, and without\na check command no write to a public destination passes.\n\n`sanitize_command` is handed a whole\n[`PublicSanitizeInput`](crate::boundary::PublicSanitizeInput) and answers the write's\nrewritable entries with every declared replacement applied, and its verdict; with it, every\nscreened write is put to it **in place of** `check_command`, and what it answers is what is\nwritten. `terms_command` answers a scope's resolved terms, which only `sources sanitize`\nasks for. `replacements` is the caller's replacement layer, sent with every sanitisation\nand above every declaration level the policy reads, a later entry winning; it is refused\nat load without a `sanitize_command`, because nothing would apply it.";
23084
+ readonly description: "The commands a store asks about the public boundary: `write_policy` at the document's\nroot.\n\nBoth are generic command lines rather than a named tool, so the policy behind them stays\nthe caller's. `visibility_command` is handed `{\"repository\": \"<host/owner/name>\"}` on its\nstandard input and answers `{\"visibility\": \"public\" | \"private\" | \"unknown\"}`;\n`check_command` is handed a whole [`PublicWriteInput`](crate::boundary::PublicWriteInput)\nand passes a write only by exiting 0 with `{\"verdict\": \"pass\"}`. Either may be left out:\nwithout a visibility command every repository is `unknown`, which is private, and without\na check command no write to a public destination passes.\n\n`sanitize_command` is handed a whole\n[`PublicSanitizeInput`](crate::boundary::PublicSanitizeInput) and answers the write's\nrewritable entries with every declared replacement applied, and its verdict; with it, every\nscreened write is put to it **in place of** `check_command`, and what it answers is what is\nwritten. `terms_command` answers a scope's resolved terms, which only `sources sanitize`\nasks for. `replacements` is the caller's replacement layer, sent with every sanitisation\nand above every declaration level the policy reads, a later entry winning; it is refused\nat load without a `sanitize_command`, because nothing would apply it.\n\n`sanitize_stored_on_write` opts a store into the read-first guard: a narrow write to a task\nis screened with the task and every comment on it as stored, and what that rewrites is\nwritten back first. Off, a narrow write screens only what it writes and a stored term is left\nfor `sources sanitize`. It is refused at load without a `sanitize_command` for the same\nreason as `replacements`; a linking caller's own policy opts in through\n`Engine::with_sanitize_stored_on_write`.";
23085
23085
  readonly type: "object";
23086
23086
  readonly properties: {
23087
23087
  readonly visibility_command: {
@@ -23124,6 +23124,11 @@ export declare const runtimeSchemas: {
23124
23124
  };
23125
23125
  readonly default: readonly [];
23126
23126
  };
23127
+ readonly sanitize_stored_on_write: {
23128
+ readonly description: "Whether a narrow write to a task first rewrites the terms already stored on it.";
23129
+ readonly type: "boolean";
23130
+ readonly default: false;
23131
+ };
23127
23132
  };
23128
23133
  readonly additionalProperties: false;
23129
23134
  readonly $defs: {
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  * implementation of the query semantics across the CLI and both SDKs.
7
7
  */
8
8
  /** The version this package publishes. `package.json` must agree; see the tests. */
9
- export declare const VERSION = "0.14.4";
9
+ export declare const VERSION = "0.14.5";
10
10
  export * from "./client.ts";
11
11
  export type * from "./generated/models.ts";
package/dist/index.js CHANGED
@@ -7194,7 +7194,7 @@ var binaryCommands = [
7194
7194
  ];
7195
7195
 
7196
7196
  // src/generated/models.ts
7197
- var SCHEMA_BUNDLE_VERSION = 56;
7197
+ var SCHEMA_BUNDLE_VERSION = 57;
7198
7198
 
7199
7199
  // src/generated/schemas.ts
7200
7200
  var runtimeSchemas = {
@@ -38928,7 +38928,7 @@ no insignificant whitespace, UTF-8.`,
38928
38928
  WritePolicyConfig: {
38929
38929
  $schema: "https://json-schema.org/draft/2020-12/schema",
38930
38930
  title: "WritePolicyConfig",
38931
- description: 'The commands a store asks about the public boundary: `write_policy` at the document\'s\nroot.\n\nBoth are generic command lines rather than a named tool, so the policy behind them stays\nthe caller\'s. `visibility_command` is handed `{"repository": "<host/owner/name>"}` on its\nstandard input and answers `{"visibility": "public" | "private" | "unknown"}`;\n`check_command` is handed a whole [`PublicWriteInput`](crate::boundary::PublicWriteInput)\nand passes a write only by exiting 0 with `{"verdict": "pass"}`. Either may be left out:\nwithout a visibility command every repository is `unknown`, which is private, and without\na check command no write to a public destination passes.\n\n`sanitize_command` is handed a whole\n[`PublicSanitizeInput`](crate::boundary::PublicSanitizeInput) and answers the write\'s\nrewritable entries with every declared replacement applied, and its verdict; with it, every\nscreened write is put to it **in place of** `check_command`, and what it answers is what is\nwritten. `terms_command` answers a scope\'s resolved terms, which only `sources sanitize`\nasks for. `replacements` is the caller\'s replacement layer, sent with every sanitisation\nand above every declaration level the policy reads, a later entry winning; it is refused\nat load without a `sanitize_command`, because nothing would apply it.',
38931
+ description: 'The commands a store asks about the public boundary: `write_policy` at the document\'s\nroot.\n\nBoth are generic command lines rather than a named tool, so the policy behind them stays\nthe caller\'s. `visibility_command` is handed `{"repository": "<host/owner/name>"}` on its\nstandard input and answers `{"visibility": "public" | "private" | "unknown"}`;\n`check_command` is handed a whole [`PublicWriteInput`](crate::boundary::PublicWriteInput)\nand passes a write only by exiting 0 with `{"verdict": "pass"}`. Either may be left out:\nwithout a visibility command every repository is `unknown`, which is private, and without\na check command no write to a public destination passes.\n\n`sanitize_command` is handed a whole\n[`PublicSanitizeInput`](crate::boundary::PublicSanitizeInput) and answers the write\'s\nrewritable entries with every declared replacement applied, and its verdict; with it, every\nscreened write is put to it **in place of** `check_command`, and what it answers is what is\nwritten. `terms_command` answers a scope\'s resolved terms, which only `sources sanitize`\nasks for. `replacements` is the caller\'s replacement layer, sent with every sanitisation\nand above every declaration level the policy reads, a later entry winning; it is refused\nat load without a `sanitize_command`, because nothing would apply it.\n\n`sanitize_stored_on_write` opts a store into the read-first guard: a narrow write to a task\nis screened with the task and every comment on it as stored, and what that rewrites is\nwritten back first. Off, a narrow write screens only what it writes and a stored term is left\nfor `sources sanitize`. It is refused at load without a `sanitize_command` for the same\nreason as `replacements`; a linking caller\'s own policy opts in through\n`Engine::with_sanitize_stored_on_write`.',
38932
38932
  type: "object",
38933
38933
  properties: {
38934
38934
  visibility_command: {
@@ -38982,6 +38982,11 @@ no insignificant whitespace, UTF-8.`,
38982
38982
  $ref: "#/$defs/Replacement"
38983
38983
  },
38984
38984
  default: []
38985
+ },
38986
+ sanitize_stored_on_write: {
38987
+ description: "Whether a narrow write to a task first rewrites the terms already stored on it.",
38988
+ type: "boolean",
38989
+ default: false
38985
38990
  }
38986
38991
  },
38987
38992
  additionalProperties: false,
@@ -40707,7 +40712,7 @@ function assertCompleteCommandSurface() {
40707
40712
  }
40708
40713
 
40709
40714
  // src/index.ts
40710
- var VERSION = "0.14.4";
40715
+ var VERSION = "0.14.5";
40711
40716
  export {
40712
40717
  taskUpdateOptionFlags,
40713
40718
  taskUpdateFlags,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onetaskgraph/sdk",
3
3
  "//": "llmlint: ignore-file[projects_stay_in_one_js_workspace] This package IS the JS workspace's one member; what the rule reads as a second is the optionalDependency below, which is the published launcher an end user installs beside the SDK and resolves from the registry at their own install. `workspace:*` names nothing there, and npm/cli is not a workspace member for the reason its own manifest records. scripts/set-version.sh writes this number and `--check` refuses any other, under distribution-check. JSON has no comment to scope this to the one line.",
4
- "version": "0.14.4",
4
+ "version": "0.14.5",
5
5
  "description": "The TypeScript SDK for onetaskgraph, generated from the binary's own JSON Schema bundle.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "generate:check": "bun scripts/generate.ts --check"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@onetaskgraph/cli": "0.14.4"
31
+ "@onetaskgraph/cli": "0.14.5"
32
32
  },
33
33
  "devDependencies": {
34
34
  "ajv": "8.17.1",