@effected/engine 0.6.0 → 0.8.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/Distribution.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Context, Option, Schema } from "effect";
2
2
 
3
- //#region src/Distribution.ts
3
+ // src/Distribution.ts
4
4
  /**
5
5
  * The carrier package a tool's bins were installed through.
6
6
  *
@@ -47,5 +47,4 @@ const distributionSuffix = (distribution) => Option.match(distribution, {
47
47
  onSome: ({ name, version }) => ` via ${name} ${version}`
48
48
  });
49
49
 
50
- //#endregion
51
50
  export { CurrentDistribution, Distribution, DistributionField, distributionSuffix };
package/LaunchContext.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/LaunchContext.ts
1
+ // src/LaunchContext.ts
2
2
  /**
3
3
  * Resolves where a tool launched by an agent host should treat as its project.
4
4
  *
@@ -54,5 +54,4 @@ var LaunchContext = class LaunchContext {
54
54
  };
55
55
  };
56
56
 
57
- //#endregion
58
57
  export { LaunchContext };
package/ProcessGuard.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/ProcessGuard.ts
1
+ // src/ProcessGuard.ts
2
2
  const isInjectedKind = (kind) => kind === "uncaughtException" || kind === "unhandledRejection";
3
3
  const INJECT_AT = ["load", "connected"];
4
4
  const INJECT_KIND = ["uncaughtException", "unhandledRejection"];
@@ -141,5 +141,4 @@ var ProcessGuard = class {
141
141
  };
142
142
  };
143
143
 
144
- //#endregion
145
144
  export { ProcessGuard };
package/Remediation.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/Remediation.ts
3
+ // src/Remediation.ts
4
4
  /**
5
5
  * What a caller — usually an agent — should do after a failure.
6
6
  *
@@ -30,5 +30,4 @@ const Remediation = Schema.Struct({
30
30
  suggestedArgs: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
31
31
  });
32
32
 
33
- //#endregion
34
33
  export { Remediation };
package/guard.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/ProcessGuard.d.ts
2
1
  /**
3
2
  * The slice of the host process {@link ProcessGuard.run} uses. Node's
4
3
  * `process` satisfies it.
@@ -202,6 +201,5 @@ export declare class ProcessGuard {
202
201
  /** Install the guards, then run `load`. Resolves once `load` has resolved. */
203
202
  static readonly run: (options: ProcessGuardOptions) => Promise<void>;
204
203
  }
205
- //#endregion
206
204
  export type { ProcessGuardControl, ProcessGuardHost, ProcessGuardInjection, ProcessGuardOptions, ProcessGuardPolicy };
207
205
  //# sourceMappingURL=guard.d.ts.map
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Context, Option, Schema } from "effect";
2
- //#region src/Distribution.d.ts
3
2
  /**
4
3
  * The carrier package a tool's bins were installed through.
5
4
  *
@@ -51,8 +50,6 @@ export declare const CurrentDistribution: Context.Reference<Option.Option<Distri
51
50
  * @public
52
51
  */
53
52
  export declare const distributionSuffix: (distribution: Option.Option<Distribution>) => string;
54
- //#endregion
55
- //#region src/LaunchContext.d.ts
56
53
  /**
57
54
  * The process-derived facts a front end resolves once, passed in as values.
58
55
  *
@@ -114,8 +111,6 @@ export declare class LaunchContext {
114
111
  */
115
112
  static readonly projectDir: (input: ProjectDirInput) => string;
116
113
  }
117
- //#endregion
118
- //#region src/Remediation.d.ts
119
114
  /**
120
115
  * What a caller — usually an agent — should do after a failure.
121
116
  *
@@ -150,6 +145,5 @@ export declare const Remediation: Schema.Struct<{
150
145
  * @public
151
146
  */
152
147
  export type Remediation = typeof Remediation.Type;
153
- //#endregion
154
148
  export type { ProjectDirInput };
155
149
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/engine",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "description": "Platform-free primitives shared by every front end of an Effect v4 tool: distribution identity, remediation, launch context, and transport-neutral process crash guards",
6
6
  "keywords": [