@cotal-ai/delivery 0.57.0 → 0.59.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.
@@ -1,5 +1,6 @@
1
1
  import { type ParsedArgs, type SecretStore, type SecretStoreIdentity } from "@cotal-ai/core";
2
2
  import { DELIVERY_CREDS_KIND, deliveryCredsKey } from "@cotal-ai/workspace";
3
+ import type { HostedContextInputs, HostedServiceHandle } from "@cotal-ai/workspace";
3
4
  /** Re-exported for hosted compositions: the daemon cred's KIND, and the builder that turns it into
4
5
  * the {@link SecretStore} key for a space. Defined once in workspace (the layout is the workspace's)
5
6
  * so the writer, the renewal owner, and this reader can never drift apart. As of P7 the kind is NOT
@@ -67,6 +68,8 @@ export declare function assertUninjectedCredsSharesCwdRoot(opts: {
67
68
  injected: boolean;
68
69
  credsPath: string;
69
70
  cwdRoot?: string;
71
+ /** Where `cwdRoot` came from, for the refusal: the cwd walk unless `--root` named it. */
72
+ via?: "process cwd" | "--root";
70
73
  }): void;
71
74
  /**
72
75
  * RECORD THIS PROCESS as the space's delivery daemon, and un-record it on a clean exit (#1528).
@@ -112,4 +115,7 @@ export declare function recordDeliveryPid(root: string, space: string): () => vo
112
115
  * the manager and this daemon are handed the SAME store.
113
116
  */
114
117
  export declare function runDelivery(args: ParsedArgs, store?: SecretStore): Promise<void>;
118
+ /** Start one independently owned delivery context. No cwd, process signal, pidfile, or exit
119
+ * policy is borrowed from the CLI runner. The caller owns its explicit state path and store. */
120
+ export declare function startDeliveryService(inputs: HostedContextInputs): Promise<HostedServiceHandle>;
115
121
  //# sourceMappingURL=delivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../src/delivery.ts"],"names":[],"mappings":"AAEA,OAAO,EAsBL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,mBAAmB,EAEzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAsF,gBA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