@xtruder/opencode-claude-max-plugin 0.4.5 → 2.0.0-rc.1

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/build/model.d.ts CHANGED
@@ -34,16 +34,11 @@ export declare class AnthropicSDKModel implements LanguageModelV3 {
34
34
  readonly provider: string;
35
35
  readonly modelId: string;
36
36
  readonly supportedUrls: Record<string, RegExp[]>;
37
- /** Model ID sent to the Anthropic API (without our -1m suffix). */
38
37
  private readonly apiModelId;
39
- /** Whether this is a 1M context variant (affects only compaction threshold, not API calls). */
40
- private readonly is1MContext;
41
38
  constructor(modelId: string, client: Anthropic, providerName: string, isOAuth?: boolean);
42
39
  private buildParams;
43
40
  /**
44
41
  * Build per-request SDK options (headers, signal).
45
- * The -1m suffix only controls OpenCode's compaction threshold — no extra
46
- * beta header is needed since Opus 4.6 natively supports 1M tokens.
47
42
  */
48
43
  private buildRequestOptions;
49
44
  doGenerate(options: LanguageModelV3CallOptions): Promise<DoGenerateResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAG1B,6BAA6B,EAE7B,2BAA2B,EAE5B,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAA;AAc9C,KAAK,gBAAgB,GAAG,6BAA6B,CAAA;AACrD,KAAK,cAAc,GAAG,2BAA2B,CAAA;AAkDjD;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAExE;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,GAAG,EAAE,KAAK,SAAW,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAS9F;AAmBD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,mCAAmC,CAAA;AAmF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CAAC,EAAE,MAAM,GAAG,KAAK,CAS9F;AAmBD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,mCAAmC,CAAA;AAmFrE,qBAAa,iBAAkB,YAAW,eAAe;IAUrD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,OAAO;IAXjB,QAAQ,CAAC,oBAAoB,EAAG,IAAI,CAAS;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAK;IAErD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAQ;gBAGjC,OAAO,EAAE,MAAM,EACP,MAAM,EAAE,SAAS,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,OAAe;IAOlC,OAAO,CAAC,WAAW;IA+NnB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAUrB,UAAU,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0L1E,QAAQ,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,cAAc,CAAC;CA+F7E"}
package/build/server.d.ts CHANGED
@@ -1,14 +1,7 @@
1
- /**
2
- * Server-side plugin entry point (V1 plugin format).
3
- *
4
- * This module re-exports the server plugin in the format expected by
5
- * OpenCode's V1 plugin loader: `default export { id, server }`.
6
- *
7
- * The `./server` export in package.json points here.
8
- */
9
- import type { PluginModule } from "@opencode-ai/plugin";
10
- declare const plugin: PluginModule & {
1
+ import type { Plugin } from "@opencode/plugin";
2
+ declare const _default: {
11
3
  id: string;
4
+ setup(ctx: Plugin.Context): Promise<void>;
12
5
  };
13
- export default plugin;
6
+ export default _default;
14
7
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAO/D,QAAA,MAAM,MAAM,EAAE,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAGxC,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;;;;;AAK9C,wBAmFyB"}