@tangle-network/agent-app 1.0.25 → 2.0.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.
Files changed (76) hide show
  1. package/dist/assistant/index.js +9 -9
  2. package/dist/catalog/index.js +1 -1
  3. package/dist/chat-react/index.js +6 -6
  4. package/dist/chat-routes/index.js +6 -6
  5. package/dist/{chunk-HWWER7G6.js → chunk-2ARZ4Y7D.js} +2 -2
  6. package/dist/{chunk-MM2GG3IX.js → chunk-4W6MDZQH.js} +3 -3
  7. package/dist/{chunk-SLXJZGXE.js → chunk-6CDNITEO.js} +3 -3
  8. package/dist/chunk-6CDNITEO.js.map +1 -0
  9. package/dist/{chunk-3VEXCVZB.js → chunk-6VRM2RVY.js} +3 -3
  10. package/dist/{chunk-GOPBMDCQ.js → chunk-7IVRHG3L.js} +5 -5
  11. package/dist/chunk-7IVRHG3L.js.map +1 -0
  12. package/dist/{chunk-XCUT52I3.js → chunk-GLZMHETS.js} +2 -2
  13. package/dist/chunk-GLZMHETS.js.map +1 -0
  14. package/dist/{chunk-MK7VUZU7.js → chunk-HFCPHY5D.js} +4 -4
  15. package/dist/{chunk-OZWHBH4T.js → chunk-HFWKZHTZ.js} +21 -5
  16. package/dist/chunk-HFWKZHTZ.js.map +1 -0
  17. package/dist/{chunk-VLMXVCDQ.js → chunk-KSLTD4FI.js} +8 -2
  18. package/dist/chunk-KSLTD4FI.js.map +1 -0
  19. package/dist/{chunk-K7HE6EM4.js → chunk-MS5S4IVF.js} +3 -3
  20. package/dist/{chunk-IQZSV5YG.js → chunk-PKBNDVGR.js} +15 -13
  21. package/dist/{chunk-IQZSV5YG.js.map → chunk-PKBNDVGR.js.map} +1 -1
  22. package/dist/{chunk-X7PYE5C5.js → chunk-RTJJYBVV.js} +2 -2
  23. package/dist/{chunk-RCSAAWOH.js → chunk-SUWAECFT.js} +2 -1
  24. package/dist/chunk-SUWAECFT.js.map +1 -0
  25. package/dist/{chunk-G37LZ2FN.js → chunk-UN3PDU3M.js} +2 -2
  26. package/dist/harness/index.js +1 -1
  27. package/dist/hosted-agent/react/index.js +1 -1
  28. package/dist/hosted-agent/react/index.js.map +1 -1
  29. package/dist/{mention-editor-HLEB37RK.js → mention-editor-XB4LGO3X.js} +3 -3
  30. package/dist/public-consultation/index.js +5 -5
  31. package/dist/runtime/index.js +5 -3
  32. package/dist/runtime/index.js.map +1 -1
  33. package/dist/runtime/model-catalog.d.ts +5 -0
  34. package/dist/runtime/router-turn.js +2 -2
  35. package/dist/sandbox/index.js +2 -2
  36. package/dist/sandbox/prompt-profile.d.ts +1 -1
  37. package/dist/settings-react/index.js +148 -95
  38. package/dist/settings-react/index.js.map +1 -1
  39. package/dist/skills-placement/box.js +2 -2
  40. package/dist/skills-placement/index.js +2 -2
  41. package/dist/studio-react/index.js +2 -2
  42. package/dist/teams/index.d.ts +2 -2
  43. package/dist/teams-react/components/index.d.ts +0 -2
  44. package/dist/teams-react/components/invitation-detail.d.ts +1 -1
  45. package/dist/teams-react/components/member-access.d.ts +2 -2
  46. package/dist/teams-react/contracts.d.ts +3 -68
  47. package/dist/teams-react/index.d.ts +5 -6
  48. package/dist/teams-react/index.js +46 -335
  49. package/dist/teams-react/index.js.map +1 -1
  50. package/dist/web-react/agent-profile-editor.js +6 -6
  51. package/dist/web-react/agent-session-controls.d.ts +6 -4
  52. package/dist/web-react/effort-picker.d.ts +7 -6
  53. package/dist/web-react/index.js +9 -9
  54. package/dist/web-react/picker-presentation.d.ts +2 -2
  55. package/dist/workspace-react/index.js +4 -4
  56. package/package.json +3 -3
  57. package/dist/chunk-GOPBMDCQ.js.map +0 -1
  58. package/dist/chunk-OZWHBH4T.js.map +0 -1
  59. package/dist/chunk-RCSAAWOH.js.map +0 -1
  60. package/dist/chunk-SLXJZGXE.js.map +0 -1
  61. package/dist/chunk-VLMXVCDQ.js.map +0 -1
  62. package/dist/chunk-XCUT52I3.js.map +0 -1
  63. package/dist/chunk-YL5JDX7K.js +0 -70
  64. package/dist/chunk-YL5JDX7K.js.map +0 -1
  65. package/dist/stories/settings/team-panels-demo.d.ts +0 -21
  66. package/dist/teams-react/components/InvitationsPanel.d.ts +0 -13
  67. package/dist/teams-react/components/InviteForm.d.ts +0 -20
  68. package/dist/teams-react/components/MembersPanel.d.ts +0 -18
  69. /package/dist/{chunk-HWWER7G6.js.map → chunk-2ARZ4Y7D.js.map} +0 -0
  70. /package/dist/{chunk-MM2GG3IX.js.map → chunk-4W6MDZQH.js.map} +0 -0
  71. /package/dist/{chunk-3VEXCVZB.js.map → chunk-6VRM2RVY.js.map} +0 -0
  72. /package/dist/{chunk-MK7VUZU7.js.map → chunk-HFCPHY5D.js.map} +0 -0
  73. /package/dist/{chunk-K7HE6EM4.js.map → chunk-MS5S4IVF.js.map} +0 -0
  74. /package/dist/{chunk-X7PYE5C5.js.map → chunk-RTJJYBVV.js.map} +0 -0
  75. /package/dist/{chunk-G37LZ2FN.js.map → chunk-UN3PDU3M.js.map} +0 -0
  76. /package/dist/{mention-editor-HLEB37RK.js.map → mention-editor-XB4LGO3X.js.map} +0 -0
