@portel/photon 1.34.0 → 1.34.2

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.
@@ -104596,6 +104596,7 @@ var ElicitationModal = class extends i4 {
104596
104596
  const photonName = this.data?.photonName;
104597
104597
  const methodName = this.data?.methodName;
104598
104598
  const methodTitle = this.data?.methodTitle || methodName;
104599
+ const approvalPreview = this._approvalPreviewText();
104599
104600
  const toolLabel = photonName && methodName ? `${photonName}.${methodName}` : methodTitle || photonName || methodName || "Unknown MCP tool";
104600
104601
  return b2`
104601
104602
  ${this.data?.risk === "destructive" ? b2`<div class="risk-pill">Destructive MCP call</div>` : A}
@@ -104610,6 +104611,12 @@ var ElicitationModal = class extends i4 {
104610
104611
  </div>
104611
104612
  ` : A}
104612
104613
  ${this.data?.description ? b2`<p class="confirm-summary">${this.data.description}</p>` : A}
104614
+ ${approvalPreview ? b2`
104615
+ <div class="approval-preview">
104616
+ <div class="approval-preview-label">Request</div>
104617
+ <pre>${approvalPreview}</pre>
104618
+ </div>
104619
+ ` : A}
104613
104620
  <div class="confirm-actions">
104614
104621
  <button class="btn-secondary" @click=${() => this._submitValue(false)}>
104615
104622
  ${this.data?.cancelLabel || "Cancel"}
@@ -104620,6 +104627,17 @@ var ElicitationModal = class extends i4 {
104620
104627
  </div>
104621
104628
  `;
104622
104629
  }
104630
+ _approvalPreviewText() {
104631
+ const toolCall = this.data?._meta?.toolCall;
104632
+ if (!toolCall || typeof toolCall !== "object") return null;
104633
+ const argumentPreview = toolCall.argumentPreview;
104634
+ if (argumentPreview == null) return null;
104635
+ try {
104636
+ return JSON.stringify(argumentPreview, null, 2);
104637
+ } catch {
104638
+ return "[unserializable request]";
104639
+ }
104640
+ }
104623
104641
  _renderOAuth() {
104624
104642
  const providerIcons = {
104625
104643
  google: "\u{1F535}",
@@ -105082,6 +105100,35 @@ ElicitationModal.styles = [
105082
105100
  line-height: 1.5;
105083
105101
  }
105084
105102
 
105103
+ .approval-preview {
105104
+ margin: 0 0 var(--space-md) 0;
105105
+ padding: var(--space-sm);
105106
+ max-height: 180px;
105107
+ overflow: auto;
105108
+ border: 1px solid var(--border-glass);
105109
+ border-radius: var(--radius-sm);
105110
+ background: var(--bg-glass);
105111
+ }
105112
+
105113
+ .approval-preview-label {
105114
+ margin-bottom: 6px;
105115
+ color: var(--t-muted);
105116
+ font-size: var(--text-xs);
105117
+ font-weight: 650;
105118
+ letter-spacing: 0.04em;
105119
+ text-transform: uppercase;
105120
+ }
105121
+
105122
+ .approval-preview pre {
105123
+ margin: 0;
105124
+ color: var(--t-primary);
105125
+ font-family: var(--font-mono);
105126
+ font-size: var(--text-xs);
105127
+ line-height: 1.45;
105128
+ white-space: pre-wrap;
105129
+ word-break: break-word;
105130
+ }
105131
+
105085
105132
  /* Select options */
105086
105133
  .select-options {
105087
105134
  display: flex;