@amalgm/channels 0.1.5-preview.36059389034 → 0.1.5-preview.37556590968

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 CHANGED
@@ -151,9 +151,10 @@ npm run test:integration
151
151
  ## Managed package delivery
152
152
 
153
153
  Managed npm delivery uses `.github/workflows/publish-package.yml` after the
154
- exact main/preview owner checks pass. The occurrence generates a unique
154
+ exact `main` owner checks pass. The occurrence generates a unique
155
155
  prerelease version and records its source SHA; it reruns the owner suite, packs
156
156
  once, and installs that tarball on Linux, macOS and Windows before publication.
157
+ `preview` has no checks: a push to it builds, packs and publishes directly.
157
158
  The `candidate-main`/`candidate-preview` tags are release-assembly inputs and
158
159
  never select installed runtimes. `package.json` declares this owner's gates,
159
160
  CLI probes, peer-only exports and lifecycle permissions. The standalone runner
@@ -175,9 +176,9 @@ Live provider and durable product-flow proof remain separate release obligations
175
176
  Bricks (`@amalgm/*` lane packages) are not pinned in source. `npm run resolve`
176
177
  picks the newest good `candidate-<lane>` of each brick named in
177
178
  `amalgmComposition` at build time; CI runs it with `--save`, so the packed
178
- manifest records the exact set. A brick publication dispatches this owner's
179
- checks on its lane, and a repeated check with an unchanged source and set does
180
- not publish another candidate. Rollback is an explicit set: dispatch
179
+ manifest records the exact set. A `main` brick publication dispatches this
180
+ owner's checks, a `preview` one starts this owner's publication directly, and a
181
+ repeat with an unchanged source and set does not publish another candidate. Rollback is an explicit set: dispatch
181
182
  `publish-package.yml` with `brick_set`, or set `AMALGM_LANE_SET` locally.
182
- `preview` mirrors `main` through `mirror-preview.yml`; nothing is merged the
183
- other way.
183
+ `preview` is pushed, not mirrored; to reset it to `main` run
184
+ `git push --force origin origin/main:preview`. Nothing is merged the other way.
@@ -4,7 +4,9 @@ export declare const DEFAULT_CHANNEL_AGENT_ID = "codex";
4
4
  /**
5
5
  * Codex with the model, model settings, and folder last used on one computer,
6
6
  * read from the app's preferences document the way the app reads it: that
7
- * computer's entry, else the account-wide values. Null when no Codex model is
8
- * on record, because a built-in agent has no model of its own to fall back to.
7
+ * computer's entry, else the account-wide values. A folder only ever comes
8
+ * from that computer's own entry; a path chosen elsewhere may not exist here.
9
+ * Null when no Codex model is on record, because a built-in agent has no model
10
+ * of its own to fall back to.
9
11
  */
10
12
  export declare function lastUsedChannelDefault(document: unknown, computerId: string): ChannelDefaultOffer | null;
@@ -3,8 +3,10 @@ export const DEFAULT_CHANNEL_AGENT_ID = 'codex';
3
3
  /**
4
4
  * Codex with the model, model settings, and folder last used on one computer,
5
5
  * read from the app's preferences document the way the app reads it: that
6
- * computer's entry, else the account-wide values. Null when no Codex model is
7
- * on record, because a built-in agent has no model of its own to fall back to.
6
+ * computer's entry, else the account-wide values. A folder only ever comes
7
+ * from that computer's own entry; a path chosen elsewhere may not exist here.
8
+ * Null when no Codex model is on record, because a built-in agent has no model
9
+ * of its own to fall back to.
8
10
  */
9
11
  export function lastUsedChannelDefault(document, computerId) {
10
12
  const preferences = preferencesForComputer(document, computerId);
@@ -31,7 +33,8 @@ function preferencesForComputer(document, computerId) {
31
33
  if (isRecord(machine))
32
34
  return machine;
33
35
  const { machine_preferences: _machines, ...account } = root;
34
- return account;
36
+ const { cwd: _cwd, ...lastUsed } = record(account.last_used);
37
+ return { ...account, last_used: lastUsed };
35
38
  }
36
39
  /** `provider/model`, as the app stores it; older bare names are not runnable as-is. */
37
40
  function isModelId(value) {
@@ -1 +1 @@
1
- {"version":3,"file":"last-used.js","sourceRoot":"","sources":["../../../src/settings/last-used.ts"],"names":[],"mappings":"AAIA,iEAAiE;AACjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAiB,EAAE,UAAkB;IAC1E,MAAM,WAAW,GAAG,sBAAsB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,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,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amalgm/channels",
3
- "version": "0.1.5-preview.36059389034",
3
+ "version": "0.1.5-preview.37556590968",
4
4
  "description": "Amalgm's SDK and hosted service for durable bidirectional user channels.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -107,11 +107,11 @@
107
107
  "@amalgm/core"
108
108
  ]
109
109
  },
110
- "gitHead": "989147f369f32a3c41a076d7e7507048e3a947a6",
110
+ "gitHead": "3b513aece71542c0822adcd15a2d60e1c6a431db",
111
111
  "amalgmSource": {
112
112
  "repository": "amalgm-inc/amalgm-channels",
113
113
  "branch": "preview",
114
- "commit": "989147f369f32a3c41a076d7e7507048e3a947a6",
115
- "occurrence": "36059389034"
114
+ "commit": "3b513aece71542c0822adcd15a2d60e1c6a431db",
115
+ "occurrence": "37556590968"
116
116
  }
117
117
  }