@@ -55,7 +55,7 @@ import {
55
55
  DEFAULT_HARNESS,
56
56
  assertHarnessModelCompatible,
57
57
  isHarness
58
- } from "./chunk-RCSAAWOH.js";
58
+ } from "./chunk-SUWAECFT.js";
59
59
  import {
60
60
  isWorkspaceFileExportable
61
61
  } from "./chunk-TXD5HXLE.js";
@@ -554,6 +554,7 @@ function createSandboxPrewarmer(shell, options) {
554
554
  }
555
555
 
556
556
  // src/sandbox/prompt-profile.ts
557
+ import { parseBackendType } from "@tangle-network/sandbox";
557
558
  import { mergeAgentProfiles } from "@tangle-network/agent-interface/profile";
558
559
 
559
560
  // src/sandbox/payload-limits.ts
@@ -767,7 +768,10 @@ async function resolveSandboxPromptBackend(shell, options, operation = "sandbox
767
768
  options.onProfileResolved(await fingerprintAgentProfile(profile, { model: model?.model, harness }));
768
769
  }
769
770
  return {
770
- type: harness,
771
+ // BackendConfig admits dispatchable backend ids only; parseBackendType
772
+ // fails fast (and type-narrows) for historical-only harness identities
773
+ // such as `forge` instead of letting the platform reject them remotely.
774
+ type: parseBackendType(harness),
771
775
  profile,
772
776
  ...model ? backendModelFields(model) : {},
773
777
  ...options.runtimeAttachments ? { runtimeAttachments: options.runtimeAttachments } : {},
@@ -3380,6 +3384,9 @@ async function peekWorkspaceSandbox(shell, options) {
3380
3384
  return { status: "running", box: match };
3381
3385
  }
3382
3386
 
3387
+ // src/sandbox/workspace-provision.ts
3388
+ import { parseBackendType as parseBackendType2 } from "@tangle-network/sandbox";
3389
+
3383
3390
  // src/sandbox/existing-box.ts
3384
3391
  import { createHash as createHash2 } from "crypto";
3385
3392
  async function resolveWorkspaceRuntimeEnv(shell, scope) {
@@ -3495,7 +3502,14 @@ function normalizedEgressPolicy(policy) {
3495
3502
  const normalized = { ...policy };
3496
3503
  if (policy.mode === "strict") {
3497
3504
  normalized.allowDomains = [...new Set(
3498
- (policy.allowDomains ?? []).map((domain) => domain.trim().toLowerCase()).filter(Boolean)
3505
+ (policy.allowDomains ?? []).map((entry) => {
3506
+ if (typeof entry === "string") {
3507
+ const domain2 = entry.trim().toLowerCase();
3508
+ return domain2 ? JSON.stringify({ domain: domain2, allowPrivateIps: [] }) : null;
3509
+ }
3510
+ const domain = entry.domain.trim().toLowerCase();
3511
+ return domain ? JSON.stringify({ domain, allowPrivateIps: [...new Set(entry.allowPrivateIps)].sort() }) : null;
3512
+ }).filter((entry) => entry !== null)
3499
3513
  )].sort();
3500
3514
  normalized.includeImplicitDomains = policy.includeImplicitDomains !== false;
3501
3515
  } else {
@@ -3983,7 +3997,9 @@ async function prepareWorkspacePayload(shell, workspaceId, userId, scope, harnes
3983
3997
  ...userId ? { permissions: { initialUsers: [{ userId, role }] } } : {},
3984
3998
  env,
3985
3999
  secrets,
3986
- backend: { type: harness, profile, ...model ? backendModelFields(model) : {} },
4000
+ // Fail fast for historical-only harness identities (`forge`) here too,
4001
+ // matching resolveSandboxPromptBackend's dispatch seam.
4002
+ backend: { type: parseBackendType2(harness), profile, ...model ? backendModelFields(model) : {} },
3987
4003
  ...storage ? { storage } : {},
3988
4004
  ...restore ? restore : {},
3989
4005
  ...shell.egressPolicy ? { egressPolicy: shell.egressPolicy } : {},
@@ -4310,4 +4326,4 @@ export {
4310
4326
  deleteSecret,
4311
4327
  mintSandboxScopedToken
4312
4328
  };
4313
- //# sourceMappingURL=chunk-OZWHBH4T.js.map
4329
+ //# sourceMappingURL=chunk-HFWKZHTZ.js.map